Fixed the I/O address in Intel 8257 DMA operations. [Curt Coder]

This commit is contained in:
Curt Coder 2011-04-15 13:09:41 +00:00
parent 4ab59dc7d1
commit d0c1bc1dab
2 changed files with 4 additions and 4 deletions

View File

@ -190,7 +190,7 @@ int i8257_device::i8257_do_operation(int channel)
} }
if (&m_out_iow_func[channel].target != NULL) if (&m_out_iow_func[channel].target != NULL)
{ {
devcb_call_write8(&m_out_iow_func[channel], 0, data); devcb_call_write8(&m_out_iow_func[channel], m_address[channel], data);
} }
else else
{ {
@ -205,7 +205,7 @@ int i8257_device::i8257_do_operation(int channel)
case 2: case 2:
if (&m_in_ior_func[channel].target != NULL) if (&m_in_ior_func[channel].target != NULL)
{ {
data = devcb_call_read8(&m_in_ior_func[channel], 0); data = devcb_call_read8(&m_in_ior_func[channel], m_address[channel]);
} }
else else
{ {

View File

@ -67,8 +67,8 @@ struct i8257_interface
devcb_write_line m_out_mark_func; devcb_write_line m_out_mark_func;
/* accessors to main memory */ /* accessors to main memory */
devcb_read8 m_in_memr_func; devcb_read8 m_in_memr_func; // TODO m_in_memr_func[I8257_NUM_CHANNELS];
devcb_write8 m_out_memw_func; devcb_write8 m_out_memw_func; // TODO m_out_memw_func[I8257_NUM_CHANNELS];
/* channel accesors */ /* channel accesors */
devcb_read8 m_in_ior_func[I8257_NUM_CHANNELS]; devcb_read8 m_in_ior_func[I8257_NUM_CHANNELS];