Prev: D219 Up: Map Next: D24C
D237: Copy a sprite's four bytes into the drawing record
Used by the routines at transfer_sprite_and_print, display_panel and print_border.
Loads a sprite type, flags (for the flip bits), pixel x and pixel y from a four-byte entry into the object record at IX -- the spare record at sprite_scratchpad -- ready for print_sprite.
Input
HL the four-byte entry
IX the record to draw with
HL on exit, the next entry
transfer_sprite D237 LD A,(HL) type, +$07 flags, +$1A x, +$1B y
D238 INC HL
D239 LD (IX+$00),A
D23C LD A,(HL)
D23D INC HL
D23E LD (IX+$07),A
D241 LD A,(HL)
D242 INC HL
D243 LD (IX+$1A),A
D246 LD A,(HL)
D247 INC HL
D248 LD (IX+$1B),A
D24B RET
Prev: D219 Up: Map Next: D24C