Prev: 8640 Up: Map Next: 865E
864F: Clear Sprite Scratch
Zero SpriteRowsLeft and SpriteHeight, then XOR the actor's cached sprite onto the screen again (erasing it) through WriteSpriteRow.
Input
IX Actor slot
The cached image of the sprite is XORed off the screen, so the pixels of the sprite disappear.
ClearSpriteScratch 864F XOR A Write 00 to
8650 LD ($5E59),A
8653 LD ($5E58),A
8656 LD C,A Clear the row counter and switch register sets.
8657 EXX
8658 CALL LoadSpritePointers Call LoadSpritePointers.
865B JP WriteSpriteRow Jump to WriteSpriteRow.
Prev: 8640 Up: Map Next: 865E