Prev: A21C Up: Map Next: A294
A256: Move the player up are down after jumping or falling
Used by the routine at A21C.
A256 LD A,($7350)
A259 XOR $FF
A25B RET Z
A25C XOR $FF
A25E SUB $09
A260 LD B,A
A261 LD A,($72D8)
A264 CP B
A265 RET C
A266 SUB $13
A268 CP B
A269 RET NC
A26A LD B,$06
A26C LD A,(HL)
A26D ADD A,$10
A26F DEC A
A270 CP (IX+$01)
A273 JR Z,$A278
A275 DJNZ $A26F
A277 RET
A278 LD (IX+$7D),$01
A27C LD (IX+$4D),$00
A280 EX DE,HL
A281 LD HL,($72D8)
A284 LD A,$0C
A286 CALL $9A4C
A289 LD A,(DE)
A28A ADD A,$11
A28C LD ($72D9),A
A28F POP HL
A290 CALL $A389
A293 RET
Prev: A21C Up: Map Next: A294