diff --git a/doc/simh_doc.doc b/doc/simh_doc.doc index aaa7d367..2d69a511 100644 Binary files a/doc/simh_doc.doc and b/doc/simh_doc.doc differ diff --git a/doc/simh_faq.doc b/doc/simh_faq.doc index f20deb35..09e08c9f 100644 Binary files a/doc/simh_faq.doc and b/doc/simh_faq.doc differ diff --git a/scp.c b/scp.c index d4ab078f..54d111f6 100644 --- a/scp.c +++ b/scp.c @@ -216,6 +216,7 @@ #include "sim_defs.h" #include "sim_rev.h" +#include "sim_ether.h" #include #include #include @@ -409,9 +410,11 @@ t_stat shift_args (char *do_arg[], size_t arg_count); t_stat set_on (int32 flag, char *cptr); t_stat set_verify (int32 flag, char *cptr); t_stat set_message (int32 flag, char *cptr); +t_stat set_quiet (int32 flag, char *cptr); t_stat set_asynch (int32 flag, char *cptr); t_stat do_cmd_label (int32 flag, char *cptr, char *label); - +void int_handler (int signal); +void run_cmd_message (const char *unechod_cmdline, t_stat r); /* Global data */ @@ -448,7 +451,7 @@ FILEREF *sim_log_ref = NULL; /* log file file referen FILE *sim_deb = NULL; /* debug file */ FILEREF *sim_deb_ref = NULL; /* debug file file reference */ static FILE *sim_gotofile; /* the currently open do file */ -static int32 sim_goto_line; /* the current line number in the currently open do file */ +static int32 sim_goto_line[MAX_DO_NEST_LVL+1]; /* the current line number in the currently open do file */ static int32 sim_do_echo = 0; /* the echo status of the currently open do file */ static int32 sim_show_message = 1; /* the message display status of the currently open do file */ static int32 sim_on_inherit = 0; /* the inherit status of on state and conditions when executing do files */ @@ -457,6 +460,7 @@ int32 sim_do_depth = 0; static int32 sim_on_check[MAX_DO_NEST_LVL+1]; static char *sim_on_actions[MAX_DO_NEST_LVL+1][SCPE_MAX_ERR+1]; static char sim_do_filename[MAX_DO_NEST_LVL+1][CBUFSIZE]; +static char *sim_do_label[MAX_DO_NEST_LVL+1]; static t_stat sim_last_cmd_stat; /* Command Status */ @@ -577,15 +581,15 @@ static CTAB cmd_table[] = { { "EVALUATE", &eval_cmd, 0, "ev{aluate} evaluate symbolic expression\n" }, { "RUN", &run_cmd, RU_RUN, - "ru{n} {new PC} reset and start simulation\n" }, + "ru{n} {new PC} reset and start simulation\n", &run_cmd_message }, { "GO", &run_cmd, RU_GO, - "go {new PC} start simulation\n" }, + "go {new PC} start simulation\n", &run_cmd_message }, { "STEP", &run_cmd, RU_STEP, - "s{tep} {n} simulate n instructions\n" }, + "s{tep} {n} simulate n instructions\n", &run_cmd_message }, { "CONT", &run_cmd, RU_CONT, - "c{ont} continue simulation\n" }, + "c{ont} continue simulation\n", &run_cmd_message }, { "BOOT", &run_cmd, RU_BOOT, - "b{oot} bootstrap unit\n" }, + "b{oot} bootstrap unit\n", &run_cmd_message }, { "BREAK", &brk_cmd, SSH_ST, "br{eak} set breakpoints\n" }, { "NOBREAK", &brk_cmd, SSH_CL, @@ -655,9 +659,13 @@ static CTAB cmd_table[] = { "set on inherit enables inheritance of ON state and actions into do command files\n" "set on noinherit disables inheritance of ON state and actions into do command files\n" "set verify re-enables display of command file processed commands\n" + "set verbose re-enables display of command file processed commands\n" "set noverify disables display of command file processed commands\n" + "set noverbose disables display of command file processed commands\n" "set message re-enables display of command file error messages\n" "set nomessage disables display of command file error messages\n" + "set quiet disables suppression of some output and messages\n" + "set noquiet re-enables suppression of some output and messages\n" "set OCT|DEC|HEX set device display radix\n" "set ENABLED enable device\n" "set DISABLED disable device\n" @@ -688,9 +696,10 @@ static CTAB cmd_table[] = { "sh{ow} SHOW show device SHOW commands\n" "sh{ow} {arg,...} show device parameters\n" "sh{ow} {arg,...} show unit parameters\n" + "sh{ow} ethernet show ethernet devices\n" "sh{ow} on show on condition actions\n" }, { "DO", &do_cmd, 1, - "do {-V} {-O} {-E} {arg,arg...}\b" + "do {-V} {-O} {-E} {-Q} {arg,arg...}\b" " process command file\n" }, { "GOTO", &goto_cmd, 1, "goto