An 8-bit register stores signed integers using two's complement.
(a) Show how the denary value −45 is represented in this register. [2]
(b) State the range of denary values that can be stored in an 8-bit two's complement register. [1]
- Method: 45 = 00101101 and bits inverted to 11010010, or −128 + 83 approach shown (implied by a correct answer)(1)
- 11010011(1)
- −128 to +127 (allow −27 to 27−1)(1)
- Answer: (a) 11010011 (b) −128 to 127
- Examiner tip: In (b) the range is asymmetric: there is one more negative value than positive.