From 236716845adb67600e43c04049f6e1de9e842155 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 29 Dec 2019 12:45:27 -0800 Subject: [PATCH] PDP11, VAX: Only generate DZ output complete interrupt each line once As reported in #782 --- PDP11/pdp11_dz.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PDP11/pdp11_dz.c b/PDP11/pdp11_dz.c index de99b474..733dd69d 100644 --- a/PDP11/pdp11_dz.c +++ b/PDP11/pdp11_dz.c @@ -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;