![]() |
Routines |
| Prev: 26679 | Up: Map | Next: 26784 |
|
Used by the routine at CreateWindow.
|
||||
| DisplayPlayerLives | 26747 | LD A,(24125) | Return if Player_Lives is zero. | |
| 26750 | AND A | |||
| 26751 | RET Z | |||
| 26752 | LD B,A | B=Player_Lives. | ||
| 26753 | LD HL,48136 | HL=48136. | ||
| 26756 | XOR A | Write 0 to 24129. | ||
| 26757 | LD (24129),A | |||
| DisplayPlayerLives_Loop | 26760 | LD DE,31958 | DE=SpriteCar_1. | |
| 26763 | CALL DisplayPlayerLives_Print | Call DisplayPlayerLives_Print. | ||
| 26766 | DJNZ DisplayPlayerLives_Loop | Decrease counter by one and loop back to DisplayPlayerLives_Loop until counter is zero. | ||
| 26768 | RET | Return. | ||
|
Print the player sprite.
|
||||
| DisplayPlayerLives_Print | 26769 | PUSH BC | Stash BC and HL on the stack. | |
| 26770 | PUSH HL | |||
| 26771 | CALL FindActorSpriteAndUpdate_0 | Call FindActorSpriteAndUpdate_0. | ||
| 26774 | CALL 29004 | Call 29004. | ||
| 26777 | POP HL | Restore HL and BC from the stack. | ||
| 26778 | POP BC | |||
|
Move onto the next life "slot".
|
||||
| 26779 | LD A,L | L=L + 16. | ||
| 26780 | ADD A,16 | |||
| 26782 | LD L,A | |||
| 26783 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 26679 | Up: Map | Next: 26784 |