Added lowercase function, string length function formating to fat12

function
This commit is contained in:
2025-10-31 21:57:34 +00:00
parent d83871e161
commit 015d4d1fce
3 changed files with 91 additions and 108 deletions

View File

@@ -2,21 +2,28 @@ 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
mov si, file_name
call os_print_string_nl
mov di, fat_file_name
call os_format_fat_filename
mov si, fat_file_name
call os_print_string_nl
call os_start_cli
hlt
halt:
jmp halt
boot_message: db 'kernel successfully loaded!', 0
boot_message: db 'OK] Kernel successfully loaded!', 0
file_name: db 'hello.cws', 0
fat_file_name: db ' ',0 ; 11 characters
; ------------------------------------------------------------------
; FEATURES -- Code to pull into the kernel
@@ -29,4 +36,3 @@ boot_message: db 'kernel successfully loaded!', 0
%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"