🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6714

Re: Notes about Borland C++ interrupt keyword

#6714
From: Gene Ressler
Date: Tue, 21 May 1991 00:46
25 lines
1794 bytes
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
Technical Details
Message-ID: <1991May21.004657.22129@cs.cornell.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!ressler
References: <1991May20.171545.23591@amc.com> <1991May20.230908.7178@maytag.waterloo.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.programmer,alt.msdos.programmer
Path: arc1-ca.pugleaf.net!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