Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .STACK 100H
- .MODEL SMALL
- .DATA
- S DW "SCAN VALUE:$"
- P DW "PRINT SCAN VALUE :$"
- .CODE
- MAIN PROC
- ;SCAN PRINT
- MOV AX,@DATA
- MOV DS,AX
- LEA DX,S
- MOV AH,9
- INT 21H
- ;scan
- MOV AH,1
- INT 21H
- MOV BL,AL
- ;NEW LINE
- MOV AH,2
- MOV DL,0DH
- INT 21H
- MOV DL,0AH
- INT 21H
- ;PRINT P
- LEA DX,P
- MOV AH,9
- INT 21H
- ;PRINT
- MOV AH,2
- MOV DL,BL
- INT 21H
- MAIN ENDP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement