summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/groundfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/groundfx.h')
-rw-r--r--src/mame/includes/groundfx.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/mame/includes/groundfx.h b/src/mame/includes/groundfx.h
index d0a3288f08c..a27818aa1c8 100644
--- a/src/mame/includes/groundfx.h
+++ b/src/mame/includes/groundfx.h
@@ -11,9 +11,9 @@
struct gfx_tempsprite
{
- int gfx;
- int code,color;
- int flipx,flipy;
+ u8 gfx;
+ u32 code,color;
+ bool flipx,flipy;
int x,y;
int zoomx,zoomy;
int pri;
@@ -30,7 +30,8 @@ public:
m_tc0100scn(*this, "tc0100scn"),
m_tc0480scp(*this, "tc0480scp"),
m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
+ m_palette(*this, "palette"),
+ m_spritemap(*this, "spritemap")
{ }
void groundfx(machine_config &config);
@@ -40,27 +41,28 @@ protected:
virtual void video_start() override;
private:
- required_shared_ptr<uint32_t> m_ram;
- required_shared_ptr<uint32_t> m_spriteram;
+ required_shared_ptr<u32> m_ram;
+ required_shared_ptr<u32> m_spriteram;
required_device<cpu_device> m_maincpu;
required_device<tc0100scn_device> m_tc0100scn;
required_device<tc0480scp_device> m_tc0480scp;
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
+ required_region_ptr<u16> m_spritemap;
- uint16_t m_frame_counter;
- uint16_t m_port_sel;
+ u16 m_frame_counter;
+ u16 m_port_sel;
std::unique_ptr<gfx_tempsprite[]> m_spritelist;
- uint16_t m_rotate_ctrl[8];
+ u16 m_rotate_ctrl[8];
rectangle m_hack_cliprect;
- DECLARE_WRITE32_MEMBER(rotate_control_w);
- DECLARE_WRITE32_MEMBER(motor_control_w);
+ void rotate_control_w(offs_t offset, u16 data);
+ void motor_control_w(u32 data);
DECLARE_READ32_MEMBER(irq_speedup_r);
DECLARE_READ_LINE_MEMBER(frame_counter_r);
- DECLARE_WRITE8_MEMBER(coin_word_w);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ void coin_word_w(u8 data);
+ u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(interrupt);
void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect,int do_hack,int x_offs,int y_offs);