-
-
Save ScriptedDeveloper/5d7cca825889393982661a089767ebc6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bits 32 | |
section .bss | |
resb 0x8000 | |
stack_bottom: | |
resb 0x4000 | |
stack_top: | |
section .text | |
align 4 | |
dd 0x1BADB002 | |
dd 0 | |
dd - (0x1BADB002+0x00) | |
global start | |
extern kmain | |
start: | |
mov esp, stack_top | |
cli ; clears the interrupts | |
mov ebx, esp | |
push eax | |
push ebx | |
call kmain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment