Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!ucla-cs!todd From: todd@SEAS.UCLA.EDU Newsgroups: comp.lang.c Subject: How to return from MS C function (as if from interupt) Message-ID: <16166@shemp.CS.UCLA.EDU> Date: 24 Sep 88 00:14:22 GMT Sender: news@CS.UCLA.EDU Reply-To: todd@SEAS.UCLA.EDU (Todd Booth) Organization: UCLA School Of Engineering & Applied Science Lines: 14 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@seas.ucla.EDU / BitNet csdctgb@uclamvs.bitnet UUCP {ihnp4,ucbvax}!ucla-cs!todd / 213 825-1933