diff options
Diffstat (limited to 'src/mame/includes/epos.h')
-rw-r--r-- | src/mame/includes/epos.h | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/src/mame/includes/epos.h b/src/mame/includes/epos.h index df5ce02a6a9..f2a5e1ee623 100644 --- a/src/mame/includes/epos.h +++ b/src/mame/includes/epos.h @@ -9,25 +9,15 @@ class epos_state : public driver_device { public: - epos_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + epos_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_videoram(*this, "videoram"), m_inputs(*this, { "INPUTS", "INPUTS2" }), m_maincpu(*this, "maincpu"), - m_palette(*this, "palette") + m_palette(*this, "palette"), + m_led(*this, "led%u", 0U) { } - /* memory pointers */ - required_shared_ptr<uint8_t> m_videoram; - optional_ioport_array<2> m_inputs; - - /* video-related */ - uint8_t m_palette_bank; - - /* misc */ - int m_counter; - int m_input_multiplex; - bool m_ay_porta_multiplex; DECLARE_WRITE8_MEMBER(dealer_decrypt_rom); DECLARE_WRITE8_MEMBER(port_1_w); DECLARE_READ8_MEMBER(i8255_porta_r); @@ -42,12 +32,28 @@ public: DECLARE_PALETTE_INIT(epos); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void set_pal_color( uint8_t offset, uint8_t data ); - required_device<cpu_device> m_maincpu; - required_device<palette_device> m_palette; void epos(machine_config &config); void dealer(machine_config &config); void dealer_io_map(address_map &map); void dealer_map(address_map &map); void epos_io_map(address_map &map); void epos_map(address_map &map); + +protected: + virtual void machine_start() override { m_led.resolve(); } + + /* memory pointers */ + required_shared_ptr<uint8_t> m_videoram; + optional_ioport_array<2> m_inputs; + + /* video-related */ + uint8_t m_palette_bank; + + /* misc */ + int m_counter; + int m_input_multiplex; + bool m_ay_porta_multiplex; + required_device<cpu_device> m_maincpu; + required_device<palette_device> m_palette; + output_finder<2> m_led; }; |