1 // license:BSD-3-Clause 2 // copyright-holders:Roberto Fresca 3 4 #include "tilemap.h" 5 6 class gatron_state : public driver_device 7 { 8 public: gatron_state(const machine_config & mconfig,device_type type,const char * tag)9 gatron_state(const machine_config &mconfig, device_type type, const char *tag) 10 : driver_device(mconfig, type, tag), 11 m_videoram(*this, "videoram"), 12 m_maincpu(*this, "maincpu"), 13 m_gfxdecode(*this, "gfxdecode"), 14 m_lamps(*this, "lamp%u", 0U) { } 15 16 void gat(machine_config &config); 17 18 protected: 19 virtual void video_start() override; 20 21 private: 22 required_shared_ptr<uint8_t> m_videoram; 23 required_device<cpu_device> m_maincpu; 24 required_device<gfxdecode_device> m_gfxdecode; 25 output_finder<9> m_lamps; 26 tilemap_t *m_bg_tilemap; 27 28 void output_port_0_w(uint8_t data); 29 void videoram_w(offs_t offset, uint8_t data); 30 void output_port_1_w(uint8_t data); 31 TILE_GET_INFO_MEMBER(get_bg_tile_info); 32 33 uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); 34 35 void gat_map(address_map &map); 36 void gat_portmap(address_map &map); 37 }; 38