mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-29 20:03:19 +03:00
30 lines
349 B
Plaintext
30 lines
349 B
Plaintext
section .text
|
|
|
|
global menu
|
|
extern _menu
|
|
menu:
|
|
pop eax
|
|
call .L1
|
|
.L1:
|
|
pop eax
|
|
add eax, .L3 - .L1
|
|
cmp dword [eax], 0
|
|
jne .L2
|
|
mov [eax], esp
|
|
jmp .L4
|
|
|
|
.L2:
|
|
mov edi, [esp]
|
|
mov esp, [eax]
|
|
push edi
|
|
jmp .L4
|
|
|
|
.L3:
|
|
dq 0
|
|
|
|
.L4:
|
|
push 0
|
|
jmp _menu
|
|
|
|
section .note.GNU-stack noalloc noexec nowrite progbits
|