(a) Add together the following two 8-bit binary numbers. Show your working. [2]
01101101
+ 01011011(b) A student adds 11010110 and 01100011 using an 8-bit register. The register stores the result 00111001.
Explain why the stored result is incorrect. [2]
- (a) Carries shown correctly / at least four bits correct from the right (…1000)(1)
- (a) 11001000 fully correct(1)
- (b) An overflow (error) has occurred(1)
- (b) The correct answer (313 / 100111001) needs 9 bits / is greater than 255, so the 9th bit / final carry is lost / cannot be stored in an 8-bit register(1)
- Answer: (a) 11001000 (b) Overflow: result 313 needs 9 bits, so the carry out of the 8th bit is lost
- Examiner tip: Always show your carries – if the final answer has one slip you can still get the working mark.