From 7ac70e7ee51a7d185582ec21ab77efb554b13e1b Mon Sep 17 00:00:00 2001 From: Robbbert Date: Mon, 10 Dec 2012 11:57:50 +0000 Subject: [PATCH] polaris : fixed player inputs in upright cabinet (nw) --- src/mame/drivers/8080bw.c | 9 ++++++++- src/mame/includes/8080bw.h | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mame/drivers/8080bw.c b/src/mame/drivers/8080bw.c index cbd83a6a49a..97e78e0c45b 100644 --- a/src/mame/drivers/8080bw.c +++ b/src/mame/drivers/8080bw.c @@ -1566,6 +1566,13 @@ MACHINE_START_MEMBER(_8080bw_state,polaris) MACHINE_START_CALL_MEMBER(mw8080bw); } +READ8_MEMBER( _8080bw_state::polaris_port00_r ) +{ + UINT8 data = ioport("IN0")->read(); + if (m_c8080bw_flip_screen) return data; + return (data & 7) | (ioport("IN1")->read() & 0xf8); +} + // Port 5 is used to reset the watchdog timer. // This port is also written to when the boss plane is going up and down. // If you write this value to a note ciruit similar to the music, @@ -1573,7 +1580,7 @@ MACHINE_START_MEMBER(_8080bw_state,polaris) // It sounds better then the actual circuit used. // Probably an unfinished feature. static ADDRESS_MAP_START( polaris_io_map, AS_IO, 8, _8080bw_state ) - AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") AM_DEVWRITE_LEGACY("mb14241", mb14241_shift_count_w) + AM_RANGE(0x00, 0x00) AM_READ(polaris_port00_r) AM_DEVWRITE_LEGACY("mb14241", mb14241_shift_count_w) AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2") AM_WRITE(polaris_sh_port_1_w) AM_RANGE(0x03, 0x03) AM_DEVREADWRITE_LEGACY("mb14241", mb14241_shift_result_r, mb14241_shift_data_w) diff --git a/src/mame/includes/8080bw.h b/src/mame/includes/8080bw.h index 640dd465694..d0c67b1cb1e 100644 --- a/src/mame/includes/8080bw.h +++ b/src/mame/includes/8080bw.h @@ -50,6 +50,7 @@ public: DECLARE_CUSTOM_INPUT_MEMBER(claybust_gun_on_r); DECLARE_READ8_MEMBER(indianbt_r); + DECLARE_READ8_MEMBER(polaris_port00_r); DECLARE_WRITE8_MEMBER(steelwkr_sh_port_3_w); DECLARE_WRITE8_MEMBER(invadpt2_sh_port_1_w); DECLARE_WRITE8_MEMBER(invadpt2_sh_port_2_w);