Prev: 6398 Up: Map Next: 63DA
63CB: Update Highscore
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 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
63D8 JR CHECK_HIGHSCORE Jump to CHECK_HIGHSCORE
Prev: 6398 Up: Map Next: 63DA