Files
crawos/source/kernel/kernel.asm
2025-12-30 22:52:30 +00:00

42 lines
1.2 KiB
NASM

ORG 00h
BITS 16
root_buffer: equ 24000h ; Stores a dump of the root directory
metadata_buffer: equ 27000h ; Stores metadata about whatever's in the data buffer
output_buffer: equ 27020h ; Buffer storing stuff you'll output
file_buffer: equ 28000h ; Stores actual data to be read
start:
call disk_load_root ; Loads the root directory into disk_buffer for future use
mov si, boot_message
call os_print_string
mov si, help_text
call os_print_string
call os_start_cli
hlt
halt:
jmp halt
; ------------------------------------------------------------------
; 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/disk.asm"
%INCLUDE "source/kernel/features/math.asm"
%INCLUDE "source/kernel/features/time.asm"
%INCLUDE "source/kernel/features/utils.asm"
; GAMES -- Games that I wrote for it
%INCLUDE "source/kernel/games/pong.asm"
; DATA/VARIABLES
%INCLUDE "source/kernel/data.asm"