Prev: 84C8 Up: Map Next: 84FA
84D0: The rescued person and the player in one cell: nobody falls
Used by the routine at MOVE_RESCUEE.
When the two are in the same cell and at most one block apart in height -- one on the other's head -- the rescued person's stun and the player's stun and fall count are cleared. So dropping onto each other is never a landing: seen in play, when a scene dropped the player three blocks onto the rescued person's head and it made no bad fall and no search for an ant beneath.
Input
IX The person being rescued
IY The player
SHARE_CELL 84D0 LD A,(IX+$02) More than a block apart in height: nothing.
84D3 SUB (IY+$02)
84D6 JP P,SHARE_CELL_0
84D9 CPL
84DA INC A
SHARE_CELL_0 84DB CP $02
84DD RET NC
84DE LD A,(IX+$00) Not the same cell: nothing.
84E1 CP (IY+$00)
84E4 RET NZ
84E5 LD A,(IX+$01)
84E8 CP (IY+$01)
84EB RET NZ
84EC XOR A Clear both stuns and the player's fall.
84ED LD (IX+$06),A
84F0 LD (IY+$06),A
84F3 LD (IY+$05),A
84F6 NOP Three NOPs, left where something was taken out.
84F7 NOP
84F8 NOP
84F9 RET
Prev: 84C8 Up: Map Next: 84FA