1
0
mirror of https://github.com/open-simh/simh.git synced 2026-03-14 06:17:33 +00:00

Merge of Dave's local fixes 7 & 8

This commit is contained in:
Mark Pizzolato
2012-04-10 08:16:29 -07:00
parent 42d2802c47
commit a27187ca6c

8
scp.c
View File

@@ -62,7 +62,7 @@
17-Aug-08 RMS Revert RUN/BOOT to standard, rather than powerup, reset
25-Jul-08 JDB DO cmd missing params now default to null string
29-Jun-08 JDB DO cmd sub_args now allows "\\" to specify literal backslash
04-Jun-08 JDB [local fix 8] Label the patch delta more clearly
04-Jun-08 JDB Label the patch delta more clearly
31-Mar-08 RMS Fixed bug in local/global register search (Mark Pizzolato)
Fixed bug in restore of RO units (Mark Pizzolato)
06-Feb-08 RMS Added SET/SHO/NO BR with default argument
@@ -74,7 +74,7 @@
30-Jan-07 RMS Fixed bugs in get_ipaddr
17-Oct-06 RMS Added idle support
04-Oct-06 JDB DO cmd failure now echoes cmd unless -q
30-Aug-06 JDB [local fix 7] detach_unit returns SCPE_UNATT if not attached
30-Aug-06 JDB detach_unit returns SCPE_UNATT if not attached
14-Jul-06 RMS Added sim_activate_abs
02-Jun-06 JDB Fixed do_cmd to exit nested files on assertion failure
Added -E switch to do_cmd to exit on any error
@@ -2180,9 +2180,7 @@ if (cptr && (*cptr != 0))
return SCPE_2MARG;
fprintf (st, "%s simulator V%d.%d-%d", sim_name, vmaj, vmin, vpat);
if (vdelt)
/* [JDB local fix 8] begin */
fprintf (st, " delta %d", vdelt);
/* [JDB local fix 8] end */
if (flag)
fprintf (st, " [%s, %s, %s]", sim_si64, sim_sa64, sim_snet);
fprintf (st, "\n");
@@ -2882,13 +2880,11 @@ if (uptr == NULL)
return SCPE_IERR;
if (!(uptr->flags & UNIT_ATTABLE)) /* attachable? */
return SCPE_NOATT;
/* [JDB local fix 7] begin */
if (!(uptr->flags & UNIT_ATT)) /* not attached? */
if (sim_switches & SIM_SW_REST) /* restoring? */
return SCPE_OK; /* allow detach */
else
return SCPE_UNATT; /* complain */
/* [JDB local fix 7] end */
if ((dptr = find_dev_from_unit (uptr)) == NULL)
return SCPE_OK;
if (uptr->flags & UNIT_BUF) {