+ 1

Why assembly doesnt outputing text?

Idk why Assembly is cant output text: section .text global _start _start: mov edx,len mov ecx,msg mov ebx,1 mov eax,4 int 0x80 mov eax,1 int 0x80 section .data msg: db 'Walled', 0xa len: equ $-msg

26th Dec 2024, 11:24 AM
Russian Man
1 Odpowiedź
+ 3
Russian Man try placing the .data section first, before the .text section. The problem might be that the assembler does not have a definition for msg and len before they are referenced.
26th Dec 2024, 2:43 PM
Brian
Brian - avatar