The 8-bit registers AR, BR, CR, and DR initially have the following values:
AR= 11110010, BR= 10110111, CR= 10101001 , DR= 10001000
Determine the 8-bit values in each register after the execution of the following sequence of
microoperations.
AR <-AR + BR
CR <- CR ^ DR, BR <- BR + 1
AR <-AR – CR
Answers
Answered by
5
Answer:
AR = AR + BR Add BR to AR storing answer in AR CR = CR ^ DR , BR = BR + 1 AND
DR to CR, INC BR AR = AR – CR Subtract CR from AR
AR + BR = 11110010 + 11111111 (1)11110001 AR = 11110001 CR ^ DR = 10111001 ^
11101010 10101000 CR = 10101000 BR + 1 = 00000000 BR = 00000000 AR – CR =
11110001 – 10101000 = 11110001 + ~(10101000) + 1 = 11110001 + 01010111 + 1 =
11110001 + 01010111 + 00000001 01001001
Therefore AR = 01001001
Explanation:
Similar questions