mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
SWTP6800, IBMPC, IBMPCXT, isys8010, isys8020, imds-225: sim_interval fix
Properly sequence change to sim_interval so that debug behavior is as expected.
This commit is contained in:
@@ -584,7 +584,6 @@ int32 sim_instr (void)
|
||||
if (sim_interval <= 0) { /* check clock queue */
|
||||
if (reason = sim_process_event ()) break;
|
||||
}
|
||||
sim_interval--; /* countdown clock */
|
||||
|
||||
if (int_req > 0) { /* interrupt? */
|
||||
/* 8088 interrupts not implemented yet. */
|
||||
@@ -596,6 +595,7 @@ int32 sim_instr (void)
|
||||
break;
|
||||
}
|
||||
|
||||
sim_interval--; /* countdown clock */
|
||||
PCX = IP;
|
||||
IR = OP = fetch_byte(0); /* fetch instruction */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user