![]() |
Routines |
Prev: 53238 | Up: Map | Next: 53386 |
Used by the routine at GoldfishGame.
|
||||
Fill the air gauge back up to maximum.
|
||||
GoldfishGame_RefillOxygen | 53339 | LD A,19 | Write 19 to *GoldfishGame_OxygenLevel. | |
53341 | LD (54078),A | |||
53344 | CALL GoldfishGame_PrintAirBar | Call GoldfishGame_PrintAirBar. | ||
53347 | LD B,10 | B=10. | ||
GoldfishGame_RefillOxygen_0 | 53349 | PUSH BC | Stash BC on the stack. | |
53350 | LD A,21 | A=21. | ||
53352 | LD C,254 | C=254. | ||
53354 | LD B,255 | B=255. | ||
53356 | OUT (C),A | |||
53358 | CALL UpdateAnimationCounter | Call UpdateAnimationCounter. | ||
53361 | LD B,A | B=A. | ||
GoldfishGame_RefillOxygen_1 | 53362 | DJNZ GoldfishGame_RefillOxygen_1 | Decrease counter by one and loop back to GoldfishGame_RefillOxygen_1 until counter is zero. | |
53364 | CALL UpdateAnimationCounter | Call UpdateAnimationCounter. | ||
53367 | LD B,A | B=A. | ||
GoldfishGame_RefillOxygen_2 | 53368 | LD A,5 | A=5. | |
53370 | PUSH BC | Stash BC on the stack. | ||
53371 | LD C,254 | C=254. | ||
53373 | LD B,255 | B=255. | ||
53375 | OUT (C),A | |||
53377 | POP BC | Restore BC from the stack. | ||
53378 | DJNZ GoldfishGame_RefillOxygen_2 | Decrease counter by one and loop back to GoldfishGame_RefillOxygen_2 until counter is zero. | ||
53380 | POP BC | Restore BC from the stack. | ||
53381 | DJNZ GoldfishGame_RefillOxygen_0 | Decrease counter by one and loop back to GoldfishGame_RefillOxygen_0 until counter is zero. | ||
53383 | JP GoldfishGame_GameLoop | Jump to GoldfishGame_GameLoop. |
Prev: 53238 | Up: Map | Next: 53386 |