PDP10: Fix sequencing of polling to properly leverage console speed setting

This commit is contained in:
Mark Pizzolato 2019-05-29 00:18:27 -07:00
parent f75f28aa21
commit 6a131ec59a

View file

@ -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;