a2eramworks3.cpp: fix Franklin 500 384K expansion to correctly limit memory to 384K. [R. Belmont]

This commit is contained in:
arbee 2021-12-04 16:18:51 -05:00
parent 92606525b3
commit 028d02ba7a

4
src/devices/bus/a2bus/a2eramworks3.cpp Normal file → Executable file
View File

@ -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);
}