852A: CPU driver
cpu_driver |
852A |
LD HL,($A26C) |
|
852D |
PUSH HL |
|
852E |
LD DE,$0105 |
|
8531 |
SBC HL,DE |
|
8533 |
POP HL |
|
8534 |
LD A,$09 |
|
8536 |
JR NC,cd_check_speed |
|
8538 |
LD DE,$00F5 |
|
853B |
SBC HL,DE |
|
853D |
LD A,$0A |
|
853F |
JR C,cd_check_speed |
|
8541 |
LD A,$08 |
cd_check_speed |
8543 |
LD C,A |
|
8544 |
LD HL,($A24A) |
|
8547 |
LD DE,$0096 |
|
854A |
SBC HL,DE |
|
854C |
LD A,($A253) |
|
854F |
SBC A,$00 |
|
8551 |
JR NZ,cd_set_input |
|
8553 |
SET 4,C |
cd_set_input |
8555 |
LD A,C |
|
8556 |
LD ($A0D5),A |
|
8559 |
CALL read_map |
|
855C |
CALL spawn_cars |
|
855F |
CALL cycle_counters |
|
8562 |
CALL main_loop_10 |
|
8565 |
CALL scroll_horizon |
|
8568 |
CALL main_loop_12 |
|
856B |
CALL main_loop_13 |
|
856E |
CALL main_loop_14 |
|
8571 |
CALL tunnel_setup |
|
8574 |
CALL spawn_hazards |
|
8577 |
CALL main_loop_18 |
|
857A |
CALL main_loop_20 |
|
857D |
CALL draw_hazards |
|
8580 |
CALL move_hero_car |
|
8583 |
CALL check_collisions |
|
8586 |
CALL main_loop_23 |
|
8589 |
JP main_loop_24 |