Prev: B7F8 Up: Map Next: B8E6
B8B9: Routine at B8B9
Used by the routine at BDCF.
B8B9 LD B,$B4
B8BB LD A,(HL)
B8BC CP $C0
B8BE JR Z,$B8D2
B8C0 BIT 5,A
B8C2 JR NZ,$B8D2
B8C4 RES 7,(HL)
B8C6 RES 6,(HL)
B8C8 SET 4,(HL)
B8CA AND $0F
B8CC CP $06
B8CE JR C,$B8D2
B8D0 RES 4,(HL)
B8D2 INC HL
B8D3 DJNZ $B8BB
B8D5 RET
B8D6 LD C,$3A
B8D8 LD (HL),C
B8D9 CP C
B8DA LD B,A
B8DB LD A,($B8D6)
B8DE LD ($B971),A
B8E1 LD A,B
B8E2 LD ($B8D6),A
B8E5 RET
Prev: B7F8 Up: Map Next: B8E6