Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .MODEL SMALL
- .STACK 100H
- .DATA
- A DW "INPUT: $"
- B DW "OUTPUT: $"
- .CODE
- MAIN PROC
- MOV AX,@DATA
- MOV DS,AX
- MOV AH,9
- LEA DX,A
- INT 21H
- MOV AH,1
- INT 21H
- MOV BL,AL
- MOV AH,1
- INT 21H
- MOV CL,AL
- MOV AH,1
- INT 21H
- MOV CH,AL
- MOV AH,2
- MOV DL,0AH
- INT 21H
- MOV DL,0DH
- INT 21H
- MOV AH,9
- LEA DX,B
- INT 21H
- MOV AH,2
- MOV DL,0AH
- INT 21H
- MOV DL,0DH
- INT 21H
- MOV AH,2
- MOV DL,BL
- INT 21H
- MOV AH,2
- MOV DL,0AH
- INT 21H
- MOV DL,0DH
- INT 21H
- MOV AH,2
- MOV DL,CL
- INT 21H
- MOV AH,2
- MOV DL,0AH
- INT 21H
- MOV DL,0DH
- INT 21H
- MOV AH,2
- MOV DL,CH
- INT 21H
- MAIN ENDP
- END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement