Moved stuff around and added a makefile also got a custom bootloader

based on the JazzOS bootloader (modified a bit)
This commit is contained in:
2025-10-20 10:52:03 +01:00
parent 07932e2ce0
commit d38a233b62
33 changed files with 1248 additions and 890 deletions

32
source/kernel/kernel.asm Normal file
View File

@@ -0,0 +1,32 @@
ORG 0h
BITS 16
start:
mov si, boot_message
call os_print_string_nl
mov si, help_text
call os_print_string_nl
call os_start_cli
hlt
halt:
jmp halt
boot_message: db 0Dh, 'Welcome to CrawOS!', 0Dh, 0
; ------------------------------------------------------------------
; FEATURES -- Code to pull into the kernel
%INCLUDE "source/kernel/features/text.asm"
%INCLUDE "source/kernel/features/keyboard.asm"
%INCLUDE "source/kernel/features/cli.asm"
%INCLUDE "source/kernel/features/power.asm"
%INCLUDE "source/kernel/features/strings.asm"
%INCLUDE "source/kernel/features/graphics.asm"
%INCLUDE "source/kernel/features/sound.asm"
%INCLUDE "source/kernel/features/basic.asm"
%INCLUDE "source/kernel/features/math.asm"
; GAMES -- Games that I wrote for it
%INCLUDE "source/kernel/games/pong.asm"
%INCLUDE "source/kernel/games/snake.asm"