Assembly 行首应有标签或说明
我想不出是怎么回事。我正在使用Assembly 行首应有标签或说明,assembly,compiler-errors,nasm,Assembly,Compiler Errors,Nasm,我想不出是怎么回事。我正在使用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 sysca
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:错误:行首应有标签或说明
第8行-ecx 5不是指令。你是说电影ecx,5吗?:)谢谢。我应该更加小心。