Article View: comp.os.msdos.programmer
Article #4466Re: MSC 5.1 Question
From: Steve Resnick
Date: Thu, 31 Jan 1991 18:12
Date: Thu, 31 Jan 1991 18:12
39 lines
2144 bytes
2144 bytes
In article <676@dtg.nsc.com> moore@dtg.nsc.com (Joseph Moore) writes:
>>In article <91026.223149ACPS2924@Ryerson.Ca> ACPS2924@Ryerson.Ca writes:
>>Is it possible in MSC 5.1 to gain access to the registers directly.
>>Turbo C has the _AX,_BX... pseudo-variables for them
>>is this possible in MSC and if so HOW???
>>
>Yes, it's possible, but as far as I know only for interrupt calls,
>using the dos.h library structures REGS and SREGS.
>See the documentation in the run-time library reference under int86
>and int86x (pp 365-369), or send me email for more info.
>
This is not the same thing, Joe. The Turbo C psuedo-variables are referenced
as the register values at that point in the code. When you call int86,
you are setting up a routine which loads the register variables from
REGS and SREGS, calling your favorite interrupt and then reloading the
variables back from the registers. This is, however, different than the
psuedo-variables. In Turbo C, if you had a line of C which read:
int x = _AX;
The resulting 80x86 code would be
mov [x],AX (x in this context is dependant on memory
model)
This cannot be done in MSC 5.1. It can't.
Cheers!
Steve
--
-------------------------------------------------------------------------------
resnicks@netcom.com, apple!camphq!105!steve.resnick, IFNA: 1:143/105.0,
USNail: 530 Lawrence Expressway, Suite 374
Sunnyvale, Ca 94086
- In real life: Steve Resnick. Flames, grammar and spelling errors >/dev/null
0x2b |~ 0x2b, THAT is the question.
-------------------------------------------------------------------------------
Technical Details
Message-ID:
<22431@netcom.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!netcom!resnicksReferences:
<91026.223149ACPS2924@Ryerson.Ca> <1991Jan30.181122.5734@murdoch.acc.Virginia.EDU> <676@dtg.nsc.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!netcom!resnicks
From: resnicks@netcom.UUCP (Steve Resnick)
Newsgroups: comp.os.msdos.programmer
Subject: Re: MSC 5.1 Question
Message-ID: <22431@netcom.UUCP>
Date: 31 Jan 91 18:12:09 GMT
References: <91026.223149ACPS2924@Ryerson.Ca> <1991Jan30.181122.5734@murdoch.acc.Virginia.EDU> <676@dtg.nsc.com>
Organization: Netcom- The Bay Area's Public Access Unix System {408 241-9760 guest}
Lines: 39