mirror of
https://github.com/simh/simh.git
synced 2026-01-11 23:52:58 +00:00
Corrected to properly leverage the new -N attach_unit switch
This commit is contained in:
parent
185f20a1ed
commit
8cb6a2ef79
@ -1267,8 +1267,8 @@ static void attachCPM(UNIT *uptr) {
|
||||
if (uptr == &ptr_unit)
|
||||
sim_switches = SWMASK('R') | SWMASK('Q');
|
||||
else if (uptr == &ptp_unit)
|
||||
sim_switches = SWMASK('W') | SWMASK('C') | SWMASK('Q');
|
||||
/* 'C' option makes sure that file is properly truncated if it had existed before */
|
||||
sim_switches = SWMASK('W') | SWMASK('N') | SWMASK('Q');
|
||||
/* 'N' option makes sure that file is properly truncated if it had existed before */
|
||||
sim_quiet = sim_switches & SWMASK ('Q'); /* -q means quiet */
|
||||
lastCPMStatus = attach_unit(uptr, cpmCommandLine);
|
||||
if (lastCPMStatus != SCPE_OK) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user