Prev: AD1B Up: Map Next: AD46
AD27: Set up the rubbing out of an object's old image
For an object drawn last pass (bit 7 of +$10): the old image is its graphic, as it still is before the update has run, at the screen position it was drawn at (+$11, +$12), clipped (old_sprite_header) and given its row routine (set_old_sprite). The caller then swaps the registers with EXX so the old image's graphic and shift page wait in the alternate set. Bit 6 of +$10 (drawn straddling the left edge) becomes the compositor's left-clip flag (sprite_left_clip).
Input
IX The record
prepare_erase AD27 CALL object_graphic The graphic
AD2A LD L,(IX+$11) Where it was drawn
AD2D LD H,(IX+$12)
AD30 LD (old_sprite_x),HL
AD33 CALL old_sprite_header Clip it and choose its row routine
AD36 CALL set_old_sprite
AD39 RES 7,(IX+$10) It is no longer on the screen, until placed again
AD3D LD A,(IX+$10) Whether it straddled the left edge
AD40 AND $40
AD42 LD (sprite_left_clip),A
AD45 RET
Prev: AD1B Up: Map Next: AD46