Prev: 55205 Up: Map Next: 55219
55211: Get Overlap Distance
Works out the distance that is needed to move out of an overlap. Purpose not yet known.
Input
L The amount of the overlap
F The carry flag is set if there is an overlap
Output
E The distance
GetOverlapDistance 55211 LD E,255 E is 255.
55213 RET NC Return if the carry flag is reset.
55214 LD A,L L moves into A.
55215 NEG Negate A.
55217 LD E,A A moves into E.
55218 RET Return.
Prev: 55205 Up: Map Next: 55219