From b22b48938042d24c724d1cd2070aedb858357a90 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 22 Nov 2023 14:12:57 -0500 Subject: [PATCH] Mask into 4kb; I don't know whether hardware scrolling is in use. --- Machines/PCCompatible/PCCompatible.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Machines/PCCompatible/PCCompatible.cpp b/Machines/PCCompatible/PCCompatible.cpp index 1d76bcdb2..759f003f6 100644 --- a/Machines/PCCompatible/PCCompatible.cpp +++ b/Machines/PCCompatible/PCCompatible.cpp @@ -133,8 +133,8 @@ class MDA { if(pixels) { // TODO: use flags. - const uint8_t glyph = ram[(state.refresh_address << 1) + 0]; -// const uint8_t flags = ram[(state.refresh_address << 1) + 1]; + const uint8_t glyph = ram[((state.refresh_address << 1) + 0) & 0xfff]; +// const uint8_t flags = ram[((state.refresh_address << 1) + 1) & 0xfff]; const uint8_t row = font[(glyph * 14) + state.row_address];