diff options
Diffstat (limited to 'src/mame/includes/midwunit.h')
-rw-r--r-- | src/mame/includes/midwunit.h | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/src/mame/includes/midwunit.h b/src/mame/includes/midwunit.h index f1b39b35bb0..8545708a63c 100644 --- a/src/mame/includes/midwunit.h +++ b/src/mame/includes/midwunit.h @@ -38,20 +38,11 @@ public: void init_umk3r11(); void init_mk3r20(); -private: - optional_device<midway_serial_pic_device> m_midway_serial_pic; - optional_device<midway_serial_pic_emu_device> m_midway_serial_pic_emu; - required_shared_ptr<uint16_t> m_nvram; - required_shared_ptr<uint16_t> m_mainram; - required_ioport_array<4> m_ports; - - uint8_t m_cmos_write_enable; - uint16_t m_iodata[8]; - uint8_t m_ioshuffle[16]; - uint8_t m_uart[8]; - uint8_t m_security_bits; - uint16_t *m_umk3_palette; +protected: + virtual void machine_start() override; + virtual void machine_reset() override; +private: DECLARE_WRITE16_MEMBER(midwunit_cmos_enable_w); DECLARE_WRITE16_MEMBER(midwunit_cmos_w); DECLARE_READ16_MEMBER(midwunit_cmos_r); @@ -65,13 +56,21 @@ private: DECLARE_WRITE16_MEMBER(umk3_palette_hack_w); DECLARE_WRITE16_MEMBER(wwfmania_io_0_w); - DECLARE_MACHINE_RESET(midwunit); - DECLARE_VIDEO_START(midwunit); - - void register_state_saving(); - void init_wunit_generic(); void init_mk3_common(); void main_map(address_map &map); + + optional_device<midway_serial_pic_device> m_midway_serial_pic; + optional_device<midway_serial_pic_emu_device> m_midway_serial_pic_emu; + required_shared_ptr<uint16_t> m_nvram; + required_shared_ptr<uint16_t> m_mainram; + required_ioport_array<4> m_ports; + + uint8_t m_cmos_write_enable; + uint16_t m_iodata[8]; + uint8_t m_ioshuffle[16]; + uint8_t m_uart[8]; + uint8_t m_security_bits; + uint16_t *m_umk3_palette; }; #endif // MAME_INCLUDES_MIDWUNIT_H |