Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .MODEL SMALL
- .STACK 100H
- .DATA
- MSG1 DW "INPUT:$"
- MSG2 DW "OUTPUT:$"
- .CODE
- MAIN PROC
- MOV AX,@DATA
- MOV DS,AX
- XOR CX,CX
- MOV AH,1
- INT 21H
- WHILE_:
- CMP AL,0DH
- JE POP_
- PUSH AX
- INC CX
- INT 21H
- JMP WHILE_
- POP_:
- POP DX
- MOV AH,2
- INT 21H
- LOOP POP_
- MAIN ENDP
- END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement