comparison lc8951.c @ 2153:8a30e44e8223

Minor CDC fix
author Michael Pavone <pavone@retrodev.com>
date Wed, 06 Apr 2022 22:46:20 -0700
parents 4cd60eecb0b1
children 8e6fb2c06024
comparison
equal deleted inserted replaced
2152:c3ee42c89b27 2153:8a30e44e8223
247 && context->regs[HEAD1] < 0x60 && (context->regs[HEAD1] & 0xF) < 0xA 247 && context->regs[HEAD1] < 0x60 && (context->regs[HEAD1] & 0xF) < 0xA
248 && context->regs[HEAD2] < 0x75 && (context->regs[HEAD2] & 0xF) < 0xA 248 && context->regs[HEAD2] < 0x75 && (context->regs[HEAD2] & 0xF) < 0xA
249 && context->regs[HEAD3] < 3 && !(context->regs[STAT0] & (BIT_NOSYNC|BIT_ILSYNC)) 249 && context->regs[HEAD3] < 3 && !(context->regs[STAT0] & (BIT_NOSYNC|BIT_ILSYNC))
250 ) { 250 ) {
251 251
252 if (context->ctrl0 & (BIT_ORQ|BIT_PRQ)) { 252 if (context->ctrl0 & (BIT_WRRQ|BIT_ORQ|BIT_PRQ)) {
253 context->regs[STAT0] |= BIT_CRCOK; 253 context->regs[STAT0] |= BIT_CRCOK;
254 } 254 }
255 context->regs[STAT1] = 0; 255 context->regs[STAT1] = 0;
256 context->regs[STAT2] = 0x90; 256 context->regs[STAT2] = 0x10;
257 } else { 257 } else {
258 if (context->ctrl0 & (BIT_ORQ|BIT_PRQ)) { 258 if (context->ctrl0 & (BIT_WRRQ|BIT_ORQ|BIT_PRQ)) {
259 context->regs[STAT0] |= BIT_UCEBLK; 259 context->regs[STAT0] |= BIT_UCEBLK;
260 } 260 }
261 context->regs[STAT1] = 0xFF; 261 context->regs[STAT1] = 0xFF;
262 context->regs[STAT2] = 0xF2; 262 context->regs[STAT2] = 0xF2;
263 } 263 }