Prev: 96DB Up: Map Next: 9750
96FC: Best Scores Table Print
Used by the routine at BestScoresPrint.
BestScoresTablePrint 96FC CALL Init_BestScoresTable Call Init_BestScoresTable.
96FF LD B,$05 B=05 (counter).
9701 LD DE,$B86F DE=ScoreboardCopy.
9704 LD A,$0B A=0B.
BestScoresTablePrint_Loop 9706 PUSH BC Stash BC, DE and AF on the stack.
9707 PUSH DE
9708 PUSH AF
9709 LD A,$16 PRINT AT ().
970B RST $10
970C POP AF Restore AF from the stack.
970D PUSH AF But keep a copy of it on the stack.
970E RST $10
970F LD A,$07 A=07.
9711 RST $10
9712 POP AF
9713 POP DE
9714 PUSH DE
9715 PUSH AF
9716 LD BC,$000C BC=0C (all names are 0C characters in length).
9719 CALL $203C Call PR_STRING.
971C LD A,$20 Print three spaces.
971E RST $10
971F LD A,$20
9721 RST $10
9722 LD A,$20
9724 RST $10
9725 POP AF Restore AF and DE from the stack.
9726 POP DE
9727 PUSH DE But keep a copy of both of them on the stack.
9728 PUSH AF
9729 LD HL,$000C HL=0C.
972C ADD HL,DE
972D LD C,(HL)
972E INC HL
972F LD B,(HL)
9730 XOR A
9731 CP B
9732 JP NZ,BestScoresTablePrint_0
9735 CP C
9736 JP Z,BestScoresTablePrint_1
BestScoresTablePrint_0 9739 CALL $2D2B
973C CALL $2DE3
BestScoresTablePrint_1 973F LD A,$30
9741 RST $10
9742 POP AF
9743 INC A
9744 INC A
9745 POP DE
9746 LD HL,$000E
9749 ADD HL,DE
974A PUSH HL
974B POP DE
974C POP BC
974D DJNZ BestScoresTablePrint_Loop
974F RET Return.
Prev: 96DB Up: Map Next: 9750