🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #14761

Microsoft C: Getting The DS & SS For A Module

#14761
From: Clayton Cramer
Date: Tue, 06 Jan 1987 18:49
13 lines
1063 bytes
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
Technical Details
Message-ID: <1273@kontron.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-lcc!pyramid!voder!kontron!cramer

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-lcc!pyramid!voder!kontron!cramer
From: cramer@kontron.UUCP (Clayton Cramer)
Newsgroups: comp.sys.ibm.pc,comp.lang.c
Subject: Microsoft C: Getting The DS & SS For A Module
Message-ID: <1273@kontron.UUCP>
Date: Tue, 6-Jan-87 13:49:15 EST
Article-I.D.: kontron.1273
Posted: Tue Jan  6 13:49:15 1987
Date-Received: Tue, 6-Jan-87 23:16:58 EST
Organization: Kontron Electronics, Mt. View, CA
Lines: 13