Prev: 630F Up: Map Next: 63DA
63CB: Updates the highscore
The top of the stack will contain either 1UP_SCORE_1ST or 2UP_SCORE_1ST. The three bytes which make up the players score are copied over to the HIGH_SCORE memory location.
UPDATE_HIGHSCORE 63CB POP HL Fetch HL off the stack
63CC LD DE,$5CF0 DE Target address: HIGH_SCORE
63CF LD BC,$0003 BC=loop counter
63D2 LDIR Action! Copy source to target, decrease counter, repeat until zero
63D4 RET Return
Tests to see if the highscore has been beaten by 1UP.
COMPARE_1UP_SCORE 63D5 LD HL,$5CF4 HL=1UP_SCORE_1ST
63D8 JR CHECK_HIGHSCORE Jump to CHECK_HIGHSCORE
Prev: 630F Up: Map Next: 63DA