monitor: Print error on invalid command

This commit is contained in:
Ry 2022-04-27 13:41:44 -07:00
parent 51f167f253
commit 292718d866

View File

@ -14,8 +14,14 @@ monitor_shell_parse_command:
call compare_string
ifz jmp monitor_shell_help_command
; invalid command
mov r0, monitor_shell_invalid_command_string
call print_string_to_monitor
ret
monitor_shell_invalid_command_string: data.str "invalid command" data.8 10 data.8 0
; all commands
#include "monitor/commands/exit.asm"
#include "monitor/commands/help.asm"