1
0
mirror of https://github.com/simh/simh.git synced 2026-05-16 02:02:15 +00:00

TIMER: Add facility to restore memory to 0 after pre-calibration

PDP8, PDP11, PDP10, VAX and SDS simulators have memory restored to
zero after pre-calibration is performed.
This commit is contained in:
Mark Pizzolato
2026-04-16 06:38:22 -10:00
parent 4af6470df1
commit 722302c45b
9 changed files with 31 additions and 0 deletions

View File

@@ -3820,6 +3820,10 @@ for (tmr=0; tmr<=SIM_NTIMERS; tmr++) {
if (rtc->hz)
rtc->initd = rtc->currd = (int32)(((double)sim_precalibrate_ips) / rtc->hz);
}
if ((cmd = sim_clock_precalibrate_cleanup_commands)) {
while (*cmd)
exdep_cmd (EX_D, *(cmd++));
}
reset_all_p (0);
sim_run_boot_prep (RU_GO);
for (tmr=0; tmr<=SIM_NTIMERS; tmr++) {