Prev: CAF1 Up: Map Next: CB0F
CB06: Copy a sprite's four bytes and draw it
Used by the routines at DISPLAY_PANEL and PRINT_BORDER.
TRANSFER_SPRITE puts the graphic, the flags, x and y of a four-byte entry into +0, +7, +$1A and +$1B of the record at IX, and PRINT_SPRITE (in CALC_PIXEL_XY_AND_RENDER) draws it at that pixel position, with no projection. HL is kept on the next entry. As Knight Lore's transfer_sprite_and_print.
Input
HL the four-byte entry
IX the record to draw with, the spare one at PANEL_RECORD
Output
HL the next entry
TRANSFER_SPRITE_AND_PRINT CB06 CALL TRANSFER_SPRITE Graphic, flags, x and y into the record
CB09 PUSH HL Draw it, keeping HL
CB0A CALL PRINT_SPRITE
CB0D POP HL
CB0E RET
Prev: CAF1 Up: Map Next: CB0F