9D51: Update scoreboard and flashing lights
bonus_string |
9D51 |
DEFM " ",$A0 |
hi |
9D57 |
DEFM "H",$C9 |
lo |
9D59 |
DEFM "L",$CF |
stage |
9D5B |
DEFM "STAGE " |
stage_n |
9D61 |
DEFB $A0 |
update_scoreboard |
9D62 |
LD A,($A223) |
|
9D65 |
AND A |
|
9D66 |
JR NZ,us_bonus_start |
|
9D68 |
LD A,($8007) |
|
9D6B |
ADD A,$B0 |
|
9D6D |
LD ($9D61),A |
|
9D70 |
LD ($A223),A |
|
9D73 |
LD DE,$4486 |
|
9D76 |
LD HL,$9D5B |
|
9D79 |
CALL draw_string |
us_bonus_start |
9D7C |
LD A,($A22C) |
|
9D7F |
AND A |
|
9D80 |
JR Z,us_bonus_countdown |
|
9D82 |
XOR A |
|
9D83 |
LD ($A22C),A |
|
9D86 |
LD HL,$4168 |
|
9D89 |
LD B,$07 |
|
9D8B |
LD D,H |
|
9D8C |
LD E,L |
bonus_string_0 |
9D8D |
LD C,L |
|
9D8E |
LD (HL),A |
|
9D8F |
INC L |
|
9D90 |
LD (HL),A |
|
9D91 |
INC L |
|
9D92 |
LD (HL),A |
|
9D93 |
INC L |
|
9D94 |
LD (HL),A |
|
9D95 |
INC L |
|
9D96 |
LD (HL),A |
|
9D97 |
LD L,C |
|
9D98 |
INC H |
|
9D99 |
DJNZ bonus_string_0 |
|
9D9B |
LD HL,$0000 |
|
9D9E |
CALL draw_string |
|
9DA1 |
LD A,$08 |
|
9DA3 |
JR us_bonus_set_counter |
us_bonus_countdown |
9DA5 |
LD A,($A22D) |
|
9DA8 |
AND A |
|
9DA9 |
JR Z,us_gear |
|
9DAB |
DEC A |
us_bonus_set_counter |
9DAC |
LD ($A22D),A |
|
9DAF |
SRL A |
|
9DB1 |
LD C,A |
|
9DB2 |
JR Z,bonus_string_1 |
|
9DB4 |
LD C,$42 |
|
9DB6 |
JR C,bonus_string_1 |
|
9DB8 |
LD C,$46 |
bonus_string_1 |
9DBA |
LD HL,$5868 |
|
9DBD |
LD B,$05 |
bonus_string_2 |
9DBF |
LD (HL),C |
|
9DC0 |
INC L |
|
9DC1 |
DJNZ bonus_string_2 |
us_gear |
9DC3 |
LD HL,$A174 |
|
9DC6 |
LD A,($A253) |
|
9DC9 |
CP (HL) |
|
9DCA |
JR Z,us_lights |
|
9DCC |
LD (HL),A |
|
9DCD |
LD DE,$448E |
|
9DD0 |
LD HL,$9D59 |
|
9DD3 |
AND A |
|
9DD4 |
JR Z,bonus_string_3 |
|
9DD6 |
LD HL,$9D57 |
bonus_string_3 |
9DD9 |
CALL draw_string |
us_lights |
9DDC |
LD A,($A22E) |
|
9DDF |
LD C,A |
|
9DE0 |
LD A,($A235) |
|
9DE3 |
AND C |
|
9DE4 |
JR Z,plot_turbos_and_scores |
|
9DE6 |
LD HL,$5820 |
|
9DE9 |
CALL toggle_light_brightness |
|
9DEC |
LD HL,$583B |
|
9DEF |
CALL toggle_light_brightness |
|
9DF2 |
JR plot_turbos_and_scores |