Prev: 91C1 Up: Map Next: 923A
91E8: Print player 2 score area or high score on status line.
In 2-player mode, prints player 2's score. In 1-player mode, prints the high score for the current starting bridge.
print_player_2_score_area 91E8 LD A,$01 Open channel 1 (upper screen).
91EA CALL $1601
91ED LD A,$16 AT 1,21
91EF RST $10
91F0 LD A,$01
91F2 RST $10
91F3 LD A,$15
91F5 RST $10
91F6 LD A,($923A) If 2-player mode, jump to print_score_player_2 to print player 2 score.
91F9 BIT 0,A
91FB JP NZ,print_score_player_2
91FE LD A,$10 INK WHITE
9200 RST $10
9201 LD A,$07
9203 RST $10
9204 LD BC,$0006 Select high score for current bridge: offset = (game_mode AND $FE) * 3 = bridge_index * 6 (6 bytes per entry). Print 6-digit score.
9207 LD HL,$90C8
920A LD A,($923A)
920D AND $FE
920F LD E,A
9210 LD A,($923A)
9213 AND $FE
9215 SLA A
9217 SLA A
9219 SUB E
921A LD D,$00
921C LD E,A
921D ADD HL,DE
921E EX DE,HL
921F CALL $203C
9222 LD A,"0" Print trailing '0' after score.
9224 RST $10
9225 LD A,$16 AT 1,18
9227 RST $10
9228 LD A,$01
922A RST $10
922B LD A,$12
922D RST $10
922E LD A,"H" Print "HI" label.
9230 RST $10
9231 LD A,"I"
9233 RST $10
9234 LD A,$02 Switch to channel 2 (main screen).
9236 CALL $1601
9239 RET
Prev: 91C1 Up: Map Next: 923A