Prev: BD9E Up: Map Next: BEF6
BECF: Adjust position in the final room
Used by the routines at AA65 and BD9E.
BECF LD HL,$A43C
BED2 DEC (HL)
BED3 RET NZ
BED4 LD B,$00
BED6 LD HL,($A43D)
BED9 LD C,(HL)
BEDA EX DE,HL
BEDB LD HL,$7E00
BEDE ADD HL,BC
BEDF INC C
BEE0 JR NZ,$BEE5
BEE2 POP HL
BEE3 POP HL
BEE4 RET
BEE5 EX DE,HL
BEE6 INC HL
BEE7 LD A,(HL)
BEE8 LD (DE),A
BEE9 INC HL
BEEA LD A,(HL)
BEEB INC HL
BEEC AND A
BEED JR Z,$BED9
BEEF LD ($A43C),A
BEF2 LD ($A43D),HL
BEF5 RET
Prev: BD9E Up: Map Next: BEF6