Routines |
Prev: 6031 | Up: Map | Next: 605B |
|
||||||||
AddPointsToScore | 6046 | LD HL,$5E4E | HL=Score_3. | |||||
6049 | LD A,(HL) | A=score byte #3. | ||||||
604A | ADD A,C | Add C to score byte #3 with BCD conversion. | ||||||
604B | DAA | |||||||
604C | LD (HL),A | Update score byte #3. | ||||||
604D | DEC HL | Move onto the next score byte. | ||||||
604E | LD A,(HL) | A=score byte #2. | ||||||
604F | ADC A,B | Add (with carry) B to score byte #2 with BCD conversion. | ||||||
6050 | DAA | |||||||
6051 | LD (HL),A | Update score byte #2. | ||||||
6052 | DEC HL | Move onto the next score byte. | ||||||
6053 | LD A,(HL) | A=score byte #1. | ||||||
6054 | ADC A,$00 | Add 00 (i.e. just the carry flag) to score byte #1 with BCD conversion. | ||||||
6056 | DAA | |||||||
6057 | LD (HL),A | Update score byte #1. | ||||||
6058 | JP Score_Player | Jump to Score_Player. | ||||||
View the equivalent code in;
|
Prev: 6031 | Up: Map | Next: 605B |