Prev: 63470 Up: Map Next: 63572
63548: Draw Intro Sprites
Used by the routine at 62700.
Iterates over the 24 three-byte entries in the sprite table at 62808 (Y pixel row at +0 X byte column at +1 attribute byte at +2), calling XorBlitSprite once per entry to draw each sprite in its initial position. Called once during attract-mode setup at 62700 before the animation loop begins.
DrawIntroSprites 63548 LD B,24 B=24 (loop counter: 36 sprite entries).
63550 LD HL,62808 HL=62808 (attribute byte position of the first entry).
DrawIntroSprites_Loop 63553 LD A,(HL) A=attribute byte from the current entry.
63554 EXX Switch to the shadow registers.
63555 LD E,A E=attribute byte (passed to XorBlitSprite as the draw-mode attribute).
63556 EXX Switch back to the normal registers.
63557 PUSH BC Stash BC and HL on the stack.
63558 PUSH HL
63559 DEC HL Back HL two bytes to the Y pixel row (start of entry).
63560 DEC HL
63561 CALL XorBlitSprite Call XorBlitSprite to draw the sprite at the position held in the current entry.
63564 POP HL Restore HL and BC from the stack.
63565 POP BC
63566 INC HL Advance HL by three to the attribute byte of the next entry.
63567 INC HL
63568 INC HL
63569 DJNZ DrawIntroSprites_Loop Decrease counter and loop back to DrawIntroSprites_Loop.
63571 RET Return.
Prev: 63470 Up: Map Next: 63572