1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-28 21:49:27 +00:00

Fix comment, both grammar and content.

This commit is contained in:
Thomas Harte 2024-06-18 12:56:25 -04:00 committed by GitHub
parent b3012bd89e
commit 7d728c37ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -254,12 +254,10 @@ class CGA {
} }
void serialise_pixels(const Motorola::CRTC::BusState &state) { void serialise_pixels(const Motorola::CRTC::BusState &state) {
// This is what I think is happenings: // Refresh address is shifted left and two bytes are fetched, just as if the fetch were for
// character code + attributes, but producing two bytes worth of graphics.
// //
// Refresh address is still shifted left one and two bytes are fetched, just as if it were // Meanwhile, row address is used as a substitute 14th address line.
// character code + attributes except that these are two bytes worth of graphics.
//
// Meanwhile, row address is used to invent a 15th address line.
const auto base_address = const auto base_address =
((state.refresh_address & 0xfff) << 1) + ((state.refresh_address & 0xfff) << 1) +
((state.row_address & 1) << 13); ((state.row_address & 1) << 13);