diff options
Diffstat (limited to 'src/mame/includes/spcforce.h')
-rw-r--r-- | src/mame/includes/spcforce.h | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/src/mame/includes/spcforce.h b/src/mame/includes/spcforce.h index ff11d74ed8e..378288412ef 100644 --- a/src/mame/includes/spcforce.h +++ b/src/mame/includes/spcforce.h @@ -5,8 +5,8 @@ class spcforce_state : public driver_device { public: - spcforce_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + spcforce_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_audiocpu(*this, "audiocpu"), m_gfxdecode(*this, "gfxdecode"), @@ -16,26 +16,9 @@ public: m_sn3(*this, "sn3"), m_scrollram(*this, "scrollram"), m_videoram(*this, "videoram"), - m_colorram(*this, "colorram") { } - - required_device<cpu_device> m_maincpu; - required_device<cpu_device> m_audiocpu; - required_device<gfxdecode_device> m_gfxdecode; - required_device<palette_device> m_palette; - required_device<sn76496_device> m_sn1; - required_device<sn76496_device> m_sn2; - required_device<sn76496_device> m_sn3; - - required_shared_ptr<uint8_t> m_scrollram; - required_shared_ptr<uint8_t> m_videoram; - required_shared_ptr<uint8_t> m_colorram; - - int m_sn76496_latch; - int m_sn76496_select; - int m_sn1_ready; - int m_sn2_ready; - int m_sn3_ready; - uint8_t m_irq_mask; + m_colorram(*this, "colorram"), + m_lamp(*this, "lamp%u", 0U) + { } DECLARE_WRITE8_MEMBER(SN76496_latch_w); DECLARE_READ8_MEMBER(SN76496_select_r); @@ -50,7 +33,6 @@ public: DECLARE_WRITE_LINE_MEMBER(flip_screen_w); DECLARE_WRITE_LINE_MEMBER(unknown_w); - virtual void machine_start() override; DECLARE_PALETTE_INIT(spcforce); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -60,4 +42,27 @@ public: void spcforce(machine_config &config); void spcforce_map(address_map &map); void spcforce_sound_map(address_map &map); + +protected: + virtual void machine_start() override; + + required_device<cpu_device> m_maincpu; + required_device<cpu_device> m_audiocpu; + required_device<gfxdecode_device> m_gfxdecode; + required_device<palette_device> m_palette; + required_device<sn76496_device> m_sn1; + required_device<sn76496_device> m_sn2; + required_device<sn76496_device> m_sn3; + + required_shared_ptr<uint8_t> m_scrollram; + required_shared_ptr<uint8_t> m_videoram; + required_shared_ptr<uint8_t> m_colorram; + output_finder<2> m_lamp; + + int m_sn76496_latch; + int m_sn76496_select; + int m_sn1_ready; + int m_sn2_ready; + int m_sn3_ready; + uint8_t m_irq_mask; }; |