ASSUME CS:CC
CC SEGMENT
DATA DB 'NOT CHAR.$'
START:
PUSH CS
POP DS
MOV AH, 7
INT 21H
AND AL, 0DFH
CMP AL, 'A'
JB NO
CMP AL, 'Z'
JA NO
MOV DL, AL
MOV AH, 2
INT 21H
JMP EXIT
NO: LEA DX, DATA
MOV AH, 9
INT 21H
EXIT: MOV AH, 4CH
INT 21H
CC ENDS
END START