mirror of
https://github.com/open-simh/simh.git
synced 2026-05-04 15:16:06 +00:00
Fix DZ when lines is greater than 32.
This commit is contained in:
@@ -90,7 +90,7 @@ extern int32 int_req[IPL_HLVL];
|
|||||||
#error "Too many DZ multiplexers"
|
#error "Too many DZ multiplexers"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DZ_MNOMASK (DZ_MUXES - 1) /* mask for mux no */
|
#define DZ_MNOMASK (dz_desc.lines/DZ_LINES - 1) /* mask for mux no */
|
||||||
#define DZ_LNOMASK (DZ_LINES - 1) /* mask for lineno */
|
#define DZ_LNOMASK (DZ_LINES - 1) /* mask for lineno */
|
||||||
#define DZ_LMASK ((1 << DZ_LINES) - 1) /* mask of lines */
|
#define DZ_LMASK ((1 << DZ_LINES) - 1) /* mask of lines */
|
||||||
#define DZ_SILO_ALM 16 /* silo alarm level */
|
#define DZ_SILO_ALM 16 /* silo alarm level */
|
||||||
@@ -696,7 +696,7 @@ if (sim_switches & SWMASK ('M')) { /* modem control? */
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (dz = 0; dz < DZ_MUXES; dz++) {
|
for (dz = 0; dz < dz_desc.lines/DZ_LINES; dz++) {
|
||||||
if (!dz_mctl || (0 == (dz_csr[dz] & CSR_MSE))) /* enabled? */
|
if (!dz_mctl || (0 == (dz_csr[dz] & CSR_MSE))) /* enabled? */
|
||||||
continue;
|
continue;
|
||||||
for (muxln = 0; muxln < DZ_LINES; muxln++) {
|
for (muxln = 0; muxln < DZ_LINES; muxln++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user