Prev: 9F74 Up: Map Next: 9F9F
9F80: Work out where a thing used to be
Used by the routines at ERASE_THING and REDRAW_MOVED.
Looks the sprite up from the workspace and computes the display address of the position saved in $5E16, so ERASE_THING can blank exactly the cells the last frame filled.
SETUP_ERASE 9F80 CALL SPRITE_OF_WORKSPACE
This entry point is used by the routines at SETUP_ALT_ENTRIES and SETUP_BOTH_BANKS.
SETUP_ERASE_ALT 9F83 LD HL,($5E16)
9F86 LD A,L
9F87 DEC A
9F88 RLCA
9F89 AND $0E
9F8B CP $0E
9F8D JR NZ,SETUP_ERASE_0
9F8F LD A,$E8
SETUP_ERASE_0 9F91 LD ($9EE5),A ERASE_JR+1: the jump's displacement
9F94 CALL PIXEL_TO_SCREEN
9F97 LD A,(DE)
9F98 LD ($5E18),A
This entry point is used by the routine at SETUP_SPRITE_DRAW.
SETUP_DONE 9F9B LD C,$00
9F9D INC DE
9F9E RET
Prev: 9F74 Up: Map Next: 9F9F