Prev: B2A4 Up: Map Next: B2EE
B2C0: Routine at B2C0
Used by the routines at B416 and B44A.
B2C0 LD L,(IX+$05) L=*IX+05.
B2C3 LD H,(IX+$06) H=*IX+06.
B2C6 LD C,(IX+$04) C=*IX+04.
B2C9 LD B,(IX+$03) B=*IX+03.
B2CC PUSH HL IX=HL (using the stack).
B2CD POP IX
B2CF SET 5,H Set bit 5 of H.
This entry point is used by the routine at B591.
B2D1 LD DE,$0020 DE=0020.
B2D4 PUSH HL Stash HL, IX and BC on the stack.
B2D5 PUSH IX
B2D7 PUSH BC
B2D8 LD A,(HL) A=*HL.
B2D9 AND %01111111 Keep only bits 0-6.
B2DB LD (IX+$00),A Write A to *IX+00.
B2DE ADD HL,DE HL+=DE.
B2DF ADD IX,DE IX+=DE.
B2E1 DJNZ $B2D8 Decrease counter by one and loop back to B2D8 until counter is zero.
B2E3 POP BC Restore BC, IX and HL from the stack.
B2E4 POP IX
B2E6 POP HL
B2E7 INC IX Increment IX by one.
B2E9 INC HL Increment HL by one.
B2EA DEC C Decrease C by one.
B2EB JR NZ,$B2D1 Jump to B2D1.
B2ED RET Return.
Prev: B2A4 Up: Map Next: B2EE