1
0
mirror of https://github.com/simh/simh.git synced 2026-02-27 01:00:07 +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 Mark Pizzolato
parent 716b8117e1
commit 64449f8950

View File

@@ -223,14 +223,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);
if (sim_switches & SWMASK ('M'))
else if (sim_switches & SWMASK ('M'))
;
if (sim_switches & SWMASK ('P'))
else if (sim_switches & SWMASK ('P'))
return load_ptr (fileref);
return load_stty (fileref);
else
return SCPE_ARG;
return SCPE_OK;
}
t_bool build_dev_tab (void)