Xref: utzoo comp.os.msdos.programmer:5181 comp.sys.ibm.pc.programmer:2706 alt.msdos.programmer:2697 Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.programmer,alt.msdos.programmer Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!ressler From: ressler@CS.Cornell.EDU (Gene Ressler) Subject: Re: Notes about Borland C++ interrupt keyword Message-ID: <1991May21.004657.22129@cs.cornell.edu> Followup-To: ressler@cs.cornell.edu Summary: It _is_ in the manual Sender: news@cs.cornell.edu (USENET news user) Nntp-Posting-Host: turing4.cs.cornell.edu Organization: Cornell Univ. CS Dept, Ithaca NY 14853 References: <1991May20.171545.23591@amc.com> <1991May20.230908.7178@maytag.waterloo.edu> Date: Tue, 21 May 1991 00:46:57 GMT Lines: 25 In article <1991May20.230908.7178@maytag.waterloo.edu> dmurdoch@watstat.waterloo.edu (Duncan Murdoch) writes: >In article <1991May20.171545.23591@amc.com> jwbirdsa@polaris.amc.com () writes: >> >> Anyone writing interrupt handlers using TC++'s "interrupt" keyword >>should be aware that DS is not preserved into the function. DS is preserved >>through the function; the value of DS after the interrupt is the same as >>before. However, the value of DS while the function is executing is not the .... >I don't have any of the C flavours, but I'm surprised it's not documented >there. In TP, the prologue of an Interrupt procedure is explicitly given; .... >Duncan Murdoch >dmurdoch@watstat.waterloo.edu Both my TC++ manual (PG, pg 48) and my TC2.0 manual (UG, pg 319) state that DS is set. What else could be done to provide access to static data? This `behavior' is, practically speaking, the only one possible. (...that is, short of allowing statics in the code segment (ugh). I believe MSC provides this option.) Chalk up one more for the joys of segmented architectures. ;-> Gene