Prev: 8959 Up: Map Next: 897C
895D: Is there anything to stand on?
Used by the routine at MOVE_OBJECT.
As TEST_MAP_BIT, but an object with bit 0 of its flags set can also stand on the object IY points at: the player on the rescued person, and the other way about.
Input
A The height to test
DE The cell
Output
F Carry set if something is there
TEST_BELOW 895D BIT 0,(IX+$07)
8961 JR Z,TEST_BELOW_1
8963 LD B,A
8964 CP (IY+$02)
8967 JR NZ,TEST_BELOW_1
8969 LD A,D
896A CP (IY+$01)
896D JR NZ,TEST_BELOW_0
896F LD A,E
8970 CP (IY+$00)
8973 JR Z,TEST_BELOW_2
TEST_BELOW_0 8975 LD A,B
TEST_BELOW_1 8976 CALL TEST_MAP_BIT
8979 RET
TEST_BELOW_2 897A CCF
897B RET
Prev: 8959 Up: Map Next: 897C