Specify the contents of flag register for the following program:-
MVIA,08H
MVIC,09H
SUBC
CMPC
HLT
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.
MVIA,08H
MVIC,09H
SUBC
CMPC
HLT
AFTER EXECUTION OF THE ABOVE CODE RESULT WILL BE FFH.
FLAG:
SIGN FLAG: 08H-09H as this set of instructions will set the sign flag to 1 as 30 – 40 is a negative number.
ZERO FLAG: result is non zero so Z= 0.
AUXILIARY CARRY FLAG: D3 TO D4 there is no carry generated. AC=0.
PARITY FLAG: In FFH there are even number of 1’s so P=1.
CARRY FLAG: C=1