Article View: comp.os.msdos.programmer
Article #4421Re: TSR PROGRAMMING PROBLEM
From: Bob Davis
Date: Tue, 29 Jan 1991 19:47
Date: Tue, 29 Jan 1991 19:47
64 lines
3734 bytes
3734 bytes
In article <1991Jan29.173752.10045@bronze.ucs.indiana.edu> yawei@bronze.ucs.indiana.edu (mr. yawei) writes:
>In article <8256@ucdavis.ucdavis.edu> chiang@iris.ucdavis.edu (Tom Chiang) writes:
>>
[DELETIONS]
>
>This is called the DOS re-entrancy problem which anyone who is teaching
>you to write TSRs should have told you about. Simply speaking, DOS
>cannot be entered twice. Since the int 16h request most likely comes
>from inside DOS, issuing another DOS call destroys the stack of the
>first call thus causing the system to crash. (Actual situation is more
>complicated since DOS uses several stacks. Try to get some books on this
>subject. Unfortunately, I can't think of any good books on writing
>TSRs. Has anyone seen one?)
>
Those wishing to learn more about the writing of TSRs might
be interested in my evolving software package called TBONES. The
current preliminary version is TBONES07, with 08 coming soon.
E-mail for a copy.
The following is an excerpt from TBONES07.DOC:
SOURCES OF FURTHER INFORMATION ON PROGRAMMING TSRs:
BOOKS:
-----
One of the best treatments I know of on the complex considerations
in writing a robust TSR appears in:
_Inside DOS: A Programmer's Guide_
Author: Michael J. Young
Publisher: SYBEX, 490 pp., (C)1988, 1990.
Chapter 11: "Memory Residency" pp. 321-360.
A book which contains a wealth of information useful in designing
good TSRs is:
_Undocumented DOS: A Programmer's Guide to Reserved
MS-DOS Functions and Data Structures_
by Andrew Schulman, Raymond J. Michels, Jim Kyle,
Tim Paterson, David Maxey, and Ralf Brown.
Publisher: Addison-Wesley Publishing Company, Inc., (C)1990.
Chapter 5: "Memory Resident Software: Pop-ups and
Multitasking" by Michels, Paterson, and
Schulman.
I also have learned much from the book:
_DOS Programmer's Reference, 2nd Edition_
by Terry Dettmann and revised for 2nd Edition by Jim Kyle
(C)1989 by QUE Corporation, Programming Series
I have found it indispensable as a source for detailed DOS programming
information.
The Waite Group's _Microsoft Macro Assembler Bible_ by Nabaiyoti
Barkakati has been most useful on Assembly Language matters.
_____________________________________________________________________________
Bob Davis, UofALA alum \\ INTERNET: sonny@trantor.harris-atd.com | _ _ |
Harris Corporation, ESS \\ UUCP: ...!uunet!x102a!trantor!sonny |_| |_| | |
Advanced Technology Dept.\\ AETHER: K4VNO |==============|_/\/\/\|_|
PO Box 37, MS 3A/1912 \\ VOICE: (407) 727-5886 | I SPEAK ONLY | |_| |_| |
Melbourne, FL 32902 \\ FAX: (407) 729-3363 | FOR MYSELF. |_________|
Technical Details
Message-ID:
<5369@trantor.harris-atd.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!lll-winken!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!trantor.harris-atd.com!charybdis!sonnyReferences:
<1991Jan26.195955.12946@ugle.unit.no> <1991Jan26.220820.7855@uwasa.fi> <8256@ucdavis.ucdavis.edu> <1991Jan29.173752.10045@bronze.ucs.indiana.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!lll-winken!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!trantor.harris-atd.com!charybdis!sonny From: sonny@charybdis.harris-atd.com (Bob Davis) Newsgroups: comp.os.msdos.programmer Subject: Re: TSR PROGRAMMING PROBLEM Message-ID: <5369@trantor.harris-atd.com> Date: 29 Jan 91 19:47:52 GMT References: <1991Jan26.195955.12946@ugle.unit.no> <1991Jan26.220820.7855@uwasa.fi> <8256@ucdavis.ucdavis.edu> <1991Jan29.173752.10045@bronze.ucs.indiana.edu> Sender: news@trantor.harris-atd.com Reply-To: sonny@trantor.harris-atd.com (Bob Davis) Organization: Advanced Technology Dept., Harris ESS, Melbourne, FL Lines: 64