Mercurial > repos > blastem
comparison lc8951.c @ 2159:2ed402b4c1fb
Merge
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 24 May 2022 09:11:12 -0700 |
parents | 8a30e44e8223 |
children | 8e6fb2c06024 |
comparison
equal
deleted
inserted
replaced
2158:bdd83b47d78a | 2159:2ed402b4c1fb |
---|---|
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 } |