From ad630284665ccb11c2da1582cc81181bece498f3 Mon Sep 17 00:00:00 2001 From: AJR Date: Wed, 20 Jul 2022 18:44:16 -0400 Subject: kiwame.cpp: Remove unneeded banking callback * metafox: Update notes --- src/mame/seta/kiwame.cpp | 12 +----------- src/mame/seta/seta.cpp | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/mame/seta/kiwame.cpp b/src/mame/seta/kiwame.cpp index 3da5ec9cd96..c3d7550b8ce 100644 --- a/src/mame/seta/kiwame.cpp +++ b/src/mame/seta/kiwame.cpp @@ -39,7 +39,6 @@ private: u16 input_r(offs_t offset); DECLARE_WRITE_LINE_MEMBER(kiwame_vblank); - X1_001_SPRITE_GFXBANK_CB_MEMBER(setac_gfxbank_callback); u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void kiwame_map(address_map &map); @@ -78,14 +77,6 @@ WRITE_LINE_MEMBER(kiwame_state::kiwame_vblank) m_maincpu->external_interrupt_0(); } -X1_001_SPRITE_GFXBANK_CB_MEMBER(kiwame_state::setac_gfxbank_callback) -{ - const int bank = (color & 0x06) >> 1; - code = (code & 0x3fff) + (bank * 0x4000); - - return code; -} - u32 kiwame_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { bitmap.fill(0x1f0, cliprect); @@ -286,10 +277,9 @@ void kiwame_state::kiwame(machine_config &config) m_maincpu->set_addrmap(AS_PROGRAM, &kiwame_state::kiwame_map); m_maincpu->out_parallel_callback().set(FUNC(kiwame_state::row_select_w)); - NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); // 2x LH52B256D-70LL + battery + NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); // 2x LH52B256D-70LL + battery (possibly only lower bytes battery-backed) X1_001(config, m_spritegen, 16000000, "palette", gfx_sprites); - m_spritegen->set_gfxbank_callback(FUNC(kiwame_state::setac_gfxbank_callback)); // position kludges m_spritegen->set_fg_xoffsets(-16, 0); // correct (test grid) m_spritegen->set_fg_yoffsets(-0x12, 0x0e); diff --git a/src/mame/seta/seta.cpp b/src/mame/seta/seta.cpp index 3f2f4f0c98e..5e19703c58f 100644 --- a/src/mame/seta/seta.cpp +++ b/src/mame/seta/seta.cpp @@ -12176,7 +12176,7 @@ u16 downtown_state::metafox_protection_r(offs_t offset) // the first address in each range is special and returns data written elsewhere in that range // 21fde0-21fdff appears to be control bytes? - // Protection device is a surface-scratched SDIP64 on the P1-049-A sub PCB + // Protection device (likely X1-017) is a surface-scratched SDIP64 on the P1-049-A sub PCB switch (offset) { -- cgit v1.2.3