From 23c3fa69935b69c9f3569833b5c68cf781c0b5be Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 2 Oct 2018 22:01:43 -0400 Subject: [PATCH] Fixed: it's the SMS that has 8 sprites, not text mode (which has none). --- Components/9918/9918.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Components/9918/9918.cpp b/Components/9918/9918.cpp index 699d62699..8ffab2c7a 100644 --- a/Components/9918/9918.cpp +++ b/Components/9918/9918.cpp @@ -506,10 +506,10 @@ void TMS9918::run_for(const HalfCycles cycles) { line_mode_ = LineMode::Text; mode_timing_.first_pixel_output_column = 94; mode_timing_.next_border_column = 334; - mode_timing_.maximum_visible_sprites = 8; break; case ScreenMode::SMSMode4: line_mode_ = LineMode::SMS; + mode_timing_.maximum_visible_sprites = 8; break; default: line_mode_ = LineMode::Character; @@ -680,9 +680,15 @@ bool TMS9918::get_interrupt_line() { // MARK: - void Base::draw_tms_character(int start, int end) { + for(int c = start; c < end; ++c) { + pixel_target_[c] = static_cast(c * 0x01010101); + } } void Base::draw_tms_text(int start, int end) { + for(int c = start; c < end; ++c) { + pixel_target_[c] = static_cast(c * 0x01010101); + } } void Base::draw_sms(int start, int end) {