summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/stlforce.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/stlforce.h')
-rw-r--r--src/mame/includes/stlforce.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/mame/includes/stlforce.h b/src/mame/includes/stlforce.h
index bec81c82259..f1b769bd013 100644
--- a/src/mame/includes/stlforce.h
+++ b/src/mame/includes/stlforce.h
@@ -1,6 +1,6 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
-#include "sound/okim6295.h"
+
#include "machine/eepromser.h"
class stlforce_state : public driver_device
@@ -9,7 +9,6 @@ public:
stlforce_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
- m_oki(*this, "oki"),
m_eeprom(*this, "eeprom"),
m_gfxdecode(*this, "gfxdecode"),
m_palette(*this, "palette"),
@@ -21,10 +20,10 @@ public:
m_mlow_scrollram(*this, "mlow_scrollram"),
m_mhigh_scrollram(*this, "mhigh_scrollram"),
m_vidattrram(*this, "vidattrram"),
- m_spriteram(*this, "spriteram") { }
+ m_spriteram(*this, "spriteram"),
+ m_okibank(*this, "okibank") { }
required_device<cpu_device> m_maincpu;
- required_device<okim6295_device> m_oki;
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
@@ -39,6 +38,8 @@ public:
required_shared_ptr<uint16_t> m_vidattrram;
required_shared_ptr<uint16_t> m_spriteram;
+ optional_memory_bank m_okibank;
+
tilemap_t *m_bg_tilemap;
tilemap_t *m_mlow_tilemap;
tilemap_t *m_mhigh_tilemap;
@@ -46,22 +47,22 @@ public:
int m_sprxoffs;
- DECLARE_WRITE16_MEMBER(stlforce_bg_videoram_w);
- DECLARE_WRITE16_MEMBER(stlforce_mlow_videoram_w);
- DECLARE_WRITE16_MEMBER(stlforce_mhigh_videoram_w);
- DECLARE_WRITE16_MEMBER(stlforce_tx_videoram_w);
- DECLARE_WRITE16_MEMBER(eeprom_w);
- DECLARE_WRITE16_MEMBER(oki_bank_w);
+ DECLARE_WRITE16_MEMBER(bg_videoram_w);
+ DECLARE_WRITE16_MEMBER(mlow_videoram_w);
+ DECLARE_WRITE16_MEMBER(mhigh_videoram_w);
+ DECLARE_WRITE16_MEMBER(tx_videoram_w);
+ DECLARE_WRITE8_MEMBER(eeprom_w);
+ DECLARE_WRITE8_MEMBER(oki_bank_w);
DECLARE_DRIVER_INIT(twinbrat);
DECLARE_DRIVER_INIT(stlforce);
- TILE_GET_INFO_MEMBER(get_stlforce_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_stlforce_mlow_tile_info);
- TILE_GET_INFO_MEMBER(get_stlforce_mhigh_tile_info);
- TILE_GET_INFO_MEMBER(get_stlforce_tx_tile_info);
+ TILE_GET_INFO_MEMBER(get_bg_tile_info);
+ TILE_GET_INFO_MEMBER(get_mlow_tile_info);
+ TILE_GET_INFO_MEMBER(get_mhigh_tile_info);
+ TILE_GET_INFO_MEMBER(get_tx_tile_info);
virtual void video_start() override;
- uint32_t screen_update_stlforce(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
};