From 292718d8663aa365f838c68b44f4518c5690677b Mon Sep 17 00:00:00 2001 From: Ry Date: Wed, 27 Apr 2022 13:41:44 -0700 Subject: [PATCH] monitor: Print error on invalid command --- monitor/commands/commands.asm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/monitor/commands/commands.asm b/monitor/commands/commands.asm index 94c2de3..63df7b9 100644 --- a/monitor/commands/commands.asm +++ b/monitor/commands/commands.asm @@ -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"