Prev: D464 Up: Map Next: D494
D481: Patch the right-clipping blitter's column count
The target of the patched JR at the end of slope_step_at_right_edge, entered at its DEC A when the step is off a byte boundary and just after it when it is on one. Stores A as the displacement of the JR after the first write in blit_right_clip, selects that blitter through the dispatch JR in draw_step, and draws.
Input
A Displacement, plus one unless the DEC A is skipped
set_right_clip_columns D481 DEC A Off a byte boundary: one less.
D482 LD ($DB92),A Patch the JR in blit_right_clip.
D485 LD A,$02 Dispatch 2: blit_right_clip (through step_dispatch).
D487 LD ($D702),A
D48A LD A,(piece_dx_copy) A vertical wall moves its address once and stops stepping across (fold_column_step).
D48D AND A
D48E CALL Z,fold_column_step
D491 JP draw_step Draw.
Prev: D464 Up: Map Next: D494