Prev: B44F Up: Map Next: B47D
B479: Start a row of a sprite
Used by the routines at DRAW_OBJECT and SPRITE_SHIFTED_RUN.
The row count goes to A', and A takes the first buffer byte: the shifted units of SPRITE_SHIFTED_RUN expect the byte they are finishing to be in A already. The JR's offset is patched by DRAW_OBJECT for every sprite, into the aligned run at SPRITE_ALIGNED_RUN or the shifted one at SPRITE_SHIFTED_RUN; as it stands in the listing, an offset of $FE, it is a JR to itself.
Input
A the rows left
BC the buffer byte the row starts at
SPRITE_ROW B479 EX AF,AF' the count to A'; the first buffer byte
B47A LD A,(BC)
SPRITE_ROW_0 B47B JR SPRITE_ROW_0 offset patched: into one of the unrolled runs
Prev: B44F Up: Map Next: B47D