Prev: 9918 Up: Map Next: 996A
9945: Increment score
Used by the routines at 9807, D15A and D1B7.
Input
DE Points to increment
9945 LD A,($A1EE) Return if Rex is dead
9948 OR A
9949 RET NZ
994A LD HL,($A1D7) Increment score
994D ADD HL,DE
994E LD ($A1D7),HL
9951 LD HL,($A20F) Increment lives score
9954 ADD HL,DE
9955 LD ($A20F),HL
9958 LD DE,$0064 If lives score greather than 100 then increment live
995B AND A
995C SBC HL,DE
995E JP C,$9967
9961 LD ($A20F),HL Reset lives score
9964 CALL $D338 Increment number of lives
9967 JP $98C9 Draw score on HUD
Prev: 9918 Up: Map Next: 996A