diff options
author | Olivier Galibert <galibert@pobox.com> | 2020-11-18 20:37:07 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2020-11-18 20:37:07 +0100 |
commit | 9b6a48013378892bed67eb9951d15f4c82f2c774 (patch) | |
tree | b779d4b801774755c920f38b8ac99fe8c18f5cfc | |
parent | ff10cb5104b2418d09302261e10bda21b9443a79 (diff) |
Fix doa
-rw-r--r-- | src/mame/drivers/model2.cpp | 4 |
1 files 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)); |