Added support for \n, \t and \\ in the string printing function
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user