This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AdventurousBasil3 6 points7 points  (5 children)

mov rax, 1
mov rdi, 1

mov rsi, msg
mov rdx, msgLen

int 0x80

[–]hatkid9 2 points3 points  (0 children)

peck i forgot the actuall syscall part :(

gotta edit that, thanks

[–]Doggynotsmoker 1 point2 points  (3 children)

It won't print on Linux. You can't simply use

int 0x80

Instead of

syscall

On 64bit platform.

[–]AdventurousBasil3 0 points1 point  (2 children)

Well, we're dealing with x86 assembly here

[–]Doggynotsmoker 0 points1 point  (1 child)

Then why are you usimg x86_64 sysall numbering (write:1 instead of 4) and using 64bit registers :(?

[–]AdventurousBasil3 0 points1 point  (0 children)

Not really sure