Prev: BEBF Up: Map Next: BEFE
BEE4: Print a sprite several times in a line
Used by the routines at display_panel and print_border.
Used to build the border and the panel out of repeated pieces.
Input
IX an object record holding the sprite type and position
B how many times
E the step in x between copies
D the step in y between copies
multiple_print_sprite BEE4 PUSH BC
BEE5 PUSH DE
BEE6 PUSH HL
BEE7 CALL print_sprite
BEEA POP HL
BEEB POP DE
BEEC POP BC
BEED LD A,(IX+$1A) move the record's pixel position by (E, D)
BEF0 ADD A,E
BEF1 LD (IX+$1A),A
BEF4 LD A,(IX+$1B)
BEF7 ADD A,D
BEF8 LD (IX+$1B),A
BEFB DJNZ multiple_print_sprite
BEFD RET
Prev: BEBF Up: Map Next: BEFE