Previous 199869 Revisions Next

r21088 Friday 15th February, 2013 at 15:02:37 UTC by Angelo Salese
Might as well do the same thing for Slave CPU, nw
[src/mame/drivers]saturn.c

trunk/src/mame/drivers/saturn.c
r21087r21088
16061606TIMER_DEVICE_CALLBACK_MEMBER(saturn_state::saturn_slave_scanline )
16071607{
16081608   int scanline = param;
1609   int max_y = machine().primary_screen->height();
16101609   int y_step,vblank_line;
16111610
1612   y_step = 2;
1611   int y_step,vblank_line;
16131612
1614   if((max_y == 263 && m_vdp2.pal == 0) || (max_y == 313 && m_vdp2.pal == 1))
1615      y_step = 1;
1613   vblank_line = get_vblank_start_position();
1614   y_step = get_ystep_count();
16161615
1617   vblank_line = (m_vdp2.pal) ? 288 : 240;
1618
16191616   if(scanline == vblank_line*y_step)
16201617      m_slave->set_input_line_and_vector(0x6, HOLD_LINE, 0x43);
16211618   else if((scanline % y_step) == 0 && scanline < vblank_line*y_step)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team