ALP to print Hello World using times directive (32-bit)
kw.asm
section .data h times 60 db "Hello, World!",10 section .text global _start _start: mov eax,4 mov ebx,1 mov ecx,h mov edx,60 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! Hello, World! Hello, World! Hello, World! Hellkodingwindow@kw:~$
Comments and Reactions
What Next?
ALP to print the stars using macro (32-bit)
ALP to print the stars using times directive (32-bit)
ALP to print the ASCII hex to hexadecimal number (32-bit)
Advertisement