ALP to print Hello World (32-bit)
gd.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
godarda@gd:~$ nasm -felf64 gd.asm
godarda@gd:~$ ld gd.o && ./a.out Hello, World! godarda@gd:~$
Comments and Reactions