1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-30 22:29:56 +00:00

I was under-counting row lines. Adjusted comparison. The emulator now produces a solid white square of approximately correct proportions. I'm sure that filling in pixels will reveal the next set of bugs.

This commit is contained in:
Thomas Harte 2017-07-31 22:21:46 -04:00
parent c2253c1e0f
commit e3f677fa37

View File

@ -79,7 +79,6 @@ template <class T> class CRTC6845 {
}
} else {
// advance vertical counter
bus_state_.row_address++;
if(bus_state_.row_address == registers_[9]) {
line_address_ = bus_state_.refresh_address;
bus_state_.row_address = 0;
@ -109,6 +108,7 @@ template <class T> class CRTC6845 {
line_counter_ = 0;
}
} else {
bus_state_.row_address++;
bus_state_.refresh_address = line_address_;
}
}