TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: ROBERT GLODT
from: BRIAN MCCLOUD
date: 1997-10-02 14:20:00
subject: lock keys

-> ok, i've tried this a few HUNDERED different ways in C/C++, but to no 
avail.
-> I'm trying to make the caps,num,scroll lock lights flash. could someone 
post
-> some code that does this, because i'm having one heck of a time with it.
How about this:
        MOV     AX, 0040h       ; please note this is a REAL MODE segment,
        MOV     ES, AX          ; not a protected mode selector.
        MOV     BX, 0017h
; to activate caps lock (& light)
        MOV     AL, 01000000b
; to activate num lock (& light)
        MOV     AL, 00100000b
; to activate scroll lock (& light)
        MOV     AL, 00010000b
;then, once you know which ones to activate:
        OR      ES:[BX], AL
((Cloud))
MauveCloud@juno.com
--- PCBoard (R) v15.3/M 10
---------------
* Origin: Next time, Dial The Wrong Number! (209) 943-1880 (1:208/205)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.