diff --git a/doc/simh_doc.doc b/doc/simh_doc.doc index d479c98d..5fc390a6 100644 Binary files a/doc/simh_doc.doc and b/doc/simh_doc.doc differ diff --git a/scp.c b/scp.c index 6edbceed..c1f2aee9 100644 --- a/scp.c +++ b/scp.c @@ -2240,7 +2240,7 @@ static const char simh_help[] = " Specifies a true (false {NOT}) condition if the file exists.\n" "5File Comparison Expressions\n" " Files can have their contents compared with:\n\n" - "++-D {NOT} \"\" == \"\" \n\n" + "++-F {NOT} \"\" == \"\" \n\n" " Specifies a true (false {NOT}) condition if the indicated files\n" " have the same contents.\n\n" /***************** 80 character line width template *************************/ @@ -2637,7 +2637,7 @@ else if (*argv[0]) { /* sim name arg? */ if (SCPE_BARE_STATUS(stat) == SCPE_OPENERR) /* didn't exist/can't open? */ stat = SCPE_OK; -if (sim_switches & SWMASK ('T')) /* Command Line -T switch */ +if (sim_switches & SWMASK ('T')) /* Command Line -T switch */ stat = sim_library_unit_tests (); /* run library unit tests */ if (SCPE_BARE_STATUS(stat) != SCPE_EXIT) @@ -4260,7 +4260,6 @@ for (i=1; idctrl | (uptr ? uptr->dctrl : 0)) & reason)) { ebcdicbuf[eidx++] = '.'; } } + for (; sidx<16; ++sidx) { + strbuf[soff+sidx] = ' '; + if (eidx) + ebcdicbuf[eidx++] = ' '; + } outbuf[oidx] = '\0'; strbuf[soff+sidx] = '\0'; ebcdicbuf[eidx] = '\0'; @@ -14552,11 +14556,13 @@ static t_stat sim_library_unit_tests (void) { int i; DEVICE *dptr; +int32 saved_switches = sim_switches & ~SWMASK ('T'); t_stat stat = SCPE_OK; for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { t_stat tstat = SCPE_OK; + sim_switches = saved_switches; switch (DEV_TYPE(dptr)) { #if defined(USE_SIM_CARD) case DEV_CARD: diff --git a/scp.h b/scp.h index 4fb4511e..24e6124d 100644 --- a/scp.h +++ b/scp.h @@ -303,6 +303,7 @@ t_stat sim_exp_show (FILE *st, CONST EXPECT *exp, const char *match); t_stat sim_exp_showall (FILE *st, const EXPECT *exp); t_stat sim_exp_check (EXPECT *exp, uint8 data); CONST char *match_ext (CONST char *fnam, const char *ext); +int sim_cmp_string (const char *s1, const char *s2); t_stat show_version (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); t_stat set_dev_debug (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); t_stat show_dev_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr);