Elias Bachaalany
Elias Bachaalany

Reputation: 1200

Visual C++ inliner assembler and defining a string?

How can I get VC inliner assembler to accept something like:

__asm
{
  call L1
  db "Hello",0
  L1:
  nop
  nop
}

Or I have to use _emit 0xxNNh all the way?

Upvotes: 0

Views: 766

Answers (1)

rickythefox
rickythefox

Reputation: 6851

You can't use data directives in inline assembly.

Check out http://msdn.microsoft.com/en-us/library/h70hd396.aspx for explanation.

Upvotes: 1

Related Questions