16号中断读键盘输入SHIFT退出

16号中断读键盘输入SHIFT退出

代码
L_SHIFT = 00000010B
R_SHIFT =
00000001B
CODE SEGMENT
ASSUME
CS:CODE
START:
MOV AH,2
INT 16H
TEST AL,L_SHIFT + R_SHIFT
JNZ OVER
MOV AH,1
INT 16H
JZ START
MOV AH,0
INT 16H
MOV DL,AL
MOV AH,2
INT 21H
JMP START
OVER:
MOV AH,4CH
INT 21H
CODE ENDS
END START

 

posted @ 2010-12-18 10:12  Jekhn  阅读(254)  评论(0编辑  收藏  举报