mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Fix doa
This commit is contained in:
parent
ff10cb5104
commit
9b6a480133
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user