![]() |
Routines |
| Prev: B8A2 | Up: Map | Next: B8CC |
|
Used by the routines at ADJ_DU_FOR_OBJ_INTERSECT, ADJ_DV_FOR_OBJ_INTERSECT, ADJ_DZ_FOR_OBJ_INTERSECT, DO_ANY_OBJS_INTERSECT and CAN_PICK_UP.
DO_OBJS_INTERSECT_ON_U for V, with the mover's dV in L and the half-sizes at +$05.
|
||||||||||||||||
| DO_OBJS_INTERSECT_ON_V | B8B7 | LD A,(IX+$05) | D = the two half-sizes | |||||||||||||
| B8BA | ADD A,(IY+$05) | |||||||||||||||
| B8BD | LD D,A | |||||||||||||||
| B8BE | LD A,(IX+$02) | A = |V + dV - the other's V| | ||||||||||||||
| B8C1 | ADD A,L | |||||||||||||||
| B8C2 | SUB (IY+$02) | |||||||||||||||
| B8C5 | JP P,DO_OBJS_INTERSECT_ON_V_0 | |||||||||||||||
| B8C8 | NEG | |||||||||||||||
| DO_OBJS_INTERSECT_ON_V_0 | B8CA | SUB D | carry if less than D | |||||||||||||
| B8CB | RET | |||||||||||||||
| Prev: B8A2 | Up: Map | Next: B8CC |