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