[英]Label or instruction expected at start of line
I cannot figure out what is wrong. 我无法弄清楚出了什么问题。 I am compiling with nasm -f elf main.S
我正在使用nasm -f elf main.S
编译
use32
section .text
global _start
_start: mov eax, 0
mov ebx, 0
ecx 5
label1: inc eax
add ebx, ecx
loop label1
exit: mov eax, 1 ; sys_exit syscall
mov ebx, 0 ; return 0 (success)
int 80h
main.S:8: error: label or instruction expected at start of line main.S:8:错误:行开头预期的标签或指令
Line 8 - ecx 5 8号线 - ecx 5
ecx 5
is not an instruction. ecx 5
不是指令。 Did you mean mov ecx,5
? 你的意思是mov ecx,5
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.