home *** CD-ROM | disk | FTP | other *** search
/ Point Programming 1 / PPROG1.ISO / c / snippets / keylocks.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-17  |  321 b   |  23 lines

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