Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .DATA
- .MODEL SMALL
- INPUT_M DB 10,13,'ENTER CHARACTER',0DH,0AH,'$'
- MESSAGE1 DB 10,13,'YOU TYPED'
- CHAR DB " ", '$'
- .CODE
- MAIN PROC
- MOV AX,@DATA
- MOV DS,AX
- MOV AH,9
- MOV DX,OFFSET INPUT_M
- INT 21H
- MOV AH,01
- INT 21H
- MOV CHAR,AL
- CMP CHAR,'A'
- JL EQUAL
- CMP CHAR,'Z'
- JG EQUAL
- MOV DX,OFFSET MESSAGE1
- MOV AH,9
- INT 21H
- EQUAL:
- JMP END
- END:
- MOV AX,4CH
- INT 21H
- MAIN ENDP
- END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement