Article View: comp.lang.misc
Article #4280Re: Accessing registers in Microsoft Visual C++???
From: Thomas R Goerz
Date: Fri, 29 Sep 1995 13:42
Date: Fri, 29 Sep 1995 13:42
33 lines
1834 bytes
1834 bytes
Andreas Jonsson (sa324@utb.shv.hb.se) wrote:
: >> I was wondering if Microsoft C compilers have an equivalent to
: >> Borland's register pseudovariables. I'm trying to compile IPX/SPX
: >> functions written for the Borland compiler in Microsoft's compiler, but
: >> I'm receiving compiler errors.
: >>
: >> For example, the following code:
: >>
: >> _BX = 0x0010;
: >> _AL = 0x00;
: >
: >Microsoft doesn't have this -- only Borland has it.
:
: How could I do it in Microsoft VC 1.5++?
:
:
: ----------------------------------------------------------------
: ! Andreas Jonsson, Berghalla, S-516 92 ASPERED, SWEDEN !
: ! E-mail: sa324@utb.shv.hb.se macki@enter.hb.se !
: !--------------------------------------------------------------!
: ! Computer Science Applied to System Analysis and Design !
: ! University of Boras, Sweden !
: ----------------------------------------------------------------
:
I forget the exact syntax, but something like this should work:
__asm {
mov bx,0x0010
mov al,0x00
}
This is how you do inline assembly in Microsoft C++
Technical Details
Message-ID:
<44gt4a$17u@mozo.cc.purdue.edu>Path:
arc1-ca.pugleaf.net!mozo.cc.purdue.edu!not-for-mailReferences:
<441ccm$mqu@ixnews7.ix.netcom.com> <44avpe$ng7@electra.saaf.se> <1995Sep28.233234.21403@gdunix.gd.chalmers.se>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mozo.cc.purdue.edu!not-for-mail From: goerz@news.cc.purdue.edu (Thomas R Goerz) Newsgroups: comp.lang.misc,comp.lang.asm.x86,comp.os.msdos.programmer,comp.lang.c,comp.lang.c++ Subject: Re: Accessing registers in Microsoft Visual C++??? Followup-To: comp.lang.misc,comp.lang.asm.x86,comp.os.msdos.programmer,comp.lang.c,comp.lang.c++ Date: 29 Sep 1995 13:42:34 GMT Organization: Purdue University Message-ID: <44gt4a$17u@mozo.cc.purdue.edu> References: <441ccm$mqu@ixnews7.ix.netcom.com> <44avpe$ng7@electra.saaf.se> <1995Sep28.233234.21403@gdunix.gd.chalmers.se> NNTP-Posting-Host: schenectady.ecn.purdue.edu X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]