33 lines
856 B
NASM
33 lines
856 B
NASM
ORG 0h
|
|
BITS 16
|
|
|
|
start:
|
|
mov si, boot_message
|
|
call os_upper_case
|
|
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 'kernel successfully loaded!', 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/utils.asm"
|
|
; GAMES -- Games that I wrote for it
|
|
%INCLUDE "source/kernel/games/pong.asm"
|
|
%INCLUDE "source/kernel/games/snake.asm"
|