VAX, PDP11: Fix DZ device to also regulate input speeds when data is arriving on multiple lines.

This commit is contained in:
Mark Pizzolato 2015-11-29 08:28:15 -08:00
parent 01c410ab32
commit fc001cad1f

View file

@ -569,6 +569,11 @@ if (t) { /* any enabled? */
dz_update_rcvi (); /* upd rcv intr */ dz_update_rcvi (); /* upd rcv intr */
tmxr_poll_tx (&dz_desc); /* poll output */ tmxr_poll_tx (&dz_desc); /* poll output */
dz_update_xmti (); /* upd xmt intr */ dz_update_xmti (); /* upd xmt intr */
for (dz = 0; dz < dz_desc.lines/DZ_LINES; dz++) {
if (dz_csr[dz] & CSR_RDONE)
break;
}
if (dz == dz_desc.lines/DZ_LINES) /* All idle? */
sim_clock_coschedule (uptr, tmxr_poll); /* reactivate */ sim_clock_coschedule (uptr, tmxr_poll); /* reactivate */
} }
return SCPE_OK; return SCPE_OK;