22 lines
485 B
NASM
22 lines
485 B
NASM
; command parser
|
|
|
|
; FIXME: thjs is a terrible way to do this
|
|
monitor_shell_parse_command:
|
|
mov r0, MONITOR_SHELL_TEXT_BUF_BOTTOM
|
|
|
|
; exit
|
|
mov r1, monitor_shell_exit_command_string
|
|
call compare_string
|
|
ifz jmp monitor_shell_exit_command
|
|
|
|
; help
|
|
mov r1, monitor_shell_help_command_string
|
|
call compare_string
|
|
ifz jmp monitor_shell_help_command
|
|
|
|
ret
|
|
|
|
; all commands
|
|
#include "monitor/commands/exit.asm"
|
|
#include "monitor/commands/help.asm"
|