From 24f1c06d06ed8320e39b7b5220f2214822bbed2a Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 3 Mar 2017 20:35:28 -0800 Subject: [PATCH] SCP: Add HELP info for UNTIL argument to the RUN and GO commands --- scp.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/scp.c b/scp.c index 0a8c367b..f584b388 100644 --- a/scp.c +++ b/scp.c @@ -840,15 +840,25 @@ static const char simh_help[] = /***************** 80 character line width template *************************/ "2Running A Simulated Program\n" #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" " (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" - "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" " 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" "3CONTINUE\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); } ++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); } local = localtime (&filestat->st_mtime);