Prev: A1F3 Up: Map Next: A240
A219: Draw Side Panel
Used by the routine at StartGame.
DrawSidePanel A219 LD HL,$B03A Write SidePanelUDG to FontPointer.
A21C LD ($5E01),HL
A21F LD HL,$00C0 HL=00C0 (screen buffer location).
A222 LD DE,$B32A DE=SidePanelData.
A225 LD BC,$0818 BC=08 (width), 18 (height).
SidePanel_Loop_Y A228 PUSH BC Stash BC and HL on the stack.
A229 PUSH HL
A22A CALL ScreenAddress Call ScreenAddress.
SidePanel_Loop_X A22D LD A,(DE) A=character data byte.
A22E INC DE Increment the character data pointer by one.
A22F CALL PrintCharacter Call PrintCharacter.
A232 DJNZ SidePanel_Loop_X Decrease width counter by one and loop back to SidePanel_Loop_X until counter is zero.
A234 POP HL Restore HL from the stack.
A235 LD A,H H=H + 08.
A236 ADD A,$08
A238 LD H,A
A239 POP BC Restore BC from the stack.
A23A DEC C Decrease height counter by one and loop back to SidePanel_Loop_Y until counter is zero.
A23B JR NZ,SidePanel_Loop_Y
A23D JP PrintScore Jump to PrintScore.
Prev: A1F3 Up: Map Next: A240