home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
msdos
/
asmutl
/
tstkbd.asm
< prev
next >
Wrap
Assembly Source File
|
1983-11-17
|
316b
|
18 lines
DATA_SEG SEGMENT AT 40H
ORG 17H
KB_FLAG DB ? ;Status flag for shift keys, etc.
DATA_SEG ENDS
ASSUME CS:CODE_SEG,DS:DATA_SEG
CODE_SEG SEGMENT
BEGIN PROC NEAR
MOV AX,DATA_SEG
MOV DS,AX
AGAIN: TEST KB_FLAG,1 ;Right shift key pressed?
JZ AGAIN ;No, keep looking
INT 20H
BEGIN ENDP
CODE_SEG ENDS
END BEGIN