1
0
mirror of https://github.com/open-simh/simh.git synced 2026-02-09 01:41:16 +00:00

Imlac: Better parsing of load switches.

"load -s" loads a "special tty" image file, just like a plain "load" will.
An unknown switch will raise an error.
This commit is contained in:
Lars Brinkhoff
2025-06-01 12:44:27 +02:00
committed by Paul Koning
parent 70fdfed9a1
commit ae2e3b02fd

View File

@@ -155,14 +155,15 @@ sim_load (FILE *fileref, CONST char *cptr, CONST char *fnam, int flag)
{
if (sim_switches & SWMASK ('T'))
;
if (sim_switches & SWMASK ('S'))
else if (sim_switches == 0 || (sim_switches & SWMASK ('S')) != 0)
return load_stty (fileref);
else if (sim_switches & SWMASK ('M'))
;
if (sim_switches & SWMASK ('M'))
else if (sim_switches & SWMASK ('P'))
;
if (sim_switches & SWMASK ('P'))
;
return load_stty (fileref);
else
return SCPE_ARG;
return SCPE_OK;
}
t_bool build_dev_tab (void)