diff options
author | David <dbphillipsnz@gmail.com> | 2013-07-19 11:47:17 +1200 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2013-07-19 11:47:17 +1200 |
commit | 3155f0ec7fb015225c6ae42f782b8c25f2d79f88 (patch) | |
tree | 318f786dee38947393dfc4cf602923603dac8cb9 /emergencyshell.asm | |
parent | a7b1b157fc118a6e7d4f88f9a057101ca9c54e1a (diff) | |
download | jaspos-3155f0ec7fb015225c6ae42f782b8c25f2d79f88.tar.xz |
Committed
Diffstat (limited to 'emergencyshell.asm')
-rw-r--r-- | emergencyshell.asm | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/emergencyshell.asm b/emergencyshell.asm new file mode 100644 index 0000000..0824f64 --- /dev/null +++ b/emergencyshell.asm @@ -0,0 +1,68 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + push msgEnteringShell + call jaspos_monitor_dispstring +.eshell: + push msgPrompt + call jaspos_monitor_dispstring ; Show the prompt + + push free_ram ; Buffer = free ram + push 32d ; Max chars to read = 32 + call jaspos_keyb_getstring ; Get a command + + push msgNewLine + call jaspos_monitor_dispstring + + push free_ram + call jaspos_strutils_tolower + + push cmdExit + push free_ram + call jaspos_strutils_compare + jz .quit + + push cmdVersion + push free_ram + call jaspos_strutils_compare + jz .eshell_version + + push cmdCompileDate + push free_ram + call jaspos_strutils_compare + jz .eshell_compiledate + + push cmdOff + push free_ram + call jaspos_strutils_compare + jz .eshell_off + + push cmdHelp + push free_ram + call jaspos_strutils_compare + jz .eshell_help + + + jmp .eshell + + +.eshell_version: + push msgVersion + call jaspos_monitor_dispstring + jmp .eshell + +.eshell_compiledate: + push msgCompileDate + call jaspos_monitor_dispstring + jmp .eshell + +.eshell_off: + call jaspos_power_connect + jmp jaspos_power_shutdown + +.eshell_help: + push msgShellHelp + call jaspos_monitor_dispstring + jmp .eshell + +.quit:
\ No newline at end of file |