Prev: C5EB Up: Map Next: C622
C5F6: Player shot a dueller after they drew, so award a bonus.
Used by the routine at C58B.
Input
IX Pointer to dueller data
Print_BonusScore C5F6 LD A,(IX+$02) Take the time left for the dueller to shoot (00 to 20).
C5F9 SRL A Halve the value to give a score (divided by 100).
C5FB CP $09 Set the carry flag if it's over 9.
C5FD LD E,(IX+$04) Get the location to print the score.
C600 LD D,(IX+$05)
C603 JR NC,Duel_Points If the score is higher than 9, display "EXTRA" instead.
C605 OR $01 Set bit 1 to denote a bonus.
Displays The Bonus Score Text
Print_BonusScore_0 C607 LD (IX+$07),A Stores the ASCII representation of the number at Duel_Bonus_Text (it adds ASCII "0") so for example 1 ends up being 1 + 30 = 31 (e.g. "1" in ASCII).
C60A LD HL,$C41D
C60D ADD A,$30
C60F LD (HL),A
C610 LD BC,$2928 Print using Print_TwoToneText_Alias.
Value Ink Paper Bright
29 01 05 00
28 00 05 00
C613 CALL Print_TwoToneText_Alias
C616 CALL Scoring_Prep_Alias
C619 CALL Draw_Score_Alias
C61C INC (IX+$09) Move onto the next state.
C61F JP $C583 Jump to C583.
Prev: C5EB Up: Map Next: C622