The 8-bit register A and B initially have the following values: A = 01110110 B…
2021
The 8-bit register A and B initially have the following values: A = 01110110 B = 10000101 What is the 8-bit value in each register after execution of the following micro-operation? A ← A + B B ← B + 1
- A.
A = 11111110, B = 10000101
- B.
A = 11110111, B = 10001110
- C.
A = 11111011, B = 10000110
- D.
A = 11111101, B = 10000101
Attempted by 169 students.
Show answer & explanation
Correct answer: C
Step 1: Perform binary addition of A and B: 01110110 + 10000101.
Step 2: Add bit by bit from right to left, including carry.
Step 3: The sum is 11111011 with a carry-out of 1, which is discarded in 8-bit arithmetic.
Step 4: Increment B by 1: 10000101 + 1 = 10000110.
Final values: A = 11111011, B = 10000110.