This commit is contained in:
notsomeidiot123 2024-10-24 15:10:55 -04:00
parent c200d7a4e1
commit 6887afafa9
2 changed files with 9 additions and 8 deletions

View File

@ -4,11 +4,13 @@ extern kmain
section .text section .text
global _start global _start
_start: _start:
mov ebx, 0xb8002 mov esp, stack_top
mov word [ebx], 0xf41 mov ebp, stack_top
push esi
; jmp $
call kmain call kmain
jmp $ jmp $
section .data section .bss
string: db "Why even use grub at this point?", 0xa, 0xd, "https://github.com/notsomeidiot123 | someidiot332 on Reddit :3", 0xa, 0xd stack_bottom: resb 0x4000
db "Check comments for more info ^^", 0x0 stack_top:

View File

@ -1,6 +1,5 @@
#include "shared/memory.h"
extern void kmain(){ extern void kmain(){
unsigned short *tm_ptr = (unsigned short*)(0xb8000); pm_init();
tm_ptr[0] = 0xf41;
for(;;);
return; return;
} }