home *** CD-ROM | disk | FTP | other *** search
- Path: 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.190135.25557@zooid.guild.org>
- Date: Tue, 25 Aug 1992 19:01:35 GMT
- References: <BtCwo7.C1o.2@cs.cmu.edu> <rdippold.714442087@cancun> <BtHnyM.5o7@ireq.hydro.qc.ca>
- Organization: ZOOiD BBS
- Lines: 16
-
- beaurega@ireq.hydro.qc.ca (Denis Beauregard) writes:
- >How could you write a self-moving program in C? Because to be under 300
- >bytes, you have to start at 0x5C in the PSP
-
- You're forgetting about the only really decent "feature" of 8086's
- segments, that's terribly easy to relocate code that doesn't make any
- absolute segment references. So it's not too hard to write a C
- programme that can relocate part of itself to PSP:0x60 (aka PSP+6:0).
-
- Ross Ridge
-
- --
- Ross Ridge - The Great HTMU l/ //
- [OO][oo]
- ross@zooid.guild.org /()\/()/
- uunet.ca!zooid!ross db //
-