home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
CEXPRESS.ZIP
/
KEYBOARD.ASM
/
CLRNUMLK.ASM
< prev
next >
Wrap
Assembly Source File
|
1989-05-03
|
405b
|
20 lines
;void clr_num_lock();
EXTRN _memory_model:byte
_TEXT SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:_TEXT
PUBLIC _clr_num_lock
_clr_num_lock proc near
sub ax,ax ;clear AX
mov es,ax ;ES pts to 0000:0000
mov al,11011111B ;bit 5
and es:[417H],al ;clear the bit
cmp _memory_model,0 ;quit
jle quit ;
db 0CBh ;RET far
quit: ret ;RET near
_clr_num_lock ENDP
_TEXT ENDS
END