mirror of
https://github.com/holub/mame
synced 2025-06-01 10:31:48 +03:00
Fixed the I/O address in Intel 8257 DMA operations. [Curt Coder]
This commit is contained in:
parent
4ab59dc7d1
commit
d0c1bc1dab
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user