section .text
global main
main:
mov eax,4
mov ebx,1
mov ecx,msg
mov edx,len
int 80h
mov eax,1
int 80h
msg:
db "hello world!it's too long!/n","$",'\r\n\t',0,'12345',len
len equ $-msg
nasm -f elf64 demo.asm
ld -emain demo.o -o demo
./demo
hello world!it's too long!/n$\r\n\t12345*
you see:
\r \n \t /n not useful
but
section .text
global main
main:
mov eax,4
mov ebx,1
mov ecx,msg
mov edx,len
int 80h
mov eax,1
int 80h
msg:
db "hello world!",0xA,"it's too long!/n","$",'\r\n\t',0,'12345',len,0xa
len equ $-msg
hello world!
it's too long!/n$\r\n\t12345,
oxA -> '\n'