mirror of
https://github.com/simh/simh.git
synced 2026-02-16 04:34:05 +00:00
KA10: Add -m option to load .exe files to load monitors.
This commit is contained in:
committed by
Mark Pizzolato
parent
69bea4bf9c
commit
25fc02b90f
@@ -718,7 +718,9 @@ t_stat load_exe (FILE *fileref, int ftype)
|
|||||||
}
|
}
|
||||||
fpage++;
|
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 */
|
for (k = 0; k < PAG_SIZE; k++, ma++) { /* copy buf to mem */
|
||||||
if (ma > MEMSIZE)
|
if (ma > MEMSIZE)
|
||||||
return SCPE_NXM;
|
return SCPE_NXM;
|
||||||
|
|||||||
Reference in New Issue
Block a user