From ece8353b074dcc53f8d59c6e359b27277f611b2f Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Mon, 14 Dec 2020 22:42:05 +0100 Subject: [PATCH] rampart: Fix MT#7119, big thanks to rodneylives for all his help --- src/mame/drivers/rampart.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mame/drivers/rampart.cpp b/src/mame/drivers/rampart.cpp index 20a6c176d65..d7082b927db 100644 --- a/src/mame/drivers/rampart.cpp +++ b/src/mame/drivers/rampart.cpp @@ -498,6 +498,10 @@ void rampart_state::machine_start() m_maincpu->space(AS_PROGRAM).install_readwrite_tap(0x140000, 0x147fff, 0x438000, "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 slaptic seems to trigger on the whole rom, but that slows things down too much. limit to the range marble madness actually needs + m_maincpu->space(AS_PROGRAM).install_readwrite_tap(0x040000, 0x041fff, 0x000000, "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); }); }