Question: a) Perform the following computations and indicate their result in hexadecimal (radix=16). Note that the radix of the operands is specified by the suffix after

a) Perform the following computations and indicate their result in hexadecimal (radix=16). Note that the radix of the operands is specified by the suffix after the number. 3F16 + 916 =......... 16 4510 - A16 =......... 16 2134 + 125 = ......... 16 [6 marks] b) Convert the following decimal numbers into 8-bit two's complement (include all leading zeros, if any): -117d +109d -63d -810 [4 marks] c) Write down the result in hexadecimal of the shift operations indicated below which are performed by an 8-bit ALU. Note that ASR is the arithmetic right shift operation and SHR is the logic right shift operation. ASR (864) SHR (86h) [2 marks] d) Perform the following computation on 8-bit numbers (the encoding is irrelevant here). Write down: i) the 8-bit result (include all leading zeros, if any); ii) the status of the flags carry and overflow. 10100000 + 11100000 01101001 + 01110101 10110110 + 10010001 01001110 + 00101000 [8 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
