mirror of
https://github.com/holub/mame
synced 2025-06-03 19:36:26 +03:00
removed no-longer-needed asserts from z80dma
This commit is contained in:
parent
3cf2859bda
commit
32600e4210
@ -596,7 +596,6 @@ UINT8 z80dma_device::read()
|
|||||||
if(m_read_num_follow == 0) // special case: Legend of Kage on X1 Turbo
|
if(m_read_num_follow == 0) // special case: Legend of Kage on X1 Turbo
|
||||||
res = m_status;
|
res = m_status;
|
||||||
else {
|
else {
|
||||||
assert(m_read_cur_follow < ARRAY_LENGTH(m_read_regs_follow));
|
|
||||||
res = m_read_regs_follow[m_read_cur_follow];
|
res = m_read_regs_follow[m_read_cur_follow];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -687,7 +686,6 @@ void z80dma_device::write(UINT8 data)
|
|||||||
case COMMAND_READ_STATUS_BYTE:
|
case COMMAND_READ_STATUS_BYTE:
|
||||||
if (LOG) logerror("Z80DMA '%s' CMD Read status Byte\n", tag());
|
if (LOG) logerror("Z80DMA '%s' CMD Read status Byte\n", tag());
|
||||||
READ_MASK = 1;
|
READ_MASK = 1;
|
||||||
assert(m_read_num_follow < ARRAY_LENGTH(m_read_regs_follow));
|
|
||||||
m_read_regs_follow[0] = m_status;
|
m_read_regs_follow[0] = m_status;
|
||||||
break;
|
break;
|
||||||
case COMMAND_RESET_AND_DISABLE_INTERRUPTS:
|
case COMMAND_RESET_AND_DISABLE_INTERRUPTS:
|
||||||
|
@ -221,7 +221,7 @@ READ8_MEMBER(altos5_state::memory_read_byte)
|
|||||||
WRITE8_MEMBER(altos5_state::memory_write_byte)
|
WRITE8_MEMBER(altos5_state::memory_write_byte)
|
||||||
{
|
{
|
||||||
address_space& prog_space = m_maincpu->space(AS_PROGRAM);
|
address_space& prog_space = m_maincpu->space(AS_PROGRAM);
|
||||||
return prog_space.write_byte(offset, data);
|
prog_space.write_byte(offset, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
READ8_MEMBER(altos5_state::io_read_byte)
|
READ8_MEMBER(altos5_state::io_read_byte)
|
||||||
@ -233,7 +233,7 @@ READ8_MEMBER(altos5_state::io_read_byte)
|
|||||||
WRITE8_MEMBER(altos5_state::io_write_byte)
|
WRITE8_MEMBER(altos5_state::io_write_byte)
|
||||||
{
|
{
|
||||||
address_space& prog_space = m_maincpu->space(AS_IO);
|
address_space& prog_space = m_maincpu->space(AS_IO);
|
||||||
return prog_space.write_byte(offset, data);
|
prog_space.write_byte(offset, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE_LINE_MEMBER( altos5_state::busreq_w )
|
WRITE_LINE_MEMBER( altos5_state::busreq_w )
|
||||||
|
Loading…
Reference in New Issue
Block a user