Prev: 70A4 Up: Map Next: 711C
70F9: Add Points To Score
Used by the routines at 63DA, 6498, 651F, 6A6C, 6AEF, 6CF5 and MeteorUpdate.
AddPointsToScore 70F9 LD A,($5DD1) Evaluate Flag_ActivePlayer
70FC AND A
70FD JR NZ,AddPointsToScore_0 Jump to AddPointsToScore_0 if 2UP is active player
70FF LD HL,$5CF6 HL=5CF6.
7102 JR AddPointsToScore_1 Jump forward to AddPointsToScore_1
AddPointsToScore_0 7104 LD HL,$5CF9 HL=5CF9.
AddPointsToScore_1 7107 LD A,(HL) A=HL
7108 ADD A,C
7109 DAA
710A LD (HL),A
710B DEC HL
710C LD A,(HL)
710D ADC A,B
710E DAA
710F LD (HL),A
7110 DEC HL
7111 LD A,(HL)
7112 ADC A,$00
7114 DAA
7115 LD (HL),A Writes A to the memory location currently in HL
7116 LD A,($5DD1) Evaluate Flag_ActivePlayer
7119 AND A
711A JR NZ,Score_2UP Jump to Score_2UP if 2UP is active player
View the equivalent code in;
Prev: 70A4 Up: Map Next: 711C