Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .STACK 100
- .MODEL SMALL
- .DATA
- VAL1 DB ?
- VAL2 DB ?
- .CODE
- MAIN PROC
- MOV BH,'0'
- O:
- MOV AH,1
- INT 21H
- MOV BL,AL
- CMP BL,'1'
- JE Z
- JMP Y
- Z:
- INC BH
- JMP Y
- Y:
- CMP BL,' '
- JE Q
- JMP O
- Q:
- MOV AH,2
- MOV DL,0DH
- INT 21H
- MOV DL,0AH
- INT 21H
- MOV AH,2
- MOV DL,BH
- INT 21H
- END_IF:
- MAIN ENDP
- END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement