How to return from MS C function (as if from interupt)

todd at SEAS.UCLA.EDU todd at SEAS.UCLA.EDU
Sat Sep 24 10:14:22 AEST 1988


How can I design an MS C function with extra function entry and exit
code so that the 8086/8088 registers are preserved unpon entry and
restored on exit?  Are there any other considerations?  In Turbo-C, I
just use the "interrupt" function modifier.  For example:

void interrupt myhandler()
{
	...
}

thx, --todd booth / ucla data communications
ArpaNet todd at seas.ucla.EDU / BitNet csdctgb at uclamvs.bitnet
UUCP    {ihnp4,ucbvax}!ucla-cs!todd / 213 825-1933



More information about the Comp.lang.c mailing list