Prev: 41507 Up: Map Next: 41543
41524: Select Erase Sprite
Used by the routines at PrepareErase and UpdateStarLayer.
Sets up the first sprite, which is the sprite that is erased by DrawSprites.
Input
B Number of rows
C Index of the routine that erases the sprite
H Width in bytes
Output
B High byte of the shift table to use
IY Address of the routine that erases the sprite
SelectEraseSprite 41524 LD A,B Fetch the number of rows.
41525 LD (41431),A Store it.
41528 LD A,H Fetch the width.
41529 LD (23592),A Store it.
41532 LD HL,41620 Use the table of routines that erase sprites.
41535 CALL GetTableEntry Fetch the address of the routine.
41538 PUSH HL Put it in IY.
41539 POP IY
41541 JR SelectEraseSprite_Position Jump to SelectEraseSprite_Position.
Prev: 41507 Up: Map Next: 41543