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

  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.184507.25361@zooid.guild.org>
  6. Date: Tue, 25 Aug 1992 18:45:07 GMT
  7. References: <2a964930@ralf>
  8. Organization: ZOOiD BBS
  9. Lines: 23
  10.  
  11. Ralf.Brown@B.GP.CS.CMU.EDU writes:
  12. >The TSR I was thinking of swaps two pairs of keys on the keyboard in 53
  13. >bytes of resident code.  You need to keep the first 64 bytes of the PSP
  14. >(though you can clobber the first ten), so the TSR actually takes 128
  15. >bytes when loaded low, 64 when loaded into a UMB.
  16.  
  17. If I had known that...  Hmm... why can you chuck the PSP when loaded
  18. into a UMB but not when loaded low?
  19.  
  20. >I've also seen a *removable* TSR that takes only 64 bytes at the top of
  21. >conventional memory.
  22.  
  23. I didn't put the functionality into tsr64.c, but it could remove the TSR
  24. by seeing were the hooked interrupted points to, do a memcmp to check
  25. if what's there is our ISR, unhooking it, and then freeing it's memory.
  26.  
  27.                             Ross Ridge
  28.  
  29. -- 
  30. Ross Ridge - The Great HTMU                         l/     //
  31.                                     [OO][oo]
  32. ross@zooid.guild.org                            /()\/()/
  33. uunet.ca!zooid!ross                             db     //
  34.