mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-22 12:33:29 +00:00
Don't limit sprite fetch area; add further commentary.
This commit is contained in:
parent
feee6afe0f
commit
57186c3c14
@ -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 && y_ >= vertical_blank_height_) {
|
||||
if((dma_control_ & SpritesFlag) == SpritesFlag) {
|
||||
constexpr auto sprite_id = (cycle - 0x16) >> 2;
|
||||
static_assert(sprite_id >= 0 && sprite_id < std::tuple_size<decltype(sprites_)>::value);
|
||||
|
||||
|
@ -83,7 +83,7 @@ bool Sprite::advance_dma(int offset, int y) {
|
||||
}
|
||||
} else {
|
||||
visible |= y == v_start_;
|
||||
if(!visible) return false;
|
||||
if(!visible) return false; // Act as if there wasn't a fetch.
|
||||
|
||||
// Write colour word 1, then colour word 0; 0 is the word that 'arms'
|
||||
// the sprite (i.e. makes it visible).
|
||||
|
Loading…
Reference in New Issue
Block a user