Prev: BD98 Up: Map Next: BDD5
BDC0: Copy a sprite's four bytes into the drawing record
Used by the routines at DISPLAY_PANEL, PRINT_BORDER and TRANSFER_SPRITE_AND_PRINT.
Graphic, flags, x and y into +0, +7, +$1A and +$1B, where the sprite drawing (DRAW_SPRITE, in DRAW_OBJECT) finds them. As Knight Lore's transfer_sprite.
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 BDC0 LD A,(HL) the graphic
BDC1 INC HL
BDC2 LD (IX+$00),A
BDC5 LD A,(HL) the flags: bit 6 mirrored, bit 7 upside down
BDC6 INC HL
BDC7 LD (IX+$07),A
BDCA LD A,(HL) x and y, in pixels
BDCB INC HL
BDCC LD (IX+$1A),A
BDCF LD A,(HL)
BDD0 INC HL
BDD1 LD (IX+$1B),A
BDD4 RET
Prev: BD98 Up: Map Next: BDD5