Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-lcc!pyramid!voder!kontron!cramer From: cramer@kontron.UUCP (Clayton Cramer) Newsgroups: comp.sys.ibm.pc,comp.lang.c Subject: Microsoft C: Getting The DS & SS For A Module Message-ID: <1273@kontron.UUCP> Date: Tue, 6-Jan-87 13:49:15 EST Article-I.D.: kontron.1273 Posted: Tue Jan 6 13:49:15 1987 Date-Received: Tue, 6-Jan-87 23:16:58 EST Organization: Kontron Electronics, Mt. View, CA Lines: 13 Xref: mnetor comp.sys.ibm.pc:813 comp.lang.c:604 I'm writing a program using Microsoft C and MASM which installs a new interrupt 17 ISR. The new ISR calls a C function. How do I get the DS and SS values for the C function to set before calling the C function? If this were an ordinary assembler program calling a C function, this would be very easy to do, since the linker stuffs the stack into the same segment with the data for C, but the ISR has its own DS and SS when invoked, and the C function objects vigorously to using the DS and SS of the ISR! Clayton E. Cramer Slave + firearm = free man