这是我要汇编的文件(文件名:asmtut3.s):
.global _start
_start:
MOV R0, #20
MOV R7, #1
SWI 0
当我尝试使用以下方法组装它时:
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,如果有帮助吗?