Boa noite. Estou com um livro recente de Assembly e c e não estou conseguindo de jeito nenhum compilar um programa de teste. Usando
nasm -f elf64 ola.asm -o ola.o, aparece os seguintes erros:
oot@adr-300E4C-300E5C-300E7C:/home/adr/assembly# nasm -f elf64 ola.asm -o ola.o
ola.asm:16: error: label or instruction expected at start of line
ola.asm:17: error: label or instruction expected at start of line
ola.asm:18: error: label or instruction expected at start of line
ola.asm:19: error: label or instruction expected at start of line
root@adr-300E4C-300E5C-300E7C:/home/adr/assembly#
O código:
global _start
section .data
message: db ‘hello world’, 10
section .text
_start:
mov rax, 1
mov rdi, 1
mov rsi, message
mov rdx, 14
syscall
~
Se alguém puder dar uma luz eu agradeceria muito.