From 1824a07d36a3a06d39fc51eecc865555cc47fa74 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Mon, 11 Nov 2019 02:52:16 +1100 Subject: [PATCH] vboy.xml: wariolnd expects 8k*8 SRAM as well (nw) bus/vboy: helps if you actually use the mirror value (nw) --- hash/vboy.xml | 2 +- src/devices/bus/vboy/rom.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hash/vboy.xml b/hash/vboy.xml index 08c6a3d21ed..eac202c66ca 100644 --- a/hash/vboy.xml +++ b/hash/vboy.xml @@ -453,7 +453,7 @@ According to Planet Virtual Boy, the following undumped protos exist - + diff --git a/src/devices/bus/vboy/rom.cpp b/src/devices/bus/vboy/rom.cpp index 991206bd1c6..14fac38ca1f 100644 --- a/src/devices/bus/vboy/rom.cpp +++ b/src/devices/bus/vboy/rom.cpp @@ -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);