Jun Koi via llvm-dev
2016-Feb-17 16:18 UTC
[llvm-dev] 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160218/ffe8033e/attachment.html>
Tamazov, Artem via llvm-dev
2016-Feb-17 18:33 UTC
[llvm-dev] How to define data for X86 assembler?
You can good examples in llvm/test/MC/AsmParser. I guess .ascii directive should do the job for you. --artem// From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Jun Koi via llvm-dev Sent: 17 February, 2016 19:18 To: llvm-dev at lists.llvm.org Subject: [llvm-dev] 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<http://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<http://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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160217/508c6979/attachment.html>
Jun Koi via llvm-dev
2016-Feb-18 02:05 UTC
[llvm-dev] How to define data for X86 assembler?
On Thu, Feb 18, 2016 at 2:33 AM, Tamazov, Artem <Artem.Tamazov at amd.com> wrote:> 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!> --artem// > > > > *From:* llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] *On Behalf Of *Jun > Koi via llvm-dev > *Sent:* 17 February, 2016 19:18 > *To:* llvm-dev at lists.llvm.org > *Subject:* [llvm-dev] 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160218/cb026906/attachment.html>