mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-28 21:49:27 +00:00
Support a fetch window start on line 0.
This commit is contained in:
parent
373847e2b7
commit
8584ee609f
@ -634,9 +634,6 @@ template <bool stop_on_cpu> Chipset::Changes Chipset::run(HalfCycles length) {
|
||||
line_cycle_ = 0;
|
||||
++y_;
|
||||
|
||||
fetch_vertical_ |= y_ == display_window_start_[1];
|
||||
fetch_vertical_ &= y_ != display_window_stop_[1];
|
||||
|
||||
if(did_fetch_) {
|
||||
bitplanes_.do_end_of_line();
|
||||
previous_bitplanes_.clear();
|
||||
@ -662,6 +659,9 @@ template <bool stop_on_cpu> Chipset::Changes Chipset::run(HalfCycles length) {
|
||||
for(auto &sprite: sprites_) {
|
||||
sprite.advance_line(y_, y_ == vertical_blank_height_);
|
||||
}
|
||||
|
||||
fetch_vertical_ |= y_ == display_window_start_[1];
|
||||
fetch_vertical_ &= y_ != display_window_stop_[1];
|
||||
}
|
||||
assert(line_cycle_ < line_length_ * 4);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user