Question discussion

The 8-bit registers A and B initially have the following values.A = 01110110B = 10000101What is the 8-bit value in each register after exec…

5199Medium DSSSB TGT Computer Science 0 replies 0 views
0
The 8-bit registers 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
  • AA = 11111011, B = 10000110
  • BA = 11111110, B = 10000101
  • CA = 11111101, B = 10000101
  • DA = 11111011, B = 10001110
Correct answer: A

Explanation

A ← A + B = 01110110 + 10000101 = 11111011 and B ← B + 1 = 10000101 + 1 = 10000110.

Discussion 0

Nobody has replied yet. Start the discussion!