From 244721a6f8f2b4ae84f684a686308ac6420caf2b Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 25 Apr 2018 22:26:01 -0400 Subject: [PATCH] Corrects graphics mode address generation. --- Machines/AppleII/Video.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/AppleII/Video.hpp b/Machines/AppleII/Video.hpp index 5b53324b7..e00d0a6a4 100644 --- a/Machines/AppleII/Video.hpp +++ b/Machines/AppleII/Video.hpp @@ -110,7 +110,7 @@ template class Video: public VideoBase { const int pixel_row = row_ & 7; const uint16_t row_address = static_cast((character_row >> 3) * 40 + ((character_row&7) << 7)); const uint16_t text_address = static_cast(((video_page_+1) * 0x400) + row_address); - const uint16_t graphics_address = static_cast(((video_page_+1) * 0x1000) + row_address + ((pixel_row&7) << 9)); + const uint16_t graphics_address = static_cast(((video_page_+1) * 0x2000) + row_address + ((pixel_row&7) << 10)); const int row_shift = (row_&4); GraphicsMode pixel_mode = (!mixed_mode_ || row_ < 160) ? line_mode : GraphicsMode::Text;