Prev: A691 Up: Map Next: A6E1
A6B2: Rub a byte-aligned row out of the buffer
One row of the old image in draw_sprite_pair: each byte of the graphic, complemented, ANDed into the buffer. Entered so many steps from the end as the graphic is wide (erase_row_routines). The first step, for a graphic six bytes wide, was never run in the build's sessions.
erase_aligned_row A6B2 LD A,(DE) Up to six bytes
A6B3 CPL
A6B4 AND (HL)
A6B5 LD (HL),A
A6B6 INC DE
A6B7 INC L
A6B8 LD A,(DE)
A6B9 CPL
A6BA AND (HL)
A6BB LD (HL),A
A6BC INC DE
A6BD INC L
A6BE LD A,(DE)
A6BF CPL
A6C0 AND (HL)
A6C1 LD (HL),A
A6C2 INC DE
A6C3 INC L
A6C4 LD A,(DE)
A6C5 CPL
A6C6 AND (HL)
A6C7 LD (HL),A
A6C8 INC DE
A6C9 INC L
A6CA LD A,(DE)
A6CB CPL
A6CC AND (HL)
A6CD LD (HL),A
A6CE INC DE
A6CF INC L
A6D0 LD A,(DE)
A6D1 CPL
A6D2 AND (HL)
A6D3 LD (HL),A
A6D4 INC DE
A6D5 LD A,$00 To the next row up (the step is patched by erase_old_draw_new)
A6D7 ADD A,L
A6D8 LD L,A
A6D9 EX AF,AF' Count the row; when they are done, go and draw the new image
A6DA DEC A
A6DB JP Z,erase_old_draw_new_1
A6DE EX AF,AF'
A6DF JP (IY)
Prev: A691 Up: Map Next: A6E1