Article View: comp.os.msdos.programmer
Article #5052Re: Disabling an Internal DOS Command
From: CS Major: LCMDR Data
Date: Wed, 06 Mar 1991 23:38
Date: Wed, 06 Mar 1991 23:38
33 lines
2299 bytes
2299 bytes
In <LEVERICW.91Mar4113004@cheetah.ece.clarkson.edu> levericw@cheetah.ece.clarkson.edu (Walden Leverich) writes:
>> Question #2:
>> Is there any way to set the state of the NumLock key. I already know
>> how to detect the state of the key, but what I really need to do is
>> set it to be either on or off. Any help would be appreciated.
>You can read the status from BIOS, you may also be able to SET the
>status by playing with the settings in BIOS. (Obviously a RAM copy of
>BIOS.)
>Anyone on the net care to comment on the feasibility of this? I have
>not tried it myself, but would be interested in the answer.
I'm not 100% percent sure about this, I don't have my ASM manuals with me:
If you flip the appropriate bit (in the keyboard status byte), when the
keyboard interrupt executes, it checks that byte. That should effectively set
the caps lock/numlock/scroll lock keys. This probably won't flip the light on
the keyboard, but should work.
Mark Hall
CS Major at Bradley University
(Gee, why is EVERYTHING a hack? =-)
--
| I'nt: data@{bucs1,buhub,heartland}.bradley.edu, al632@cleveland.freenet.edu |
|-----------------------------------------------------------------------------|
| F'net : 1:232/28 1:2250/9 (fname.lname@f<node>.n<net>.z<zone>.fidonet.org) |
|-----------------------------------------------------------------------------|
| "He sees you when you're sleeping, he knows when you're awake, but Captain, |
| it makes no sense!" "But Spock, with Santa, ALL things are possible!" |
| Kirk and Spock...Hallmark Greeting Cards |
Technical Details
Message-ID:
<1991Mar6.233821.15345@bradley.bradley.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!m.cs.uiuc.edu!roundup.crhc.uiuc.edu!ux1.cso.uiuc.edu!bradley.bradley.edu!buhub!dataReferences:
<1991Mar4.151301.12925@cbnewsk.att.com> <LEVERICW.91Mar4113004@cheetah.ece.clarkson.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!m.cs.uiuc.edu!roundup.crhc.uiuc.edu!ux1.cso.uiuc.edu!bradley.bradley.edu!buhub!data From: data@buhub.bradley.edu (CS Major: LCMDR Data) Newsgroups: comp.os.msdos.programmer Subject: Re: Disabling an Internal DOS Command Message-ID: <1991Mar6.233821.15345@bradley.bradley.edu> Date: 6 Mar 91 23:38:21 GMT References: <1991Mar4.151301.12925@cbnewsk.att.com> <LEVERICW.91Mar4113004@cheetah.ece.clarkson.edu> Sender: news@bradley.bradley.edu Distribution: usa Organization: MSD*S Programmers from h*||! =-] Lines: 33 Nntp-Posting-Host: buhub.bradley.edu