summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robert <Robbbert@users.noreply.github.com>2014-11-27 21:46:19 +1100
committer Robert <Robbbert@users.noreply.github.com>2014-11-27 21:46:19 +1100
commitaccebcf59298043abef4e5893ac36ffe39e7a326 (patch)
tree72e2f681d0ee5004c5a500824e487ce944824c16
parentd5722b3ca2b6496f8ee2b484d7640bbdc8bca18b (diff)
(MESS) gamecom : added support for dma.decrement_y. Fixes reversed animations in Frogger.
-rw-r--r--src/mess/machine/gamecom.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mess/machine/gamecom.c b/src/mess/machine/gamecom.c
index bbf2338da24..6aeef8d5251 100644
--- a/src/mess/machine/gamecom.c
+++ b/src/mess/machine/gamecom.c
@@ -435,10 +435,10 @@ WRITE8_MEMBER( gamecom_state::gamecom_handle_dma )
return;
}
- if ( m_dma.decrement_x || m_dma.decrement_y )
- {
- popmessage( "TODO: Decrement-x and decrement-y are not supported yet\n" );
- }
+ //if ( m_dma.decrement_x || m_dma.decrement_y )
+ //{
+ //popmessage( "TODO: Decrement-x and decrement-y are not supported yet\n" );
+ //}
m_dma.width_x = RAM[SM8521_DMDX];
m_dma.width_x_count = 0;
@@ -574,7 +574,10 @@ WRITE8_MEMBER( gamecom_state::gamecom_handle_dma )
/* Advance a line */
m_dma.source_x_current = m_dma.source_x;
m_dma.dest_x_current = m_dma.dest_x;
- m_dma.source_line += m_dma.source_width;
+ 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_current = m_dma.source_line;
m_dma.dest_line += m_dma.dest_width;
m_dma.dest_current = m_dma.dest_line;