mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-05 14:42:16 +03:00
22 lines
300 B
Plaintext
22 lines
300 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
|