added get_addr and jmp

This commit is contained in:
IgorCielniak
2026-02-12 17:39:05 +01:00
parent 709377a45b
commit a3c68860a7
4 changed files with 38 additions and 0 deletions

View File

@@ -1,3 +1,17 @@
#get_addr [*] -> [* | addr]
:asm get_addr {
mov rax, [rsp]
sub r12, 8
mov [r12], rax
};
#jmp [* | addr] -> [*]
:asm jmp {
mov rax, [r12]
add r12, 8
jmp rax
};
# Reserve 64 bytes in .bss
# persistent: resb 64
# push the addr of it