![]()  | 
Routines | 
| Prev: 6837 | Up: Map | Next: 68A0 | 
| 
 
Used by the routine at CreateWindow.
 
 | 
||||
| DisplayPlayerLives | 687B | LD A,($5E3D) | Return if Player_Lives is zero. | |
| 687E | AND A | |||
| 687F | RET Z | |||
| 6880 | LD B,A | B=Player_Lives. | ||
| 6881 | LD HL,$BC08 | HL=BC08. | ||
| 6884 | XOR A | Write 00 to 5E41. | ||
| 6885 | LD ($5E41),A | |||
| DisplayPlayerLives_Loop | 6888 | LD DE,$7CD6 | DE=SpriteCar_1. | |
| 688B | CALL DisplayPlayerLives_Print | Call DisplayPlayerLives_Print. | ||
| 688E | DJNZ DisplayPlayerLives_Loop | Decrease counter by one and loop back to DisplayPlayerLives_Loop until counter is zero. | ||
| 6890 | RET | Return. | ||
| 
 
Print the player sprite.
 
 | 
||||
| DisplayPlayerLives_Print | 6891 | PUSH BC | Stash BC and HL on the stack. | |
| 6892 | PUSH HL | |||
| 6893 | CALL FindActorSpriteAndUpdate_0 | Call FindActorSpriteAndUpdate_0. | ||
| 6896 | CALL $714C | Call 714C. | ||
| 6899 | POP HL | Restore HL and BC from the stack. | ||
| 689A | POP BC | |||
| 
 
Move onto the next life "slot".
 
 | 
||||
| 689B | LD A,L | L=L + 10. | ||
| 689C | ADD A,$10 | |||
| 689E | LD L,A | |||
| 689F | RET | Return. | ||
| 
 
View the equivalent code in; 
 
 | 
||||
| Prev: 6837 | Up: Map | Next: 68A0 |