Prev: B1B2 Up: Map Next: B1D7
B1C3: Routine at B1C3
Used by the routine at B147.
B1C3 PUSH BC Stash BC and DE on the stack.
B1C4 PUSH DE
B1C5 LD A,(HL) A=*HL.
B1C6 LD (DE),A Write A to *DE.
B1C7 DEC DE Decrease DE by one.
B1C8 INC HL Increment HL by one.
B1C9 DEC C Decrease C by one.
B1CA JR NZ,$B1C5 Jump to B1C5.
B1CC EX DE,HL Exchange the DE register with the shadow HL register.
B1CD POP HL Restore HL from the stack.
B1CE LD BC,$0020 BC=0020.
B1D1 ADD HL,BC HL+=BC.
B1D2 EX DE,HL Exchange the DE register with the shadow HL register.
B1D3 POP BC Restore BC from the stack.
B1D4 DJNZ $B1C3 Decrease counter by one and loop back to B1C3 until counter is zero.
B1D6 RET Return.
Prev: B1B2 Up: Map Next: B1D7