The instruction format is CMP R1, R2.
How will the carry and zero flags we be modified after above instruction is executed?
Case 1:
R1< R2 Carry Flag = 1 Zero Flag = 0
R1= R2 Carry Flag = 0 Zero Flag = 1
R1> R2 Carry Flag = 0 Zero Flag = 0
Case 2:
R1< R2 Carry Flag = 0 Zero Flag = 0
R1= R2 Carry Flag = 0 Zero Flag = 1
R1> R2 Carry Flag = 1 Zero Flag = 0
Which one of the above two cases is correct?