Prev: 8541 Up: Map Next: 8561
8550: Load the count to the next sprite in SPRITE_LIST
Used by the routines at DRAW_SCENE and DRAW_HERE.
Skips entries whose count is zero.
Input
IX An entry in SPRITE_LIST; on exit, its frame byte
Output
BC The count
NEXT_SPRITE 8550 LD C,(IX+$00)
8553 INC IX
8555 LD B,(IX+$00)
8558 INC IX
855A LD A,C
855B OR B
855C RET NZ
855D INC IX Skip the frame byte of an empty entry.
855F JR NEXT_SPRITE
Prev: 8541 Up: Map Next: 8561