mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-15 14:27:29 +00:00
Fixed display enable reset when there's no adjustment area. A practical lesson in failure to factor.
This commit is contained in:
@@ -71,9 +71,9 @@ template <class T> class CRTC6845 {
|
|||||||
if(is_in_adjustment_period_) {
|
if(is_in_adjustment_period_) {
|
||||||
line_counter_++;
|
line_counter_++;
|
||||||
if(line_counter_ == registers_[5]) {
|
if(line_counter_ == registers_[5]) {
|
||||||
line_is_visible_ = true;
|
|
||||||
line_counter_ = 0;
|
line_counter_ = 0;
|
||||||
is_in_adjustment_period_ = false;
|
is_in_adjustment_period_ = false;
|
||||||
|
line_is_visible_ = true;
|
||||||
line_address_ = (uint16_t)((registers_[12] << 8) | registers_[13]);
|
line_address_ = (uint16_t)((registers_[12] << 8) | registers_[13]);
|
||||||
bus_state_.refresh_address = line_address_;
|
bus_state_.refresh_address = line_address_;
|
||||||
}
|
}
|
||||||
@@ -101,6 +101,7 @@ template <class T> class CRTC6845 {
|
|||||||
if(registers_[5]) {
|
if(registers_[5]) {
|
||||||
is_in_adjustment_period_ = true;
|
is_in_adjustment_period_ = true;
|
||||||
} else {
|
} else {
|
||||||
|
line_is_visible_ = true;
|
||||||
line_address_ = (uint16_t)((registers_[12] << 8) | registers_[13]);
|
line_address_ = (uint16_t)((registers_[12] << 8) | registers_[13]);
|
||||||
bus_state_.refresh_address = line_address_;
|
bus_state_.refresh_address = line_address_;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user