Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add help (?) to serial debug commands. #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Altair8800.ino
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,29 @@ void empty_input_buffer()
{ if( serial_read()<0 ) { delay(15); if( serial_read()<0 ) { delay(150); if( serial_read()<0 ) break; } } }
}

static const PROGMEM char help[] = {
"\r\n"
#if STANDALONE>0
"0-9,a-f : Toggle SW15-0 / : Prompt for SW15-0" "\r\n"
#endif
"? : Show this help C : Configuration menu" "\r\n"
"X : Examine x : Examine Next" "\r\n"
"P : Deposit p : Deposit Next" "\r\n"
"r : Run o : Stop" "\r\n"
"t : Step > : Run from address" "\r\n"
"R : Reset ! : Hard Reset (Stop + Reset)" "\r\n"
"U : Aux1-up u : Aux1-down" "\r\n"
"s : Capture l : Play back" "\r\n"
"m : Mount n : Change numeric system" "\r\n"
"Q : Protect q : Unprotect" "\r\n"
"D : Disassemble M : Dump memory" "\r\n"
"H : Load Intel HEX h : Dump Intel HEX" "\r\n"
"L : Load memory Y : Memory layout" "\r\n"
#if MAX_BREAKPOINTS>0
"B : Add breakpoint V : Delete last breakpoint" "\r\n"
#endif
"F : Find" "\r\n"
};

void read_inputs_serial()
{
Expand All @@ -713,6 +736,8 @@ void read_inputs_serial()
int data = serial_read();
if( data<0 )
return;
else if( data == '?' )
Serial.print(F(help));
#if STANDALONE>0
else if( data >= '0' && data <= '9' )
dswitch = dswitch ^ (1 << (data - '0'));
Expand Down