From c26d5598429da319a3b07a566e88a5437b2176dd Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Sun, 11 Aug 2019 14:11:08 -0400 Subject: [PATCH] KA10: Yet another fix to get parity right. --- PDP10/kx10_mt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PDP10/kx10_mt.c b/PDP10/kx10_mt.c index 020e974..9e45039 100644 --- a/PDP10/kx10_mt.c +++ b/PDP10/kx10_mt.c @@ -616,7 +616,7 @@ t_stat mt_srv(UNIT * uptr) cc = 6 * (5 - uptr->CPOS); ch = mt_buffer[uptr->BPOS]; if ((((uptr->CNTRL & ODD_PARITY) ? 0x40 : 0) ^ (ch & 0x40) ^ - parity_table[ch & 0x3f]) == 0) { + parity_table[ch & 0x3f]) != 0) { mt_status |= PARITY_ERR; } mt_df10.buf |= (uint64)(ch & 0x3f) << cc; @@ -695,7 +695,7 @@ t_stat mt_srv(UNIT * uptr) if (uptr->flags & MTUF_7TRK) { ch = mt_buffer[uptr->BPOS]; if ((((uptr->CNTRL & ODD_PARITY) ? 0x40 : 0) ^ (ch & 0x40) ^ - parity_table[ch & 0x3f]) == 0) { + parity_table[ch & 0x3f]) != 0) { mt_status |= PARITY_ERR; } mt_buffer[uptr->BPOS] &= 0x3f;