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