Prev: 9CD6 Up: Map Next: 9D2E
9D17: Increments the score by (D,E,A)
Used by the routines at handle_perp_caught and speed_score.
Input
A Low byte of increment
E Middle byte of increment
D High byte of increment
increment_score 9D17 LD HL,$8002 HL = &score_bcd
9D1A ADD A,(HL) A += *HL
9D1B DAA BCD correct A
9D1C LD (HL),A *HL++ = A
9D1D INC HL
9D1E LD A,E A = E + *HL + carry
9D1F ADC A,(HL)
9D20 DAA BCD correct A
9D21 LD (HL),A *HL++ = A
9D22 INC HL
9D23 LD A,D A = D + *HL + carry
9D24 ADC A,(HL)
9D25 DAA BCD correct A
9D26 LD (HL),A *HL++ = A
9D27 INC HL
9D28 LD A,$00 A = 0 + *HL + carry
9D2A ADC A,(HL)
9D2B DAA BCD correct A
9D2C LD (HL),A *HL = A
9D2D RET Return
Prev: 9CD6 Up: Map Next: 9D2E