SCP: Add HELP info for UNTIL argument to the RUN and GO commands

This commit is contained in:
Mark Pizzolato 2017-03-03 20:35:28 -08:00
parent 4c746682f1
commit 24f1c06d06

20
scp.c
View file

@ -840,15 +840,25 @@ static const char simh_help[] =
/***************** 80 character line width template *************************/ /***************** 80 character line width template *************************/
"2Running A Simulated Program\n" "2Running A Simulated Program\n"
#define HLP_RUN "*Commands Running_A_Simulated_Program RUN" #define HLP_RUN "*Commands Running_A_Simulated_Program RUN"
"3RUN\n" "3RUN {start_pc_addr} {UNTIL stop_pc_addr|\"output-string\"}\n"
" The RUN command (abbreviated RU) resets all devices, deposits its argument\n" " The RUN command (abbreviated RU) resets all devices, deposits its argument\n"
" (if given) in the PC, and starts execution. If no argument is given,\n" " (if given) in the PC, and starts execution. If no argument is given,\n"
" execution starts at the current PC.\n" " execution starts at the current PC.\n\n"
" The optional UNTIL argument specifies a stop criteria for execution.\n"
" There are two forms of execution stop criteria:\n"
"+1. A temporary breakpoint (which exists only until it is encountered).\n"
"+2. A string which will stop execution when the simulator has output\n"
"++the indicated string.\n"
#define HLP_GO "*Commands Running_A_Simulated_Program GO" #define HLP_GO "*Commands Running_A_Simulated_Program GO"
"3GO\n" "3GO {start_pc_addr} {UNTIL stop_pc_addr|\"output-string\"}\n"
" The GO command does not reset devices, deposits its argument (if given)\n" " The GO command does not reset devices, deposits its argument (if given)\n"
" in the PC, and starts execution. If no argument is given, execution\n" " in the PC, and starts execution. If no argument is given, execution\n"
" starts at the current PC.\n" " starts at the current PC.\n\n"
" The optional UNTIL argument specifies a stop criteria for execution.\n"
" There are two forms of execution stop criteria:\n"
"+1. A temporary breakpoint (which exists only until it is encountered).\n"
"+2. A string which will stop execution when the simulator has output\n"
"++the indicated string.\n"
#define HLP_CONTINUE "*Commands Running_A_Simulated_Program CONTINUE" #define HLP_CONTINUE "*Commands Running_A_Simulated_Program CONTINUE"
"3CONTINUE\n" "3CONTINUE\n"
" The CONT command (abbreviated CO) does not reset devices and resumes\n" " The CONT command (abbreviated CO) does not reset devices and resumes\n"
@ -5187,7 +5197,7 @@ if (strcmp (ctx->LastDir, directory)) {
sim_printf ("%16d Dir(s)\n", ctx->DirCount); sim_printf ("%16d Dir(s)\n", ctx->DirCount);
} }
++ctx->DirChanges; ++ctx->DirChanges;
sim_printf (" Directory of %*.*s\n\n", strlen (directory) - 1, strlen (directory) - 1, directory); sim_printf (" Directory of %*.*s\n\n", (int)(strlen (directory) - 1), (int)(strlen (directory) - 1), directory);
strcpy (ctx->LastDir, directory); strcpy (ctx->LastDir, directory);
} }
local = localtime (&filestat->st_mtime); local = localtime (&filestat->st_mtime);