vboy.xml: wariolnd expects 8k*8 SRAM as well (nw)

bus/vboy: helps if you actually use the mirror value (nw)
This commit is contained in:
Vas Crabb 2019-11-11 02:52:16 +11:00
parent c56a468fdd
commit 1824a07d36
2 changed files with 7 additions and 1 deletions

View File

@ -453,7 +453,7 @@ According to Planet Virtual Boy, the following undumped protos exist
<dataarea name="rom" size="2097152" width="32" endianness="little">
<rom name="virtual boy wario land (japan, usa).bin" size="2097152" crc="133e9372" sha1="274c328fbd904f20e69172ab826bf8f94ced1bdb" offset="000000" />
</dataarea>
<dataarea name="sram" size="0x10000" width="16" endianness="little">
<dataarea name="sram" size="8192" width="8" endianness="little">
</dataarea>
</part>
</software>

View File

@ -132,6 +132,9 @@ image_init_result vboy_flat_rom_sram_device::load()
chip_space()->install_readwrite_handler(
begin,
end,
0,
mirror,
0,
read8sm_delegate(*this, NAME([base] (offs_t offset) { return base[offset]; })),
write8sm_delegate(*this, NAME([base] (offs_t offset, u8 data) { base[offset] = data; })),
0x00ff'00ff);
@ -162,6 +165,9 @@ image_init_result vboy_flat_rom_sram_device::load()
chip_space()->install_readwrite_handler(
begin,
end,
0,
mirror,
0,
read16s_delegate(*this, NAME([base] (offs_t offset, u16 mem_mask) { return base[offset]; })),
write16s_delegate(*this, NAME([base] (offs_t offset, u16 data, u16 mem_mask) { COMBINE_DATA(base + offset); })),
0xffff'ffff);