home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / TECLADO / STUFFKB2.ZIP / BUFFERKB.V10 < prev    next >
Encoding:
Text File  |  1990-11-17  |  1.4 KB  |  35 lines

  1.          JMP   START
  2.  
  3.          DB    0Dh,0Ah,"BufferKB v 1.0 A Utility to Enlarge BIOS's Keyboard Buffer.",0Dh,0Ah
  4.          DB    'Written by Ed Derzawiec',0Dh,0Ah
  5.          DB    '6 Sweet Fern Rd, Cape Elizabeth, ME  04107',0Dh,0Ah
  6.          DB    'Declared Public Domain, 1990'
  7.          DB    1Ah           ;Clean up a listing of this .COM file
  8.  
  9.  
  10. ParamLen EQU   080           ;PSP offset To Length Of Parameter String
  11. Params   EQU   081           ;PSP offset to Parameters
  12.  
  13. Head     EQU   01A           ;BIOS Pointer Location to Current Head and
  14. Tail     EQU   01C           ;Tail Of Circular Buffer
  15. KeyStart EQU   080           ;BIOS Pointer Location of Actual Start and
  16. KeyEnd   EQU   082           ;End of the Circular Buffer
  17.  
  18. NewStart DW    0B0           ;A variable for the New Starting Offset and
  19. NewSize  DW    2*32          ;Size of the Keyboard Buffer.
  20.                              ;Variables Allow Easy Modification in Future
  21.                              ;This BIOS area appears unused
  22.                              ;It doubles the buffer from 16 to 32 Characters
  23.  
  24. Start:   PUSH  ES
  25.          MOV   ES,AX,040     ;BIOS Data Segment resides in Page 40
  26.          MOV   AX,NewStart
  27.          MOV   ES:w[KeyStart],AX
  28.          MOV   ES:w[Head],AX
  29.          MOV   ES:w[Tail],AX
  30.          ADD   AX,NewSize
  31.          MOV   ES:w[KeyEnd],AX
  32.          POP   ES
  33. Exit:    SUB   AH,AH
  34.          INT   21h           ;Exit Program
  35.