home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / SNIP9404.ZIP / KEYLOCKS.C < prev    next >
Text File  |  1994-04-03  |  303b  |  22 lines

  1. static volatile unsigned char far *keyflags = (char far *)0x00400017;
  2.  
  3. void setcaps(void)
  4. {
  5.         *keyflags |= 0x40;
  6. }
  7.  
  8. void clrcaps(void)
  9. {
  10.         *keyflags &= ~0x40;
  11. }
  12.  
  13. void setnumlock(void)
  14. {
  15.         *keyflags |= 0x20;
  16. }
  17.  
  18. void clrnumlock(void)
  19. {
  20.         *keyflags &= ~0x20;
  21. }
  22.