Prev: 25539 Up: Map Next: 25618
25600: Copy source sprite tiles over target sprite tiles
Used by the routine at 25618 to prepare sprite tiles 239-247, which are used by animatory states 9, 10, 15 and 31 (corresponding to the sprites of Sam rolling and somersaulting).
Input
C Number of tiles to copy
E Target sprite tile reference
L Source sprite tile reference
25600 LD H,199 This is the base page of the graphic data for the source tile
This entry point is used by the routine at 25618 with H=215.
25602 LD D,199 This is the base page of the graphic data for the target tile
25604 LD B,16 Copy the source sprite tile over the target sprite tile (8 bytes of graphic data interleaved with 8 bytes of mask data)
25606 LD A,(HL)
25607 LD (DE),A
25608 INC H
25609 INC D
25610 DJNZ 25606
25612 INC L Move to the next source sprite tile reference
25613 INC E Move to the next target sprite tile reference
25614 DEC C Have all the sprite tiles been copied yet?
25615 JR NZ,25600 Jump back if not
25617 RET
Prev: 25539 Up: Map Next: 25618