1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-23 10:58:12 +00:00

KA10: Yet another fix to get parity right.

This commit is contained in:
Richard Cornwell 2019-08-11 14:11:08 -04:00
parent 38bb55a158
commit c26d559842

View File

@ -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;