![]() |
Routines |
| Prev: B77F | Up: Map | Next: B79E |
|
Used by the routines at Handler_ChangeRoom and Action_Dig.
Add the points in A to the BCD score.
|
||||
| AddToScore | B78F | PUSH HL | Remember the caller's pointer. | |
| B790 | LD HL,($AECE) | Load the word at the score into HL. | ||
| B793 | ADD A,L | Add the points into the decimal score. | ||
| B794 | DAA | |||
| B795 | LD L,A | |||
| B796 | JR NC,AddToScore_Next | Branch to AddToScore_Next when the carry flag is clear. | ||
| B798 | INC H | Advance the count in H. | ||
| AddToScore_Next | B799 | LD ($AECE),HL | Store HL in the score. | |
| B79C | POP HL | Restore the caller's pointer from the stack. | ||
| B79D | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: B77F | Up: Map | Next: B79E |