From f247a0ca1fb5ed8ab18ca3a0019de7231e6a8dd8 Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Sat, 30 Sep 2023 20:04:20 -0400 Subject: [PATCH] KA10: Add -m option to load .exe files to load monitors. --- PDP10/kx10_sys.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PDP10/kx10_sys.c b/PDP10/kx10_sys.c index 9e7b46d7..4fc79792 100644 --- a/PDP10/kx10_sys.c +++ b/PDP10/kx10_sys.c @@ -718,7 +718,9 @@ t_stat load_exe (FILE *fileref, int ftype) } fpage++; } - ma = mpage << PAG_V_PN; /* mem addr */ + if ((sim_switches & SWMASK ('M')) == 0) { /* -m? */ + ma = mpage << PAG_V_PN; /* mem addr */ + } for (k = 0; k < PAG_SIZE; k++, ma++) { /* copy buf to mem */ if (ma > MEMSIZE) return SCPE_NXM;