summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2021-12-04 16:18:51 -0500
committer arbee <rb6502@users.noreply.github.com>2021-12-04 16:18:51 -0500
commit028d02ba7a616af3a8f3f04a451c6af324d8fb3c (patch)
tree4d7009370a2cce81a91c5daff1cf978a93e63b4c
parent92606525b391190d78d1402d8dd0e55297c813a1 (diff)
a2eramworks3.cpp: fix Franklin 500 384K expansion to correctly limit memory to 384K. [R. Belmont]
-rwxr-xr-x[-rw-r--r--]src/devices/bus/a2bus/a2eramworks3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/a2bus/a2eramworks3.cpp b/src/devices/bus/a2bus/a2eramworks3.cpp
index 180c11ecbe4..c10a85d884c 100644..100755
--- 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);
}