1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Allows the sprite terminator to be specified.

This commit is contained in:
Thomas Harte 2018-10-23 20:01:47 -04:00
parent 7eeefd2602
commit 2cbd28478d
2 changed files with 4 additions and 3 deletions

View File

@ -138,7 +138,7 @@ void Base::posit_sprite(LineBuffer &buffer, int sprite_number, int sprite_positi
return; return;
// A sprite Y of 208 means "don't scan the list any further". // A sprite Y of 208 means "don't scan the list any further".
if(mode_timing_.allow_sprite_terminator && sprite_position == 208) { if(mode_timing_.allow_sprite_terminator && sprite_position == mode_timing_.sprite_terminator) {
buffer.sprites_stopped = true; buffer.sprites_stopped = true;
return; return;
} }

View File

@ -155,9 +155,10 @@ class Base {
} end_of_frame_interrupt_position; } end_of_frame_interrupt_position;
int line_interrupt_position = -1; int line_interrupt_position = -1;
// Enables or disabled the recognition of 0xd0 as a sprite // Enables or disabled the recognition of the sprite
// list terminator. // list terminator, and sets the terminator value.
bool allow_sprite_terminator = true; bool allow_sprite_terminator = true;
uint8_t sprite_terminator = 0xd0;
} mode_timing_; } mode_timing_;
uint8_t line_interrupt_target = 0xff; uint8_t line_interrupt_target = 0xff;