Categories

Digital microprocessor

Digital microprocessor
Question:-
Option (A)
S = 0, Z = 0, AC = 0, P = 1, CY = 1
Option (B)
S = 0, Z = 1, AC = 0, P = 1, CY = 0
Option (C)
S = 0, Z = 1, AC = 0, P = 0, CY = 1
Option (D)
S = 1, Z = 0, AC = 1, P = 0, CY = 0
Correct Option:
C
Question Solution:
Question:-
Option (A)
The carry flag is set
Option (B)
The Accumulator contains FFH
Option (C)
The zero flag is set
Option (D)
The Accumulator contents are shifted left by one bit
Correct Option:
C
Question Solution:
XRA, A instruction EX-OR the contents of accumulator with its own contents so the result is always zero and zero flag is set.