home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / TECLADO / FASTKEY2.ZIP / FASTKEYC.C next >
Encoding:
C/C++ Source or Header  |  1989-03-17  |  738 b   |  21 lines

  1. /* fastkeyc.c */
  2.  
  3. /* Program to speed up keyboard repeat and repeat delay   */
  4. /* *This program only work on AT compatibles - (286/386)* */
  5. /* Written 03/17/89 - 21:35      Jim Lawhon               */
  6.  
  7. /*     Note ROM BIOS must be 11/15/85 or later            */
  8.  
  9.  
  10. #include <dos.h>
  11.  
  12. main ()
  13. {
  14.  union REGS inregs, outregs;
  15.  inregs.h.ah = 0x03;                      /* Function 03h */
  16.  inregs.h.al = 0x05;                      /* Sub-Function 05h */
  17.  inregs.h.bh = 0x00;                      /* repeat delay - HEX 00(shortest) to HEX 03(longest) */
  18.  inregs.h.bl = 0x00;                      /* repeat rate  - HEX 00(fastest)  to HEX 1F(slowest) */
  19.  int86 (0x16, &inregs, &outregs);         /* Int 16h with regs set */
  20. }
  21.