![]() |
Routines |
| Prev: 67E9 | Up: Map | Next: 6826 |
|
Used by the routines at GameInitialisation and Handler_GameOver.
|
||||
| 6800 | LD ($7819),A | Write A to *ScrollPhase_Counter. | ||
| 6803 | LD A,L | L-=08. | ||
| 6804 | SUB $08 | |||
| 6806 | LD L,A | |||
| 6807 | JR NC,$680D | Jump to 680D if {} is higher. | ||
| 6809 | LD A,H | H-=05. | ||
| 680A | SUB $05 | |||
| 680C | LD H,A | |||
| 680D | LD ($7817),HL | Write HL to *Current_ScreenPosition. | ||
| 6810 | LD HL,$0000 | Write 0000 to *7814. | ||
| 6813 | LD ($7814),HL | |||
| 6816 | LD B,$20 | B=20 (counter; screen columns). | ||
| 6818 | PUSH BC | Stash the screen column counter on the stack. | ||
| 6819 | CALL ScrollPlayarea_Left | Call ScrollPlayarea_Left. | ||
| 681C | CALL ScrollPlayarea_Left | Call ScrollPlayarea_Left. | ||
| 681F | CALL DrawPlayarea | Call DrawPlayarea. | ||
| 6822 | POP BC | Restore the screen column counter from the stack. | ||
| 6823 | DJNZ $6818 | Decrease the screen column counter by one and loop back to 6818 until counter is zero. | ||
| 6825 | RET | Return. | ||
| Prev: 67E9 | Up: Map | Next: 6826 |