From 145e00f85c6e36655769f4179e438b82fc33dfb3 Mon Sep 17 00:00:00 2001 From: stid Date: Sat, 28 Dec 2019 13:48:56 -0800 Subject: [PATCH] fix commands --- main.asm | 2 +- shell.asm | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/main.asm b/main.asm index 5eed83d..8f8a4b7 100644 --- a/main.asm +++ b/main.asm @@ -1,4 +1,4 @@ -// BasicUpstart2(start) +BasicUpstart2(start) #import "mem_map.asm" * = $8000 "Main" diff --git a/shell.asm b/shell.asm index 6d2ee88..23027e1 100644 --- a/shell.asm +++ b/shell.asm @@ -38,6 +38,7 @@ backspace: { } exec: { + .break lda MemMap.SHELL.buffer // Check first char cmp #'!' beq stidExec // if ! is stid mon command @@ -52,15 +53,16 @@ stidExec: { lda MemMap.SHELL.buffer, y - cmp #'h' + cmp #$48 beq cmdHelp - cmp #'r' + cmp #$52 beq cmdReset done: rts +// STID Commands cmdHelp: print(helpString) jmp done @@ -242,7 +244,8 @@ helpString: .text "r : hard reset" .byte $8e .text "z : zero page params" + .byte $8e + .text "----------------------" .byte $8e, 0 - #import "mem_map.asm"