Prev: B374 Up: Map Next: B3F0
B3BE: Routine at B3BE
Used by the routine at B591.
B3BE LD IX,$C2EE IX=C2EE.
B3C2 LD B,$08 B=08.
B3C4 PUSH BC Stash BC on the stack.
B3C5 LD A,(IX+$00) A=*IX+00.
B3C8 CP (IX+$0B) Compare A with *IX+0B.
B3CB JR NC,$B3E7 Jump to B3E7 if {} is higher.
B3CD CALL $C057 Call C057.
B3D0 LD L,(IX+$05) L=*IX+05.
B3D3 LD H,(IX+$06) H=*IX+06.
B3D6 SET 5,H Set bit 5 of H.
B3D8 LD BC,$001F BC=001F.
B3DB LD A,(IX+$03) A=*IX+03.
B3DE SET 6,(HL) Set bit 6 of *HL.
B3E0 INC L Increment L by one.
B3E1 SET 6,(HL) Set bit 6 of *HL.
B3E3 ADD HL,BC HL+=BC.
B3E4 DEC A Decrease A by one.
B3E5 JR NZ,$B3DE Jump to B3DE if {} is not zero.
B3E7 LD BC,$000D BC=000D.
B3EA ADD IX,BC IX+=BC.
B3EC POP BC Restore BC from the stack.
B3ED DJNZ $B3C4 Decrease counter by one and loop back to B3C4 until counter is zero.
B3EF RET Return.
Prev: B374 Up: Map Next: B3F0