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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

assembler statements

Status
Not open for further replies.

MechanicalBoy

Technical User
Aug 11, 2002
11
PL
Hi All.
I have a problem with assembler statemets nasted in my source code. I spend some time reading help on asm, _asm , __asm directives. In my program i wrote such simple instruction:

Code:
asm mov ax,5

But when i run it i see following warning & error:
[C++ Warning] Unit1.cpp(14): W8002 Restarting compile using assembly.
[Tasm Fatal Error] Invalid command line.

Can anybody explain me what is wrong.
Thanks in advance.
 
I believe there some flags on the compiler line that need to be set to tell the compiler that the source codes has assembly. I don't remember what it is . . . ?
James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
How about either
#pragma asm
mov ax,5
#pragma endasm

or

asm {mov ax,5;}
Totte
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top