home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
CEXPRESS.ZIP
/
KEYBOARD.ASM
/
LEFTDOWN.ASM
< prev
next >
Wrap
Assembly Source File
|
1989-05-03
|
518b
|
23 lines
;unsigned short left_shift_down();
EXTRN _memory_model:byte
_TEXT SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:_TEXT
PUBLIC _left_shift_down
_left_shift_down proc near
mov ah,2 ;BIOS kybd status func
int 16h ;call the interrupt
mov bx,1 ;TRUE value
test al,2 ;test bit 1
jnz L1 ;jump if TRUE
mov bx,0 ;FALSE value
L1: mov ax,bx ;place value for return
cmp _memory_model,0 ;quit
jle quit ;
db 0CBh ;RET far
quit: ret ;RET near
_left_shift_down ENDP
_TEXT ENDS
END