How to define data for X86 assembler?

Hi,

Is there any documentation on the syntax accepted by X86 assembler?

I have this code in my .asm file to define data:

text db “127.1.1.1 google.lk

But X86 assembler fails to understand it, with error:

error: unexpected token in argument list
text db “127.1.1.1 google.lk

^

Any ideas how to fix this problem?

I tried to find some documentation on the syntax for X86 assembler, to no avail.

Thank you,

Jun

You can good examples in llvm/test/MC/AsmParser.

I guess .ascii directive should do the job for you.

–artem//

You can good examples in llvm/test/MC/AsmParser.

I guess .ascii directive should do the job for you.

Oh, that is .string. Thanks for the pointer, Artem!