Consider the two 8-bit numbers A = 10110110 and B = 00110111.
(a) Give the decimal equivalent of each number, assuming that (1) they are unsigned and (2) they are signed 2s complement.
(b) Add the two binary numbers and interpret the sum, assuming that the numbers are (1) unsigned and (2) signed 2s complement.
(c) Determine the values of the C (carry), Z (zero), N (sign), and V (overflow) status bits after the additions.
(d) List the conditional branch instructions from Table that will have a true condition for each addition.
Table Conditional Branch Instructions Relating to Status Bits in the PSR
Branch Condition | Mnemonic | Test Condition |
Branch if zero | BZ | Z = 1 |
Branch if not zero | BNZ | Z = 0 |
Branch if carry | BC | C = 1 |
Branch if no carry | BNC | C = 0 |
Branch if minus | BN | N = 1 |
Branch if plus | BNN | N = 1 |
Branch if overflow | BV | V = 1 |
Branch if no overflow | BNV | V = 0 |
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.