1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-26 10:29:31 +00:00

Collect colours.

This commit is contained in:
Thomas Harte 2023-02-14 21:18:10 -05:00
parent 9c43776392
commit 9b71f42375

View File

@ -501,9 +501,11 @@ template<ScreenMode mode> void Base<personality>::fetch_yamaha(LineBuffer &line_
case Type::Colour:
switch(mode) {
case ScreenMode::YamahaText80:
// TODO: read a single 'colour' (i.e. a bitfield, governing colour [/flashing?] selection for eight characters).
break;
case ScreenMode::YamahaText80: {
const auto column = AddressT(Storage<personality>::data_block_ >> 3);
const AddressT address = colour_table_address_ & (0x1fe00 | size_t(y >> 3) * 10);
line_buffer.characters.flags[column] = ram_[address];
} break;
default: break;
}