经过下列程序的试验:
MOV A,#0F0H
SETB CY
ADDC A,#0FH ; A = 00H,PSW = C0H
MOV R0,A ; R0 = 00H
ADDC A,#07H ; A = 08H,PSW = 01H
最后有:
R0 = 00H
A = 08H
PSW = 01H
经过下列程序的试验:
MOV A,#0F0H
SETB CY
ADDC A,#0FH ; A = 00H,PSW = C0H
MOV R0,A ; R0 = 00H
ADDC A,#07H ; A = 08H,PSW = 01H
最后有:
R0 = 00H
A = 08H
PSW = 01H