Arm 汇编程序在MOV中找不到第二个操作数

Arm 汇编程序在MOV中找不到第二个操作数,arm,fedora-25,Arm,Fedora 25,这是我试图汇编的文件(文件名:asmtut3.s): 当我尝试使用以下工具组装时: as -o asmtut3.o asmtut3.s 我得到一个错误: asmtut3.s: Assembler messages: asmtut3.s:3: Error: expecting operand after ','; got nothing asmtut3.s:4: Error: expecting operand after ','; got nothing asmtut3.s:5: Error:

这是我试图汇编的文件(文件名:asmtut3.s):

当我尝试使用以下工具组装时:

as -o asmtut3.o asmtut3.s
我得到一个错误:

asmtut3.s: Assembler messages:
asmtut3.s:3: Error: expecting operand after ','; got nothing
asmtut3.s:4: Error: expecting operand after ','; got nothing
asmtut3.s:5: Error: no such instruction: `swi 0'

我正在运行fedora 25,如果有帮助的话?

as-V打印什么?这与vim有什么关系?您可能甚至没有使用正确的汇编程序,在我看来就像X86。MOV要求在第二个参数处有一个寄存器(#是一个注释),并且没有SWI指令。at&T x86 MOV的循环要求目标作为第二个操作数,而不是常量。对于arm,正如前面所指出的,这段代码很好,您可能正在为其他指令集使用汇编程序。
as-V
打印什么?这与vim有什么关系?您可能甚至没有使用正确的汇编程序,在我看来就像X86。MOV要求在第二个参数处有一个寄存器(#是一个注释),并且没有SWI指令。at&T x86 MOV的循环要求目标作为第二个操作数,而不是常量。对于arm,正如前面指出的,这段代码很好,您可能正在为其他指令集使用汇编程序。
asmtut3.s: Assembler messages:
asmtut3.s:3: Error: expecting operand after ','; got nothing
asmtut3.s:4: Error: expecting operand after ','; got nothing
asmtut3.s:5: Error: no such instruction: `swi 0'