Prev: C050 Up: Map Next: C082
C069: Nudge along U
For a doorway in a wall of constant V: +1 or -1 into +$0E of his legs, towards the middle line, while he faces along V (his legs mirrored) and is not on it.
Input
IX the pillar, holding the middle at +$09 to +$0B
IY the robot's legs
NUDGE_ALONG_U C069 BIT 6,(IY+$07) facing along U: no nudge
C06D JR Z,NUDGE_DONE
C06F LD A,(IX+$09) on the middle line already
C072 CP (IY+$01)
C075 JR Z,NUDGE_DONE
C077 LD A,$01 +1 if the middle is at a greater U, else -1
C079 JR NC,NUDGE_ALONG_U_0
C07B NEG
NUDGE_ALONG_U_0 C07D LD (IY+$0E),A the U nudge
This entry point is used by the routine at NUDGE_ALONG_V.
NUDGE_DONE C080 POP BC drop the BC FIRST_PILLAR pushed, and back to the main loop
C081 RET
Prev: C050 Up: Map Next: C082