| Prev: 940A | Up: Map | Next: 9430 |
9423: Load pointer to current player's lives counter.
|
Returns HL pointing to player 1's lives by default. If current player is player 2, adjusts to point to player 2's lives instead.
|
||||||||
| ld_lives | 9423 | LD HL,$923B | Load address of player 1 lives (state_lives_player_1) into HL. | |||||
| 9426 | LD A,($923D) | If current player is not PLAYER_2, return with player 1 address. | ||||||
| 9429 | CP $02 | |||||||
| 942B | RET NZ | Otherwise load player 2 lives address (state_lives_player_2) and return. | ||||||
| 942C | LD HL,$923C | |||||||
| 942F | RET | |||||||
| Prev: 940A | Up: Map | Next: 9430 |