ALP to print Hello World (32-bit)
kw.asm
section .data
msg db "Hello, World!",10
msg_len equ $-msg

section .text
global _start
_start:
    mov eax,4
    mov ebx,1
    mov ecx,msg
    mov edx,msg_len
    int 80h

;Exit System Call
    mov eax,1
    mov ebx,0
    int 80h
Output
kodingwindow@kw:~$ nasm -felf64 kw.asm
kodingwindow@kw:~$ ld kw.o && ./a.out Hello, World! kodingwindow@kw:~$
Advertisement