Prev: 6A1C Up: Map Next: 6ADA
6A24: Routine at 6A24
Used by the routine at 604D.
6A24 LD A,($5B1D)
6A27 OR A
6A28 RET Z
6A29 DEC A
6A2A JR NZ,$6A3A
6A2C CALL $6A51
6A2F LD C,$29
6A31 CALL $6114
6A34 LD A,$02
6A36 LD ($5B1D),A
6A39 RET
6A3A CALL $6A46
6A3D CALL $6A51
6A40 LD C,$29
6A42 CALL $6114
6A45 RET
6A46 LD HL,($5B1E)
6A49 DEC L
6A4A XOR A
6A4B LD C,$2D
6A4D CALL $6114
6A50 RET
6A51 LD HL,($5B1E)
6A54 DEC L
6A55 JR Z,$6AA2
6A57 DEC L
6A58 JR Z,$6AA2
6A5A LD A,($5B22)
6A5D OR A
6A5E JR NZ,$6AA2
6A60 LD DE,($5B20)
6A64 LD A,L
6A65 SUB E
6A66 LD B,$5C
6A68 JR C,$6A82
6A6A CP $05
6A6C JR C,$6A82
6A6E LD A,D
6A6F CP H
6A70 JR Z,$6A78
6A72 JR C,$6A77
6A74 INC H
6A75 JR $6A78
6A77 DEC H
6A78 CP H
6A79 JR Z,$6A82
6A7B JR C,$6A80
6A7D DEC B
6A7E JR $6A82
6A80 LD B,$5A
6A82 LD ($5B1E),HL
6A85 PUSH DE
6A86 CALL $60F6
6A89 LD A,(DE)
6A8A POP DE
6A8B LD C,A
6A8C LD A,$5C
6A8E CP B
6A8F JR NZ,$6AAC
6A91 LD A,C
6A92 CP $28
6A94 JR NZ,$6AAC
6A96 LD A,E
6A97 CP L
6A98 JR NZ,$6AA8
6A9A CALL $6DD0
6A9D LD A,$01
6A9F LD ($5B22),A
6AA2 XOR A
6AA3 LD ($5B1D),A
6AA6 POP HL
6AA7 RET
6AA8 INC A
6AA9 CP L
6AAA JR Z,$6A9A
6AAC LD A,C
6AAD CP $2D
6AAF JR Z,$6AC2
6AB1 CP $2F
6AB3 JR Z,$6AC2
6AB5 CP $2B
6AB7 JR Z,$6AC2
6AB9 CP $29
6ABB JR Z,$6AC5
6ABD CALL $6C5E
6AC0 JR $6AA2
6AC2 LD A,B
6AC3 OR A
6AC4 RET
6AC5 LD BC,($5B02)
6AC9 OR A
6ACA SBC HL,BC
6ACC JR NZ,$6AD4
6ACE XOR A
6ACF LD ($5B01),A
6AD2 JR $6AC2
6AD4 XOR A
6AD5 LD ($5B33),A
6AD8 JR $6AC2
Prev: 6A1C Up: Map Next: 6ADA