home *** CD-ROM | disk | FTP | other *** search
/ POINT Software Programming / PPROG1.ISO / asm / 80x0393 / keyboard.txt < prev    next >
Encoding:
Text File  |  1993-08-17  |  1.6 KB  |  36 lines

  1. (7835)  Sun 15 Aug 93  6:55a
  2. By: Thomas Swann
  3. To: All
  4. Re: Keyboard Lights
  5. St:
  6. ---------------------------------------------------------------------------
  7. @MSGID: 1:233/5.0 2c6e322c
  8.     I thought I'd share the info I've found on controlling the keyboard
  9. lights via hardware with everyone (although I doubt few will need to use
  10. it.)
  11.     The first thing I'd like to point out is that the byte in the BIOS data
  12. area at 0000:0417h can be used to control the lights if the ROM BIOS
  13. INT 9 is currently being called.  (i.e. if you write your own handler which
  14. does not call the old handler the lights using this byte will do
  15. nothing for you) (unfortunately) ;)
  16.     Finally, and secondly (hehe), the hardware is controlled in the following
  17. manner.
  18.           1. Send 0EDh out port 60h
  19.           2. Verify that byte was sent properly by getting a byte from
  20.              port 60h.  If the byte is not 0FAh, something (very precise
  21.              is it not?) is wrong. :(
  22.           3. Send a byte out port 60h coded as follows:
  23.              Bit0=Scroll Lock Status
  24.              Bit1=Num Lock Status
  25.              Bit2=Caps Lock Status (as if you didn't guess by now)
  26.              Bits3-7=undefined
  27.     The 0EDh sent in step 1 lets the keyboard you want to change the lights.
  28. If you put a 0F3h here, you can change the repeat rate of held keys.  Also, I'm
  29. pretty sure that this will only work with AT style keyboard's (definately only
  30. keyboards with an 8042 style controller in them.)
  31.  
  32. --- Maximus 2.00
  33.  * Origin: The Programmer's Toolbox, Urbana IL, (217)384-4311 (1:233/5)
  34.  
  35. @PATH: 233/5 15 11/2 396/1 13/13 260/1
  36.