Update boot.asm

This commit is contained in:
heckeralt 2024-09-21 14:38:13 -04:00
parent 6425e13bc1
commit 42ce3ca59a
1 changed files with 7 additions and 2 deletions

View File

@ -23,7 +23,8 @@ command_loop:
je print_help je print_help
cmp al, 'q' ; Check for 'q' command (quit) cmp al, 'q' ; Check for 'q' command (quit)
je quit_terminal je quit_terminal
je heckerfetch
cmp al, 'f, ; CPU: Hecker Generic CPU
; Unknown command response ; Unknown command response
mov si, unknown_command_message mov si, unknown_command_message
call print_string call print_string
@ -34,6 +35,10 @@ print_help:
call print_string call print_string
jmp command_loop ; Return to command loop jmp command_loop ; Return to command loop
heckerfetch:
mov si, heckerfetch
call print_string
quit_terminal: quit_terminal:
mov si, goodbye_message mov si, goodbye_message
call print_string call print_string
@ -59,7 +64,7 @@ print_string:
; Data section for messages ; Data section for messages
welcome_message db 'Welcome to the Simple Terminal!', 0 welcome_message db 'Welcome to the Simple Terminal!', 0
prompt_message db 'Enter command (h for help, q to quit): ', 0 prompt_message db 'Enter command (h for help, q to quit, f for heckerfetch): ', 0
help_message db 'Available commands: h (help), q (quit)', 0 help_message db 'Available commands: h (help), q (quit)', 0
unknown_command_message db 'Unknown command! Try again.', 0 unknown_command_message db 'Unknown command! Try again.', 0
goodbye_message db 'Goodbye!', 0 goodbye_message db 'Goodbye!', 0