Question: I don't understand problem 2,a-d. A certain CPU uses two's complement arithmetic to perform addition of two 8-bit signed numbers. Describe what the following condition
I don't understand problem 2,a-d.
A certain CPU uses two's complement arithmetic to perform addition of two 8-bit signed numbers. Describe what the following condition flags tell you about the 8- bit result of this addition. (1/2 point each) a. Z (zero flag) b. N (sign flag) c. C (carry flag) d. V (overflow flag) Perform the following calculations as they would be done by the 8-bit CPU of problem 1. Write the hex values in binary to perform the calculation. Show the 8- bit result in hexadecimal and the four condition flag values (1 point for the result and 1 point for the flags). a. OxA6 + 0xCC b. OxFF + 0x01 c. Ox51 - Ox77 d. Ox96 - 0x03
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
