![]() |
Routines |
| Prev: 41459 | Up: Map | Next: 41536 |
|
Used by the routine at StartGame.
|
||||
| DrawSidePanel | 41497 | LD HL,45114 | Write SidePanelUDG to FontPointer. | |
| 41500 | LD (24065),HL | |||
| 41503 | LD HL,192 | HL=0192 (screen buffer location). | ||
| 41506 | LD DE,45866 | DE=SidePanelData. | ||
| 41509 | LD BC,2072 | BC=8 (width), 24 (height). | ||
| SidePanel_Loop_Y | 41512 | PUSH BC | Stash BC and HL on the stack. | |
| 41513 | PUSH HL | |||
| 41514 | CALL ScreenAddress | Call ScreenAddress. | ||
| SidePanel_Loop_X | 41517 | LD A,(DE) | A=character data byte. | |
| 41518 | INC DE | Increment the character data pointer by one. | ||
| 41519 | CALL PrintCharacter | Call PrintCharacter. | ||
| 41522 | DJNZ SidePanel_Loop_X | Decrease width counter by one and loop back to SidePanel_Loop_X until counter is zero. | ||
| 41524 | POP HL | Restore HL from the stack. | ||
| 41525 | LD A,H | H=H + 8. | ||
| 41526 | ADD A,8 | |||
| 41528 | LD H,A | |||
| 41529 | POP BC | Restore BC from the stack. | ||
| 41530 | DEC C | Decrease height counter by one and loop back to SidePanel_Loop_Y until counter is zero. | ||
| 41531 | JR NZ,SidePanel_Loop_Y | |||
| 41533 | JP PrintScore | Jump to PrintScore. | ||
| Prev: 41459 | Up: Map | Next: 41536 |