1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Fixed display enable reset when there's no adjustment area. A practical lesson in failure to factor.

This commit is contained in:
Thomas Harte 2017-07-31 22:16:08 -04:00
parent ffaa627820
commit 5c68b6cc21

View File

@ -71,9 +71,9 @@ template <class T> class CRTC6845 {
if(is_in_adjustment_period_) {
line_counter_++;
if(line_counter_ == registers_[5]) {
line_is_visible_ = true;
line_counter_ = 0;
is_in_adjustment_period_ = false;
line_is_visible_ = true;
line_address_ = (uint16_t)((registers_[12] << 8) | registers_[13]);
bus_state_.refresh_address = line_address_;
}
@ -101,6 +101,7 @@ template <class T> class CRTC6845 {
if(registers_[5]) {
is_in_adjustment_period_ = true;
} else {
line_is_visible_ = true;
line_address_ = (uint16_t)((registers_[12] << 8) | registers_[13]);
bus_state_.refresh_address = line_address_;
}