1
0
mirror of https://github.com/simh/simh.git synced 2026-04-27 20:38:04 +00:00

ALL: make sure all useful state is in simh registers while processing events

This commit is contained in:
Mark Pizzolato
2015-01-15 12:37:07 -08:00
parent 0d41242520
commit 5551a0dd9c
19 changed files with 63 additions and 0 deletions

View File

@@ -433,6 +433,10 @@ while (reason == 0) { /* loop until stop */
}
if (sim_interval <= 0) { /* event queue? */
/* make sure all useful state is in simh registers while processing events */
pcq_r->qptr = pcq_p; /* update pc q ptr */
cpu_assemble_PSD (); /* visible PSD */
set_rf_display (R); /* visible registers */
if (reason = sim_process_event ()) /* process */
break;
int_hireq = io_eval_int (); /* re-evaluate intr */