Prev: D2C0 Up: Map Next: D2E1
D2DA: Test whether a piece in an upper map cell lies wholly above the play area
Used by the routine at draw_landscape.
Pieces are walked upwards from their start, so in the upper map cells of the window a piece whose start (lowest) y is above the in-cell y of the play area's top edge cannot be seen.
Input
B In-cell y of the play area's bottom edge in the lower cell, which is also the top edge's in-cell y in the upper one (view_y)
Output
F Z clear (NZ) if the piece is wholly above the play area
piece_off_top_edge D2DA LD A,(piece_page_y)
D2DD CP B
D2DE RET C
D2DF XOR A
D2E0 RET
Prev: D2C0 Up: Map Next: D2E1