Save
This commit is contained in:
parent
c200d7a4e1
commit
6887afafa9
|
|
@ -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:
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue