Given the following base 10 values:
a) 48 + 87
b) 48 + (-87)
c) -48 + (-87)
Preform the operations using 8-bit binary numbers and generate and 8-bit result. Clearly show the sum and carry generated. Also, indicate if an overflow condition has occured.
See figure attached for my work. Can someone verify if I'm doing this correctly?
Also if I want to indicate my negative result in two's complement do I need to invert all the bits again excluding the first 1 or do I keep as indicated in the figure? (i.e. Result in b) and c) )
Thanks again!
a) 48 + 87
b) 48 + (-87)
c) -48 + (-87)
Preform the operations using 8-bit binary numbers and generate and 8-bit result. Clearly show the sum and carry generated. Also, indicate if an overflow condition has occured.
See figure attached for my work. Can someone verify if I'm doing this correctly?
Also if I want to indicate my negative result in two's complement do I need to invert all the bits again excluding the first 1 or do I keep as indicated in the figure? (i.e. Result in b) and c) )
Thanks again!
Attachments
-
271.7 KB Views: 76