Prev: A19C Up: Map Next: A1D3
A1AE: Print Scores
Used by the routine at DrawSidePanel.
Sets up the player score.
PrintScore A1AE LD HL,$BFCC Write BFCC to FontPointer.
A1B1 LD ($5E01),HL
A1B4 LD HL,$50C8 HL=50C8.
This entry point is used by the routine at GameStats.
PrintScore_0 A1B7 CALL ScreenAddress Call ScreenAddress.
A1BA LD DE,$5E2A DE=5E2A.
A1BD LD B,$03 B=03.
This entry point is used by the routines at ClockTick and GameStats.
PrintScore_Loop A1BF LD A,(DE) A=DE.
A1C0 RRCA A=A / 10.
A1C1 RRCA
A1C2 RRCA
A1C3 RRCA
A1C4 AND %00001111 Keep only bits 0-3.
A1C6 CALL PrintCharacter Call PrintCharacter.
This entry point is used by the routine at ClockTick.
PrintScore_1 A1C9 LD A,(DE) A=DE.
A1CA AND %00001111 Keep only bits 0-3.
A1CC CALL PrintCharacter Call PrintCharacter.
A1CF INC DE Increment DE by one.
A1D0 DJNZ PrintScore_Loop Decrease counter by one and loop back to PrintScore_Loop until counter is zero.
A1D2 RET Return.
View the equivalent code in;
Prev: A19C Up: Map Next: A1D3