section .data msg: db 'Some stuff', 0x0A, 0x0D msglen: equ $-msg section .text global _start _start: push msglen push msg call print mov eax, 1 xor ebx, ebx int 0x80 print: mov eax, 4 mov ebx, 1 pop ecx pop edx int 0x80 ret