mirror of
https://github.com/simh/simh.git
synced 2026-02-18 21:38:16 +00:00
ALL: make sure all useful state is in simh registers while processing events
This commit is contained in:
@@ -599,6 +599,10 @@ while (reason == 0) { /* loop until halted */
|
||||
int32 sr, st;
|
||||
|
||||
if (sim_interval <= 0) { /* check clock queue */
|
||||
/* make sure all useful state is in simh registers while processing events */
|
||||
PSW = BUILD_PSW (cc);
|
||||
PC = PC & VAMASK;
|
||||
pcq_r->qptr = pcq_p; /* update pc q ptr */
|
||||
if ((reason = sim_process_event ()))
|
||||
break;
|
||||
int_eval ();
|
||||
|
||||
@@ -658,6 +658,11 @@ while (reason == 0) { /* loop until halted */
|
||||
int32 sr, st;
|
||||
|
||||
if (sim_interval <= 0) { /* check clock queue */
|
||||
/* make sure all useful state is in simh registers while processing events */
|
||||
PSW = BUILD_PSW (cc);
|
||||
PC = PC & VAMASK;
|
||||
set_r_display (R);
|
||||
pcq_r->qptr = pcq_p; /* update pc q ptr */
|
||||
if ((reason = sim_process_event ()))
|
||||
break;
|
||||
int_eval ();
|
||||
|
||||
Reference in New Issue
Block a user