monitor: Print error on invalid command
This commit is contained in:
parent
51f167f253
commit
292718d866
|
@ -14,8 +14,14 @@ monitor_shell_parse_command:
|
||||||
call compare_string
|
call compare_string
|
||||||
ifz jmp monitor_shell_help_command
|
ifz jmp monitor_shell_help_command
|
||||||
|
|
||||||
|
; invalid command
|
||||||
|
mov r0, monitor_shell_invalid_command_string
|
||||||
|
call print_string_to_monitor
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
monitor_shell_invalid_command_string: data.str "invalid command" data.8 10 data.8 0
|
||||||
|
|
||||||
; all commands
|
; all commands
|
||||||
#include "monitor/commands/exit.asm"
|
#include "monitor/commands/exit.asm"
|
||||||
#include "monitor/commands/help.asm"
|
#include "monitor/commands/help.asm"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user