home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8438 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.1 KB

  1. Path: sparky!uunet!mcsun!sun4nl!wtrlnd!contrast!postmaster
  2. From: berend@contrast.wlink.nl (Berend de Boer)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Protected Mode Tips Bugfixes
  5. Message-ID: <727662763.AA01193@contrast.wlink.nl>
  6. Date: Thu, 21 Jan 1993 20:40:58
  7. Sender: postmaster@contrast.wlink.nl
  8. Lines: 32
  9.  
  10. Hello Protectors,
  11.  
  12. Of course, a few hours after my message has been released to the net,
  13. bugfixes seem necessary )-:
  14.  
  15. Some minor bugfixes:
  16.  
  17. * In the example about allocating memory below the 1MB, memory is
  18.   allocated but not released. As we have only 1MB down their, this can
  19.   become a problem ;-)
  20.   Fix:  adding the statement
  21.     GlobalDosFree(RealModeSel);
  22.   will clean things up
  23.  
  24. * The solution to interrupts which requires parameters passed on the
  25.   stack has a bug. The
  26.     les  di,Regs
  27.   statement does not work of course. Replace by
  28.     mov  di,OFFSET Regs
  29.     mov  dx,SEG Regs
  30.     mov  es,dx
  31.   This does not work when Regs is declared in the stack segment (well
  32.   done Borland....), you encounter bug number 16, just as I did.... (see
  33.   next message)
  34.  
  35.  
  36. Groetjes,
  37.  
  38. Berend. (-:
  39. fido: 2:281/527.23
  40. email: berend@contrast.wlink.nl
  41.  
  42.