1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-13 23:37:13 +00:00

PDP8: Report unimplemented DUMP command and give suggestion

As discussed in #852
This commit is contained in:
Mark Pizzolato 2020-06-02 10:31:20 -07:00
parent 2f43f2cfa2
commit 798389428c

View File

@ -244,8 +244,12 @@ return SCPE_IERR;
t_stat sim_load (FILE *fileref, CONST char *cptr, CONST char *fnam, int flag)
{
if ((*cptr != 0) || (flag != 0))
if (*cptr != 0)
return SCPE_ARG;
if (flag != 0)
return sim_messagef (SCPE_UNK, "DUMP command not implemented in this simulator\n"
"You can capture memory contents into a file via:\n"
"EXAMINE @outputfile.txt 0-7777\n");
if ((sim_switches & SWMASK ('R')) || /* RIM format? */
(match_ext (fnam, "RIM") && !(sim_switches & SWMASK ('B'))))
return sim_load_rim (fileref);