You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/tests/binaries/host/stepsyscall_x64.asm

33 lines
347 B
NASM

section .text
global _start
write:
mov rax, 1
mov rdi, 1
mov rsi, msg
mov rdx, len
syscall_write_label:
syscall
ret
_start:
nop
jmp label1
nop
label1:
call write
exit:
mov rax, 60
mov rdi, 0
syscall_exit_label:
syscall
section .data
msg db 'hello world', 0xA
len equ $ - msg