home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10765 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.5 KB  |  53 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!unidui!rrz.uni-koeln.de!Germany.EU.net!mcsun!sun4nl!eur.nl!goossens
  3. From: goossens@cs.few.eur.nl (Rogier Goossens)
  4. Subject: Re: putting chars back to keyboard buffer...
  5. Message-ID: <1992Nov19.105503.12401@cs.few.eur.nl>
  6. Sender: news@cs.few.eur.nl
  7. Organization: Erasmus Universiteit Rotterdam
  8. References: <1992Nov10.204616.25750@slate.mines.colorado.edu> <lb00197.11@Corlac>
  9. Date: Thu, 19 Nov 1992 10:55:03 GMT
  10. Lines: 41
  11.  
  12. lb00197@Corlac (David Porco) writes:
  13.  
  14. > [...]
  15. >Some info you ought to know:
  16. >You can only fit 16 chars in this buffer (16 ASCII codes + 16 Scan Codes),
  17. >unless you are up to relocating and expanding the keboard buffer in your
  18. >program (not recommended for the weak of heart).
  19. >.
  20.  
  21. Relocating and expanding the keyboard buffer is, under certain circumstances,
  22. not that difficult at all. 
  23. As the four pointers in the bios data area are near pointers, relative to
  24. segment 0x0040, the keyboard buffer must be located between the addresses
  25. 0040:0000 and 1040:0000 (hex). If DOS ends at a segment address lower than
  26. 0x1040, the remaining memory can be used to relocate the keyboard buffer. 
  27. It suffices to allocate the memory, and set the four bios keyboard buffer
  28. pointers to point to it. A 64-byte program could do it.
  29.  
  30. If you possess DOS 5.0, and it is loaded high, there certainly is enough
  31. memory. When DOS is not loaded high, there probably isn't.
  32.  
  33. I have written a small (2k) assembly program to relocate the keyboard buffer. 
  34. It can also resize it on request. It could easily be modified to insert 
  35. characters into the buffer.
  36.  
  37. I can post it (binary and/or source) to this (or another) group if enough 
  38. people are interested. (it's about 15 pages uncompressed + 2k binary)
  39.  
  40. Rogier.
  41.  
  42.  
  43. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  44. ::                   :                          :                            ::
  45. ::  (((   ((((  ((   :  Rogier Goossens         :  Perfection is achieved,   ::
  46. ::  (  (    (  (  (  :  goossens@cs.few.eur.nl  :  not when there's nothing  ::
  47. ::  (((     (  (     :  Erasmus University      :  left to add, but when     ::
  48. ::  (  (  ( (  ( ((  :  Rotterdam               :  There's nothing left to   ::
  49. ::  (  (   (    ((   :  The Netherlands         :  Remove.                   ::
  50. ::                   :                          :                            ::
  51. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  52.  
  53.