Prev: B93A Up: Map Next: B9CE
B98C: Update the rope
Used by the routines at 6127 and 6490.
B98C CALL $C0C6
B98F LD HL,($BA48)
B992 LD A,(HL)
B993 LD ($BA03),A
B996 INC HL
B997 LD A,(HL)
B998 LD ($BA04),A
B99B INC HL
B99C LD A,$BB
B99E CP H
B99F JR NZ,$B9C2
B9A1 LD A,$0D
B9A3 CP L
B9A4 JR NZ,$B9C2
B9A6 LD HL,$BA4A
B9A9 LD A,($B9FB)
B9AC CP $1C
B9AE JR Z,$B9BA
B9B0 LD A,$1C
B9B2 LD ($B9FB),A
B9B5 LD ($BA01),A
B9B8 JR $B9C2
B9BA LD A,$1D
B9BC LD ($B9FB),A
B9BF LD ($BA01),A
B9C2 LD A,(HL)
B9C3 LD ($BA4A),A
B9C6 INC HL
B9C7 LD ($BA48),HL
B9CA CALL $B9CE
B9CD RET
Prev: B93A Up: Map Next: B9CE