![]() |
Routines |
| Prev: D347 | Up: Map | Next: D36B |
|
Adds an amount to Bounty, as SubtractFromBounty subtracts from it. It also writes 00 to BulletUnpaidFlag, so the revolver may be loaded again.
|
||||||||
|
Allow the revolver to be loaded.
|
||||||||
| AddToBounty | D354 | XOR A | Write 00 to BulletUnpaidFlag. | |||||
| D355 | LD ($A269),A | |||||||
|
Add the lowest two digits.
|
||||||||
| D358 | LD HL,$A259 | Point HL at Bounty_LastByte. | ||||||
| D35B | LD A,C | Add the lower two digits. | ||||||
| D35C | ADD A,(HL) | |||||||
| D35D | DAA | Make it decimal. | ||||||
| D35E | LD (HL),A | Store the lowest two digits of Bounty. | ||||||
| D35F | DEC HL | Move on to the next byte. | ||||||
|
Add the middle two digits.
|
||||||||
| D360 | LD A,B | Add the next two digits and the carry. | ||||||
| D361 | ADC A,(HL) | |||||||
| D362 | DAA | Make it decimal. | ||||||
| D363 | LD (HL),A | Store the middle two digits of Bounty. | ||||||
| D364 | DEC HL | Move on to the next byte. | ||||||
|
Add the highest two digits.
|
||||||||
| D365 | LD A,(HL) | Add the carry. | ||||||
| D366 | ADC A,$00 | |||||||
| D368 | DAA | Make it decimal. | ||||||
| D369 | LD (HL),A | Store the highest two digits of Bounty. | ||||||
| D36A | RET | Return. | ||||||
| Prev: D347 | Up: Map | Next: D36B |