mirror of
https://github.com/holub/mame
synced 2025-10-05 16:50:57 +03:00
(MESS) gamecom : added support for dma.decrement_y. Fixes reversed animations in Frogger.
This commit is contained in:
parent
d5722b3ca2
commit
accebcf592
@ -435,10 +435,10 @@ WRITE8_MEMBER( gamecom_state::gamecom_handle_dma )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_dma.decrement_x || m_dma.decrement_y )
|
//if ( m_dma.decrement_x || m_dma.decrement_y )
|
||||||
{
|
//{
|
||||||
popmessage( "TODO: Decrement-x and decrement-y are not supported yet\n" );
|
//popmessage( "TODO: Decrement-x and decrement-y are not supported yet\n" );
|
||||||
}
|
//}
|
||||||
|
|
||||||
m_dma.width_x = RAM[SM8521_DMDX];
|
m_dma.width_x = RAM[SM8521_DMDX];
|
||||||
m_dma.width_x_count = 0;
|
m_dma.width_x_count = 0;
|
||||||
@ -574,6 +574,9 @@ WRITE8_MEMBER( gamecom_state::gamecom_handle_dma )
|
|||||||
/* Advance a line */
|
/* Advance a line */
|
||||||
m_dma.source_x_current = m_dma.source_x;
|
m_dma.source_x_current = m_dma.source_x;
|
||||||
m_dma.dest_x_current = m_dma.dest_x;
|
m_dma.dest_x_current = m_dma.dest_x;
|
||||||
|
if ( m_dma.decrement_y )
|
||||||
|
m_dma.source_line -= m_dma.source_width;
|
||||||
|
else
|
||||||
m_dma.source_line += m_dma.source_width;
|
m_dma.source_line += m_dma.source_width;
|
||||||
m_dma.source_current = m_dma.source_line;
|
m_dma.source_current = m_dma.source_line;
|
||||||
m_dma.dest_line += m_dma.dest_width;
|
m_dma.dest_line += m_dma.dest_width;
|
||||||
|
Loading…
Reference in New Issue
Block a user