| Prev: 93BE | Up: Map | Next: 940A |
93F2: Check if player 2 score beats player 1 score.
|
For 2-player games, compares scores and copies player 2 score to player 1 slot if higher. This ensures the best score from either player is compared against the high score.
|
||||
| check_player2_high_score | 93F2 | LD HL,$90BC | Compare player 1 score (state_score_player_1_low) with player 2 score (state_score_player_2_low). | |
| 93F5 | LD DE,$90C2 | |||
| 93F8 | CALL compare_scores | |||
| 93FB | CP $FF | Return if player 2 score is not greater. | ||
| 93FD | RET NZ | |||
| 93FE | LD HL,$90C2 | Copy player 2 score to player 1 score slot (6 bytes). | ||
| 9401 | LD DE,$90BC | |||
| 9404 | LD BC,$0006 | |||
| 9407 | LDIR | |||
| 9409 | RET | |||
| Prev: 93BE | Up: Map | Next: 940A |