From 54c3c197ab7833c1bd1a51827391312f8c4dc536 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Thu, 19 Jun 2025 19:48:49 +0200 Subject: [PATCH] Properly initialise the shadow registers for HMxy. --- src/emucore/tia/TIA.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/emucore/tia/TIA.cxx b/src/emucore/tia/TIA.cxx index 5d3d29e37..0b41306e4 100644 --- a/src/emucore/tia/TIA.cxx +++ b/src/emucore/tia/TIA.cxx @@ -151,6 +151,7 @@ void TIA::initialize() myXAtRenderingStart = 0; myShadowRegisters.fill(0); + for (auto reg: {HMP0, HMP1, HMM0, HMM1, HMBL}) myShadowRegisters[reg] = 0x80; myBackground.reset(); myPlayfield.reset();