summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/othunder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/othunder.h')
-rw-r--r--src/mame/includes/othunder.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/mame/includes/othunder.h b/src/mame/includes/othunder.h
index d36820a8ab9..2dd8e47bb7e 100644
--- a/src/mame/includes/othunder.h
+++ b/src/mame/includes/othunder.h
@@ -25,6 +25,8 @@ public:
othunder_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag),
m_spriteram(*this,"spriteram"),
+ m_sprmap_rom(*this,"sprmap_rom"),
+ m_z80bank(*this,"z80bank"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_eeprom(*this, "eeprom"),
@@ -48,7 +50,7 @@ protected:
virtual void video_start() override;
private:
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, const int *primasks, int y_offs);
+ void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, const u32 *primasks, int y_offs);
void irq_ack_w(offs_t offset, u16 data);
void eeprom_w(u8 data);
@@ -56,24 +58,25 @@ private:
DECLARE_WRITE_LINE_MEMBER(adc_eoc_w);
void sound_bankswitch_w(u8 data);
void tc0310fam_w(offs_t offset, u8 data);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
DECLARE_WRITE_LINE_MEMBER(vblank_w);
void othunder_map(address_map &map);
void z80_sound_map(address_map &map);
/* memory pointers */
- required_shared_ptr<uint16_t> m_spriteram;
+ required_shared_ptr<u16> m_spriteram;
+ required_region_ptr<u16> m_sprmap_rom;
+ required_memory_bank m_z80bank;
/* video-related */
struct tempsprite
{
- int gfx;
- int code,color;
- int flipx,flipy;
+ u32 code,color;
+ bool flipx,flipy;
int x,y;
int zoomx,zoomy;
- int primask;
+ u32 primask;
};
std::unique_ptr<tempsprite[]> m_spritelist;