![]() |
Routines |
| Prev: 62632 | Up: Map | Next: 62704 |
|
Adds *TemporaryPair into the score digits at 25786.
|
||||
| Draw_StatusIcons_Target2 | 62654 | LD A,(25623) | Return if *TemporaryPair is zero. | |
| 62657 | OR A | |||
| 62658 | RET Z | |||
| 62659 | LD BC,(25623) | Point at the digit that matches the place value. | ||
| 62663 | XOR A | |||
| 62664 | LD D,A | |||
| 62665 | LD E,B | |||
| 62666 | LD HL,25791 | |||
| 62669 | SBC HL,DE | |||
| 62671 | LD DE,25786 | |||
| 62674 | XOR A | |||
| 62675 | EX DE,HL | |||
| 62676 | SBC HL,DE | |||
| 62678 | EX DE,HL | |||
| 62679 | JR NC,Draw_StatusIcons_Branch | Jump to Draw_StatusIcons_Branch if that digit is already in range. | ||
| 62681 | LD A,C | Add the low byte into the digit, wrapping at 10. | ||
| 62682 | ADD A,(HL) | |||
| 62683 | CP 10 | |||
| 62685 | LD (HL),A | |||
| 62686 | JR C,Draw_StatusIcons_Branch | |||
| 62688 | SUB 10 | Carry into the next place. | ||
| 62690 | LD (HL),A | |||
| 62691 | LD BC,(25623) | |||
| 62695 | LD C,1 | |||
| 62697 | INC B | |||
| 62698 | LD (25623),BC | |||
| 62702 | JR Draw_StatusIcons_Target2 | Jump to Draw_StatusIcons_Target2. | ||
| Prev: 62632 | Up: Map | Next: 62704 |