mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-26 00:30:29 +00:00
Ensured that register 6 is checked on every loop.
This commit is contained in:
parent
131b340d75
commit
a914eadc85
@ -153,17 +153,17 @@ template <class T> class CRTC6845 {
|
|||||||
} else {
|
} else {
|
||||||
line_counter_ = (line_counter_ + 1) & 0x7f;
|
line_counter_ = (line_counter_ + 1) & 0x7f;
|
||||||
|
|
||||||
// check for end of visible lines
|
|
||||||
if(line_counter_ == registers_[6]) {
|
|
||||||
line_is_visible_ = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// check for start of vertical sync
|
// check for start of vertical sync
|
||||||
if(line_counter_ == registers_[7]) {
|
if(line_counter_ == registers_[7]) {
|
||||||
bus_state_.vsync = true;
|
bus_state_.vsync = true;
|
||||||
vsync_down_counter_ = registers_[3] >> 4;
|
vsync_down_counter_ = registers_[3] >> 4;
|
||||||
if(!vsync_down_counter_) vsync_down_counter_ = 16;
|
if(!vsync_down_counter_) vsync_down_counter_ = 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check for end of visible lines
|
||||||
|
if(line_counter_ == registers_[6]) {
|
||||||
|
line_is_visible_ = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
bus_state_.row_address = (bus_state_.row_address + 1) & 0x1f;
|
bus_state_.row_address = (bus_state_.row_address + 1) & 0x1f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user