This commit is contained in:
Olivier Galibert 2020-11-18 20:37:07 +01:00
parent ff10cb5104
commit 9b6a480133

View File

@ -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));