Previous 15994 Revisions Next

r12426 Sunday 31st July, 2011 at 21:18:43 UTC by Angelo Salese
Fixed SCU DMA lv 1-2 max size incorrect behaviour, fixes palette regression with Sega Rally Plus
[src/mame/drivers]saturn.c

src/mame/drivers/saturn.c
r12425r12426
557557      /*LV 0 DMA*/
558558      case 0x00/4: case 0x20/4: case 0x40/4:  state->m_scu.src[DMA_CH]  = ((state->m_scu_regs[offset] & 0x07ffffff) >> 0); break;
559559      case 0x04/4: case 0x24/4: case 0x44/4:  state->m_scu.dst[DMA_CH]  = ((state->m_scu_regs[offset] & 0x07ffffff) >> 0); break;
560      case 0x08/4: case 0x28/4: case 0x48/4:  state->m_scu.size[DMA_CH] = ((state->m_scu_regs[offset] & ((offset == 2) ? 0x000fffff : 0x1fff)) >> 0); break;
560      case 0x08/4: case 0x28/4: case 0x48/4:  state->m_scu.size[DMA_CH] = ((state->m_scu_regs[offset] & ((offset == 2) ? 0x000fffff : 0xfff)) >> 0); break;
561561      case 0x0c/4: case 0x2c/4: case 0x4c/4:
562562         state->m_scu.src_add[DMA_CH] = (state->m_scu_regs[offset] & 0x100) ? 4 : 0;
563563         state->m_scu.dst_add[DMA_CH] = 2 << (state->m_scu_regs[offset] & 7);
r12425r12426
673673   DnMV_1(dma_ch);
674674
675675   /* max size */
676   if(state->m_scu.size[dma_ch] == 0) { state->m_scu.size[dma_ch] = (dma_ch == 0) ? 0x00100000 : 0x2000; }
676   if(state->m_scu.size[dma_ch] == 0) { state->m_scu.size[dma_ch] = (dma_ch == 0) ? 0x00100000 : 0x1000; }
677677
678678   /*set here the boundaries checks*/
679679   /*...*/

Previous 15994 Revisions Next


© 1998-2018 The MESS Team