Prev: B147 Up: Map Next: B1C3
B1B2: Routine at B1B2
Used by the routines at B147 and C023.
B1B2 PUSH BC Stash BC and DE on the stack.
B1B3 PUSH DE
B1B4 LD B,$00 B=00.
B1B6 LDIR Copy HL to DE the number of times held by BC.
B1B8 EX DE,HL Exchange the DE register with the shadow HL register.
B1B9 POP HL Restore HL from the stack.
B1BA LD BC,$0020 BC=0020.
B1BD ADD HL,BC HL+=BC.
B1BE EX DE,HL Exchange the DE register with the shadow HL register.
B1BF POP BC Restore BC from the stack.
B1C0 DJNZ $B1B2 Decrease counter by one and loop back to B1B2 until counter is zero.
B1C2 RET Return.
Prev: B147 Up: Map Next: B1C3