Prev: 41372 Up: Map Next: 41427
41390: Print Scores
Used by the routine at DrawSidePanel.
Sets up the player score.
PrintScore 41390 LD HL,49100 Write 49100 to FontPointer.
41393 LD (24065),HL
41396 LD HL,20680 HL=20680.
This entry point is used by the routine at GameStats.
PrintScore_0 41399 CALL ScreenAddress Call ScreenAddress.
41402 LD DE,24106 DE=24106.
41405 LD B,3 B=3.
This entry point is used by the routines at ClockTick and GameStats.
PrintScore_Loop 41407 LD A,(DE) A=DE.
41408 RRCA A=A / 16.
41409 RRCA
41410 RRCA
41411 RRCA
41412 AND %00001111 Keep only bits 0-3.
41414 CALL PrintCharacter Call PrintCharacter.
This entry point is used by the routine at ClockTick.
PrintScore_1 41417 LD A,(DE) A=DE.
41418 AND %00001111 Keep only bits 0-3.
41420 CALL PrintCharacter Call PrintCharacter.
41423 INC DE Increment DE by one.
41424 DJNZ PrintScore_Loop Decrease counter by one and loop back to PrintScore_Loop until counter is zero.
41426 RET Return.
View the equivalent code in;
Prev: 41372 Up: Map Next: 41427