home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
18
/
IUP064.ZIP
/
keyboard.inc
< prev
next >
Wrap
Text File
|
1996-07-09
|
781b
|
36 lines
; Blink NumLock
Blink proc near
xor ax,ax
mov es,ax ; ES=0
test byte ptr es:417h, 20h ; 0:417h, or 40h:17h
jnz short LightIsOn ; jump if light is on
; light is off
mov al, 0edh
out 60h, al
mov cx, 0b000h
@@1:
loop @@1 ; stupid timing :(
mov al, 2
out 60h, al
or byte ptr es:417h, 20h ; light is now on
jmp short @@3
LightIsOn:
; light is on
mov al, 0edh
out 60h, al
mov cx, 0b000h
@@2:
loop @@2 ; again, stupid timing :((
mov al, 0
out 60h, al
and byte ptr es:417h, 0DFh ; light is now off
@@3:
ret
Blink endp