From 6a131ec59af671b6a9e5b3861868afc86a5fb54f Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 29 May 2019 00:18:27 -0700 Subject: [PATCH] PDP10: Fix sequencing of polling to properly leverage console speed setting --- PDP10/pdp10_fe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PDP10/pdp10_fe.c b/PDP10/pdp10_fe.c index 5cd6b8be..3b16b174 100644 --- a/PDP10/pdp10_fe.c +++ b/PDP10/pdp10_fe.c @@ -191,8 +191,9 @@ t_stat fei_svc (UNIT *uptr) { int32 temp; +temp = sim_poll_kbd (); /* get possible char or error? */ sim_clock_coschedule (uptr, tmxr_poll); /* continue poll */ -if ((temp = sim_poll_kbd ()) < SCPE_KFLAG) /* no char or error? */ +if (temp < SCPE_KFLAG) /* no char or error? */ return temp; if (temp & SCPE_BREAK) /* ignore break */ return SCPE_OK; @@ -288,7 +289,7 @@ return SCPE_OK; t_stat fe_reset (DEVICE *dptr) { -tmxr_set_console_units (&fe_unit[0], &fe_unit[1]); +tmxr_set_console_units (&fei_unit, &feo_unit); fei_unit.buf = feo_unit.buf = 0; M[FE_CTYIN] = M[FE_CTYOUT] = 0;