The plus (+) indicates a more advanced problem and the asterisk (*) indicates that a solution is available on the Companion Website for the text.
*The program in a computer compares two unsigned numbers A and B by performing a subtraction A - B and updating the status bits. For operands let A = 01011101 and B = 01011100,
(a) Evaluate the difference and interpret the binary result.
(b) Determine the values of status bits C (borrow) and Z (zero).
(c) List the conditional branch instructions from Table that will have a true condition.
Table Conditional Branch Instructions for Unsigned Numbers
Branch Condition | Mnemonic | Condition | Status Bits* |
Branch if above | BA | A = B | C + Z = 0 |
Branch if above or equal | BAE | A ≥ B | C + 0 |
Branch if below | BB | A | C = 1 |
Branch if below or equal | BBE | A ≤ B | C + Z = 1 |
Branch if equal | BE | A = B | Z = 1 |
Branch if not equal | BNE | A ≠ B | Z = 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.