PDP11, VAX: Only generate DZ output complete interrupt each line once

As reported in #782
This commit is contained in:
Mark Pizzolato 2019-12-29 12:45:27 -08:00
parent 11fed22dc7
commit 236716845a

View file

@ -668,7 +668,8 @@ for (dz = 0; dz < dz_desc.lines/DZ_LINES; dz++) { /* loop thru muxes */
for (i = 0; i < DZ_LINES; i++) { /* loop thru lines */
j = (j + 1) & DZ_LNOMASK; /* next line */
line = (dz * DZ_LINES) + j; /* get line num */
if ((linemask & (1 << j)) && tmxr_txdone_ln (&dz_ldsc[line])) {
if ((linemask & (1 << j)) && /* if enabled && */
(1 == tmxr_txdone_ln (&dz_ldsc[line]))) { /* done just now */
CSR_PUTTL (dz_csr[dz], j); /* put ln in csr */
dz_csr[dz] |= CSR_TRDY; /* set xmt rdy */
break;