Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .MODEL SMALL
- .STACK 100H
- .DATA
- MSG DW "YOUNG $"
- MSG2 DW "ADULT $"
- .CODE
- MAIN PROC
- MOV AX,@DATA
- MOV DS,AX
- MOV AH,1
- INT 21H
- MOV BL,AL
- MOV AH,1
- INT 21H
- MOV CL,AL
- MOV AH,2
- MOV DL,0DH
- INT 21H
- MOV DL,0AH
- INT 21H
- CMP BL,'1'
- JGE YOUNGER
- MOV AH,9
- LEA DX,MSG
- INT 21H
- JMP END_IF
- YOUNGER:
- CMP CL,'8'
- JG ADULT
- MOV AH,9
- LEA DX,MSG2
- INT 21H
- JMP END_IF
- ADULT:
- MOV AH,9
- LEA DX,MSG2
- INT 21H
- END_IF:
- MAIN ENDP
- END MAIN
Add Comment
Please, Sign In to add comment