From 9b6a48013378892bed67eb9951d15f4c82f2c774 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Wed, 18 Nov 2020 20:37:07 +0100 Subject: [PATCH] Fix doa --- src/mame/drivers/model2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/model2.cpp b/src/mame/drivers/model2.cpp index 721cf0aa09c..e8a767f3dcf 100644 --- a/src/mame/drivers/model2.cpp +++ b/src/mame/drivers/model2.cpp @@ -7072,14 +7072,14 @@ u32 model2_state::doa_unk_r() void model2_state::sega_0229_map(address_map &map) { // view the protection device has into RAM, this might need endian swapping - map(0x000000, 0x007fff).ram().share("protram0229"); + map(0x000000, 0x007fff).lrw8([this](offs_t offset){ return m_maincpu->space(AS_PROGRAM).read_byte(0x1d80000+offset); }, "prot", [this](offs_t offset, u8 data) { m_maincpu->space(AS_PROGRAM).write_byte(0x1d80000+offset, data); }, "prot"); } /* common map for 0229 protection */ void model2_state::model2_0229_mem(address_map &map) { // the addresses here suggest this is only connected to a 0x8000 byte window, not 0x80000 like ST-V - map(0x01d80000, 0x01d87fff).ram().share("protram0229"); + map(0x01d80000, 0x01d87fff).ram(); map(0x01d87ff0, 0x01d87ff3).w(m_0229crypt, FUNC(sega_315_5838_comp_device::srcaddr_w)); map(0x01d87ff4, 0x01d87ff7).w(m_0229crypt, FUNC(sega_315_5838_comp_device::data_w_doa)); map(0x01d87ff8, 0x01d87ffb).r(FUNC(model2_state::doa_prot_r));