Prev: 9BCA Up: Map Next: 9C41
9BDC: Routine at 9BDC
9BDC DEFB $FF
This entry point is used by the routines at Action_Dir, Action_Give, Action_Examine, ActionCapture and ActionClimbOut.
9BDD LD HL,$9BDC
9BE0 LD (HL),$01
9BE2 CALL $9C17
9BE5 LD A,(HL)
9BE6 AND A
9BE7 RET NZ
9BE8 PUSH HL
9BE9 LD A,($C12B)
9BEC AND A
9BED JR Z,$9C13
9BEF LD A,($B6EA)
9BF2 PUSH AF
9BF3 LD HL,($B70C)
9BF6 PUSH HL
9BF7 LD HL,$C11B
9BFA LD ($B70C),HL
9BFD XOR A
9BFE LD ($B6EA),A
9C01 LD A,B
9C02 LD ($8D9B),A
9C05 CALL Action_Dir_4
9C08 CALL Action_None
9C0B POP HL
9C0C LD ($B70C),HL
9C0F POP AF
9C10 LD ($B6EA),A
9C13 POP HL
9C14 XOR A
9C15 LD (HL),A
9C16 RET
9C17 PUSH IY
9C19 PUSH IX
9C1B LD IX,$C060
9C1F CALL Step3ByteTable_Next
9C22 JR Z,$9C3C
9C24 CP (IY+$01)
9C27 JR NZ,$9C1F
9C29 LD (IY+$10),B
9C2C PUSH AF
9C2D LD A,(IX+$00)
9C30 AND A
9C31 JR NZ,$9C36
9C33 LD ($9BDC),A
9C36 CALL $9C17
9C39 POP AF
9C3A JR $9C1F
9C3C POP IX
9C3E POP IY
9C40 RET Return.
Prev: 9BCA Up: Map Next: 9C41