Prev: 6BD3 Up: Map Next: 6BFC
6BDD: Update the highest score to the last score if it is greater
Used by the routine at 65B3.
6BDD LD HL,$6BCD Last score
6BE0 LD DE,$6BD7 High score
6BE3 LD B,$06
6BE5 LD A,(DE) Get the next high score digit
6BE6 LD C,(HL) Do the same for last score
6BE7 CP C Is it higher?
6BE8 JR C,$6BF0 Jump if so
6BEA RET NZ Return if it's lower
6BEB INC HL If it's the same
6BEC INC DE then check the next digit
6BED DJNZ $6BE5 until there's a match
6BEF RET
6BF0 LD BC,$0006 Replace the old high score
6BF3 LD HL,$6BCD with the new one
6BF6 LD DE,$6BD7
6BF9 LDIR
6BFB RET
Prev: 6BD3 Up: Map Next: 6BFC