Prev: 9C9F Up: Map Next: 9D37
9CE8: Routine at 9CE8
Used by the routines at Action_Dir, Action_Attack and ActionClimbOut.
9CE8 PUSH BC
9CE9 LD B,$01
9CEB JR $9CF0
This entry point is used by the routines at Action_Putdown and Action_Give.
9CED PUSH BC
9CEE LD B,$00
9CF0 PUSH IX
9CF2 PUSH IY
9CF4 LD C,$00
9CF6 CALL $9D00
9CF9 LD A,C
9CFA POP IY
9CFC POP IX
9CFE POP BC
9CFF RET
9D00 PUSH IX
9D02 LD IX,$C063
9D06 CALL Step3ByteTable_Next
9D09 JR Z,$9D2F
9D0B CP (IY+$01)
9D0E JR NZ,$9D06
9D10 PUSH AF
9D11 SUB A
9D12 CP B
9D13 LD A,C
9D14 JR Z,$9D1F
9D16 ADD A,(IY+$02)
9D19 JP PE,$9D32
9D1C LD C,A
9D1D JR $9D2C
9D1F ADD A,(IY+$03)
9D22 JP PE,$9D32
9D25 LD C,A
9D26 LD A,(IX+$00)
9D29 CALL $9D00
9D2C POP AF
9D2D JR $9D06
9D2F POP IX
9D31 RET
9D32 POP AF
9D33 LD C,$FF
9D35 JR $9D2F
Prev: 9C9F Up: Map Next: 9D37