home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- 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
- From: Frank Hoffmann <fh.pad@sni.de>
- Subject: Re: Why can't I hook INT 21h???
- Message-ID: <frank.714406708@fam168>
- Sender: news@nixpbe.sni.de
- Organization: Siemens Nixdorf Info.Sys. AG, Paderborn, Germany
- References: <14340@mindlink.bc.ca> <1992Aug18.034041.195326@zeus.calpoly.edu>
- Date: Fri, 21 Aug 1992 14:18:28 GMT
- Lines: 29
-
- rmathews@zeus.calpoly.edu (Bob Mathews) writes:
-
- >Charlie_Hutchins@mindlink.bc.ca (Charlie Hutchins) writes:
- >>Okay, maybe someone could help me here. I am trying to write a TSR
- >>that hooks interrupt 21h but whenever I try and hook that vector I
- >>get an invalid command.com error and my system crashes. I am using
- >>TC++ 3.0 ....
- >[code deleted]
-
- >The turbo c interrupt function automatically saves all cpu registers.
- >The return values from DOS are getting clobbered. Code like this
- >absolutely needs to be written in assembly. You need to have complete
- >control of what's happening to the machine.
-
- >swehtam bob
-
- Same does MSC 5/6. You must write in ASM as well or add additional ASM-Code
- to restore the regs and the stack-ptr.
-
- frank
- -------------------------------------------------------------------------------
- __________ Frank Hoffmann
- / / Siemens-Nixdorf Info. Systems Voice: [+49] 5251 812 209
- /__ / Dept: AP 52 / SW-Production Fax: [+49] 5251 811 599
- /' _ _ __ // Fuerstenallee 7 USA: fh.pad@sni-usa.com
- __/__/__(_(_/ /_/^\__ W-4790 Paderborn / Germany !USA: fh.pad@sni.de
- -------------------------------------------------------------------------------
- ( * ) <--- The green dot. This mail is reusable. Copy to /dev/null instantly.
- -------------------------------------------------------------------------------
-