Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .MODEL SMALL
- .STACK 100
- .DATA
- D1 DB ?
- D2 DB ?
- D3 DB ?
- .CODE
- JOY PROC
- MOV AX, @DATA
- MOV DS, AX
- MOV AH, 1
- INT 21H
- SUB AL, 30H
- MOV D1, AL
- MOV AH, 1
- INT 21H
- SUB AL, 30H
- MOV D2, AL
- MUL D1
- MOV D3, AL
- ADD AL, 30H
- MOV DL, AL
- MOV AH, 2
- INT 21H
- MOV AH, 4CH
- INT 21H
- JOY ENDP
- END JOY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement