home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8804 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1017 b 

  1. Path: sparky!uunet!utcsri!torsqnt!geac!alias!imax!beltrix!zooid!ross
  2. From: Ross Ridge <ross@zooid.guild.org>
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Why can't I hook INT 21h???
  5. Message-ID: <1992Aug25.190135.25557@zooid.guild.org>
  6. Date: Tue, 25 Aug 1992 19:01:35 GMT
  7. References: <BtCwo7.C1o.2@cs.cmu.edu> <rdippold.714442087@cancun> <BtHnyM.5o7@ireq.hydro.qc.ca>
  8. Organization: ZOOiD BBS
  9. Lines: 16
  10.  
  11. beaurega@ireq.hydro.qc.ca (Denis Beauregard) writes:
  12. >How could you write a self-moving program in C?  Because to be under 300
  13. >bytes, you have to start at 0x5C in the PSP
  14.  
  15. You're forgetting about the only really decent "feature" of 8086's
  16. segments, that's terribly easy to relocate code that doesn't make any 
  17. absolute segment references.  So it's not too hard to write a C
  18. programme that can relocate part of itself to PSP:0x60 (aka PSP+6:0).
  19.  
  20.                             Ross Ridge
  21.  
  22. -- 
  23. Ross Ridge - The Great HTMU                         l/     //
  24.                                     [OO][oo]
  25. ross@zooid.guild.org                            /()\/()/
  26. uunet.ca!zooid!ross                             db     //
  27.