Prev: 25496 Up: Map Next: 25562
25547: Update Highscore
Used by the routine at CheckHighScore.
The top of the stack will contain either 1UP_Score or 2UP_Score. The three bytes which make up the players score are copied over to the High_Score memory location.
UPDATE_HIGHSCORE 25547 POP HL Fetch HL off the stack
25548 LD DE,23792 DE Target address: High_Score
25551 LD BC,3 BC=loop counter
25554 LDIR Action! Copy source to target, decrease counter, repeat until zero
25556 RET Return
This entry point is used by the routine at CheckHighScore.
Tests to see if the highscore has been beaten by 1UP.
COMPARE_1UP_SCORE 25557 LD HL,23796 HL=1UP_Score
25560 JR CHECK_HIGHSCORE Jump to CHECK_HIGHSCORE
Prev: 25496 Up: Map Next: 25562