Prev: 6C00 Up: Map Next: 6CEC
6CCD: Squiggle Line
This section draws the "Squiggle" line which separates the windows.
squiggle
SquiggleLine 6CCD CALL ClearScreen Call ClearScreen to clear screen.
6CD0 LD HL,$5140 Point at the squiggle row on screen.
6CD3 LD DE,$6DCC Point at the squiggle pattern.
6CD6 LD C,$05 Five rows of the squiggle are drawn.
SquiggleLine_OuterLoop 6CD8 LD B,$10 Set a counter of 10.
6CDA PUSH HL
SquiggleLine_InnerLoop 6CDB LD A,(DE) Read the next byte of the picture.
6CDC LD (HL),A Store it at 5140.
6CDD INC HL Increase both pointers by one.
6CDE INC DE
6CDF LD A,(DE) Store the squiggle pattern in the squiggle row.
6CE0 LD (HL),A
6CE1 INC HL Step HL on.
6CE2 DEC DE Step back one byte through Graphics_Squiggle.
6CE3 DJNZ SquiggleLine_InnerLoop Decrease counter by one and loop back to SquiggleLine_InnerLoop until counter is zero.
6CE5 INC DE Step on through Graphics_Squiggle.
6CE6 INC DE
6CE7 POP HL Move to the next screen row and repeat while squiggle rows remain.
6CE8 INC H
6CE9 DEC C
6CEA JR NZ,SquiggleLine_OuterLoop
Prev: 6C00 Up: Map Next: 6CEC