Prev: CAD2 Up: Map Next: CB06
CAF1: Copy a sprite's four bytes into the drawing record
Used by the routines at TRANSFER_SPRITE_AND_PRINT, DISPLAY_PANEL and PRINT_BORDER.
Graphic, flags, x and y into +0, +7, +$1A and +$1B, where the sprite drawing (CALC_PIXEL_XY_AND_RENDER) finds them. Used by TRANSFER_SPRITE_AND_PRINT, DISPLAY_PANEL and PRINT_BORDER to draw the panel and the border piece by piece. As Knight Lore's transfer_sprite and Pentagram's TRANSFER_SPRITE.
Input
HL the four-byte entry
IX the record to draw with
Output
HL the next entry
TRANSFER_SPRITE CAF1 LD A,(HL) The graphic; the flags (bit 6 mirrored)
CAF2 INC HL
CAF3 LD (IX+$00),A
CAF6 LD A,(HL)
CAF7 INC HL
CAF8 LD (IX+$07),A
CAFB LD A,(HL) X and y, in pixels
CAFC INC HL
CAFD LD (IX+$1A),A
CB00 LD A,(HL)
CB01 INC HL
CB02 LD (IX+$1B),A
CB05 RET
Prev: CAD2 Up: Map Next: CB06