today I started learning NASM. I'm using NASM Online compiler.
I want to print simple text in 4 rows like this:
This
Is
Some
Text
I looked up some tutorials but I only managed to print text in one row.
Here's my code:
SECTION .data;
msg: db "Hello World",10
len: equ $-msg
SECTION .text
global main
main:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov ebx,0
mov eax,1
int 0x80
And my output looks like this:
Hello World
ld: warning: cannot find entry symbol _start; defaulting to 0000000008049000
I'm a bit confused how to print 4 texts in each separate row.