带进位ADC指令的问题
自己写了个简单的4字节加法程序,从运行结果看,用了ADC,但电脑没有把进位加进去.45218763H+62578453H应该等于A7790BB6吧,但运行结果是A7780BB6,汇编菜鸟,求大神帮助啊!
DATA SEGMENT
VAR1 DD 45218763H
VAR2 DD 62578453H
VAR3 DD 00000000H,"$"
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START:
MOV AX,DATA
MOV DS,AX
CLC
LEA SI,VAR1
INC SI
INC SI
MOV AX,DS:[SI]
LEA SI,VAR2
INC SI
INC SI
ADC AX,DS:[SI]
LEA SI,VAR1
MOV DX,DS:[SI]
LEA SI,VAR2
ADC DX,DS:[SI]
LEA SI,VAR3
MOV DS:[SI],DX
INC SI
INC SI
MOV DS:[SI],AX
MOV DX,OFFSET VAR3
MOV AH,09H
INT 21H
MOV AH,4CH
INT 21H
CODE ENDS
END START