From 960a16b4137fd8a0258739a5aeae5ad991f446a3 Mon Sep 17 00:00:00 2001 From: angelosa Date: Sun, 9 Oct 2022 05:13:48 +0200 Subject: bus/a800/rom.cpp: fix a5200 bbsb banking --- src/devices/bus/a800/rom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/bus/a800/rom.cpp b/src/devices/bus/a800/rom.cpp index f6db2cb1cf1..8a413e6c569 100644 --- a/src/devices/bus/a800/rom.cpp +++ b/src/devices/bus/a800/rom.cpp @@ -434,11 +434,11 @@ uint8_t a5200_rom_2chips_device::read_80xx(offs_t offset) uint8_t a5200_rom_bbsb_device::read_80xx(offs_t offset) { if (offset < 0x1000) - return m_rom[(offset & 0xfff) + (m_banks[0] * 0x1000) + 0]; + return m_rom[(offset & 0xfff) + (m_banks[0] * 0x1000) + 0x2000]; else if (offset < 0x2000) - return m_rom[(offset & 0xfff) + (m_banks[1] * 0x1000) + 0x4000]; + return m_rom[(offset & 0xfff) + (m_banks[1] * 0x1000) + 0x6000]; else if (offset >= 0x4000) - return m_rom[(offset & 0x1fff) + 0x8000]; + return m_rom[(offset & 0x1fff) + 0x0000]; else return 0; } -- cgit v1.2.3