0
2.0kviews
What are the statuses of condition flags in logical and arithmetic instruction?
1 Answer
0
9views

Arithmetic operations affect the flags such as carry flag (CF), overflow flag (OF) etc. in the PSW register and the logical instructions majorly affects the carry flag (CF). The following table shows exactly which instructions affect which flags from the program status register (PSW):

Instruction CY OV AC
ADD X X X
ADDC X X X
SUBB X X X
MUL 0 X
DIV 0 X
DA X
RRC X
RLC X
SETB C 1
CLR C 0
CPL C X
ANL C, bit X
ANL C, /bit X
ORL C,bit X
ORL C, /bit X
MOV C, bit X
CJNE X
Please log in to add an answer.