Previous 199869 Revisions Next

r20593 Tuesday 29th January, 2013 at 01:18:45 UTC by Angelo Salese
Made SCU DMAs to be relative to master SH-2 cycles, improves timing in most FMVs
[src/mame/drivers]saturn.c
[src/mame/video]stvvdp2.c

trunk/src/mame/drivers/saturn.c
r20592r20593
513513      }
514514   }
515515
516   m_scu.size[dma_ch] = tmp_size;
516   m_scu.size[dma_ch] = 0;
517517   if(!(DRUP(dma_ch))) m_scu.src[dma_ch] = tmp_src;
518518   if(!(DWUP(dma_ch))) m_scu.dst[dma_ch] = tmp_dst;
519519
520520   {
521      /*TODO: this is completely wrong HW-wise ...  */
521      /*TODO: change DMA into DRQ model.  */
522522      switch(dma_ch)
523523      {
524         case 0: machine().scheduler().timer_set(attotime::from_usec(300), timer_expired_delegate(FUNC(saturn_state::dma_lv0_ended),this)); break;
525         case 1: machine().scheduler().timer_set(attotime::from_usec(300), timer_expired_delegate(FUNC(saturn_state::dma_lv1_ended),this)); break;
526         case 2: machine().scheduler().timer_set(attotime::from_usec(300), timer_expired_delegate(FUNC(saturn_state::dma_lv2_ended),this)); break;
524         case 0: machine().scheduler().timer_set(m_maincpu->cycles_to_attotime(tmp_size/4), timer_expired_delegate(FUNC(saturn_state::dma_lv0_ended),this)); break;
525         case 1: machine().scheduler().timer_set(m_maincpu->cycles_to_attotime(tmp_size/4), timer_expired_delegate(FUNC(saturn_state::dma_lv1_ended),this)); break;
526         case 2: machine().scheduler().timer_set(m_maincpu->cycles_to_attotime(tmp_size/4), timer_expired_delegate(FUNC(saturn_state::dma_lv2_ended),this)); break;
527527      }
528528   }
529529}
trunk/src/mame/video/stvvdp2.c
r20592r20593
42334233      /* Sega Rally 0x0155 */
42344234      /* Find Love  0x4400 */
42354235      /* Dragon Ball Z 0x3800 - 0x2c00 */
4236      if(STV_VDP2_SFPRMD & ~0x7d55)
4236      if(STV_VDP2_SFPRMD & ~0x7d75)
42374237         popmessage("Special Priority Mode enabled %04x, contact MAMEdev",STV_VDP2_SFPRMD);
42384238   }
42394239}

Previous 199869 Revisions Next


© 1997-2024 The MAME Team