Hello.
When I wrote 32-bit programs, it was no problem to print characters from the stack on the screen. I simply pushed the characters and called sys_write with ecx=esp (the address of the characters) ... and it worked.
But now I'm trying to do so in a 64-bit programm. But unfortunately it doesn't work. Here is a simple code for demonstrating my problem:
format ELF64 executable
segment writeable readable executable
entry $
mov rax,0x4141414141414141 ; 'AAAAAAAA'
push rax
mov rax,4
mov rbx,1
mov rcx,rsp
mov rdx,1
int 0x80
pop rax
mov rax,1
int 0x80
The same program in 32-bit worked fine, but nothing happens now. I hope you can help me seeing my mistake.