Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .STACK 100H
- .MODEL SMALL
- .DATA
- MSG1 DB 'ENTER FIRST NUMBER: $'
- MSG2 DB 'ENTER SECOND NUMBER: $'
- MSG3 DB 'ADDITION RESULT IS: $'
- .CODE
- MAIN PROC
- MOV AX,@DATA
- MOV DS,AX
- LEA DX,MSG1
- MOV AH,9
- INT 21H
- MOV AH,1
- INT 21H
- MOV BL,AL
- MOV AH,2
- MOV DL,0DH
- INT 21H
- MOV DL,0AH
- INT 21H
- LEA DX,MSG2
- MOV AH,9
- INT 21H
- MOV AH,1
- INT 21H
- MOV CL,AL
- MOV AH,2
- MOV DL,0DH
- INT 21H
- MOV DL,0AH
- INT 21H
- LEA DX,MSG3
- MOV AH,9
- INT 21H
- SUB BL,30H
- SUB CL,30H
- ADD CL,BL
- ADD CL,30H
- MOV DL,CL
- MOV AH,2
- INT 21H
- MOV AH,4CH
- INT 21H
- MAIN ENDP
- END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement