peter packrat: fix slapstic too

This commit is contained in:
Olivier Galibert 2021-01-21 15:30:22 +01:00
parent bfb99e2a8e
commit 40a05f4dbc

View File

@ -2499,10 +2499,14 @@ void atarisy1_state::init_slapstic()
[this](offs_t offset, u16 &data, u16 mem_mask) { m_slapstic->tweak(offset >> 1); },
[this](offs_t offset, u16 &data, u16 mem_mask) { m_slapstic->tweak(offset >> 1); });
// The slapstic seems to trigger on the whole rom, but that slows things down too much. limit to the range marble madness actually needs
// Some states of the slapstic seems trigger on the whole address space, but that slows things down too much and this point.
// limit to the ranges marble madness and peterpak actually need
m_maincpu->space(AS_PROGRAM).install_readwrite_tap(0x2ff5a, 0x2ff5b, 0, "slapstic",
[this](offs_t offset, u16 &data, u16 mem_mask) { m_slapstic->tweak(offset >> 1); },
[this](offs_t offset, u16 &data, u16 mem_mask) { m_slapstic->tweak(offset >> 1); });
m_maincpu->space(AS_PROGRAM).install_readwrite_tap(0x101d4, 0x101d9, 0, "slapstic",
[this](offs_t offset, u16 &data, u16 mem_mask) { m_slapstic->tweak(offset >> 1); },
[this](offs_t offset, u16 &data, u16 mem_mask) { m_slapstic->tweak(offset >> 1); });
}
void atarisy1_state::init_marble()