Prev: B34A Up: Map Next: B381
B34C: Shunt the player to the end of the platform if we're near it
Used by the routine at 9858.
B34C LD A,($72D8)
B34F AND $07
B351 RET Z
B352 LD HL,($72D8)
B355 CALL $9E34
B358 LD BC,$003F
B35B AND A
B35C SBC HL,BC
B35E LD A,(HL)
B35F CP $05
B361 RET NC
B362 CP $01
B364 RET Z
B365 CP $02
B367 RET Z
B368 LD A,$01
B36A LD ($7325),A
B36D LD D,$FF
B36F LD A,($72DB)
B372 AND A
B373 JR NZ,$B377
B375 LD D,$01
B377 LD A,D
B378 LD ($7326),A
B37B LD A,$04
B37D LD ($7327),A
B380 RET
Prev: B34A Up: Map Next: B381