1
0
mirror of https://github.com/simh/simh.git synced 2026-04-26 03:57:11 +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 ('T'))
; ;
if (sim_switches & SWMASK ('S')) else if (sim_switches == 0 || (sim_switches & SWMASK ('S')) != 0)
return load_stty (fileref); 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_ptr (fileref);
else
return load_stty (fileref); return SCPE_ARG;
return SCPE_OK;
} }
t_bool build_dev_tab (void) t_bool build_dev_tab (void)