mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-17 07:29:04 +00:00
Reinstate assumption of no sprites in vertical blank.
This commit is contained in:
parent
b67790df7d
commit
6beca141d5
@ -610,7 +610,7 @@ template <int cycle, bool stop_if_cpu> bool Chipset::perform_cycle() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if constexpr (cycle >= 0x16 && cycle < 0x36) {
|
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;
|
constexpr auto sprite_id = (cycle - 0x16) >> 2;
|
||||||
static_assert(sprite_id >= 0 && sprite_id < std::tuple_size<decltype(sprites_)>::value);
|
static_assert(sprite_id >= 0 && sprite_id < std::tuple_size<decltype(sprites_)>::value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user