Prev: D5B2 Up: Map Next: D5F6
D5DB: Find the right edge of the area to wipe
Used by the routine at wipe_left_is_new.
wipe_right_edge D5DB LD A,(IX+$1E) the old right edge in bytes: old x / 8 + old width (byte $1C)
D5DE RRCA
D5DF RRCA
D5E0 RRCA
D5E1 AND $1F
D5E3 ADD A,(IX+$1C)
D5E6 LD E,A
D5E7 LD A,(IX+$1A) the new one: new x / 8 + new width (byte $18); E = the further right
D5EA RRCA
D5EB RRCA
D5EC RRCA
D5ED AND $1F
D5EF ADD A,(IX+$18)
D5F2 CP E
D5F3 JR C,wipe_width
D5F5 LD E,A
Prev: D5B2 Up: Map Next: D5F6