Prev: D273 Up: Map Next: D2B2
D2A2: Draw an edge picture that starts below the play area
Used by the routine at PUT_EDGE.
The start of PUT_EDGE when the picture's bottom row is below the bottom of the play area (line $48, counting up the screen): its rows below it are skipped, and the rest drawn from the bottom line up. All of it below: nothing.
Input
A the picture's y less $48, negative
E its x
HL the picture
CLIP_EDGE D2A2 NEG C = the rows below the play area; A = the rows above it, if any
D2A4 LD C,A
D2A5 LD A,(HL)
D2A6 INC HL
D2A7 SUB C
D2A8 RET M
D2A9 RET Z
D2AA LD B,$00 Past the rows below; from the bottom line
D2AC ADD HL,BC
D2AD ADD HL,BC
D2AE LD D,$48
D2B0 JR PUT_EDGE_1
Prev: D273 Up: Map Next: D2B2