| Prev: 9122 | Up: Map | Next: 914B |
913B: Increase a digit in the player 1's score.
|
Increments the ASCII digit at the specified offset in the score buffer. If the digit overflows past '9', it jumps to the carry routine. Otherwise prints the updated digit.
|
||||||||||||
| inc_player_1_score_digit | 913B | LD HL,$90BC | Point HL at the target digit in player 1's score. | |||||||||
| 913E | LD B,$00 | |||||||||||
| 9140 | LD A,C | Save offset to D, load digit, increment it. | ||||||||||
| 9141 | ADD HL,BC | |||||||||||
| 9142 | LD D,A | |||||||||||
| 9143 | LD A,(HL) | |||||||||||
| 9144 | INC A | |||||||||||
| 9145 | CP ":" | If digit overflows past '9', jump to carry_player_1_score_digit for carry. | ||||||||||
| 9147 | JP Z,carry_player_1_score_digit | |||||||||||
| 914A | LD (HL),A | Store incremented digit, fall through to print. | ||||||||||
| Prev: 9122 | Up: Map | Next: 914B |