diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2017-10-29 18:50:18 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2017-10-29 18:50:18 -0400 |
commit | 445cb38e0aa80fc6040027d8982a4e03a09f4d96 (patch) | |
tree | fe0c1876621ed43cf209868a6aeccddbb2ab1172 | |
parent | 5cd4c55b9b94d7e59c325ef6a0e1ba1d6583228d (diff) |
cb2001: IRQ acknowledgment (nw)
-rw-r--r-- | src/mame/drivers/cb2001.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mame/drivers/cb2001.cpp b/src/mame/drivers/cb2001.cpp index 738e4b73ca5..0c0afba925a 100644 --- a/src/mame/drivers/cb2001.cpp +++ b/src/mame/drivers/cb2001.cpp @@ -80,6 +80,7 @@ public: DECLARE_PALETTE_INIT(cb2001); uint32_t screen_update_cb2001(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(vblank_irq); + DECLARE_READ8_MEMBER(irq_ack_r); required_device<cpu_device> m_maincpu; required_device<gfxdecode_device> m_gfxdecode; required_device<palette_device> m_palette; @@ -578,7 +579,7 @@ static ADDRESS_MAP_START( cb2001_io, AS_IO, 16, cb2001_state ) AM_RANGE(0x20, 0x21) AM_DEVREAD8("aysnd", ay8910_device, data_r, 0xff00) AM_RANGE(0x22, 0x23) AM_DEVWRITE8("aysnd", ay8910_device, data_address_w, 0xffff) - AM_RANGE(0x30, 0x31) AM_WRITE(cb2001_vidctrl_w) + AM_RANGE(0x30, 0x31) AM_READ8(irq_ack_r, 0x00ff) AM_WRITE(cb2001_vidctrl_w) AM_RANGE(0x32, 0x33) AM_WRITE(cb2001_vidctrl2_w) ADDRESS_MAP_END @@ -747,7 +748,13 @@ INPUT_PORTS_END INTERRUPT_GEN_MEMBER(cb2001_state::vblank_irq) { - generic_pulse_irq_line(device.execute(), NEC_INPUT_LINE_INTP0, 1); + m_maincpu->set_input_line(NEC_INPUT_LINE_INTP0, ASSERT_LINE); +} + +READ8_MEMBER(cb2001_state::irq_ack_r) +{ + m_maincpu->set_input_line(NEC_INPUT_LINE_INTP0, CLEAR_LINE); + return 0xff; } static const gfx_layout cb2001_layout = |