Article View: comp.lang.misc
Article #4279Re: Accessing registers in Microsoft Visual C++???
From: kim sang woo
Date: Tue, 26 Sep 1995 01:44
Date: Tue, 26 Sep 1995 01:44
27 lines
1420 bytes
1420 bytes
Rich Edwards (chappie@ix.netcom.com) wrote: : Hi there! : 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; this is not supported by VC++ and other compilers as well. The best way to rewrite this is use external assembler function. This is one of reason why I never use inline assembler in my C code. : if (_AL == 0) : return 0; : compiles in Borland, but I get an error "undeclared variable" message : w/ Microsoft. : I checked Microsoft's Knowledge base but found nothing. : Any help would be appreciated. : Thanks. : chappie@ix.netcom.com : Rich
Technical Details
Message-ID:
<447lt0$d88@mp.cs.niu.edu>Path:
arc1-ca.pugleaf.net!mp.cs.niu.edu!not-for-mailReferences:
<441ccm$mqu@ixnews7.ix.netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mp.cs.niu.edu!not-for-mail From: z929171@cs.niu.edu (kim sang woo) 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: 25 Sep 1995 20:44:00 -0500 Organization: Northern Illinois University Message-ID: <447lt0$d88@mp.cs.niu.edu> References: <441ccm$mqu@ixnews7.ix.netcom.com> NNTP-Posting-Host: mp.cs.niu.edu X-Newsreader: TIN [version 1.2 PL2]