diff options
Diffstat (limited to 'src/mame/midway/midyunit.h')
-rw-r--r-- | src/mame/midway/midyunit.h | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/src/mame/midway/midyunit.h b/src/mame/midway/midyunit.h index 1ac721eaac1..e62dcfdfdd4 100644 --- a/src/mame/midway/midyunit.h +++ b/src/mame/midway/midyunit.h @@ -6,8 +6,8 @@ Williams/Midway Y/Z-unit system **************************************************************************/ -#ifndef MAME_INCLUDES_MIDYUNIT_H -#define MAME_INCLUDES_MIDYUNIT_H +#ifndef MAME_MIDWAY_MIDYUNIT_H +#define MAME_MIDWAY_MIDYUNIT_H #pragma once @@ -40,6 +40,14 @@ public: , m_gfx_rom(*this, "gfx_rom", 0x800000, ENDIANNESS_BIG) , m_mainram(*this, "mainram") , m_ports(*this, { { "IN0", "IN1", "IN2", "DSW", "UNK0", "UNK1" } }) + , m_left_flash(*this, "Left_Flash_%u", 1U) + , m_right_flash(*this, "Right_Flash_%u", 1U) + , m_left_gun_recoil(*this, "Left_Gun_Recoil") + , m_right_gun_recoil(*this, "Right_Gun_Recoil") + , m_left_gun_green_led(*this, "Left_Gun_Green_Led") + , m_left_gun_red_led(*this, "Left_Gun_Red_Led") + , m_right_gun_green_led(*this, "Right_Gun_Green_Led") + , m_right_gun_red_led(*this, "Right_Gun_Red_Led") { } @@ -66,12 +74,16 @@ public: void init_mkyawdim2(); void init_shimpact(); void init_hiimpact(); + void init_mkla3bl(); void init_mkyturbo(); void init_term2la2(); - DECLARE_READ_LINE_MEMBER(narc_talkback_strobe_r); + int narc_talkback_strobe_r(); DECLARE_CUSTOM_INPUT_MEMBER(narc_talkback_data_r); - DECLARE_READ_LINE_MEMBER(adpcm_irq_state_r); + int adpcm_irq_state_r(); + +protected: + virtual void machine_start() override; private: /* protection data types */ @@ -108,6 +120,14 @@ private: memory_share_creator<uint8_t> m_gfx_rom; required_shared_ptr<uint16_t> m_mainram; optional_ioport_array<6> m_ports; + output_finder<4> m_left_flash; + output_finder<4> m_right_flash; + output_finder<> m_left_gun_recoil; + output_finder<> m_right_gun_recoil; + output_finder<> m_left_gun_green_led; + output_finder<> m_left_gun_red_led; + output_finder<> m_right_gun_green_led; + output_finder<> m_right_gun_red_led; std::unique_ptr<uint16_t[]> m_cmos_ram; std::unique_ptr<uint8_t[]> m_hidden_ram; @@ -171,7 +191,8 @@ private: void dma_draw(uint16_t command); void init_generic(int bpp, int sound, int prot_start, int prot_end); + void install_hidden_ram(mc6809e_device &cpu, int prot_start, int prot_end); void term2_init_common(write16s_delegate hack_w); }; -#endif // MAME_INCLUDES_MIDYUNIT_H +#endif // MAME_MIDWAY_MIDYUNIT_H |