rulimine/common/menu_thunk.asm_x86_64

24 lines
357 B
Plaintext

section .data
stack_at_first_entry:
dq 0
section .text
global menu
extern _menu
menu:
xor eax, eax
cmp [rel stack_at_first_entry], rax
jne .L1
mov [rel stack_at_first_entry], rsp
jmp .L2
.L1:
mov rsp, [rel stack_at_first_entry]
.L2:
push 0
push 0
jmp _menu
section .note.GNU-stack noalloc noexec nowrite progbits