printTimerCmd equ 15\r
uptimeCmd equ 16\r
\r
-StartTraceCmd equ 1\r
-StopTraceCmd equ 0\r
+StopTraceCmd equ 00h\r
+StartTraceCmd equ 01h\r
+PrintStackCmd equ 02h\r
\r
aseg\r
org 100h\r
\r
jp start\r
\r
-usage: db 'Usage: TIMER S|P|B|Q|U|T|N',cr,lf\r
+usage: db 'Usage: ACT S|P|B|Q|U|T|N',cr,lf\r
db ' S = (Re)Start the timer',cr,lf\r
db ' P = Print elapsed time since last S or Q command',cr,lf\r
db ' B = Print elapsed time for simple benchmark loop. wait < 60s',cr,lf\r
db ' Q = Print the timer, then restart it',cr,lf\r
db ' U = Print uptime',cr,lf\r
db ' T = Trace enable',cr,lf\r
- db ' N = Trace disable',cr,lf,'$',1AH\r
+ db ' N = Trace disable',cr,lf\r
+ db ' K = Print stack usage',cr,lf\r
+ db '$',1AH\r
\r
start: ld a,(cmdLine) ; get number of characters on command line\r
or a\r
table:\r
db 'N',DEBUGPORT,StopTraceCmd\r
db 'T',DEBUGPORT,StartTraceCmd\r
+ db 'K',DEBUGPORT,PrintStackCmd\r
db 'S',TIMERCTL,starttimercmd\r
db 'P',TIMERCTL,printTimerCmd\r
db 'Q',TIMERCTL,quitTimerCmd\r