.MODEL SMALL
.STACK 64H
.DATA
V1 DB 29H
V2 DB 18H
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV AL,V1
ADD AL,V2
DAA ;Decimal Adjust for Addition
MOV BL,AL
MOV AH,02H
MOV DL, BL
INT 21H
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN
.STACK 64H
.DATA
V1 DB 29H
V2 DB 18H
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV AL,V1
ADD AL,V2
DAA ;Decimal Adjust for Addition
MOV BL,AL
MOV AH,02H
MOV DL, BL
INT 21H
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN
No comments:
Post a Comment