Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .MODEL SMALL
- .STACK 100H
- .DATA
- NEW_LINE DB 0DH,0AH,"$"
- .CODE
- MAIN PROC
- MOV AX,@DATA
- MOV DS,AX
- MOV AH,2H
- MOV DL,"?"
- INT 21H
- MOV AH,9H
- LEA DX,NEW_LINE
- INT 21H
- MOV AH,1H
- INT 21H
- MOV BL, AL
- MOV AH,9H
- LEA DX,NEW_LINE
- INT 21H
- MOV AH,1H
- INT 21H
- MOV BH,AL
- MOV AH,9H
- LEA DX,NEW_LINE
- INT 21H
- MOV AH,2H
- CMP BL,BH
- JAE @GREATER
- MOV DL,BL
- INT 21H
- MOV DL, BH
- INT 21H
- JMP @EXIT
- @GREATER:
- MOV DL, BH
- INT 21H
- MOV DL, BL
- INT 21H
- @EXIT:
- MOV AH, 4CH
- INT 21H
- MAIN ENDP
- END MAIN
Add Comment
Please, Sign In to add comment