From 9c956f83b832ce67bc1c48feb175ab64f8f1b54d Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 20 Oct 2016 19:23:36 -0400 Subject: [PATCH] Made it slightly more clear that the correct test is conformed to. --- Machines/Oric/Video.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Machines/Oric/Video.cpp b/Machines/Oric/Video.cpp index 7cbe9b29f..86ee70037 100644 --- a/Machines/Oric/Video.cpp +++ b/Machines/Oric/Video.cpp @@ -61,6 +61,7 @@ void VideoOutput::run_for_cycles(int number_of_cycles) if(!h_counter) { + printf("\n"); _ink = 0xff; _paper = 0x00; _use_alternative_character_set = _use_double_height_characters = _blink_text = false; @@ -118,7 +119,7 @@ void VideoOutput::run_for_cycles(int number_of_cycles) uint8_t inverse_mask = (control_byte & 0x80) ? 0x77 : 0x00; if(_blink_text) inverse_mask ^= (_frame_counter&32) ? 0x77 : 0x00; - if((control_byte & 0x7f) >= 32) + if(control_byte & 0x60) { if(_pixel_target) { @@ -134,7 +135,7 @@ void VideoOutput::run_for_cycles(int number_of_cycles) } else { - switch(control_byte & 0x7f) + switch(control_byte & 0x1f) { case 0x00: _ink = 0x00; break; case 0x01: _ink = 0x44; break;