我正在与AT & T语法,但认为我会尝试英特尔。我有这样的代码:X86英特尔语法 - MOV的大小,表达式后的垃圾h?
.text
.global _start
_start:
mov ebx, 0
mov eax, 1
int 80h
应该返回0,对不对?它在转换之前做了AT & T.
as out.s -msyntax=intel --32 -o out.o
,但我得到:
我使用组装
out.s:5: Error: ambiguous operand size for `mov'
out.s:6: Error: ambiguous operand size for `mov'
out.s:7: Error: junk `h' after expression
我要去哪里错了吗?
我想到了全局指令作为是一禾在 – Rafael
文件汇编文件'.intel_syntax noprefix' –
.section伪的.text .globl _start – Rafael