B219: Display number of steps and total percentage score.
Game_DisplayFinalScore |
B219 |
LD HL,Steps_Count_Upper |
|
B21C |
LD DE,$0708 |
|
B21F |
LD C,$46 |
|
B221 |
LD B,$04 |
Game_DisplayFinalScore_0 |
B223 |
LD A,(HL) |
|
B224 |
SRL A |
|
B226 |
SRL A |
|
B228 |
SRL A |
|
B22A |
SRL A |
|
B22C |
OR A |
|
B22D |
JR NZ,Game_DisplayFinalScore_1 |
|
B22F |
LD A,(Digit_LeadZeroFlag) |
|
B232 |
OR A |
|
B233 |
JR Z,Game_DisplayFinalScore_2 |
Game_DisplayFinalScore_1 |
B235 |
ADD A,$30 |
|
B237 |
CALL Tile_BlitDoubleHeight |
|
B23A |
LD A,$01 |
|
B23C |
LD (Digit_LeadZeroFlag),A |
Game_DisplayFinalScore_2 |
B23F |
INC E |
|
B240 |
LD A,(HL) |
|
B241 |
AND $0F |
|
B243 |
OR A |
|
B244 |
JR NZ,Game_DisplayFinalScore_3 |
|
B246 |
LD A,(Digit_LeadZeroFlag) |
|
B249 |
OR A |
|
B24A |
JR Z,Game_DisplayFinalScore_4 |
Game_DisplayFinalScore_3 |
B24C |
ADD A,$30 |
|
B24E |
CALL Tile_BlitDoubleHeight |
|
B251 |
LD A,$01 |
|
B253 |
LD (Digit_LeadZeroFlag),A |
Game_DisplayFinalScore_4 |
B256 |
INC E |
|
B257 |
DEC HL |
|
B258 |
DJNZ Game_DisplayFinalScore_0 |
|
B25A |
XOR A |
|
B25B |
LD (Digit_LeadZeroFlag),A |
|
B25E |
LD A,(TempStoreA) |
|
B261 |
LD C,A |
|
B262 |
CALL Game_CalculateScore |
|
B265 |
LD DE,$100E |
|
B268 |
ADD A,C |
|
B269 |
DAA |
|
B26A |
LD C,$47 |
|
B26C |
CP $99 |
|
B26E |
JR NZ,Game_DisplayFinalScore_5 |
|
B270 |
LD A,$31 |
|
B272 |
CALL Tile_BlitDoubleHeight |
|
B275 |
LD A,$30 |
|
B277 |
INC E |
|
B278 |
CALL Tile_BlitDoubleHeight |
|
B27B |
INC E |
|
B27C |
CALL Tile_BlitDoubleHeight |
|
B27F |
RET |
Game_DisplayFinalScore_5 |
B280 |
LD (TempStoreA),A |
|
B283 |
SRL A |
|
B285 |
SRL A |
|
B287 |
SRL A |
|
B289 |
SRL A |
|
B28B |
ADD A,$30 |
|
B28D |
CALL Tile_BlitDoubleHeight |
|
B290 |
INC E |
|
B291 |
LD A,(TempStoreA) |
|
B294 |
AND $0F |
|
B296 |
ADD A,$30 |
|
B298 |
CALL Tile_BlitDoubleHeight |
|
B29B |
RET |