From 03a79b120503dee89e9f4da8694e4522bd1172ba Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Tue, 17 Nov 2020 22:06:44 -0500 Subject: [PATCH] KA10: Fix bug with later versions of TOPS20. --- PDP10/kx10_rh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PDP10/kx10_rh.c b/PDP10/kx10_rh.c index 8b812e75..94a0495e 100644 --- a/PDP10/kx10_rh.c +++ b/PDP10/kx10_rh.c @@ -243,6 +243,7 @@ t_stat rh_devio(uint32 dev, uint64 *data) { } if (rhc->reg < 040) { int parity; + drdat = 0; if (rhc->dev_read(dptr, rhc, rhc->reg, &drdat)) rhc->status |= RH20_DR_RESP; *data = (uint64)(drdat & 0177777); @@ -401,6 +402,7 @@ t_stat rh_devio(uint32 dev, uint64 *data) { *data = (uint64)(rhc->rae); } else if ((rhc->reg & 040) == 0) { int parity; + drdat = 0; if (rhc->dev_read(dptr, rhc, rhc->reg, &drdat)) { rhc->rae |= 1 << rhc->drive; rhc->status |= CR_DRE;