home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8692 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.9 KB  |  41 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!zrz.tu-berlin.de!news.netmbx.de!Germany.EU.net!nixpbe!news.sni.de!fam168!frank
  3. From: Frank Hoffmann <fh.pad@sni.de>
  4. Subject: Re: Why can't I hook INT 21h???
  5. Message-ID: <frank.714406708@fam168>
  6. Sender: news@nixpbe.sni.de
  7. Organization: Siemens Nixdorf Info.Sys. AG, Paderborn, Germany
  8. References: <14340@mindlink.bc.ca> <1992Aug18.034041.195326@zeus.calpoly.edu>
  9. Date: Fri, 21 Aug 1992 14:18:28 GMT
  10. Lines: 29
  11.  
  12. rmathews@zeus.calpoly.edu (Bob Mathews) writes:
  13.  
  14. >Charlie_Hutchins@mindlink.bc.ca (Charlie Hutchins) writes:
  15. >>Okay, maybe someone could help me here.  I am trying to write a TSR
  16. >>that hooks interrupt 21h but whenever I try and hook that vector I
  17. >>get an invalid command.com error and my system crashes.  I am using
  18. >>TC++ 3.0 ....
  19. >[code deleted]
  20.  
  21. >The turbo c interrupt function automatically saves all cpu registers.
  22. >The return values from DOS are getting clobbered.  Code like this
  23. >absolutely needs to be written in assembly.  You need to have complete
  24. >control of what's happening to the machine.
  25.  
  26. >swehtam bob
  27.  
  28. Same does MSC 5/6. You must write in ASM as well or add additional ASM-Code
  29. to restore the regs and the stack-ptr.
  30.  
  31. frank
  32. -------------------------------------------------------------------------------
  33.     __________                  Frank Hoffmann
  34.      /             /    Siemens-Nixdorf Info. Systems Voice: [+49] 5251 812 209
  35.     /__           /      Dept: AP 52 / SW-Production    Fax: [+49] 5251 811 599
  36.    /' _  _   __  //            Fuerstenallee 7          USA: fh.pad@sni-usa.com
  37. __/__/__(_(_/ /_/^\__    W-4790 Paderborn / Germany    !USA: fh.pad@sni.de
  38. -------------------------------------------------------------------------------
  39. ( * )  <--- The green dot.  This mail is reusable. Copy to /dev/null instantly.
  40. -------------------------------------------------------------------------------
  41.