Article View: comp.os.msdos.programmer
Article #874Re: Why can't I hook INT 21h???
From: Ross Ridge
Date: Tue, 25 Aug 1992 18:45
Date: Tue, 25 Aug 1992 18:45
23 lines
1258 bytes
1258 bytes
Ralf.Brown@B.GP.CS.CMU.EDU writes: >The TSR I was thinking of swaps two pairs of keys on the keyboard in 53 >bytes of resident code. You need to keep the first 64 bytes of the PSP >(though you can clobber the first ten), so the TSR actually takes 128 >bytes when loaded low, 64 when loaded into a UMB. If I had known that... Hmm... why can you chuck the PSP when loaded into a UMB but not when loaded low? >I've also seen a *removable* TSR that takes only 64 bytes at the top of >conventional memory. I didn't put the functionality into tsr64.c, but it could remove the TSR by seeing were the hooked interrupted points to, do a memcmp to check if what's there is our ISR, unhooking it, and then freeing it's memory. Ross Ridge -- Ross Ridge - The Great HTMU l/ // [OO][oo] ross@zooid.guild.org /()\/()/ uunet.ca!zooid!ross db //
Technical Details
Message-ID:
<1992Aug25.184507.25361@zooid.guild.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!utcsri!torsqnt!geac!alias!imax!beltrix!zooid!rossReferences:
<2a964930@ralf>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!torsqnt!geac!alias!imax!beltrix!zooid!ross From: Ross Ridge <ross@zooid.guild.org> Newsgroups: comp.os.msdos.programmer Subject: Re: Why can't I hook INT 21h??? Message-ID: <1992Aug25.184507.25361@zooid.guild.org> Date: Tue, 25 Aug 1992 18:45:07 GMT References: <2a964930@ralf> Organization: ZOOiD BBS Lines: 23