I have this file:

.code64
pop %rbx

that compiles nicely with yasm with the following directive:

yasm.exe asm.asm -o asm.bin -m amd64 --parser=gas

my question is: is there any way to use nasm parser to compile 64 bit code by using intel syntax? I don't really like AT&T syntax

有帮助吗?

解决方案

See the yasm manual about the BITS directive.

bits 64
pop rbx
yasm.exe asm.asm -o asm.bin -m amd64
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top