Article View: comp.os.msdos.programmer
Article #985Smallest TSR (was Re: Why can't I hook INT 21h???)
From: Denis Beauregard
Date: Thu, 27 Aug 1992 02:53
Date: Thu, 27 Aug 1992 02:53
31 lines
2160 bytes
2160 bytes
In article <19866@plains.NoDak.edu> person@plains.NoDak.edu (Brett G Person ) writes: >Can I use in-line assembly when I do this? :-) >C does have it's place, but for bare-bones control over the hardware I > I know that C and C++ are great languages. I spend days to program in C++. The idea of a HLL _only_ smallest TSR is just to demonstrate that there is a limit, at least in size, to what you could do in C or Pascal (I while I don't use Pascal, some do). But, from first example of a small TSR we got, the program was heavily using inline or assembly code using particularities of C to make it easier to program in assembly than direct assembly. However, this is ASM, not HLL (high level language). In other words, it is curious to need to use the lower level language to get the more (or the less in space occupied) from a higher level language (or isn't it natural : the more you know, the more you can do). Indeed, we could have 3 classes : pure ASM, pure HLL, and mixed. Probably pure ASM will be the lower, mixed next, and pure HLL the biggest. Knowing the PSP is such that you need some lost space, I have not yet seen an example using the environment space to still use less memory! Perhaps, this would be reliable after checking all the DOS memory structure to be sure this environment is at the right place. -- \_\ Denis Beauregard * internet:beaurega@ireq.hydro.qc.ca / \ Genealogiste officiel : Beauregard/Jarret/Jarest/Vincent J __> Vient de paraitre : Andre Jarret et ses Ancetres \_.-=== En vente par l'auteur Opinions ? Et pis non !
Technical Details
Message-ID:
<BtMG1E.A6D@ireq.hydro.qc.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!beauregaReferences:
<1992Aug21.175406.3881@alw.nih.gov> <BtCwo7.C1o.2@cs.cmu.edu> <19866@plains.NoDak.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!beaurega From: beaurega@ireq.hydro.qc.ca (Denis Beauregard) Newsgroups: comp.os.msdos.programmer Subject: Smallest TSR (was Re: Why can't I hook INT 21h???) Message-ID: <BtMG1E.A6D@ireq.hydro.qc.ca> Date: 27 Aug 92 02:53:38 GMT References: <1992Aug21.175406.3881@alw.nih.gov> <BtCwo7.C1o.2@cs.cmu.edu> <19866@plains.NoDak.edu> Sender: news@ireq.hydro.qc.ca (Netnews Admin) Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada Lines: 31