From 1d611e2c523ffd0d87f25279587d99174dda6160 Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Fri, 29 Sep 2023 12:01:05 -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 30c102e..6d2eb9a 100644 --- a/PDP10/kx10_sys.c +++ b/PDP10/kx10_sys.c @@ -728,7 +728,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;