Prev: CAEE Up: Map Next: CB29
CB15: Line up in V with an arch in a wall of constant U
Used by the routines at ARCH_AT_HIGH_U and ARCH_AT_LOW_U.
V of the arch's middle, 13 on from the first pillar; then, from the fifth instruction on, Z.
Input
IY The first pillar
IX The player's legs
ALIGN_V_TO_ARCH CB15 LD A,(IY+$02) V: the middle of the arch
CB18 ADD A,$0D
CB1A LD (IX+$02),A
This entry point is used by the routine at ALIGN_U_TO_ARCH.
ALIGN_Z_TO_ARCH CB1D LD A,(IY+$03) Z: the pillar's base
CB20 LD (IX+$03),A
CB23 ADD A,$0C The body, 12 above
CB25 LD (IX+$23),A
CB28 RET
Prev: CAEE Up: Map Next: CB29