1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-21 20:29:06 +00:00

First bad lines take priority over second ones.

This commit is contained in:
Thomas Harte 2025-01-13 17:31:18 -05:00
parent 733da3161b
commit a4cb17a1cb

View File

@ -507,10 +507,10 @@ public:
next_character_.write(character); next_character_.write(character);
const auto address = [&] { return uint16_t(video_matrix_base_ + video_counter_); }; const auto address = [&] { return uint16_t(video_matrix_base_ + video_counter_); };
if(bad_line2_) { if(bad_line()) {
shifter_.write<1>(pager_.read(address()));
} else if(bad_line()) {
shifter_.write<0>(pager_.read(address() + 0x400)); shifter_.write<0>(pager_.read(address() + 0x400));
} else if(bad_line2_) {
shifter_.write<1>(pager_.read(address()));
} }
next_attribute_.write(shifter_.read<1>()); next_attribute_.write(shifter_.read<1>());