summaryrefslogtreecommitdiffstats
path: root/src/mame/includes/baraduke.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/baraduke.h')
-rw-r--r--src/mame/includes/baraduke.h39
1 files changed, 23 insertions, 16 deletions
diff --git a/src/mame/includes/baraduke.h b/src/mame/includes/baraduke.h
index acfa09b85f8..de97d34805a 100644
--- a/src/mame/includes/baraduke.h
+++ b/src/mame/includes/baraduke.h
@@ -14,23 +14,10 @@ public:
m_mcu(*this, "mcu"),
m_cus30(*this, "namco"),
m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette") { }
+ m_palette(*this, "palette"),
+ m_lamp(*this, "lamp%u", 0U)
+ { }
- int m_inputport_selected;
- int m_counter;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_textram;
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_mcu;
- required_device<namco_cus30_device> m_cus30;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_bg_tilemap[2];
- int m_xscroll[2];
- int m_yscroll[2];
- int m_copy_sprites;
DECLARE_WRITE8_MEMBER(inputport_select_w);
DECLARE_READ8_MEMBER(inputport_r);
DECLARE_WRITE8_MEMBER(baraduke_lamps_w);
@@ -61,4 +48,24 @@ public:
void baraduke_map(address_map &map);
void mcu_map(address_map &map);
void mcu_port_map(address_map &map);
+
+protected:
+ virtual void machine_start() override;
+
+ int m_inputport_selected;
+ int m_counter;
+ required_shared_ptr<uint8_t> m_spriteram;
+ required_shared_ptr<uint8_t> m_videoram;
+ required_shared_ptr<uint8_t> m_textram;
+ required_device<cpu_device> m_maincpu;
+ required_device<cpu_device> m_mcu;
+ required_device<namco_cus30_device> m_cus30;
+ required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
+ tilemap_t *m_tx_tilemap;
+ tilemap_t *m_bg_tilemap[2];
+ int m_xscroll[2];
+ int m_yscroll[2];
+ int m_copy_sprites;
+ output_finder<2> m_lamp;
};