SCP: Added help display for units which can be enabled and disabled
This commit is contained in:
parent
b1b9aa3510
commit
c0bf9073d9
1 changed files with 9 additions and 0 deletions
9
scp.c
9
scp.c
|
@ -1185,6 +1185,13 @@ if (dptr->flags & DEV_DEBUG) {
|
|||
}
|
||||
}
|
||||
if ((dptr->modifiers) && (dptr->numunits != 1)) {
|
||||
if (dptr->units->flags & UNIT_DISABLE) {
|
||||
fprint_header (st, &found, header);
|
||||
sprintf (buf, "set %sn ENABLE", sim_dname (dptr));
|
||||
fprintf (st, "%-30s\tEnables unit %sn\n", buf, sim_dname (dptr));
|
||||
sprintf (buf, "set %sn DISABLE", sim_dname (dptr));
|
||||
fprintf (st, "%-30s\tDisables unit %sn\n", buf, sim_dname (dptr));
|
||||
}
|
||||
for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) {
|
||||
if ((!MODMASK(mptr,MTAB_VUN)) && MODMASK(mptr,MTAB_XTD))
|
||||
continue; /* skip device only modifiers */
|
||||
|
@ -2320,6 +2327,8 @@ else {
|
|||
}
|
||||
if (!dptr)
|
||||
return SCPE_NXDEV; /* no match */
|
||||
lvl = MTAB_VDV; /* device match */
|
||||
uptr = dptr->units; /* first unit */
|
||||
}
|
||||
if (*cptr == 0) /* must be more */
|
||||
return SCPE_2FARG;
|
||||
|
|
Loading…
Add table
Reference in a new issue