Ecco come scrivere su stdout

codice:
%define SYS_WRITE 4
%define SYS_EXIT 1

%define STDOUT 1

%define SYSTEM_INTERRUPT 0x80

section .text ;;Code Segment
global _start ;;Start (for linker)

section .data
msg db 'Hello, World', 0xA, 0xD ;;Message DataByte + \n
len equ $ - msg ;;Message length

_start:
        ;;int write(int fd, void *buf, size_t count)
        mov     eax, SYS_WRITE
        mov     ebx, STDOUT
        mov     ecx, msg
        mov     edx, len
        int SYSTEM_INTERRUPT

        mov eax, SYS_EXIT
        int SYSTEM_INTERRUPT
Compilalo con NASM, e funziona.