Xref: utzoo comp.lang.c:20264 alt.msdos.programmer:245 comp.sys.ibm.pc:32356 Path: utzoo!attcan!uunet!microsoft!t-davidw From: t-davidw@microsoft.UUCP (David Weigant) Newsgroups: comp.lang.c,alt.msdos.programmer,comp.sys.ibm.pc Subject: Re: interrupt type in Turbo C Message-ID: <7178@microsoft.UUCP> Date: 31 Jul 89 01:05:59 GMT References: <2388@pur-phy> <24259@abbott.mips.COM> Reply-To: t-davidw@microsoft.UUCP (David Weigant) Distribution: na Organization: Microsoft Corp., Redmond WA Lines: 21 In article <24259@abbott.mips.COM> blanier@mips.COM (Brian Lanier) writes: >In article <2388@pur-phy> murphy@pur-phy (William J. Murphy) writes: >>I looked at the manual for TC and found that this is specific >>to TC, so my question is how would I implement this in MicroSoft C 5.1? > >From what I have read, the way to accomplish this in MSC is to use the >-S switch to generate the source listing and change "ret" to "iret". Of >course, you then have to assemble/link that code in with the C. The interrupt keyword is supported by both MSC and QC, so it is not necessary to hack the generated source listing or modify the .exe with debug. You can find information on using the interrupt keyword in the readme.doc that comes with MSC 5.x or you can query on 'interrupt' inside QC 2.00. For getting and setting interrupt vectors, the functions _dos_getvect and _dos_setvect can be used. They map to DOS functions 0x35 and 0x25 respectively. Hope this helps David Weigant