From 798389428cc77b18ab7e144fa5f8379786dd8eac Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 2 Jun 2020 10:31:20 -0700 Subject: [PATCH] PDP8: Report unimplemented DUMP command and give suggestion As discussed in #852 --- PDP8/pdp8_sys.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PDP8/pdp8_sys.c b/PDP8/pdp8_sys.c index a0cc7023..5ac4deba 100644 --- a/PDP8/pdp8_sys.c +++ b/PDP8/pdp8_sys.c @@ -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);