summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/8237dma.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-06-04 09:32:55 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-06-04 09:32:55 +0000
commit85c48c03f6f6c5bdac6b5d01b3e753e583444d65 (patch)
treef816d7af1550dfb13fd337bcaee6f0ef914b777b /src/emu/machine/8237dma.c
parent59cc08d697bef1185212193f7b01a40b230d1faa (diff)
putting this back, causing more issues then fix (nw)
Diffstat (limited to 'src/emu/machine/8237dma.c')
-rw-r--r--src/emu/machine/8237dma.c26
1 files changed, 5 insertions, 21 deletions
diff --git a/src/emu/machine/8237dma.c b/src/emu/machine/8237dma.c
index 6d58523ddf9..057f626578b 100644
--- a/src/emu/machine/8237dma.c
+++ b/src/emu/machine/8237dma.c
@@ -304,8 +304,7 @@ void i8237_device::i8237_timerproc()
m_out_hrq_func(m_hrq);
m_state = DMA8237_S0;
- //m_timer->enable( true );
- m_timer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock()));
+ m_timer->enable( true );
}
else if (m_command == 3 && (m_drq & 1))
{
@@ -315,8 +314,7 @@ void i8237_device::i8237_timerproc()
}
else
{
- //m_timer->enable( false );
- m_timer->reset();
+ m_timer->enable( false );
}
break;
}
@@ -609,11 +607,7 @@ WRITE8_DEVICE_HANDLER_TRAMPOLINE(i8237, i8237_w)
case 8:
/* DMA command register */
m_command = data;
-// m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 );
- if ( m_command & 0x04 )
- m_timer->reset();
- else
- m_timer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock()));
+ m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 );
break;
case 9:
@@ -623,12 +617,7 @@ WRITE8_DEVICE_HANDLER_TRAMPOLINE(i8237, i8237_w)
if ( data & 0x04 )
{
m_drq |= 0x01 << channel;
- //m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 );
- if ( m_command & 0x04 )
- m_timer->reset();
- else
- m_timer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock()));
-
+ m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 );
}
else
{
@@ -703,12 +692,7 @@ void i8237_device::i8237_drq_write(int channel, int state)
m_drq &= ~( 0x01 << channel );
}
- //m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 );
- if ( m_command & 0x04 )
- m_timer->reset();
- else
- m_timer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock()));
-
+ m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 );
}