1 // license:BSD-3-Clause 2 // copyright-holders:David Haywood 3 #ifndef MAME_INCLUDES_SBUGGER_H 4 #define MAME_INCLUDES_SBUGGER_H 5 6 #pragma once 7 8 #include "emupal.h" 9 #include "tilemap.h" 10 11 class sbugger_state : public driver_device 12 { 13 public: sbugger_state(const machine_config & mconfig,device_type type,const char * tag)14 sbugger_state(const machine_config &mconfig, device_type type, const char *tag) : 15 driver_device(mconfig, type, tag), 16 m_maincpu(*this, "maincpu"), 17 m_gfxdecode(*this, "gfxdecode"), 18 m_videoram_attr(*this, "videoram_attr"), 19 m_videoram(*this, "videoram") 20 { } 21 22 void sbugger(machine_config &config); 23 24 private: 25 required_device<cpu_device> m_maincpu; 26 required_device<gfxdecode_device> m_gfxdecode; 27 28 required_shared_ptr<uint8_t> m_videoram_attr; 29 required_shared_ptr<uint8_t> m_videoram; 30 31 tilemap_t *m_tilemap; 32 33 void videoram_w(offs_t offset, uint8_t data); 34 void videoram_attr_w(offs_t offset, uint8_t data); 35 36 TILE_GET_INFO_MEMBER(get_tile_info); 37 38 virtual void video_start() override; 39 void sbugger_palette(palette_device &palette) const; 40 41 uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); 42 void sbugger_io_map(address_map &map); 43 void sbugger_map(address_map &map); 44 }; 45 46 #endif // MAME_INCLUDES_SBUGGER_H 47