Prev: 38619 Up: Map Next: 38736
38652: Best Scores Table Print
Used by the routine at BestScoresPrint.
BestScoresTablePrint 38652 CALL Init_BestScoresTable Call Init_BestScoresTable.
38655 LD B,5 B=5 (counter).
38657 LD DE,47215 DE=ScoreboardCopy.
38660 LD A,11 A=11.
BestScoresTablePrint_Loop 38662 PUSH BC Stash BC, DE and AF on the stack.
38663 PUSH DE
38664 PUSH AF
38665 LD A,22 PRINT AT ().
38667 RST 16
38668 POP AF Restore AF from the stack.
38669 PUSH AF But keep a copy of it on the stack.
38670 RST 16
38671 LD A,7 A=7.
38673 RST 16
38674 POP AF
38675 POP DE
38676 PUSH DE
38677 PUSH AF
38678 LD BC,12 BC=12 (all names are 12 characters in length).
38681 CALL 8252 Call PR_STRING.
38684 LD A,32 Print three spaces.
38686 RST 16
38687 LD A,32
38689 RST 16
38690 LD A,32
38692 RST 16
38693 POP AF Restore AF and DE from the stack.
38694 POP DE
38695 PUSH DE But keep a copy of both of them on the stack.
38696 PUSH AF
38697 LD HL,12 HL=12.
38700 ADD HL,DE
38701 LD C,(HL)
38702 INC HL
38703 LD B,(HL)
38704 XOR A
38705 CP B
38706 JP NZ,BestScoresTablePrint_0
38709 CP C
38710 JP Z,BestScoresTablePrint_1
BestScoresTablePrint_0 38713 CALL 11563
38716 CALL 11747
BestScoresTablePrint_1 38719 LD A,48
38721 RST 16
38722 POP AF
38723 INC A
38724 INC A
38725 POP DE
38726 LD HL,14
38729 ADD HL,DE
38730 PUSH HL
38731 POP DE
38732 POP BC
38733 DJNZ BestScoresTablePrint_Loop
38735 RET Return.
Prev: 38619 Up: Map Next: 38736