mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Experimental: is this meant to be a compare-before-increment?
This commit is contained in:
parent
d73dcbb268
commit
46278ff297
@ -96,6 +96,8 @@ template <class T> class CRTC6845 {
|
||||
if(bus_state_.row_address == registers_[9]) {
|
||||
line_address_ = bus_state_.refresh_address;
|
||||
bus_state_.row_address = 0;
|
||||
|
||||
bool is_at_end_of_frame = line_counter_ == registers_[4];
|
||||
line_counter_++;
|
||||
|
||||
// check for end of visible lines
|
||||
@ -111,7 +113,7 @@ template <class T> class CRTC6845 {
|
||||
}
|
||||
|
||||
// check for entry into the overflow area
|
||||
if(line_counter_ == registers_[4]) {
|
||||
if(is_at_end_of_frame) {
|
||||
if(registers_[5]) {
|
||||
is_in_adjustment_period_ = true;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user