ALP to print Hello World without using macro (64-bit)
codeaft.asm
section .data
msg db "Hello, World!",10
msg_len equ $-msg

section .text
global _start
_start:
    mov rax,1
    mov rdi,1
    mov rsi,msg
    mov rdx,msg_len
    syscall

;Exit System Call
    mov rax,60
    mov rbx,00
    syscall
Output
codeaft@codeaft:~$ nasm -felf64 codeaft.asm
codeaft@codeaft:~$ ld codeaft.o && ./a.out Hello, World! codeaft@codeaft:~$
Comments and Reactions