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

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!DAHLS@FHYDRA.FYSEL.UNIT.NO
  3. From: dahls@fhydra.dnet.unit.no (Joern Yngve Dahl-Stamnes)
  4. Subject: Re: putting chars back to keyboard buffer...
  5. Message-ID: <00963E3F.C2CEE880@FHYDRA.FYSEL.UNIT.NO>
  6. Sender: news@ugle.unit.no (NetNews Administrator)
  7. Reply-To: dahls@fhydra.dnet.unit.no (Joern Yngve Dahl-Stamnes)
  8. Organization: University of Trondheim, NORWAY
  9. References: <1992Nov10.204616.25750@slate.mines.colorado.edu> <lb00197.11@Corlac>,<1992Nov19.105503.12401@cs.few.eur.nl>
  10. Date: Fri, 20 Nov 92 09:36:47 EST
  11. Lines: 29
  12.  
  13. Thus spoke the keyboard of goossens@cs.few.eur.nl (Rogier Goossens):
  14. >Relocating and expanding the keyboard buffer is, under certain circumstances,
  15. >not that difficult at all. 
  16. >As the four pointers in the bios data area are near pointers, relative to
  17. >segment 0x0040, the keyboard buffer must be located between the addresses
  18. >0040:0000 and 1040:0000 (hex). If DOS ends at a segment address lower than
  19. >0x1040, the remaining memory can be used to relocate the keyboard buffer. 
  20. >It suffices to allocate the memory, and set the four bios keyboard buffer
  21. >pointers to point to it. A 64-byte program could do it.
  22. >
  23. >If you possess DOS 5.0, and it is loaded high, there certainly is enough
  24. >memory. When DOS is not loaded high, there probably isn't.
  25. >
  26. >I have written a small (2k) assembly program to relocate the keyboard buffer. 
  27. >It can also resize it on request. It could easily be modified to insert 
  28. >characters into the buffer.
  29. >
  30. >I can post it (binary and/or source) to this (or another) group if enough 
  31. >people are interested. (it's about 15 pages uncompressed + 2k binary)
  32.  
  33. Yes please!
  34.  
  35. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+-+-+-+
  36. * I went back to my mother,           * Joern Yngve Dahl-Stamnes             *
  37. * I said, "I'm crazy ma, help me!"    * University of Trondheim              *
  38. * She said, "I know how it feels son, * The Norwegian Institute of Tech.     *
  39. * 'cause it runs in the family."      * Division of Physical Electronics     *
  40. *       - The Who, Quadrophenia       * e-mail: dahl-stamnes@delab.sintef.no *
  41. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+-+-+-+
  42.