mirror of
https://github.com/Cxbx-Reloaded/subhook.git
synced 2025-01-06 01:58:47 +00:00
23 lines
214 B
NASM
23 lines
214 B
NASM
|
bits 64
|
||
|
|
||
|
extern puts
|
||
|
global foo
|
||
|
|
||
|
section .data
|
||
|
|
||
|
message:
|
||
|
db 'foo() called', 0
|
||
|
|
||
|
section .text
|
||
|
|
||
|
foo:
|
||
|
nop
|
||
|
push rbp
|
||
|
mov rbp, rsp
|
||
|
sub rsp, 32
|
||
|
mov rcx, qword message
|
||
|
call puts
|
||
|
add rsp, 32
|
||
|
pop rbp
|
||
|
ret
|