Prev: D3C2 Up: Map Next: D425
D415: Draw a tile that starts below the play area
Used by the routine at PUT_TILE.
The start of PUT_TILE when the tile's bottom row is below the bottom of the play area (line $48): its rows below it are skipped, and the rest drawn from the bottom line up. All of it below: nothing. CLIP_EDGE is the same for an edge picture.
Input
A the tile's y less $48, negative
E its x
HL the tile
CLIP_TILE D415 NEG C = the rows below the play area; A = the rows above it, if any
D417 LD C,A
D418 LD A,(HL)
D419 INC HL
D41A SUB C
D41B RET M
D41C RET Z
D41D LD B,$00 Past the rows below; from the bottom line
D41F ADD HL,BC
D420 ADD HL,BC
D421 LD D,$48
D423 JR PUT_TILE_1
Prev: D3C2 Up: Map Next: D425