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

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!mcsun!sun4nl!eur.nl!goossens
  3. From: goossens@cs.few.eur.nl (Rogier Goossens)
  4. Subject: Re: putting chars back to keyboard buf.. Round 2..
  5. Message-ID: <1992Nov19.121947.19762@cs.few.eur.nl>
  6. Sender: news@cs.few.eur.nl
  7. Organization: Erasmus Universiteit Rotterdam
  8. References: <1992Nov12.180037.62744@slate.mines.colorado.edu>
  9. Date: Thu, 19 Nov 1992 12:19:47 GMT
  10. Lines: 29
  11.  
  12. iarit@slate.mines.colorado.edu (ARIT ISMAIL) writes:
  13.  
  14. >[...]
  15.  
  16. >    if (temp2 <= 0x3E)
  17.    --------------^^^^^
  18. >        temp2 = 0x1E;
  19.    -------------^^^^^
  20.  
  21. Instead of using constants for the start and end of the buffer, I would use the
  22. start and end pointers in the bios. (at offset 0x80 and 0x82).  If you don't, 
  23. and some program has moved the keyboard buffer, your program may cause part of
  24. the system (bios &/| dos) or program data area to be overwritten. Or your
  25. system may hang, or crash...
  26.  
  27. Rogier
  28.  
  29. P.S. I don't think this will solve your problem.
  30.  
  31.  
  32. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  33. ::                   :                          :                            ::
  34. ::  (((   ((((  ((   :  Rogier Goossens         :  Perfection is achieved,   ::
  35. ::  (  (    (  (  (  :  goossens@cs.few.eur.nl  :  not when there's nothing  ::
  36. ::  (((     (  (     :  Erasmus University      :  left to add, but when     ::
  37. ::  (  (  ( (  ( ((  :  Rotterdam               :  There's nothing left to   ::
  38. ::  (  (   (    ((   :  The Netherlands         :  Remove.                   ::
  39. ::                   :                          :                            ::
  40. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  41.