Prev: 914B Up: Map Next: 9179
9169: Increase a digit in the player 2's score.
Increments the ASCII digit at the specified offset in player 2's score buffer. If the digit overflows past '9', it jumps to the carry routine. Otherwise prints the updated digit.
Input
C Offset of the digit to increase (0=leftmost, 5=rightmost).
Output
D Offset of the digit (passed to print routine).
inc_player_2_score_digit 9169 LD HL,$90C2 Point HL at the target digit in player 2's score.
916C LD B,$00
916E LD A,C Save offset to D, load digit, increment it.
916F ADD HL,BC
9170 LD D,A
9171 LD A,(HL)
9172 INC A
9173 CP ":" If digit overflows past '9', jump to carry_player_2_score_digit for carry.
9175 JP Z,carry_player_2_score_digit
9178 LD (HL),A Store incremented digit, fall through to print.
Prev: 914B Up: Map Next: 9179