Prev: D7A5 Up: Map Next: D7B3
D7AB: 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 D7AB LD E,$FF E is FF.
D7AD RET NC Return if the carry flag is reset.
D7AE LD A,L L moves into A.
D7AF NEG Negate A.
D7B1 LD E,A A moves into E.
D7B2 RET Return.
Prev: D7A5 Up: Map Next: D7B3