From 028d02ba7a616af3a8f3f04a451c6af324d8fb3c Mon Sep 17 00:00:00 2001 From: arbee Date: Sat, 4 Dec 2021 16:18:51 -0500 Subject: [PATCH] a2eramworks3.cpp: fix Franklin 500 384K expansion to correctly limit memory to 384K. [R. Belmont] --- src/devices/bus/a2bus/a2eramworks3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/devices/bus/a2bus/a2eramworks3.cpp diff --git a/src/devices/bus/a2bus/a2eramworks3.cpp b/src/devices/bus/a2bus/a2eramworks3.cpp old mode 100644 new mode 100755 index 180c11ecbe4..c10a85d884c --- a/src/devices/bus/a2bus/a2eramworks3.cpp +++ b/src/devices/bus/a2bus/a2eramworks3.cpp @@ -115,9 +115,9 @@ void a2eaux_franklin384_device::write_c07x(uint8_t offset, uint8_t data) { // RamWorks/Z-RAM bank order is 0 3 4 7 8 11 12 15 // so cut off access above bank 11 to limit to 384K. - if (m_bank > 11) + if (data > 11) { - m_bank = 0; + data = 0; } m_bank = 0x10000 * (data & 0xf); }