Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.pc » For DOS hacks with strong stomachs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
For DOS hacks with strong stomachs [message #79028] Sun, 02 June 2013 23:11
Anonymous
Karma:
Originally posted by: hagens@uwvax.ARPA (Rob Hagens)
Message-ID: <432@uwvax.ARPA>
Date: Thu, 20-Sep-84 11:59:48 EDT
Article-I.D.: uwvax.432
Posted: Thu Sep 20 11:59:48 1984
Date-Received: Wed, 26-Sep-84 03:29:11 EDT
Organization: U of Wisconsin CS Dept
Lines: 32


I have a large piece of code that wish to remain resident in memory.
I plan to do this via the dos hex 31 function (terminate, but remain
resident).

I have other programs which need to run, and occasionally let
this resident piece of code run. My mechanism for this would be:

	The user program does an int xxx (where xxx is some unused interrupt).

	The handler for int xxx puts a fake interrupt frame on the stack such
	that when the handler does a return from interrupt, control returns
	to the resident piece of code.

	The resident piece of code does its thing for a while, and then
	takes the other interrupt frame (the one created by the original
	int xxx) and does a return from interrupt, thus returning to the
	user program.

Now, none of this has been coded yet. What I am asking is:
1. Has anyone tried this before?
2. Does anyone know of any restrictions that dos has on resident code?
   (It doesn't look like it, from the documentation).
3. Any comments on this idea?

I realize that registers need to be saved/restored in the correct order.

Thanks in advance for trying to understand what I just said,
-- 
Rob Hagens @ wisconsin
...!{allegra,heurikon,ihnp4,seismo,sfwin,ucbvax,uwm-evax}!uwvax!hagens
hagens@wisc-rsch.arpa
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: command line tails in Turbo Pascal
Next Topic: dBASE II or III for Networks
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Apr 19 22:23:45 EDT 2024

Total time taken to generate the page: 0.03636 seconds