🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #771

Re: my_tsr

#771
From: chris brennan
Date: Wed, 18 Nov 1992 02:50
28 lines
1744 bytes
In article <smithbm.721597007@craft.camp.clarkson.edu>, smithbm@craft.camp.clarkson.edu (Azrak) writes:
> 
> vincent@datmuc.UUCP (vincent) writes:
> 

> If you wish, I will post one of my TSRs for you to look at, but remember
> that it is completely in 8088 assembly, and I am not a CS major. The
> program might not be as efficient as possible, however it is quite
> stable and will not crash very easily.
> 
> - Brian  (smithbm@craft.camp.clarkson.edu)
> 
> As for my opinion for why it crashes, try saving all registers used
> in the interrupt routine. At least you will be at a "known state" and
> can go from there. Just remember to POP all registers in reverse order
> at the end of your routine.
> 
Hi Brian, 

your actual code was deleted when i read this article, but a frequent
problem which arises when writing tsr's is using DOS calls.

Dos is NON re-enterant. so you can not use calls to dos without first checking
the 'inDos' flag.  If Dos is busy and you still make a call, it will result in a 
corrupted stack and the system will crash.

-Bye Chris.  
 email: c.brennan@student.utas.edu.au.
Technical Details
Message-ID: <1992Nov18.025048.16933@newsroom.utas.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!rpi!batcomputer!munnari.oz.au!newsroom.utas.edu.au!c.brennan@student.utas.edu.au
References: <1348@datmuc.UUCP> <smithbm.721597007@craft.camp.clarkson.edu>

Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!rpi!batcomputer!munnari.oz.au!newsroom.utas.edu.au!c.brennan@student.utas.edu.au
From: c.brennan@student.utas.edu.au (chris brennan)
Subject: Re: my_tsr
Message-ID: <1992Nov18.025048.16933@newsroom.utas.edu.au>
Sender: news@newsroom.utas.edu.au
Organization: university of tasmania
References: <1348@datmuc.UUCP> <smithbm.721597007@craft.camp.clarkson.edu>
Date: Wed, 18 Nov 1992 02:50:48 GMT
Lines: 28