mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-19 08:31:11 +00:00
Merge pull request #1074 from TomHarte/SpriteContinuity
Reinstate assumption of no Amiga sprite fetches in vertical blank.
This commit is contained in:
commit
0b2d92048d
@ -610,7 +610,7 @@ template <int cycle, bool stop_if_cpu> bool Chipset::perform_cycle() {
|
||||
}
|
||||
|
||||
if constexpr (cycle >= 0x16 && cycle < 0x36) {
|
||||
if((dma_control_ & SpritesFlag) == SpritesFlag) {
|
||||
if(y_ >= vertical_blank_height_ && (dma_control_ & SpritesFlag) == SpritesFlag) {
|
||||
constexpr auto sprite_id = (cycle - 0x16) >> 2;
|
||||
static_assert(sprite_id >= 0 && sprite_id < std::tuple_size<decltype(sprites_)>::value);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user