Added support for \n, \t and \\ in the string printing function

This commit is contained in:
2025-11-01 12:38:02 +00:00
parent 015d4d1fce
commit 7906c48a2e
8 changed files with 125 additions and 85 deletions

View File

@@ -3,17 +3,10 @@ BITS 16
start:
mov si, boot_message
call os_print_string_nl
call os_print_string
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_print_string
call os_start_cli
hlt
@@ -21,9 +14,7 @@ start:
halt:
jmp halt
boot_message: db 'OK] Kernel successfully loaded!', 0
file_name: db 'hello.cws', 0
fat_file_name: db ' ',0 ; 11 characters
boot_message: db 'OK] Kernel successfully loaded!\n', 0
; ------------------------------------------------------------------
; FEATURES -- Code to pull into the kernel
@@ -33,6 +24,6 @@ fat_file_name: db ' ',0 ; 11 characters
%INCLUDE "source/kernel/features/power.asm"
%INCLUDE "source/kernel/features/strings.asm"
%INCLUDE "source/kernel/features/graphics.asm"
%INCLUDE "source/kernel/features/utils.asm"
%INCLUDE "source/kernel/features/disk.asm"
; GAMES -- Games that I wrote for it
%INCLUDE "source/kernel/games/pong.asm"