Microsoft C: Getting The DS & SS For A Module

Clayton Cramer cramer at kontron.UUCP
Wed Jan 7 04:49:15 AEST 1987


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



More information about the Comp.lang.c mailing list