KA10: Add -m option to load .exe files to load monitors.
This commit is contained in:
parent
3da3de331e
commit
f247a0ca1f
1 changed files with 3 additions and 1 deletions
|
@ -718,7 +718,9 @@ t_stat load_exe (FILE *fileref, int ftype)
|
||||||
}
|
}
|
||||||
fpage++;
|
fpage++;
|
||||||
}
|
}
|
||||||
|
if ((sim_switches & SWMASK ('M')) == 0) { /* -m? */
|
||||||
ma = mpage << PAG_V_PN; /* mem addr */
|
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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue