这个是我自己写的,
DSEG SEGMENT
DATA1 DD 202317H
DATA2 DD 150636H
SUM DW ?
DSEG ENDS
SSEG SEGMENT STACK
DW 256 DUP(?)
SSEG ENDS
CSEG SEGMENT
ASSUME CS: CSEG, DS: DSEG, SS: SSEG
START: MOV AX, DSEG
MOV DS, AX
LEA SI, DATA1
MOV AX, [SI]
MOV DI, DATA2
MOV CX, [DI]
LEA BX, SUM
ADD AX, CX
MOV [BX],AX
MOV AX, [SI+2]
MOV cX, [DI+2]
ADC AX, CX
MOV [BX+2], AX
MOV AH, 4CH
INT 21H
CSEG ENDS
END START
但是DOSBOX debug会报2错误,因为还是一个学生,希望可以帮忙更正一下错误,谢谢各位
|