1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-26 12:01:54 +00:00

KA10: Add -m option to load .exe files to load monitors.

This commit is contained in:
Richard Cornwell
2023-09-29 12:01:05 -04:00
parent 8bec8ead35
commit 1d611e2c52

View File

@@ -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;