From c33ab8cd283ae55085a126189c856903b7d15caf Mon Sep 17 00:00:00 2001 From: cracyc Date: Fri, 17 Apr 2020 17:32:23 -0500 Subject: [PATCH] m24: change mirroring which breaks the apb (nw) --- src/mame/drivers/m24.cpp | 2 +- src/mame/machine/m24_z8000.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/m24.cpp b/src/mame/drivers/m24.cpp index 051ad34034a..92cf9478676 100644 --- a/src/mame/drivers/m24.cpp +++ b/src/mame/drivers/m24.cpp @@ -452,7 +452,7 @@ void m24_state::m24_io(address_map &map) { map.unmap_value_high(); map(0x0000, 0x000f).rw(m_dmac, FUNC(am9517a_device::read), FUNC(am9517a_device::write)); - map(0x0020, 0x0021).mirror(0xe).rw(m_pic, FUNC(pic8259_device::read), FUNC(pic8259_device::write)); + map(0x0020, 0x0021).mirror(0xc).rw(m_pic, FUNC(pic8259_device::read), FUNC(pic8259_device::write)); map(0x0040, 0x0043).mirror(0xc).rw(m_pit, FUNC(pit8253_device::read), FUNC(pit8253_device::write)); map(0x0060, 0x0060).rw(FUNC(m24_state::keyboard_data_r), FUNC(m24_state::keyboard_data_w)); map(0x0061, 0x0061).rw(FUNC(m24_state::ctrlport_a_r), FUNC(m24_state::ctrlport_a_w)); diff --git a/src/mame/machine/m24_z8000.h b/src/mame/machine/m24_z8000.h index fd45aa07c3d..61d96783589 100644 --- a/src/mame/machine/m24_z8000.h +++ b/src/mame/machine/m24_z8000.h @@ -30,7 +30,7 @@ public: DECLARE_WRITE8_MEMBER(handshake_w); DECLARE_WRITE_LINE_MEMBER(halt_w) { m_z8000->set_input_line(INPUT_LINE_HALT, state); } - DECLARE_WRITE_LINE_MEMBER(int_w) { m_z8000->set_input_line(INPUT_LINE_IRQ1, state); } + DECLARE_WRITE_LINE_MEMBER(int_w) { m_z8000->set_input_line(z8001_device::VI_LINE, state); } bool halted() const { return m_z8000_halt; }