summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2019-11-11 02:52:16 +1100
committer Vas Crabb <vas@vastheman.com>2019-11-11 02:52:16 +1100
commit1824a07d36a3a06d39fc51eecc865555cc47fa74 (patch)
tree37486299391ca7b50d45f76b8d70ffbcf07d51b1 /src/devices/bus
parentc56a468fddbdd06a74f4183ac6594af2d27e0285 (diff)
vboy.xml: wariolnd expects 8k*8 SRAM as well (nw)
bus/vboy: helps if you actually use the mirror value (nw)
Diffstat (limited to 'src/devices/bus')
-rw-r--r--src/devices/bus/vboy/rom.cpp6
1 files changed, 6 insertions, 0 deletions
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);