From 2e8d9018efad61b0df876e4f963702ffd63ab3e9 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 2 Jan 2025 15:09:37 -0500 Subject: [PATCH] Add other address modes. --- Machines/Commodore/Plus4/Video.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Machines/Commodore/Plus4/Video.hpp b/Machines/Commodore/Plus4/Video.hpp index a048fb537..8ee000cdb 100644 --- a/Machines/Commodore/Plus4/Video.hpp +++ b/Machines/Commodore/Plus4/Video.hpp @@ -352,11 +352,18 @@ public: break; case VideoMode::Text: + case VideoMode::MulticolourText: pixels = pager_.read(uint16_t( character_base_ + (character << 3) + vertical_sub_count_ )) ^ cursor; break; + case VideoMode::ExtendedColourText: + pixels = pager_.read(uint16_t( + character_base_ + ((character & 0x3f) << 3) + vertical_sub_count_ + )) ^ cursor; + break; + case VideoMode::BitmapMulticolour: case VideoMode::BitmapHighRes: pixels = pager_.read(uint16_t(