mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-02 20:30:00 +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:
parent
c2253c1e0f
commit
e3f677fa37
|
@ -79,7 +79,6 @@ template <class T> class CRTC6845 {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// advance vertical counter
|
// advance vertical counter
|
||||||
bus_state_.row_address++;
|
|
||||||
if(bus_state_.row_address == registers_[9]) {
|
if(bus_state_.row_address == registers_[9]) {
|
||||||
line_address_ = bus_state_.refresh_address;
|
line_address_ = bus_state_.refresh_address;
|
||||||
bus_state_.row_address = 0;
|
bus_state_.row_address = 0;
|
||||||
|
@ -109,6 +108,7 @@ template <class T> class CRTC6845 {
|
||||||
line_counter_ = 0;
|
line_counter_ = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
bus_state_.row_address++;
|
||||||
bus_state_.refresh_address = line_address_;
|
bus_state_.refresh_address = line_address_;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user