Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get "REGISTER" variables recognized by the Microsoft Compiler

Status
Not open for further replies.

markcm

Programmer
Aug 2, 2001
10
US
Hi,

I need to get some legacy C++ (Borland) code to compile under the Microsoft Visual C++ compiler. However, the Microsoft compiler complains that the "REGISTER" variables (i.e. the _AH, _AL and _AX variables) are not recognized as registers by the Microsoft compiler. Does anyone know how to get around this problem??

An example of the C++ code that is failing compile follows:

_AH = enhancedKeyBrd;
geninterrupt(0x16);
asciiScan = _AX;
return (int) _AL;

THANKS,
Mark Michaud.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top