Prev: CD7A Up: Map Next: CD99
CD87: Union rectangle: the upper edge
Used by the routine at union_width_bottom.
Part of set_draw_objs_overlapped. L holds the union's bottom row; this finds the higher of the two top rows.
union_top_edge CD87 LD L,A H = new top (bottom row plus height)
CD88 LD A,(IX+$1B)
CD8B ADD A,(IX+$19)
CD8E LD H,A
CD8F LD A,(IX+$1F) A = old top
CD92 ADD A,(IX+$1D)
CD95 CP H take the larger
CD96 JR NC,union_height
CD98 LD A,H
Prev: CD7A Up: Map Next: CD99