summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/gamecom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/gamecom.c')
-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;