From c2ec03954fd3be8d94686192169a8eef66c228ff Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 5 Aug 2024 01:22:39 +0200 Subject: [PATCH] Implemented B8000/C0000 video RAM access toggle on Tandy 1000 SX and HX, fixes #4670. --- src/machine/m_tandy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/machine/m_tandy.c b/src/machine/m_tandy.c index e677ff8b4..6a9308627 100644 --- a/src/machine/m_tandy.c +++ b/src/machine/m_tandy.c @@ -1589,6 +1589,10 @@ tandy_write(uint16_t addr, uint8_t val, void *priv) mem_mapping_set_addr(&dev->ram_mapping, ((val >> 1) & 7) * 128 * 1024, 0x20000); } + if (val & 0x01) + mem_mapping_set_addr(&dev->vid->mapping, 0xc0000, 0x10000); + else + mem_mapping_set_addr(&dev->vid->mapping, 0xb8000, 0x8000); dev->ram_bank = val; break;