Prev: C8F7 Up: Map Next: C91A
C907: Nudge along V
For an arch in a wall of constant U: nothing if the player is on its middle line already, otherwise +1 or -1 into +$0F, towards it.
Input
IX The pillar, holding the arch's middle
IY The player's legs
NUDGE_ALONG_V C907 LD A,(IX+$0A) On the middle line already
C90A CP (IY+$02)
C90D JR Z,NUDGE_ALONG_U_1
C90F LD A,$01 +1 if the middle is at a greater V, else -1
C911 JR NC,NUDGE_ALONG_V_0
C913 NEG
NUDGE_ALONG_V_0 C915 LD (IY+$0F),A The V nudge
C918 JR NUDGE_ALONG_U_1
Prev: C8F7 Up: Map Next: C91A