1
0
mirror of https://github.com/simh/simh.git synced 2026-01-13 15:27:14 +00:00

VAX: Allow potentially pending console output to be delivered prior to halting back to the sim> prompt

This commit is contained in:
Mark Pizzolato 2014-07-12 16:20:43 -07:00
parent c1c5535d0b
commit a0a7eb27b6

View File

@ -2590,6 +2590,15 @@ for ( ;; ) {
else if (cpu_unit.flags & UNIT_CONH) /* halt to console? */
cc = con_halt (CON_HLTINS, cc); /* enter firmware */
else {
/* allow potentially pending console output to */
/* be displayed before dropping back to scp */
if (sim_interval <= SERIAL_OUT_WAIT) {
sim_interval -= SERIAL_OUT_WAIT;
temp = sim_process_event ();
if (temp)
ABORT (temp);
SET_IRQL; /* update interrupts */
}
ABORT (STOP_HALT); /* halt to simulator */
}