Routines |
Prev: 29494 | Up: Map | Next: 29544 |
Used by the routine at CollectName.
|
||||
ShiftHighScores | 29495 | POP HL | Restore HL, BC, HL and BC from the stack. | |
29496 | POP BC | |||
29497 | POP HL | |||
29498 | POP BC | |||
29499 | LD E,B | E=B. | ||
ShiftHighScores_0 | 29500 | LD A,(HL) | A=*HL. | |
29501 | LD (HL),D | Write D to *HL. | ||
29502 | INC HL | Increment HL by three. | ||
29503 | INC HL | |||
29504 | INC HL | |||
29505 | LD D,A | D=A. | ||
29506 | DJNZ ShiftHighScores_0 | Decrease counter by one and loop back to ShiftHighScores_0 until counter is zero. | ||
29508 | LD A,E | A=E. | ||
29509 | LD IX,29570 | IX=29570. | ||
ShiftHighScores_Loop | 29513 | LD H,(IX+0) | H=*IX+0. | |
29516 | LD L,(IX-1) | L=*IX-1. | ||
29519 | LD D,(IX-3) | D=*IX-3. | ||
29522 | LD E,(IX-4) | E=*IX-4. | ||
29525 | LD B,22 | B=22. | ||
29527 | PUSH AF | Stash AF on the stack. | ||
29528 | CALL 13374 | Call SWAP_BYTE. | ||
29531 | DEC IX | Decrease IX by three. | ||
29533 | DEC IX | |||
29535 | DEC IX | |||
29537 | POP AF | Restore AF from the stack. | ||
29538 | DEC A | Decrease A by one. | ||
29539 | JR NZ,ShiftHighScores_Loop | Jump to ShiftHighScores_Loop until A is zero. | ||
29541 | JP DisplayWinnersListPage | Jump to DisplayWinnersListPage. |
Prev: 29494 | Up: Map | Next: 29544 |