| Prev: 913B | Up: Map | Next: 9169 |
914B: Print a digit from player 1's score.
|
Prints a single score digit at the correct screen position using ROM RST $10 character output.
|
||||||||||
| print_player_1_score_digit | 914B | LD A,$10 | INK PLAYER_1 | |||||||
| 914D | RST $10 | |||||||||
| 914E | LD A,$06 | |||||||||
| 9150 | RST $10 | |||||||||
| 9151 | LD A,$11 | PAPER BLACK | ||||||||
| 9153 | RST $10 | |||||||||
| 9154 | LD A,$00 | |||||||||
| 9156 | RST $10 | |||||||||
| 9157 | LD A,$16 | AT 1,... | ||||||||
| 9159 | RST $10 | |||||||||
| 915A | LD A,$01 | |||||||||
| 915C | RST $10 | |||||||||
| 915D | LD A,D | Calculate screen column (P1 score starts at column 5). | ||||||||
| 915E | ADD A,$05 | |||||||||
| 9160 | RST $10 | |||||||||
| 9161 | LD A,(HL) | Load digit from score buffer and print it. | ||||||||
| 9162 | RST $10 | |||||||||
| 9163 | LD A,$02 | Switch to channel 2 (main screen) and return. | ||||||||
| 9165 | CALL $1601 | |||||||||
| 9168 | RET | |||||||||
| Prev: 913B | Up: Map | Next: 9169 |