SCP: Allow flexible switch presence on TESTLIB commands
This commit is contained in:
parent
b70dc7bd05
commit
60e5484541
1 changed files with 2 additions and 0 deletions
2
scp.c
2
scp.c
|
@ -15524,6 +15524,8 @@ if (strcmp (gbuf, "ALL") != 0) {
|
||||||
if (!find_dev (gbuf))
|
if (!find_dev (gbuf))
|
||||||
return sim_messagef (SCPE_ARG, "No such device: %s\n", gbuf);
|
return sim_messagef (SCPE_ARG, "No such device: %s\n", gbuf);
|
||||||
}
|
}
|
||||||
|
GET_SWITCHES (cptr); /* get extra switches after a device specifier */
|
||||||
|
saved_switches |= sim_switches;
|
||||||
if (sim_switches & SWMASK ('D')) {
|
if (sim_switches & SWMASK ('D')) {
|
||||||
sim_switches &= ~(SWMASK ('D') | SWMASK ('R') | SWMASK ('F') | SWMASK ('T'));
|
sim_switches &= ~(SWMASK ('D') | SWMASK ('R') | SWMASK ('F') | SWMASK ('T'));
|
||||||
sim_set_debon (0, "STDOUT");
|
sim_set_debon (0, "STDOUT");
|
||||||
|
|
Loading…
Add table
Reference in a new issue