home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8963 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.4 KB

  1. Xref: sparky comp.os.msdos.programmer:8963 comp.os.msdos.misc:4993
  2. Newsgroups: comp.os.msdos.programmer,comp.os.msdos.misc
  3. Path: sparky!uunet!gatech!taco!dspascha
  4. From: dspascha@eos.ncsu.edu (DAVID SCOTT PASCHAL)
  5. Subject: Re: Why ms-dos is non reentrant
  6. Message-ID: <1992Sep1.212240.28439@ncsu.edu>
  7. Originator: dspascha@c00089-100lez.eos.ncsu.edu
  8. Lines: 15
  9. Sender: news@ncsu.edu (USENET News System)
  10. Reply-To: dspascha@eos.ncsu.edu (DAVID SCOTT PASCHAL)
  11. Organization: North Carolina State University, Project Eos
  12. References:  <92245.122042A10742@TRMETU.BITNET>
  13. Date: Tue, 1 Sep 1992 21:22:40 GMT
  14.  
  15.  
  16. Hi.  There are plenty of mostly undocumented INT 21h calls that can be used to
  17. determine if it's safe to make a DOS call from within an interrupt handler, but
  18. there are also two function calls that can be used to get the address of the
  19. Swappable Data Area (SDA) so that if a DOS call is being processed all you do is
  20. swap out the SDA into your own buffer, make all the DOS calls you want, and
  21. swap the saved data back into the SDA!  I can't remember the specifics since I
  22. don't have any docs with me, but I know it's INT 21h function 5D06h for DOS 3.x
  23. and function 5D0Bh for DOS 4.x and later.  However, you still have to pay
  24. attention to "critical sections" delimited by calls to certain (sub)functions
  25. of INT 2Ah.  The book <Undocumented DOS> by Ralf Brown, Andrew Schulman, and
  26. others explains all about this.
  27.  
  28. Tschuess,
  29. David Paschal
  30.