Routines |
Prev: D8A2 | Up: Map | Next: D8E2 |
Used by the routines at GoldfishGame, GoldfishGame_RefillOxygen, AnimateTitleScreen, GoldfishGame_Handler_Bubbles and Handler_SeaCreatures_Chooser.
|
||||
This routine simply updates *D86F with (*D86F*05)+01.
|
||||
UpdateAnimationCounter | D8D4 | LD A,($D86F) | A=*D86F. | |
D8D7 | LD B,A | B=A. | ||
D8D8 | INC B | Increment B by one. | ||
D8D9 | SLA A | Shift A left two positions (with carry). | ||
D8DB | SLA A | |||
D8DD | ADD A,B | A+=B. | ||
D8DE | LD ($D86F),A | Write A to *D86F. | ||
D8E1 | RET | Return. |
Prev: D8A2 | Up: Map | Next: D8E2 |