From cb105fdeb44e165d619d194efef842fef12e5a2c Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 22 Jun 2017 22:48:17 -0400 Subject: [PATCH] Took a first stab at high-res support. --- Machines/ZX8081/ZX8081.cpp | 4 +++- .../xcshareddata/xcschemes/Clock Signal.xcscheme | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Machines/ZX8081/ZX8081.cpp b/Machines/ZX8081/ZX8081.cpp index 8d308c5b5..3d955c268 100644 --- a/Machines/ZX8081/ZX8081.cpp +++ b/Machines/ZX8081/ZX8081.cpp @@ -109,9 +109,11 @@ int Machine::perform_machine_cycle(const CPU::Z80::PartialMachineCycle &cycle) { } if(latched_video_byte_) { size_t char_address = (size_t)((address & 0xff00) | ((latched_video_byte_ & 0x3f) << 3) | line_counter_); + uint8_t mask = (latched_video_byte_ & 0x80) ? 0x00 : 0xff; if(char_address < ram_base_) { - uint8_t mask = (latched_video_byte_ & 0x80) ? 0x00 : 0xff; latched_video_byte_ = rom_[char_address & rom_mask_] ^ mask; + } else { + latched_video_byte_ = ram_[address & ram_mask_] ^ mask; } video_->output_byte(latched_video_byte_); diff --git a/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme b/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme index 2cfe830df..0bbefe859 100644 --- a/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme +++ b/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme @@ -68,13 +68,14 @@