🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3431

Re: Critical Error Handlers and QEMM

#3431
From: George Jetson
Date: Tue, 29 Sep 1992 14:30
33 lines
2358 bytes
In article <1992Sep29.123152.20212@inmet.camb.inmet.com> lipsett@nola.camb.inmet.com (Roger Lipsett) writes:
>
>I am in the process of modifying a critical error handler in various ways,
>mostly for my own edification and amusement.  This handler is actually a TSR
>that hooks INT24.  It appears to me that such a handler cannot be installed
>in the usual way (that is, using INT21 function 25), because when the
>program terminates staying resident, DOS restores the old values of the
>INT24 vector from the PSP.  Thus, the program must write the address of the
>new handler into its own PSP before terminating.  My problem is that I would
>like to be able to load the thing high using QEMM (for example), but would
>not like to be *forced* to do so.

A couple of ideas:
	1) Hook the timer interrupt, and wait a few seconds after going
	   resident.  Then install yourself into the interrupt table.
	   This gets around the "COMMAND.COM undoes all my efforts"
	   problem.
	2) Look into Ralf's AMISLIB system.  Although I've never used
	   it, it seems to me that it would allow you to auto load-hi, and 
	   thus perhaps get around this problem.  As far as I know,
	   though, the problem with AMISLIB is that it is assembler
	   based; I don't know if you can use it if, by chance, you are
	   coding in an HLL.

************************************************************************
A note to new readers:  the weasely :-) symbol is frowned upon in this
group.  Any questions, see Phil Gustafson who will gladly rearrange your
diodes for you.
			- From the AFU FAQ -

	- pynq@quads.uchicago.edu, who is still costing the net
	  hundreds, if not thousands, of dollars, every time he posts -
************************************************************************
Technical Details
Message-ID: <1992Sep29.143021.9570@midway.uchicago.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!ux1.cso.uiuc.edu!uchinews!quads!pynq
References: <1992Sep29.123152.20212@inmet.camb.inmet.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!ux1.cso.uiuc.edu!uchinews!quads!pynq
From: pynq@quads.uchicago.edu (George Jetson)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Critical Error Handlers and QEMM
Message-ID: <1992Sep29.143021.9570@midway.uchicago.edu>
Date: 29 Sep 92 14:30:21 GMT
Article-I.D.: midway.1992Sep29.143021.9570
References: <1992Sep29.123152.20212@inmet.camb.inmet.com>
Sender: news@uchinews.uchicago.edu (News System)
Reply-To: pynq@midway.uchicago.edu
Distribution: usa
Organization: D. J. Dougherty & Associates
Lines: 33