Prev: CCDD Up: Map Next: CCF6
CCEC: Shorten dX at the walls: distance from the centre
Used by the routine at clip_dX_test.
The loop for adj_dX_for_out_of_bounds, from the distance from the room's centre after the move.
clip_dX_to_walls CCEC LD A,(IX+$01) A = |X + dX - $80|
CCEF ADD A,C
CCF0 SUB $80
CCF2 JR NC,clip_dX_test
CCF4 NEG
Prev: CCDD Up: Map Next: CCF6