diff options
Diffstat (limited to 'src/mame/includes/gaelco.h')
-rw-r--r-- | src/mame/includes/gaelco.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/includes/gaelco.h b/src/mame/includes/gaelco.h index bfe35e2e088..8421dade291 100644 --- a/src/mame/includes/gaelco.h +++ b/src/mame/includes/gaelco.h @@ -13,14 +13,15 @@ class gaelco_state : public driver_device { public: - gaelco_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + gaelco_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_gfxdecode(*this, "gfxdecode"), m_palette(*this, "palette"), m_audiocpu(*this, "audiocpu"), m_soundlatch(*this, "soundlatch"), m_outlatch(*this, "outlatch"), + m_okibank(*this, "okibank"), m_videoram(*this, "videoram"), m_vregs(*this, "vregs"), m_spriteram(*this, "spriteram"), @@ -39,6 +40,7 @@ private: optional_device<cpu_device> m_audiocpu; optional_device<generic_latch_8_device> m_soundlatch; optional_device<ls259_device> m_outlatch; + optional_memory_bank m_okibank; /* memory pointers */ required_shared_ptr<uint16_t> m_videoram; @@ -53,15 +55,14 @@ private: DECLARE_WRITE_LINE_MEMBER(coin2_lockout_w); DECLARE_WRITE_LINE_MEMBER(coin1_counter_w); DECLARE_WRITE_LINE_MEMBER(coin2_counter_w); - DECLARE_WRITE8_MEMBER(OKIM6295_bankswitch_w); - DECLARE_WRITE16_MEMBER(gaelco_vram_encrypted_w); - DECLARE_WRITE16_MEMBER(gaelco_encrypted_w); + DECLARE_WRITE8_MEMBER(oki_bankswitch_w); + DECLARE_WRITE16_MEMBER(vram_encrypted_w); + DECLARE_WRITE16_MEMBER(encrypted_w); DECLARE_WRITE16_MEMBER(thoop_vram_encrypted_w); DECLARE_WRITE16_MEMBER(thoop_encrypted_w); - DECLARE_WRITE16_MEMBER(gaelco_vram_w); + void vram_w(offs_t offset, u16 data, u16 mem_mask); - TILE_GET_INFO_MEMBER(get_tile_info_gaelco_screen0); - TILE_GET_INFO_MEMBER(get_tile_info_gaelco_screen1); + template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info); virtual void machine_start() override; DECLARE_VIDEO_START(bigkarnk); |