Prev: A1F3 Up: Map Next: A240
A219: Draw the scroll down the side of the screen
Used by the routine at START_GAME.
Points the tile source at PANEL_TILES -- a set of tiles of its own, not the text font -- and lays out an eight by twenty-four block of them from PANEL_LAYOUT at x $C0. The parchment border, drawn once when a game starts and left alone after that.
DRAW_SCROLL A219 LD HL,PANEL_TILES
A21C LD ($5E01),HL
A21F LD HL,$00C0
A222 LD DE,PANEL_LAYOUT
A225 LD BC,$0818
DRAW_SCROLL_0 A228 PUSH BC
A229 PUSH HL
A22A CALL PIXEL_TO_SCREEN
DRAW_SCROLL_1 A22D LD A,(DE)
A22E INC DE
A22F CALL PLOT_TILE
A232 DJNZ DRAW_SCROLL_1
A234 POP HL
A235 LD A,H
A236 ADD A,$08
A238 LD H,A
A239 POP BC
A23A DEC C
A23B JR NZ,DRAW_SCROLL_0
A23D JP DRAW_SCORE
Prev: A1F3 Up: Map Next: A240