From 3b046e1070c4dfdd4018f3387565321b36e820ed Mon Sep 17 00:00:00 2001 From: David Haywood Date: Wed, 22 Apr 2015 18:40:04 +0100 Subject: [PATCH] daiohc requires 6 buttons just like the others, wasn't properly playable without them (nw) --- src/mame/drivers/seta.c | 7 +++++++ src/mame/includes/seta.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/mame/drivers/seta.c b/src/mame/drivers/seta.c index 0037bb4a2cf..181b6848e27 100644 --- a/src/mame/drivers/seta.c +++ b/src/mame/drivers/seta.c @@ -1957,6 +1957,11 @@ WRITE16_MEMBER(seta_state::zombraid_gun_w) m_gun_old_clock = data & 1; } +READ16_MEMBER(seta_state::extra_r) +{ + return ioport("EXTRA")->read_safe(0xff); +} + static ADDRESS_MAP_START( wrofaero_map, AS_PROGRAM, 16, seta_state ) AM_RANGE(0x000000, 0x1fffff) AM_ROM // ROM (up to 2MB) AM_RANGE(0x200000, 0x20ffff) AM_RAM AM_SHARE("workram") // RAM (pointer for zombraid crosshair hack) @@ -1965,7 +1970,9 @@ static ADDRESS_MAP_START( wrofaero_map, AS_PROGRAM, 16, seta_state ) AM_RANGE(0x400000, 0x400001) AM_READ_PORT("P1") // P1 AM_RANGE(0x400002, 0x400003) AM_READ_PORT("P2") // P2 AM_RANGE(0x400004, 0x400005) AM_READ_PORT("COINS") // Coins + AM_RANGE(0x500000, 0x500005) AM_RAM_WRITE(seta_vregs_w) AM_SHARE("vregs") // (gundhara) Coin Lockout + Video Registers + AM_RANGE(0x500006, 0x500007) AM_READ(extra_r) // Buttons 4,5,6 (Daioh only) AM_RANGE(0x600000, 0x600003) AM_READ(seta_dsw_r) // DSW AM_RANGE(0x700000, 0x7003ff) AM_RAM // (rezon,jjsquawk) diff --git a/src/mame/includes/seta.h b/src/mame/includes/seta.h index e8e2b7e821c..197efa17094 100644 --- a/src/mame/includes/seta.h +++ b/src/mame/includes/seta.h @@ -170,6 +170,7 @@ public: DECLARE_WRITE16_MEMBER(magspeed_lights_w); DECLARE_READ8_MEMBER(dsw1_r); DECLARE_READ8_MEMBER(dsw2_r); + DECLARE_READ16_MEMBER(extra_r); DECLARE_DRIVER_INIT(downtown); DECLARE_DRIVER_INIT(rezon); DECLARE_DRIVER_INIT(twineagl);