diff options
author | B. Watson <yalhcru@gmail.com> | 2016-08-29 19:49:06 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-08-29 19:49:06 -0400 |
commit | c35d85e5b1a014193ecc34a249e5a20aed729779 (patch) | |
tree | a5ad303074af4420932d5c3d9b62c3b474c9b2a5 /jumpmanjr.html | |
parent | 26b42926816662ce878e814938a1ebc0aa1847c2 (diff) | |
download | jumpmanjr-c35d85e5b1a014193ecc34a249e5a20aed729779.tar.gz |
add README and jumpmanjr.html
Diffstat (limited to 'jumpmanjr.html')
-rw-r--r-- | jumpmanjr.html | 7371 |
1 files changed, 7371 insertions, 0 deletions
diff --git a/jumpmanjr.html b/jumpmanjr.html new file mode 100644 index 0000000..1976303 --- /dev/null +++ b/jumpmanjr.html @@ -0,0 +1,7371 @@ +<html> +<head> +<title>~/atari800_devel/jumpman_jr/jumpmanjr.dasm.html</title> +<meta name="Generator" content="Vim/7.4"> +<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +</head> +<body bgcolor="#000000" text="#ffffff"> +<pre> +<font color="#8080ff">; da65 V2.15 - Git 104f898</font> +<font color="#8080ff">; Created: 2016-08-29 15:45:14</font> +<font color="#8080ff">; Input file: jumpmanjr.rom</font> +<font color="#8080ff">; Page: 1</font> + + + .<font color="#00ffff">setcpu</font> <font color="#ff6060">"6502"</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L0000</font> :=<font color="#ff40ff"> $0000</font> +<font color="#00ffff">dm_ypos</font> :=<font color="#ff40ff"> $0054 </font> <font color="#8080ff">; see draw_map and level_maps.txt</font> +<font color="#00ffff">dm_xpos</font> :=<font color="#ff40ff"> $0055 </font> <font color="#8080ff">; see draw_map and level_maps.txt</font> +<font color="#ff40ff">SAVMSC</font> :=<font color="#ff40ff"> $0058 </font> <font color="#8080ff">; OS's idea of the start of screen memory [redundant to set here?]</font> +<font color="#00ffff">dm_count</font> :=<font color="#ff40ff"> $00BE </font> <font color="#8080ff">; graphics object definition is this long</font> +<font color="#00ffff">dm_length</font> :=<font color="#ff40ff"> $00BF </font> <font color="#8080ff">; see draw_map and level_maps.txt</font> +<font color="#00ffff">dm_progctr</font> :=<font color="#ff40ff"> $00C0 </font> <font color="#8080ff">; see draw_map and level_maps.txt</font> +<font color="#00ffff">dm_objptr</font> :=<font color="#ff40ff"> $00C2 </font> <font color="#8080ff">; see draw_map and level_maps.txt</font> +<font color="#00ffff">dm_screen_addr</font> :=<font color="#ff40ff"> $00C4 </font> <font color="#8080ff">; points to byte to write gfx data to</font> +<font color="#00ffff">dm_x_with_offset</font>:=<font color="#ff40ff"> $00C6 </font> <font color="#8080ff">; graphics object X offset, plus dm_xpos</font> +<font color="#00ffff">dm_y_with_offset</font>:=<font color="#ff40ff"> $00C7 </font> <font color="#8080ff">; graphics object Y offset, plus dm_xpos</font> +<font color="#00ffff">dm_delta_x</font> :=<font color="#ff40ff"> $00C9 </font> <font color="#8080ff">; see draw_map and level_maps.txt</font> +<font color="#00ffff">dm_delta_y</font> :=<font color="#ff40ff"> $00CA </font> <font color="#8080ff">; see draw_map and level_maps.txt</font> +<font color="#00ffff">zp_temp1</font> :=<font color="#ff40ff"> $00CB </font> <font color="#8080ff">; used for (zp,y) addressing, also for checking console keys in vblank_imm_isr</font> +<font color="#00ffff">FR1</font> :=<font color="#ff40ff"> $00E0</font> +<font color="#ff40ff">VDSLST</font> :=<font color="#ff40ff"> $0200</font> +<font color="#ff40ff">VKEYBD</font> :=<font color="#ff40ff"> $0208</font> +<font color="#00ffff">VKEYBD_hi</font> :=<font color="#ff40ff"> $0209</font> +<font color="#ff40ff">SDMCTL</font> :=<font color="#ff40ff"> $022F</font> +<font color="#ff40ff">GPRIOR</font> :=<font color="#ff40ff"> $026F</font> +<font color="#ff40ff">PCOLR0</font> :=<font color="#ff40ff"> $02C0</font> +<font color="#ff40ff">PCOLR1</font> :=<font color="#ff40ff"> $02C1</font> +<font color="#ff40ff">PCOLR2</font> :=<font color="#ff40ff"> $02C2</font> +<font color="#ff40ff">PCOLR3</font> :=<font color="#ff40ff"> $02C3</font> +<font color="#ff40ff">COLOR0</font> :=<font color="#ff40ff"> $02C4</font> +<font color="#ff40ff">COLOR1</font> :=<font color="#ff40ff"> $02C5</font> +<font color="#ff40ff">COLOR2</font> :=<font color="#ff40ff"> $02C6</font> +<font color="#ff40ff">COLOR3</font> :=<font color="#ff40ff"> $02C7</font> +<font color="#ff40ff">COLOR4</font> :=<font color="#ff40ff"> $02C8</font> +<font color="#ff40ff">CHBAS</font> :=<font color="#ff40ff"> $02F4</font> +<font color="#00ffff">jiffy_timer_1</font> :=<font color="#ff40ff"> $061A </font> <font color="#8080ff">; gets incremented every frame</font> +<font color="#00ffff">jiffy_timer_2</font> :=<font color="#ff40ff"> $061B </font> <font color="#8080ff">; gets incremented every frame</font> +<font color="#00ffff">speed_jiffy_timer</font>:=<font color="#ff40ff"> $061E </font> <font color="#8080ff">; counts 0..initial_speed</font> +<font color="#00ffff">player_speed</font> :=<font color="#ff40ff"> $0624</font> +<font color="#00ffff">initial_speed</font> :=<font color="#ff40ff"> $0625</font> +<font color="#00ffff">bonus_jiffy_timer</font>:=<font color="#ff40ff"> $0626 </font> <font color="#8080ff">; gets incremented every frame when playing a level, bonus-=100 when this reaches 0</font> +<font color="#00ffff">playing_level</font> :=<font color="#ff40ff"> $0627 </font> <font color="#8080ff">; 0 = not playing, non-0 = playing</font> +<font color="#00ffff">sfx_lock</font> :=<font color="#ff40ff"> $062F </font> <font color="#8080ff">; lets other code know cue_sfx is still running? not 100% sure</font> +<font color="#00ffff">player_delta_x</font> :=<font color="#ff40ff"> $0630 </font> <font color="#8080ff">; amount to move jumpman this frame (1 or $FF aka -1)</font> +<font color="#00ffff">player_delta_y</font> :=<font color="#ff40ff"> $0631 </font> <font color="#8080ff">; amount to move jumpman this frame (1 or $FF aka -1)</font> +<font color="#00ffff">joystick_disabled</font>:=<font color="#ff40ff"> $0632 </font> <font color="#8080ff">; nonzero = jumpman can't move (title screen or materialization, etc)</font> +<font color="#00ffff">joystick_state</font> :=<font color="#ff40ff"> $0633 </font> <font color="#8080ff">; last PORTA read (bottom 4 bits), or 0 if joystick_disabled</font> +<font color="#00ffff">trigger_disabled</font>:=<font color="#ff40ff"> $0634 </font> <font color="#8080ff">; nonzero = jumpman can't jump (he's already jumping, or title screen or materialization, etc)</font> +<font color="#00ffff">trigger_state</font> :=<font color="#ff40ff"> $0635 </font> <font color="#8080ff">; last TRIG0 read (0 = pressed)</font> +<font color="#00ffff">sfx_ptr</font> :=<font color="#ff40ff"> $063C</font> +<font color="#00ffff">sfx_slot_tempo</font> :=<font color="#ff40ff"> $063E </font> <font color="#8080ff">; tempo of this sfx</font> +<font color="#00ffff">sfx_slot_timer</font> :=<font color="#ff40ff"> $063F</font> +<font color="#00ffff">sfx_slot_duration</font>:=<font color="#ff40ff"> $0646</font> +<font color="#00ffff">sfx_slot_freq</font> :=<font color="#ff40ff"> $0647</font> +<font color="#00ffff">sfx_slot_curpos</font> :=<font color="#ff40ff"> $064E </font> <font color="#8080ff">; address we've got to so far, playing this sfx</font> +<font color="#00ffff">sfx_tempo_tmp</font> :=<font color="#ff40ff"> $0661 </font> <font color="#8080ff">; ??</font> +<font color="#00ffff">dlist_shadow_lo</font> :=<font color="#ff40ff"> $06AC </font> <font color="#8080ff">; stored in DLISTL if dlist_shadow_hi nonzero</font> +<font color="#00ffff">dlist_shadow_hi</font> :=<font color="#ff40ff"> $06AD </font> <font color="#8080ff">; stored in DLISTH if nonzero</font> +<font color="#00ffff">dli_vec_shadow_lo</font>:=<font color="#ff40ff"> $06AE </font> <font color="#8080ff">; stored in VDSLST if dli_vec_shadow_hi nonzero</font> +<font color="#00ffff">dli_vec_shadow_hi</font>:=<font color="#ff40ff"> $06AF </font> <font color="#8080ff">; stored in VDSLST if nonzero</font> +<font color="#00ffff">collision_save</font> :=<font color="#ff40ff"> $06B0 </font> <font color="#8080ff">; save_collisions copies GTIA collision regs $D000-$d00f here</font> +<font color="#00ffff">option_key_vec</font> :=<font color="#ff40ff"> $06C0 </font> <font color="#8080ff">; vblank_imm_isr jumps thru here if option key pressed</font> +<font color="#00ffff">select_key_vec</font> :=<font color="#ff40ff"> $06C2 </font> <font color="#8080ff">; vblank_imm_isr jumps thru here if select key pressed</font> +<font color="#00ffff">start_key_vec</font> :=<font color="#ff40ff"> $06C4 </font> <font color="#8080ff">; vblank_imm_isr jumps thru here if start key pressed</font> +<font color="#00ffff">option_key_enabled</font>:=<font color="#ff40ff"> $06C6 </font> <font color="#8080ff">; non-zero = jump through start_key_vec if start key pressed (checked by vblank_imm_isr)</font> +<font color="#00ffff">select_key_enabled</font>:=<font color="#ff40ff"> $06C7 </font> <font color="#8080ff">; non-zero = jump through start_key_vec if start key pressed (checked by vblank_imm_isr)</font> +<font color="#00ffff">start_key_enabled</font>:=<font color="#ff40ff"> $06C8 </font> <font color="#8080ff">; non-zero = jump through start_key_vec if start key pressed (checked by vblank_imm_isr)</font> +<font color="#00ffff">L06DF</font> :=<font color="#ff40ff"> $06DF</font> +<font color="#00ffff">L06E0</font> :=<font color="#ff40ff"> $06E0</font> +<font color="#00ffff">L06E3</font> :=<font color="#ff40ff"> $06E3</font> +<font color="#00ffff">L06E6</font> :=<font color="#ff40ff"> $06E6</font> +<font color="#00ffff">randomizer_mode</font> :=<font color="#ff40ff"> $06F3 </font> <font color="#8080ff">; only after beating levels 1-12 in order</font> +<font color="#00ffff">number_of_players</font>:=<font color="#ff40ff"> $06F4 </font> <font color="#8080ff">; 0 for single-player game, otherwise range 1-3 (2 to 4 players)</font> +<font color="#00ffff">level</font> :=<font color="#ff40ff"> $06F6</font> +<font color="#00ffff">speed_value</font> :=<font color="#ff40ff"> $06F9 </font> <font color="#8080ff">; decoded speed (1-8)</font> +<font color="#00ffff">current_player</font> :=<font color="#ff40ff"> $06FE </font> <font color="#8080ff">; *think* this ranges 1-4, not 0-3</font> +<font color="#00ffff">score</font> :=<font color="#ff40ff"> $0700</font> +<font color="#00ffff">lives</font> :=<font color="#ff40ff"> $070A</font> +<font color="#00ffff">work_level_desc</font> :=<font color="#ff40ff"> $0780 </font> <font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">work_level_sub0</font> :=<font color="#ff40ff"> $0782 </font> <font color="#8080ff">; a subroutine</font> +<font color="#00ffff">work_level_sub1</font> :=<font color="#ff40ff"> $0784 </font> <font color="#8080ff">; a subroutine</font> +<font color="#00ffff">work_level_sub2</font> :=<font color="#ff40ff"> $0786 </font> <font color="#8080ff">; a subroutine</font> +<font color="#00ffff">work_level_sub3</font> :=<font color="#ff40ff"> $0788 </font> <font color="#8080ff">; a subroutine</font> +<font color="#00ffff">work_level_num_bombs</font>:=<font color="#ff40ff"> $078A </font> <font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">work_level_bullet_chance</font>:=<font color="#ff40ff"> $078B </font> <font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">work_level_y_start</font>:=<font color="#ff40ff"> $078C </font> <font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">work_level_x_start</font>:=<font color="#ff40ff"> $078D </font> <font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">work_level_offs_14</font>:=<font color="#ff40ff"> $078E </font> <font color="#8080ff">; points to $0600</font> +<font color="#00ffff">work_level_points_per_bomb</font>:=<font color="#ff40ff"> $0790 </font> <font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">work_level_time_bonus</font>:=<font color="#ff40ff"> $0791 </font> <font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">work_level_offs_19</font>:=<font color="#ff40ff"> $0793 </font> <font color="#8080ff">; always $00</font> +<font color="#00ffff">work_level_unkn_table0</font>:=<font color="#ff40ff"> $0794 </font> <font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">work_level_map0</font> :=<font color="#ff40ff"> $0796 </font> <font color="#8080ff">; map data</font> +<font color="#00ffff">work_level_map1</font> :=<font color="#ff40ff"> $0798 </font> <font color="#8080ff">; map data</font> +<font color="#00ffff">work_level_map2</font> :=<font color="#ff40ff"> $079A </font> <font color="#8080ff">; map data</font> +<font color="#00ffff">work_level_unkn_table1</font>:=<font color="#ff40ff"> $079C </font> <font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">work_level_offs_30</font>:=<font color="#ff40ff"> $079E </font> <font color="#8080ff">; always $0000</font> +<font color="#00ffff">work_level_sub4</font> :=<font color="#ff40ff"> $07A0 </font> <font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">work_level_sub5</font> :=<font color="#ff40ff"> $07A2 </font> <font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">work_level_sub6</font> :=<font color="#ff40ff"> $07A4 </font> <font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">work_level_sub_eol</font>:=<font color="#ff40ff"> $07A6 </font> <font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">work_level_offs_40</font>:=<font color="#ff40ff"> $07A8 </font> <font color="#8080ff">; all zeroes</font> +<font color="#00ffff">work_level_offs_46</font>:=<font color="#ff40ff"> $07AE </font> <font color="#8080ff">; unknown</font> +<font color="#00ffff">work_level_offs_55</font>:=<font color="#ff40ff"> $07B7 </font> <font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">work_level_offs_58</font>:=<font color="#ff40ff"> $07BA </font> <font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">work_level_offs_60</font>:=<font color="#ff40ff"> $07BC </font> <font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">cur_level_desc</font> :=<font color="#ff40ff"> $07C0 </font> <font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">cur_level_sub0</font> :=<font color="#ff40ff"> $07C2 </font> <font color="#8080ff">; a subroutine</font> +<font color="#00ffff">cur_level_sub1</font> :=<font color="#ff40ff"> $07C4 </font> <font color="#8080ff">; a subroutine</font> +<font color="#00ffff">cur_level_sub2</font> :=<font color="#ff40ff"> $07C6 </font> <font color="#8080ff">; a subroutine</font> +<font color="#00ffff">cur_level_sub3</font> :=<font color="#ff40ff"> $07C8 </font> <font color="#8080ff">; a subroutine</font> +<font color="#00ffff">cur_level_num_bombs</font>:=<font color="#ff40ff"> $07CA </font> <font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">cur_level_bullet_chance</font>:=<font color="#ff40ff"> $07CB </font> <font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">cur_level_y_start</font>:=<font color="#ff40ff"> $07CC </font> <font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">cur_level_x_start</font>:=<font color="#ff40ff"> $07CD </font> <font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">cur_level_offs_14</font>:=<font color="#ff40ff"> $07CE </font> <font color="#8080ff">; points to $0600</font> +<font color="#00ffff">cur_level_points_per_bomb</font>:=<font color="#ff40ff"> $07D0 </font> <font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">cur_level_time_bonus</font>:=<font color="#ff40ff"> $07D1 </font> <font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">cur_level_offs_19</font>:=<font color="#ff40ff"> $07D3 </font> <font color="#8080ff">; always $00</font> +<font color="#00ffff">cur_level_unkn_table0</font>:=<font color="#ff40ff"> $07D4 </font> <font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">cur_level_map0</font> :=<font color="#ff40ff"> $07D6 </font> <font color="#8080ff">; map data</font> +<font color="#00ffff">cur_level_map1</font> :=<font color="#ff40ff"> $07D8 </font> <font color="#8080ff">; map data</font> +<font color="#00ffff">cur_level_map2</font> :=<font color="#ff40ff"> $07DA </font> <font color="#8080ff">; map data</font> +<font color="#00ffff">cur_level_unkn_table1</font>:=<font color="#ff40ff"> $07DC </font> <font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">cur_level_offs_30</font>:=<font color="#ff40ff"> $07DE </font> <font color="#8080ff">; always $0000</font> +<font color="#00ffff">cur_level_sub4</font> :=<font color="#ff40ff"> $07E0 </font> <font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">cur_level_sub5</font> :=<font color="#ff40ff"> $07E2 </font> <font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">cur_level_sub6</font> :=<font color="#ff40ff"> $07E4 </font> <font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">cur_level_sub_eol</font>:=<font color="#ff40ff"> $07E6 </font> <font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">cur_level_offs_40</font>:=<font color="#ff40ff"> $07E8 </font> <font color="#8080ff">; all zeroes</font> +<font color="#00ffff">cur_level_offs_46</font>:=<font color="#ff40ff"> $07EE </font> <font color="#8080ff">; unknown</font> +<font color="#00ffff">cur_level_offs_55</font>:=<font color="#ff40ff"> $07F7 </font> <font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">cur_level_offs_58</font>:=<font color="#ff40ff"> $07FA </font> <font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">cur_level_offs_60</font>:=<font color="#ff40ff"> $07FC </font> <font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">L0830</font> :=<font color="#ff40ff"> $0830</font> +<font color="#00ffff">game_display_list</font>:=<font color="#ff40ff"> $0881 </font> <font color="#8080ff">; display list for game board</font> +<font color="#00ffff">pm_memory</font> :=<font color="#ff40ff"> $2800</font> +<font color="#00ffff">HPOSP0_minus_two</font>:=<font color="#ff40ff"> $CFFE</font> +<font color="#ff40ff">HPOSP3</font> :=<font color="#ff40ff"> $D003</font> +<font color="#ff40ff">HPOSM0</font> :=<font color="#ff40ff"> $D004</font> +<font color="#ff40ff">HPOSM1</font> :=<font color="#ff40ff"> $D005</font> +<font color="#ff40ff">HPOSM2</font> :=<font color="#ff40ff"> $D006</font> +<font color="#ff40ff">HPOSM3</font> :=<font color="#ff40ff"> $D007</font> +<font color="#ff40ff">SIZEP2</font> :=<font color="#ff40ff"> $D00A</font> +<font color="#ff40ff">SIZEP3</font> :=<font color="#ff40ff"> $D00B</font> +<font color="#ff40ff">SIZEM</font> :=<font color="#ff40ff"> $D00C</font> +<font color="#ff40ff">TRIG0</font> :=<font color="#ff40ff"> $D010</font> +<font color="#ff40ff">GRAFM</font> :=<font color="#ff40ff"> $D011</font> +<font color="#ff40ff">COLPM0</font> :=<font color="#ff40ff"> $D012</font> +<font color="#ff40ff">COLPM1</font> :=<font color="#ff40ff"> $D013</font> +<font color="#ff40ff">COLPF0</font> :=<font color="#ff40ff"> $D016</font> +<font color="#ff40ff">COLPF1</font> :=<font color="#ff40ff"> $D017</font> +<font color="#ff40ff">COLPF2</font> :=<font color="#ff40ff"> $D018</font> +<font color="#ff40ff">COLPF3</font> :=<font color="#ff40ff"> $D019</font> +<font color="#ff40ff">COLBK</font> :=<font color="#ff40ff"> $D01A</font> +<font color="#ff40ff">PRIOR</font> :=<font color="#ff40ff"> $D01B</font> +<font color="#ff40ff">GRACTL</font> :=<font color="#ff40ff"> $D01D</font> +<font color="#ff40ff">HITCLR</font> :=<font color="#ff40ff"> $D01E</font> +<font color="#ff40ff">CONSOL</font> :=<font color="#ff40ff"> $D01F</font> +<font color="#00ffff">AUDF1_minus_two</font> :=<font color="#ff40ff"> $D1FE</font> +<font color="#00ffff">AUDF1_minus_one</font> :=<font color="#ff40ff"> $D1FF</font> +<font color="#ff40ff">AUDF1</font> :=<font color="#ff40ff"> $D200</font> +<font color="#ff40ff">AUDC1</font> :=<font color="#ff40ff"> $D201</font> +<font color="#ff40ff">AUDF2</font> :=<font color="#ff40ff"> $D202</font> +<font color="#ff40ff">AUDC2</font> :=<font color="#ff40ff"> $D203</font> +<font color="#ff40ff">AUDF3</font> :=<font color="#ff40ff"> $D204</font> +<font color="#ff40ff">AUDC3</font> :=<font color="#ff40ff"> $D205</font> +<font color="#ff40ff">AUDF4</font> :=<font color="#ff40ff"> $D206</font> +<font color="#ff40ff">AUDC4</font> :=<font color="#ff40ff"> $D207</font> +<font color="#ff40ff">AUDCTL</font> :=<font color="#ff40ff"> $D208</font> +<font color="#ff40ff">KBCODE</font> :=<font color="#ff40ff"> $D209</font> +<font color="#ff40ff">RANDOM</font> :=<font color="#ff40ff"> $D20A</font> +<font color="#ff40ff">IRQEN</font> :=<font color="#ff40ff"> $D20E</font> +<font color="#ff40ff">SKCTL</font> :=<font color="#ff40ff"> $D20F</font> +<font color="#ff40ff">PORTA</font> :=<font color="#ff40ff"> $D300</font> +<font color="#ff40ff">DMACTL</font> :=<font color="#ff40ff"> $D400</font> +<font color="#ff40ff">DLISTL</font> :=<font color="#ff40ff"> $D402</font> +<font color="#ff40ff">DLISTH</font> :=<font color="#ff40ff"> $D403</font> +<font color="#ff40ff">HSCROL</font> :=<font color="#ff40ff"> $D404</font> +<font color="#ff40ff">PMBASE</font> :=<font color="#ff40ff"> $D407</font> +<font color="#ff40ff">CHBASE</font> :=<font color="#ff40ff"> $D409</font> +<font color="#ff40ff">WSYNC</font> :=<font color="#ff40ff"> $D40A</font> +<font color="#ff40ff">NMIEN</font> :=<font color="#ff40ff"> $D40E</font> +<font color="#ff40ff">SETVBV</font> :=<font color="#ff40ff"> $E45C</font> +<font color="#ff40ff">XITVBV</font> :=<font color="#ff40ff"> $E462</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; the entry point for parsing the level map and drawing graphics from it. see level_maps.txt.</font> +<font color="#00ffff">draw_map_jv</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">draw_map</font> <font color="#8080ff">; 8000 4C 49 80 LI.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8003</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">cue_sfx_lowprior</font> <font color="#8080ff">; 8003 4C 40 82 L@.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; setup to play sfx</font> +<font color="#00ffff">cue_sfx_jv</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">cue_sfx</font> <font color="#8080ff">; 8006 4C 55 82 LU.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; gets called after the level is drawn & the intro music stops, and also during the level (?)</font> +<font color="#00ffff">xxx_level_something_jv</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">xxx_level_something</font> <font color="#8080ff">; 8009 4C 00 86 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L800C</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">L8CBC</font> <font color="#8080ff">; 800C 4C BC 8C L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L800F</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">L867E</font> <font color="#8080ff">; 800F 4C 7E 86 L~.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; bottom 2 GR.1 lines on the game board</font> +<font color="#00ffff">update_status_window_jv</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">update_status_window</font> <font color="#8080ff">; 8012 4C 94 86 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; for some reason there are 2 copies of the display list, at $0800 and $0881</font> +<font color="#00ffff">setup_gameboard_dlist_jv</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">setup_gameboard_dlist</font> <font color="#8080ff">; 8015 4C 00 9B L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; setup to play whichever music is in A reg, using 5-byte sfx stuct</font> +<font color="#00ffff">cue_music_jv</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">cue_music</font> <font color="#8080ff">; 8018 4C 92 8F L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; called after level-intro music is finished playing</font> +<font color="#00ffff">enable_joystick_jv</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">enable_joystick</font> <font color="#8080ff">; 801B 4C 75 87 Lu.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; clear the gameboard screen memory (called before drawing a level, natch)</font> +<font color="#00ffff">clear_screen_mem_jv</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">clear_screen_mem</font> <font color="#8080ff">; 801E 4C 14 87 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; bonus -= 100;</font> +<font color="#00ffff">decrement_time_bonus_jv</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">decrement_time_bonus</font> <font color="#8080ff">; 8021 4C CE 8D L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">init_page_7_jv</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">init_page_7</font> <font color="#8080ff">; 8024 4C 5C 9A L\.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8027</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">L9AAA</font> <font color="#8080ff">; 8027 4C AA 9A L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L802A</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">LBA00</font> <font color="#8080ff">; 802A 4C 00 BA L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">level_finished_jv</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">level_finished</font> <font color="#8080ff">; 802D 4C 00 8E L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; just lost your last life</font> +<font color="#00ffff">crumble_gameboard_jv</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">crumble_gameboard</font> <font color="#8080ff">; 8030 4C 00 8D L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8033</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">L87A0</font> <font color="#8080ff">; 8033 4C A0 87 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8036</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">L8B23</font> <font color="#8080ff">; 8036 4C 23 8B L#.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8B2D</font> <font color="#8080ff">; 8039 4C 2D 8B L-.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L803C</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">L8AE0</font> <font color="#8080ff">; 803C 4C E0 8A L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; 3 unused jump vectors, all pointed to the same RTS</font> +<font color="#00ffff">unused_vecs</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">unused_vec_rts</font> <font color="#8080ff">; 803F 4C 48 80 LH.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">unused_vec_rts</font> <font color="#8080ff">; 8042 4C 48 80 LH.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">unused_vec_rts</font> <font color="#8080ff">; 8045 4C 48 80 LH.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; unused jump vectors point here</font> +<font color="#00ffff">unused_vec_rts</font>: + <font color="#00ff00">rts</font> <font color="#8080ff">; 8048 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; the entry point for parsing the level map and drawing graphics from it. see level_maps.txt. caller must set $C0/$C1 to the address of the map data. modders beware: bogus map data can & will cause infinite loops.</font> +<font color="#00ffff">draw_map</font>: + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8049 A0 00 ..</font> +<font color="#8080ff">; $C0/$C1 points to $A300 (level00_desc) on the first call</font> +<font color="#00ffff">dm_get_opcode</font>: + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_progctr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 804B B1 C0 ..</font> +<font color="#8080ff">; map opcodes: $FC = jump, $FF = end, $FD = set drawing direction, $FE = select graphics object</font> +<font color="#00ffff">dm_switch_opcode</font>: + <font color="#00ff00">cmp</font> <font color="#ff6060">#$FC</font> <font color="#8080ff">; 804D C9 FC ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">dm_draw_gfx</font> <font color="#8080ff">; 804F 90 3F .?</font> + <font color="#00ff00">beq</font> <font color="#00ffff">dm_jump</font> <font color="#8080ff">; 8051 F0 09 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$FD</font> <font color="#8080ff">; 8053 C9 FD ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">dm_delta</font> <font color="#8080ff">; 8055 F0 14 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$FE</font> <font color="#8080ff">; 8057 C9 FE ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">dm_obj</font> <font color="#8080ff">; 8059 F0 28 .(</font> +<font color="#8080ff">; handle gfx_end opcode</font> +<font color="#00ffff">dm_fallthru</font>: + <font color="#00ff00">rts</font> <font color="#8080ff">; 805B 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; handle gfx_jump opcode</font> +<font color="#00ffff">dm_jump</font>:<font color="#00ff00">iny</font> <font color="#8080ff">; 805C C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_progctr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 805D B1 C0 ..</font> + <font color="#00ff00">pha</font> <font color="#8080ff">; 805F 48 H</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8060 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_progctr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 8061 B1 C0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8063 85 C1 ..</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 8065 68 h</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; 8066 85 C0 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">draw_map</font> <font color="#8080ff">; 8068 4C 49 80 LI.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; handle gfx_delta opcode</font> +<font color="#00ffff">dm_delta</font>: + <font color="#00ff00">iny</font> <font color="#8080ff">; 806B C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_progctr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 806C B1 C0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_delta_x</font> <font color="#8080ff">; 806E 85 C9 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8070 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_progctr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 8071 B1 C0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_delta_y</font> <font color="#8080ff">; 8073 85 CA ..</font> +<font color="#8080ff">; all the other opcode handlers jump here</font> +<font color="#00ffff">dm_next_opcode</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; 8075 A5 C0 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 8077 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8078 69 03 i.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; 807A 85 C0 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">draw_map</font> <font color="#8080ff">; 807C 90 CB ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">dm_progctr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 807E E6 C1 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">draw_map</font> <font color="#8080ff">; 8080 4C 49 80 LI.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; handle gfx_object opcode</font> +<font color="#00ffff">dm_obj</font>: <font color="#00ff00">iny</font> <font color="#8080ff">; 8083 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_progctr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 8084 B1 C0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_objptr</font> <font color="#8080ff">; 8086 85 C2 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8088 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_progctr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 8089 B1 C0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_objptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 808B 85 C3 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">dm_next_opcode</font> <font color="#8080ff">; 808D 4C 75 80 Lu.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; handle gfx_draw opcode</font> +<font color="#00ffff">dm_draw_gfx</font>: + <font color="#00ff00">sta</font> <font color="#00ffff">dm_xpos</font> <font color="#8080ff">; 8090 85 55 .U</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8092 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_progctr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 8093 B1 C0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_ypos</font> <font color="#8080ff">; 8095 85 54 .T</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8097 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_progctr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 8098 B1 C0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_length</font> <font color="#8080ff">; 809A 85 BF ..</font> +<font color="#8080ff">; loop 'dm_length' times</font> +<font color="#00ffff">dm_draw_loop</font>: + <font color="#00ff00">jsr</font> <font color="#00ffff">dm_draw_obj</font> <font color="#8080ff">; 809C 20 B4 80 ..</font> + <font color="#00ff00">dec</font> <font color="#00ffff">dm_length</font> <font color="#8080ff">; 809F C6 BF ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">dm_next_opcode</font> <font color="#8080ff">; 80A1 F0 D2 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">dm_delta_x</font> <font color="#8080ff">; 80A3 A5 C9 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 80A5 18 .</font> + <font color="#00ff00">adc</font> <font color="#00ffff">dm_xpos</font> <font color="#8080ff">; 80A6 65 55 eU</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_xpos</font> <font color="#8080ff">; 80A8 85 55 .U</font> + <font color="#00ff00">lda</font> <font color="#00ffff">dm_delta_y</font> <font color="#8080ff">; 80AA A5 CA ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 80AC 18 .</font> + <font color="#00ff00">adc</font> <font color="#00ffff">dm_ypos</font> <font color="#8080ff">; 80AD 65 54 eT</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_ypos</font> <font color="#8080ff">; 80AF 85 54 .T</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">dm_draw_loop</font> <font color="#8080ff">; 80B1 4C 9C 80 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; draw current object at current x/y position</font> +<font color="#00ffff">dm_draw_obj</font>: + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 80B4 A0 00 ..</font> +<font color="#8080ff">; object definition ends with $FF</font> +<font color="#00ffff">dm_draw_obj_loop</font>: + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_objptr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 80B6 B1 C2 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 80B8 C9 FF ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">dm_obj_to_screen</font> <font color="#8080ff">; 80BA D0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 80BC 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; actually write the object's pixels to screen memory. quite hairy.</font> +<font color="#00ffff">dm_obj_to_screen</font>: + <font color="#00ff00">sta</font> <font color="#00ffff">dm_count</font> <font color="#8080ff">; 80BD 85 BE ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 80BF C8 .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 80C0 18 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_objptr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 80C1 B1 C2 ..</font> + <font color="#00ff00">adc</font> <font color="#00ffff">dm_xpos</font> <font color="#8080ff">; 80C3 65 55 eU</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_x_with_offset</font> <font color="#8080ff">; 80C5 85 C6 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 80C7 C8 .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 80C8 18 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_objptr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 80C9 B1 C2 ..</font> + <font color="#00ff00">adc</font> <font color="#00ffff">dm_ypos</font> <font color="#8080ff">; 80CB 65 54 eT</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_y_with_offset</font> <font color="#8080ff">; 80CD 85 C7 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 80CF C8 .</font> +<font color="#8080ff">; calculate 40 * dm_y_with_offset + dm_x_with_offset + screen mem address, store in dm_screen_addr</font> +<font color="#00ffff">calc_screen_addr</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$28</font> <font color="#8080ff">; 80D0 A9 28 .(</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $BD </font> <font color="#8080ff">; 80D2 85 BD ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 80D4 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_screen_addr</font> <font color="#8080ff">; 80D6 85 C4 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 80D8 A2 08 ..</font> +<font color="#00ffff">L80DA</font>: <font color="#00ff00">lsr</font> <font color="#ff40ff"> $BD </font> <font color="#8080ff">; 80DA 46 BD F.</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L80E1</font> <font color="#8080ff">; 80DC 90 03 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 80DE 18 .</font> + <font color="#00ff00">adc</font> <font color="#00ffff">dm_y_with_offset</font> <font color="#8080ff">; 80DF 65 C7 e.</font> +<font color="#00ffff">L80E1</font>: <font color="#00ff00">ror</font> <font color="#00ffff">a</font> <font color="#8080ff">; 80E1 6A j</font> + <font color="#00ff00">ror</font> <font color="#00ffff">dm_screen_addr</font> <font color="#8080ff">; 80E2 66 C4 f.</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 80E4 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L80DA</font> <font color="#8080ff">; 80E5 D0 F3 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 80E7 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff">SAVMSC</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 80E8 65 59 eY</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_screen_addr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 80EA 85 C5 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">dm_x_with_offset</font> <font color="#8080ff">; 80EC A5 C6 ..</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 80EE 4A J</font> + <font color="#00ff00">ror</font> <font color="#ff40ff"> $C8 </font> <font color="#8080ff">; 80EF 66 C8 f.</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 80F1 4A J</font> + <font color="#00ff00">ror</font> <font color="#ff40ff"> $C8 </font> <font color="#8080ff">; 80F2 66 C8 f.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 80F4 18 .</font> + <font color="#00ff00">adc</font> <font color="#00ffff">dm_screen_addr</font> <font color="#8080ff">; 80F5 65 C4 e.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_screen_addr</font> <font color="#8080ff">; 80F7 85 C4 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L80FD</font> <font color="#8080ff">; 80F9 90 02 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">dm_screen_addr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 80FB E6 C5 ..</font> +<font color="#00ffff">L80FD</font>: <font color="#00ff00">asl</font> <font color="#ff40ff"> $C8 </font> <font color="#8080ff">; 80FD 06 C8 ..</font> + <font color="#00ff00">rol</font> <font color="#00ffff">a</font> <font color="#8080ff">; 80FF 2A *</font> + <font color="#00ff00">asl</font> <font color="#ff40ff"> $C8 </font> <font color="#8080ff">; 8100 06 C8 ..</font> + <font color="#00ff00">rol</font> <font color="#00ffff">a</font> <font color="#8080ff">; 8102 2A *</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8103 29 03 ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $C8 </font> <font color="#8080ff">; 8105 85 C8 ..</font> +<font color="#00ffff">L8107</font>: <font color="#00ff00">lda</font> (<font color="#00ffff">dm_objptr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 8107 B1 C2 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $BD </font> <font color="#8080ff">; 8109 85 BD ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $C8 </font> <font color="#8080ff">; 810B A5 C8 ..</font> + <font color="#00ff00">lsr</font> <font color="#ff40ff"> $BD </font> <font color="#8080ff">; 810D 46 BD F.</font> + <font color="#00ff00">rol</font> <font color="#00ffff">a</font> <font color="#8080ff">; 810F 2A *</font> + <font color="#00ff00">lsr</font> <font color="#ff40ff"> $BD </font> <font color="#8080ff">; 8110 46 BD F.</font> + <font color="#00ff00">rol</font> <font color="#00ffff">a</font> <font color="#8080ff">; 8112 2A *</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $BD </font> <font color="#8080ff">; 8113 85 BD ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8115 C8 .</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; 8116 98 .</font> + <font color="#00ff00">pha</font> <font color="#8080ff">; 8117 48 H</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8118 A0 00 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff40ff"> $C8 </font> <font color="#8080ff">; 811A A6 C8 ..</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">dm_screen_addr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 811C B1 C4 ..</font> + <font color="#00ff00">and</font> <font color="#00ffff">gr7_and_masks</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 811E 3D 53 81 =S.</font> + <font color="#00ff00">ldx</font> <font color="#ff40ff"> $BD </font> <font color="#8080ff">; 8121 A6 BD ..</font> + <font color="#00ff00">ora</font> <font color="#00ffff">gr7_or_masks</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8123 1D 43 81 .C.</font> + <font color="#00ff00">sta</font> (<font color="#00ffff">dm_screen_addr</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 8126 91 C4 ..</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 8128 68 h</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 8129 A8 .</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $C8 </font> <font color="#8080ff">; 812A E6 C8 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $C8 </font> <font color="#8080ff">; 812C A5 C8 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 812E C9 04 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L813C</font> <font color="#8080ff">; 8130 90 0A ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8132 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $C8 </font> <font color="#8080ff">; 8134 85 C8 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">dm_screen_addr</font> <font color="#8080ff">; 8136 E6 C4 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L813C</font> <font color="#8080ff">; 8138 D0 02 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">dm_screen_addr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 813A E6 C5 ..</font> +<font color="#00ffff">L813C</font>: <font color="#00ff00">dec</font> <font color="#00ffff">dm_count</font> <font color="#8080ff">; 813C C6 BE ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8107</font> <font color="#8080ff">; 813E D0 C7 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">dm_draw_obj_loop</font> <font color="#8080ff">; 8140 4C B6 80 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">gr7_or_masks</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$C0</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$30</font> <font color="#8080ff">; 8143 00 80 40 C0 00 20 10 30 ..@.. .0</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$03</font> <font color="#8080ff">; 814B 00 08 04 0C 00 02 01 03 ........</font> +<font color="#00ffff">gr7_and_masks</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$3F</font>,<font color="#ff6060">$CF</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$FC</font> <font color="#8080ff">; 8153 3F CF F3 FC ?...</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; we have 4 slots (because POKEY has 4 voices), X counts down by 2 from 10 to 2 (at 0, the loop exits)</font> +<font color="#00ffff">sfx_player_entry</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$0A</font> <font color="#8080ff">; 8157 A2 0A ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_lock</font> <font color="#8080ff">; 8159 AD 2F 06 ./.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">next_sfx_slot</font> <font color="#8080ff">; 815C F0 01 ..</font> +<font color="#00ffff">sfx_exit</font>: + <font color="#00ff00">rts</font> <font color="#8080ff">; 815E 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">next_sfx_slot</font>: + <font color="#00ff00">dex</font> <font color="#8080ff">; 815F CA .</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8160 CA .</font> + <font color="#00ff00">beq</font> <font color="#00ffff">sfx_exit</font> <font color="#8080ff">; 8161 F0 FB ..</font> +<font color="#8080ff">; skip it, if slot is inactive</font> +<font color="#00ffff">is_slot_active</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_tempo</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8163 BD 3E 06 .>.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">next_sfx_slot</font> <font color="#8080ff">; 8166 F0 F7 ..</font> +<font color="#00ffff">L8168</font>: <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_timer</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8168 BD 3F 06 .?.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">sfx_next_note</font> <font color="#8080ff">; 816B F0 10 ..</font> + <font color="#00ff00">dec</font> <font color="#00ffff">sfx_slot_timer</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 816D DE 3F 06 .?.</font> + <font color="#00ff00">cmp</font> <font color="#00ffff">sfx_slot_duration</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8170 DD 46 06 .F.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">next_sfx_slot</font> <font color="#8080ff">; 8173 D0 EA ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8175 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">AUDF1_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8177 9D FF D1 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">next_sfx_slot</font> <font color="#8080ff">; 817A 4C 5F 81 L_.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">sfx_next_note</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_curpos</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 817D BD 4E 06 .N.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">zp_temp1</font> <font color="#8080ff">; 8180 85 CB ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_curpos</font>+<font color="#ff6060">1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8182 BD 4F 06 .O.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">zp_temp1</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8185 85 CC ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8187 A0 00 ..</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">zp_temp1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 8189 B1 CB ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 818B C9 04 ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">sfx_play_note</font> <font color="#8080ff">; 818D B0 77 .w</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 818F C9 01 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">sfx_change_tempo</font> <font color="#8080ff">; 8191 F0 1B ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 8193 C9 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">sfx_jump</font> <font color="#8080ff">; 8195 F0 31 .1</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8197 C9 03 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">sfx_play_rest</font> <font color="#8080ff">; 8199 F0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">sfx_finished</font> <font color="#8080ff">; 819B 4C 26 82 L&.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; y==0 on entry</font> +<font color="#00ffff">sfx_play_rest</font>: + <font color="#00ff00">tya</font> <font color="#8080ff">; 819E 98 .</font> + <font color="#00ff00">sta</font> <font color="#00ffff">AUDF1_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 819F 9D FF D1 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 81A2 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">zp_temp1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 81A3 B1 CB ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_timer</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 81A5 9D 3F 06 .?.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">inc_sfx_pos</font> <font color="#8080ff">; 81A8 20 31 82 1.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8168</font> <font color="#8080ff">; 81AB 4C 68 81 Lh.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; y==0 on entry</font> +<font color="#00ffff">sfx_change_tempo</font>: + <font color="#00ff00">iny</font> <font color="#8080ff">; 81AE C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">zp_temp1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 81AF B1 CB ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_freq</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 81B1 9D 47 06 .G.</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 81B4 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">zp_temp1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 81B5 B1 CB ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_duration</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 81B7 9D 46 06 .F.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">inc_sfx_pos</font> <font color="#8080ff">; 81BA 20 31 82 1.</font> + <font color="#00ff00">inc</font> <font color="#00ffff">sfx_slot_curpos</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 81BD FE 4E 06 .N.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8168</font> <font color="#8080ff">; 81C0 D0 A6 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">sfx_slot_curpos</font>+<font color="#ff6060">1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 81C2 FE 4F 06 .O.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8168</font> <font color="#8080ff">; 81C5 4C 68 81 Lh.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; I *think* this jumps to a different sfx address...</font> +<font color="#00ffff">sfx_jump</font>: + <font color="#00ff00">iny</font> <font color="#8080ff">; 81C8 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">zp_temp1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 81C9 B1 CB ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_curpos</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 81CB 9D 4E 06 .N.</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 81CE C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">zp_temp1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 81CF B1 CB ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_curpos</font>+<font color="#ff6060">1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 81D1 9D 4F 06 .O.</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 81D4 C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $065E,x </font> <font color="#8080ff">; 81D5 BD 5E 06 .^.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L81EE</font> <font color="#8080ff">; 81D8 F0 14 ..</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $065E,x </font> <font color="#8080ff">; 81DA DE 5E 06 .^.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">sfx_next_note</font> <font color="#8080ff">; 81DD D0 9E ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0656,x </font> <font color="#8080ff">; 81DF BD 56 06 .V.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_curpos</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 81E2 9D 4E 06 .N.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0657,x </font> <font color="#8080ff">; 81E5 BD 57 06 .W.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_curpos</font>+<font color="#ff6060">1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 81E8 9D 4F 06 .O.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">sfx_next_note</font> <font color="#8080ff">; 81EB 4C 7D 81 L}.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L81EE</font>: <font color="#00ff00">nop</font> <font color="#8080ff">; 81EE EA .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">zp_temp1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 81EF B1 CB ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $065E,x </font> <font color="#8080ff">; 81F1 9D 5E 06 .^.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">zp_temp1</font> <font color="#8080ff">; 81F4 A5 CB ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 81F6 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 81F7 69 04 i.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0656,x </font> <font color="#8080ff">; 81F9 9D 56 06 .V.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">zp_temp1</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 81FC A5 CC ..</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 81FE 69 00 i.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0657,x </font> <font color="#8080ff">; 8200 9D 57 06 .W.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">sfx_next_note</font> <font color="#8080ff">; 8203 4C 7D 81 L}.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; y==0, a>=4 on entry</font> +<font color="#00ffff">sfx_play_note</font>: + <font color="#00ff00">sta</font> <font color="#00ffff">AUDF1_minus_two</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8206 9D FE D1 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8209 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">zp_temp1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 820A B1 CB ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_timer</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 820C 9D 3F 06 .?.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_freq</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 820F BD 47 06 .G.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">AUDF1_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8212 9D FF D1 ...</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 8215 18 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_curpos</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8216 BD 4E 06 .N.</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 8219 69 02 i.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_curpos</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 821B 9D 4E 06 .N.</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L8223</font> <font color="#8080ff">; 821E 90 03 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">sfx_slot_curpos</font>+<font color="#ff6060">1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8220 FE 4F 06 .O.</font> +<font color="#00ffff">L8223</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">L8168</font> <font color="#8080ff">; 8223 4C 68 81 Lh.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; done playing this sfx, free up the slot, X-indexed</font> +<font color="#00ffff">sfx_finished</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8226 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_tempo</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8228 9D 3E 06 .>.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">AUDF1_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 822B 9D FF D1 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">next_sfx_slot</font> <font color="#8080ff">; 822E 4C 5F 81 L_.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; point to next byte in current sfx slot indexed by X</font> +<font color="#00ffff">inc_sfx_pos</font>: + <font color="#00ff00">clc</font> <font color="#8080ff">; 8231 18 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_curpos</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8232 BD 4E 06 .N.</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 8235 69 02 i.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_curpos</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8237 9D 4E 06 .N.</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">inc_done</font> <font color="#8080ff">; 823A 90 03 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">sfx_slot_curpos</font>+<font color="#ff6060">1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 823C FE 4F 06 .O.</font> +<font color="#00ffff">inc_done</font>: + <font color="#00ff00">rts</font> <font color="#8080ff">; 823F 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; if cue_sfx not already in progress, setup to play sfx at (sfx_slot_tempo, sfx_lock) tempo (?) A</font> +<font color="#00ffff">cue_sfx_lowprior</font>: + <font color="#00ff00">pha</font> <font color="#8080ff">; 8240 48 H</font> + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8241 AD 3D 06 .=.</font> +<font color="#00ffff">cue_ok</font>: <font color="#00ff00">beq</font> <font color="#00ffff">L8248</font> <font color="#8080ff">; 8244 F0 02 ..</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 8246 68 h</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8247 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8248</font>: <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_tempo</font> <font color="#8080ff">; 8248 AD 3E 06 .>.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; 824B 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_timer</font> <font color="#8080ff">; 824E AD 3F 06 .?.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8251 8D 3D 06 .=.</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 8254 68 h</font> +<font color="#8080ff">; setup to play sfx at *sfx_ptr, tempo (?) A</font> +<font color="#00ffff">cue_sfx</font>:<font color="#00ff00">sta</font> <font color="#00ffff">sfx_tempo_tmp</font> <font color="#8080ff">; 8255 8D 61 06 .a.</font> + <font color="#00ff00">inc</font> <font color="#00ffff">sfx_lock</font> <font color="#8080ff">; 8258 EE 2F 06 ./.</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$0A</font> <font color="#8080ff">; 825B A2 0A ..</font> +<font color="#00ffff">L825D</font>: <font color="#00ff00">dex</font> <font color="#8080ff">; 825D CA .</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 825E CA .</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8281</font> <font color="#8080ff">; 825F F0 20 . </font> + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_tempo</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8261 BD 3E 06 .>.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L825D</font> <font color="#8080ff">; 8264 D0 F7 ..</font> +<font color="#00ffff">L8266</font>: <font color="#00ff00">lda</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; 8266 AD 3C 06 .<.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_curpos</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8269 9D 4E 06 .N.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 826C AD 3D 06 .=.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_curpos</font>+<font color="#ff6060">1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 826F 9D 4F 06 .O.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_tempo_tmp</font> <font color="#8080ff">; 8272 AD 61 06 .a.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_tempo</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8275 9D 3E 06 .>.</font> +<font color="#00ffff">cue_done</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8278 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 827A 8D 3D 06 .=.</font> + <font color="#00ff00">dec</font> <font color="#00ffff">sfx_lock</font> <font color="#8080ff">; 827D CE 2F 06 ./.</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8280 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8281</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$0A</font> <font color="#8080ff">; 8281 A2 0A ..</font> +<font color="#00ffff">L8283</font>: <font color="#00ff00">dex</font> <font color="#8080ff">; 8283 CA .</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8284 CA .</font> + <font color="#00ff00">beq</font> <font color="#00ffff">cue_done</font> <font color="#8080ff">; 8285 F0 F1 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_tempo</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8287 BD 3E 06 .>.</font> + <font color="#00ff00">cmp</font> <font color="#00ffff">sfx_tempo_tmp</font> <font color="#8080ff">; 828A CD 61 06 .a.</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L8266</font> <font color="#8080ff">; 828D 90 D7 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8283</font> <font color="#8080ff">; 828F 4C 83 82 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $82 </font> <font color="#8080ff">; 8292 82 .</font> +<font color="#00ffff">position_missiles</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; 8293 A2 05 ..</font> +<font color="#00ffff">L8295</font>: <font color="#00ff00">dex</font> <font color="#8080ff">; 8295 CA .</font> + <font color="#00ff00">beq</font> <font color="#00ffff">missiles_done</font> <font color="#8080ff">; 8296 F0 45 .E</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $069A,x </font> <font color="#8080ff">; 8298 BD 9A 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $06A2,x </font> <font color="#8080ff">; 829B DD A2 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L82A6</font> <font color="#8080ff">; 829E F0 06 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06A2,x </font> <font color="#8080ff">; 82A0 9D A2 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">HPOSP3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 82A3 9D 03 D0 ...</font> +<font color="#00ffff">L82A6</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $06A6,x </font> <font color="#8080ff">; 82A6 BD A6 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $069E,x </font> <font color="#8080ff">; 82A9 DD 9E 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8295</font> <font color="#8080ff">; 82AC F0 E7 ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 82AE A8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $2B00,y </font> <font color="#8080ff">; 82AF B9 00 2B ..+</font> + <font color="#00ff00">and</font> <font color="#00ffff">missiles_mask_table_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 82B2 3D DF 82 =..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2B00,y </font> <font color="#8080ff">; 82B5 99 00 2B ..+</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $2B01,y </font> <font color="#8080ff">; 82B8 B9 01 2B ..+</font> + <font color="#00ff00">and</font> <font color="#00ffff">missiles_mask_table_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 82BB 3D DF 82 =..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2B01,y </font> <font color="#8080ff">; 82BE 99 01 2B ..+</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $069E,x </font> <font color="#8080ff">; 82C1 BD 9E 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06A6,x </font> <font color="#8080ff">; 82C4 9D A6 06 ...</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 82C7 A8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $2B00,y </font> <font color="#8080ff">; 82C8 B9 00 2B ..+</font> + <font color="#00ff00">ora</font> <font color="#00ffff">L82E3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 82CB 1D E3 82 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2B00,y </font> <font color="#8080ff">; 82CE 99 00 2B ..+</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $2B01,y </font> <font color="#8080ff">; 82D1 B9 01 2B ..+</font> + <font color="#00ff00">ora</font> <font color="#00ffff">L82E3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 82D4 1D E3 82 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2B01,y </font> <font color="#8080ff">; 82D7 99 01 2B ..+</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8295</font> <font color="#8080ff">; 82DA 4C 95 82 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">missiles_done</font>: +<font color="#00ffff">missiles_mask_table_minus_one</font>:= * + <font color="#ff6060">2</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">position_players</font> <font color="#8080ff">; 82DD 4C E9 82 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">missiles_mask_table</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$FC</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$CF</font> <font color="#8080ff">; 82E0 FC F3 CF ...</font> +<font color="#00ffff">L82E3</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$3F</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$C0</font> <font color="#8080ff">; 82E3 3F 03 0C 30 C0 ?..0.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">position_done</font>: + <font color="#00ff00">rts</font> <font color="#8080ff">; 82E8 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; X counts down 5..1 (starts at 6, immediately decremented, and loop is done with 0). zp_temp1 is ZP pointer to the current player or missile being written to ($2f00..$2b00, or p3/p2/p1/p0/missiles).</font> +<font color="#00ffff">position_players</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 82E9 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">zp_temp1</font> <font color="#8080ff">; 82EB 85 CB ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; 82ED A9 30 .0</font> + <font color="#00ff00">sta</font> <font color="#00ffff">zp_temp1</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 82EF 85 CC ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; 82F1 A2 06 ..</font> +<font color="#00ffff">L82F3</font>: <font color="#00ff00">dec</font> <font color="#00ffff">zp_temp1</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 82F3 C6 CC ..</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 82F5 CA .</font> + <font color="#00ff00">beq</font> <font color="#00ffff">position_done</font> <font color="#8080ff">; 82F6 F0 F0 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0668,x </font> <font color="#8080ff">; 82F8 BD 68 06 .h.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L82F3</font> <font color="#8080ff">; 82FB F0 F6 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $067C,x </font> <font color="#8080ff">; 82FD BD 7C 06 .|.</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $068B,x </font> <font color="#8080ff">; 8300 DD 8B 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">position_pm_vert</font> <font color="#8080ff">; 8303 F0 1D ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $068B,x </font> <font color="#8080ff">; 8305 9D 8B 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">HPOSP0_minus_two</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8308 9D FE CF ...</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 830B E0 01 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">position_pm_vert</font> <font color="#8080ff">; 830D D0 13 ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 830F A8 .</font> +<font color="#8080ff">; position the 4 missiles side-by-side</font> +<font color="#00ffff">position_player_5</font>: + <font color="#00ff00">sty</font> <font color="#ff40ff">HPOSM3</font> <font color="#8080ff">; 8310 8C 07 D0 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8313 C8 .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8314 C8 .</font> + <font color="#00ff00">sty</font> <font color="#ff40ff">HPOSM2</font> <font color="#8080ff">; 8315 8C 06 D0 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8318 C8 .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8319 C8 .</font> + <font color="#00ff00">sty</font> <font color="#ff40ff">HPOSM1</font> <font color="#8080ff">; 831A 8C 05 D0 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 831D C8 .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 831E C8 .</font> + <font color="#00ff00">sty</font> <font color="#ff40ff">HPOSM0</font> <font color="#8080ff">; 831F 8C 04 D0 ...</font> +<font color="#00ffff">position_pm_vert</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0690,x </font> <font color="#8080ff">; 8322 BD 90 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $0681,x </font> <font color="#8080ff">; 8325 DD 81 06 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8338</font> <font color="#8080ff">; 8328 D0 0E ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0686,x </font> <font color="#8080ff">; 832A BD 86 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $0695,x </font> <font color="#8080ff">; 832D DD 95 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L82F3</font> <font color="#8080ff">; 8330 F0 C1 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0695,x </font> <font color="#8080ff">; 8332 9D 95 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0690,x </font> <font color="#8080ff">; 8335 BD 90 06 ...</font> +<font color="#00ffff">L8338</font>: <font color="#00ff00">sta</font> <font color="#00ffff">zp_temp1</font> <font color="#8080ff">; 8338 85 CB ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0677,x </font> <font color="#8080ff">; 833A BD 77 06 .w.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $CF </font> <font color="#8080ff">; 833D 85 CF ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 833F A9 00 ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 8341 A8 .</font> +<font color="#8080ff">; write zeroes to unused portion of this player/missile</font> +<font color="#00ffff">clear_pm</font>: + <font color="#00ff00">sta</font> (<font color="#00ffff">zp_temp1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 8342 91 CB ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8344 C8 .</font> + <font color="#00ff00">cpy</font> <font color="#ff40ff"> $CF </font> <font color="#8080ff">; 8345 C4 CF ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">clear_pm</font> <font color="#8080ff">; 8347 D0 F9 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0681,x </font> <font color="#8080ff">; 8349 BD 81 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0690,x </font> <font color="#8080ff">; 834C 9D 90 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">zp_temp1</font> <font color="#8080ff">; 834F 85 CB ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $066D,x </font> <font color="#8080ff">; 8351 BD 6D 06 .m.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $CD </font> <font color="#8080ff">; 8354 85 CD ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0672,x </font> <font color="#8080ff">; 8356 BD 72 06 .r.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $CE </font> <font color="#8080ff">; 8359 85 CE ..</font> + <font color="#00ff00">ldy</font> <font color="#ff40ff"> $0686,x </font> <font color="#8080ff">; 835B BC 86 06 ...</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 835E 18 .</font> +<font color="#00ffff">L835F</font>: <font color="#00ff00">dey</font> <font color="#8080ff">; 835F 88 .</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8370</font> <font color="#8080ff">; 8360 F0 0E ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $CF </font> <font color="#8080ff">; 8362 A5 CF ..</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $CD </font> <font color="#8080ff">; 8364 65 CD e.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $CD </font> <font color="#8080ff">; 8366 85 CD ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L835F</font> <font color="#8080ff">; 8368 90 F5 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $CE </font> <font color="#8080ff">; 836A E6 CE ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 836C 18 .</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L835F</font> <font color="#8080ff">; 836D 4C 5F 83 L_.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8370</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> ($CD),y </font> <font color="#8080ff">; 8370 B1 CD ..</font> + <font color="#00ff00">sta</font> (<font color="#00ffff">zp_temp1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; 8372 91 CB ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8374 C8 .</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $CF </font> <font color="#8080ff">; 8375 C6 CF ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8370</font> <font color="#8080ff">; 8377 D0 F7 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L82F3</font> <font color="#8080ff">; 8379 4C F3 82 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">init_hardware</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$18</font> <font color="#8080ff">; 837C A2 18 ..</font> +<font color="#8080ff">; movement_direction_table+31 should read data_table_85de-1, da65 isn't perfect yet</font> +<font color="#00ffff">init_page6_loop</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">movement_direction_table</font>+<font color="#ff6060">31</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 837E BD DD 85 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $05FF,x </font> <font color="#8080ff">; 8381 9D FF 05 ...</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8384 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">init_page6_loop</font> <font color="#8080ff">; 8385 D0 F7 ..</font> + <font color="#00ff00">stx</font> <font color="#ff40ff">AUDCTL</font> <font color="#8080ff">; 8387 8E 08 D2 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$28</font> <font color="#8080ff">; 838A A9 28 .(</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">PMBASE</font> <font color="#8080ff">; 838C 8D 07 D4 ...</font> +<font color="#8080ff">; std playfield, enable players + missiles, single-line p/m res, DMA enabled</font> +<font color="#00ffff">set_dma_ctl</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$3E</font> <font color="#8080ff">; 838F A9 3E .></font> + <font color="#00ff00">sta</font> <font color="#ff40ff">SDMCTL</font> <font color="#8080ff">; 8391 8D 2F 02 ./.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">DMACTL</font> <font color="#8080ff">; 8394 8D 00 D4 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$11</font> <font color="#8080ff">; 8397 A9 11 ..</font> +<font color="#8080ff">; priority $11: pl0-3, pf0-3, bak (and enable 5th player from the missiles)</font> +<font color="#00ffff">init_set_prior</font>: + <font color="#00ff00">sta</font> <font color="#ff40ff">GPRIOR</font> <font color="#8080ff">; 8399 8D 6F 02 .o.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">PRIOR</font> <font color="#8080ff">; 839C 8D 1B D0 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 839F A9 03 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">SKCTL</font> <font color="#8080ff">; 83A1 8D 0F D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">GRACTL</font> <font color="#8080ff">; 83A4 8D 1D D0 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; 83A7 A9 09 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; 83A9 8D 24 06 .$.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$4C</font> <font color="#8080ff">; 83AC A9 4C .L</font> + <font color="#00ff00">sta</font> <font color="#00ffff">L06E0</font> <font color="#8080ff">; 83AE 8D E0 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; 83B1 A9 20 . </font> + <font color="#00ff00">sta</font> <font color="#00ffff">L06E3</font> <font color="#8080ff">; 83B3 8D E3 06 ...</font> +<font color="#8080ff">; store an RTS at $06E6, which will get JSR'ed to by unused level subroutines</font> +<font color="#00ffff">store_rts</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$60</font> <font color="#8080ff">; 83B6 A9 60 .`</font> + <font color="#00ff00">sta</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; 83B8 8D E6 06 ...</font> +<font color="#8080ff">; use character set at $9e00 aka charset</font> +<font color="#00ffff">set_char_base</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$9E</font> <font color="#8080ff">; 83BB A9 9E ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">CHBAS</font> <font color="#8080ff">; 83BD 8D F4 02 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">CHBASE</font> <font color="#8080ff">; 83C0 8D 09 D4 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$9D</font> <font color="#8080ff">; 83C3 A9 9D ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0674 </font> <font color="#8080ff">; 83C5 8D 74 06 .t.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0675 </font> <font color="#8080ff">; 83C8 8D 75 06 .u.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$E8</font> <font color="#8080ff">; 83CB A9 E8 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0670 </font> <font color="#8080ff">; 83CD 8D 70 06 .p.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $066A </font> <font color="#8080ff">; 83D0 8D 6A 06 .j.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $066B </font> <font color="#8080ff">; 83D3 8D 6B 06 .k.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$0A</font> <font color="#8080ff">; 83D6 A9 0A ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0679 </font> <font color="#8080ff">; 83D8 8D 79 06 .y.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $067A </font> <font color="#8080ff">; 83DB EE 7A 06 .z.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 83DE A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">VKEYBD</font> <font color="#8080ff">; 83E0 8D 08 02 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">SAVMSC</font> <font color="#8080ff">; 83E3 85 58 .X</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D5 </font> <font color="#8080ff">; 83E5 85 D5 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; 83E7 A9 30 .0</font> +<font color="#8080ff">; tell OS that screen memory starts at $3000</font> +<font color="#00ffff">set_savmsc</font>: + <font color="#00ff00">sta</font> <font color="#ff40ff">SAVMSC</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 83E9 85 59 .Y</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$9C</font> <font color="#8080ff">; 83EB A9 9C ..</font> +<font color="#8080ff">; VKEYBD now points to $9c00 aka keyboard_isr</font> +<font color="#00ffff">set_vkeybd</font>: + <font color="#00ff00">sta</font> <font color="#00ffff">VKEYBD_hi</font> <font color="#8080ff">; 83ED 8D 09 02 ...</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; 83F0 A2 07 ..</font> +<font color="#00ffff">L83F2</font>: <font color="#00ff00">lda</font> <font color="#00ffff">L8405</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 83F2 BD 05 84 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06D8,x </font> <font color="#8080ff">; 83F5 9D D8 06 ...</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 83F8 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L83F2</font> <font color="#8080ff">; 83F9 D0 F7 ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$0D</font> <font color="#8080ff">; 83FB A0 0D ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$84</font> <font color="#8080ff">; 83FD A2 84 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; 83FF A9 06 ..</font> +<font color="#8080ff">; VVBLKI now points to $840d aka vblank_imm_isr</font> +<font color="#00ffff">set_vvblki</font>: + <font color="#00ff00">jsr</font> <font color="#ff40ff">SETVBV</font> <font color="#8080ff">; 8401 20 5C E4 \.</font> + <font color="#00ff00">cld</font> <font color="#8080ff">; 8404 D8 .</font> +<font color="#00ffff">L8405</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; 8405 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">data_8406</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; 8406 FE 49 9C 00 00 01 FF .I.....</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; service immediate vblank interrupt</font> +<font color="#00ffff">vblank_imm_isr</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; 840D A2 09 ..</font> +<font color="#8080ff">; update color regs from shadow regs (X ranges 1 to 9, GRAFM+1 is COLPM0, $2bf+1 is PCOLR0)</font> +<font color="#00ffff">update_color_regs</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff"> $02BF,x </font> <font color="#8080ff">; 840F BD BF 02 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">GRAFM</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8412 9D 11 D0 ...</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8415 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">update_color_regs</font> <font color="#8080ff">; 8416 D0 F7 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0619 </font> <font color="#8080ff">; 8418 EE 19 06 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L841F</font> <font color="#8080ff">; 841B D0 02 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $A2 </font> <font color="#8080ff">; 841D E6 A2 ..</font> +<font color="#00ffff">L841F</font>: <font color="#00ff00">inc</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; 841F EE 1A 06 ...</font> + <font color="#00ff00">inc</font> <font color="#00ffff">jiffy_timer_2</font> <font color="#8080ff">; 8422 EE 1B 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $061C </font> <font color="#8080ff">; 8425 EE 1C 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $061C </font> <font color="#8080ff">; 8428 AD 1C 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 842B 29 01 ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $061C </font> <font color="#8080ff">; 842D 8D 1C 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8430 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0621 </font> <font color="#8080ff">; 8432 8D 21 06 .!.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0622 </font> <font color="#8080ff">; 8435 8D 22 06 .".</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06FD </font> <font color="#8080ff">; 8438 8D FD 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $061D </font> <font color="#8080ff">; 843B EE 1D 06 ...</font> + <font color="#00ff00">inc</font> <font color="#00ffff">speed_jiffy_timer</font> <font color="#8080ff">; 843E EE 1E 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; 8441 AD 24 06 .$.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; 8444 C9 09 ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L847E</font> <font color="#8080ff">; 8446 B0 36 .6</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $061D </font> <font color="#8080ff">; 8448 AD 1D 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; 844B CD 24 06 .$.</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L846E</font> <font color="#8080ff">; 844E 90 1E ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8450 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $061D </font> <font color="#8080ff">; 8452 8D 1D 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0621 </font> <font color="#8080ff">; 8455 EE 21 06 .!.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $061F </font> <font color="#8080ff">; 8458 EE 1F 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0620 </font> <font color="#8080ff">; 845B EE 20 06 . .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $061F </font> <font color="#8080ff">; 845E AD 1F 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 8461 29 01 ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $061F </font> <font color="#8080ff">; 8463 8D 1F 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0620 </font> <font color="#8080ff">; 8466 AD 20 06 . .</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8469 29 03 ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0620 </font> <font color="#8080ff">; 846B 8D 20 06 . .</font> +<font color="#00ffff">L846E</font>: <font color="#00ff00">lda</font> <font color="#00ffff">speed_jiffy_timer</font> <font color="#8080ff">; 846E AD 1E 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#00ffff">initial_speed</font> <font color="#8080ff">; 8471 CD 25 06 .%.</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L847E</font> <font color="#8080ff">; 8474 90 08 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8476 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">speed_jiffy_timer</font> <font color="#8080ff">; 8478 8D 1E 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0622 </font> <font color="#8080ff">; 847B EE 22 06 .".</font> +<font color="#00ffff">L847E</font>: <font color="#00ff00">lda</font> <font color="#00ffff">playing_level</font> <font color="#8080ff">; 847E AD 27 06 .'.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">no_dec_bonus</font> <font color="#8080ff">; 8481 F0 08 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">bonus_jiffy_timer</font> <font color="#8080ff">; 8483 EE 26 06 .&.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">no_dec_bonus</font> <font color="#8080ff">; 8486 D0 03 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">decrement_time_bonus_jv</font> <font color="#8080ff">; 8488 20 21 80 !.</font> +<font color="#00ffff">no_dec_bonus</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0619 </font> <font color="#8080ff">; 848B AD 19 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; 848E 29 07 ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">check_joystick_enabled</font> <font color="#8080ff">; 8490 D0 12 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0628 </font> <font color="#8080ff">; 8492 EE 28 06 .(.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0628 </font> <font color="#8080ff">; 8495 AD 28 06 .(.</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; 8498 29 07 ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0628 </font> <font color="#8080ff">; 849A 8D 28 06 .(.</font> + <font color="#00ff00">tax</font> <font color="#8080ff">; 849D AA .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">data_table_85b6</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 849E BD B6 85 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $062A </font> <font color="#8080ff">; 84A1 8D 2A 06 .*.</font> +<font color="#8080ff">; read the joystick if not disabled</font> +<font color="#00ffff">check_joystick_enabled</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">joystick_disabled</font> <font color="#8080ff">; 84A4 AD 32 06 .2.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">read_joystick</font> <font color="#8080ff">; 84A7 F0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">store_joystick_state</font> <font color="#8080ff">; 84A9 4C B1 84 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always joystick #1 (all players use the same joystick and pass it around)</font> +<font color="#00ffff">read_joystick</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff">PORTA</font> <font color="#8080ff">; 84AC AD 00 D3 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 84AF 29 0F ).</font> +<font color="#8080ff">; store bottom 4 bits of PORTA, or 0 if joystick_disabled</font> +<font color="#00ffff">store_joystick_state</font>: + <font color="#00ff00">sta</font> <font color="#00ffff">joystick_state</font> <font color="#8080ff">; 84B1 8D 33 06 .3.</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; 84B4 0A .</font> + <font color="#00ff00">tax</font> <font color="#8080ff">; 84B5 AA .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">movement_direction_table</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 84B6 BD BE 85 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_delta_x</font> <font color="#8080ff">; 84B9 8D 30 06 .0.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">movement_direction_table</font>+<font color="#ff6060">1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 84BC BD BF 85 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_delta_y</font> <font color="#8080ff">; 84BF 8D 31 06 .1.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">trigger_disabled</font> <font color="#8080ff">; 84C2 AD 34 06 .4.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">read_trigger</font> <font color="#8080ff">; 84C5 F0 0C ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 84C7 C9 01 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">fake_read_trigger</font> <font color="#8080ff">; 84C9 F0 02 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 84CB A9 00 ..</font> +<font color="#8080ff">; ??</font> +<font color="#00ffff">fake_read_trigger</font>: + <font color="#00ff00">sta</font> <font color="#00ffff">trigger_state</font> <font color="#8080ff">; 84CD 8D 35 06 .5.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L84D9</font> <font color="#8080ff">; 84D0 4C D9 84 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always joystick #1</font> +<font color="#00ffff">read_trigger</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff">TRIG0</font> <font color="#8080ff">; 84D3 AD 10 D0 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">trigger_state</font> <font color="#8080ff">; 84D6 8D 35 06 .5.</font> +<font color="#00ffff">L84D9</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 84D9 A2 08 ..</font> +<font color="#00ffff">L84DB</font>: <font color="#00ff00">lda</font> <font color="#00ffff">work_level_desc</font>+<font color="#ff6060">1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 84DB BD 81 07 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L84EE</font> <font color="#8080ff">; 84DE F0 0E ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0603,x </font> <font color="#8080ff">; 84E0 9D 03 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_desc</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 84E3 BD 80 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0602,x </font> <font color="#8080ff">; 84E6 9D 02 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 84E9 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_desc</font>+<font color="#ff6060">1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 84EB 9D 81 07 ...</font> +<font color="#00ffff">L84EE</font>: <font color="#00ff00">dex</font> <font color="#8080ff">; 84EE CA .</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 84EF CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L84DB</font> <font color="#8080ff">; 84F0 D0 E9 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0640 </font> <font color="#8080ff">; 84F2 AD 40 06 .@.</font> + <font color="#00ff00">ora</font> <font color="#ff40ff"> $0642 </font> <font color="#8080ff">; 84F5 0D 42 06 .B.</font> + <font color="#00ff00">ora</font> <font color="#ff40ff"> $0644 </font> <font color="#8080ff">; 84F8 0D 44 06 .D.</font> + <font color="#00ff00">ora</font> <font color="#00ffff">sfx_slot_duration</font> <font color="#8080ff">; 84FB 0D 46 06 .F.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0663 </font> <font color="#8080ff">; 84FE 8D 63 06 .c.</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$10</font> <font color="#8080ff">; 8501 A2 10 ..</font> +<font color="#8080ff">; save contents of GTIA collision regs (X ranges 1 to $10, dli_vec_shadow_hi should read collision_save-1)</font> +<font color="#00ffff">save_collisions</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff"> $CFFF,x </font> <font color="#8080ff">; 8503 BD FF CF ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dli_vec_shadow_hi</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8506 9D AF 06 ...</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8509 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">save_collisions</font> <font color="#8080ff">; 850A D0 F7 ..</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 850C E8 .</font> +<font color="#00ffff">clear_collisions</font>: + <font color="#00ff00">stx</font> <font color="#ff40ff">HITCLR</font> <font color="#8080ff">; 850D 8E 1E D0 ...</font> +<font color="#8080ff">; update display list, if there's a new one in the shadow reg</font> +<font color="#00ffff">update_dlist</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">dlist_shadow_hi</font> <font color="#8080ff">; 8510 AD AD 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">update_dli_vector</font> <font color="#8080ff">; 8513 F0 0E ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">DLISTH</font> <font color="#8080ff">; 8515 8D 03 D4 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; 8518 AD AC 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">DLISTL</font> <font color="#8080ff">; 851B 8D 02 D4 ...</font> +<font color="#8080ff">; clear the shadow now that we've updated the HW</font> +<font color="#00ffff">clear_dlist_shadow</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 851E A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_hi</font> <font color="#8080ff">; 8520 8D AD 06 ...</font> +<font color="#8080ff">; update DLI vector, if there's a new one in the shadow reg</font> +<font color="#00ffff">update_dli_vector</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">dli_vec_shadow_hi</font> <font color="#8080ff">; 8523 AD AF 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L853B</font> <font color="#8080ff">; 8526 F0 13 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">VDSLST</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8528 8D 01 02 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">dli_vec_shadow_lo</font> <font color="#8080ff">; 852B AD AE 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">VDSLST</font> <font color="#8080ff">; 852E 8D 00 02 ...</font> +<font color="#8080ff">; clear the shadow now that we've updated the HW</font> +<font color="#00ffff">clear_dli_shadow</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8531 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dli_vec_shadow_hi</font> <font color="#8080ff">; 8533 8D AF 06 ...</font> +<font color="#8080ff">; enable DLI now that we've set up the vector</font> +<font color="#00ffff">enable_dli</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$C0</font> <font color="#8080ff">; 8536 A9 C0 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">NMIEN</font> <font color="#8080ff">; 8538 8D 0E D4 ...</font> +<font color="#00ffff">L853B</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $06FC </font> <font color="#8080ff">; 853B AD FC 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $0888 </font> <font color="#8080ff">; 853E CD 88 08 ...</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L8551</font> <font color="#8080ff">; 8541 90 0E ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $06FD </font> <font color="#8080ff">; 8543 EE FD 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $06FB </font> <font color="#8080ff">; 8546 EE FB 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8549 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06FC </font> <font color="#8080ff">; 854B 8D FC 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">enable_keyboard_irq</font> <font color="#8080ff">; 854E 4C 54 85 LT.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8551</font>: <font color="#00ff00">inc</font> <font color="#ff40ff"> $06FC </font> <font color="#8080ff">; 8551 EE FC 06 ...</font> +<font color="#8080ff">; $C0 = regular keypress, break keypress</font> +<font color="#00ffff">enable_keyboard_irq</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$C0</font> <font color="#8080ff">; 8554 A9 C0 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">IRQEN</font> <font color="#8080ff">; 8556 8D 0E D2 ...</font> + <font color="#00ff00">cli</font> <font color="#8080ff">; 8559 58 X</font> +<font color="#8080ff">; 8 = silent (0 would be a click)</font> +<font color="#00ffff">silence_console_speaker</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 855A A9 08 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">CONSOL</font> <font color="#8080ff">; 855C 8D 1F D0 ...</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 855F A2 FF ..</font> +<font color="#8080ff">; carry set = not pressed, clear = pressed</font> +<font color="#00ffff">check_start_key</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff">CONSOL</font> <font color="#8080ff">; 8561 AD 1F D0 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">zp_temp1</font> <font color="#8080ff">; 8564 85 CB ..</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">zp_temp1</font> <font color="#8080ff">; 8566 46 CB F.</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">check_select_key</font> <font color="#8080ff">; 8568 B0 09 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">start_key_enabled</font> <font color="#8080ff">; 856A AD C8 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">check_select_key</font> <font color="#8080ff">; 856D F0 04 ..</font> + <font color="#00ff00">txs</font> <font color="#8080ff">; 856F 9A .</font> + <font color="#00ff00">jmp</font> (<font color="#00ffff">start_key_vec</font>) <font color="#8080ff">; 8570 6C C4 06 l..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; carry set = not pressed, clear = pressed</font> +<font color="#00ffff">check_select_key</font>: + <font color="#00ff00">lsr</font> <font color="#00ffff">zp_temp1</font> <font color="#8080ff">; 8573 46 CB F.</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">check_option_key</font> <font color="#8080ff">; 8575 B0 09 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">select_key_enabled</font> <font color="#8080ff">; 8577 AD C7 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">check_option_key</font> <font color="#8080ff">; 857A F0 04 ..</font> + <font color="#00ff00">txs</font> <font color="#8080ff">; 857C 9A .</font> + <font color="#00ff00">jmp</font> (<font color="#00ffff">select_key_vec</font>) <font color="#8080ff">; 857D 6C C2 06 l..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; carry set = not pressed, clear = pressed</font> +<font color="#00ffff">check_option_key</font>: + <font color="#00ff00">lsr</font> <font color="#00ffff">zp_temp1</font> <font color="#8080ff">; 8580 46 CB F.</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L858D</font> <font color="#8080ff">; 8582 B0 09 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">option_key_enabled</font> <font color="#8080ff">; 8584 AD C6 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L858D</font> <font color="#8080ff">; 8587 F0 04 ..</font> + <font color="#00ff00">txs</font> <font color="#8080ff">; 8589 9A .</font> + <font color="#00ff00">jmp</font> (<font color="#00ffff">option_key_vec</font>) <font color="#8080ff">; 858A 6C C0 06 l..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L858D</font>: <font color="#00ff00">ldx</font> <font color="#ff40ff"> $0618 </font> <font color="#8080ff">; 858D AE 18 06 ...</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$18</font> <font color="#8080ff">; 8590 E0 18 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L859C</font> <font color="#8080ff">; 8592 D0 08 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8594 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0618 </font> <font color="#8080ff">; 8596 8D 18 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#ff40ff">XITVBV</font> <font color="#8080ff">; 8599 4C 62 E4 Lb.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L859C</font>: <font color="#00ff00">inc</font> <font color="#ff40ff"> $0618 </font> <font color="#8080ff">; 859C EE 18 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0618 </font> <font color="#8080ff">; 859F EE 18 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0601,x </font> <font color="#8080ff">; 85A2 BD 01 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L858D</font> <font color="#8080ff">; 85A5 F0 E6 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06E5 </font> <font color="#8080ff">; 85A7 8D E5 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0600,x </font> <font color="#8080ff">; 85AA BD 00 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06E4 </font> <font color="#8080ff">; 85AD 8D E4 06 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L06E3</font> <font color="#8080ff">; 85B0 20 E3 06 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L858D</font> <font color="#8080ff">; 85B3 4C 8D 85 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; used in vblank_imm_isr, not sure for what yet</font> +<font color="#00ffff">data_table_85b6</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$1A</font>,<font color="#ff6060">$96</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$56</font>,<font color="#ff6060">$0E</font>,<font color="#ff6060">$F6</font> <font color="#8080ff">; 85B6 1A 96 28 66 C6 56 0E F6 ..(f.V..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; X/Y movement, indexed by joystick_state << 1, each entry is XXYY, $FF is -1</font> +<font color="#00ffff">movement_direction_table</font>: + .<font color="#ffff00">word</font> <font color="#ff6060">$0000</font>,<font color="#ff6060">$0000</font>,<font color="#ff6060">$0000</font>,<font color="#ff6060">$0000</font> <font color="#8080ff">; 85BE 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">word</font> <font color="#ff6060">$0000</font>,<font color="#ff6060">$0101</font>,<font color="#ff6060">$FF01</font>,<font color="#ff6060">$0001</font> <font color="#8080ff">; 85C6 00 00 01 01 01 FF 01 00 ........</font> + .<font color="#ffff00">word</font> <font color="#ff6060">$0000</font>,<font color="#ff6060">$01FF</font>,<font color="#ff6060">$FFFF</font>,<font color="#ff6060">$00FF</font> <font color="#8080ff">; 85CE 00 00 FF 01 FF FF FF 00 ........</font> + .<font color="#ffff00">word</font> <font color="#ff6060">$0000</font>,<font color="#ff6060">$0100</font>,<font color="#ff6060">$FF00</font>,<font color="#ff6060">$0000</font> <font color="#8080ff">; 85D6 00 00 00 01 00 FF 00 00 ........</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; dunno what this is for yet, but it's copied into page 6 by init_hardware</font> +<font color="#00ffff">data_table_85de</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$C8</font>,<font color="#ff6060">$88</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$84</font> <font color="#8080ff">; 85DE C8 88 05 84 05 84 05 84 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$98</font> <font color="#8080ff">; 85E6 05 84 05 84 05 84 00 98 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$93</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$69</font>,<font color="#ff6060">$8E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$89</font>,<font color="#ff6060">$57</font>,<font color="#ff6060">$81</font> <font color="#8080ff">; 85EE 93 82 69 8E 00 89 57 81 ..i...W.</font> +<font color="#8080ff">; probably just filler</font> +<font color="#00ffff">zero_filler_85f6</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 85F6 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 85FE 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; gets called after the level is drawn & the intro music stops, and also during the level (?)</font> +<font color="#00ffff">xxx_level_something</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8600 A2 00 ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8602 A0 00 ..</font> + <font color="#00ff00">stx</font> <font color="#ff40ff"> $0665 </font> <font color="#8080ff">; 8604 8E 65 06 .e.</font> +<font color="#00ffff">L8607</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$10</font> <font color="#8080ff">; 8607 A9 10 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 8609 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $D5 </font> <font color="#8080ff">; 860A 65 D5 e.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> ($D3),y </font> <font color="#8080ff">; 860C 91 D3 ..</font> +<font color="#00ffff">L860E</font>: <font color="#00ff00">sec</font> <font color="#8080ff">; 860E 38 8</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $D0 </font> <font color="#8080ff">; 860F A5 D0 ..</font> + <font color="#00ff00">sbc</font> <font color="#00ffff">L8702</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8611 FD 02 87 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D0 </font> <font color="#8080ff">; 8614 85 D0 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $D1 </font> <font color="#8080ff">; 8616 A5 D1 ..</font> + <font color="#00ff00">sbc</font> <font color="#00ffff">L8703</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8618 FD 03 87 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D1 </font> <font color="#8080ff">; 861B 85 D1 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $D2 </font> <font color="#8080ff">; 861D A5 D2 ..</font> + <font color="#00ff00">sbc</font> <font color="#00ffff">L8704</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 861F FD 04 87 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D2 </font> <font color="#8080ff">; 8622 85 D2 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L8633</font> <font color="#8080ff">; 8624 90 0D ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($D3),y </font> <font color="#8080ff">; 8626 B1 D3 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 8628 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 8629 69 01 i.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> ($D3),y </font> <font color="#8080ff">; 862B 91 D3 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0665 </font> <font color="#8080ff">; 862D 8D 65 06 .e.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L860E</font> <font color="#8080ff">; 8630 4C 0E 86 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8633</font>: <font color="#00ff00">clc</font> <font color="#8080ff">; 8633 18 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L8702</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8634 BD 02 87 ...</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $D0 </font> <font color="#8080ff">; 8637 65 D0 e.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D0 </font> <font color="#8080ff">; 8639 85 D0 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L8703</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 863B BD 03 87 ...</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $D1 </font> <font color="#8080ff">; 863E 65 D1 e.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D1 </font> <font color="#8080ff">; 8640 85 D1 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L8704</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8642 BD 04 87 ...</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $D2 </font> <font color="#8080ff">; 8645 65 D2 e.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D2 </font> <font color="#8080ff">; 8647 85 D2 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0665 </font> <font color="#8080ff">; 8649 AD 65 06 .e.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L865C</font> <font color="#8080ff">; 864C D0 0E ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($D3),y </font> <font color="#8080ff">; 864E B1 D3 ..</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 8650 29 0F ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L865C</font> <font color="#8080ff">; 8652 D0 08 ..</font> + <font color="#00ff00">cpy</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; 8654 C0 05 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8667</font> <font color="#8080ff">; 8656 F0 0F ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8658 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> ($D3),y </font> <font color="#8080ff">; 865A 91 D3 ..</font> +<font color="#00ffff">L865C</font>: <font color="#00ff00">cpx</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 865C E0 0F ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8667</font> <font color="#8080ff">; 865E F0 07 ..</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 8660 E8 .</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 8661 E8 .</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 8662 E8 .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8663 C8 .</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8607</font> <font color="#8080ff">; 8664 4C 07 86 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8667</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; 8667 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8668</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$F5</font> <font color="#8080ff">; 8668 A9 F5 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D3 </font> <font color="#8080ff">; 866A 85 D3 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$3D</font> <font color="#8080ff">; 866C A9 3D .=</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D4 </font> <font color="#8080ff">; 866E 85 D4 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8670 A2 03 ..</font> +<font color="#00ffff">L8672</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $06FF,x </font> <font color="#8080ff">; 8672 BD FF 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $CF,x </font> <font color="#8080ff">; 8675 95 CF ..</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8677 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8672</font> <font color="#8080ff">; 8678 D0 F8 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">xxx_level_something</font> <font color="#8080ff">; 867A 20 00 86 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 867D 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L867E</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; 867E A9 09 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D3 </font> <font color="#8080ff">; 8680 85 D3 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$3E</font> <font color="#8080ff">; 8682 A9 3E .></font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D4 </font> <font color="#8080ff">; 8684 85 D4 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8686 A2 03 ..</font> +<font color="#00ffff">L8688</font>: <font color="#00ff00">lda</font> <font color="#00ffff">work_level_points_per_bomb</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8688 BD 90 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $CF,x </font> <font color="#8080ff">; 868B 95 CF ..</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 868D CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8688</font> <font color="#8080ff">; 868E D0 F8 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">xxx_level_something</font> <font color="#8080ff">; 8690 20 00 86 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8693 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; bottom 2 GR.1 lines on the game board</font> +<font color="#00ffff">update_status_window</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8694 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">HSCROL</font> <font color="#8080ff">; 8696 8D 04 D4 ...</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$28</font> <font color="#8080ff">; 8699 A2 28 .(</font> +<font color="#00ffff">L869B</font>: <font color="#00ff00">lda</font> <font color="#00ffff">L86D9</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 869B BD D9 86 ...</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; 869E 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; 869F E9 20 . </font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3DE7,x </font> <font color="#8080ff">; 86A1 9D E7 3D ..=</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 86A4 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L869B</font> <font color="#8080ff">; 86A5 D0 F4 ..</font> +<font color="#8080ff">; 1 to 4</font> +<font color="#00ffff">show_current_player</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 86A7 AD FE 06 ...</font> + <font color="#00ff00">ora</font> <font color="#ff6060">#$10</font> <font color="#8080ff">; 86AA 09 10 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3DE9 </font> <font color="#8080ff">; 86AC 8D E9 3D ..=</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_desc</font> <font color="#8080ff">; 86AF AD 80 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3DED </font> <font color="#8080ff">; 86B2 8D ED 3D ..=</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_desc</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 86B5 AD 81 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3DEE </font> <font color="#8080ff">; 86B8 8D EE 3D ..=</font> +<font color="#8080ff">; up to 6 jumpmen, and a + if lives > 6. char $C1 = jumpman icon, $CB = plus sign</font> +<font color="#00ffff">show_lives_icons</font>: + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 86BB A0 00 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$C1</font> <font color="#8080ff">; 86BD A9 C1 ..</font> +<font color="#00ffff">L86BF</font>: <font color="#00ff00">cpy</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; 86BF C0 07 ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L86CE</font> <font color="#8080ff">; 86C1 B0 0B ..</font> + <font color="#00ff00">cpy</font> <font color="#00ffff">lives</font> <font color="#8080ff">; 86C3 CC 0A 07 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L86D3</font> <font color="#8080ff">; 86C6 F0 0B ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3DFD,y </font> <font color="#8080ff">; 86C8 99 FD 3D ..=</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 86CB C8 .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L86BF</font> <font color="#8080ff">; 86CC D0 F1 ..</font> +<font color="#00ffff">L86CE</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$CB</font> <font color="#8080ff">; 86CE A9 CB ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3DFC,y </font> <font color="#8080ff">; 86D0 99 FC 3D ..=</font> +<font color="#00ffff">L86D3</font>: <font color="#00ff00">jsr</font> <font color="#00ffff">L8668</font> <font color="#8080ff">; 86D3 20 68 86 h.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L867E</font> <font color="#8080ff">; 86D6 20 7E 86 ~.</font> +<font color="#00ffff">L86D9</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; 86D9 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">data_table_86da</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$7D</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; 86DA 20 30 20 8C 7D 30 30 20 0 .}00 </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$D3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$CF</font>,<font color="#ff6060">$D2</font>,<font color="#ff6060">$C5</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; 86E2 D3 C3 CF D2 C5 20 20 20 ..... </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; 86EA 20 20 20 20 20 20 20 20 </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$C2</font>,<font color="#ff6060">$CF</font>,<font color="#ff6060">$CE</font>,<font color="#ff6060">$D5</font> <font color="#8080ff">; 86F2 20 20 20 20 C2 CF CE D5 ....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$D3</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; 86FA D3 20 20 20 20 20 20 20 . </font> +<font color="#00ffff">L8702</font>: .<font color="#ffff00">byte</font> <font color="#ff40ff"> $A0 </font> <font color="#8080ff">; 8702 A0 .</font> +<font color="#00ffff">L8703</font>: .<font color="#ffff00">byte</font> <font color="#ff40ff"> $86 </font> <font color="#8080ff">; 8703 86 .</font> +<font color="#00ffff">L8704</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$27</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$E8</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$64</font> <font color="#8080ff">; 8704 01 10 27 00 E8 03 00 64 ..'....d</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 870C 00 00 0A 00 00 01 00 00 ........</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; clear the gameboard screen memory (called before drawing a level, natch)</font> +<font color="#00ffff">clear_screen_mem</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$10</font> <font color="#8080ff">; 8714 A2 10 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff">SAVMSC</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8716 A5 59 .Y</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AF </font> <font color="#8080ff">; 8718 85 AF ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 871A A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AE </font> <font color="#8080ff">; 871C 85 AE ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 871E A8 .</font> +<font color="#00ffff">csm_loop</font>: + <font color="#00ff00">sta</font> <font color="#ff40ff"> ($AE),y </font> <font color="#8080ff">; 871F 91 AE ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8721 C8 .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">csm_loop</font> <font color="#8080ff">; 8722 D0 FB ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $AF </font> <font color="#8080ff">; 8724 E6 AF ..</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8726 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">csm_loop</font> <font color="#8080ff">; 8727 D0 F6 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8729 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; clear P/M mem</font> +<font color="#00ffff">clear_pm_mem</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; 872A A9 09 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; 872C 8D 24 06 .$.</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; 872F A2 05 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8731 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">playing_level</font> <font color="#8080ff">; 8733 8D 27 06 .'.</font> +<font color="#00ffff">L8736</font>: <font color="#00ff00">sta</font> <font color="#ff40ff"> $0681,x </font> <font color="#8080ff">; 8736 9D 81 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0668,x </font> <font color="#8080ff">; 8739 9D 68 06 .h.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069A,x </font> <font color="#8080ff">; 873C 9D 9A 06 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">hide_player</font> <font color="#8080ff">; 873F 20 B8 8D ..</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8742 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8736</font> <font color="#8080ff">; 8743 D0 F1 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$2B</font> <font color="#8080ff">; 8745 A9 2B .+</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B8 </font> <font color="#8080ff">; 8747 85 B8 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8749 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B7 </font> <font color="#8080ff">; 874B 85 B7 ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 874D A8 .</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; 874E A2 05 ..</font> +<font color="#00ffff">L8750</font>: <font color="#00ff00">sta</font> <font color="#ff40ff"> ($B7),y </font> <font color="#8080ff">; 8750 91 B7 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8752 C8 .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8750</font> <font color="#8080ff">; 8753 D0 FB ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $B8 </font> <font color="#8080ff">; 8755 E6 B8 ..</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8757 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8750</font> <font color="#8080ff">; 8758 D0 F6 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 875A 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; set all AUDFx to 0</font> +<font color="#00ffff">silence_audio</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 875B A2 00 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 875D A9 00 ..</font> +<font color="#00ffff">sa_loop</font>:<font color="#00ff00">sta</font> <font color="#ff40ff"> $0640,x </font> <font color="#8080ff">; 875F 9D 40 06 .@.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0641,x </font> <font color="#8080ff">; 8762 9D 41 06 .A.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0660,x </font> <font color="#8080ff">; 8765 9D 60 06 .`.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8768 9D 00 D2 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">store_audc</font> <font color="#8080ff">; 876B 20 C6 8D ..</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 876E E8 .</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 876F E8 .</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 8770 E0 08 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">sa_loop</font> <font color="#8080ff">; 8772 D0 EB ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8774 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; called after level-intro music is finished playing</font> +<font color="#00ffff">enable_joystick</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 8775 A2 08 ..</font> +<font color="#00ffff">ej_loop</font>:<font color="#00ff00">lda</font> <font color="#ff6060">#$E6</font> <font color="#8080ff">; 8777 A9 E6 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_desc</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8779 9D 80 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; 877C A9 06 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_desc</font>+<font color="#ff6060">1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 877E 9D 81 07 ...</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8781 CA .</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8782 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">ej_loop</font> <font color="#8080ff">; 8783 D0 F2 ..</font> + <font color="#00ff00">stx</font> <font color="#00ffff">joystick_disabled</font> <font color="#8080ff">; 8785 8E 32 06 .2.</font> + <font color="#00ff00">stx</font> <font color="#00ffff">sfx_lock</font> <font color="#8080ff">; 8788 8E 2F 06 ./.</font> + <font color="#00ff00">stx</font> <font color="#00ffff">work_level_bullet_chance</font> <font color="#8080ff">; 878B 8E 8B 07 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">clear_pm_mem</font> <font color="#8080ff">; 878E 20 2A 87 *.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">silence_audio</font> <font color="#8080ff">; 8791 20 5B 87 [.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; 8794 A9 30 .0</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">SAVMSC</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8796 85 59 .Y</font> +<font color="#8080ff">; priority $11: pl0-3, pf0-3, bak (and enable 5th player from the missiles) [redundant? init_set_prior sets this, nothing appears to change it]</font> +<font color="#00ffff">set_prior</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$11</font> <font color="#8080ff">; 8798 A9 11 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">PRIOR</font> <font color="#8080ff">; 879A 8D 1B D0 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L88A8</font> <font color="#8080ff">; 879D 4C A8 88 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L87A0</font>: <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; 87A0 AD B4 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 87A3 29 04 ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L87A8</font> <font color="#8080ff">; 87A5 D0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 87A7 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L87A8</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 87A8 AD 7E 06 .~.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 87AB 18 .</font> + <font color="#00ff00">adc</font> <font color="#00ffff">work_level_offs_14</font> <font color="#8080ff">; 87AC 6D 8E 07 m..</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$E0</font> <font color="#8080ff">; 87AF 29 E0 ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B6 </font> <font color="#8080ff">; 87B1 85 B6 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 87B3 18 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 87B4 AD 83 06 ...</font> + <font color="#00ff00">adc</font> <font color="#00ffff">work_level_offs_14</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 87B7 6D 8F 07 m..</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$E0</font> <font color="#8080ff">; 87BA 29 E0 ).</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 87BC 4A J</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 87BD 4A J</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 87BE 4A J</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 87BF 4A J</font> + <font color="#00ff00">ora</font> <font color="#ff40ff"> $B6 </font> <font color="#8080ff">; 87C0 05 B6 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B6 </font> <font color="#8080ff">; 87C2 85 B6 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_map2</font> <font color="#8080ff">; 87C4 AD 9A 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B4 </font> <font color="#8080ff">; 87C7 85 B4 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_map2</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 87C9 AD 9B 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B5 </font> <font color="#8080ff">; 87CC 85 B5 ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 87CE A0 00 ..</font> +<font color="#00ffff">L87D0</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> ($B4),y </font> <font color="#8080ff">; 87D0 B1 B4 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 87D2 C9 FF ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L87D7</font> <font color="#8080ff">; 87D4 D0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 87D6 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L87D7</font>: <font color="#00ff00">cmp</font> <font color="#ff40ff"> $B6 </font> <font color="#8080ff">; 87D7 C5 B6 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L87E0</font> <font color="#8080ff">; 87D9 F0 05 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 87DB C8 .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 87DC C8 .</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L87D0</font> <font color="#8080ff">; 87DD 4C D0 87 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L87E0</font>: <font color="#00ff00">lda</font> <font color="#00ffff">work_level_map1</font> <font color="#8080ff">; 87E0 AD 98 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B0 </font> <font color="#8080ff">; 87E3 85 B0 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_map1</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 87E5 AD 99 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B1 </font> <font color="#8080ff">; 87E8 85 B1 ..</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; 87EA 98 .</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B2 </font> <font color="#8080ff">; 87EB 85 B2 ..</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 87ED 4A J</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 87EE 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $B2 </font> <font color="#8080ff">; 87EF 65 B2 e.</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 87F1 A8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($B0),y </font> <font color="#8080ff">; 87F2 B1 B0 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06DC </font> <font color="#8080ff">; 87F4 8D DC 06 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 87F7 C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($B0),y </font> <font color="#8080ff">; 87F8 B1 B0 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06DD </font> <font color="#8080ff">; 87FA 8D DD 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$92</font> <font color="#8080ff">; 87FD A9 92 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; 87FF 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$88</font> <font color="#8080ff">; 8802 A9 88 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8804 8D 3D 06 .=.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 8807 A9 08 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; 8809 20 06 80 ..</font> + <font color="#00ff00">ldy</font> <font color="#ff40ff"> $B2 </font> <font color="#8080ff">; 880C A4 B2 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 880E C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($B4),y </font> <font color="#8080ff">; 880F B1 B4 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8856</font> <font color="#8080ff">; 8811 F0 43 .C</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$F0</font> <font color="#8080ff">; 8813 29 F0 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8831</font> <font color="#8080ff">; 8815 F0 1A ..</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 8817 4A J</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 8818 4A J</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 8819 4A J</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 881A A8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_unkn_table1</font> <font color="#8080ff">; 881B AD 9C 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B0 </font> <font color="#8080ff">; 881E 85 B0 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_unkn_table1</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8820 AD 9D 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B1 </font> <font color="#8080ff">; 8823 85 B1 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($B0),y </font> <font color="#8080ff">; 8825 B1 B0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; 8827 85 C0 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8829 C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($B0),y </font> <font color="#8080ff">; 882A B1 B0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 882C 85 C1 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">draw_map_jv</font> <font color="#8080ff">; 882E 20 00 80 ..</font> +<font color="#00ffff">L8831</font>: <font color="#00ff00">ldy</font> <font color="#ff40ff"> $B2 </font> <font color="#8080ff">; 8831 A4 B2 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8833 C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($B4),y </font> <font color="#8080ff">; 8834 B1 B4 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8856</font> <font color="#8080ff">; 8836 F0 1E ..</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 8838 29 0F ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8856</font> <font color="#8080ff">; 883A F0 1A ..</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; 883C 0A .</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 883D A8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_offs_30</font> <font color="#8080ff">; 883E AD 9E 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B0 </font> <font color="#8080ff">; 8841 85 B0 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_offs_30</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8843 AD 9F 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B1 </font> <font color="#8080ff">; 8846 85 B1 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($B0),y </font> <font color="#8080ff">; 8848 B1 B0 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06E4 </font> <font color="#8080ff">; 884A 8D E4 06 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 884D C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($B0),y </font> <font color="#8080ff">; 884E B1 B0 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06E5 </font> <font color="#8080ff">; 8850 8D E5 06 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L06E3</font> <font color="#8080ff">; 8853 20 E3 06 ..</font> +<font color="#00ffff">L8856</font>: <font color="#00ff00">lda</font> <font color="#00ffff">work_level_sub4</font> <font color="#8080ff">; 8856 AD A0 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06E4 </font> <font color="#8080ff">; 8859 8D E4 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_sub4</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 885C AD A1 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06E5 </font> <font color="#8080ff">; 885F 8D E5 06 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L06E3</font> <font color="#8080ff">; 8862 20 E3 06 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 8865 18 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">score</font> <font color="#8080ff">; 8866 AD 00 07 ...</font> + <font color="#00ff00">adc</font> <font color="#00ffff">work_level_points_per_bomb</font> <font color="#8080ff">; 8869 6D 90 07 m..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">score</font> <font color="#8080ff">; 886C 8D 00 07 ...</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L8879</font> <font color="#8080ff">; 886F 90 08 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">score</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8871 EE 01 07 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8879</font> <font color="#8080ff">; 8874 D0 03 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">score</font>+<font color="#ff6060">2</font> <font color="#8080ff">; 8876 EE 02 07 ...</font> +<font color="#00ffff">L8879</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$D9</font> <font color="#8080ff">; 8879 A9 D9 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; 887B 85 C0 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; 887D A9 06 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 887F 85 C1 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">draw_map_jv</font> <font color="#8080ff">; 8881 20 00 80 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L800C</font> <font color="#8080ff">; 8884 20 0C 80 ..</font> + <font color="#00ff00">dec</font> <font color="#00ffff">work_level_num_bombs</font> <font color="#8080ff">; 8887 CE 8A 07 ...</font> +<font color="#00ffff">L888A</font>: <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; 888A AD B4 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 888D 29 04 ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L888A</font> <font color="#8080ff">; 888F D0 F9 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8891 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">data_8892</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$1E</font> <font color="#8080ff">; 8892 01 A6 00 1E 03 28 03 1E .....(..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$1E</font> <font color="#8080ff">; 889A 03 28 03 1E 03 28 03 1E .(...(..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 88A2 03 28 03 00 00 00 .(....</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L88A8</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 88A8 A2 00 ..</font> + <font color="#00ff00">txa</font> <font color="#8080ff">; 88AA 8A .</font> +<font color="#00ffff">L88AB</font>: <font color="#00ff00">sta</font> <font color="#ff40ff"> $2B00,x </font> <font color="#8080ff">; 88AB 9D 00 2B ..+</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2C00,x </font> <font color="#8080ff">; 88AE 9D 00 2C ..,</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2D00,x </font> <font color="#8080ff">; 88B1 9D 00 2D ..-</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2E00,x </font> <font color="#8080ff">; 88B4 9D 00 2E ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2F00,x </font> <font color="#8080ff">; 88B7 9D 00 2F ../</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 88BA CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L88AB</font> <font color="#8080ff">; 88BB D0 EE ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 88BD 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88BE 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88BF 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88C0 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88C1 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88C2 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88C3 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88C4 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88C5 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88C6 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88C7 00 .</font> +<font color="#00ffff">check_consol</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">player_delta_x</font> <font color="#8080ff">; 88C8 AD 30 06 .0.</font> + <font color="#00ff00">ora</font> <font color="#00ffff">player_delta_y</font> <font color="#8080ff">; 88CB 0D 31 06 .1.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L88DC</font> <font color="#8080ff">; 88CE D0 0C ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff">CONSOL</font> <font color="#8080ff">; 88D0 AD 1F D0 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; 88D3 29 07 ).</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; 88D5 C9 07 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L88DC</font> <font color="#8080ff">; 88D7 D0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L88E0</font> <font color="#8080ff">; 88D9 4C E0 88 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L88DC</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 88DC A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $A2 </font> <font color="#8080ff">; 88DE 85 A2 ..</font> +<font color="#00ffff">L88E0</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $A0 </font> <font color="#8080ff">; 88E0 A5 A0 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L88E7</font> <font color="#8080ff">; 88E2 D0 03 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $A2 </font> <font color="#8080ff">; 88E4 85 A2 ..</font> +<font color="#00ffff">L88E6</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; 88E6 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L88E7</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $A2 </font> <font color="#8080ff">; 88E7 A5 A2 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$28</font> <font color="#8080ff">; 88E9 C9 28 .(</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L88E6</font> <font color="#8080ff">; 88EB 90 F9 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 88ED A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $A0 </font> <font color="#8080ff">; 88EF 85 A0 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $A2 </font> <font color="#8080ff">; 88F1 85 A2 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 88F3 A2 FF ..</font> + <font color="#00ff00">txs</font> <font color="#8080ff">; 88F5 9A .</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">init_game</font> <font color="#8080ff">; 88F6 4C 00 90 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88F9 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88FA 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88FB 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88FC 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88FD 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88FE 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 88FF 00 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0621 </font> <font color="#8080ff">; 8900 AD 21 06 .!.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L890F</font> <font color="#8080ff">; 8903 F0 0A ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; 8905 AD 23 06 .#.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 8908 C9 01 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8910</font> <font color="#8080ff">; 890A F0 04 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L89F3</font> <font color="#8080ff">; 890C 4C F3 89 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L890F</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; 890F 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8910</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $06EE </font> <font color="#8080ff">; 8910 AD EE 06 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8945</font> <font color="#8080ff">; 8913 D0 30 .0</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $06EE </font> <font color="#8080ff">; 8915 EE EE 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 8918 A9 02 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; 891A 8D 24 06 .$.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067F </font> <font color="#8080ff">; 891D 8D 7F 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8920 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">playing_level</font> <font color="#8080ff">; 8922 8D 27 06 .'.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06E9 </font> <font color="#8080ff">; 8925 8D E9 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06EA </font> <font color="#8080ff">; 8928 8D EA 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; 892B AD 0A D2 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 892E 29 0F ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 8930 8D 88 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 8933 EE 88 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$60</font> <font color="#8080ff">; 8936 A9 60 .`</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_tempo</font> <font color="#8080ff">; 8938 8D 3E 06 .>.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8A</font> <font color="#8080ff">; 893B A9 8A ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_timer</font> <font color="#8080ff">; 893D 8D 3F 06 .?.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; 8940 A9 07 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8003</font> <font color="#8080ff">; 8942 20 03 80 ..</font> +<font color="#00ffff">L8945</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 8945 AD 83 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$C6</font> <font color="#8080ff">; 8948 C9 C6 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L895D</font> <font color="#8080ff">; 894A 90 11 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 894C A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF1</font> <font color="#8080ff">; 894E 8D 00 D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDC1</font> <font color="#8080ff">; 8951 8D 01 D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06EF </font> <font color="#8080ff">; 8954 8D EF 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; 8957 EE 23 06 .#.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L89F3</font> <font color="#8080ff">; 895A 4C F3 89 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L895D</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$70</font> <font color="#8080ff">; 895D A9 70 .p</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0801 </font> <font color="#8080ff">; 895F 8D 01 08 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">game_display_list</font> <font color="#8080ff">; 8962 8D 81 08 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $06EA </font> <font color="#8080ff">; 8965 AD EA 06 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L89A9</font> <font color="#8080ff">; 8968 D0 3F .?</font> +<font color="#00ffff">L896A</font>: <font color="#00ff00">inc</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 896A EE 83 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 896D EE 83 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 8970 AD 83 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF1</font> <font color="#8080ff">; 8973 8D 00 D2 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$A3</font> <font color="#8080ff">; 8976 A9 A3 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDC1</font> <font color="#8080ff">; 8978 8D 01 D2 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; 897B AD B4 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 897E 29 01 ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">falling_bounce</font> <font color="#8080ff">; 8980 D0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8982 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; this looks like it hurts...</font> +<font color="#00ffff">falling_bounce</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; 8983 AD 0A D2 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8986 29 03 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">falling_bounce</font> <font color="#8080ff">; 8988 F0 F9 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06E9 </font> <font color="#8080ff">; 898A 8D E9 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 898D A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06EA </font> <font color="#8080ff">; 898F 8D EA 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$50</font> <font color="#8080ff">; 8992 A9 50 .P</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0801 </font> <font color="#8080ff">; 8994 8D 01 08 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">game_display_list</font> <font color="#8080ff">; 8997 8D 81 08 ...</font> +<font color="#00ffff">play_sfx_bounce_1</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$4B</font> <font color="#8080ff">; 899A A9 4B .K</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_tempo</font> <font color="#8080ff">; 899C 8D 3E 06 .>.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8A</font> <font color="#8080ff">; 899F A9 8A ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_timer</font> <font color="#8080ff">; 89A1 8D 3F 06 .?.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 89A4 A9 04 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8003</font> <font color="#8080ff">; 89A6 20 03 80 ..</font> +<font color="#00ffff">L89A9</font>: <font color="#00ff00">ldx</font> <font color="#ff40ff"> $06EA </font> <font color="#8080ff">; 89A9 AE EA 06 ...</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; 89AC E0 09 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L89B8</font> <font color="#8080ff">; 89AE D0 08 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 89B0 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06EA </font> <font color="#8080ff">; 89B2 8D EA 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L896A</font> <font color="#8080ff">; 89B5 4C 6A 89 Lj.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L89B8</font>: <font color="#00ff00">ldy</font> <font color="#00ffff">data_table_8a39</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 89B8 BC 39 8A .9.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $06E9 </font> <font color="#8080ff">; 89BB AD E9 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 89BE C9 01 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L89D1</font> <font color="#8080ff">; 89C0 F0 0F ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 89C2 A0 00 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 89C4 C9 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L89D1</font> <font color="#8080ff">; 89C6 F0 09 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">data_table_8a39</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 89C8 BD 39 8A .9.</font> + <font color="#00ff00">eor</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 89CB 49 FF I.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 89CD 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 89CE 69 01 i.</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 89D0 A8 .</font> +<font color="#00ffff">L89D1</font>: <font color="#00ff00">clc</font> <font color="#8080ff">; 89D1 18 .</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; 89D2 98 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 89D3 6D 7E 06 m~.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 89D6 8D 7E 06 .~.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L8A42</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 89D9 BD 42 8A .B.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 89DC 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 89DD 6D 83 06 m..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 89E0 8D 83 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF1</font> <font color="#8080ff">; 89E3 8D 00 D2 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $06EA </font> <font color="#8080ff">; 89E6 EE EA 06 ...</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 89E9 18 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0620 </font> <font color="#8080ff">; 89EA AD 20 06 . .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$12</font> <font color="#8080ff">; 89ED 69 12 i.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 89EF 8D 88 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 89F2 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L89F3</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; 89F3 AD 23 06 .#.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 89F6 C9 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L89FB</font> <font color="#8080ff">; 89F8 F0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 89FA 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L89FB</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $06EF </font> <font color="#8080ff">; 89FB AD EF 06 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8A16</font> <font color="#8080ff">; 89FE D0 16 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_2</font> <font color="#8080ff">; 8A00 8D 1B 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $06EF </font> <font color="#8080ff">; 8A03 EE EF 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8A06 A9 00 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_music_jv</font> <font color="#8080ff">; 8A08 20 18 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 8A0B A9 04 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; 8A0D 8D 24 06 .$.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$16</font> <font color="#8080ff">; 8A10 A9 16 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 8A12 8D 88 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8A15 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8A16</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0663 </font> <font color="#8080ff">; 8A16 AD 63 06 .c.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8A25</font> <font color="#8080ff">; 8A19 F0 0A ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$16</font> <font color="#8080ff">; 8A1B A9 16 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 8A1D 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $061F </font> <font color="#8080ff">; 8A1E 6D 1F 06 m..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 8A21 8D 88 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8A24 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8A25</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; 8A25 A9 09 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; 8A27 8D 24 06 .$.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8A2A A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; 8A2C 8D 23 06 .#.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 8A2F 8D 7E 06 .~.</font> + <font color="#00ff00">dec</font> <font color="#00ffff">lives</font> <font color="#8080ff">; 8A32 CE 0A 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06EE </font> <font color="#8080ff">; 8A35 8D EE 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8A38 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">data_table_8a39</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8A39 02 02 02 02 02 02 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; 8A41 00 .</font> +<font color="#00ffff">L8A42</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 8A42 FE FE 00 00 02 02 02 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $02 </font> <font color="#8080ff">; 8A4A 02 .</font> +<font color="#8080ff">; used when jumpman is falling?</font> +<font color="#00ffff">sfx_bounce_1</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$8E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$8B</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8A4B 01 8E 00 30 01 01 8B 00 ...0....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$88</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; 8A53 40 01 01 88 00 50 01 01 @....P..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$85</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8A5B 85 00 60 01 00 ..`..</font> +<font color="#8080ff">; jumpman hit by bullet or started falling</font> +<font color="#00ffff">sfx_death</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$C8</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FA</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$14</font> <font color="#8080ff">; 8A60 01 C8 00 0A 02 FA 02 14 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$F0</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$E8</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$28</font> <font color="#8080ff">; 8A68 02 F0 02 1E 02 E8 02 28 .......(</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$DC</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$D2</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$3C</font> <font color="#8080ff">; 8A70 02 DC 02 32 02 D2 02 3C ...2...<</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$C8</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8A78 02 C8 02 00 00 00 00 00 ........</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">play_sfx_bounce_2</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff"> $061F </font> <font color="#8080ff">; 8A80 AD 1F 06 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8A94</font> <font color="#8080ff">; 8A83 D0 0F ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$97</font> <font color="#8080ff">; 8A85 A9 97 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_tempo</font> <font color="#8080ff">; 8A87 8D 3E 06 .>.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8A</font> <font color="#8080ff">; 8A8A A9 8A ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_timer</font> <font color="#8080ff">; 8A8C 8D 3F 06 .?.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 8A8F A9 02 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8003</font> <font color="#8080ff">; 8A91 20 03 80 ..</font> +<font color="#00ffff">L8A94</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">L9925</font> <font color="#8080ff">; 8A94 4C 25 99 L%.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; used when jumpman is falling?</font> +<font color="#00ffff">sfx_bounce_2</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$81</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8A97 01 81 00 04 01 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8A9F 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8AA7 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; 8AAF 00 .</font> +<font color="#00ffff">sfx_option_pressed</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8AB0 01 A4 00 3C 02 00 00 00 ...<....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8AB8 00 00 00 00 00 00 00 00 ........</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">cart_entry_point</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8AC0 A2 00 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8AC2 A9 00 ..</font> +<font color="#8080ff">; clear pages 6 and 7</font> +<font color="#00ffff">init_loop</font>: + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0600,x </font> <font color="#8080ff">; 8AC4 9D 00 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">score</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8AC7 9D 00 07 ...</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 8ACA E8 .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">init_loop</font> <font color="#8080ff">; 8ACB D0 F7 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">init_hardware</font> <font color="#8080ff">; 8ACD 20 7C 83 |.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$DD</font> <font color="#8080ff">; 8AD0 A9 DD ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; 8AD2 8D AC 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8A</font> <font color="#8080ff">; 8AD5 A9 8A ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_hi</font> <font color="#8080ff">; 8AD7 8D AD 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">init_game</font> <font color="#8080ff">; 8ADA 4C 00 90 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; yet another jump-to-itself empty display list</font> +<font color="#00ffff">blank_dlist_8add</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$41</font>,<font color="#ff6060">$DD</font>,<font color="#ff6060">$8A</font> <font color="#8080ff">; 8ADD 41 DD 8A A..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8AE0</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$EB</font> <font color="#8080ff">; 8AE0 A9 EB ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; 8AE2 8D AC 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8A</font> <font color="#8080ff">; 8AE5 A9 8A ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_hi</font> <font color="#8080ff">; 8AE7 8D AD 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8AEA 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; another jump-to-itself empty display list</font> +<font color="#00ffff">blank_dlist_8aeb</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$41</font>,<font color="#ff6060">$EB</font>,<font color="#ff6060">$8A</font> <font color="#8080ff">; 8AEB 41 EB 8A A..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AEE 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AEF 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AF0 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AF1 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AF2 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AF3 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AF4 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AF5 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AF6 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AF7 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AF8 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AF9 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AFA 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AFB 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AFC 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8AFD 00 .</font> +<font color="#00ffff">cart_start_stub</font>: + <font color="#00ff00">clc</font> <font color="#8080ff">; 8AFE 18 .</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8AFF 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B00 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B01 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B02 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B03 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B04 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B05 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B06 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B07 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B08 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B09 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B0A 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B0B 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B0C 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B0D 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B0E 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B0F 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B10 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B11 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B12 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B13 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B14 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B15 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B16 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B17 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B18 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B19 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B1A 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B1B 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B1C 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B1D 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B1E 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B1F 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B20 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B21 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8B22 00 .</font> +<font color="#00ffff">L8B23</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; 8B23 A2 20 . </font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8B25 A9 00 ..</font> +<font color="#00ffff">L8B27</font>: <font color="#00ff00">sta</font> <font color="#ff40ff"> $075F,x </font> <font color="#8080ff">; 8B27 9D 5F 07 ._.</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8B2A CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8B27</font> <font color="#8080ff">; 8B2B D0 FA ..</font> +<font color="#00ffff">L8B2D</font>: <font color="#00ff00">lda</font> <font color="#00ffff">work_level_unkn_table0</font> <font color="#8080ff">; 8B2D AD 94 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AC </font> <font color="#8080ff">; 8B30 85 AC ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_unkn_table0</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8B32 AD 95 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AD </font> <font color="#8080ff">; 8B35 85 AD ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8B37 A0 00 ..</font> +<font color="#00ffff">L8B39</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> ($AC),y </font> <font color="#8080ff">; 8B39 B1 AC ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 8B3B C9 FF ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8B7A</font> <font color="#8080ff">; 8B3D F0 3B .;</font> + <font color="#00ff00">tax</font> <font color="#8080ff">; 8B3F AA .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8B40 C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($AC),y </font> <font color="#8080ff">; 8B41 B1 AC ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $066E,x </font> <font color="#8080ff">; 8B43 9D 6E 06 .n.</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8B46 C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($AC),y </font> <font color="#8080ff">; 8B47 B1 AC ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0673,x </font> <font color="#8080ff">; 8B49 9D 73 06 .s.</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8B4C C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($AC),y </font> <font color="#8080ff">; 8B4D B1 AC ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0678,x </font> <font color="#8080ff">; 8B4F 9D 78 06 .x.</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8B52 C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($AC),y </font> <font color="#8080ff">; 8B53 B1 AC ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067D,x </font> <font color="#8080ff">; 8B55 9D 7D 06 .}.</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8B58 C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($AC),y </font> <font color="#8080ff">; 8B59 B1 AC ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0682,x </font> <font color="#8080ff">; 8B5B 9D 82 06 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8B5E C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($AC),y </font> <font color="#8080ff">; 8B5F B1 AC ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0687,x </font> <font color="#8080ff">; 8B61 9D 87 06 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8B64 C8 .</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; 8B65 98 .</font> + <font color="#00ff00">pha</font> <font color="#8080ff">; 8B66 48 H</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> ($AC),y </font> <font color="#8080ff">; 8B67 B1 AC ..</font> + <font color="#00ff00">ldy</font> <font color="#00ffff">pcolor0_table</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8B69 BC 7B 8B .{.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">PCOLR0</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8B6C 99 C0 02 ...</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 8B6F 68 h</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 8B70 A8 .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8B71 C8 .</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8B72 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0696,x </font> <font color="#8080ff">; 8B74 9D 96 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8B39</font> <font color="#8080ff">; 8B77 4C 39 8B L9.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8B7A</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; 8B7A 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">pcolor0_table</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$07</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$03</font> <font color="#8080ff">; 8B7B 07 00 01 02 03 .....</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; show scores, called at end of game, also called after beating level 12 (after WELL DONE). $40 in NMIEN = disable DLI, enable VBI</font> +<font color="#00ffff">player_scores_screen</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$40</font> <font color="#8080ff">; 8B80 A9 40 .@</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">NMIEN</font> <font color="#8080ff">; 8B82 8D 0E D4 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$82</font> <font color="#8080ff">; 8B85 A9 82 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; 8B87 8D AC 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8C</font> <font color="#8080ff">; 8B8A A9 8C ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_hi</font> <font color="#8080ff">; 8B8C 8D AD 06 ...</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; 8B8F A2 06 ..</font> +<font color="#00ffff">L8B91</font>: <font color="#00ff00">lda</font> <font color="#00ffff">scores_msg</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8B91 BD 7B 8C .{.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3006,x </font> <font color="#8080ff">; 8B94 9D 06 30 ..0</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8B97 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8B91</font> <font color="#8080ff">; 8B98 D0 F7 ..</font> + <font color="#00ff00">ldx</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 8B9A AE FE 06 ...</font> + <font color="#00ff00">ldy</font> <font color="#00ffff">struct_player_lives_offsets_minus_one</font>,<font color="#00ffff">x</font><font color="#8080ff">; 8B9D BC 88 8C ...</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8BA0 A2 03 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">lives</font> <font color="#8080ff">; 8BA2 AD 0A 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0713,y </font> <font color="#8080ff">; 8BA5 99 13 07 ...</font> +<font color="#00ffff">L8BA8</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $06FF,x </font> <font color="#8080ff">; 8BA8 BD FF 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $070B,y </font> <font color="#8080ff">; 8BAB 99 0B 07 ...</font> + <font color="#00ff00">dey</font> <font color="#8080ff">; 8BAE 88 .</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8BAF CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8BA8</font> <font color="#8080ff">; 8BB0 D0 F6 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8BB2 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; 8BB4 85 AA ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AB </font> <font color="#8080ff">; 8BB6 85 AB ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 8BB8 A8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">number_of_players</font> <font color="#8080ff">; 8BB9 AD F4 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AE </font> <font color="#8080ff">; 8BBC 85 AE ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $AE </font> <font color="#8080ff">; 8BBE E6 AE ..</font> +<font color="#8080ff">; shows PLAYER (backwards loop)</font> +<font color="#00ffff">show_reyalp_msg</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$14</font> <font color="#8080ff">; 8BC0 A2 14 ..</font> +<font color="#00ffff">reyalp_msg_loop</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">reyalp_msg_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8BC2 BD 67 8C .g.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3028,y </font> <font color="#8080ff">; 8BC5 99 28 30 .(0</font> +<font color="#8080ff">; replace 10th char with the ASCII player number</font> +<font color="#00ffff">check_10th</font>: + <font color="#00ff00">cpx</font> <font color="#ff6060">#$0A</font> <font color="#8080ff">; 8BC8 E0 0A ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">continue_loop</font> <font color="#8080ff">; 8BCA D0 09 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; 8BCC E6 AA ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; 8BCE A5 AA ..</font> + <font color="#00ff00">ora</font> <font color="#ff6060">#$10</font> <font color="#8080ff">; 8BD0 09 10 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3028,y </font> <font color="#8080ff">; 8BD2 99 28 30 .(0</font> +<font color="#00ffff">continue_loop</font>: + <font color="#00ff00">iny</font> <font color="#8080ff">; 8BD5 C8 .</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8BD6 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">reyalp_msg_loop</font> <font color="#8080ff">; 8BD7 D0 E9 ..</font> + <font color="#00ff00">sty</font> <font color="#ff40ff"> $AD </font> <font color="#8080ff">; 8BD9 84 AD ..</font> + <font color="#00ff00">ldx</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; 8BDB A6 AA ..</font> + <font color="#00ff00">ldy</font> <font color="#00ffff">struct_player_lives_offsets_minus_one</font>,<font color="#00ffff">x</font><font color="#8080ff">; 8BDD BC 88 8C ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8BE0 A9 00 ..</font> +<font color="#8080ff">; $AF is the character to show after the score (space for alive, cross for dead)</font> +<font color="#00ffff">store_space</font>: + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AF </font> <font color="#8080ff">; 8BE2 85 AF ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0713,y </font> <font color="#8080ff">; 8BE4 B9 13 07 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 8BE7 C9 FF ..</font> +<font color="#8080ff">; player still has lives left?</font> +<font color="#00ffff">check_alive</font>: + <font color="#00ff00">bne</font> <font color="#00ffff">no_cross</font> <font color="#8080ff">; 8BE9 D0 04 ..</font> +<font color="#8080ff">; no, show a cross instead of a space</font> +<font color="#00ffff">not_alive</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$5E</font> <font color="#8080ff">; 8BEB A9 5E .^</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AF </font> <font color="#8080ff">; 8BED 85 AF ..</font> +<font color="#00ffff">no_cross</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">L8C84</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8BEF BD 84 8C ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D3 </font> <font color="#8080ff">; 8BF2 85 D3 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; 8BF4 A9 30 .0</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D4 </font> <font color="#8080ff">; 8BF6 85 D4 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8BF8 A2 03 ..</font> +<font color="#00ffff">L8BFA</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $070B,y </font> <font color="#8080ff">; 8BFA B9 0B 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $CF,x </font> <font color="#8080ff">; 8BFD 95 CF ..</font> + <font color="#00ff00">dey</font> <font color="#8080ff">; 8BFF 88 .</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 8C00 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8BFA</font> <font color="#8080ff">; 8C01 D0 F7 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">xxx_level_something_jv</font> <font color="#8080ff">; 8C03 20 09 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $AF </font> <font color="#8080ff">; 8C06 A5 AF ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8C08 C8 .</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> ($D3),y </font> <font color="#8080ff">; 8C09 91 D3 ..</font> + <font color="#00ff00">ldy</font> <font color="#ff40ff"> $AD </font> <font color="#8080ff">; 8C0B A4 AD ..</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $AE </font> <font color="#8080ff">; 8C0D C6 AE ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">show_reyalp_msg</font> <font color="#8080ff">; 8C0F D0 AF ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$96</font> <font color="#8080ff">; 8C11 A9 96 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR3</font> <font color="#8080ff">; 8C13 8D C7 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$C6</font> <font color="#8080ff">; 8C16 A9 C6 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; 8C18 8D C4 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 8C1B A9 08 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR1</font> <font color="#8080ff">; 8C1D 8D C5 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$52</font> <font color="#8080ff">; 8C20 A9 52 .R</font> +<font color="#8080ff">; set dlist shadow to scores_screen_dlist</font> +<font color="#00ffff">show_scores_screen</font>: + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; 8C22 8D AC 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8C</font> <font color="#8080ff">; 8C25 A9 8C ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_hi</font> <font color="#8080ff">; 8C27 8D AD 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8D</font> <font color="#8080ff">; 8C2A A9 8D ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dli_vec_shadow_lo</font> <font color="#8080ff">; 8C2C 8D AE 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8C</font> <font color="#8080ff">; 8C2F A9 8C ..</font> +<font color="#8080ff">; dli = score_screen_dli_sr</font> +<font color="#00ffff">set_score_screen_dli</font>: + <font color="#00ff00">sta</font> <font color="#00ffff">dli_vec_shadow_hi</font> <font color="#8080ff">; 8C31 8D AF 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 8C34 A9 02 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_music_jv</font> <font color="#8080ff">; 8C36 20 18 80 ..</font> +<font color="#8080ff">; I *think* we're waiting for the music to finish playing...</font> +<font color="#00ffff">what_are_we_waiting_for</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0640 </font> <font color="#8080ff">; 8C39 AD 40 06 .@.</font> + <font color="#00ff00">ora</font> <font color="#ff40ff"> $0642 </font> <font color="#8080ff">; 8C3C 0D 42 06 .B.</font> + <font color="#00ff00">ora</font> <font color="#ff40ff"> $0644 </font> <font color="#8080ff">; 8C3F 0D 44 06 .D.</font> + <font color="#00ff00">ora</font> <font color="#00ffff">sfx_slot_duration</font> <font color="#8080ff">; 8C42 0D 46 06 .F.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">what_are_we_waiting_for</font> <font color="#8080ff">; 8C45 D0 F2 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; 8C47 8D 1A 06 ...</font> +<font color="#8080ff">; wait 192 jiffies: 3.2 sec (ntsc), 3.84 sec (pal)</font> +<font color="#00ffff">wait_3_sec</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; 8C4A AD 1A 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$C0</font> <font color="#8080ff">; 8C4D C9 C0 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">wait_3_sec</font> <font color="#8080ff">; 8C4F D0 F9 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8C51 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a GR.2-ish DL, with DLIs, screen mem at $3000, for player scores screen</font> +<font color="#00ffff">scores_screen_dlist</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font> <font color="#8080ff">; 8C52 70 70 70 30 70 70 70 70 ppp0pppp</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$47</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$87</font>,<font color="#ff6060">$87</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$87</font>,<font color="#ff6060">$10</font> <font color="#8080ff">; 8C5A 47 00 30 87 87 10 87 10 G.0.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$87</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$52</font> <font color="#8080ff">; 8C62 87 10 07 41 52 ...AR</font> +<font color="#00ffff">reyalp_msg_minus_one</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $8C </font> <font color="#8080ff">; 8C67 8C .</font> +<font color="#8080ff">; player spelled backwards: ' 0 # REYALP '</font> +<font color="#00ffff">reyalp_msg</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$80</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$80</font> <font color="#8080ff">; 8C68 80 80 10 80 80 80 80 80 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$80</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$39</font>,<font color="#ff6060">$21</font> <font color="#8080ff">; 8C70 80 80 03 80 32 25 39 21 ....2%9!</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$2C</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$80</font> <font color="#8080ff">; 8C78 2C 30 80 ,0.</font> +<font color="#8080ff">; ' SCORES' in color 3</font> +<font color="#00ffff">scores_msg</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$80</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$E3</font>,<font color="#ff6060">$EF</font>,<font color="#ff6060">$F2</font>,<font color="#ff6060">$E5</font>,<font color="#ff6060">$F3</font> <font color="#8080ff">; 8C7B 80 F3 E3 EF F2 E5 F3 .......</font> +<font color="#8080ff">; looks like an empty jump-to-itself dlist</font> +<font color="#00ffff">blank_dlist_8c82</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$41</font>,<font color="#ff6060">$82</font> <font color="#8080ff">; 8C82 41 82 A.</font> +<font color="#00ffff">L8C84</font>: .<font color="#ffff00">byte</font> <font color="#ff40ff"> $8C </font> <font color="#8080ff">; 8C84 8C .</font> +<font color="#8080ff">; offsets into screen memory, column 12, rows 2 3 4 5, used by code at $8BEF, loaded in $d3, hi byte in $d4 is $30</font> +<font color="#00ffff">score_offsets</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$34</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$5C</font> <font color="#8080ff">; 8C85 34 48 5C 4H\</font> +<font color="#00ffff">struct_player_lives_offsets_minus_one</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $70 </font> <font color="#8080ff">; 8C88 70 p</font> +<font color="#8080ff">; lookup table, offset from $713 to lives for indexed player</font> +<font color="#00ffff">struct_player_lives_offsets</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$0D</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$23</font> <font color="#8080ff">; 8C89 02 0D 18 23 ...#</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; used by score screen</font> +<font color="#00ffff">score_screen_dli_sr</font>: + <font color="#00ff00">pha</font> <font color="#8080ff">; 8C8D 48 H</font> + <font color="#00ff00">lda</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 8C8E AD FE 06 ...</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; 8C91 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 8C92 E9 01 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">WSYNC</font> <font color="#8080ff">; 8C94 8D 0A D4 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $AB </font> <font color="#8080ff">; 8C97 C5 AB ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8CA4</font> <font color="#8080ff">; 8C99 D0 09 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $062A </font> <font color="#8080ff">; 8C9B AD 2A 06 .*.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLPF0</font> <font color="#8080ff">; 8C9E 8D 16 D0 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8CAA</font> <font color="#8080ff">; 8CA1 4C AA 8C L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8CA4</font>: <font color="#00ff00">lda</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; 8CA4 AD C4 02 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLPF0</font> <font color="#8080ff">; 8CA7 8D 16 D0 ...</font> +<font color="#00ffff">L8CAA</font>: <font color="#00ff00">inc</font> <font color="#ff40ff"> $AB </font> <font color="#8080ff">; 8CAA E6 AB ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $AB </font> <font color="#8080ff">; 8CAC A5 AB ..</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8CAE 29 03 ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AB </font> <font color="#8080ff">; 8CB0 85 AB ..</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 8CB2 68 h</font> + <font color="#00ff00">rti</font> <font color="#8080ff">; 8CB3 40 @</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8CB4 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8CB5 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8CB6 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8CB7 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8CB8 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8CB9 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8CBA 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8CBB 00 .</font> +<font color="#00ffff">L8CBC</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8CBC A2 03 ..</font> +<font color="#00ffff">L8CBE</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $06FF,x </font> <font color="#8080ff">; 8CBE BD FF 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#00ffff">score</font>+<font color="#ff6060">2</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8CC1 DD 02 07 ...</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L8CFA</font> <font color="#8080ff">; 8CC4 90 34 .4</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8CCB</font> <font color="#8080ff">; 8CC6 F0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">show_l_equals</font> <font color="#8080ff">; 8CC8 4C CE 8C L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8CCB</font>: <font color="#00ff00">dex</font> <font color="#8080ff">; 8CCB CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8CBE</font> <font color="#8080ff">; 8CCC D0 F0 ..</font> +<font color="#8080ff">; L= (for lives display)</font> +<font color="#00ffff">show_l_equals</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8CCE A2 00 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 8CD0 18 .</font> +<font color="#00ffff">L8CD1</font>: <font color="#00ff00">lda</font> <font color="#00ffff">l_equals</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8CD1 BD FD 8C ...</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $0703,x </font> <font color="#8080ff">; 8CD4 7D 03 07 }..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0703,x </font> <font color="#8080ff">; 8CD7 9D 03 07 ...</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 8CDA E8 .</font> + <font color="#00ff00">php</font> <font color="#8080ff">; 8CDB 08 .</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8CDC E0 03 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">add_extra_life</font> <font color="#8080ff">; 8CDE F0 04 ..</font> + <font color="#00ff00">plp</font> <font color="#8080ff">; 8CE0 28 (</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8CD1</font> <font color="#8080ff">; 8CE1 4C D1 8C L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; plays sfx_extra_life</font> +<font color="#00ffff">add_extra_life</font>: + <font color="#00ff00">plp</font> <font color="#8080ff">; 8CE4 28 (</font> + <font color="#00ff00">inc</font> <font color="#00ffff">lives</font> <font color="#8080ff">; 8CE5 EE 0A 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$79</font> <font color="#8080ff">; 8CE8 A9 79 .y</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; 8CEA 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$BE</font> <font color="#8080ff">; 8CED A9 BE ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8CEF 8D 3D 06 .=.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$0C</font> <font color="#8080ff">; 8CF2 A9 0C ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; 8CF4 20 06 80 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">show_lives_icons</font> <font color="#8080ff">; 8CF7 20 BB 86 ..</font> +<font color="#00ffff">L8CFA</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">LB7C0</font> <font color="#8080ff">; 8CFA 4C C0 B7 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; L= (for lives display)</font> +<font color="#00ffff">l_equals</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$4C</font>,<font color="#ff6060">$1D</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8CFD 4C 1D 00 L..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; just lost your last life</font> +<font color="#00ffff">crumble_gameboard</font>: + <font color="#00ff00">jsr</font> <font color="#00ffff">enable_joystick_jv</font> <font color="#8080ff">; 8D00 20 1B 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$86</font> <font color="#8080ff">; 8D03 A9 86 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDC1</font> <font color="#8080ff">; 8D05 8D 01 D2 ...</font> +<font color="#00ffff">L8D08</font>: <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; 8D08 AD 0A D2 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$70</font> <font color="#8080ff">; 8D0B 29 70 )p</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0801 </font> <font color="#8080ff">; 8D0D 8D 01 08 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">game_display_list</font> <font color="#8080ff">; 8D10 8D 81 08 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; 8D13 AD 0A D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF1</font> <font color="#8080ff">; 8D16 8D 00 D2 ...</font> +<font color="#00ffff">L8D19</font>: <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; 8D19 AD 0A D2 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$1F</font> <font color="#8080ff">; 8D1C 29 1F ).</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$0D</font> <font color="#8080ff">; 8D1E C9 0D ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L8D19</font> <font color="#8080ff">; 8D20 B0 F7 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; 8D22 85 AA ..</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; 8D24 0A .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 8D25 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; 8D26 65 AA e.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; 8D28 85 AA ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8D60</font> <font color="#8080ff">; 8D2A 20 60 8D `.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; 8D2D E6 AA ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; 8D2F A5 AA ..</font> + <font color="#00ff00">pha</font> <font color="#8080ff">; 8D31 48 H</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8D60</font> <font color="#8080ff">; 8D32 20 60 8D `.</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 8D35 68 h</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8D60</font> <font color="#8080ff">; 8D36 20 60 8D `.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; 8D39 E6 AA ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; 8D3B A5 AA ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8D60</font> <font color="#8080ff">; 8D3D 20 60 8D `.</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8D40 A0 00 ..</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; 8D42 98 .</font> +<font color="#00ffff">L8D43</font>: <font color="#00ff00">ora</font> <font color="#ff40ff"> $3370,y </font> <font color="#8080ff">; 8D43 19 70 33 .p3</font> + <font color="#00ff00">ora</font> <font color="#ff40ff"> $3398,y </font> <font color="#8080ff">; 8D46 19 98 33 ..3</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8D49 C8 .</font> + <font color="#00ff00">cpy</font> <font color="#ff6060">#$28</font> <font color="#8080ff">; 8D4A C0 28 .(</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8D43</font> <font color="#8080ff">; 8D4C D0 F5 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8D4E C9 00 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8D08</font> <font color="#8080ff">; 8D50 D0 B6 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8D52 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF1</font> <font color="#8080ff">; 8D54 8D 00 D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDC1</font> <font color="#8080ff">; 8D57 8D 01 D2 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">player_scores_screen</font> <font color="#8080ff">; 8D5A 20 80 8B ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">afterlife</font> <font color="#8080ff">; 8D5D 4C 00 96 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8D60</font>: <font color="#00ff00">clc</font> <font color="#8080ff">; 8D60 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$70</font> <font color="#8080ff">; 8D61 69 70 ip</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AC </font> <font color="#8080ff">; 8D63 85 AC ..</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$28</font> <font color="#8080ff">; 8D65 69 28 i(</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AE </font> <font color="#8080ff">; 8D67 85 AE ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$3D</font> <font color="#8080ff">; 8D69 A9 3D .=</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AD </font> <font color="#8080ff">; 8D6B 85 AD ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AF </font> <font color="#8080ff">; 8D6D 85 AF ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$57</font> <font color="#8080ff">; 8D6F A9 57 .W</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AB </font> <font color="#8080ff">; 8D71 85 AB ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8D73 A0 00 ..</font> +<font color="#00ffff">L8D75</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> ($AC),y </font> <font color="#8080ff">; 8D75 B1 AC ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> ($AE),y </font> <font color="#8080ff">; 8D77 91 AE ..</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; 8D79 38 8</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $AC </font> <font color="#8080ff">; 8D7A A5 AC ..</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$28</font> <font color="#8080ff">; 8D7C E9 28 .(</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AC </font> <font color="#8080ff">; 8D7E 85 AC ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L8D84</font> <font color="#8080ff">; 8D80 B0 02 ..</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $AD </font> <font color="#8080ff">; 8D82 C6 AD ..</font> +<font color="#00ffff">L8D84</font>: <font color="#00ff00">sec</font> <font color="#8080ff">; 8D84 38 8</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $AE </font> <font color="#8080ff">; 8D85 A5 AE ..</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$28</font> <font color="#8080ff">; 8D87 E9 28 .(</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AE </font> <font color="#8080ff">; 8D89 85 AE ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L8D8F</font> <font color="#8080ff">; 8D8B B0 02 ..</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $AF </font> <font color="#8080ff">; 8D8D C6 AF ..</font> +<font color="#00ffff">L8D8F</font>: <font color="#00ff00">dec</font> <font color="#ff40ff"> $AB </font> <font color="#8080ff">; 8D8F C6 AB ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8D75</font> <font color="#8080ff">; 8D91 D0 E2 ..</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; 8D93 98 .</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> ($AE),y </font> <font color="#8080ff">; 8D94 91 AE ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8D96 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8D97 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8D98 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8D99 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8D9A 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8D9B 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8D9C 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8D9D 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8D9E 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8D9F 00 .</font> +<font color="#00ffff">L8DA0</font>: <font color="#00ff00">lda</font> <font color="#00ffff">level</font> <font color="#8080ff">; 8DA0 AD F6 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$0B</font> <font color="#8080ff">; 8DA3 C9 0B ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8DAA</font> <font color="#8080ff">; 8DA5 F0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">afterlife</font> <font color="#8080ff">; 8DA7 4C 00 96 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8DAA</font>: <font color="#00ff00">jsr</font> <font color="#00ffff">well_done_screen</font> <font color="#8080ff">; 8DAA 20 00 BC ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 8DAD A9 04 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 8DAF 8D 88 06 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">player_scores_screen</font> <font color="#8080ff">; 8DB2 20 80 8B ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">afterlife</font> <font color="#8080ff">; 8DB5 4C 00 96 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; move player selected by X reg minus one off the left edge of the screen</font> +<font color="#00ffff">hide_player</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 8DB8 A9 02 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">HPOSM3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8DBA 9D 07 D0 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067C,x </font> <font color="#8080ff">; 8DBD 9D 7C 06 .|.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8DC0 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06EA,x </font> <font color="#8080ff">; 8DC2 9D EA 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8DC5 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; store A to AUDCx (and its ?shadow?)</font> +<font color="#00ffff">store_audc</font>: + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDC1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 8DC6 9D 01 D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0649,x </font> <font color="#8080ff">; 8DC9 9D 49 06 .I.</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8DCC 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8DCD 00 .</font> +<font color="#8080ff">; bonus -= 100;</font> +<font color="#00ffff">decrement_time_bonus</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_time_bonus</font> <font color="#8080ff">; 8DCE AD 91 07 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">work_level_time_bonus</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8DD1 0D 92 07 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">work_level_offs_19</font> <font color="#8080ff">; 8DD4 0D 93 07 ...</font> +<font color="#8080ff">; don't decrement if bonus == 0</font> +<font color="#00ffff">check_bonus_0</font>: + <font color="#00ff00">beq</font> <font color="#00ffff">dec_done</font> <font color="#8080ff">; 8DD7 F0 20 . </font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_time_bonus</font> <font color="#8080ff">; 8DD9 AD 91 07 ...</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; 8DDC 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$64</font> <font color="#8080ff">; 8DDD E9 64 .d</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_time_bonus</font> <font color="#8080ff">; 8DDF 8D 91 07 ...</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">bonus_lt_256</font> <font color="#8080ff">; 8DE2 B0 03 ..</font> + <font color="#00ff00">dec</font> <font color="#00ffff">work_level_time_bonus</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8DE4 CE 92 07 ...</font> +<font color="#00ffff">bonus_lt_256</font>: + <font color="#00ff00">jsr</font> <font color="#00ffff">L800F</font> <font color="#8080ff">; 8DE7 20 0F 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$FA</font> <font color="#8080ff">; 8DEA A9 FA ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_tempo</font> <font color="#8080ff">; 8DEC 8D 3E 06 .>.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8D</font> <font color="#8080ff">; 8DEF A9 8D ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_timer</font> <font color="#8080ff">; 8DF1 8D 3F 06 .?.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; 8DF4 A9 07 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8003</font> <font color="#8080ff">; 8DF6 20 03 80 ..</font> +<font color="#00ffff">dec_done</font>: + <font color="#00ff00">rts</font> <font color="#8080ff">; 8DF9 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">data_8dfa</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8DFA 01 A5 00 18 03 00 ......</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">level_finished</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; 8E00 A9 09 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; 8E02 8D 24 06 .$.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067F </font> <font color="#8080ff">; 8E05 8D 7F 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$80</font> <font color="#8080ff">; 8E08 A9 80 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D5 </font> <font color="#8080ff">; 8E0A 85 D5 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L800F</font> <font color="#8080ff">; 8E0C 20 0F 80 ..</font> +<font color="#8080ff">; score += time_bonus;</font> +<font color="#00ffff">add_time_bonus</font>: + <font color="#00ff00">clc</font> <font color="#8080ff">; 8E0F 18 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_time_bonus</font> <font color="#8080ff">; 8E10 AD 91 07 ...</font> + <font color="#00ff00">adc</font> <font color="#00ffff">score</font> <font color="#8080ff">; 8E13 6D 00 07 m..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">score</font> <font color="#8080ff">; 8E16 8D 00 07 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_time_bonus</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8E19 AD 92 07 ...</font> + <font color="#00ff00">adc</font> <font color="#00ffff">score</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8E1C 6D 01 07 m..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">score</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8E1F 8D 01 07 ...</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">lt_64k</font> <font color="#8080ff">; 8E22 90 03 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">score</font>+<font color="#ff6060">2</font> <font color="#8080ff">; 8E24 EE 02 07 ...</font> +<font color="#00ffff">lt_64k</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8E27 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF1</font> <font color="#8080ff">; 8E29 8D 00 D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D5 </font> <font color="#8080ff">; 8E2C 85 D5 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDC1</font> <font color="#8080ff">; 8E2E 8D 01 D2 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; 8E31 8D 1A 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">playing_level</font> <font color="#8080ff">; 8E34 8D 27 06 .'.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L800C</font> <font color="#8080ff">; 8E37 20 0C 80 ..</font> +<font color="#8080ff">; 533ms ntsc, 640ms pal</font> +<font color="#00ffff">wait_32_jiffies</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; 8E3A AD 1A 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; 8E3D C9 20 . </font> + <font color="#00ff00">bne</font> <font color="#00ffff">wait_32_jiffies</font> <font color="#8080ff">; 8E3F D0 F9 ..</font> +<font color="#8080ff">; pick random sound effect between 4 and 7</font> +<font color="#00ffff">pick_random_music</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; 8E41 AD 0A D2 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8E44 29 03 ).</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 8E46 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 8E47 69 04 i.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_music_jv</font> <font color="#8080ff">; 8E49 20 18 80 ..</font> +<font color="#00ffff">L8E4C</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0640 </font> <font color="#8080ff">; 8E4C AD 40 06 .@.</font> + <font color="#00ff00">ora</font> <font color="#ff40ff"> $0642 </font> <font color="#8080ff">; 8E4F 0D 42 06 .B.</font> + <font color="#00ff00">ora</font> <font color="#ff40ff"> $0644 </font> <font color="#8080ff">; 8E52 0D 44 06 .D.</font> + <font color="#00ff00">ora</font> <font color="#00ffff">sfx_slot_duration</font> <font color="#8080ff">; 8E55 0D 46 06 .F.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8E4C</font> <font color="#8080ff">; 8E58 D0 F2 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; 8E5A 8D 1A 06 ...</font> +<font color="#00ffff">L8E5D</font>: <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; 8E5D AD 1A 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$40</font> <font color="#8080ff">; 8E60 C9 40 .@</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8E5D</font> <font color="#8080ff">; 8E62 D0 F9 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">end_of_level_bonus</font> <font color="#8080ff">; 8E64 4C 00 B8 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8E67 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 8E68 00 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0622 </font> <font color="#8080ff">; 8E69 AD 22 06 .".</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8E75</font> <font color="#8080ff">; 8E6C F0 07 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; 8E6E AD 23 06 .#.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 8E71 C9 02 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8E76</font> <font color="#8080ff">; 8E73 D0 01 ..</font> +<font color="#00ffff">L8E75</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; 8E75 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8E76</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 8E76 A2 FF ..</font> +<font color="#00ffff">L8E78</font>: <font color="#00ff00">inx</font> <font color="#8080ff">; 8E78 E8 .</font> + <font color="#00ff00">cpx</font> <font color="#00ffff">work_level_bullet_chance</font> <font color="#8080ff">; 8E79 EC 8B 07 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8E75</font> <font color="#8080ff">; 8E7C F0 F7 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0756,x </font> <font color="#8080ff">; 8E7E BD 56 07 .V.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8EB9</font> <font color="#8080ff">; 8E81 D0 36 .6</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0756,x </font> <font color="#8080ff">; 8E83 FE 56 07 .V.</font> +<font color="#00ffff">L8E86</font>: <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; 8E86 AD 0A D2 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8E89 29 03 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8E86</font> <font color="#8080ff">; 8E8B F0 F9 ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 8E8D A8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; 8E8E AD 0A D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069B,x </font> <font color="#8080ff">; 8E91 9D 9B 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069F,x </font> <font color="#8080ff">; 8E94 9D 9F 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L8F42</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8E97 B9 42 8F .B.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8E9F</font> <font color="#8080ff">; 8E9A F0 03 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069B,x </font> <font color="#8080ff">; 8E9C 9D 9B 06 ...</font> +<font color="#00ffff">L8E9F</font>: <font color="#00ff00">lda</font> <font color="#00ffff">L8F45</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8E9F B9 45 8F .E.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8EA7</font> <font color="#8080ff">; 8EA2 F0 03 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069F,x </font> <font color="#8080ff">; 8EA4 9D 9F 06 ...</font> +<font color="#00ffff">L8EA7</font>: <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; 8EA7 AD 0A D2 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8EAA 29 03 ).</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 8EAC A8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L8F49</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8EAD B9 49 8F .I.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $075A,x </font> <font color="#8080ff">; 8EB0 9D 5A 07 .Z.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L8F4D</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8EB3 B9 4D 8F .M.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $075E,x </font> <font color="#8080ff">; 8EB6 9D 5E 07 .^.</font> +<font color="#00ffff">L8EB9</font>: <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 8EB9 C9 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8F11</font> <font color="#8080ff">; 8EBB F0 54 .T</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $069B,x </font> <font color="#8080ff">; 8EBD BD 9B 06 ...</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; 8EC0 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8EC1 E9 03 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 8EC3 CD 7E 06 .~.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8ED6</font> <font color="#8080ff">; 8EC6 F0 0E ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $069F,x </font> <font color="#8080ff">; 8EC8 BD 9F 06 ...</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; 8ECB 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 8ECC E9 04 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 8ECE CD 83 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8EE4</font> <font color="#8080ff">; 8ED1 F0 11 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8F11</font> <font color="#8080ff">; 8ED3 4C 11 8F L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8ED6</font>: <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8ED6 A0 00 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $069F,x </font> <font color="#8080ff">; 8ED8 BD 9F 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 8EDB CD 83 06 ...</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L8EEF</font> <font color="#8080ff">; 8EDE B0 0F ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8EE0 C8 .</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8EEF</font> <font color="#8080ff">; 8EE1 4C EF 8E L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L8EE4</font>: <font color="#00ff00">ldy</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 8EE4 A0 02 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $069B,x </font> <font color="#8080ff">; 8EE6 BD 9B 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 8EE9 CD 7E 06 .~.</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L8EEF</font> <font color="#8080ff">; 8EEC B0 01 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 8EEE C8 .</font> +<font color="#00ffff">L8EEF</font>: <font color="#00ff00">lda</font> <font color="#00ffff">L8F51</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8EEF B9 51 8F .Q.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $075A,x </font> <font color="#8080ff">; 8EF2 9D 5A 07 .Z.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L8F55</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8EF5 B9 55 8F .U.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $075E,x </font> <font color="#8080ff">; 8EF8 9D 5E 07 .^.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$59</font> <font color="#8080ff">; 8EFB A9 59 .Y</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_tempo</font> <font color="#8080ff">; 8EFD 8D 3E 06 .>.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8F</font> <font color="#8080ff">; 8F00 A9 8F ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_timer</font> <font color="#8080ff">; 8F02 8D 3F 06 .?.</font> + <font color="#00ff00">txa</font> <font color="#8080ff">; 8F05 8A .</font> + <font color="#00ff00">pha</font> <font color="#8080ff">; 8F06 48 H</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 8F07 A9 02 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8003</font> <font color="#8080ff">; 8F09 20 03 80 ..</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 8F0C 68 h</font> + <font color="#00ff00">tax</font> <font color="#8080ff">; 8F0D AA .</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0756,x </font> <font color="#8080ff">; 8F0E FE 56 07 .V.</font> +<font color="#00ffff">L8F11</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $069B,x </font> <font color="#8080ff">; 8F11 BD 9B 06 ...</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 8F14 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $075A,x </font> <font color="#8080ff">; 8F15 7D 5A 07 }Z.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8F18 C9 03 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">code_8f38</font> <font color="#8080ff">; 8F1A 90 1C ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$FD</font> <font color="#8080ff">; 8F1C C9 FD ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">code_8f38</font> <font color="#8080ff">; 8F1E B0 18 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069B,x </font> <font color="#8080ff">; 8F20 9D 9B 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $069F,x </font> <font color="#8080ff">; 8F23 BD 9F 06 ...</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 8F26 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $075E,x </font> <font color="#8080ff">; 8F27 7D 5E 07 }^.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 8F2A C9 03 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">code_8f38</font> <font color="#8080ff">; 8F2C 90 0A ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$CE</font> <font color="#8080ff">; 8F2E C9 CE ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">code_8f38</font> <font color="#8080ff">; 8F30 B0 06 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069F,x </font> <font color="#8080ff">; 8F32 9D 9F 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8E78</font> <font color="#8080ff">; 8F35 4C 78 8E Lx.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">code_8f38</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 8F38 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0756,x </font> <font color="#8080ff">; 8F3A 9D 56 07 .V.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069B,x </font> <font color="#8080ff">; 8F3D 9D 9B 06 ...</font> +<font color="#00ffff">L8F42</font> := * + <font color="#ff6060">2</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8E78</font> <font color="#8080ff">; 8F40 4C 78 8E Lx.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">data_8f43</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$FC</font> <font color="#8080ff">; 8F43 04 FC ..</font> +<font color="#00ffff">L8F45</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; 8F45 00 00 00 04 ....</font> +<font color="#00ffff">L8F49</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FF</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8F49 FF 00 01 00 ....</font> +<font color="#00ffff">L8F4D</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; 8F4D 00 FF 00 01 ....</font> +<font color="#00ffff">L8F51</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$03</font> <font color="#8080ff">; 8F51 00 00 FD 03 ....</font> +<font color="#00ffff">L8F55</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FD</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$8E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$14</font> <font color="#8080ff">; 8F55 FD 03 00 00 01 8E 00 14 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$8B</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$88</font> <font color="#8080ff">; 8F5D 02 01 8B 00 14 03 01 88 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$85</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$07</font> <font color="#8080ff">; 8F65 00 14 05 01 85 00 14 07 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 8F6D 01 82 00 14 09 00 ......</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; did any missile hit a player, or did players 2 or 3 hit a player...</font> +<font color="#00ffff">check_collisions_1</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">14</font> <font color="#8080ff">; 8F73 AD BE 06 ...</font> +<font color="#00ffff">L8F76</font>: <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">15</font> <font color="#8080ff">; 8F76 0D BF 06 ...</font> +<font color="#00ffff">L8F79</font>: <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">8</font> <font color="#8080ff">; 8F79 0D B8 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">9</font> <font color="#8080ff">; 8F7C 0D B9 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">10</font> <font color="#8080ff">; 8F7F 0D BA 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">11</font> <font color="#8080ff">; 8F82 0D BB 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 8F85 29 01 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L8F91</font> <font color="#8080ff">; 8F87 F0 08 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; 8F89 AD 23 06 .#.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L8F91</font> <font color="#8080ff">; 8F8C D0 03 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; 8F8E EE 23 06 .#.</font> +<font color="#00ffff">L8F91</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; 8F91 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; setup to play whichever music is in A reg, using 5-byte sfx stuct (a music is a pair of sfx played simultaneously)</font> +<font color="#00ffff">cue_music</font>: + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D6 </font> <font color="#8080ff">; 8F92 85 D6 ..</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; 8F94 0A .</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; 8F95 0A .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 8F96 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $D6 </font> <font color="#8080ff">; 8F97 65 D6 e.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D6 </font> <font color="#8080ff">; 8F99 85 D6 ..</font> +<font color="#8080ff">; y = a * 5; // offset into mus_struct_table</font> +<font color="#00ffff">set_y</font>: <font color="#00ff00">tay</font> <font color="#8080ff">; 8F9B A8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">mus00_addr1</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8F9C B9 C3 8F ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; 8F9F 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">mus00_addr1</font>+<font color="#ff6060">1</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8FA2 B9 C4 8F ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8FA5 8D 3D 06 .=.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">mus00_len_or_tempo</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8FA8 B9 C7 8F ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; 8FAB 20 06 80 ..</font> + <font color="#00ff00">ldy</font> <font color="#ff40ff"> $D6 </font> <font color="#8080ff">; 8FAE A4 D6 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">mus00_addr2</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8FB0 B9 C5 8F ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; 8FB3 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">mus00_addr2</font>+<font color="#ff6060">1</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8FB6 B9 C6 8F ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 8FB9 8D 3D 06 .=.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">mus00_len_or_tempo</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 8FBC B9 C7 8F ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; 8FBF 20 06 80 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 8FC2 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; aka mus_struct_table, 5 bytes per entry</font> +<font color="#00ffff">mus00_addr1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx13</font> <font color="#8080ff">; 8FC3 D0 BF ..</font> +<font color="#00ffff">mus00_addr2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx14</font> <font color="#8080ff">; 8FC5 EA BF ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus00_len_or_tempo</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $10 </font> <font color="#8080ff">; 8FC7 10 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus01_addr1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx12</font> <font color="#8080ff">; 8FC8 BE BF ..</font> +<font color="#00ffff">mus01_addr2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">empty_music_entry</font> <font color="#8080ff">; 8FCA FF 8F ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus01_len_or_tempo</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $07 </font> <font color="#8080ff">; 8FCC 07 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; end of game tune</font> +<font color="#00ffff">mus02_addr1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx02</font> <font color="#8080ff">; 8FCD 8D BE ..</font> +<font color="#00ffff">mus02_addr2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx03</font> <font color="#8080ff">; 8FCF AF BE ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus02_len_or_tempo</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $10 </font> <font color="#8080ff">; 8FD1 10 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus03_addr1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx01</font> <font color="#8080ff">; 8FD2 25 BE %.</font> +<font color="#00ffff">mus03_addr2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx00</font> <font color="#8080ff">; 8FD4 F2 BD ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus03_len_or_tempo</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $10 </font> <font color="#8080ff">; 8FD6 10 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus04_addr1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx04</font> <font color="#8080ff">; 8FD7 D5 BE ..</font> +<font color="#00ffff">mus04_addr2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx05</font> <font color="#8080ff">; 8FD9 ED BE ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus04_len_or_tempo</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $10 </font> <font color="#8080ff">; 8FDB 10 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus05_addr1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx06</font> <font color="#8080ff">; 8FDC 14 BF ..</font> +<font color="#00ffff">mus05_addr2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx07</font> <font color="#8080ff">; 8FDE 30 BF 0.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus05_len_or_tempo</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $10 </font> <font color="#8080ff">; 8FE0 10 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus06_addr1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx08</font> <font color="#8080ff">; 8FE1 4A BF J.</font> +<font color="#00ffff">mus06_addr2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx09</font> <font color="#8080ff">; 8FE3 60 BF `.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus06_len_or_tempo</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $10 </font> <font color="#8080ff">; 8FE5 10 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus07_addr1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx10</font> <font color="#8080ff">; 8FE6 84 BF ..</font> +<font color="#00ffff">mus07_addr2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx11</font> <font color="#8080ff">; 8FE8 A6 BF ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus07_len_or_tempo</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $10 </font> <font color="#8080ff">; 8FEA 10 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; tune that plays while level is being drawn</font> +<font color="#00ffff">mus08_addr1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx15</font> <font color="#8080ff">; 8FEB BC BA ..</font> +<font color="#00ffff">mus08_addr2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">sfx16</font> <font color="#8080ff">; 8FED EA BA ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus08_len_or_tempo</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $10 </font> <font color="#8080ff">; 8FEF 10 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus09_addr1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">empty_music_entry</font> <font color="#8080ff">; 8FF0 FF 8F ..</font> +<font color="#00ffff">mus09_addr2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">empty_music_entry</font> <font color="#8080ff">; 8FF2 FF 8F ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus09_len_or_tempo</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $01 </font> <font color="#8080ff">; 8FF4 01 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus10_addr1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">empty_music_entry</font> <font color="#8080ff">; 8FF5 FF 8F ..</font> +<font color="#00ffff">mus10_addr2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">empty_music_entry</font> <font color="#8080ff">; 8FF7 FF 8F ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus10_len_or_tempo</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $01 </font> <font color="#8080ff">; 8FF9 01 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus11_addr1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">empty_music_entry</font> <font color="#8080ff">; 8FFA FF 8F ..</font> +<font color="#00ffff">mus11_addr2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">empty_music_entry</font> <font color="#8080ff">; 8FFC FF 8F ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mus11_len_or_tempo</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $01 </font> <font color="#8080ff">; 8FFE 01 .</font> +<font color="#8080ff">; empty music table entries point here</font> +<font color="#00ffff">empty_music_entry</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; 8FFF 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; called from cart_entry_point routine</font> +<font color="#00ffff">init_game</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9000 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">option_key_enabled</font> <font color="#8080ff">; 9002 8D C6 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">start_key_enabled</font> <font color="#8080ff">; 9005 8D C8 06 ...</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; 9008 EA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; 9009 EA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; 900A EA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; 900B EA .</font> +<font color="#8080ff">; this entry point doesn't disable start/option keys</font> +<font color="#00ffff">reinit_game</font>: + <font color="#00ff00">jsr</font> <font color="#00ffff">enable_joystick_jv</font> <font color="#8080ff">; 900C 20 1B 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 900F A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $A0 </font> <font color="#8080ff">; 9011 85 A0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">select_key_vec</font> <font color="#8080ff">; 9013 8D C2 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$94</font> <font color="#8080ff">; 9016 A9 94 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">select_key_vec</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9018 8D C3 06 ...</font> +<font color="#8080ff">; set select key vector to ask_num_players at $9400, enable select key</font> +<font color="#00ffff">setup_select_key_vec</font>: + <font color="#00ff00">sta</font> <font color="#00ffff">select_key_enabled</font> <font color="#8080ff">; 901B 8D C7 06 ...</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 901E A2 08 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 9020 A9 FF ..</font> +<font color="#8080ff">; seems to try to write $FF bytes to ROM that already contains $FF's (it's the solid block character in the font). possibly left over from early development before conversion to cartridge</font> +<font color="#00ffff">try_to_write_rom</font>: + <font color="#00ff00">sta</font> <font color="#00ffff">block_char_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9022 9D 0F 9E ...</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 9025 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">try_to_write_rom</font> <font color="#8080ff">; 9026 D0 FA ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$C0</font> <font color="#8080ff">; 9028 A2 C0 ..</font> +<font color="#00ffff">copy_title_screen</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">title_screen_data_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 902A BD CE 91 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2FFF,x </font> <font color="#8080ff">; 902D 9D FF 2F ../</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 9030 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">copy_title_screen</font> <font color="#8080ff">; 9031 D0 F7 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$46</font> <font color="#8080ff">; 9033 A9 46 .F</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR1</font> <font color="#8080ff">; 9035 8D C5 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$C4</font> <font color="#8080ff">; 9038 A9 C4 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR2</font> <font color="#8080ff">; 903A 8D C6 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 903D A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $9C </font> <font color="#8080ff">; 903F 85 9C ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $9D </font> <font color="#8080ff">; 9041 85 9D ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR3</font> <font color="#8080ff">; 9043 8D C7 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$B3</font> <font color="#8080ff">; 9046 A9 B3 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; 9048 8D AC 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$91</font> <font color="#8080ff">; 904B A9 91 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_hi</font> <font color="#8080ff">; 904D 8D AD 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9050 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">HSCROL</font> <font color="#8080ff">; 9052 8D 04 D4 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$A5</font> <font color="#8080ff">; 9055 A9 A5 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDC1</font> <font color="#8080ff">; 9057 8D 01 D2 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$ED</font> <font color="#8080ff">; 905A A9 ED ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dli_vec_shadow_lo</font> <font color="#8080ff">; 905C 8D AE 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$92</font> <font color="#8080ff">; 905F A9 92 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dli_vec_shadow_hi</font> <font color="#8080ff">; 9061 8D AF 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$3C</font> <font color="#8080ff">; 9064 A9 3C .<</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font> <font color="#8080ff">; 9066 8D 82 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$91</font> <font color="#8080ff">; 9069 A9 91 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 906B 8D 83 07 ...</font> +<font color="#8080ff">; some ISR is writing to $9c...</font> +<font color="#00ffff">wait_until_9c_is_0e</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff"> $9C </font> <font color="#8080ff">; 906E A5 9C ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$0E</font> <font color="#8080ff">; 9070 C9 0E ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">wait_until_9c_is_0e</font> <font color="#8080ff">; 9072 D0 FA ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$E6</font> <font color="#8080ff">; 9074 A9 E6 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font> <font color="#8080ff">; 9076 8D 82 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; 9079 A9 06 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 907B 8D 83 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 907E A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; 9080 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$93</font> <font color="#8080ff">; 9083 A9 93 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9085 8D 3D 06 .=.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; 9088 20 06 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$51</font> <font color="#8080ff">; 908B A9 51 .Q</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; 908D 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$93</font> <font color="#8080ff">; 9090 A9 93 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9092 8D 3D 06 .=.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; 9095 20 06 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$9C</font> <font color="#8080ff">; 9098 A9 9C ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; 909A 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$93</font> <font color="#8080ff">; 909D A9 93 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 909F 8D 3D 06 .=.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; 90A2 20 06 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$D7</font> <font color="#8080ff">; 90A5 A9 D7 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; 90A7 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$93</font> <font color="#8080ff">; 90AA A9 93 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 90AC 8D 3D 06 .=.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; 90AF 20 06 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 90B2 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $9C </font> <font color="#8080ff">; 90B4 85 9C ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $9D </font> <font color="#8080ff">; 90B6 85 9D ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; 90B8 A9 07 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B9 </font> <font color="#8080ff">; 90BA 85 B9 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$72</font> <font color="#8080ff">; 90BC A9 72 .r</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font> <font color="#8080ff">; 90BE 8D 82 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$91</font> <font color="#8080ff">; 90C1 A9 91 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 90C3 8D 83 07 ...</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 90C6 A2 FF ..</font> +<font color="#8080ff">; lot going on here, not understood yet</font> +<font color="#00ffff">funky_init_loop</font>: + <font color="#00ff00">inx</font> <font color="#8080ff">; 90C8 E8 .</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 90C9 E0 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">funky_init_loop</font> <font color="#8080ff">; 90CB F0 FB ..</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; 90CD E0 05 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L910A</font> <font color="#8080ff">; 90CF F0 39 .9</font> + <font color="#00ff00">ldy</font> <font color="#00ffff">L92A3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 90D1 BC A3 92 ...</font> +<font color="#00ffff">L90D4</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0649,y </font> <font color="#8080ff">; 90D4 B9 49 06 .I.</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 90D7 29 0F ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L90D4</font> <font color="#8080ff">; 90D9 F0 F9 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 90DB A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $066E,x </font> <font color="#8080ff">; 90DD 9D 6E 06 .n.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$9D</font> <font color="#8080ff">; 90E0 A9 9D ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0673,x </font> <font color="#8080ff">; 90E2 9D 73 06 .s.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$0A</font> <font color="#8080ff">; 90E5 A9 0A ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0678,x </font> <font color="#8080ff">; 90E7 9D 78 06 .x.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 90EA A9 01 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0687,x </font> <font color="#8080ff">; 90EC 9D 87 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$5C</font> <font color="#8080ff">; 90EF A9 5C .\</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0682,x </font> <font color="#8080ff">; 90F1 9D 82 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L929E</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 90F4 BD 9E 92 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067D,x </font> <font color="#8080ff">; 90F7 9D 7D 06 .}.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0669,x </font> <font color="#8080ff">; 90FA 9D 69 06 .i.</font> + <font color="#00ff00">ldy</font> <font color="#00ffff">L92E8</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 90FD BC E8 92 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 9100 A9 0F ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">PCOLR0</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 9102 99 C0 02 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $9C </font> <font color="#8080ff">; 9105 E6 9C ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">funky_init_loop</font> <font color="#8080ff">; 9107 4C C8 90 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L910A</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $9D </font> <font color="#8080ff">; 910A A5 9D ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$1D</font> <font color="#8080ff">; 910C C9 1D ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">try_to_write_rom_again</font> <font color="#8080ff">; 910E F0 16 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; 9110 C9 20 . </font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L910A</font> <font color="#8080ff">; 9112 90 F6 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$E6</font> <font color="#8080ff">; 9114 A9 E6 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font> <font color="#8080ff">; 9116 8D 82 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; 9119 A9 06 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 911B 8D 83 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 911E A9 08 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; 9120 8D C4 02 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LB96B</font> <font color="#8080ff">; 9123 4C 6B B9 Lk.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; see comment at try_to_write_rom</font> +<font color="#00ffff">try_to_write_rom_again</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 9126 A2 08 ..</font> +<font color="#00ffff">L9128</font>: <font color="#00ff00">lda</font> <font color="#00ffff">L9133</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9128 BD 33 91 .3.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">block_char_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 912B 9D 0F 9E ...</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 912E CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9128</font> <font color="#8080ff">; 912F D0 F7 ..</font> +<font color="#00ffff">L9133</font> := * + <font color="#ff6060">2</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L910A</font> <font color="#8080ff">; 9131 4C 0A 91 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">data_9134</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$BF</font>,<font color="#ff6060">$BF</font>,<font color="#ff6060">$CF</font>,<font color="#ff6060">$EF</font>,<font color="#ff6060">$E7</font>,<font color="#ff6060">$DB</font> <font color="#8080ff">; 9134 BF BF CF EF E7 DB ......</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; this might be more data for the above table instead of code?</font> +<font color="#00ffff">maybe_data</font>: + <font color="#00ff00">cmp</font> <font color="#00ffff">LADBF</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 913A D9 BF AD ...</font> +<font color="#8080ff">; this probably really is code</font> +<font color="#00ffff">probly_code</font>: + <font color="#00ff00">rol</font> <font color="#00ffff">a</font> <font color="#8080ff">; 913D 2A *</font> + <font color="#00ff00">asl</font> <font color="#ff40ff"> $8D </font> <font color="#8080ff">; 913E 06 8D ..</font> + <font color="#00ff00">cpy</font> <font color="#ff40ff"> $02 </font> <font color="#8080ff">; 9140 C4 02 ..</font> + <font color="#00ff00">ldy</font> <font color="#ff40ff"> $9C </font> <font color="#8080ff">; 9142 A4 9C ..</font> + <font color="#00ff00">cpy</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; 9144 C0 07 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9164</font> <font color="#8080ff">; 9146 F0 1C ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 9148 18 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $9D </font> <font color="#8080ff">; 9149 A5 9D ..</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 914B 69 04 i.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $9D </font> <font color="#8080ff">; 914D 85 9D ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9164</font> <font color="#8080ff">; 914F F0 13 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF1</font> <font color="#8080ff">; 9151 8D 00 D2 ...</font> +<font color="#00ffff">L9154</font>: <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 9154 4A J</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 9155 4A J</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 9156 4A J</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 9157 4A J</font> + <font color="#00ff00">ora</font> <font color="#ff6060">#$60</font> <font color="#8080ff">; 9158 09 60 .`</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR3</font> <font color="#8080ff">; 915A 8D C7 02 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L928F</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 915D B9 8F 92 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3045,y </font> <font color="#8080ff">; 9160 99 45 30 .E0</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9163 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9164</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $3045,y </font> <font color="#8080ff">; 9164 B9 45 30 .E0</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$3F</font> <font color="#8080ff">; 9167 29 3F )?</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3045,y </font> <font color="#8080ff">; 9169 99 45 30 .E0</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $9C </font> <font color="#8080ff">; 916C E6 9C ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 916E C8 .</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L9154</font> <font color="#8080ff">; 916F 4C 54 91 LT.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $062A </font> <font color="#8080ff">; 9172 AD 2A 06 .*.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; 9175 8D C4 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $9C </font> <font color="#8080ff">; 9178 A5 9C ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 917A C9 04 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L917F</font> <font color="#8080ff">; 917C F0 01 ..</font> +<font color="#00ffff">L917E</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; 917E 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L917F</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0649 </font> <font color="#8080ff">; 917F AD 49 06 .I.</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 9182 29 0F ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L917E</font> <font color="#8080ff">; 9184 D0 F8 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $B9 </font> <font color="#8080ff">; 9186 E6 B9 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $B9 </font> <font color="#8080ff">; 9188 A5 B9 ..</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 918A 29 0F ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B9 </font> <font color="#8080ff">; 918C 85 B9 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L917E</font> <font color="#8080ff">; 918E D0 EE ..</font> + <font color="#00ff00">ldx</font> <font color="#ff40ff"> $9D </font> <font color="#8080ff">; 9190 A6 9D ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 9192 A0 FF ..</font> +<font color="#00ffff">L9194</font>: <font color="#00ff00">iny</font> <font color="#8080ff">; 9194 C8 .</font> + <font color="#00ff00">cpy</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 9195 C0 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9194</font> <font color="#8080ff">; 9197 F0 FB ..</font> + <font color="#00ff00">cpy</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; 9199 C0 05 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L91B0</font> <font color="#8080ff">; 919B F0 13 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L92C8</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 919D BD C8 92 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0687,y </font> <font color="#8080ff">; 91A0 99 87 06 ...</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 91A3 18 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L92A8</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 91A4 BD A8 92 ...</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $067D,y </font> <font color="#8080ff">; 91A7 79 7D 06 y}.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067D,y </font> <font color="#8080ff">; 91AA 99 7D 06 .}.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L9194</font> <font color="#8080ff">; 91AD 4C 94 91 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L91B0</font>: <font color="#00ff00">inc</font> <font color="#ff40ff"> $9D </font> <font color="#8080ff">; 91B0 E6 9D ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 91B2 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; display list for title screen</font> +<font color="#00ffff">title_display_list</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$47</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$60</font> <font color="#8080ff">; 91B3 70 70 70 47 00 30 06 60 pppG.0.`</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$60</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$17</font>,<font color="#ff6060">$17</font>,<font color="#ff6060">$97</font> <font color="#8080ff">; 91BB 60 70 70 70 70 17 17 97 `pppp...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 91C3 70 70 70 70 70 70 70 02 ppppppp.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$B3</font> <font color="#8080ff">; 91CB 02 41 B3 .A.</font> +<font color="#00ffff">title_screen_data_minus_one</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $91 </font> <font color="#8080ff">; 91CE 91 .</font> +<font color="#8080ff">; title screen data</font> +<font color="#00ffff">title_screen_data</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 91CF 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$65</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 91D7 65 70 79 78 00 00 00 00 epyx....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 91DF 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$72</font>,<font color="#ff6060">$65</font>,<font color="#ff6060">$73</font>,<font color="#ff6060">$65</font>,<font color="#ff6060">$6E</font> <font color="#8080ff">; 91E7 00 00 70 72 65 73 65 6E ..presen</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$74</font>,<font color="#ff6060">$73</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 91EF 74 73 00 00 00 00 00 00 ts......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font> <font color="#8080ff">; 91F7 00 00 00 82 82 82 82 82 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font> <font color="#8080ff">; 91FF 82 82 82 82 82 82 82 82 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9207 82 82 82 82 82 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 920F 00 00 00 82 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9217 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 921F 00 00 00 00 82 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font> <font color="#8080ff">; 9227 00 00 00 82 82 82 82 82 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font> <font color="#8080ff">; 922F 82 82 82 82 82 82 82 82 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9237 82 82 82 82 82 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; 923F 40 40 40 40 40 40 40 40 @@@@@@@@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$63</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; 9247 40 40 40 40 48 63 49 40 @@@@HcI@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$51</font>,<font color="#ff6060">$59</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$53</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$62</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; 924F 51 59 58 53 40 62 79 40 QYXS@by@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$65</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; 9257 65 70 79 78 40 40 40 40 epyx@@@@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; 925F 40 40 40 40 40 40 40 40 @@@@@@@@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; 9267 40 40 40 40 40 40 40 40 @@@@@@@@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$63</font>,<font color="#ff6060">$72</font>,<font color="#ff6060">$65</font>,<font color="#ff6060">$61</font>,<font color="#ff6060">$74</font>,<font color="#ff6060">$65</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; 926F 63 72 65 61 74 65 64 40 created@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$62</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$72</font>,<font color="#ff6060">$61</font>,<font color="#ff6060">$6E</font>,<font color="#ff6060">$64</font> <font color="#8080ff">; 9277 62 79 5A 40 72 61 6E 64 byZ@rand</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$79</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$67</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$6F</font>,<font color="#ff6060">$76</font>,<font color="#ff6060">$65</font>,<font color="#ff6060">$72</font> <font color="#8080ff">; 927F 79 40 67 6C 6F 76 65 72 y@glover</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; 9287 40 40 40 40 40 40 40 40 @@@@@@@@</font> +<font color="#00ffff">L928F</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$EA</font>,<font color="#ff6060">$F5</font>,<font color="#ff6060">$ED</font>,<font color="#ff6060">$F0</font>,<font color="#ff6060">$ED</font>,<font color="#ff6060">$E1</font>,<font color="#ff6060">$EE</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 928F EA F5 ED F0 ED E1 EE 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$EA</font>,<font color="#ff6060">$F5</font>,<font color="#ff6060">$EE</font>,<font color="#ff6060">$E9</font>,<font color="#ff6060">$EF</font>,<font color="#ff6060">$F2</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9297 EA F5 EE E9 EF F2 00 .......</font> +<font color="#00ffff">L929E</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$6A</font>,<font color="#ff6060">$76</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$8E</font> <font color="#8080ff">; 929E 6A 76 00 82 8E jv...</font> +<font color="#00ffff">L92A3</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; 92A3 00 02 00 04 06 .....</font> +<font color="#00ffff">L92A8</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 92A8 02 02 FE FE FE FE 02 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; 92B0 02 02 02 02 FE FE FE FE ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 92B8 FE FE FE FE 02 02 02 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 92C0 00 00 00 00 00 00 00 00 ........</font> +<font color="#00ffff">L92C8</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$0D</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$0D</font> <font color="#8080ff">; 92C8 08 09 08 09 0C 0D 0C 0D ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$10</font> <font color="#8080ff">; 92D0 08 06 09 06 08 10 09 10 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0C</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$0D</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$11</font>,<font color="#ff6060">$0D</font>,<font color="#ff6060">$11</font> <font color="#8080ff">; 92D8 0C 06 0D 06 0C 11 0D 11 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$12</font>,<font color="#ff6060">$13</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; 92E0 12 13 14 15 04 04 04 04 ........</font> +<font color="#00ffff">L92E8</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$07</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$A9</font>,<font color="#ff6060">$94</font> <font color="#8080ff">; 92E8 07 00 00 02 03 48 A9 94 .....H..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$8D</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$D4</font>,<font color="#ff6060">$8D</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$D0</font>,<font color="#ff6060">$A9</font>,<font color="#ff6060">$CA</font> <font color="#8080ff">; 92F0 8D 0A D4 8D 18 D0 A9 CA ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$8D</font>,<font color="#ff6060">$17</font>,<font color="#ff6060">$D0</font>,<font color="#ff6060">$68</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 92F8 8D 17 D0 68 40 00 00 00 ...h@...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 9300 01 A0 02 0A 80 01 A5 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$5B</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; 9308 3C 20 79 20 51 20 5B 08 < y Q [.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$60</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$5B</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$10</font> <font color="#8080ff">; 9310 60 08 6C 08 5B 08 60 10 `.l.[.`.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$5B</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; 9318 79 10 5B 08 60 08 6C 08 y.[.`.l.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$5B</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; 9320 5B 08 60 10 79 10 79 20 [.`.y.y </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$79</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; 9328 79 20 79 08 6C 08 60 08 y y.l.`.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$51</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; 9330 51 08 3C 20 3C 08 51 08 Q.< <.Q.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$60</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; 9338 60 08 51 08 79 20 79 08 `.Q.y y.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$6C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$5B</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; 9340 6C 08 60 08 5B 08 51 08 l.`.[.Q.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$48</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; 9348 48 08 40 08 51 08 3C 40 H.@.Q.<@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A3</font> <font color="#8080ff">; 9350 00 01 A0 02 0A 60 01 A3 .....`..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$79</font> <font color="#8080ff">; 9358 02 51 40 79 10 A2 10 79 .Q@y...y</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$F3</font> <font color="#8080ff">; 9360 10 6C 10 79 08 A2 08 F3 .l.y....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$F3</font> <font color="#8080ff">; 9368 10 F3 20 79 08 A2 08 F3 .. y....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$F3</font> <font color="#8080ff">; 9370 10 A2 10 79 10 A2 20 F3 ...y.. .</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font> <font color="#8080ff">; 9378 20 79 10 A2 10 79 10 A2 y...y..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$F3</font> <font color="#8080ff">; 9380 10 79 10 A2 10 F3 10 F3 .y......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$D9</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$C1</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$B6</font> <font color="#8080ff">; 9388 10 F3 08 D9 08 C1 08 B6 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$90</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$A2</font> <font color="#8080ff">; 9390 08 A2 08 90 08 80 08 A2 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$0A</font> <font color="#8080ff">; 9398 08 79 40 00 01 A0 02 0A .y@.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A0</font> <font color="#8080ff">; 93A0 40 01 A4 02 60 60 01 A0 @...``..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A3</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; 93A8 02 0A 10 01 A3 02 F3 20 ....... </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$A2</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$C1</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$A6</font> <font color="#8080ff">; 93B0 A2 30 A2 10 C1 10 02 A6 .0......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$93</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; 93B8 93 01 01 A0 02 0A 10 01 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$A3</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$30</font> <font color="#8080ff">; 93C0 A3 02 A2 20 A2 20 F3 30 ... . .0</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 93C8 01 A0 02 0A 40 01 A4 02 ....@...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; 93D0 79 10 A2 10 F3 20 00 01 y.... ..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$A0</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$79</font> <font color="#8080ff">; 93D8 A0 02 0A 20 01 A4 02 79 ... ...y</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$78</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; 93E0 78 01 A0 02 0A FF 0A FF x.......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0A</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 93E8 0A 40 00 00 00 00 00 00 .@......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 93F0 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 93F8 00 00 00 00 00 00 00 00 ........</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">ask_num_players</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 9400 A2 FF ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9402 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">select_key_enabled</font> <font color="#8080ff">; 9404 8D C7 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">level</font> <font color="#8080ff">; 9407 8D F6 06 ...</font> + <font color="#00ff00">dec</font> <font color="#00ffff">level</font> <font color="#8080ff">; 940A CE F6 06 ...</font> +<font color="#8080ff">; clear area where NUMBER OF PLAYERS? will be displayed</font> +<font color="#00ffff">anp_clear_loop</font>: + <font color="#00ff00">sta</font> <font color="#ff40ff"> $37FF,x </font> <font color="#8080ff">; 940D 9D FF 37 ..7</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 9410 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">anp_clear_loop</font> <font color="#8080ff">; 9411 D0 FA ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">enable_joystick_jv</font> <font color="#8080ff">; 9413 20 1B 80 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$2C</font> <font color="#8080ff">; 9416 A2 2C .,</font> +<font color="#8080ff">; copy NUMBER OF PLAYERS to screen RAM</font> +<font color="#00ffff">anp_copy_loop</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">numplayer_screen_data_minus_one</font>,<font color="#00ffff">x</font><font color="#8080ff">; 9418 BD 9A 95 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $37FF,x </font> <font color="#8080ff">; 941B 9D FF 37 ..7</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 941E CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">anp_copy_loop</font> <font color="#8080ff">; 941F D0 F7 ..</font> +<font color="#8080ff">; X is now 0</font> +<font color="#00ffff">anp_loop_done</font>: + <font color="#00ff00">stx</font> <font color="#ff40ff"> $B7 </font> <font color="#8080ff">; 9421 86 B7 ..</font> + <font color="#00ff00">stx</font> <font color="#ff40ff"> $B8 </font> <font color="#8080ff">; 9423 86 B8 ..</font> + <font color="#00ff00">stx</font> <font color="#00ffff">randomizer_mode</font> <font color="#8080ff">; 9425 8E F3 06 ...</font> + <font color="#00ff00">stx</font> <font color="#ff40ff">COLOR4</font> <font color="#8080ff">; 9428 8E C8 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 942B A9 04 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">HSCROL</font> <font color="#8080ff">; 942D 8D 04 D4 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $A0 </font> <font color="#8080ff">; 9430 85 A0 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$1A</font> <font color="#8080ff">; 9432 A9 1A ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR3</font> <font color="#8080ff">; 9434 8D C7 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$96</font> <font color="#8080ff">; 9437 A9 96 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR2</font> <font color="#8080ff">; 9439 8D C6 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$C6</font> <font color="#8080ff">; 943C A9 C6 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR1</font> <font color="#8080ff">; 943E 8D C5 02 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">init_page_7_jv</font> <font color="#8080ff">; 9441 20 24 80 $.</font> +<font color="#8080ff">; set dlist shadow to point to numplayer_display_list</font> +<font color="#00ffff">setup_numplayer_dlist</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$5F</font> <font color="#8080ff">; 9444 A9 5F ._</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; 9446 8D AC 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$95</font> <font color="#8080ff">; 9449 A9 95 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_hi</font> <font color="#8080ff">; 944B 8D AD 06 ...</font> +<font color="#8080ff">; set dli vector to point to num_player_dli_service</font> +<font color="#00ffff">setup_numplayer_dli_sr</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$78</font> <font color="#8080ff">; 944E A9 78 .x</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dli_vec_shadow_lo</font> <font color="#8080ff">; 9450 8D AE 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$95</font> <font color="#8080ff">; 9453 A9 95 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dli_vec_shadow_hi</font> <font color="#8080ff">; 9455 8D AF 06 ...</font> +<font color="#8080ff">; we'll jump to $9489 aka option_key_handler when option key is pressed</font> +<font color="#00ffff">setup_option_key_vec</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$89</font> <font color="#8080ff">; 9458 A9 89 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">option_key_vec</font> <font color="#8080ff">; 945A 8D C0 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$94</font> <font color="#8080ff">; 945D A9 94 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">option_key_vec</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 945F 8D C1 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">option_key_enabled</font> <font color="#8080ff">; 9462 8D C6 06 ...</font> +<font color="#8080ff">; we'll jump to $94de aka get_player_speeds when start key is pressed</font> +<font color="#00ffff">setup_start_key_vec</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$DE</font> <font color="#8080ff">; 9465 A9 DE ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">start_key_vec</font> <font color="#8080ff">; 9467 8D C4 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$94</font> <font color="#8080ff">; 946A A9 94 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">start_key_vec</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 946C 8D C5 06 ...</font> +<font color="#8080ff">; play sfx_select_key at $95f1</font> +<font color="#00ffff">play_select_key_sfx</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$F1</font> <font color="#8080ff">; 946F A9 F1 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; 9471 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$95</font> <font color="#8080ff">; 9474 A9 95 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9476 8D 3D 06 .=.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; 9479 20 06 80 ..</font> +<font color="#8080ff">; wait for sound to finish playing</font> +<font color="#00ffff">wait_sfx</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_duration</font> <font color="#8080ff">; 947C AD 46 06 .F.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">wait_sfx</font> <font color="#8080ff">; 947F D0 FB ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 9481 A9 01 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">start_key_enabled</font> <font color="#8080ff">; 9483 8D C8 06 ...</font> +<font color="#8080ff">; initialization done, everything's done in interrupts from here on out</font> +<font color="#00ffff">hang_main_thread</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">hang_main_thread</font> <font color="#8080ff">; 9486 4C 86 94 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; called via option_key_vec when someone presses option</font> +<font color="#00ffff">option_key_handler</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9489 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">option_key_enabled</font> <font color="#8080ff">; 948B 8D C6 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $B8 </font> <font color="#8080ff">; 948E A5 B8 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 9490 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 9491 69 01 i.</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 9493 29 03 ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B8 </font> <font color="#8080ff">; 9495 85 B8 ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 9497 A8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">number_names_0</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 9498 B9 DD 95 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $381D </font> <font color="#8080ff">; 949B 8D 1D 38 ..8</font> + <font color="#00ff00">lda</font> <font color="#00ffff">number_names_1</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 949E B9 E1 95 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $381E </font> <font color="#8080ff">; 94A1 8D 1E 38 ..8</font> + <font color="#00ff00">lda</font> <font color="#00ffff">number_names_2</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 94A4 B9 E5 95 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $381F </font> <font color="#8080ff">; 94A7 8D 1F 38 ..8</font> + <font color="#00ff00">lda</font> <font color="#00ffff">number_names_3</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 94AA B9 E9 95 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3820 </font> <font color="#8080ff">; 94AD 8D 20 38 . 8</font> + <font color="#00ff00">lda</font> <font color="#00ffff">number_names_4</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 94B0 B9 ED 95 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3821 </font> <font color="#8080ff">; 94B3 8D 21 38 .!8</font> + <font color="#00ff00">lda</font> <font color="#00ffff">num_name_hscrol_table</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 94B6 B9 D9 95 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">HSCROL</font> <font color="#8080ff">; 94B9 8D 04 D4 ...</font> +<font color="#00ffff">play_opt_key_sfx</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$B0</font> <font color="#8080ff">; 94BC A9 B0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; 94BE 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8A</font> <font color="#8080ff">; 94C1 A9 8A ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 94C3 8D 3D 06 .=.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; 94C6 20 06 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 94C9 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; 94CB 8D 1A 06 ...</font> +<font color="#8080ff">; wait until it's done playing</font> +<font color="#00ffff">wait_opt_key_sfx</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; 94CE AD 1A 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 94D1 C9 08 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">wait_opt_key_sfx</font> <font color="#8080ff">; 94D3 90 F9 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">option_key_enabled</font> <font color="#8080ff">; 94D5 8D C6 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">start_key_enabled</font> <font color="#8080ff">; 94D8 8D C8 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">hang_main_thread</font> <font color="#8080ff">; 94DB 4C 86 94 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; loop up to 4 times, ask PLAYER #n SPEED? and wait for number key press</font> +<font color="#00ffff">get_player_speeds</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff"> $B8 </font> <font color="#8080ff">; 94DE A5 B8 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B9 </font> <font color="#8080ff">; 94E0 85 B9 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06FF </font> <font color="#8080ff">; 94E2 8D FF 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">number_of_players</font> <font color="#8080ff">; 94E5 8D F4 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 94E8 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B8 </font> <font color="#8080ff">; 94EA 85 B8 ..</font> +<font color="#8080ff">; disable start and option keys</font> +<font color="#00ffff">disable_start_opt</font>: + <font color="#00ff00">sta</font> <font color="#00ffff">option_key_enabled</font> <font color="#8080ff">; 94EC 8D C6 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">start_key_enabled</font> <font color="#8080ff">; 94EF 8D C8 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $BA </font> <font color="#8080ff">; 94F2 85 BA ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $B9 </font> <font color="#8080ff">; 94F4 E6 B9 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $BA </font> <font color="#8080ff">; 94F6 E6 BA ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 94F8 A8 .</font> +<font color="#8080ff">; copy PLAYER #n SPEED? to screen RAM</font> +<font color="#00ffff">show_player_speed_prompt</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 94F9 A2 00 ..</font> +<font color="#00ffff">psprompt_loop</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">player_x_speed</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 94FB BD C5 95 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $382C,y </font> <font color="#8080ff">; 94FE 99 2C 38 .,8</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 9501 E8 .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 9502 C8 .</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$14</font> <font color="#8080ff">; 9503 E0 14 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">psprompt_loop</font> <font color="#8080ff">; 9505 D0 F4 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $BA </font> <font color="#8080ff">; 9507 A5 BA ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 9509 8D FE 06 ...</font> + <font color="#00ff00">ora</font> <font color="#ff6060">#$90</font> <font color="#8080ff">; 950C 09 90 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $BA </font> <font color="#8080ff">; 950E E6 BA ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3821,y </font> <font color="#8080ff">; 9510 99 21 38 .!8</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $B9 </font> <font color="#8080ff">; 9513 C6 B9 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">show_player_speed_prompt</font> <font color="#8080ff">; 9515 D0 E2 ..</font> +<font color="#8080ff">; set select key vector to ask_num_players at $9400, enable select key</font> +<font color="#00ffff">setup_select_key_vec_again</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9517 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">select_key_vec</font> <font color="#8080ff">; 9519 8D C2 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$94</font> <font color="#8080ff">; 951C A9 94 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">select_key_vec</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 951E 8D C3 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">select_key_enabled</font> <font color="#8080ff">; 9521 8D C7 06 ...</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $BA </font> <font color="#8080ff">; 9524 C6 BA ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$12</font> <font color="#8080ff">; 9526 A0 12 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9528 A2 00 ..</font> +<font color="#8080ff">; initialize speed to -1</font> +<font color="#00ffff">init_speed</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 952A A9 FF ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">speed_value</font> <font color="#8080ff">; 952C 8D F9 06 ...</font> +<font color="#8080ff">; wait for keyboard IRQ handler to set a speed <= 8</font> +<font color="#00ffff">wait_for_speed</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">speed_value</font> <font color="#8080ff">; 952F AD F9 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; 9532 C9 09 ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">wait_for_speed</font> <font color="#8080ff">; 9534 B0 F9 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0714,x </font> <font color="#8080ff">; 9536 9D 14 07 ...</font> + <font color="#00ff00">pha</font> <font color="#8080ff">; 9539 48 H</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 953A 18 .</font> +<font color="#8080ff">; 11-byte per-player struct?</font> +<font color="#00ffff">add_11_to_x</font>: + <font color="#00ff00">txa</font> <font color="#8080ff">; 953B 8A .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$0B</font> <font color="#8080ff">; 953C 69 0B i.</font> + <font color="#00ff00">tax</font> <font color="#8080ff">; 953E AA .</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 953F 68 h</font> +<font color="#8080ff">; convert to ASCII digit</font> +<font color="#00ffff">speed_to_ascii</font>: + <font color="#00ff00">ora</font> <font color="#ff6060">#$90</font> <font color="#8080ff">; 9540 09 90 ..</font> +<font color="#8080ff">; show it to the user</font> +<font color="#00ffff">display_speed</font>: + <font color="#00ff00">sta</font> <font color="#ff40ff"> $382C,y </font> <font color="#8080ff">; 9542 99 2C 38 .,8</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; 9545 98 .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 9546 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$14</font> <font color="#8080ff">; 9547 69 14 i.</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 9549 A8 .</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $B8 </font> <font color="#8080ff">; 954A E6 B8 ..</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $BA </font> <font color="#8080ff">; 954C C6 BA ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">init_speed</font> <font color="#8080ff">; 954E D0 DA ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $06FF </font> <font color="#8080ff">; 9550 EE FF 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $06FF </font> <font color="#8080ff">; 9553 AD FF 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 9556 8D FE 06 ...</font> + <font color="#00ff00">inc</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 9559 EE FE 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">afterlife</font> <font color="#8080ff">; 955C 4C 00 96 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; display list for 'number of players' screen</font> +<font color="#00ffff">numplayer_display_list</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$47</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$70</font> <font color="#8080ff">; 955F 70 70 70 70 47 00 38 70 ppppG.8p</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$70</font>,<font color="#ff6060">$97</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$87</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$87</font> <font color="#8080ff">; 9567 70 97 70 70 87 70 70 87 p.pp.pp.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$87</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$5F</font> <font color="#8080ff">; 956F 70 70 87 70 70 07 41 5F pp.pp.A_</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $95 </font> <font color="#8080ff">; 9577 95 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; DLI service routine, changes COLPF2, address gets stored in $6ae/$6af by code at $944e</font> +<font color="#00ffff">num_player_dli_service</font>: + <font color="#00ff00">pha</font> <font color="#8080ff">; 9578 48 H</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $B7 </font> <font color="#8080ff">; 9579 A5 B7 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $B8 </font> <font color="#8080ff">; 957B C5 B8 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">WSYNC</font> <font color="#8080ff">; 957D 8D 0A D4 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9592</font> <font color="#8080ff">; 9580 D0 10 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $062A </font> <font color="#8080ff">; 9582 AD 2A 06 .*.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLPF2</font> <font color="#8080ff">; 9585 8D 18 D0 ...</font> +<font color="#00ffff">L9588</font>: <font color="#00ff00">inc</font> <font color="#ff40ff"> $B7 </font> <font color="#8080ff">; 9588 E6 B7 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $B7 </font> <font color="#8080ff">; 958A A5 B7 ..</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 958C 29 03 ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B7 </font> <font color="#8080ff">; 958E 85 B7 ..</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 9590 68 h</font> + <font color="#00ff00">rti</font> <font color="#8080ff">; 9591 40 @</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9592</font>: <font color="#00ff00">lda</font> <font color="#ff40ff">COLOR2</font> <font color="#8080ff">; 9592 AD C6 02 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLPF2</font> <font color="#8080ff">; 9595 8D 18 D0 ...</font> +<font color="#00ffff">numplayer_screen_data_minus_one</font>:= * + <font color="#ff6060">2</font> <font color="#8080ff">; 1-indexed loop copies from here+1</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L9588</font> <font color="#8080ff">; 9598 4C 88 95 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; 'number of players?', gets copied to $3800, see option_key_handler</font> +<font color="#00ffff">numplayer_screen_data</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$6E</font>,<font color="#ff6060">$75</font>,<font color="#ff6060">$6D</font>,<font color="#ff6060">$62</font>,<font color="#ff6060">$65</font>,<font color="#ff6060">$72</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 959B 00 6E 75 6D 62 65 72 00 .number.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$6F</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$61</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$65</font> <font color="#8080ff">; 95A3 6F 66 00 70 6C 61 79 65 of.playe</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$72</font>,<font color="#ff6060">$73</font>,<font color="#ff6060">$5F</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 95AB 72 73 5F 00 00 00 00 00 rs_.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$EF</font>,<font color="#ff6060">$EE</font> <font color="#8080ff">; 95B3 00 00 00 00 00 00 EF EE ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$E5</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 95BB E5 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 95C3 00 00 ..</font> +<font color="#8080ff">; ' PLAYER # SPEED? ' in PF2 color</font> +<font color="#00ffff">player_x_speed</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$B0</font>,<font color="#ff6060">$AC</font>,<font color="#ff6060">$A1</font>,<font color="#ff6060">$B9</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$B2</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 95C5 00 B0 AC A1 B9 A5 B2 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$83</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$B3</font>,<font color="#ff6060">$B0</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$A4</font> <font color="#8080ff">; 95CD 83 80 80 B3 B0 A5 A5 A4 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9F</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 95D5 9F 00 00 00 ....</font> +<font color="#8080ff">; used for centering ONE TWO THREE FOUR, see option_key_handler</font> +<font color="#00ffff">num_name_hscrol_table</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 95D9 04 04 04 00 ....</font> +<font color="#8080ff">; space space T space (names ONE TWO THREE FOUR)</font> +<font color="#00ffff">number_names_0</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$F4</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 95DD 00 00 F4 00 ....</font> +<font color="#8080ff">; O T H F</font> +<font color="#00ffff">number_names_1</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$EF</font>,<font color="#ff6060">$F4</font>,<font color="#ff6060">$E8</font>,<font color="#ff6060">$E6</font> <font color="#8080ff">; 95E1 EF F4 E8 E6 ....</font> +<font color="#8080ff">; N W R O</font> +<font color="#00ffff">number_names_2</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$EE</font>,<font color="#ff6060">$F7</font>,<font color="#ff6060">$F2</font>,<font color="#ff6060">$EF</font> <font color="#8080ff">; 95E5 EE F7 F2 EF ....</font> +<font color="#8080ff">; E O E U</font> +<font color="#00ffff">number_names_3</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$E5</font>,<font color="#ff6060">$EF</font>,<font color="#ff6060">$E5</font>,<font color="#ff6060">$F5</font> <font color="#8080ff">; 95E9 E5 EF E5 F5 ....</font> +<font color="#8080ff">; space space E R</font> +<font color="#00ffff">number_names_4</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$E5</font>,<font color="#ff6060">$F2</font> <font color="#8080ff">; 95ED 00 00 E5 F2 ....</font> +<font color="#8080ff">; played when select key pressed, 4 notes, descending</font> +<font color="#00ffff">sfx_select_key</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$1D</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$79</font> <font color="#8080ff">; 95F1 01 A4 00 1D 08 3C 08 79 .....<.y</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 95F9 08 F3 08 00 3C 02 00 ....<..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; multiple code paths jump here. replay level, load next level, or go back to ask_num_players</font> +<font color="#00ffff">afterlife</font>: + <font color="#00ff00">jsr</font> <font color="#00ffff">enable_joystick_jv</font> <font color="#8080ff">; 9600 20 1B 80 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8027</font> <font color="#8080ff">; 9603 20 27 80 '.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $06F8 </font> <font color="#8080ff">; 9606 AD F8 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L960E</font> <font color="#8080ff">; 9609 F0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">ask_num_players</font> <font color="#8080ff">; 960B 4C 00 94 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L960E</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $06F7 </font> <font color="#8080ff">; 960E AD F7 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9616</font> <font color="#8080ff">; 9611 F0 03 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">init_next_level</font> <font color="#8080ff">; 9613 20 E8 9B ..</font> +<font color="#00ffff">L9616</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9616 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">bonus_jiffy_timer</font> <font color="#8080ff">; 9618 8D 26 06 .&.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06F5 </font> <font color="#8080ff">; 961B 8D F5 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR4</font> <font color="#8080ff">; 961E 8D C8 02 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L9BD0</font> <font color="#8080ff">; 9621 4C D0 9B L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; only in multiplayer games</font> +<font color="#00ffff">show_get_ready_prompt</font>: + <font color="#00ff00">ldx</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 9624 AE FE 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">color0_table_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9627 BD 27 97 .'.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR4</font> <font color="#8080ff">; 962A 8D C8 02 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; 962D 8D C4 02 ...</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$14</font> <font color="#8080ff">; 9630 A0 14 ..</font> +<font color="#00ffff">L9632</font>: <font color="#00ff00">lda</font> <font color="#00ffff">L9713</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 9632 B9 13 97 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0741,y </font> <font color="#8080ff">; 9635 99 41 07 .A.</font> + <font color="#00ff00">dey</font> <font color="#8080ff">; 9638 88 .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9632</font> <font color="#8080ff">; 9639 D0 F7 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 963B AD FE 06 ...</font> + <font color="#00ff00">ora</font> <font color="#ff6060">#$10</font> <font color="#8080ff">; 963E 09 10 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $074A </font> <font color="#8080ff">; 9640 8D 4A 07 .J.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9643 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $B9 </font> <font color="#8080ff">; 9645 85 B9 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_2</font> <font color="#8080ff">; 9647 8D 1B 06 ...</font> +<font color="#8080ff">; 06ac/06ad gets address of get_ready_dlist (why not SDLSTL/H?)</font> +<font color="#00ffff">setup_get_ready_dl</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$2C</font> <font color="#8080ff">; 964A A9 2C .,</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; 964C 8D AC 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$97</font> <font color="#8080ff">; 964F A9 97 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_hi</font> <font color="#8080ff">; 9651 8D AD 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$E6</font> <font color="#8080ff">; 9654 A9 E6 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font> <font color="#8080ff">; 9656 8D 82 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$96</font> <font color="#8080ff">; 9659 A9 96 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 965B 8D 83 07 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">clear_screen_mem_jv</font> <font color="#8080ff">; 965E 20 1E 80 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">cur_level_map0</font> <font color="#8080ff">; 9661 AD D6 07 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; 9664 85 C0 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">cur_level_map0</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9666 AD D7 07 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9669 85 C1 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">draw_map_jv</font> <font color="#8080ff">; 966B 20 00 80 ..</font> +<font color="#00ffff">L966E</font>: <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_2</font> <font color="#8080ff">; 966E AD 1B 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$F2</font> <font color="#8080ff">; 9671 C9 F2 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L966E</font> <font color="#8080ff">; 9673 D0 F9 ..</font> +<font color="#00ffff">L9675</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9675 A2 00 ..</font> +<font color="#8080ff">; copy level descriptor to $0780</font> +<font color="#00ffff">copy_level_desc_2</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">cur_level_desc</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9677 BD C0 07 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_desc</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 967A 9D 80 07 ...</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 967D E8 .</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$40</font> <font color="#8080ff">; 967E E0 40 .@</font> + <font color="#00ff00">bne</font> <font color="#00ffff">copy_level_desc_2</font> <font color="#8080ff">; 9680 D0 F5 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_sub5</font> <font color="#8080ff">; 9682 AD A2 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06E1 </font> <font color="#8080ff">; 9685 8D E1 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_sub5</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9688 AD A3 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06E2 </font> <font color="#8080ff">; 968B 8D E2 06 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L06E0</font> <font color="#8080ff">; 968E 20 E0 06 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9691 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR4</font> <font color="#8080ff">; 9693 8D C8 02 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06AB </font> <font color="#8080ff">; 9696 8D AB 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_offs_46</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9699 AD AF 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; 969C 8D C4 02 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_offs_46</font>+<font color="#ff6060">2</font> <font color="#8080ff">; 969F AD B0 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR1</font> <font color="#8080ff">; 96A2 8D C5 02 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_offs_46</font>+<font color="#ff6060">3</font> <font color="#8080ff">; 96A5 AD B1 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR2</font> <font color="#8080ff">; 96A8 8D C6 02 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_offs_46</font> <font color="#8080ff">; 96AB AD AE 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR3</font> <font color="#8080ff">; 96AE 8D C7 02 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">setup_gameboard_dlist_jv</font> <font color="#8080ff">; 96B1 20 15 80 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $06F5 </font> <font color="#8080ff">; 96B4 EE F5 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L9BDD</font> <font color="#8080ff">; 96B7 4C DD 9B L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; maybe this should be check_level or init_level?</font> +<font color="#00ffff">enter_level</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 96BA A9 00 ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 96BC A8 .</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D7 </font> <font color="#8080ff">; 96BD 85 D7 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D8 </font> <font color="#8080ff">; 96BF 85 D8 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">level</font> <font color="#8080ff">; 96C1 EE F6 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">level</font> <font color="#8080ff">; 96C4 AD F6 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$0C</font> <font color="#8080ff">; 96C7 C9 0C ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">copy_level_desc</font> <font color="#8080ff">; 96C9 D0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">ask_num_players</font> <font color="#8080ff">; 96CB 4C 00 94 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; copy level descriptor from levelXX_desc at $A000+(level*$40) to $07c0-$07ff</font> +<font color="#00ffff">copy_level_desc</font>: + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 96CE 4A J</font> + <font color="#00ff00">ror</font> <font color="#ff40ff"> $D7 </font> <font color="#8080ff">; 96CF 66 D7 f.</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 96D1 4A J</font> + <font color="#00ff00">ror</font> <font color="#ff40ff"> $D7 </font> <font color="#8080ff">; 96D2 66 D7 f.</font> + <font color="#00ff00">ora</font> <font color="#ff6060">#$A0</font> <font color="#8080ff">; 96D4 09 A0 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D8 </font> <font color="#8080ff">; 96D6 85 D8 ..</font> +<font color="#00ffff">sl_loop</font>:<font color="#00ff00">lda</font> <font color="#ff40ff"> ($D7),y </font> <font color="#8080ff">; 96D8 B1 D7 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">cur_level_desc</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 96DA 99 C0 07 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 96DD C8 .</font> + <font color="#00ff00">cpy</font> <font color="#ff6060">#$40</font> <font color="#8080ff">; 96DE C0 40 .@</font> + <font color="#00ff00">bne</font> <font color="#00ffff">sl_loop</font> <font color="#8080ff">; 96E0 D0 F6 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L802A</font> <font color="#8080ff">; 96E2 20 2A 80 *.</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 96E5 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_2</font> <font color="#8080ff">; 96E6 AD 1B 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$F0</font> <font color="#8080ff">; 96E9 C9 F0 ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L9709</font> <font color="#8080ff">; 96EB B0 1C ..</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$1F</font> <font color="#8080ff">; 96ED 29 1F ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L96F2</font> <font color="#8080ff">; 96EF F0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 96F1 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L96F2</font>: <font color="#00ff00">lda</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; 96F2 AD C4 02 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 96F5 C9 0F ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L96FF</font> <font color="#8080ff">; 96F7 F0 06 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 96F9 A9 0F ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; 96FB 8D C4 02 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 96FE 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L96FF</font>: <font color="#00ff00">ldx</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 96FF AE FE 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">color0_table_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9702 BD 27 97 .'.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; 9705 8D C4 02 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9708 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9709</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$E6</font> <font color="#8080ff">; 9709 A9 E6 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font> <font color="#8080ff">; 970B 8D 82 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; 970E A9 06 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9710 8D 83 07 ...</font> +<font color="#00ffff">L9713</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; 9713 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; PLAYER GET READY</font> +<font color="#00ffff">get_ready_msg</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$21</font>,<font color="#ff6060">$39</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9714 00 30 2C 21 39 25 32 00 .0,!9%2.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$27</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$25</font> <font color="#8080ff">; 971C 00 00 27 25 34 00 32 25 ..'%4.2%</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$21</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$39</font> <font color="#8080ff">; 9724 21 24 39 !$9</font> +<font color="#00ffff">color0_table_minus_one</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; 9727 00 .</font> +<font color="#00ffff">color0_table</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$96</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$54</font> <font color="#8080ff">; 9728 96 24 C6 54 .$.T</font> +<font color="#8080ff">; 112 blank scanlines, then one GR.2 line, loaded from $0742</font> +<font color="#00ffff">get_ready_dlist</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font> <font color="#8080ff">; 972C 70 70 70 70 70 70 70 70 pppppppp</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$47</font>,<font color="#ff6060">$42</font> <font color="#8080ff">; 9734 70 70 70 70 70 70 47 42 ppppppGB</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$07</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$97</font> <font color="#8080ff">; 973C 07 41 2C 97 .A,.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">game_main_loop</font>: + <font color="#00ff00">jsr</font> <font color="#00ffff">materialize_jumpman</font> <font color="#8080ff">; 9740 20 7B 97 {.</font> +<font color="#00ffff">L9743</font>: <font color="#00ff00">jsr</font> <font color="#00ffff">L8033</font> <font color="#8080ff">; 9743 20 33 80 3.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_num_bombs</font> <font color="#8080ff">; 9746 AD 8A 07 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">got_all_bombs</font> <font color="#8080ff">; 9749 F0 1B ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; 974B AD 23 06 .#.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 974E C9 02 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9743</font> <font color="#8080ff">; 9750 D0 F1 ..</font> +<font color="#00ffff">L9752</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; 9752 AD 23 06 .#.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 9755 C9 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9752</font> <font color="#8080ff">; 9757 F0 F9 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">lives</font> <font color="#8080ff">; 9759 AD 0A 07 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 975C C9 FF ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; 975E D0 E0 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">call_eol_sub</font> <font color="#8080ff">; 9760 20 6C 97 l.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">crumble_gameboard_jv</font> <font color="#8080ff">; 9763 4C 30 80 L0.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">got_all_bombs</font>: + <font color="#00ff00">jsr</font> <font color="#00ffff">call_eol_sub</font> <font color="#8080ff">; 9766 20 6C 97 l.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">level_finished_jv</font> <font color="#8080ff">; 9769 4C 2D 80 L-.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">call_eol_sub</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_sub_eol</font> <font color="#8080ff">; 976C AD A6 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06E4 </font> <font color="#8080ff">; 976F 8D E4 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_sub_eol</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9772 AD A7 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06E5 </font> <font color="#8080ff">; 9775 8D E5 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L06E3</font> <font color="#8080ff">; 9778 4C E3 06 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">materialize_jumpman</font>: + <font color="#00ff00">jsr</font> <font color="#00ffff">update_status_window_jv</font> <font color="#8080ff">; 977B 20 12 80 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 977E A2 04 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9780 A9 00 ..</font> +<font color="#00ffff">mj_clear_loop</font>: + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0755,x </font> <font color="#8080ff">; 9782 9D 55 07 .U.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069A,x </font> <font color="#8080ff">; 9785 9D 9A 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06EA,x </font> <font color="#8080ff">; 9788 9D EA 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06EB,x </font> <font color="#8080ff">; 978B 9D EB 06 ...</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 978E CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">mj_clear_loop</font> <font color="#8080ff">; 978F D0 F1 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0697 </font> <font color="#8080ff">; 9791 8D 97 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0698 </font> <font color="#8080ff">; 9794 8D 98 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">PCOLR0</font> <font color="#8080ff">; 9797 8D C0 02 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $BA </font> <font color="#8080ff">; 979A 85 BA ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF4</font> <font color="#8080ff">; 979C 8D 06 D2 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_y_start</font> <font color="#8080ff">; 979F AD 8C 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 97A2 8D 83 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_x_start</font> <font color="#8080ff">; 97A5 AD 8D 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 97A8 8D 7E 06 .~.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 97AB A9 01 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 97AD 8D 88 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$A5</font> <font color="#8080ff">; 97B0 A9 A5 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDC4</font> <font color="#8080ff">; 97B2 8D 07 D2 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $066A </font> <font color="#8080ff">; 97B5 EE 6A 06 .j.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $066B </font> <font color="#8080ff">; 97B8 EE 6B 06 .k.</font> +<font color="#00ffff">mj_set_freq_and_color</font>: + <font color="#00ff00">inc</font> <font color="#ff40ff"> $BA </font> <font color="#8080ff">; 97BB E6 BA ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">mj_done</font> <font color="#8080ff">; 97BD F0 1C ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $BA </font> <font color="#8080ff">; 97BF A5 BA ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF4</font> <font color="#8080ff">; 97C1 8D 06 D2 ...</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 97C4 4A J</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 97C5 4A J</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 97C6 4A J</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 97C7 4A J</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">PCOLR0</font> <font color="#8080ff">; 97C8 8D C0 02 ...</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 97CB A2 FF ..</font> +<font color="#00ffff">mj_delay</font>: + <font color="#00ff00">dex</font> <font color="#8080ff">; 97CD CA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; 97CE EA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; 97CF EA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; 97D0 EA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; 97D1 EA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; 97D2 EA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; 97D3 EA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; 97D4 EA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; 97D5 EA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">mj_delay</font> <font color="#8080ff">; 97D6 D0 F5 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">mj_set_freq_and_color</font> <font color="#8080ff">; 97D8 4C BB 97 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">mj_done</font>:<font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 97DB A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF4</font> <font color="#8080ff">; 97DD 8D 06 D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDC4</font> <font color="#8080ff">; 97E0 8D 07 D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; 97E3 8D 23 06 .#.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">initial_speed</font> <font color="#8080ff">; 97E6 AD 25 06 .%.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; 97E9 8D 24 06 .$.</font> + <font color="#00ff00">inc</font> <font color="#00ffff">playing_level</font> <font color="#8080ff">; 97EC EE 27 06 .'.</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 97EF 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97F0 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97F1 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97F2 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97F3 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97F4 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97F5 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97F6 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97F7 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97F8 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97F9 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97FA 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97FB 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97FC 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97FD 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97FE 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 97FF 00 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0621 </font> <font color="#8080ff">; 9800 AD 21 06 .!.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9806</font> <font color="#8080ff">; 9803 D0 01 ..</font> +<font color="#00ffff">L9805</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; 9805 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9806</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; 9806 AD 23 06 .#.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9805</font> <font color="#8080ff">; 9809 D0 FA ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 980B AD 83 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$C6</font> <font color="#8080ff">; 980E C9 C6 ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L982E</font> <font color="#8080ff">; 9810 B0 1C ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $06EB </font> <font color="#8080ff">; 9812 AD EB 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">check_collisions_2</font> <font color="#8080ff">; 9815 F0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L99A8</font> <font color="#8080ff">; 9817 4C A8 99 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; did player 0 or 1 hit the playfield...</font> +<font color="#00ffff">check_collisions_2</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 981A A9 01 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 981C 8D 88 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $06ED </font> <font color="#8080ff">; 981F AD ED 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">check_collisions_3</font> <font color="#8080ff">; 9822 F0 0E ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; 9824 AD B4 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">5</font> <font color="#8080ff">; 9827 0D B5 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 982A 29 03 ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">check_collisions_3</font> <font color="#8080ff">; 982C D0 04 ..</font> +<font color="#00ffff">L982E</font>: <font color="#00ff00">inc</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; 982E EE 23 06 .#.</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9831 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; did player 0 or 1 hit the playfield...</font> +<font color="#00ffff">check_collisions_3</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9832 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06ED </font> <font color="#8080ff">; 9834 8D ED 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; 9837 AD B4 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">5</font> <font color="#8080ff">; 983A 0D B5 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 983D 29 03 ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">check_trigger_state</font> <font color="#8080ff">; 983F D0 0C ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $06ED </font> <font color="#8080ff">; 9841 EE ED 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 9844 EE 83 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 9847 EE 83 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L989F</font> <font color="#8080ff">; 984A 4C 9F 98 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; did user press the trigger?</font> +<font color="#00ffff">check_trigger_state</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">trigger_state</font> <font color="#8080ff">; 984D AD 35 06 .5.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">check_up_down</font> <font color="#8080ff">; 9850 D0 03 ..</font> +<font color="#8080ff">; yes, jump to handler</font> +<font color="#00ffff">trig_jmp</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">trigger_handler</font> <font color="#8080ff">; 9852 4C 85 99 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; did user move joystick up/down?</font> +<font color="#00ffff">check_up_down</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">joystick_state</font> <font color="#8080ff">; 9855 AD 33 06 .3.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$0E</font> <font color="#8080ff">; 9858 C9 0E ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9863</font> <font color="#8080ff">; 985A F0 07 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$0D</font> <font color="#8080ff">; 985C C9 0D ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9863</font> <font color="#8080ff">; 985E F0 03 ..</font> +<font color="#8080ff">; no, jump over handler</font> +<font color="#00ffff">cud_jmp</font>:<font color="#00ff00">jmp</font> <font color="#00ffff">L9892</font> <font color="#8080ff">; 9860 4C 92 98 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9863</font>: <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; 9863 AD B4 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">5</font> <font color="#8080ff">; 9866 0D B5 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 9869 29 02 ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9870</font> <font color="#8080ff">; 986B D0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L98D0</font> <font color="#8080ff">; 986D 4C D0 98 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9870</font>: <font color="#00ff00">jsr</font> <font color="#00ffff">check_up_down_2</font> <font color="#8080ff">; 9870 20 3B 99 ;.</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L9878</font> <font color="#8080ff">; 9873 B0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L98D0</font> <font color="#8080ff">; 9875 4C D0 98 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9878</font>: <font color="#00ff00">sta</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 9878 8D 7E 06 .~.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">player_delta_y</font> <font color="#8080ff">; 987B AD 31 06 .1.</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; 987E 0A .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 987F 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 9880 6D 83 06 m..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 9883 8D 83 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0620 </font> <font color="#8080ff">; 9886 AD 20 06 . .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 9889 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 988A 69 04 i.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 988C 8D 88 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">play_sfx_bounce_2</font> <font color="#8080ff">; 988F 4C 80 8A L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9892</font>: <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; 9892 AD B4 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">5</font> <font color="#8080ff">; 9895 0D B5 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 9898 29 01 ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L989F</font> <font color="#8080ff">; 989A D0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L98D0</font> <font color="#8080ff">; 989C 4C D0 98 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L989F</font>: <font color="#00ff00">lda</font> <font color="#00ffff">player_delta_x</font> <font color="#8080ff">; 989F AD 30 06 .0.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L98D0</font> <font color="#8080ff">; 98A2 F0 2C .,</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; 98A4 0A .</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 98A5 A2 08 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 98A7 C9 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L98AD</font> <font color="#8080ff">; 98A9 F0 02 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$0C</font> <font color="#8080ff">; 98AB A2 0C ..</font> +<font color="#00ffff">L98AD</font>: <font color="#00ff00">clc</font> <font color="#8080ff">; 98AD 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 98AE 6D 7E 06 m~.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 98B1 8D 7E 06 .~.</font> + <font color="#00ff00">txa</font> <font color="#8080ff">; 98B4 8A .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 98B5 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $0620 </font> <font color="#8080ff">; 98B6 6D 20 06 m .</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 98B9 8D 88 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $061F </font> <font color="#8080ff">; 98BC AD 1F 06 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L98D0</font> <font color="#8080ff">; 98BF D0 0F ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$73</font> <font color="#8080ff">; 98C1 A9 73 .s</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_tempo</font> <font color="#8080ff">; 98C3 8D 3E 06 .>.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$BE</font> <font color="#8080ff">; 98C6 A9 BE ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_timer</font> <font color="#8080ff">; 98C8 8D 3F 06 .?.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 98CB A9 01 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8003</font> <font color="#8080ff">; 98CD 20 03 80 ..</font> +<font color="#00ffff">L98D0</font>: <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; 98D0 AD B4 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">5</font> <font color="#8080ff">; 98D3 0D B5 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 98D6 29 02 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L98F0</font> <font color="#8080ff">; 98D8 F0 16 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L9971</font> <font color="#8080ff">; 98DA 20 71 99 q.</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L990F</font> <font color="#8080ff">; 98DD 90 30 .0</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 98DF EE 83 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 98E2 EE 83 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $061F </font> <font color="#8080ff">; 98E5 AD 1F 06 ...</font> + <font color="#00ff00">ora</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 98E8 09 02 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 98EA 8D 88 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L9925</font> <font color="#8080ff">; 98ED 4C 25 99 L%.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L98F0</font>: <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; 98F0 AD B4 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 98F3 29 01 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L990F</font> <font color="#8080ff">; 98F5 F0 18 ..</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 98F7 CE 83 06 ...</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 98FA CE 83 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 98FD AD 88 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 9900 C9 01 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L990F</font> <font color="#8080ff">; 9902 D0 0B ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $061F </font> <font color="#8080ff">; 9904 AD 1F 06 ...</font> + <font color="#00ff00">ora</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 9907 09 02 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 9909 8D 88 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L9925</font> <font color="#8080ff">; 990C 4C 25 99 L%.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L990F</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 990F AD 88 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 9912 C9 01 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9925</font> <font color="#8080ff">; 9914 D0 0F ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; 9916 AD B4 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">5</font> <font color="#8080ff">; 9919 0D B5 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 991C 29 02 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9925</font> <font color="#8080ff">; 991E F0 05 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 9920 A9 04 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 9922 8D 88 06 ...</font> +<font color="#00ffff">L9925</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 9925 AD 88 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0689 </font> <font color="#8080ff">; 9928 8D 89 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 992B AD 7E 06 .~.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067F </font> <font color="#8080ff">; 992E 8D 7F 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 9931 AD 83 06 ...</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 9934 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$0A</font> <font color="#8080ff">; 9935 69 0A i.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0684 </font> <font color="#8080ff">; 9937 8D 84 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 993A 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; did user move joystick up/down?</font> +<font color="#00ffff">check_up_down_2</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">joystick_state</font> <font color="#8080ff">; 993B AD 33 06 .3.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$0D</font> <font color="#8080ff">; 993E C9 0D ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9949</font> <font color="#8080ff">; 9940 D0 07 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 9942 AD 83 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$C0</font> <font color="#8080ff">; 9945 C9 C0 ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L9967</font> <font color="#8080ff">; 9947 B0 1E ..</font> +<font color="#00ffff">L9949</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 9949 AD 7E 06 .~.</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; 994C 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; 994D E9 30 .0</font> + <font color="#00ff00">sta</font> <font color="#00ffff">zp_temp1</font> <font color="#8080ff">; 994F 85 CB ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 9951 A2 08 ..</font> +<font color="#00ffff">L9953</font>: <font color="#00ff00">lda</font> <font color="#00ffff">work_level_offs_46</font>+<font color="#ff6060">3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9953 BD B1 07 ...</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 9956 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; 9957 69 02 i.</font> + <font color="#00ff00">cmp</font> <font color="#00ffff">zp_temp1</font> <font color="#8080ff">; 9959 C5 CB ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L9964</font> <font color="#8080ff">; 995B 90 07 ..</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; 995D 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; 995E E9 05 ..</font> + <font color="#00ff00">cmp</font> <font color="#00ffff">zp_temp1</font> <font color="#8080ff">; 9960 C5 CB ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L9969</font> <font color="#8080ff">; 9962 90 05 ..</font> +<font color="#00ffff">L9964</font>: <font color="#00ff00">dex</font> <font color="#8080ff">; 9964 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9953</font> <font color="#8080ff">; 9965 D0 EC ..</font> +<font color="#00ffff">L9967</font>: <font color="#00ff00">clc</font> <font color="#8080ff">; 9967 18 .</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9968 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9969</font>: <font color="#00ff00">lda</font> <font color="#00ffff">work_level_offs_46</font>+<font color="#ff6060">3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9969 BD B1 07 ...</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 996C 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; 996D 69 30 i0</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; 996F 38 8</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9970 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9971</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 9971 AD 7E 06 .~.</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; 9974 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; 9975 E9 30 .0</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; 9977 A2 06 ..</font> +<font color="#00ffff">L9979</font>: <font color="#00ff00">cmp</font> <font color="#00ffff">work_level_offs_55</font>+<font color="#ff6060">2</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9979 DD B9 07 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9983</font> <font color="#8080ff">; 997C F0 05 ..</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 997E CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9979</font> <font color="#8080ff">; 997F D0 F8 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 9981 18 .</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9982 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9983</font>: <font color="#00ff00">sec</font> <font color="#8080ff">; 9983 38 8</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9984 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; handle trigger presses (maybe start a jump)</font> +<font color="#00ffff">trigger_handler</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 9985 A2 04 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">joystick_state</font> <font color="#8080ff">; 9987 AD 33 06 .3.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$0E</font> <font color="#8080ff">; 998A C9 0E ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L99A0</font> <font color="#8080ff">; 998C F0 12 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$10</font> <font color="#8080ff">; 998E A2 10 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">player_delta_x</font> <font color="#8080ff">; 9990 AD 30 06 .0.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 9993 C9 01 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L99A0</font> <font color="#8080ff">; 9995 F0 09 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$11</font> <font color="#8080ff">; 9997 A2 11 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 9999 C9 FF ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L99A0</font> <font color="#8080ff">; 999B F0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">check_up_down</font> <font color="#8080ff">; 999D 4C 55 98 LU.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L99A0</font>: <font color="#00ff00">stx</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 99A0 8E 88 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 99A3 A9 01 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_music_jv</font> <font color="#8080ff">; 99A5 20 18 80 ..</font> +<font color="#00ffff">L99A8</font>: <font color="#00ff00">inc</font> <font color="#ff40ff"> $06EB </font> <font color="#8080ff">; 99A8 EE EB 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $06EB </font> <font color="#8080ff">; 99AB AD EB 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$16</font> <font color="#8080ff">; 99AE C9 16 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L99BD</font> <font color="#8080ff">; 99B0 D0 0B ..</font> +<font color="#00ffff">L99B2</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 99B2 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06EB </font> <font color="#8080ff">; 99B4 8D EB 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06ED </font> <font color="#8080ff">; 99B7 8D ED 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">check_collisions_2</font> <font color="#8080ff">; 99BA 4C 1A 98 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L99BD</font>: <font color="#00ff00">ldx</font> <font color="#ff40ff"> $06EB </font> <font color="#8080ff">; 99BD AE EB 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L9A1B</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 99C0 BD 1B 9A ...</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 99C3 A8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 99C4 AD 88 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$10</font> <font color="#8080ff">; 99C7 C9 10 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L99DD</font> <font color="#8080ff">; 99C9 F0 12 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$11</font> <font color="#8080ff">; 99CB C9 11 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L99DB</font> <font color="#8080ff">; 99CD D0 0C ..</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; 99CF 98 .</font> + <font color="#00ff00">sta</font> <font color="#00ffff">zp_temp1</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 99D0 85 CC ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 99D2 A9 00 ..</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; 99D4 38 8</font> + <font color="#00ff00">sbc</font> <font color="#00ffff">zp_temp1</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 99D5 E5 CC ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 99D7 A8 .</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L99DD</font> <font color="#8080ff">; 99D8 4C DD 99 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L99DB</font>: <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 99DB A0 00 ..</font> +<font color="#00ffff">L99DD</font>: <font color="#00ff00">clc</font> <font color="#8080ff">; 99DD 18 .</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; 99DE 98 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 99DF 6D 7E 06 m~.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 99E2 8D 7E 06 .~.</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L9A31</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 99E5 BD 31 9A .1.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 99E8 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 99E9 6D 83 06 m..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; 99EC 8D 83 06 ...</font> + <font color="#00ff00">txa</font> <font color="#8080ff">; 99EF 8A .</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 99F0 C9 08 ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">code_99f7</font> <font color="#8080ff">; 99F2 B0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L9925</font> <font color="#8080ff">; 99F4 4C 25 99 L%.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">code_99f7</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; 99F7 AD B4 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">5</font> <font color="#8080ff">; 99FA 0D B5 06 ...</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 99FD 4A J</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L99B2</font> <font color="#8080ff">; 99FE B0 B2 ..</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; 9A00 4A J</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L9A19</font> <font color="#8080ff">; 9A01 90 16 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; 9A03 AD 88 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; 9A06 C9 04 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9A19</font> <font color="#8080ff">; 9A08 F0 0F ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L9971</font> <font color="#8080ff">; 9A0A 20 71 99 q.</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L99B2</font> <font color="#8080ff">; 9A0D B0 A3 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">check_up_down_2</font> <font color="#8080ff">; 9A0F 20 3B 99 ;.</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">L9A19</font> <font color="#8080ff">; 9A12 90 05 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; 9A14 CD 7E 06 .~.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L99B2</font> <font color="#8080ff">; 9A17 F0 99 ..</font> +<font color="#00ffff">L9A19</font>: +<font color="#00ffff">L9A1B</font> := * + <font color="#ff6060">2</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L9925</font> <font color="#8080ff">; 9A19 4C 25 99 L%.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">data_9a1c</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 9A1C 02 00 02 00 02 02 02 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9A24 02 02 02 00 02 00 02 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9A2C 00 02 00 00 00 .....</font> +<font color="#00ffff">L9A31</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9A31 02 FE FE FE FE FE FE 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 9A39 00 00 02 02 02 02 02 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9A41 02 02 02 02 02 02 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9A49 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9A51 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9A59 00 00 00 ...</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">init_page_7</font>: + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9A5C A0 00 ..</font> +<font color="#00ffff">L9A5E</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9A5E A2 00 ..</font> +<font color="#00ffff">L9A60</font>: <font color="#00ff00">lda</font> <font color="#00ffff">data_9a71</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9A60 BD 71 9A .q.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">score</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 9A63 99 00 07 ...</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 9A66 E8 .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 9A67 C8 .</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$0B</font> <font color="#8080ff">; 9A68 E0 0B ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9A60</font> <font color="#8080ff">; 9A6A D0 F4 ..</font> + <font color="#00ff00">cpy</font> <font color="#ff6060">#$37</font> <font color="#8080ff">; 9A6C C0 37 .7</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9A5E</font> <font color="#8080ff">; 9A6E D0 EE ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9A70 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; used by code above</font> +<font color="#00ffff">data_9a71</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$1D</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9A71 00 00 00 4C 1D 00 00 00 ...L....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$03</font> <font color="#8080ff">; 9A79 00 06 03 ...</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9A7C</font>: <font color="#00ff00">ldx</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 9A7C AE FE 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9A7F A9 00 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; 9A81 18 .</font> +<font color="#00ffff">L9A82</font>: <font color="#00ff00">dex</font> <font color="#8080ff">; 9A82 CA .</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9A8A</font> <font color="#8080ff">; 9A83 F0 05 ..</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$0B</font> <font color="#8080ff">; 9A85 69 0B i.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L9A82</font> <font color="#8080ff">; 9A87 4C 82 9A L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9A8A</font>: <font color="#00ff00">tay</font> <font color="#8080ff">; 9A8A A8 .</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9A8B 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9A8C</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9A8C A2 00 ..</font> +<font color="#00ffff">L9A8E</font>: <font color="#00ff00">lda</font> <font color="#00ffff">score</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9A8E BD 00 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $070B,y </font> <font color="#8080ff">; 9A91 99 0B 07 ...</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 9A94 E8 .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 9A95 C8 .</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$0B</font> <font color="#8080ff">; 9A96 E0 0B ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9A8E</font> <font color="#8080ff">; 9A98 D0 F4 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9A9A 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9A9B</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9A9B A2 00 ..</font> +<font color="#00ffff">L9A9D</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $070B,y </font> <font color="#8080ff">; 9A9D B9 0B 07 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">score</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9AA0 9D 00 07 ...</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 9AA3 E8 .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 9AA4 C8 .</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$0B</font> <font color="#8080ff">; 9AA5 E0 0B ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9A9D</font> <font color="#8080ff">; 9AA7 D0 F4 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9AA9 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9AAA</font>: <font color="#00ff00">jsr</font> <font color="#00ffff">L9A7C</font> <font color="#8080ff">; 9AAA 20 7C 9A |.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L9A8C</font> <font color="#8080ff">; 9AAD 20 8C 9A ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9AB0 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06F7 </font> <font color="#8080ff">; 9AB2 8D F7 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06F8 </font> <font color="#8080ff">; 9AB5 8D F8 06 ...</font> +<font color="#00ffff">L9AB8</font>: <font color="#00ff00">inc</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 9AB8 EE FE 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $06FF </font> <font color="#8080ff">; 9ABB AD FF 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 9ABE CD FE 06 ...</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">L9ACB</font> <font color="#8080ff">; 9AC1 B0 08 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; 9AC3 A9 01 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">current_player</font> <font color="#8080ff">; 9AC5 8D FE 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06F7 </font> <font color="#8080ff">; 9AC8 8D F7 06 ...</font> +<font color="#00ffff">L9ACB</font>: <font color="#00ff00">ldx</font> <font color="#00ffff">number_of_players</font> <font color="#8080ff">; 9ACB AE F4 06 ...</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 9ACE E8 .</font> + <font color="#00ff00">ldy</font> <font color="#00ffff">L9AFB</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9ACF BC FB 9A ...</font> +<font color="#00ffff">L9AD2</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0715,y </font> <font color="#8080ff">; 9AD2 B9 15 07 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 9AD5 C9 FF ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9AE5</font> <font color="#8080ff">; 9AD7 D0 0C ..</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; 9AD9 98 .</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; 9ADA 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$0B</font> <font color="#8080ff">; 9ADB E9 0B ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; 9ADD A8 .</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 9ADE CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9AD2</font> <font color="#8080ff">; 9ADF D0 F1 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $06F8 </font> <font color="#8080ff">; 9AE1 EE F8 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9AE4 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9AE5</font>: <font color="#00ff00">stx</font> <font color="#ff40ff"> $06FF </font> <font color="#8080ff">; 9AE5 8E FF 06 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L9A7C</font> <font color="#8080ff">; 9AE8 20 7C 9A |.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L9A9B</font> <font color="#8080ff">; 9AEB 20 9B 9A ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">lives</font> <font color="#8080ff">; 9AEE AD 0A 07 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; 9AF1 C9 FF ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9AB8</font> <font color="#8080ff">; 9AF3 F0 C3 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0709 </font> <font color="#8080ff">; 9AF5 AD 09 07 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">initial_speed</font> <font color="#8080ff">; 9AF8 8D 25 06 .%.</font> +<font color="#00ffff">L9AFB</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; 9AFB 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">data_9afc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$0B</font>,<font color="#ff6060">$16</font>,<font color="#ff6060">$21</font> <font color="#8080ff">; 9AFC 00 0B 16 21 ...!</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; for some reason there are 2 copies of the display list, at $0800 and $0881</font> +<font color="#00ffff">setup_gameboard_dlist</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9B00 A2 00 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; 9B02 AD AC 06 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9B09</font> <font color="#8080ff">; 9B05 D0 02 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$81</font> <font color="#8080ff">; 9B07 A2 81 ..</font> +<font color="#00ffff">L9B09</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$70</font> <font color="#8080ff">; 9B09 A9 70 .p</font> + <font color="#00ff00">stx</font> <font color="#ff40ff"> $9F </font> <font color="#8080ff">; 9B0B 86 9F ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; 9B0D A0 03 ..</font> + <font color="#00ff00">sty</font> <font color="#ff40ff"> $9D </font> <font color="#8080ff">; 9B0F 84 9D ..</font> +<font color="#00ffff">L9B11</font>: <font color="#00ff00">sta</font> <font color="#ff40ff"> $0800,x </font> <font color="#8080ff">; 9B11 9D 00 08 ...</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 9B14 E8 .</font> + <font color="#00ff00">dey</font> <font color="#8080ff">; 9B15 88 .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9B11</font> <font color="#8080ff">; 9B16 D0 F9 ..</font> + <font color="#00ff00">ldy</font> <font color="#ff40ff"> $06AB </font> <font color="#8080ff">; 9B18 AC AB 06 ...</font> +<font color="#00ffff">L9B1B</font>: <font color="#00ff00">lda</font> <font color="#00ffff">gameboard_dlist_data</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 9B1B B9 62 9B .b.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0800,x </font> <font color="#8080ff">; 9B1E 9D 00 08 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 9B21 C8 .</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 9B22 E8 .</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $9D </font> <font color="#8080ff">; 9B23 C6 9D ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9B1B</font> <font color="#8080ff">; 9B25 D0 F4 ..</font> +<font color="#00ffff">L9B27</font>: <font color="#00ff00">lda</font> <font color="#00ffff">gameboard_dlist_data</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 9B27 B9 62 9B .b.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9B3E</font> <font color="#8080ff">; 9B2A F0 12 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $9D </font> <font color="#8080ff">; 9B2C 85 9D ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 9B2E C8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">gameboard_dlist_data</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 9B2F B9 62 9B .b.</font> +<font color="#00ffff">L9B32</font>: <font color="#00ff00">sta</font> <font color="#ff40ff"> $0800,x </font> <font color="#8080ff">; 9B32 9D 00 08 ...</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 9B35 E8 .</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $9D </font> <font color="#8080ff">; 9B36 C6 9D ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">L9B32</font> <font color="#8080ff">; 9B38 D0 F8 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; 9B3A C8 .</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L9B27</font> <font color="#8080ff">; 9B3B 4C 27 9B L'.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9B3E</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$41</font> <font color="#8080ff">; 9B3E A9 41 .A</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0800,x </font> <font color="#8080ff">; 9B40 9D 00 08 ...</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 9B43 E8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $9F </font> <font color="#8080ff">; 9B44 A5 9F ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0800,x </font> <font color="#8080ff">; 9B46 9D 00 08 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; 9B49 8D AC 06 ...</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; 9B4C E8 .</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 9B4D A9 08 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0800,x </font> <font color="#8080ff">; 9B4F 9D 00 08 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dlist_shadow_hi</font> <font color="#8080ff">; 9B52 8D AD 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L9B63</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 9B55 B9 63 9B .c.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dli_vec_shadow_lo</font> <font color="#8080ff">; 9B58 8D AE 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">L9B64</font>,<font color="#00ffff">y</font> <font color="#8080ff">; 9B5B B9 64 9B .d.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dli_vec_shadow_hi</font> <font color="#8080ff">; 9B5E 8D AF 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; 9B61 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; this isn't used as-is for a display list, see setup_gameboard_dlist</font> +<font color="#00ffff">gameboard_dlist_data</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $4D </font> <font color="#8080ff">; 9B62 4D M</font> +<font color="#00ffff">L9B63</font>: .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; 9B63 00 .</font> +<font color="#00ffff">L9B64</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$30</font>,<font color="#ff6060">$56</font>,<font color="#ff6060">$0D</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$8D</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$8D</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; 9B64 30 56 0D 01 8D 01 8D 01 0V......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$86</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$72</font>,<font color="#ff6060">$9B</font> <font color="#8080ff">; 9B6C 06 01 86 00 72 9B ....r.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; changes DLI vector to point to dli_chained_2</font> +<font color="#00ffff">dli_chained_1</font>: + <font color="#00ff00">pha</font> <font color="#8080ff">; 9B72 48 H</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$54</font> <font color="#8080ff">; 9B73 A9 54 .T</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">WSYNC</font> <font color="#8080ff">; 9B75 8D 0A D4 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLBK</font> <font color="#8080ff">; 9B78 8D 1A D0 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$87</font> <font color="#8080ff">; 9B7B A9 87 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">VDSLST</font> <font color="#8080ff">; 9B7D 8D 00 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$9B</font> <font color="#8080ff">; 9B80 A9 9B ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">VDSLST</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9B82 8D 01 02 ...</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 9B85 68 h</font> + <font color="#00ff00">rti</font> <font color="#8080ff">; 9B86 40 @</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; changes DLI vector to point to dli_chained_3</font> +<font color="#00ffff">dli_chained_2</font>: + <font color="#00ff00">pha</font> <font color="#8080ff">; 9B87 48 H</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9B88 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">WSYNC</font> <font color="#8080ff">; 9B8A 8D 0A D4 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLBK</font> <font color="#8080ff">; 9B8D 8D 1A D0 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $062A </font> <font color="#8080ff">; 9B90 AD 2A 06 .*.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLPF0</font> <font color="#8080ff">; 9B93 8D 16 D0 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$28</font> <font color="#8080ff">; 9B96 A9 28 .(</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLPF1</font> <font color="#8080ff">; 9B98 8D 17 D0 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$AA</font> <font color="#8080ff">; 9B9B A9 AA ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLPF2</font> <font color="#8080ff">; 9B9D 8D 18 D0 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 9BA0 A9 0F ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLPF3</font> <font color="#8080ff">; 9BA2 8D 19 D0 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$B1</font> <font color="#8080ff">; 9BA5 A9 B1 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">VDSLST</font> <font color="#8080ff">; 9BA7 8D 00 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$9B</font> <font color="#8080ff">; 9BAA A9 9B ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">VDSLST</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9BAC 8D 01 02 ...</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 9BAF 68 h</font> + <font color="#00ff00">rti</font> <font color="#8080ff">; 9BB0 40 @</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; changes DLI vector to point to dli_chained_1</font> +<font color="#00ffff">dli_chained_3</font>: + <font color="#00ff00">pha</font> <font color="#8080ff">; 9BB1 48 H</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$54</font> <font color="#8080ff">; 9BB2 A9 54 .T</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">WSYNC</font> <font color="#8080ff">; 9BB4 8D 0A D4 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLBK</font> <font color="#8080ff">; 9BB7 8D 1A D0 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$72</font> <font color="#8080ff">; 9BBA A9 72 .r</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">VDSLST</font> <font color="#8080ff">; 9BBC 8D 00 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$9B</font> <font color="#8080ff">; 9BBF A9 9B ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">VDSLST</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9BC1 8D 01 02 ...</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 9BC4 68 h</font> + <font color="#00ff00">rti</font> <font color="#8080ff">; 9BC5 40 @</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $9B </font> <font color="#8080ff">; 9BC6 9B .</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">VDSLST</font>+<font color="#ff6060">1</font> <font color="#8080ff">; 9BC7 8D 01 02 ...</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 9BCA 68 h</font> + <font color="#00ff00">rti</font> <font color="#8080ff">; 9BCB 40 @</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 9BCC 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 9BCD 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 9BCE 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 9BCF 00 .</font> +<font color="#00ffff">L9BD0</font>: <font color="#00ff00">lda</font> <font color="#00ffff">number_of_players</font> <font color="#8080ff">; 9BD0 AD F4 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; 9BD3 C9 00 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9BDA</font> <font color="#8080ff">; 9BD5 F0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">show_get_ready_prompt</font> <font color="#8080ff">; 9BD7 4C 24 96 L$.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9BDA</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">L9675</font> <font color="#8080ff">; 9BDA 4C 75 96 Lu.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">L9BDD</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; 9BDD A9 06 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $085E </font> <font color="#8080ff">; 9BDF 8D 5E 08 .^.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $08DF </font> <font color="#8080ff">; 9BE2 8D DF 08 ...</font> + <font color="#00ff00">jmp</font> (<font color="#00ffff">work_level_sub6</font>) <font color="#8080ff">; 9BE5 6C A4 07 l..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; ...</font> +<font color="#00ffff">init_next_level</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">randomizer_mode</font> <font color="#8080ff">; 9BE8 AD F3 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">L9BFC</font> <font color="#8080ff">; 9BEB F0 0F ..</font> +<font color="#8080ff">; only after beating levels 1-12 in order</font> +<font color="#00ffff">randomize_level</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; 9BED AD 0A D2 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; 9BF0 29 0F ).</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$0C</font> <font color="#8080ff">; 9BF2 C9 0C ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">randomize_level</font> <font color="#8080ff">; 9BF4 B0 F7 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">level</font> <font color="#8080ff">; 9BF6 8D F6 06 ...</font> + <font color="#00ff00">dec</font> <font color="#00ffff">level</font> <font color="#8080ff">; 9BF9 CE F6 06 ...</font> +<font color="#00ffff">L9BFC</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">enter_level</font> <font color="#8080ff">; 9BFC 4C BA 96 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; 9BFF 00 .</font> +<font color="#8080ff">; only use of keyboard is to enter player speed before starting game</font> +<font color="#00ffff">keyboard_isr</font>: + <font color="#00ff00">txa</font> <font color="#8080ff">; 9C00 8A .</font> + <font color="#00ff00">pha</font> <font color="#8080ff">; 9C01 48 H</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 9C02 A2 08 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff">KBCODE</font> <font color="#8080ff">; 9C04 AD 09 D2 ...</font> +<font color="#00ffff">check_keycode</font>: + <font color="#00ff00">cmp</font> <font color="#00ffff">keycode_table_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 9C07 DD 18 9C ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">store_speed_value</font> <font color="#8080ff">; 9C0A F0 07 ..</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; 9C0C CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">check_keycode</font> <font color="#8080ff">; 9C0D D0 F8 ..</font> +<font color="#00ffff">keyboard_isr_exit</font>: + <font color="#00ff00">pla</font> <font color="#8080ff">; 9C0F 68 h</font> + <font color="#00ff00">tax</font> <font color="#8080ff">; 9C10 AA .</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; 9C11 68 h</font> + <font color="#00ff00">rti</font> <font color="#8080ff">; 9C12 40 @</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">store_speed_value</font>: + <font color="#00ff00">stx</font> <font color="#00ffff">speed_value</font> <font color="#8080ff">; 9C13 8E F9 06 ...</font> +<font color="#00ffff">keycode_table_minus_one</font>:= * + <font color="#ff6060">2</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">keyboard_isr_exit</font> <font color="#8080ff">; 9C16 4C 0F 9C L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">keycode_table</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$1F</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$1D</font>,<font color="#ff6060">$1B</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$35</font> <font color="#8080ff">; 9C19 1F 1E 1A 18 1D 1B 33 35 ......35</font> +<font color="#8080ff">; definitions for level graphics objects aka shapes. (girder segment, ladder, rope, etc)</font> +<font color="#00ffff">level_gfx</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9C21 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9C29 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9C31 00 00 ..</font> +<font color="#8080ff">; 3 rows of pixels. 1st: 04 = 4 pixels wide, 00 00 = no X/Y offset, 01 01 01 01 = actual pixel data (4 color0 pixels). see level_maps.txt</font> +<font color="#00ffff">sh_girder</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; 9C33 04 00 00 01 01 01 01 04 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9C3B 00 01 01 00 01 00 04 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; 9C43 02 01 01 01 01 FF ......</font> +<font color="#00ffff">sh_blank_4x4</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; 9C49 04 00 00 00 00 00 00 04 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9C51 00 01 00 00 00 00 04 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; 9C59 02 00 00 00 00 FF ......</font> +<font color="#00ffff">sh_ladder</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9C5F 02 00 00 02 02 02 06 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 9C67 02 02 02 00 01 02 02 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 9C6F 06 01 02 02 08 00 02 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 9C77 02 02 02 02 02 02 02 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 9C7F 00 03 02 02 02 06 03 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; 9C87 02 FF ..</font> +<font color="#8080ff">; dunno what this is yet</font> +<font color="#00ffff">sh_9c89</font>:.<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9C89 02 00 00 00 00 02 06 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 9C91 00 00 02 00 01 00 00 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9C99 06 01 00 00 08 00 02 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 9CA1 00 00 00 00 00 00 00 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9CA9 00 03 00 00 02 06 03 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; 9CB1 00 FF ..</font> +<font color="#00ffff">sh_bomb</font>:.<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; 9CB3 04 00 00 00 03 03 00 04 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9CBB 00 01 03 00 00 03 04 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; 9CC3 02 00 03 03 00 FF ......</font> +<font color="#00ffff">sh_up_rope</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; 9CC9 01 00 00 01 01 01 01 01 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; 9CD1 01 00 02 01 01 01 03 01 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; 9CD9 FF .</font> +<font color="#00ffff">sh_down_rope</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 9CDA 01 00 00 02 01 00 01 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 9CE2 01 01 02 02 01 01 03 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; 9CEA FF .</font> +<font color="#8080ff">; dunno what this is yet</font> +<font color="#00ffff">sh_9ceb</font>:.<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; 9CEB 02 00 00 00 00 02 00 01 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; 9CF3 00 00 02 00 02 00 00 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; 9CFB 00 03 00 00 FF .....</font> +<font color="#8080ff">; jumpman's animation frames and other sprites, seem to be 10 bytes per sprite</font> +<font color="#00ffff">sprite_table</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9D00 18 18 3C 5A 3C 18 18 18 ..<Z<...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9D08 18 3C 1C 1A 3C 58 38 18 .<..<X8.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$1A</font> <font color="#8080ff">; 9D10 3C 24 14 14 38 58 3C 1A <$..8X<.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$1C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$99</font>,<font color="#ff6060">$5A</font> <font color="#8080ff">; 9D18 1C 18 3C 24 28 28 99 5A ..<$((.Z</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$C3</font> <font color="#8080ff">; 9D20 3C 18 18 18 3C 24 42 C3 <...<$B.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$19</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$C4</font> <font color="#8080ff">; 9D28 19 12 3C 58 98 18 7C C4 ..<X..|.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$99</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9D30 04 06 00 18 3C 5A 99 18 ....<Z..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$1A</font> <font color="#8080ff">; 9D38 3C 24 42 C3 98 48 3C 1A <$B..H<.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$19</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3E</font>,<font color="#ff6060">$23</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$10</font> <font color="#8080ff">; 9D40 19 18 3E 23 20 60 18 10 ..># `..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3D</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$33</font> <font color="#8080ff">; 9D48 3D 5A 98 18 3C 24 22 33 =Z..<$"3</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$5C</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font> <font color="#8080ff">; 9D50 18 10 38 5C 38 18 3C 24 ..8\8.<$</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$44</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$3D</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9D58 44 66 18 10 3D 5A 98 18 Df..=Z..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$5C</font> <font color="#8080ff">; 9D60 3C 24 22 33 18 10 38 5C <$"3..8\</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$38</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; 9D68 38 18 3C 24 44 66 18 08 8.<$Df..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$BC</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$19</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$CC</font> <font color="#8080ff">; 9D70 BC 5A 19 18 3C 24 44 CC .Z..<$D.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$3A</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font> <font color="#8080ff">; 9D78 18 08 1C 3A 1C 18 3C 24 ...:..<$</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$BC</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$19</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9D80 22 66 18 08 BC 5A 19 18 "f...Z..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$3A</font> <font color="#8080ff">; 9D88 3C 24 44 CC 18 08 1C 3A <$D....:</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$1C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$19</font> <font color="#8080ff">; 9D90 1C 18 3C 24 22 66 0C 19 ..<$"f..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3E</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3E</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$83</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9D98 3E 58 58 18 3E 42 83 00 >XX.>B..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$30</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$42</font> <font color="#8080ff">; 9DA0 30 98 7C 1A 1A 18 7C 42 0.|...|B</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C1</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$99</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$99</font> <font color="#8080ff">; 9DA8 C1 00 99 5A 3C 18 18 99 ...Z<...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FF</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$86</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; 9DB0 FF 00 00 00 86 42 22 FE .....B".</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$86</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$99</font> <font color="#8080ff">; 9DB8 FE 22 42 86 00 00 FF 99 ."B.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$99</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9DC0 18 18 3C 5A 99 00 00 00 ..<Z....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$61</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$7F</font>,<font color="#ff6060">$7F</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$61</font> <font color="#8080ff">; 9DC8 61 42 44 7F 7F 44 42 61 aBD..DBa</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9DD0 00 00 08 22 80 01 58 18 ..."..X.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$99</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$80</font> <font color="#8080ff">; 9DD8 3C 5A 99 FF 10 44 01 80 <Z...D..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$1A</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$99</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9DE0 1A 18 3C 5A 99 FF 00 00 ..<Z....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$E7</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$E3</font> <font color="#8080ff">; 9DE8 3C 3C 3C E7 06 C3 60 E3 <<<...`.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$76</font>,<font color="#ff6060">$E3</font>,<font color="#ff6060">$76</font>,<font color="#ff6060">$CE</font>,<font color="#ff6060">$67</font>,<font color="#ff6060">$CE</font>,<font color="#ff6060">$67</font>,<font color="#ff6060">$83</font> <font color="#8080ff">; 9DF0 76 E3 76 CE 67 CE 67 83 v.v.g.g.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C1</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9DF8 C1 00 00 00 00 00 00 00 ........</font> +<font color="#8080ff">; GR.1/2 font, 512 bytes</font> +<font color="#00ffff">charset</font>:.<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9E00 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$19</font>,<font color="#ff6060">$3E</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$22</font> <font color="#8080ff">; 9E08 00 0C 19 3E 58 1E 22 ...>X."</font> +<font color="#8080ff">; couple of places in the code try to write here</font> +<font color="#00ffff">block_char_minus_one</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$43</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; 9E0F 43 FF FF FF FF FF FF FF C.......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FF</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9E17 FF 00 66 FF 66 66 FF 66 ..f.ff.f</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3E</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9E1F 00 18 3E 60 3C 06 7C 18 ..>`<.|.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$BA</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$BA</font>,<font color="#ff6060">$82</font> <font color="#8080ff">; 9E27 00 00 7C 82 BA A2 BA 82 ..|.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7C</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$36</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$6F</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$3B</font> <font color="#8080ff">; 9E2F 7C 1C 36 1C 38 6F 66 3B |.6.8of;</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$44</font> <font color="#8080ff">; 9E37 00 00 30 98 7C 1A 78 44 ..0.|.xD</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C2</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$0E</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$1C</font> <font color="#8080ff">; 9E3F C2 00 0E 1C 18 18 18 1C ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$38</font> <font color="#8080ff">; 9E47 0E 00 70 38 18 18 18 38 ..p8...8</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$70</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9E4F 70 00 00 00 00 00 00 00 p.......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9E57 7E 00 18 18 18 7E 18 18 ~....~..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9E5F 18 00 00 00 00 00 18 18 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$30</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9E67 30 00 00 00 00 7E 00 00 0....~..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9E6F 00 00 00 00 00 00 00 18 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; 9E77 18 00 06 0C 18 30 60 40 .....0`@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9E7F 00 00 3C 66 66 66 66 66 ..<fffff</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9E87 3C 00 18 38 18 18 18 18 <..8....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$30</font> <font color="#8080ff">; 9E8F 7E 00 3C 66 06 0C 18 30 ~.<f...0</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9E97 7E 00 3C 66 06 1C 06 66 ~.<f...f</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$0C</font> <font color="#8080ff">; 9E9F 3C 00 0C 1C 3C 6C 7E 0C <...<l~.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; 9EA7 0C 00 7E 60 60 7C 06 06 ..~``|..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9EAF 7C 00 3C 66 60 7C 66 66 |.<f`|ff</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$30</font> <font color="#8080ff">; 9EB7 3C 00 7E 06 0C 18 30 30 <.~...00</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$30</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9EBF 30 00 3C 66 66 3C 66 66 0.<ff<ff</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$3E</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9EC7 3C 00 3C 66 66 3E 06 66 <.<ff>.f</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9ECF 3C 00 00 18 18 00 18 18 <.......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9ED7 00 00 00 18 18 00 18 18 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$30</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; 9EDF 30 06 0C 18 30 18 0C 06 0...0...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9EE7 00 00 00 00 7E 00 7E 00 ....~.~.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$38</font> <font color="#8080ff">; 9EEF 00 00 10 7C 10 10 10 38 ...|...8</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9EF7 7C 00 3C 66 66 0C 18 00 |.<ff...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$6E</font>,<font color="#ff6060">$6E</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$3E</font> <font color="#8080ff">; 9EFF 18 00 3C 66 6E 6E 60 3E ..<fnn`></font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9F07 00 00 18 3C 66 66 7E 66 ...<ff~f</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$66</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9F0F 66 00 7C 66 66 7C 66 66 f.|ff|ff</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9F17 7C 00 3C 66 60 60 60 66 |.<f```f</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9F1F 3C 00 7C 66 66 66 66 66 <.|fffff</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font> <font color="#8080ff">; 9F27 7C 00 7E 60 60 78 60 60 |.~``x``</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font> <font color="#8080ff">; 9F2F 7E 00 7E 60 60 78 60 60 ~.~``x``</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$60</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$6E</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9F37 60 00 3C 66 60 60 6E 66 `.<f``nf</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9F3F 3C 00 66 66 66 7E 66 66 <.fff~ff</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$66</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9F47 66 00 3C 18 18 18 18 18 f.<.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9F4F 3C 00 06 06 06 06 66 66 <.....ff</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$6C</font> <font color="#8080ff">; 9F57 3C 00 66 6C 78 70 78 6C <.flxpxl</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$66</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font> <font color="#8080ff">; 9F5F 66 00 60 60 60 60 60 60 f.``````</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$63</font>,<font color="#ff6060">$77</font>,<font color="#ff6060">$7F</font>,<font color="#ff6060">$6B</font>,<font color="#ff6060">$63</font>,<font color="#ff6060">$63</font> <font color="#8080ff">; 9F67 7E 00 63 77 7F 6B 63 63 ~.cw.kcc</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$63</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$76</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$6E</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9F6F 63 00 66 66 76 7E 6E 66 c.ffv~nf</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$66</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9F77 66 00 3C 66 66 66 66 66 f.<fffff</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$60</font> <font color="#8080ff">; 9F7F 3C 00 7C 66 66 7C 60 60 <.|ff|``</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$60</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$6C</font> <font color="#8080ff">; 9F87 60 00 3C 66 66 66 66 6C `.<ffffl</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$36</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9F8F 36 00 7C 66 66 7C 6C 66 6.|ff|lf</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$66</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9F97 66 00 3C 66 60 3C 06 66 f.<f`<.f</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9F9F 3C 00 7E 18 18 18 18 18 <.~.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9FA7 18 00 66 66 66 66 66 66 ..ffffff</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$3C</font> <font color="#8080ff">; 9FAF 3C 00 66 66 66 66 66 3C <.fffff<</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$63</font>,<font color="#ff6060">$63</font>,<font color="#ff6060">$63</font>,<font color="#ff6060">$6B</font>,<font color="#ff6060">$7F</font>,<font color="#ff6060">$77</font> <font color="#8080ff">; 9FB7 18 00 63 63 63 6B 7F 77 ..ccck.w</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$63</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; 9FBF 63 00 66 66 3C 3C 3C 66 c.ff<<<f</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$66</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; 9FC7 66 00 66 66 66 3C 18 18 f.fff<..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$60</font> <font color="#8080ff">; 9FCF 18 00 7E 06 0C 18 30 60 ..~...0`</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9FD7 7E 00 00 00 00 00 00 00 ~.......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9FDF 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9FE7 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9FEF 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; 9FF7 00 00 00 ...</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; main entry point, note cartstart_left and cartstart_right point to the same address</font> +<font color="#00ffff">cartstart_right</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">cart_entry_point</font> <font color="#8080ff">; 9FFA C0 8A ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; 0 here means 'cartridge present'</font> +<font color="#00ffff">cartpresent_right</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; 9FFC 00 .</font> +<font color="#8080ff">; 4 here means init & start the cart, no disk boot, non-diagnostic</font> +<font color="#00ffff">cartoptions_right</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $04 </font> <font color="#8080ff">; 9FFD 04 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; points to a CLC/RTS do-nothing routine (same as cartinit_left)</font> +<font color="#00ffff">cartinit_right</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">cart_start_stub</font> <font color="#8080ff">; 9FFE FE 8A ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; 64-byte level descriptors, 12 of them (1 per level). first 2 bytes are level number in screencodes</font> +<font color="#00ffff">level00_desc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$11</font> <font color="#8080ff">; A000 10 11 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level00_sub0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A002 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level00_sub1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A004 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level00_sub2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A006 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level00_sub3</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">check_collisions_1</font> <font color="#8080ff">; A008 73 8F s.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">level00_num_bombs</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $0C </font> <font color="#8080ff">; A00A 0C .</font> +<font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">level00_bullet_chance</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $01 </font> <font color="#8080ff">; A00B 01 .</font> +<font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">level00_y_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $A0 </font> <font color="#8080ff">; A00C A0 .</font> +<font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">level00_x_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $7C </font> <font color="#8080ff">; A00D 7C |</font> +<font color="#8080ff">; points to $0600</font> +<font color="#00ffff">level00_offs_14</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A00E 00 06 ..</font> +<font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">level00_points_per_bomb</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $64 </font> <font color="#8080ff">; A010 64 d</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">level00_time_bonus</font>: + .<font color="#ffff00">word</font> <font color="#ff40ff"> $03E8 </font> <font color="#8080ff">; A011 E8 03 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $00</font> +<font color="#00ffff">level00_offs_19</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A013 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">level00_unkn_table0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06DF</font> <font color="#8080ff">; A014 DF 06 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level00_map0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">level00_map</font> <font color="#8080ff">; A016 00 A3 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level00_map1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA366</font> <font color="#8080ff">; A018 66 A3 f.</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level00_map2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA38B</font> <font color="#8080ff">; A01A 8B A3 ..</font> +<font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">level00_unkn_table1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA3A4</font> <font color="#8080ff">; A01C A4 A3 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $0000</font> +<font color="#00ffff">level00_offs_30</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A01E 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">level00_sub4</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A020 E6 06 ..</font> +<font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">level00_sub5</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A022 E6 06 ..</font> +<font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">level00_sub6</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; A024 40 97 @.</font> +<font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">level00_sub_eol</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A026 E6 06 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes</font> +<font color="#00ffff">level00_offs_40</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A028 00 00 00 00 00 00 ......</font> +<font color="#8080ff">; unknown</font> +<font color="#00ffff">level00_offs_46</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$CA</font>,<font color="#ff6060">$96</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$74</font> <font color="#8080ff">; A02E CA 96 18 5A 0C 24 4C 74 ...Z.$Lt</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $8C </font> <font color="#8080ff">; A036 8C .</font> +<font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">level00_offs_55</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A037 00 00 00 ...</font> +<font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">level00_offs_58</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$1A</font>,<font color="#ff6060">$7E</font> <font color="#8080ff">; A03A 1A 7E .~</font> +<font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">level00_offs_60</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A03C 00 00 00 00 ....</font> +<font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">level01_desc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$12</font> <font color="#8080ff">; A040 10 12 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level01_sub0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA4DD</font> <font color="#8080ff">; A042 DD A4 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level01_sub1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA509</font> <font color="#8080ff">; A044 09 A5 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level01_sub2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A046 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level01_sub3</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA53D</font> <font color="#8080ff">; A048 3D A5 =.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">level01_num_bombs</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $10 </font> <font color="#8080ff">; A04A 10 .</font> +<font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">level01_bullet_chance</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $02 </font> <font color="#8080ff">; A04B 02 .</font> +<font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">level01_y_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $20 </font> <font color="#8080ff">; A04C 20 </font> +<font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">level01_x_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $7C </font> <font color="#8080ff">; A04D 7C |</font> +<font color="#8080ff">; points to $0600</font> +<font color="#00ffff">level01_offs_14</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A04E 00 06 ..</font> +<font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">level01_points_per_bomb</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $64 </font> <font color="#8080ff">; A050 64 d</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">level01_time_bonus</font>: + .<font color="#ffff00">word</font> <font color="#ff40ff"> $07D0 </font> <font color="#8080ff">; A051 D0 07 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $00</font> +<font color="#00ffff">level01_offs_19</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A053 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">level01_unkn_table0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA5C2</font> <font color="#8080ff">; A054 C2 A5 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level01_map0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA3E0</font> <font color="#8080ff">; A056 E0 A3 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level01_map1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA446</font> <font color="#8080ff">; A058 46 A4 F.</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level01_map2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA477</font> <font color="#8080ff">; A05A 77 A4 w.</font> +<font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">level01_unkn_table1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A05C 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $0000</font> +<font color="#00ffff">level01_offs_30</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A05E 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">level01_sub4</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA498</font> <font color="#8080ff">; A060 98 A4 ..</font> +<font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">level01_sub5</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L8036</font> <font color="#8080ff">; A062 36 80 6.</font> +<font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">level01_sub6</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; A064 40 97 @.</font> +<font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">level01_sub_eol</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A066 E6 06 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes</font> +<font color="#00ffff">level01_offs_40</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A068 00 00 00 00 00 00 ......</font> +<font color="#8080ff">; unknown</font> +<font color="#00ffff">level01_offs_46</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$6A</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A06E 6A 08 C6 1A 18 4C 80 00 j....L..</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A076 00 .</font> +<font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">level01_offs_55</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A077 00 00 00 ...</font> +<font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">level01_offs_58</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$94</font> <font color="#8080ff">; A07A 02 94 ..</font> +<font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">level01_offs_60</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A07C 00 00 00 00 ....</font> +<font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">level02_desc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$13</font> <font color="#8080ff">; A080 10 13 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level02_sub0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA6BD</font> <font color="#8080ff">; A082 BD A6 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level02_sub1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A084 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level02_sub2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A086 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level02_sub3</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA724</font> <font color="#8080ff">; A088 24 A7 $.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">level02_num_bombs</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $0C </font> <font color="#8080ff">; A08A 0C .</font> +<font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">level02_bullet_chance</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A08B 00 .</font> +<font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">level02_y_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $40 </font> <font color="#8080ff">; A08C 40 @</font> +<font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">level02_x_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $B4 </font> <font color="#8080ff">; A08D B4 .</font> +<font color="#8080ff">; points to $0600</font> +<font color="#00ffff">level02_offs_14</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A08E 00 06 ..</font> +<font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">level02_points_per_bomb</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $64 </font> <font color="#8080ff">; A090 64 d</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">level02_time_bonus</font>: + .<font color="#ffff00">word</font> <font color="#ff40ff"> $09C4 </font> <font color="#8080ff">; A091 C4 09 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $00</font> +<font color="#00ffff">level02_offs_19</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A093 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">level02_unkn_table0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA66D</font> <font color="#8080ff">; A094 6D A6 m.</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level02_map0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA5F0</font> <font color="#8080ff">; A096 F0 A5 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level02_map1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA62F</font> <font color="#8080ff">; A098 2F A6 /.</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level02_map2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA654</font> <font color="#8080ff">; A09A 54 A6 T.</font> +<font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">level02_unkn_table1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A09C 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $0000</font> +<font color="#00ffff">level02_offs_30</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A09E 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">level02_sub4</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A0A0 E6 06 ..</font> +<font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">level02_sub5</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA68C</font> <font color="#8080ff">; A0A2 8C A6 ..</font> +<font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">level02_sub6</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; A0A4 40 97 @.</font> +<font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">level02_sub_eol</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A0A6 E6 06 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes</font> +<font color="#00ffff">level02_offs_40</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A0A8 00 00 00 00 00 00 ......</font> +<font color="#8080ff">; unknown</font> +<font color="#00ffff">level02_offs_46</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$1A</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$96</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A0AE 1A C6 96 1A 0C 8C 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A0B6 00 .</font> +<font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">level02_offs_55</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A0B7 00 00 00 ...</font> +<font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">level02_offs_58</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A0BA 00 00 ..</font> +<font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">level02_offs_60</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A0BC 00 00 00 00 ....</font> +<font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">level03_desc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$14</font> <font color="#8080ff">; A0C0 10 14 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level03_sub0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA836</font> <font color="#8080ff">; A0C2 36 A8 6.</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level03_sub1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A0C4 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level03_sub2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A0C6 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level03_sub3</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA827</font> <font color="#8080ff">; A0C8 27 A8 '.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">level03_num_bombs</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $10 </font> <font color="#8080ff">; A0CA 10 .</font> +<font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">level03_bullet_chance</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A0CB 00 .</font> +<font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">level03_y_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $C0 </font> <font color="#8080ff">; A0CC C0 .</font> +<font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">level03_x_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $7C </font> <font color="#8080ff">; A0CD 7C |</font> +<font color="#8080ff">; points to $0600</font> +<font color="#00ffff">level03_offs_14</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A0CE 00 06 ..</font> +<font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">level03_points_per_bomb</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $64 </font> <font color="#8080ff">; A0D0 64 d</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">level03_time_bonus</font>: + .<font color="#ffff00">word</font> <font color="#ff40ff"> $07D0 </font> <font color="#8080ff">; A0D1 D0 07 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $00</font> +<font color="#00ffff">level03_offs_19</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A0D3 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">level03_unkn_table0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06DF</font> <font color="#8080ff">; A0D4 DF 06 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level03_map0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA790</font> <font color="#8080ff">; A0D6 90 A7 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level03_map1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA7D5</font> <font color="#8080ff">; A0D8 D5 A7 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level03_map2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA806</font> <font color="#8080ff">; A0DA 06 A8 ..</font> +<font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">level03_unkn_table1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A0DC 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $0000</font> +<font color="#00ffff">level03_offs_30</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A0DE 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">level03_sub4</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A0E0 E6 06 ..</font> +<font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">level03_sub5</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L8036</font> <font color="#8080ff">; A0E2 36 80 6.</font> +<font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">level03_sub6</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; A0E4 40 97 @.</font> +<font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">level03_sub_eol</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A0E6 E6 06 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes</font> +<font color="#00ffff">level03_offs_40</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A0E8 00 00 00 00 00 00 ......</font> +<font color="#8080ff">; unknown</font> +<font color="#00ffff">level03_offs_46</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$CA</font>,<font color="#ff6060">$96</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$80</font> <font color="#8080ff">; A0EE CA 96 18 5A 4C 18 2C 80 ...ZL.,.</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $6C </font> <font color="#8080ff">; A0F6 6C l</font> +<font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">level03_offs_55</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A0F7 00 00 00 ...</font> +<font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">level03_offs_58</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A0FA 00 00 ..</font> +<font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">level03_offs_60</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A0FC 00 00 00 00 ....</font> +<font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">level04_desc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$15</font> <font color="#8080ff">; A100 10 15 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level04_sub0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A102 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level04_sub1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A104 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level04_sub2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A106 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level04_sub3</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">check_collisions_1</font> <font color="#8080ff">; A108 73 8F s.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">level04_num_bombs</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $0E </font> <font color="#8080ff">; A10A 0E .</font> +<font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">level04_bullet_chance</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $02 </font> <font color="#8080ff">; A10B 02 .</font> +<font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">level04_y_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $C0 </font> <font color="#8080ff">; A10C C0 .</font> +<font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">level04_x_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $34 </font> <font color="#8080ff">; A10D 34 4</font> +<font color="#8080ff">; points to $0600</font> +<font color="#00ffff">level04_offs_14</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A10E 00 06 ..</font> +<font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">level04_points_per_bomb</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $64 </font> <font color="#8080ff">; A110 64 d</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">level04_time_bonus</font>: + .<font color="#ffff00">word</font> <font color="#ff40ff"> $07D0 </font> <font color="#8080ff">; A111 D0 07 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $00</font> +<font color="#00ffff">level04_offs_19</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A113 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">level04_unkn_table0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06DF</font> <font color="#8080ff">; A114 DF 06 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level04_map0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAAD0</font> <font color="#8080ff">; A116 D0 AA ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level04_map1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAB42</font> <font color="#8080ff">; A118 42 AB B.</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level04_map2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAB6D</font> <font color="#8080ff">; A11A 6D AB m.</font> +<font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">level04_unkn_table1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAB8A</font> <font color="#8080ff">; A11C 8A AB ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $0000</font> +<font color="#00ffff">level04_offs_30</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A11E 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">level04_sub4</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A120 E6 06 ..</font> +<font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">level04_sub5</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A122 E6 06 ..</font> +<font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">level04_sub6</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; A124 40 97 @.</font> +<font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">level04_sub_eol</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A126 E6 06 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes</font> +<font color="#00ffff">level04_offs_40</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A128 00 00 00 00 00 00 ......</font> +<font color="#8080ff">; unknown</font> +<font color="#00ffff">level04_offs_46</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$6A</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$8E</font> <font color="#8080ff">; A12E 6A 08 C6 1A 0C 22 84 8E j...."..</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A136 00 .</font> +<font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">level04_offs_55</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A137 00 00 00 ...</font> +<font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">level04_offs_58</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$96</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A13A 96 00 ..</font> +<font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">level04_offs_60</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A13C 00 00 00 00 ....</font> +<font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">level05_desc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$16</font> <font color="#8080ff">; A140 10 16 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level05_sub0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAA3A</font> <font color="#8080ff">; A142 3A AA :.</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level05_sub1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAA35</font> <font color="#8080ff">; A144 35 AA 5.</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level05_sub2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAA55</font> <font color="#8080ff">; A146 55 AA U.</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level05_sub3</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAABC</font> <font color="#8080ff">; A148 BC AA ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">level05_num_bombs</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $10 </font> <font color="#8080ff">; A14A 10 .</font> +<font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">level05_bullet_chance</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A14B 00 .</font> +<font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">level05_y_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $80 </font> <font color="#8080ff">; A14C 80 .</font> +<font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">level05_x_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $34 </font> <font color="#8080ff">; A14D 34 4</font> +<font color="#8080ff">; points to $0600</font> +<font color="#00ffff">level05_offs_14</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A14E 00 06 ..</font> +<font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">level05_points_per_bomb</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $64 </font> <font color="#8080ff">; A150 64 d</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">level05_time_bonus</font>: + .<font color="#ffff00">word</font> <font color="#ff40ff"> $05DC </font> <font color="#8080ff">; A151 DC 05 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $00</font> +<font color="#00ffff">level05_offs_19</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A153 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">level05_unkn_table0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06DF</font> <font color="#8080ff">; A154 DF 06 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level05_map0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA920</font> <font color="#8080ff">; A156 20 A9 .</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level05_map1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA974</font> <font color="#8080ff">; A158 74 A9 t.</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level05_map2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA9A5</font> <font color="#8080ff">; A15A A5 A9 ..</font> +<font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">level05_unkn_table1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A15C 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $0000</font> +<font color="#00ffff">level05_offs_30</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A15E 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">level05_sub4</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAA73</font> <font color="#8080ff">; A160 73 AA s.</font> +<font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">level05_sub5</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LA9C6</font> <font color="#8080ff">; A162 C6 A9 ..</font> +<font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">level05_sub6</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; A164 40 97 @.</font> +<font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">level05_sub_eol</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A166 E6 06 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes</font> +<font color="#00ffff">level05_offs_40</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A168 00 00 00 00 00 00 ......</font> +<font color="#8080ff">; unknown</font> +<font color="#00ffff">level05_offs_46</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$56</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$96</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$68</font>,<font color="#ff6060">$94</font> <font color="#8080ff">; A16E 56 C6 96 28 04 30 68 94 V..(.0h.</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A176 00 .</font> +<font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">level05_offs_55</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A177 00 00 00 ...</font> +<font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">level05_offs_58</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$4C</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; A17A 4C FF L.</font> +<font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">level05_offs_60</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; A17C FF FF FF FF ....</font> +<font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">level06_desc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$17</font> <font color="#8080ff">; A180 10 17 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level06_sub0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAD68</font> <font color="#8080ff">; A182 68 AD h.</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level06_sub1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A184 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level06_sub2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A186 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level06_sub3</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">check_collisions_1</font> <font color="#8080ff">; A188 73 8F s.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">level06_num_bombs</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $0E </font> <font color="#8080ff">; A18A 0E .</font> +<font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">level06_bullet_chance</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $03 </font> <font color="#8080ff">; A18B 03 .</font> +<font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">level06_y_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $C0 </font> <font color="#8080ff">; A18C C0 .</font> +<font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">level06_x_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $7C </font> <font color="#8080ff">; A18D 7C |</font> +<font color="#8080ff">; points to $0600</font> +<font color="#00ffff">level06_offs_14</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A18E 00 06 ..</font> +<font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">level06_points_per_bomb</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $64 </font> <font color="#8080ff">; A190 64 d</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">level06_time_bonus</font>: + .<font color="#ffff00">word</font> <font color="#ff40ff"> $05DC </font> <font color="#8080ff">; A191 DC 05 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $00</font> +<font color="#00ffff">level06_offs_19</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A193 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">level06_unkn_table0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06DF</font> <font color="#8080ff">; A194 DF 06 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level06_map0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAC60</font> <font color="#8080ff">; A196 60 AC `.</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level06_map1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LACBA</font> <font color="#8080ff">; A198 BA AC ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level06_map2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LACE5</font> <font color="#8080ff">; A19A E5 AC ..</font> +<font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">level06_unkn_table1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAD02</font> <font color="#8080ff">; A19C 02 AD ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $0000</font> +<font color="#00ffff">level06_offs_30</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A19E 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">level06_sub4</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A1A0 E6 06 ..</font> +<font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">level06_sub5</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L8036</font> <font color="#8080ff">; A1A2 36 80 6.</font> +<font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">level06_sub6</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; A1A4 40 97 @.</font> +<font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">level06_sub_eol</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A1A6 E6 06 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes</font> +<font color="#00ffff">level06_offs_40</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A1A8 00 00 00 00 00 00 ......</font> +<font color="#8080ff">; unknown</font> +<font color="#00ffff">level06_offs_46</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$CA</font>,<font color="#ff6060">$96</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A1AE CA 96 18 5A 0C 4C 8C 00 ...Z.L..</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A1B6 00 .</font> +<font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">level06_offs_55</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A1B7 00 00 00 ...</font> +<font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">level06_offs_58</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$1C</font>,<font color="#ff6060">$7E</font> <font color="#8080ff">; A1BA 1C 7E .~</font> +<font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">level06_offs_60</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A1BC 00 00 00 00 ....</font> +<font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">level07_desc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; A1C0 10 18 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level07_sub0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAF1C</font> <font color="#8080ff">; A1C2 1C AF ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level07_sub1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A1C4 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level07_sub2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A1C6 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level07_sub3</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">check_collisions_1</font> <font color="#8080ff">; A1C8 73 8F s.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">level07_num_bombs</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $0C </font> <font color="#8080ff">; A1CA 0C .</font> +<font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">level07_bullet_chance</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $02 </font> <font color="#8080ff">; A1CB 02 .</font> +<font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">level07_y_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $20 </font> <font color="#8080ff">; A1CC 20 </font> +<font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">level07_x_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $7C </font> <font color="#8080ff">; A1CD 7C |</font> +<font color="#8080ff">; points to $0600</font> +<font color="#00ffff">level07_offs_14</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A1CE 00 06 ..</font> +<font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">level07_points_per_bomb</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $64 </font> <font color="#8080ff">; A1D0 64 d</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">level07_time_bonus</font>: + .<font color="#ffff00">word</font> <font color="#ff40ff"> $05DC </font> <font color="#8080ff">; A1D1 DC 05 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $00</font> +<font color="#00ffff">level07_offs_19</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A1D3 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">level07_unkn_table0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAE8A</font> <font color="#8080ff">; A1D4 8A AE ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level07_map0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LADE0</font> <font color="#8080ff">; A1D6 E0 AD ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level07_map1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAE4C</font> <font color="#8080ff">; A1D8 4C AE L.</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level07_map2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAE71</font> <font color="#8080ff">; A1DA 71 AE q.</font> +<font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">level07_unkn_table1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A1DC 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $0000</font> +<font color="#00ffff">level07_offs_30</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A1DE 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">level07_sub4</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAF23</font> <font color="#8080ff">; A1E0 23 AF #.</font> +<font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">level07_sub5</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAE9B</font> <font color="#8080ff">; A1E2 9B AE ..</font> +<font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">level07_sub6</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; A1E4 40 97 @.</font> +<font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">level07_sub_eol</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LAF58</font> <font color="#8080ff">; A1E6 58 AF X.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes</font> +<font color="#00ffff">level07_offs_40</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A1E8 00 00 00 00 00 00 ......</font> +<font color="#8080ff">; unknown</font> +<font color="#00ffff">level07_offs_46</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$6A</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$68</font>,<font color="#ff6060">$8C</font> <font color="#8080ff">; A1EE 6A 08 C6 1A 0C 30 68 8C j....0h.</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A1F6 00 .</font> +<font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">level07_offs_55</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A1F7 00 00 00 ...</font> +<font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">level07_offs_58</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$56</font> <font color="#8080ff">; A1FA 40 56 @V</font> +<font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">level07_offs_60</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A1FC 00 00 00 00 ....</font> +<font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">level08_desc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$19</font> <font color="#8080ff">; A200 10 19 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level08_sub0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB140</font> <font color="#8080ff">; A202 40 B1 @.</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level08_sub1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A204 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level08_sub2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A206 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level08_sub3</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A208 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">level08_num_bombs</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $08 </font> <font color="#8080ff">; A20A 08 .</font> +<font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">level08_bullet_chance</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A20B 00 .</font> +<font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">level08_y_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $C0 </font> <font color="#8080ff">; A20C C0 .</font> +<font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">level08_x_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $9E </font> <font color="#8080ff">; A20D 9E .</font> +<font color="#8080ff">; points to $0600</font> +<font color="#00ffff">level08_offs_14</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A20E 00 06 ..</font> +<font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">level08_points_per_bomb</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $64 </font> <font color="#8080ff">; A210 64 d</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">level08_time_bonus</font>: + .<font color="#ffff00">word</font> <font color="#ff40ff"> $07D0 </font> <font color="#8080ff">; A211 D0 07 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $00</font> +<font color="#00ffff">level08_offs_19</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A213 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">level08_unkn_table0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06DF</font> <font color="#8080ff">; A214 DF 06 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level08_map0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB0A2</font> <font color="#8080ff">; A216 A2 B0 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level08_map1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB072</font> <font color="#8080ff">; A218 72 B0 r.</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level08_map2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB0A3</font> <font color="#8080ff">; A21A A3 B0 ..</font> +<font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">level08_unkn_table1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A21C 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $0000</font> +<font color="#00ffff">level08_offs_30</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A21E 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">level08_sub4</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB121</font> <font color="#8080ff">; A220 21 B1 !.</font> +<font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">level08_sub5</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB0C4</font> <font color="#8080ff">; A222 C4 B0 ..</font> +<font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">level08_sub6</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; A224 40 97 @.</font> +<font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">level08_sub_eol</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A226 E6 06 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes</font> +<font color="#00ffff">level08_offs_40</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A228 00 00 00 00 00 00 ......</font> +<font color="#8080ff">; unknown</font> +<font color="#00ffff">level08_offs_46</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$1A</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$96</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A22E 1A C6 96 28 0C 3C 00 00 ...(.<..</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $8C </font> <font color="#8080ff">; A236 8C .</font> +<font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">level08_offs_55</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A237 00 00 00 ...</font> +<font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">level08_offs_58</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$80</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A23A 80 00 ..</font> +<font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">level08_offs_60</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A23C 00 00 00 00 ....</font> +<font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">level09_desc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$11</font>,<font color="#ff6060">$10</font> <font color="#8080ff">; A240 11 10 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level09_sub0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB27E</font> <font color="#8080ff">; A242 7E B2 ~.</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level09_sub1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A244 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level09_sub2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A246 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level09_sub3</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB2E0</font> <font color="#8080ff">; A248 E0 B2 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">level09_num_bombs</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $0C </font> <font color="#8080ff">; A24A 0C .</font> +<font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">level09_bullet_chance</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $02 </font> <font color="#8080ff">; A24B 02 .</font> +<font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">level09_y_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $C0 </font> <font color="#8080ff">; A24C C0 .</font> +<font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">level09_x_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $3C </font> <font color="#8080ff">; A24D 3C <</font> +<font color="#8080ff">; points to $0600</font> +<font color="#00ffff">level09_offs_14</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A24E 00 06 ..</font> +<font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">level09_points_per_bomb</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $64 </font> <font color="#8080ff">; A250 64 d</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">level09_time_bonus</font>: + .<font color="#ffff00">word</font> <font color="#ff40ff"> $05DC </font> <font color="#8080ff">; A251 DC 05 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $00</font> +<font color="#00ffff">level09_offs_19</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A253 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">level09_unkn_table0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB275</font> <font color="#8080ff">; A254 75 B2 u.</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level09_map0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB1E0</font> <font color="#8080ff">; A256 E0 B1 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level09_map1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB237</font> <font color="#8080ff">; A258 37 B2 7.</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level09_map2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB25C</font> <font color="#8080ff">; A25A 5C B2 \.</font> +<font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">level09_unkn_table1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A25C 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $0000</font> +<font color="#00ffff">level09_offs_30</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A25E 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">level09_sub4</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB2FD</font> <font color="#8080ff">; A260 FD B2 ..</font> +<font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">level09_sub5</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L8036</font> <font color="#8080ff">; A262 36 80 6.</font> +<font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">level09_sub6</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; A264 40 97 @.</font> +<font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">level09_sub_eol</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A266 E6 06 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes</font> +<font color="#00ffff">level09_offs_40</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A268 00 00 00 00 00 00 ......</font> +<font color="#8080ff">; unknown</font> +<font color="#00ffff">level09_offs_46</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$CA</font>,<font color="#ff6060">$96</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A26E CA 96 18 5A 0C 40 8C 00 ...Z.@..</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A276 00 .</font> +<font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">level09_offs_55</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A277 00 00 00 ...</font> +<font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">level09_offs_58</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$62</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A27A 62 00 b.</font> +<font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">level09_offs_60</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A27C 00 00 00 00 ....</font> +<font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">level10_desc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$11</font>,<font color="#ff6060">$11</font> <font color="#8080ff">; A280 11 11 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level10_sub0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB457</font> <font color="#8080ff">; A282 57 B4 W.</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level10_sub1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB581</font> <font color="#8080ff">; A284 81 B5 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level10_sub2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L0000</font> <font color="#8080ff">; A286 00 00 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level10_sub3</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB57C</font> <font color="#8080ff">; A288 7C B5 |.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">level10_num_bombs</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $0F </font> <font color="#8080ff">; A28A 0F .</font> +<font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">level10_bullet_chance</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A28B 00 .</font> +<font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">level10_y_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $B6 </font> <font color="#8080ff">; A28C B6 .</font> +<font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">level10_x_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $C4 </font> <font color="#8080ff">; A28D C4 .</font> +<font color="#8080ff">; points to $0600</font> +<font color="#00ffff">level10_offs_14</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A28E 00 06 ..</font> +<font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">level10_points_per_bomb</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $64 </font> <font color="#8080ff">; A290 64 d</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">level10_time_bonus</font>: + .<font color="#ffff00">word</font> <font color="#ff40ff"> $03E8 </font> <font color="#8080ff">; A291 E8 03 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $00</font> +<font color="#00ffff">level10_offs_19</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A293 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">level10_unkn_table0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">data_table_b50b</font> <font color="#8080ff">; A294 0B B5 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level10_map0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB320</font> <font color="#8080ff">; A296 20 B3 .</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level10_map1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB38F</font> <font color="#8080ff">; A298 8F B3 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level10_map2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB3BD</font> <font color="#8080ff">; A29A BD B3 ..</font> +<font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">level10_unkn_table1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB3DC</font> <font color="#8080ff">; A29C DC B3 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $0000</font> +<font color="#00ffff">level10_offs_30</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A29E 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">level10_sub4</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB44C</font> <font color="#8080ff">; A2A0 4C B4 L.</font> +<font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">level10_sub5</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L8036</font> <font color="#8080ff">; A2A2 36 80 6.</font> +<font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">level10_sub6</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; A2A4 40 97 @.</font> +<font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">level10_sub_eol</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A2A6 E6 06 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes</font> +<font color="#00ffff">level10_offs_40</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A2A8 00 00 00 00 00 00 ......</font> +<font color="#8080ff">; unknown</font> +<font color="#00ffff">level10_offs_46</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$6A</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$8C</font> <font color="#8080ff">; A2AE 6A 08 C6 1A 0C 30 54 8C j....0T.</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A2B6 00 .</font> +<font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">level10_offs_55</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A2B7 00 00 00 ...</font> +<font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">level10_offs_58</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; A2BA 00 66 .f</font> +<font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">level10_offs_60</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A2BC 00 00 00 00 ....</font> +<font color="#8080ff">; first 2 bytes are level number in screencodes</font> +<font color="#00ffff">level11_desc</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$11</font>,<font color="#ff6060">$12</font> <font color="#8080ff">; A2C0 11 12 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level11_sub0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB691</font> <font color="#8080ff">; A2C2 91 B6 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level11_sub1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB69B</font> <font color="#8080ff">; A2C4 9B B6 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level11_sub2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB709</font> <font color="#8080ff">; A2C6 09 B7 ..</font> +<font color="#8080ff">; a subroutine</font> +<font color="#00ffff">level11_sub3</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">check_collisions_1</font> <font color="#8080ff">; A2C8 73 8F s.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; number of bombs to pick up on this level</font> +<font color="#00ffff">level11_num_bombs</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $0E </font> <font color="#8080ff">; A2CA 0E .</font> +<font color="#8080ff">; 0 = no bullets</font> +<font color="#00ffff">level11_bullet_chance</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A2CB 00 .</font> +<font color="#8080ff">; jumpman starting Y position</font> +<font color="#00ffff">level11_y_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $C0 </font> <font color="#8080ff">; A2CC C0 .</font> +<font color="#8080ff">; jumpman starting X position</font> +<font color="#00ffff">level11_x_start</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $7C </font> <font color="#8080ff">; A2CD 7C |</font> +<font color="#8080ff">; points to $0600</font> +<font color="#00ffff">level11_offs_14</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A2CE 00 06 ..</font> +<font color="#8080ff">; points awarded per bomb pickup (always $64 aka 100)</font> +<font color="#00ffff">level11_points_per_bomb</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $64 </font> <font color="#8080ff">; A2D0 64 d</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; amount of time bonus at start of level</font> +<font color="#00ffff">level11_time_bonus</font>: + .<font color="#ffff00">word</font> <font color="#ff40ff"> $09C4 </font> <font color="#8080ff">; A2D1 C4 09 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $00</font> +<font color="#00ffff">level11_offs_19</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; A2D3 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; pointer to ROM table or $06xx</font> +<font color="#00ffff">level11_unkn_table0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB658</font> <font color="#8080ff">; A2D4 58 B6 X.</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level11_map0</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB590</font> <font color="#8080ff">; A2D6 90 B5 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level11_map1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB5D2</font> <font color="#8080ff">; A2D8 D2 B5 ..</font> +<font color="#8080ff">; map data</font> +<font color="#00ffff">level11_map2</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB5FD</font> <font color="#8080ff">; A2DA FD B5 ..</font> +<font color="#8080ff">; unknown, pointer to a ROM table or $0000</font> +<font color="#00ffff">level11_unkn_table1</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">LB61A</font> <font color="#8080ff">; A2DC 1A B6 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; always $0000</font> +<font color="#00ffff">level11_offs_30</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A2DE 00 00 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; $06E6 for most levels, or else a ROM subroutine</font> +<font color="#00ffff">level11_sub4</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A2E0 E6 06 ..</font> +<font color="#8080ff">; $06E6 for some levels, or else a ROM subroutine</font> +<font color="#00ffff">level11_sub5</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L8036</font> <font color="#8080ff">; A2E2 36 80 6.</font> +<font color="#8080ff">; always $9740 aka game_main_loop</font> +<font color="#00ffff">level11_sub6</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">game_main_loop</font> <font color="#8080ff">; A2E4 40 97 @.</font> +<font color="#8080ff">; called at end of level (all bombs picked up). $06E6 for all but level07</font> +<font color="#00ffff">level11_sub_eol</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">L06E6</font> <font color="#8080ff">; A2E6 E6 06 ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes</font> +<font color="#00ffff">level11_offs_40</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A2E8 00 00 00 00 00 00 ......</font> +<font color="#8080ff">; unknown</font> +<font color="#00ffff">level11_offs_46</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$96</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$2A</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$6A</font> <font color="#8080ff">; A2EE 08 C6 96 28 0C 2A 4C 6A ...(.*Lj</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $8C </font> <font color="#8080ff">; A2F6 8C .</font> +<font color="#8080ff">; unknown, always $00 $00 $00</font> +<font color="#00ffff">level11_offs_55</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A2F7 00 00 00 ...</font> +<font color="#8080ff">; unknown, not a ROM address</font> +<font color="#00ffff">level11_offs_58</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A2FA 00 00 ..</font> +<font color="#8080ff">; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00</font> +<font color="#00ffff">level11_offs_60</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A2FC 00 00 00 00 ....</font> +<font color="#8080ff">; level map data starts here</font> +<font color="#00ffff">level00_map</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; A300 FE 33 9C FD 04 00 44 05 .3....D.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$74</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$24</font> <font color="#8080ff">; A308 06 04 15 0A 74 15 0A 24 ....t..$</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$74</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$16</font> <font color="#8080ff">; A310 22 02 74 22 02 24 25 16 ".t".$%.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$45</font> <font color="#8080ff">; A318 04 45 04 44 45 06 8C 45 .E.DE..E</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$0E</font>,<font color="#ff6060">$7C</font> <font color="#8080ff">; A320 04 04 55 08 34 55 0E 7C ..U.4U.|</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$55</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; A328 55 08 FD 04 FF 34 09 04 U....4..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$5C</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$5C</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A330 5C 44 0A FD 04 01 5C 06 \D....\.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$3B</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$5F</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; A338 04 1C 3B 0A FE 5F 9C FD ..;.._..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; A340 00 04 0C 41 05 8C 41 05 ...A..A.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$24</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$74</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A348 24 01 05 74 01 05 4C 01 $..t..L.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$15</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$C9</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$99</font> <font color="#8080ff">; A350 15 FE C9 9C 06 18 0A 99 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$DA</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$1D</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A358 18 0A FE DA 9C 1D 38 06 ......8.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$81</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$B3</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; A360 81 38 06 FE B3 9C .8....</font> +<font color="#00ffff">LA366</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; A366 04 12 01 38 02 01 64 02 ...8..d.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$58</font> <font color="#8080ff">; A36E 01 98 12 01 44 22 01 58 ....D".X</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A376 22 01 04 42 01 98 42 01 "..B..B.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$52</font> <font color="#8080ff">; A37E 04 52 01 38 52 01 64 52 .R.8R.dR</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; A386 01 98 52 01 FF ..R..</font> +<font color="#00ffff">LA38B</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$24</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$62</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$C4</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A38B 24 00 62 10 82 20 C4 00 $.b.. ..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$66</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$86</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$2A</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CA</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A393 66 30 86 40 2A 00 CA 00 f0.@*...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$2C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A39B 2C 00 6C 00 8C 00 CC 00 ,.l.....</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; A3A3 FF .</font> +<font color="#00ffff">LA3A4</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$AE</font>,<font color="#ff6060">$A3</font>,<font color="#ff6060">$B8</font>,<font color="#ff6060">$A3</font>,<font color="#ff6060">$C2</font>,<font color="#ff6060">$A3</font> <font color="#8080ff">; A3A4 00 00 AE A3 B8 A3 C2 A3 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$CC</font>,<font color="#ff6060">$A3</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A3AC CC A3 FE 49 9C FD 04 01 ...I....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$64</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; A3B4 64 08 02 FF FE 49 9C FD d....I..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font> <font color="#8080ff">; A3BC 04 FF 34 09 02 FF FE 49 ..4....I</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; A3C4 9C FD 04 00 2C 25 05 FF ....,%..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$25</font> <font color="#8080ff">; A3CC FE 49 9C FD 04 00 60 25 .I....`%</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A3D4 05 FF 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A3DC 00 00 00 00 ....</font> +<font color="#00ffff">LA3E0</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; A3E0 FE 33 9C FD 04 00 04 05 .3......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$0E</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$14</font> <font color="#8080ff">; A3E8 08 34 05 0E 7C 05 08 14 .4..|...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$15</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$5C</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; A3F0 15 04 34 15 04 5C 15 04 ..4..\..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7C</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$5C</font>,<font color="#ff6060">$25</font> <font color="#8080ff">; A3F8 7C 15 04 04 25 10 5C 25 |...%.\%</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; A400 10 20 3C 07 64 3C 07 04 . <.d<..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$55</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$09</font> <font color="#8080ff">; A408 55 09 38 55 0C 78 55 09 U.8U.xU.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$19</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$3B</font> <font color="#8080ff">; A410 FD 04 FF 04 19 04 80 3B .......;</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$07</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$16</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; A418 07 FD 04 01 8C 16 04 04 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$35</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$5F</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; A420 35 07 FE 5F 9C FD 00 04 5.._....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A428 18 01 05 4C 01 15 80 01 ...L....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$C9</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$19</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$85</font> <font color="#8080ff">; A430 05 FE C9 9C 19 3C 05 85 .....<..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$DA</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; A438 3C 05 FE DA 9C 05 30 08 <.....0.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$99</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$B3</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; A440 99 30 08 FE B3 9C .0....</font> +<font color="#00ffff">LA446</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; A446 04 02 01 38 02 01 64 02 ...8..d.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$38</font> <font color="#8080ff">; A44E 01 98 02 01 04 12 01 38 .......8</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A456 12 01 64 12 01 98 12 01 ..d.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$32</font> <font color="#8080ff">; A45E 20 22 01 7C 22 01 38 32 ".|".82</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$38</font> <font color="#8080ff">; A466 01 64 32 01 04 52 01 38 .d2..R.8</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A46E 52 01 64 52 01 98 52 01 R.dR..R.</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; A476 FF .</font> +<font color="#00ffff">LA477</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$62</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$C2</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A477 22 00 62 00 82 00 C2 00 ".b.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$24</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$C4</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A47F 24 00 64 00 84 00 C4 00 $.d.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$46</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$68</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$88</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A487 46 00 A6 00 68 00 88 00 F...h...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$2C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A48F 2C 00 6C 00 8C 00 CC 00 ,.l.....</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; A497 FF .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA498</font>: <font color="#00ff00">ldy</font> <font color="#ff40ff"> $B2 </font> <font color="#8080ff">; A498 A4 B2 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">data_table_a542</font>,<font color="#00ffff">y</font> <font color="#8080ff">; A49A B9 42 A5 .B.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; A49D 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; A49E 69 30 i0</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0680 </font> <font color="#8080ff">; A4A0 8D 80 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">LA543</font>,<font color="#00ffff">y</font> <font color="#8080ff">; A4A3 B9 43 A5 .C.</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; A4A6 0A .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; A4A7 69 20 i </font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0685 </font> <font color="#8080ff">; A4A9 8D 85 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">LA582</font>,<font color="#00ffff">y</font> <font color="#8080ff">; A4AC B9 82 A5 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $068A </font> <font color="#8080ff">; A4AF 8D 8A 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">LA583</font>,<font color="#00ffff">y</font> <font color="#8080ff">; A4B2 B9 83 A5 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">PCOLR2</font> <font color="#8080ff">; A4B5 8D C2 02 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">LA562</font>,<font color="#00ffff">y</font> <font color="#8080ff">; A4B8 B9 62 A5 .b.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; A4BB 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; A4BC 69 30 i0</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0681 </font> <font color="#8080ff">; A4BE 8D 81 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">LA563</font>,<font color="#00ffff">y</font> <font color="#8080ff">; A4C1 B9 63 A5 .c.</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; A4C4 0A .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; A4C5 69 20 i </font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0686 </font> <font color="#8080ff">; A4C7 8D 86 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">LA5A2</font>,<font color="#00ffff">y</font> <font color="#8080ff">; A4CA B9 A2 A5 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $068B </font> <font color="#8080ff">; A4CD 8D 8B 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">LA5A3</font>,<font color="#00ffff">y</font> <font color="#8080ff">; A4D0 B9 A3 A5 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">PCOLR3</font> <font color="#8080ff">; A4D3 8D C3 02 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $066C </font> <font color="#8080ff">; A4D6 8D 6C 06 .l.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $066D </font> <font color="#8080ff">; A4D9 8D 6D 06 .m.</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; A4DC 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA4DD</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; A4DD AD 23 06 .#.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA4FF</font> <font color="#8080ff">; A4E0 D0 1D ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0621 </font> <font color="#8080ff">; A4E2 AD 21 06 .!.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA4E8</font> <font color="#8080ff">; A4E5 D0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; A4E7 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA4E8</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; A4E8 A2 01 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">14</font> <font color="#8080ff">; A4EA AD BE 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; A4ED 29 03 ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA505</font> <font color="#8080ff">; A4EF D0 14 ..</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; A4F1 E8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">15</font> <font color="#8080ff">; A4F2 AD BF 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; A4F5 29 03 ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA505</font> <font color="#8080ff">; A4F7 D0 0C ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">initial_speed</font> <font color="#8080ff">; A4F9 AD 25 06 .%.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; A4FC 8D 24 06 .$.</font> +<font color="#00ffff">LA4FF</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; A4FF A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; A501 8D 70 07 .p.</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; A504 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA505</font>: <font color="#00ff00">stx</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; A505 8E 70 07 .p.</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; A508 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA509</font>: <font color="#00ff00">ldx</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; A509 AE 70 07 .p.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA50F</font> <font color="#8080ff">; A50C D0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; A50E 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA50F</font>: <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; A50F AD 0A D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLPM1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; A512 9D 13 D0 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLPM0</font> <font color="#8080ff">; A515 8D 12 D0 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; A518 A9 08 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; A51A 8D 24 06 .$.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$2D</font> <font color="#8080ff">; A51D A9 2D .-</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_tempo</font> <font color="#8080ff">; A51F 8D 3E 06 .>.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$A5</font> <font color="#8080ff">; A522 A9 A5 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_timer</font> <font color="#8080ff">; A524 8D 3F 06 .?.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; A527 A9 01 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8003</font> <font color="#8080ff">; A529 20 03 80 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; A52C 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; dunno, referenced by routine at $A50F</font> +<font color="#00ffff">sfx_a52d</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$81</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$81</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A52D 01 81 00 0A 02 01 81 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$32</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$81</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A535 32 02 01 81 00 1E 02 00 2.......</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA53D</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; A53D A9 00 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8F79</font> <font color="#8080ff">; A53F 4C 79 8F Ly.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; dunno, referenced by routine at $A498</font> +<font color="#00ffff">data_table_a542</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $0C </font> <font color="#8080ff">; A542 0C .</font> +<font color="#00ffff">LA543</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; A543 05 18 09 58 05 80 15 18 ...X....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$09</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$1D</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; A54B 09 28 25 4C 1D 80 09 18 .(%L....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$15</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$0C</font> <font color="#8080ff">; A553 15 70 25 2C 3C 4C 45 0C .p%,<LE.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$55</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$4D</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$55</font> <font color="#8080ff">; A55B 55 20 55 4C 4D 8C 55 U ULM.U</font> +<font color="#00ffff">LA562</font>: .<font color="#ffff00">byte</font> <font color="#ff40ff"> $18 </font> <font color="#8080ff">; A562 18 .</font> +<font color="#00ffff">LA563</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$15</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; A563 15 40 05 80 09 8C 05 18 .@......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$09</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$0D</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$28</font> <font color="#8080ff">; A56B 09 4C 0D 70 25 80 09 28 .L.p%..(</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$25</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$0C</font> <font color="#8080ff">; A573 25 80 15 4C 35 6C 3C 0C %..L5l<.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$55</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$4D</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$55</font> <font color="#8080ff">; A57B 55 4C 4D 78 55 8C 55 ULMxU.U</font> +<font color="#00ffff">LA582</font>: .<font color="#ffff00">byte</font> <font color="#ff40ff"> $01 </font> <font color="#8080ff">; A582 01 .</font> +<font color="#00ffff">LA583</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; A583 08 02 C6 01 08 01 08 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C6</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A58B C6 01 08 02 C6 02 C6 01 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A593 08 01 08 01 08 02 C6 01 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; A59B 08 01 08 02 C6 01 08 .......</font> +<font color="#00ffff">LA5A2</font>: .<font color="#ffff00">byte</font> <font color="#ff40ff"> $01 </font> <font color="#8080ff">; A5A2 01 .</font> +<font color="#00ffff">LA5A3</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; A5A3 08 01 08 02 C6 01 08 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C6</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A5AB C6 02 C6 01 08 02 C6 01 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A5B3 08 01 08 02 C6 01 08 01 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; A5BB 08 02 C6 01 08 01 08 .......</font> +<font color="#00ffff">LA5C2</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$D3</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A5C2 03 D3 A5 08 00 00 01 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$D3</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A5CA 04 D3 A5 08 00 00 01 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$AA</font>,<font color="#ff6060">$AA</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A5D2 FF FF FF AA AA FF FF 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$C3</font> <font color="#8080ff">; A5DA 00 C3 C3 C3 C3 FF FF C3 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C3</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A5E2 C3 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A5EA 00 00 00 00 00 00 ......</font> +<font color="#00ffff">LA5F0</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; A5F0 FE 33 9C FD 04 00 04 05 .3......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$84</font> <font color="#8080ff">; A5F8 06 84 05 06 04 15 06 84 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$15</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$0C</font> <font color="#8080ff">; A600 15 06 04 25 0C 6C 25 0C ...%.l%.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$45</font> <font color="#8080ff">; A608 04 35 0C 6C 35 0C 04 45 .5.l5..E</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$8C</font> <font color="#8080ff">; A610 04 24 45 04 6C 45 04 8C .$E.lE..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$45</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; A618 45 04 04 55 06 84 55 06 E..U..U.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$5F</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A620 FE 5F 9C FD 00 04 0C 01 ._......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$B3</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; A628 05 8C 01 05 FE B3 9C .......</font> +<font color="#00ffff">LA62F</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$22</font> <font color="#8080ff">; A62F 04 02 01 04 12 01 04 22 ......."</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; A637 01 04 32 01 04 42 01 04 ..2..B..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A63F 52 01 98 02 01 98 12 01 R.......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$98</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$42</font> <font color="#8080ff">; A647 98 22 01 98 32 01 98 42 ."..2..B</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; A64F 01 98 52 01 FF ..R..</font> +<font color="#00ffff">LA654</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A654 22 00 24 00 26 00 28 00 ".$.&.(.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$2A</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$C2</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$C4</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A65C 2A 00 2C 00 C2 00 C4 00 *.,.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C6</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$C8</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CA</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A664 C6 00 C8 00 CA 00 CC 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; A66C FF .</font> +<font color="#00ffff">LA66D</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$7A</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; A66D 00 00 00 01 7A 01 01 66 ....z..f</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$86</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$4A</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; A675 03 86 A6 06 4C 4A 01 66 ....LJ.f</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$86</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$CA</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$66</font> <font color="#8080ff">; A67D 04 86 A6 06 A4 CA 01 66 .......f</font> +<font color="#8080ff">; horizontally moving platforms from level02</font> +<font color="#00ffff">dw_platform_player</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$AA</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; A685 FF FF FF AA 55 FF FF ....U..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA68C</font>: <font color="#00ff00">jsr</font> <font color="#00ffff">L8036</font> <font color="#8080ff">; A68C 20 36 80 6.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; A68F A9 06 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0760 </font> <font color="#8080ff">; A691 8D 60 07 .`.</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$2A</font> <font color="#8080ff">; A694 A0 2A .*</font> +<font color="#00ffff">LA696</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; A696 A2 06 ..</font> +<font color="#00ffff">LA698</font>: <font color="#00ff00">lda</font> <font color="#00ffff">LA781</font>,<font color="#00ffff">x</font> <font color="#8080ff">; A698 BD 81 A7 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2B00,y </font> <font color="#8080ff">; A69B 99 00 2B ..+</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; A69E C8 .</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; A69F CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA698</font> <font color="#8080ff">; A6A0 D0 F6 ..</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; A6A2 98 .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; A6A3 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$1A</font> <font color="#8080ff">; A6A4 69 1A i.</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; A6A6 A8 .</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $0760 </font> <font color="#8080ff">; A6A7 CE 60 07 .`.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA696</font> <font color="#8080ff">; A6AA D0 EA ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; A6AC A9 FF ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">SIZEM</font> <font color="#8080ff">; A6AE 8D 0C D0 ...</font> + <font color="#00ff00">stx</font> <font color="#ff40ff"> $068C </font> <font color="#8080ff">; A6B1 8E 8C 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; A6B4 A9 01 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">SIZEP2</font> <font color="#8080ff">; A6B6 8D 0A D0 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">SIZEP3</font> <font color="#8080ff">; A6B9 8D 0B D0 ...</font> +<font color="#00ffff">LA6BC</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; A6BC 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA6BD</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $06F5 </font> <font color="#8080ff">; A6BD AD F5 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA6BC</font> <font color="#8080ff">; A6C0 F0 FA ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; A6C2 C9 01 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA6DC</font> <font color="#8080ff">; A6C4 D0 16 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $06F5 </font> <font color="#8080ff">; A6C6 EE F5 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0669 </font> <font color="#8080ff">; A6C9 EE 69 06 .i.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $066C </font> <font color="#8080ff">; A6CC EE 6C 06 .l.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $066D </font> <font color="#8080ff">; A6CF EE 6D 06 .m.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; A6D2 A9 01 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; A6D4 8D 70 07 .p.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; A6D7 A9 FF ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0771 </font> <font color="#8080ff">; A6D9 8D 71 07 .q.</font> +<font color="#00ffff">LA6DC</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; A6DC AD 23 06 .#.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; A6DF C9 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA6BC</font> <font color="#8080ff">; A6E1 F0 D9 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0622 </font> <font color="#8080ff">; A6E3 AD 22 06 .".</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA6BC</font> <font color="#8080ff">; A6E6 F0 D4 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; A6E8 A2 02 ..</font> +<font color="#00ffff">LA6EA</font>: <font color="#00ff00">inx</font> <font color="#8080ff">; A6EA E8 .</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; A6EB E0 05 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA70F</font> <font color="#8080ff">; A6ED F0 20 . </font> + <font color="#00ff00">clc</font> <font color="#8080ff">; A6EF 18 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $067D,x </font> <font color="#8080ff">; A6F0 BD 7D 06 .}.</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $076D,x </font> <font color="#8080ff">; A6F3 7D 6D 07 }m.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067D,x </font> <font color="#8080ff">; A6F6 9D 7D 06 .}.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$4B</font> <font color="#8080ff">; A6F9 C9 4B .K</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA701</font> <font color="#8080ff">; A6FB F0 04 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$A4</font> <font color="#8080ff">; A6FD C9 A4 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA6EA</font> <font color="#8080ff">; A6FF D0 E9 ..</font> +<font color="#00ffff">LA701</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $076D,x </font> <font color="#8080ff">; A701 BD 6D 07 .m.</font> + <font color="#00ff00">eor</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; A704 49 FF I.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $076D,x </font> <font color="#8080ff">; A706 9D 6D 07 .m.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $076D,x </font> <font color="#8080ff">; A709 FE 6D 07 .m.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LA6EA</font> <font color="#8080ff">; A70C 4C EA A6 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA70F</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $2BCF </font> <font color="#8080ff">; A70F AD CF 2B ..+</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2B0E </font> <font color="#8080ff">; A712 8D 0E 2B ..+</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$CF</font> <font color="#8080ff">; A715 A0 CF ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$CE</font> <font color="#8080ff">; A717 A2 CE ..</font> +<font color="#00ffff">LA719</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $2B00,x </font> <font color="#8080ff">; A719 BD 00 2B ..+</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2B00,y </font> <font color="#8080ff">; A71C 99 00 2B ..+</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; A71F CA .</font> + <font color="#00ff00">dey</font> <font color="#8080ff">; A720 88 .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA719</font> <font color="#8080ff">; A721 D0 F6 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; A723 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA724</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; A724 AD 23 06 .#.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; A727 C9 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA778</font> <font color="#8080ff">; A729 F0 4D .M</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0622 </font> <font color="#8080ff">; A72B AD 22 06 .".</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA778</font> <font color="#8080ff">; A72E F0 48 .H</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0778 </font> <font color="#8080ff">; A730 AD 78 07 .x.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA73D</font> <font color="#8080ff">; A733 F0 08 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; A735 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06ED </font> <font color="#8080ff">; A737 8D ED 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0778 </font> <font color="#8080ff">; A73A 8D 78 07 .x.</font> +<font color="#00ffff">LA73D</font>: <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">8</font> <font color="#8080ff">; A73D AD B8 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">9</font> <font color="#8080ff">; A740 0D B9 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">10</font> <font color="#8080ff">; A743 0D BA 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">11</font> <font color="#8080ff">; A746 0D BB 06 ...</font> + <font color="#00ff00">tax</font> <font color="#8080ff">; A749 AA .</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">14</font> <font color="#8080ff">; A74A 0D BE 06 ...</font> + <font color="#00ff00">ora</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">15</font> <font color="#8080ff">; A74D 0D BF 06 ...</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; A750 A8 .</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; A751 29 01 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA760</font> <font color="#8080ff">; A753 F0 0B ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; A755 AD B4 06 ...</font> + <font color="#00ff00">ora</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; A758 09 01 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; A75A 8D B4 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; A75D EE 83 06 ...</font> +<font color="#00ffff">LA760</font>: <font color="#00ff00">tya</font> <font color="#8080ff">; A760 98 .</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; A761 29 02 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA779</font> <font color="#8080ff">; A763 F0 14 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">5</font> <font color="#8080ff">; A765 AD B5 06 ...</font> + <font color="#00ff00">ora</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; A768 09 01 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">5</font> <font color="#8080ff">; A76A 8D B5 06 ...</font> + <font color="#00ff00">txa</font> <font color="#8080ff">; A76D 8A .</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; A76E 29 02 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA778</font> <font color="#8080ff">; A770 F0 06 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; A772 EE 83 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0778 </font> <font color="#8080ff">; A775 8D 78 07 .x.</font> +<font color="#00ffff">LA778</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; A778 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA779</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; A779 AD 83 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$FE</font> <font color="#8080ff">; A77C 29 FE ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; A77E 8D 83 06 ...</font> +<font color="#00ffff">LA781</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; A781 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; the dumbwaiters from level02. stored upside-down.</font> +<font color="#00ffff">dumbwaiter_player</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A782 18 3C 7E FF FF FF 00 00 .<~.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A78A 00 00 00 00 00 00 ......</font> +<font color="#00ffff">LA790</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; A790 FE 33 9C FD 04 00 40 05 .3....@.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; A798 08 18 15 0A 04 25 14 18 .....%..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$35</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$0F</font> <font color="#8080ff">; A7A0 35 0A 2C 45 0A 04 55 0F 5.,E..U.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$60</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$0F</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$0F</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$25</font> <font color="#8080ff">; A7A8 60 55 0F 4C 15 0F 60 25 `U.L..`%</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0F</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$0F</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; A7B0 0F 4C 35 0F 60 45 05 FE .L5.`E..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$5F</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; A7B8 5F 9C FD 00 04 4C 01 05 _....L..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$4C</font>,<font color="#ff6060">$21</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$11</font> <font color="#8080ff">; A7C0 4C 21 05 4C 41 05 18 11 L!.LA...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$11</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$31</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$6C</font> <font color="#8080ff">; A7C8 05 80 11 05 2C 31 05 6C ....,1.l</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$31</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$B3</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; A7D0 31 05 FE B3 9C 1....</font> +<font color="#00ffff">LA7D5</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$5C</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$12</font> <font color="#8080ff">; A7D5 40 02 01 5C 02 01 24 12 @..\..$.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$78</font> <font color="#8080ff">; A7DD 01 3C 12 01 60 12 01 78 .<..`..x</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A7E5 12 01 04 22 01 3C 22 01 ...".<".</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$60</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$32</font> <font color="#8080ff">; A7ED 60 22 01 98 22 01 18 32 `".."..2</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$60</font> <font color="#8080ff">; A7F5 01 84 32 01 3C 42 01 60 ..2.<B.`</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$42</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A7FD 42 01 04 52 01 98 52 01 B..R..R.</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; A805 FF .</font> +<font color="#00ffff">LA806</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$62</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A806 62 00 82 00 44 00 64 00 b...D.d.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$84</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A80E 84 00 A4 00 26 00 66 00 ....&.f.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$86</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$A8</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A816 86 00 C6 00 48 00 A8 00 ....H...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$6A</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$8A</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A81E 6A 00 8A 00 2C 00 CC 00 j...,...</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; A826 FF .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA827</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0619 </font> <font color="#8080ff">; A827 AD 19 06 ...</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; A82A 0A .</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; A82B 0A .</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; A82C 0A .</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; A82D 0A .</font> + <font color="#00ff00">ora</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; A82E 09 08 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR3</font> <font color="#8080ff">; A830 8D C7 02 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">check_collisions_1</font> <font color="#8080ff">; A833 4C 73 8F Ls.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA836</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; A836 AD 23 06 .#.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; A839 C9 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA842</font> <font color="#8080ff">; A83B F0 05 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0622 </font> <font color="#8080ff">; A83D AD 22 06 .".</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA843</font> <font color="#8080ff">; A840 D0 01 ..</font> +<font color="#00ffff">LA842</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; A842 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA843</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; A843 A2 05 ..</font> +<font color="#00ffff">LA845</font>: <font color="#00ff00">dex</font> <font color="#8080ff">; A845 CA .</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA842</font> <font color="#8080ff">; A846 F0 FA ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $075F,x </font> <font color="#8080ff">; A848 BD 5F 07 ._.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA865</font> <font color="#8080ff">; A84B D0 18 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; A84D AD 0A D2 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$1F</font> <font color="#8080ff">; A850 29 1F ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA845</font> <font color="#8080ff">; A852 D0 F1 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $075F,x </font> <font color="#8080ff">; A854 FE 5F 07 ._.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; A857 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069E,x </font> <font color="#8080ff">; A859 9D 9E 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; A85C AD 7E 06 .~.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; A85F 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; A860 69 03 i.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069A,x </font> <font color="#8080ff">; A862 9D 9A 06 ...</font> +<font color="#00ffff">LA865</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0763,x </font> <font color="#8080ff">; A865 BD 63 07 .c.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA89E</font> <font color="#8080ff">; A868 D0 34 .4</font> + <font color="#00ff00">lda</font> <font color="#00ffff">dli_vec_shadow_hi</font>,<font color="#00ffff">x</font> <font color="#8080ff">; A86A BD AF 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; A86D 29 01 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA89E</font> <font color="#8080ff">; A86F F0 2D .-</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; A871 AD 7E 06 .~.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; A874 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; A875 69 03 i.</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; A877 A0 01 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $069A,x </font> <font color="#8080ff">; A879 DD 9A 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA882</font> <font color="#8080ff">; A87C F0 04 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; A87E C8 .</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LA882</font> <font color="#8080ff">; A87F 90 01 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; A881 C8 .</font> +<font color="#00ffff">LA882</font>: <font color="#00ff00">tya</font> <font color="#8080ff">; A882 98 .</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0763,x </font> <font color="#8080ff">; A883 9D 63 07 .c.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; A886 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0767,x </font> <font color="#8080ff">; A888 9D 67 07 .g.</font> + <font color="#00ff00">txa</font> <font color="#8080ff">; A88B 8A .</font> + <font color="#00ff00">pha</font> <font color="#8080ff">; A88C 48 H</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$0D</font> <font color="#8080ff">; A88D A9 0D ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_tempo</font> <font color="#8080ff">; A88F 8D 3E 06 .>.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$A9</font> <font color="#8080ff">; A892 A9 A9 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_timer</font> <font color="#8080ff">; A894 8D 3F 06 .?.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; A897 A9 03 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8003</font> <font color="#8080ff">; A899 20 03 80 ..</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; A89C 68 h</font> + <font color="#00ff00">tax</font> <font color="#8080ff">; A89D AA .</font> +<font color="#00ffff">LA89E</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0763,x </font> <font color="#8080ff">; A89E BD 63 07 .c.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA8C1</font> <font color="#8080ff">; A8A1 D0 1E ..</font> +<font color="#00ffff">LA8A3</font>: <font color="#00ff00">clc</font> <font color="#8080ff">; A8A3 18 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $069E,x </font> <font color="#8080ff">; A8A4 BD 9E 06 ...</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; A8A7 69 02 i.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$CE</font> <font color="#8080ff">; A8A9 C9 CE ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">LA8B3</font> <font color="#8080ff">; A8AB B0 06 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069E,x </font> <font color="#8080ff">; A8AD 9D 9E 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LA845</font> <font color="#8080ff">; A8B0 4C 45 A8 LE.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA8B3</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; A8B3 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069A,x </font> <font color="#8080ff">; A8B5 9D 9A 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $075F,x </font> <font color="#8080ff">; A8B8 9D 5F 07 ._.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0763,x </font> <font color="#8080ff">; A8BB 9D 63 07 .c.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LA845</font> <font color="#8080ff">; A8BE 4C 45 A8 LE.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA8C1</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0767,x </font> <font color="#8080ff">; A8C1 BD 67 07 .g.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; A8C4 C9 08 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA8D4</font> <font color="#8080ff">; A8C6 D0 0C ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; A8C8 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0763,x </font> <font color="#8080ff">; A8CA 9D 63 07 .c.</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; A8CD E0 03 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LA8A3</font> <font color="#8080ff">; A8CF 90 D2 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LA865</font> <font color="#8080ff">; A8D1 4C 65 A8 Le.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LA8D4</font>: <font color="#00ff00">tay</font> <font color="#8080ff">; A8D4 A8 .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; A8D5 18 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $069E,x </font> <font color="#8080ff">; A8D6 BD 9E 06 ...</font> + <font color="#00ff00">adc</font> <font color="#00ffff">LA905</font>,<font color="#00ffff">y</font> <font color="#8080ff">; A8D9 79 05 A9 y..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069E,x </font> <font color="#8080ff">; A8DC 9D 9E 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">data_table_a8fd</font>,<font color="#00ffff">y</font> <font color="#8080ff">; A8DF B9 FD A8 ...</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; A8E2 A8 .</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA8EF</font> <font color="#8080ff">; A8E3 F0 0A ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; A8E5 A8 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0763,x </font> <font color="#8080ff">; A8E6 BD 63 07 .c.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; A8E9 C9 03 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LA8EF</font> <font color="#8080ff">; A8EB F0 02 ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$FE</font> <font color="#8080ff">; A8ED A0 FE ..</font> +<font color="#00ffff">LA8EF</font>: <font color="#00ff00">tya</font> <font color="#8080ff">; A8EF 98 .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; A8F0 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $069A,x </font> <font color="#8080ff">; A8F1 7D 9A 06 }..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $069A,x </font> <font color="#8080ff">; A8F4 9D 9A 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0767,x </font> <font color="#8080ff">; A8F7 FE 67 07 .g.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LA845</font> <font color="#8080ff">; A8FA 4C 45 A8 LE.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; dunno, referenced by routine at $A8D4</font> +<font color="#00ffff">data_table_a8fd</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A8FD 00 02 02 02 02 02 02 00 ........</font> +<font color="#00ffff">LA905</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; A905 FE FE FE 00 00 02 02 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$83</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A90D 01 83 00 0A 03 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A915 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A91D 00 00 00 ...</font> +<font color="#00ffff">LA920</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; A920 FE 33 9C FD 04 00 04 05 .3......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$6C</font> <font color="#8080ff">; A928 04 24 05 04 44 05 06 6C .$..D..l</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$16</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; A930 05 04 8C 05 04 30 16 04 .....0..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$60</font>,<font color="#ff6060">$16</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$25</font> <font color="#8080ff">; A938 60 16 04 04 25 09 78 25 `...%.x%</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$09</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$78</font> <font color="#8080ff">; A940 09 04 35 09 40 35 08 78 ..5.@5.x</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$35</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; A948 35 09 40 45 02 58 45 02 5.@E.XE.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$55</font> <font color="#8080ff">; A950 04 55 05 28 55 06 4C 55 .U.(U.LU</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$88</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; A958 02 60 55 06 88 55 05 FE .`U..U..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$5F</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$09</font> <font color="#8080ff">; A960 5F 9C FD 00 04 04 01 09 _.......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$94</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$19</font>,<font color="#ff6060">$0F</font>,<font color="#ff6060">$68</font>,<font color="#ff6060">$19</font> <font color="#8080ff">; A968 94 01 09 30 19 0F 68 19 ...0..h.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0F</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$B3</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; A970 0F FE B3 9C ....</font> +<font color="#00ffff">LA974</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$24</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; A974 24 02 01 44 02 01 58 02 $..D..X.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$58</font> <font color="#8080ff">; A97C 01 78 02 01 44 12 01 58 .x..D..X</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A984 12 01 24 22 01 78 22 01 ..$".x".</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$5C</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$42</font> <font color="#8080ff">; A98C 40 32 01 5C 32 01 40 42 @2.\2.@B</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$5C</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$3C</font> <font color="#8080ff">; A994 01 5C 42 01 04 52 01 3C .\B..R.<</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; A99C 52 01 60 52 01 98 52 01 R.`R..R.</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; A9A4 FF .</font> +<font color="#00ffff">LA9A5</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$42</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$62</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A9A5 42 00 62 00 82 00 A2 00 B.b.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$64</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$46</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A9AD 64 00 84 00 46 00 A6 00 d...F...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$68</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$88</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$6A</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$8A</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A9B5 68 00 88 00 6A 00 8A 00 h...j...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$2C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; A9BD 2C 00 6C 00 8C 00 CC 00 ,.l.....</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; A9C5 FF .</font> +<font color="#00ffff">LA9C6</font>: .<font color="#ffff00">byte</font> <font color="#ff40ff"> $20 </font> <font color="#8080ff">; A9C6 20 </font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">rol</font> <font color="#ff40ff"> $80,x </font> <font color="#8080ff">; A9C7 36 80 6.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; A9C9 A9 02 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; A9CB 8D 70 07 .p.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0772 </font> <font color="#8080ff">; A9CE 8D 72 07 .r.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$FE</font> <font color="#8080ff">; A9D1 A9 FE ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0771 </font> <font color="#8080ff">; A9D3 8D 71 07 .q.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0773 </font> <font color="#8080ff">; A9D6 8D 73 07 .s.</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; A9D9 A2 05 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; A9DB A9 00 ..</font> +<font color="#00ffff">LA9DD</font>: <font color="#00ff00">sta</font> <font color="#ff40ff">HPOSP3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; A9DD 9D 03 D0 ...</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; A9E0 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LA9DD</font> <font color="#8080ff">; A9E1 D0 FA ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$C0</font> <font color="#8080ff">; A9E3 A9 C0 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">LAA0C</font> <font color="#8080ff">; A9E5 20 0C AA ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$C0</font> <font color="#8080ff">; A9E8 A9 C0 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">LAA0C</font> <font color="#8080ff">; A9EA 20 0C AA ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; A9ED A9 30 .0</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">LAA0C</font> <font color="#8080ff">; A9EF 20 0C AA ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; A9F2 A9 30 .0</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">LAA0C</font> <font color="#8080ff">; A9F4 20 0C AA ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$0C</font> <font color="#8080ff">; A9F7 A9 0C ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">LAA0C</font> <font color="#8080ff">; A9F9 20 0C AA ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$0C</font> <font color="#8080ff">; A9FC A9 0C ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">LAA0C</font> <font color="#8080ff">; A9FE 20 0C AA ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; AA01 A9 03 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">LAA0C</font> <font color="#8080ff">; AA03 20 0C AA ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; AA06 A9 03 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">LAA0C</font> <font color="#8080ff">; AA08 20 0C AA ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; AA0B 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAA0C</font>: <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; AA0C 85 C0 ..</font> +<font color="#00ffff">LAA0E</font>: <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; AA0E AD 0A D2 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$AC</font> <font color="#8080ff">; AA11 C9 AC ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">LAA0E</font> <font color="#8080ff">; AA13 B0 F9 ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; AA15 A8 .</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$1E</font> <font color="#8080ff">; AA16 A2 1E ..</font> +<font color="#00ffff">LAA18</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $2B00,y </font> <font color="#8080ff">; AA18 B9 00 2B ..+</font> + <font color="#00ff00">ora</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; AA1B 05 C0 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2B00,y </font> <font color="#8080ff">; AA1D 99 00 2B ..+</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; AA20 C8 .</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; AA21 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LAA18</font> <font color="#8080ff">; AA22 D0 F4 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; AA24 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAA25</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $076F </font> <font color="#8080ff">; AA25 AD 6F 07 .o.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; AA28 C9 04 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LAA2D</font> <font color="#8080ff">; AA2A D0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; AA2C 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAA2D</font>: <font color="#00ff00">tax</font> <font color="#8080ff">; AA2D AA .</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0774,x </font> <font color="#8080ff">; AA2E FE 74 07 .t.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $076F </font> <font color="#8080ff">; AA31 EE 6F 07 .o.</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; AA34 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAA35</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0622 </font> <font color="#8080ff">; AA35 AD 22 06 .".</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LAA3B</font> <font color="#8080ff">; AA38 D0 01 ..</font> +<font color="#00ffff">LAA3A</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; AA3A 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAA3B</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; AA3B A2 05 ..</font> +<font color="#00ffff">LAA3D</font>: <font color="#00ff00">dex</font> <font color="#8080ff">; AA3D CA .</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LAA3A</font> <font color="#8080ff">; AA3E F0 FA ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0773,x </font> <font color="#8080ff">; AA40 BD 73 07 .s.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LAA3D</font> <font color="#8080ff">; AA43 F0 F8 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0777,x </font> <font color="#8080ff">; AA45 BD 77 07 .w.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; AA48 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $076F,x </font> <font color="#8080ff">; AA49 7D 6F 07 }o.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0777,x </font> <font color="#8080ff">; AA4C 9D 77 07 .w.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">HPOSP3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; AA4F 9D 03 D0 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LAA3D</font> <font color="#8080ff">; AA52 4C 3D AA L=.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAA55</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0622 </font> <font color="#8080ff">; AA55 AD 22 06 .".</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LAA3A</font> <font color="#8080ff">; AA58 F0 E0 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; AA5A A2 05 ..</font> +<font color="#00ffff">LAA5C</font>: <font color="#00ff00">dex</font> <font color="#8080ff">; AA5C CA .</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LAA3A</font> <font color="#8080ff">; AA5D F0 DB ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">7</font>,<font color="#00ffff">x</font> <font color="#8080ff">; AA5F BD B7 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; AA62 29 01 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LAA5C</font> <font color="#8080ff">; AA64 F0 F6 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; AA66 AD 7E 06 .~.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; AA69 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $076F,x </font> <font color="#8080ff">; AA6A 7D 6F 07 }o.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; AA6D 8D 7E 06 .~.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LAA5C</font> <font color="#8080ff">; AA70 4C 5C AA L\.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAA73</font>: <font color="#00ff00">inc</font> <font color="#ff40ff"> $0764 </font> <font color="#8080ff">; AA73 EE 64 07 .d.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0764 </font> <font color="#8080ff">; AA76 AD 64 07 .d.</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; AA79 29 01 ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LAA82</font> <font color="#8080ff">; AA7B F0 05 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$90</font> <font color="#8080ff">; AA7D A9 90 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LAA84</font> <font color="#8080ff">; AA7F 4C 84 AA L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAA82</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$A6</font> <font color="#8080ff">; AA82 A9 A6 ..</font> +<font color="#00ffff">LAA84</font>: <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; AA84 85 C0 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$AA</font> <font color="#8080ff">; AA86 A9 AA ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; AA88 85 C1 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">draw_map_jv</font> <font color="#8080ff">; AA8A 20 00 80 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LAA25</font> <font color="#8080ff">; AA8D 4C 25 AA L%.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; dunno what this is for yet</font> +<font color="#00ffff">map_aa90</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$EB</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AA90 FE EB 9C FD 00 04 50 00 ......P.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0C</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$4E</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; AA98 0C FE 33 9C 4E 05 01 FE ..3.N...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$DA</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; AAA0 DA 9C 50 00 0C FF ..P...</font> +<font color="#8080ff">; referenced by routine at $AA82</font> +<font color="#00ffff">map_aaa6</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$EB</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AAA6 FE EB 9C FD 00 04 50 00 ......P.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0C</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$4E</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; AAAE 0C FE 33 9C 4E 05 01 FE ..3.N...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C9</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; AAB6 C9 9C 50 08 0A FF ..P...</font> +<font color="#00ffff">LAABC</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$AD</font>,<font color="#ff6060">$2A</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$8D</font>,<font color="#ff6060">$C7</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AABC AD 2A 06 8D C7 02 60 00 .*....`.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$8D</font>,<font color="#ff6060">$C7</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$45</font> <font color="#8080ff">; AAC4 8D C7 02 60 00 09 40 45 ...`..@E</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; AACC 02 58 45 02 .XE.</font> +<font color="#00ffff">LAAD0</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; AAD0 FE 33 9C FD 04 00 04 05 .3......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$0B</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; AAD8 02 1A 05 0B 50 05 07 04 ....P...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$25</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$3B</font>,<font color="#ff6060">$03</font> <font color="#8080ff">; AAE0 25 26 7C 33 08 20 3B 03 %&|3. ;.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$3B</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$3B</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$47</font> <font color="#8080ff">; AAE8 40 3B 03 60 3B 06 04 47 @;.`;..G</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$4B</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$4B</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$60</font> <font color="#8080ff">; AAF0 04 20 4B 03 40 4B 03 60 . K.@K.`</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$4B</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$4A</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$26</font> <font color="#8080ff">; AAF8 4B 03 80 4A 03 04 55 26 K..J..U&</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$4A</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$4A</font> <font color="#8080ff">; AB00 FD 04 FF 2C 4A 03 4C 4A ...,J.LJ</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$4A</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$14</font> <font color="#8080ff">; AB08 03 6C 4A 03 FD 04 01 14 .lJ.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$48</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; AB10 48 03 38 49 02 58 49 02 H.8I.XI.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$78</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$5F</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AB18 78 49 02 FE 5F 9C FD 00 xI.._...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$21</font>,<font color="#ff6060">$0D</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$84</font> <font color="#8080ff">; AB20 04 0C 21 0D 84 01 09 84 ..!.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$2F</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$C9</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; AB28 2F 06 22 01 05 FE C9 9C /.".....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$28</font> <font color="#8080ff">; AB30 3C 08 06 35 28 04 55 28 <..5(.U(</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$DA</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$9A</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; AB38 04 FE DA 9C 9A 30 08 FE .....0..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$B3</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; AB40 B3 9C ..</font> +<font color="#00ffff">LAB42</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$16</font> <font color="#8080ff">; AB42 04 02 01 44 02 01 24 16 ...D..$.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font> <font color="#8080ff">; AB4A 01 44 22 01 64 22 01 98 .D".d"..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; AB52 22 01 24 32 01 44 32 01 ".$2.D2.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$64</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$52</font> <font color="#8080ff">; AB5A 64 32 01 24 52 01 44 52 d2.$R.DR</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font> <font color="#8080ff">; AB62 01 64 52 01 84 52 01 98 .dR..R..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; AB6A 52 01 FF R..</font> +<font color="#00ffff">LAB6D</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$62</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; AB6D 22 10 62 20 44 30 66 40 ".b D0f@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$86</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$68</font>,<font color="#ff6060">$80</font> <font color="#8080ff">; AB75 86 50 C6 60 48 70 68 80 .P.`Hph.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$88</font>,<font color="#ff6060">$90</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$B0</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$C0</font> <font color="#8080ff">; AB7D 88 90 4C A0 6C B0 8C C0 ..L.l...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$AC</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$D0</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; AB85 AC 00 CC D0 FF .....</font> +<font color="#00ffff">LAB8A</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$AB</font>,<font color="#ff6060">$B6</font>,<font color="#ff6060">$AB</font>,<font color="#ff6060">$C0</font>,<font color="#ff6060">$AB</font> <font color="#8080ff">; AB8A 00 00 A6 AB B6 AB C0 AB ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$D3</font>,<font color="#ff6060">$AB</font>,<font color="#ff6060">$DD</font>,<font color="#ff6060">$AB</font>,<font color="#ff6060">$F0</font>,<font color="#ff6060">$AB</font>,<font color="#ff6060">$FA</font>,<font color="#ff6060">$AB</font> <font color="#8080ff">; AB92 D3 AB DD AB F0 AB FA AB ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$AC</font>,<font color="#ff6060">$0E</font>,<font color="#ff6060">$AC</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$AC</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$AC</font> <font color="#8080ff">; AB9A 04 AC 0E AC 18 AC 22 AC ......".</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$2C</font>,<font color="#ff6060">$AC</font>,<font color="#ff6060">$36</font>,<font color="#ff6060">$AC</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; ABA2 2C AC 36 AC FE 49 9C FD ,.6..I..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; ABAA 04 00 04 05 02 FE 33 9C ......3.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; ABB2 20 22 03 FF FE 49 9C FD "...I..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3E</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$89</font> <font color="#8080ff">; ABBA 04 00 3E 05 02 FF FE 89 ..>.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$11</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; ABC2 9C FD 00 04 22 11 01 FE ...."...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$4A</font>,<font color="#ff6060">$03</font> <font color="#8080ff">; ABCA 49 9C FD 04 FF 2C 4A 03 I....,J.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$44</font> <font color="#8080ff">; ABD2 FF FE 49 9C FD 04 00 44 ..I....D</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$25</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; ABDA 25 03 FF FE 33 9C FD 04 %...3...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$89</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; ABE2 00 6C 05 04 FE 89 9C FD .l......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$11</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font> <font color="#8080ff">; ABEA 00 04 84 11 02 FF FE 49 .......I</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; ABF2 9C FD 04 00 6C 05 04 FF ....l...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$4B</font> <font color="#8080ff">; ABFA FE 49 9C FD 04 00 60 4B .I....`K</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AC02 03 FF FE 49 9C FD 04 00 ...I....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$4B</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; AC0A 40 4B 03 FF FE 49 9C FD @K...I..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$4B</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font> <font color="#8080ff">; AC12 04 00 20 4B 03 FF FE 33 .. K...3</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; AC1A 9C FD 04 00 28 52 01 FF ....(R..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$52</font> <font color="#8080ff">; AC22 FE 33 9C FD 04 00 48 52 .3....HR</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AC2A 01 FF FE 49 9C FD 04 00 ...I....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$54</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; AC32 54 55 09 FF FE 33 9C FD TU...3..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$5F</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; AC3A 04 00 04 08 02 FE 5F 9C ......_.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$8E</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AC42 FD 00 04 8E 01 09 FF 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AC4A 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AC52 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AC5A 00 00 00 00 00 00 ......</font> +<font color="#00ffff">LAC60</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; AC60 FE 33 9C FD 04 00 3C 05 .3....<.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0A</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; AC68 0A 04 0C 08 7C 0C 08 04 ....|...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$15</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$16</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; AC70 15 08 7C 15 08 38 16 01 ..|..8..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$64</font>,<font color="#ff6060">$16</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$2C</font> <font color="#8080ff">; AC78 64 16 01 2C 2C 04 64 2C d..,,.d,</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; AC80 04 2C 3C 04 64 3C 04 04 .,<.d<..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$55</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$0B</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; AC88 55 26 FD 04 FF 24 0B 06 U&...$..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$5F</font> <font color="#8080ff">; AC90 FD 04 01 64 06 06 FE 5F ...d..._</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$4C</font> <font color="#8080ff">; AC98 9C FD 00 04 0C 01 15 4C .......L</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$C9</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; ACA0 01 15 8C 01 15 FE C9 9C ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$39</font>,<font color="#ff6060">$19</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$65</font>,<font color="#ff6060">$19</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$DA</font> <font color="#8080ff">; ACA8 39 19 03 65 19 03 FE DA 9..e....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$1F</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$0F</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$0F</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; ACB0 9C 1F 12 0F 80 12 0F FE ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$B3</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; ACB8 B3 9C ..</font> +<font color="#00ffff">LACBA</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; ACBA 04 02 01 3C 02 01 60 02 ...<..`.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$78</font> <font color="#8080ff">; ACC2 01 98 02 01 24 22 01 78 ....$".x</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; ACCA 22 01 24 32 01 78 32 01 ".$2.x2.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$24</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$52</font> <font color="#8080ff">; ACD2 24 42 01 78 42 01 04 52 $B.xB..R</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font> <font color="#8080ff">; ACDA 01 3C 52 01 60 52 01 98 .<R.`R..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; ACE2 52 01 FF R..</font> +<font color="#00ffff">LACE5</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$62</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$C2</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; ACE5 22 10 62 20 82 30 C2 40 ".b .0.@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$46</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$A8</font>,<font color="#ff6060">$60</font> <font color="#8080ff">; ACED 46 50 A6 50 48 60 A8 60 FP.PH`.`</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$4A</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$AA</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; ACF5 4A 70 AA 70 2C 80 6C 00 Jp.p,.l.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$8C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$90</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; ACFD 8C 00 CC 90 FF .....</font> +<font color="#00ffff">LAD02</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$16</font>,<font color="#ff6060">$AD</font>,<font color="#ff6060">$16</font>,<font color="#ff6060">$AD</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$AD</font> <font color="#8080ff">; AD02 00 00 16 AD 16 AD 20 AD ...... .</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$AD</font>,<font color="#ff6060">$2A</font>,<font color="#ff6060">$AD</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$AD</font>,<font color="#ff6060">$3E</font>,<font color="#ff6060">$AD</font> <font color="#8080ff">; AD0A 20 AD 2A AD 34 AD 3E AD .*.4.>.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$48</font>,<font color="#ff6060">$AD</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$AD</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; AD12 48 AD 58 AD FE 49 9C FD H.X..I..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$0B</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font> <font color="#8080ff">; AD1A 04 FF 24 0B 06 FF FE 49 ..$....I</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; AD22 9C FD 04 01 64 06 06 FF ....d...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$89</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$21</font> <font color="#8080ff">; AD2A FE 89 9C FD 00 04 4C 21 ......L!</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$89</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; AD32 02 FF FE 89 9C FD 00 04 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$4C</font>,<font color="#ff6060">$29</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$89</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; AD3A 4C 29 02 FF FE 89 9C FD L)......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$31</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$C9</font> <font color="#8080ff">; AD42 00 04 4C 31 02 FF FE C9 ..L1....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$9A</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$0E</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; AD4A 9C FD 00 04 9A 18 0E FE ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$89</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$31</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$C9</font> <font color="#8080ff">; AD52 89 9C 0C 31 02 FF FE C9 ...1....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$0E</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; AD5A 9C FD 00 04 04 18 0E FE ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$89</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$31</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; AD62 89 9C 8C 31 02 FF ...1..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAD68</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0622 </font> <font color="#8080ff">; AD68 AD 22 06 .".</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LAD6E</font> <font color="#8080ff">; AD6B D0 01 ..</font> +<font color="#00ffff">LAD6D</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; AD6D 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAD6E</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; AD6E A2 FF ..</font> +<font color="#00ffff">LAD70</font>: <font color="#00ff00">inx</font> <font color="#8080ff">; AD70 E8 .</font> + <font color="#00ff00">cpx</font> <font color="#00ffff">work_level_bullet_chance</font> <font color="#8080ff">; AD71 EC 8B 07 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LAD6D</font> <font color="#8080ff">; AD74 F0 F7 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0756,x </font> <font color="#8080ff">; AD76 BD 56 07 .V.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; AD79 C9 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LAD8B</font> <font color="#8080ff">; AD7B F0 0E ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $076C,x </font> <font color="#8080ff">; AD7D 9D 6C 07 .l.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; AD80 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0764,x </font> <font color="#8080ff">; AD82 9D 64 07 .d.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0768,x </font> <font color="#8080ff">; AD85 9D 68 07 .h.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LAD70</font> <font color="#8080ff">; AD88 4C 70 AD Lp.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAD8B</font>: <font color="#00ff00">cmp</font> <font color="#ff40ff"> $076C,x </font> <font color="#8080ff">; AD8B DD 6C 07 .l.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LADA1</font> <font color="#8080ff">; AD8E F0 11 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $076C,x </font> <font color="#8080ff">; AD90 9D 6C 07 .l.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $075A,x </font> <font color="#8080ff">; AD93 BD 5A 07 .Z.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LAD9E</font> <font color="#8080ff">; AD96 F0 06 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0768,x </font> <font color="#8080ff">; AD98 FE 68 07 .h.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LADA1</font> <font color="#8080ff">; AD9B 4C A1 AD L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAD9E</font>: <font color="#00ff00">inc</font> <font color="#ff40ff"> $0764,x </font> <font color="#8080ff">; AD9E FE 64 07 .d.</font> +<font color="#00ffff">LADA1</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0764,x </font> <font color="#8080ff">; ADA1 BD 64 07 .d.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">code_adb5</font> <font color="#8080ff">; ADA4 F0 0F ..</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; ADA6 29 0F ).</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; ADA8 A8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">data_table_adc7</font>,<font color="#00ffff">y</font> <font color="#8080ff">; ADA9 B9 C7 AD ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $075A,x </font> <font color="#8080ff">; ADAC 9D 5A 07 .Z.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0764,x </font> <font color="#8080ff">; ADAF FE 64 07 .d.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LAD70</font> <font color="#8080ff">; ADB2 4C 70 AD Lp.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">code_adb5</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0768,x </font> <font color="#8080ff">; ADB5 BD 68 07 .h.</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; ADB8 29 0F ).</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; ADBA A8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">data_table_adc7</font>,<font color="#00ffff">y</font> <font color="#8080ff">; ADBB B9 C7 AD ...</font> +<font color="#00ffff">LADBF</font> := * + <font color="#ff6060">1</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $075E,x </font> <font color="#8080ff">; ADBE 9D 5E 07 .^.</font> +<font color="#00ffff">code_adc1</font>: + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0768,x </font> <font color="#8080ff">; ADC1 FE 68 07 .h.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LAD70</font> <font color="#8080ff">; ADC4 4C 70 AD Lp.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; dunno, referenced by routines at $AD9E and $ADB5</font> +<font color="#00ffff">data_table_adc7</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; ADC7 00 01 02 03 04 03 02 01 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$FC</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; ADCF 00 FF FE FD FC FD FE FF ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; ADD7 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; ADDF 00 .</font> +<font color="#00ffff">LADE0</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; ADE0 FE 33 9C FD 04 00 04 05 .3......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$94</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$30</font> <font color="#8080ff">; ADE8 02 44 05 06 94 05 02 30 .D.....0</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0A</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$68</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$21</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; ADF0 0A 02 68 0A 02 28 21 04 ..h..(!.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$68</font>,<font color="#ff6060">$21</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$25</font> <font color="#8080ff">; ADF8 68 21 04 04 25 06 84 25 h!..%..%</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$5C</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; AE00 06 04 45 10 5C 45 10 04 ..E.\E..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$55</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; AE08 55 06 2C 55 04 64 55 04 U.,U.dU.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$84</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$09</font> <font color="#8080ff">; AE10 84 55 06 FD 04 FF 84 09 .U......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$0C</font> <font color="#8080ff">; AE18 04 1C 24 03 FD 04 01 0C ..$.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$5F</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; AE20 06 04 78 22 03 FE 5F 9C ..x".._.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$21</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$21</font> <font color="#8080ff">; AE28 FD 00 04 0C 21 09 8C 21 ....!..!</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$09</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$68</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; AE30 09 30 41 05 68 41 05 FE .0A.hA..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C9</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$6B</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; AE38 C9 9C 34 0C 04 6B 0C 04 ..4..k..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$DA</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; AE40 FE DA 9C 44 02 10 5A 02 ...D..Z.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$B3</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; AE48 10 FE B3 9C ....</font> +<font color="#00ffff">LAE4C</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$22</font> <font color="#8080ff">; AE4C 04 02 01 98 02 01 04 22 ......."</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$84</font> <font color="#8080ff">; AE54 01 98 22 01 18 34 01 84 .."..4..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$34</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; AE5C 34 01 04 42 01 98 42 01 4..B..B.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$52</font> <font color="#8080ff">; AE64 04 52 01 38 52 01 64 52 .R.8R.dR</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; AE6C 01 98 52 01 FF ..R..</font> +<font color="#00ffff">LAE71</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$C2</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AE71 22 00 C2 00 26 00 C6 00 "...&...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$48</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$A8</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$2A</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CA</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AE79 48 00 A8 00 2A 00 CA 00 H...*...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$2C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AE81 2C 00 6C 00 8C 00 CC 00 ,.l.....</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; AE89 FF .</font> +<font color="#00ffff">LAE8A</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AE8A 03 00 00 01 7C 01 01 00 ....|...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$AF</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$86</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$0F</font> <font color="#8080ff">; AE92 04 0C AF 10 86 00 01 0F ........</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; AE9A FF .</font> +<font color="#00ffff">LAE9B</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$36</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$A9</font>,<font color="#ff6060">$C0</font>,<font color="#ff6060">$8D</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$07</font> <font color="#8080ff">; AE9B 20 36 80 A9 C0 8D 70 07 6....p.</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $60 </font> <font color="#8080ff">; AEA3 60 `</font> +<font color="#00ffff">LAEA4</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; AEA4 18 08 38 20 00 48 30 18 ..8 .H0.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$28</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$10</font> <font color="#8080ff">; AEAC 28 10 10 (..</font> +<font color="#00ffff">LAEAF</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$29</font>,<font color="#ff6060">$21</font>,<font color="#ff6060">$11</font>,<font color="#ff6060">$19</font>,<font color="#ff6060">$11</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; AEAF 40 29 21 11 19 11 09 01 @)!.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$49</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$39</font>,<font color="#ff6060">$19</font>,<font color="#ff6060">$31</font> <font color="#8080ff">; AEB7 49 41 39 19 31 IA9.1</font> +<font color="#00ffff">LAEBC</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$7E</font> <font color="#8080ff">; AEBC 03 03 03 03 03 C3 C3 7E .......~</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$7E</font> <font color="#8080ff">; AEC4 C3 C3 C3 C3 C3 C3 C3 7E .......~</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$E7</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$DB</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font> <font color="#8080ff">; AECC C3 C3 E7 FF DB C3 C3 C3 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$C0</font>,<font color="#ff6060">$C0</font>,<font color="#ff6060">$C0</font> <font color="#8080ff">; AED4 FE C3 C3 C3 FE C0 C0 C0 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font> <font color="#8080ff">; AEDC 18 3C 66 C3 FF C3 C3 C3 .<f.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$E3</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$DB</font>,<font color="#ff6060">$CF</font>,<font color="#ff6060">$C7</font>,<font color="#ff6060">$C3</font> <font color="#8080ff">; AEE4 C3 C3 E3 F3 DB CF C7 C3 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FF</font>,<font color="#ff6060">$C0</font>,<font color="#ff6060">$C0</font>,<font color="#ff6060">$C0</font>,<font color="#ff6060">$F8</font>,<font color="#ff6060">$C0</font>,<font color="#ff6060">$C0</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; AEEC FF C0 C0 C0 F8 C0 C0 FF ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C3</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; AEF4 C3 66 3C 18 18 18 18 18 .f<.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$C3</font>,<font color="#ff6060">$C3</font> <font color="#8080ff">; AEFC C3 C3 66 3C 3C 66 C3 C3 ..f<<f..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AF04 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $40 </font> <font color="#8080ff">; AF0C 40 @</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; AF0D A0 20 . </font> + <font color="#00ff00">rti</font> <font color="#8080ff">; AF0F 40 @</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; AF10 E0 00 ..</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; AF12 38 8</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L0830</font> <font color="#8080ff">; AF13 20 30 08 0.</font> + <font color="#00ff00">bmi</font> <font color="#00ffff">LAF1C</font> <font color="#8080ff">; AF16 30 04 0.</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; AF18 0A .</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; AF19 0A .</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; AF1A 0A .</font> +<font color="#8080ff">; NMOS 6502 illegal opcode, NOP zp</font> +<font color="#00ffff">illegal_nop</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $04 </font> <font color="#8080ff">; AF1B 04 .</font> +<font color="#00ffff">LAF1C</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $062A </font> <font color="#8080ff">; AF1C AD 2A 06 .*.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">PCOLR2</font> <font color="#8080ff">; AF1F 8D C2 02 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; AF22 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAF23</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $B2 </font> <font color="#8080ff">; AF23 A5 B2 ..</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; AF25 4A J</font> + <font color="#00ff00">tax</font> <font color="#8080ff">; AF26 AA .</font> + <font color="#00ff00">ldy</font> <font color="#00ffff">LAEA4</font>,<font color="#00ffff">x</font> <font color="#8080ff">; AF27 BC A4 AE ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; AF2A C8 .</font> + <font color="#00ff00">ldx</font> <font color="#ff40ff"> $0771 </font> <font color="#8080ff">; AF2B AE 71 07 .q.</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; AF2E 98 .</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0773,x </font> <font color="#8080ff">; AF2F 9D 73 07 .s.</font> + <font color="#00ff00">dey</font> <font color="#8080ff">; AF32 88 .</font> + <font color="#00ff00">ldx</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; AF33 AE 70 07 .p.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; AF36 A9 08 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0772 </font> <font color="#8080ff">; AF38 8D 72 07 .r.</font> +<font color="#00ffff">LAF3B</font>: <font color="#00ff00">lda</font> <font color="#00ffff">LAEBC</font>,<font color="#00ffff">y</font> <font color="#8080ff">; AF3B B9 BC AE ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $2E00,x </font> <font color="#8080ff">; AF3E 9D 00 2E ...</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; AF41 E8 .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; AF42 C8 .</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $0772 </font> <font color="#8080ff">; AF43 CE 72 07 .r.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LAF3B</font> <font color="#8080ff">; AF46 D0 F3 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0771 </font> <font color="#8080ff">; AF48 EE 71 07 .q.</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; AF4B 38 8</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; AF4C AD 70 07 .p.</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$0A</font> <font color="#8080ff">; AF4F E9 0A ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; AF51 8D 70 07 .p.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $066C </font> <font color="#8080ff">; AF54 EE 6C 06 .l.</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; AF57 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAF58</font>: <font color="#00ff00">lda</font> <font color="#00ffff">work_level_num_bombs</font> <font color="#8080ff">; AF58 AD 8A 07 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LAF5E</font> <font color="#8080ff">; AF5B F0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; AF5D 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAF5E</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; AF5E A9 09 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; AF60 8D 24 06 .$.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; AF63 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">playing_level</font> <font color="#8080ff">; AF65 8D 27 06 .'.</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$0C</font> <font color="#8080ff">; AF68 A2 0C ..</font> + <font color="#00ff00">stx</font> <font color="#ff40ff"> $066D </font> <font color="#8080ff">; AF6A 8E 6D 06 .m.</font> +<font color="#00ffff">LAF6D</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; AF6D AD 70 07 .p.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; AF70 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$0A</font> <font color="#8080ff">; AF71 69 0A i.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; AF73 8D 70 07 .p.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0772,x </font> <font color="#8080ff">; AF76 BD 72 07 .r.</font> + <font color="#00ff00">cmp</font> <font color="#00ffff">LAEAF</font>,<font color="#00ffff">x</font> <font color="#8080ff">; AF79 DD AF AE ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LAF96</font> <font color="#8080ff">; AF7C F0 18 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; AF7E A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0681 </font> <font color="#8080ff">; AF80 8D 81 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LAF92</font> <font color="#8080ff">; AF83 4C 92 AF L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAF86</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; AF86 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; AF88 8D 1A 06 ...</font> +<font color="#00ffff">LAF8B</font>: <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; AF8B AD 1A 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; AF8E C9 20 . </font> + <font color="#00ff00">bne</font> <font color="#00ffff">LAF8B</font> <font color="#8080ff">; AF90 D0 F9 ..</font> +<font color="#00ffff">LAF92</font>: <font color="#00ff00">dex</font> <font color="#8080ff">; AF92 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LAF6D</font> <font color="#8080ff">; AF93 D0 D8 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; AF95 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LAF96</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; AF96 AD 70 07 .p.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0686 </font> <font color="#8080ff">; AF99 8D 86 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$86</font> <font color="#8080ff">; AF9C A9 86 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0681 </font> <font color="#8080ff">; AF9E 8D 81 06 ...</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; AFA1 18 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">score</font> <font color="#8080ff">; AFA2 AD 00 07 ...</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$FA</font> <font color="#8080ff">; AFA5 69 FA i.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">score</font> <font color="#8080ff">; AFA7 8D 00 07 ...</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LAFB4</font> <font color="#8080ff">; AFAA 90 08 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">score</font>+<font color="#ff6060">1</font> <font color="#8080ff">; AFAC EE 01 07 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LAFB4</font> <font color="#8080ff">; AFAF D0 03 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">score</font>+<font color="#ff6060">2</font> <font color="#8080ff">; AFB1 EE 02 07 ...</font> +<font color="#00ffff">LAFB4</font>: <font color="#00ff00">txa</font> <font color="#8080ff">; AFB4 8A .</font> + <font color="#00ff00">pha</font> <font color="#8080ff">; AFB5 48 H</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L800C</font> <font color="#8080ff">; AFB6 20 0C 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$CB</font> <font color="#8080ff">; AFB9 A9 CB ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; AFBB 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$AF</font> <font color="#8080ff">; AFBE A9 AF ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; AFC0 8D 3D 06 .=.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; AFC3 20 06 80 ..</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; AFC6 68 h</font> + <font color="#00ff00">tax</font> <font color="#8080ff">; AFC7 AA .</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LAF86</font> <font color="#8080ff">; AFC8 4C 86 AF L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; referenced by routine at $AF96</font> +<font color="#00ffff">sfx_afcb</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AFCB 01 A5 00 18 04 F3 04 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AFD3 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AFDB 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AFE3 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AFEB 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AFF3 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; AFFB 00 00 00 00 00 .....</font> +<font color="#8080ff">; referenced by routine at $B0C4</font> +<font color="#00ffff">map_b000</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$07</font> <font color="#8080ff">; B000 FE 33 9C FD 04 00 04 07 .3......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$8C</font> <font color="#8080ff">; B008 06 24 07 02 6C 05 04 8C .$..l...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; B010 05 04 28 18 04 48 15 06 ..(..H..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7C</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$68</font>,<font color="#ff6060">$25</font> <font color="#8080ff">; B018 7C 15 04 20 25 07 68 25 |.. %.h%</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$3B</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$3B</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$34</font> <font color="#8080ff">; B020 04 04 3B 05 28 3B 01 34 ..;.(;.4</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3B</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$5C</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$4B</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; B028 3B 04 5C 45 08 8C 4B 02 ;.\E..K.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$4D</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$55</font> <font color="#8080ff">; B030 04 55 06 38 4D 04 04 55 .U.8M..U</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$58</font> <font color="#8080ff">; B038 06 54 55 12 FD 04 FF 58 .TU....X</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0A</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; B040 0A 05 1C 54 07 FD 04 01 ...T....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$2C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$5F</font> <font color="#8080ff">; B048 2C 08 06 3C 26 04 FE 5F ,..<&.._</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$0E</font>,<font color="#ff6060">$3C</font> <font color="#8080ff">; B050 9C FD 00 04 0C 03 0E 3C .......<</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$37</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$C9</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; B058 37 05 8C 35 05 FE C9 9C 7..5....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$1A</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$5E</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$9A</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; B060 1A 0A 06 5E 18 09 9A 08 ...^....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0B</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$DA</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$83</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$13</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; B068 0B FE DA 9C 83 04 13 FE ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; B070 49 9C I.</font> +<font color="#00ffff">LB072</font>: .<font color="#ffff00">byte</font> <font color="#ff40ff"> $04 </font> <font color="#8080ff">; B072 04 .</font> +<font color="#00ffff">LB073</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; B073 02 01 24 02 01 44 02 01 ..$..D..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$78</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$12</font> <font color="#8080ff">; B07B 78 02 01 98 02 01 3C 12 x.....<.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$5C</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$24</font> <font color="#8080ff">; B083 01 5C 12 01 7C 12 01 24 .\..|..$</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; B08B 22 01 78 22 01 04 38 01 ".x"..8.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$1C</font>,<font color="#ff6060">$46</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$52</font> <font color="#8080ff">; B093 1C 46 01 78 42 01 04 52 .F.xB..R</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; B09B 01 58 52 01 98 52 01 .XR..R.</font> +<font color="#00ffff">LB0A2</font>: .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; B0A2 FF .</font> +<font color="#00ffff">LB0A3</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$62</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B0A3 22 00 42 00 62 00 A2 00 ".B.b...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C2</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B0AB C2 00 64 00 84 00 A4 00 ..d.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$46</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$4A</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B0B3 46 00 A6 00 28 00 4A 00 F...(.J.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$AA</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B0BB AA 00 2C 00 8C 00 CC 00 ..,.....</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; B0C3 FF .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB0C4</font>: <font color="#00ff00">jsr</font> <font color="#00ffff">L8036</font> <font color="#8080ff">; B0C4 20 36 80 6.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$10</font> <font color="#8080ff">; B0C7 A9 10 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">SAVMSC</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B0C9 85 59 .Y</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">clear_screen_mem_jv</font> <font color="#8080ff">; B0CB 20 1E 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B0CE A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; B0D0 85 C0 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$B0</font> <font color="#8080ff">; B0D2 A9 B0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B0D4 85 C1 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">draw_map_jv</font> <font color="#8080ff">; B0D6 20 00 80 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; B0D9 A2 07 ..</font> +<font color="#00ffff">LB0DB</font>: <font color="#00ff00">lda</font> <font color="#00ffff">LB119</font>,<font color="#00ffff">x</font> <font color="#8080ff">; B0DB BD 19 B1 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $08FF,x </font> <font color="#8080ff">; B0DE 9D FF 08 ...</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; B0E1 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB0DB</font> <font color="#8080ff">; B0E2 D0 F7 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; B0E4 A9 08 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; B0E6 85 AA ..</font> +<font color="#00ffff">LB0E8</font>: <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; B0E8 AD 0A D2 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; B0EB 29 0F ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AB </font> <font color="#8080ff">; B0ED 85 AB ..</font> + <font color="#00ff00">tax</font> <font color="#8080ff">; B0EF AA .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0770,x </font> <font color="#8080ff">; B0F0 BD 70 07 .p.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB0E8</font> <font color="#8080ff">; B0F3 D0 F3 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0770,x </font> <font color="#8080ff">; B0F5 FE 70 07 .p.</font> + <font color="#00ff00">txa</font> <font color="#8080ff">; B0F8 8A .</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; B0F9 0A .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B0FA 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $AB </font> <font color="#8080ff">; B0FB 65 AB e.</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; B0FD A8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">LB072</font>,<font color="#00ffff">y</font> <font color="#8080ff">; B0FE B9 72 B0 .r.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0903 </font> <font color="#8080ff">; B101 8D 03 09 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">LB073</font>,<font color="#00ffff">y</font> <font color="#8080ff">; B104 B9 73 B0 .s.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0904 </font> <font color="#8080ff">; B107 8D 04 09 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B10A A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; B10C 85 C0 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; B10E A9 09 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B110 85 C1 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">draw_map_jv</font> <font color="#8080ff">; B112 20 00 80 ..</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; B115 C6 AA ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB0E8</font> <font color="#8080ff">; B117 D0 CF ..</font> +<font color="#00ffff">LB119</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; B119 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; dunno what this is for yet</font> +<font color="#00ffff">map_b11a</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$B3</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; B11A FE B3 9C 00 00 01 FF .......</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB121</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$10</font> <font color="#8080ff">; B121 A9 10 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">SAVMSC</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B123 85 59 .Y</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$D9</font> <font color="#8080ff">; B125 A9 D9 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; B127 85 C0 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; B129 A9 06 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B12B 85 C1 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">draw_map_jv</font> <font color="#8080ff">; B12D 20 00 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; B130 A9 30 .0</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">SAVMSC</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B132 85 59 .Y</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$D9</font> <font color="#8080ff">; B134 A9 D9 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; B136 85 C0 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">draw_map_jv</font> <font color="#8080ff">; B138 20 00 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$D9</font> <font color="#8080ff">; B13B A9 D9 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; B13D 85 C0 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B13F 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB140</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0621 </font> <font color="#8080ff">; B140 AD 21 06 .!.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB146</font> <font color="#8080ff">; B143 D0 01 ..</font> +<font color="#00ffff">LB145</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; B145 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB146</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; B146 AD 7E 06 .~.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$34</font> <font color="#8080ff">; B149 C9 34 .4</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LB145</font> <font color="#8080ff">; B14B 90 F8 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$C9</font> <font color="#8080ff">; B14D C9 C9 ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">LB145</font> <font color="#8080ff">; B14F B0 F4 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$0B</font> <font color="#8080ff">; B151 A9 0B ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $97 </font> <font color="#8080ff">; B153 85 97 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; B155 AD 7E 06 .~.</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; B158 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$33</font> <font color="#8080ff">; B159 E9 33 .3</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; B15B 4A J</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; B15C 4A J</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $91 </font> <font color="#8080ff">; B15D 85 91 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; B15F AD 83 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$C3</font> <font color="#8080ff">; B162 C9 C3 ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">LB145</font> <font color="#8080ff">; B164 B0 DF ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">LB1D2</font> <font color="#8080ff">; B166 20 D2 B1 ..</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; B169 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$26</font> <font color="#8080ff">; B16A E9 26 .&</font> + <font color="#00ff00">lsr</font> <font color="#00ffff">a</font> <font color="#8080ff">; B16C 4A J</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $92 </font> <font color="#8080ff">; B16D 85 92 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$28</font> <font color="#8080ff">; B16F A9 28 .(</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $90 </font> <font color="#8080ff">; B171 85 90 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B173 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $93 </font> <font color="#8080ff">; B175 85 93 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; B177 A2 08 ..</font> +<font color="#00ffff">LB179</font>: <font color="#00ff00">lsr</font> <font color="#ff40ff"> $90 </font> <font color="#8080ff">; B179 46 90 F.</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LB180</font> <font color="#8080ff">; B17B 90 03 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B17D 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $92 </font> <font color="#8080ff">; B17E 65 92 e.</font> +<font color="#00ffff">LB180</font>: <font color="#00ff00">ror</font> <font color="#00ffff">a</font> <font color="#8080ff">; B180 6A j</font> + <font color="#00ff00">ror</font> <font color="#ff40ff"> $93 </font> <font color="#8080ff">; B181 66 93 f.</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; B183 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB179</font> <font color="#8080ff">; B184 D0 F3 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $94 </font> <font color="#8080ff">; B186 85 94 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B188 18 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $93 </font> <font color="#8080ff">; B189 A5 93 ..</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $91 </font> <font color="#8080ff">; B18B 65 91 e.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $93 </font> <font color="#8080ff">; B18D 85 93 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $95 </font> <font color="#8080ff">; B18F 85 95 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $94 </font> <font color="#8080ff">; B191 A5 94 ..</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$10</font> <font color="#8080ff">; B193 69 10 i.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $94 </font> <font color="#8080ff">; B195 85 94 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B197 18 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $94 </font> <font color="#8080ff">; B198 A5 94 ..</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; B19A 69 20 i </font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $96 </font> <font color="#8080ff">; B19C 85 96 ..</font> +<font color="#00ffff">LB19E</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; B19E A2 04 ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B1A0 A0 00 ..</font> +<font color="#00ffff">LB1A2</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> ($93),y </font> <font color="#8080ff">; B1A2 B1 93 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> ($95),y </font> <font color="#8080ff">; B1A4 91 95 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; B1A6 C8 .</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; B1A7 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB1A2</font> <font color="#8080ff">; B1A8 D0 F8 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B1AA 18 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $93 </font> <font color="#8080ff">; B1AB A5 93 ..</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$28</font> <font color="#8080ff">; B1AD 69 28 i(</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $93 </font> <font color="#8080ff">; B1AF 85 93 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LB1B5</font> <font color="#8080ff">; B1B1 90 02 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $94 </font> <font color="#8080ff">; B1B3 E6 94 ..</font> +<font color="#00ffff">LB1B5</font>: <font color="#00ff00">clc</font> <font color="#8080ff">; B1B5 18 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $95 </font> <font color="#8080ff">; B1B6 A5 95 ..</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$28</font> <font color="#8080ff">; B1B8 69 28 i(</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $95 </font> <font color="#8080ff">; B1BA 85 95 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LB1C0</font> <font color="#8080ff">; B1BC 90 02 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $96 </font> <font color="#8080ff">; B1BE E6 96 ..</font> +<font color="#00ffff">LB1C0</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $93 </font> <font color="#8080ff">; B1C0 A5 93 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$C0</font> <font color="#8080ff">; B1C2 C9 C0 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB1CD</font> <font color="#8080ff">; B1C4 D0 07 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $94 </font> <font color="#8080ff">; B1C6 A5 94 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$1D</font> <font color="#8080ff">; B1C8 C9 1D ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB1CD</font> <font color="#8080ff">; B1CA D0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B1CC 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB1CD</font>: <font color="#00ff00">dec</font> <font color="#ff40ff"> $97 </font> <font color="#8080ff">; B1CD C6 97 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB19E</font> <font color="#8080ff">; B1CF D0 CD ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B1D1 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB1D2</font>: <font color="#00ff00">cmp</font> <font color="#ff6060">#$26</font> <font color="#8080ff">; B1D2 C9 26 .&</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">LB1DE</font> <font color="#8080ff">; B1D4 B0 08 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B1D6 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; B1D7 69 02 i.</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $97 </font> <font color="#8080ff">; B1D9 C6 97 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LB1D2</font> <font color="#8080ff">; B1DB 4C D2 B1 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB1DE</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; B1DE 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; dunno what this is for yet</font> +<font color="#00ffff">data_table_b1df</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; B1DF 00 .</font> +<font color="#00ffff">LB1E0</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; B1E0 FE 33 9C FD 04 00 04 05 .3......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$24</font> <font color="#8080ff">; B1E8 06 38 05 08 7C 05 06 24 .8..|..$</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$15</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$0E</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$2D</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; B1F0 15 06 64 15 0E 04 2D 06 ..d...-.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$38</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$45</font> <font color="#8080ff">; B1F8 38 35 0C 04 45 06 30 45 85..E.0E</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$88</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$38</font> <font color="#8080ff">; B200 08 88 3C 05 04 55 08 38 ..<..U.8</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$55</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$68</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$0D</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; B208 55 06 68 55 0D FD 04 01 U.hU....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$1C</font>,<font color="#ff6060">$2E</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$45</font> <font color="#8080ff">; B210 1C 2E 07 FD 04 FF 64 45 ......dE</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$09</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$5F</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font> <font color="#8080ff">; B218 09 FE 5F 9C FD 00 04 0C .._.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$0B</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; B220 01 0B 0C 41 05 40 01 05 ...A.@..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$31</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$DA</font> <font color="#8080ff">; B228 40 31 05 8C 01 15 FE DA @1......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$B3</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; B230 9C 66 30 04 FE B3 9C .f0....</font> +<font color="#00ffff">LB237</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; B237 04 02 01 38 02 01 7C 02 ...8..|.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font> <font color="#8080ff">; B23F 01 38 12 01 64 12 01 98 .8..d...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$39</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; B247 12 01 04 22 01 98 39 01 ..."..9.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$58</font>,<font color="#ff6060">$47</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$52</font> <font color="#8080ff">; B24F 58 47 01 04 52 01 38 52 XG..R.8R</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; B257 01 98 52 01 FF ..R..</font> +<font color="#00ffff">LB25C</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$62</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$64</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B25C 22 00 62 00 A2 00 64 00 ".b...d.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$84</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$C4</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$C8</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B264 84 00 C4 00 26 00 C8 00 ....&...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$8A</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B26C 8A 00 2C 00 6C 00 CC 00 ..,.l...</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; B274 FF .</font> +<font color="#00ffff">LB275</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$A8</font>,<font color="#ff6060">$B2</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$56</font> <font color="#8080ff">; B275 03 A8 B2 0A A4 20 01 56 ..... .V</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; B27D FF .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB27E</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $06F5 </font> <font color="#8080ff">; B27E AD F5 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $066C </font> <font color="#8080ff">; B281 8D 6C 06 .l.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB287</font> <font color="#8080ff">; B284 D0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B286 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB287</font>: <font color="#00ff00">inc</font> <font color="#ff40ff"> $0760 </font> <font color="#8080ff">; B287 EE 60 07 .`.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0760 </font> <font color="#8080ff">; B28A AD 60 07 .`.</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$7F</font> <font color="#8080ff">; B28D 29 7F ).</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LB292</font> <font color="#8080ff">; B28F F0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B291 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB292</font>: <font color="#00ff00">inc</font> <font color="#ff40ff"> $0761 </font> <font color="#8080ff">; B292 EE 61 07 .a.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0761 </font> <font color="#8080ff">; B295 AD 61 07 .a.</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; B298 29 07 ).</font> + <font color="#00ff00">tax</font> <font color="#8080ff">; B29A AA .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">LB2D0</font>,<font color="#00ffff">x</font> <font color="#8080ff">; B29B BD D0 B2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0680 </font> <font color="#8080ff">; B29E 8D 80 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">LB2D8</font>,<font color="#00ffff">x</font> <font color="#8080ff">; B2A1 BD D8 B2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0685 </font> <font color="#8080ff">; B2A4 8D 85 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B2A7 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; dunno what this is for yet</font> +<font color="#00ffff">data_table_b2a8</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B2A8 00 00 00 18 18 18 18 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$24</font> <font color="#8080ff">; B2B0 00 00 00 00 3C 24 24 24 ....<$$$</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$24</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$42</font> <font color="#8080ff">; B2B8 24 3C 00 00 00 7E 42 42 $<...~BB</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$42</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$7E</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$81</font> <font color="#8080ff">; B2C0 42 42 42 42 7E 00 FF 81 BBBB~...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$81</font>,<font color="#ff6060">$81</font>,<font color="#ff6060">$81</font>,<font color="#ff6060">$81</font>,<font color="#ff6060">$81</font>,<font color="#ff6060">$81</font>,<font color="#ff6060">$81</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; B2C8 81 81 81 81 81 81 81 FF ........</font> +<font color="#00ffff">LB2D0</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$A4</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$86</font>,<font color="#ff6060">$86</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$82</font> <font color="#8080ff">; B2D0 A4 4C 52 70 86 86 A4 82 .LRp....</font> +<font color="#00ffff">LB2D8</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$C0</font>,<font color="#ff6060">$B4</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$68</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; B2D8 20 20 98 C0 B4 80 68 40 ....h@</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB2E0</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0619 </font> <font color="#8080ff">; B2E0 AD 19 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; B2E3 29 0F ).</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB2F2</font> <font color="#8080ff">; B2E5 D0 0B ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $068A </font> <font color="#8080ff">; B2E7 AD 8A 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; B2EA 29 03 ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $068A </font> <font color="#8080ff">; B2EC 8D 8A 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $068A </font> <font color="#8080ff">; B2EF EE 8A 06 ...</font> +<font color="#00ffff">LB2F2</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $062A </font> <font color="#8080ff">; B2F2 AD 2A 06 .*.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">PCOLR2</font> <font color="#8080ff">; B2F5 8D C2 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B2F8 A9 00 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8F79</font> <font color="#8080ff">; B2FA 4C 79 8F Ly.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB2FD</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0680 </font> <font color="#8080ff">; B2FD AD 80 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; B300 8D 7E 06 .~.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0685 </font> <font color="#8080ff">; B303 AD 85 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; B306 8D 83 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$19</font> <font color="#8080ff">; B309 A9 19 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; B30B 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$B3</font> <font color="#8080ff">; B30E A9 B3 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B310 8D 3D 06 .=.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; B313 A9 07 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; B315 20 06 80 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B318 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; referenced by routine at $B2FD</font> +<font color="#00ffff">sxf_b319</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$86</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B319 01 86 00 0A 20 00 00 .... ..</font> +<font color="#00ffff">LB320</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; B320 FE 33 9C FD 04 00 04 05 .3......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$1C</font> <font color="#8080ff">; B328 08 2C 07 15 84 05 06 1C .,......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$15</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$15</font>,<font color="#ff6060">$0D</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$07</font> <font color="#8080ff">; B330 15 03 48 15 0D 04 25 07 ..H...%.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$30</font>,<font color="#ff6060">$2F</font>,<font color="#ff6060">$0D</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$74</font>,<font color="#ff6060">$35</font> <font color="#8080ff">; B338 30 2F 0D 04 35 06 74 35 0/..5.t5</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0A</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$28</font> <font color="#8080ff">; B340 0A 04 45 06 04 55 06 28 ..E..U.(</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$55</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; B348 55 06 4C 55 06 84 50 06 U.LU..P.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$55</font> <font color="#8080ff">; B350 FD 04 FF 1C 34 05 70 55 ....4.pU</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$24</font> <font color="#8080ff">; B358 05 80 06 02 FD 04 01 24 .......$</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$5F</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; B360 06 02 FE 5F 9C FD 00 04 ..._....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$03</font> <font color="#8080ff">; B368 0C 01 09 0C 41 05 30 03 ....A.0.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0B</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$2B</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$0D</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; B370 0B 54 2B 0A 8C 01 0D FE .T+.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C9</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; B378 C9 9C 04 38 02 1A 38 02 ...8..8.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$33</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$74</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$DA</font> <font color="#8080ff">; B380 33 32 07 74 38 05 FE DA 32.t8...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$6A</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$0F</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$B3</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; B388 9C 6A 12 0F FE B3 9C .j.....</font> +<font color="#00ffff">LB38F</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$3A</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; B38F 04 02 01 3A 02 01 5A 02 ...:..Z.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$7A</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; B397 01 7A 02 01 98 02 01 20 .z..... </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; B39F 12 01 5A 12 01 04 22 01 ..Z...".</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3A</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$32</font> <font color="#8080ff">; B3A7 3A 22 01 04 32 01 78 32 :"..2.x2</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$38</font> <font color="#8080ff">; B3AF 01 98 32 01 04 52 01 38 ..2..R.8</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; B3B7 52 01 60 52 01 FF R.`R..</font> +<font color="#00ffff">LB3BD</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$62</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; B3BD 22 10 62 20 82 30 A2 40 ".b .0.@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$C2</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$80</font> <font color="#8080ff">; B3C5 C2 50 44 60 84 70 26 80 .PD`.p&.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$66</font>,<font color="#ff6060">$90</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$A8</font>,<font color="#ff6060">$B0</font>,<font color="#ff6060">$C8</font>,<font color="#ff6060">$C0</font> <font color="#8080ff">; B3CD 66 90 28 A0 A8 B0 C8 C0 f.(.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$2C</font>,<font color="#ff6060">$D0</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$E0</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$F0</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; B3D5 2C D0 6C E0 8C F0 FF ,.l....</font> +<font color="#00ffff">LB3DC</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$FC</font>,<font color="#ff6060">$B3</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$B4</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$B4</font> <font color="#8080ff">; B3DC 00 00 FC B3 06 B4 10 B4 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$B4</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$B4</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$B4</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$B4</font> <font color="#8080ff">; B3E4 06 B4 10 B4 1A B4 24 B4 ......$.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$2E</font>,<font color="#ff6060">$B4</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$B4</font>,<font color="#ff6060">$2E</font>,<font color="#ff6060">$B4</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$B4</font> <font color="#8080ff">; B3EC 2E B4 38 B4 2E B4 38 B4 ..8...8.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FC</font>,<font color="#ff6060">$B3</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$B4</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$B4</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$B4</font> <font color="#8080ff">; B3F4 FC B3 24 B4 1A B4 42 B4 ..$...B.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$15</font> <font color="#8080ff">; B3FC FE 49 9C FD 04 00 48 15 .I....H.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B404 03 FF FE 49 9C FD 04 00 ...I....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$46</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; B40C 46 07 03 FF FE 49 9C FD F....I..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$6A</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font> <font color="#8080ff">; B414 04 00 6A 07 03 FF FE 49 ..j....I</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; B41C 9C FD 04 00 0A 35 03 FF .....5..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3E</font>,<font color="#ff6060">$2F</font> <font color="#8080ff">; B424 FE 49 9C FD 04 00 3E 2F .I....>/</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B42C 04 FF FE 49 9C FD 04 00 ...I....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7C</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$89</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; B434 7C 35 04 FF FE 89 9C FD |5......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$3F</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$89</font> <font color="#8080ff">; B43C 00 04 54 3F 04 FF FE 89 ..T?....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$1D</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; B444 9C FD 00 04 8C 1D 04 FF ........</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB44C</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; B44C A9 01 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; B44E 8D 70 07 .p.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B451 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0771 </font> <font color="#8080ff">; B453 8D 71 07 .q.</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B456 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB457</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; B457 AD 23 06 .#.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; B45A C9 02 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB46A</font> <font color="#8080ff">; B45C D0 0C ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B45E A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; B460 8D 70 07 .p.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0771 </font> <font color="#8080ff">; B463 8D 71 07 .q.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0681 </font> <font color="#8080ff">; B466 8D 81 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B469 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB46A</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0622 </font> <font color="#8080ff">; B46A AD 22 06 .".</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB470</font> <font color="#8080ff">; B46D D0 01 ..</font> +<font color="#00ffff">LB46F</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; B46F 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB470</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; B470 AD 70 07 .p.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LB46F</font> <font color="#8080ff">; B473 F0 FA ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; B475 C9 09 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LB49F</font> <font color="#8080ff">; B477 F0 26 .&</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $066C </font> <font color="#8080ff">; B479 8D 6C 06 .l.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $068A </font> <font color="#8080ff">; B47C 8D 8A 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; B47F EE 70 07 .p.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $06DC </font> <font color="#8080ff">; B482 AD DC 06 ...</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B485 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; B486 69 30 i0</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0680 </font> <font color="#8080ff">; B488 8D 80 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $06DD </font> <font color="#8080ff">; B48B AD DD 06 ...</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; B48E 0A .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B48F 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; B490 69 20 i </font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0685 </font> <font color="#8080ff">; B492 8D 85 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0770 </font> <font color="#8080ff">; B495 AD 70 07 .p.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; B498 C9 09 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LB46F</font> <font color="#8080ff">; B49A 90 D3 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0771 </font> <font color="#8080ff">; B49C EE 71 07 .q.</font> +<font color="#00ffff">LB49F</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0771 </font> <font color="#8080ff">; B49F AD 71 07 .q.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LB46F</font> <font color="#8080ff">; B4A2 F0 CB ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; B4A4 C9 05 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LB4C1</font> <font color="#8080ff">; B4A6 F0 19 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B4A8 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; B4A9 69 04 i.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $068B </font> <font color="#8080ff">; B4AB 8D 8B 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0771 </font> <font color="#8080ff">; B4AE EE 71 07 .q.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0680 </font> <font color="#8080ff">; B4B1 AD 80 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0681 </font> <font color="#8080ff">; B4B4 8D 81 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0685 </font> <font color="#8080ff">; B4B7 AD 85 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0686 </font> <font color="#8080ff">; B4BA 8D 86 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $066D </font> <font color="#8080ff">; B4BD 8D 6D 06 .m.</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B4C0 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB4C1</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $068B </font> <font color="#8080ff">; B4C1 AD 8B 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; B4C4 29 03 ).</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B4C6 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; B4C7 69 04 i.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $068B </font> <font color="#8080ff">; B4C9 8D 8B 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $068B </font> <font color="#8080ff">; B4CC EE 8B 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$07</font> <font color="#8080ff">; B4CF C9 07 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB4E2</font> <font color="#8080ff">; B4D1 D0 0F ..</font> +<font color="#00ffff">cue_woop_sound</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$64</font> <font color="#8080ff">; B4D3 A9 64 .d</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_tempo</font> <font color="#8080ff">; B4D5 8D 3E 06 .>.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$B5</font> <font color="#8080ff">; B4D8 A9 B5 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_slot_timer</font> <font color="#8080ff">; B4DA 8D 3F 06 .?.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; B4DD A9 03 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L8003</font> <font color="#8080ff">; B4DF 20 03 80 ..</font> +<font color="#00ffff">LB4E2</font>: <font color="#00ff00">ldy</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; B4E2 A0 01 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0681 </font> <font color="#8080ff">; B4E4 AD 81 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; B4E7 CD 7E 06 .~.</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LB4EE</font> <font color="#8080ff">; B4EA 90 02 ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; B4EC A0 FF ..</font> +<font color="#00ffff">LB4EE</font>: <font color="#00ff00">sty</font> <font color="#ff40ff"> $A0 </font> <font color="#8080ff">; B4EE 84 A0 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B4F0 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $A0 </font> <font color="#8080ff">; B4F1 65 A0 e.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0681 </font> <font color="#8080ff">; B4F3 8D 81 06 ...</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; B4F6 A0 01 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0686 </font> <font color="#8080ff">; B4F8 AD 86 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; B4FB CD 83 06 ...</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LB502</font> <font color="#8080ff">; B4FE 90 02 ..</font> + <font color="#00ff00">ldy</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; B500 A0 FF ..</font> +<font color="#00ffff">LB502</font>: <font color="#00ff00">sty</font> <font color="#ff40ff"> $A0 </font> <font color="#8080ff">; B502 84 A0 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B504 18 .</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $A0 </font> <font color="#8080ff">; B505 65 A0 e.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0686 </font> <font color="#8080ff">; B507 8D 86 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B50A 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; dunno what this is for yet</font> +<font color="#00ffff">data_table_b50b</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$B5</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$56</font> <font color="#8080ff">; B50B 03 1C B5 08 00 00 01 56 .......V</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$B5</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$1A</font> <font color="#8080ff">; B513 04 1C B5 08 00 00 05 1A ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FF</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; B51B FF 00 00 18 18 24 24 18 .....$$.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; B523 18 00 00 42 42 42 24 18 ...BBB$.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; B52B 18 00 00 00 00 66 A5 18 .....f..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$18</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font> <font color="#8080ff">; B533 18 00 00 00 00 00 00 3C .......<</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$DB</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B53B DB 00 00 24 18 18 24 00 ...$..$.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$10</font> <font color="#8080ff">; B543 00 00 08 24 58 1A 24 10 ...$X.$.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$81</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$42</font> <font color="#8080ff">; B54B 00 81 42 24 18 18 24 42 ..B$..$B</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$81</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$42</font> <font color="#8080ff">; B553 81 04 42 A4 18 18 25 42 ..B...%B</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$18</font> <font color="#8080ff">; B55B 20 00 00 18 18 24 24 18 ....$$.</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $18 </font> <font color="#8080ff">; B563 18 .</font> +<font color="#00ffff">sfx_woop</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$F0</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B564 01 A2 00 F0 01 01 A4 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$DC</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$C8</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; B56C DC 01 01 A6 00 C8 02 01 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$A4</font>,<font color="#ff6060">$DC</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$F0</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B574 A4 DC 01 01 A2 F0 01 00 ........</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB57C</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B57C A9 00 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8F76</font> <font color="#8080ff">; B57E 4C 76 8F Lv.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB581</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $062A </font> <font color="#8080ff">; B581 AD 2A 06 .*.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">PCOLR3</font> <font color="#8080ff">; B584 8D C3 02 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B587 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">zero_filler_8588</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B588 00 00 00 00 00 00 00 00 ........</font> +<font color="#00ffff">LB590</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; B590 FE 33 9C FD 04 00 04 05 .3......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; B598 08 3C 05 0A 7C 05 08 04 .<..|...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$25</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$43</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; B5A0 25 26 04 43 26 04 55 06 %&.C&.U.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$84</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$43</font> <font color="#8080ff">; B5A8 3C 55 0A 84 55 06 04 43 <U..U..C</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$5F</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font> <font color="#8080ff">; B5B0 06 FE 5F 9C FD 00 04 0C .._.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$09</font> <font color="#8080ff">; B5B8 01 09 4C 01 09 8C 01 09 ..L.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$2A</font>,<font color="#ff6060">$1F</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$6A</font>,<font color="#ff6060">$1F</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$3F</font> <font color="#8080ff">; B5C0 2A 1F 09 6A 1F 09 0C 3F *..j...?</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$3F</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$8C</font>,<font color="#ff6060">$3F</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$FE</font> <font color="#8080ff">; B5C8 05 4C 3F 05 8C 3F 05 FE .L?..?..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$B3</font>,<font color="#ff6060">$9C</font> <font color="#8080ff">; B5D0 B3 9C ..</font> +<font color="#00ffff">LB5D2</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; B5D2 04 02 01 20 02 01 3C 02 ... ..<.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font> <font color="#8080ff">; B5DA 01 60 02 01 7C 02 01 98 .`..|...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$01</font> <font color="#8080ff">; B5E2 02 01 04 22 01 98 22 01 ..."..".</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$36</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$36</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$52</font> <font color="#8080ff">; B5EA 3C 36 01 60 36 01 04 52 <6.`6..R</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$98</font> <font color="#8080ff">; B5F2 01 3C 52 01 60 52 01 98 .<R.`R..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$52</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; B5FA 52 01 FF R..</font> +<font color="#00ffff">LB5FD</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$22</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$62</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$82</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B5FD 22 10 42 20 62 00 82 00 ".B b...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$A2</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$C2</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$C6</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B605 A2 30 C2 40 26 00 C6 00 .0.@&...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$68</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$88</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$2C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B60D 68 00 88 00 2C 00 6C 00 h...,.l.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$8C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; B615 8C 00 CC 00 FF .....</font> +<font color="#00ffff">LB61A</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$B6</font>,<font color="#ff6060">$2E</font>,<font color="#ff6060">$B6</font>,<font color="#ff6060">$3E</font>,<font color="#ff6060">$B6</font> <font color="#8080ff">; B61A 00 00 24 B6 2E B6 3E B6 ..$...>.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$4E</font>,<font color="#ff6060">$B6</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B622 4E B6 FE 49 9C FD 04 00 N..I....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$78</font>,<font color="#ff6060">$43</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; B62A 78 43 02 FF FE 49 9C FD xC...I..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B632 04 00 3C 25 02 FD 04 00 ..<%....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$1C</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; B63A 1C 25 02 FF FE 49 9C FD .%...I..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B642 04 00 7C 25 02 FD 04 00 ..|%....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$5C</font>,<font color="#ff6060">$25</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font>,<font color="#ff6060">$FE</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$9C</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; B64A 5C 25 02 FF FE 49 9C FD \%...I..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$5C</font>,<font color="#ff6060">$43</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; B652 04 00 5C 43 02 FF ..\C..</font> +<font color="#00ffff">LB658</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$71</font>,<font color="#ff6060">$B6</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; B658 00 71 B6 08 40 02 01 08 .q..@...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$71</font>,<font color="#ff6060">$B6</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; B660 03 71 B6 08 14 40 02 08 .q...@..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$71</font>,<font color="#ff6060">$B6</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$08</font> <font color="#8080ff">; B668 04 71 B6 08 00 80 03 08 .q......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FF</font>,<font color="#ff6060">$47</font>,<font color="#ff6060">$EF</font>,<font color="#ff6060">$3E</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$0E</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; B670 FF 47 EF 3E 1E 1E 0E 02 .G.>....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$EE</font>,<font color="#ff6060">$3F</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; B678 05 40 EE 3F 1E 1C 0C 02 .@.?....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$E0</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$0D</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; B680 05 40 E0 38 1C 1E 0D 02 .@.8....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$05</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$EE</font>,<font color="#ff6060">$3F</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; B688 05 40 EE 3F 1E 1C 0C 02 .@.?....</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $05 </font> <font color="#8080ff">; B690 05 .</font> +<font color="#00ffff">LB691</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$AD</font>,<font color="#ff6060">$21</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$D0</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$60</font> <font color="#8080ff">; B691 AD 21 06 D0 01 60 .!...`</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; B697 EE 7E 06 .~.</font> +<font color="#00ffff">LB69A</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; B69A 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB69B</font>: <font color="#00ff00">lda</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; B69B AD 24 06 .$.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; B69E C9 09 ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">LB6A9</font> <font color="#8080ff">; B6A0 B0 07 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; B6A2 AD 23 06 .#.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; B6A5 C9 02 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB6BA</font> <font color="#8080ff">; B6A7 D0 11 ..</font> +<font color="#00ffff">LB6A9</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0768 </font> <font color="#8080ff">; B6A9 AD 68 07 .h.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB69A</font> <font color="#8080ff">; B6AC D0 EC ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0768 </font> <font color="#8080ff">; B6AE EE 68 07 .h.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B6B1 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDC1</font> <font color="#8080ff">; B6B3 8D 01 D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF1</font> <font color="#8080ff">; B6B6 8D 00 D2 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B6B9 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB6BA</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $076F </font> <font color="#8080ff">; B6BA AD 6F 07 .o.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB6DC</font> <font color="#8080ff">; B6BD D0 1D ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$81</font> <font color="#8080ff">; B6BF A9 81 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDC1</font> <font color="#8080ff">; B6C1 8D 01 D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $076C </font> <font color="#8080ff">; B6C4 8D 6C 07 .l.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B6C7 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_2</font> <font color="#8080ff">; B6C9 8D 1B 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; B6CC A9 04 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $076E </font> <font color="#8080ff">; B6CE 8D 6E 07 .n.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $076F </font> <font color="#8080ff">; B6D1 8D 6F 07 .o.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; B6D4 AD 0A D2 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$3F</font> <font color="#8080ff">; B6D7 29 3F )?</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $076D </font> <font color="#8080ff">; B6D9 8D 6D 07 .m.</font> +<font color="#00ffff">LB6DC</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$10</font> <font color="#8080ff">; B6DC A9 10 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDF1</font> <font color="#8080ff">; B6DE 8D 00 D2 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_2</font> <font color="#8080ff">; B6E1 AD 1B 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff40ff"> $076D </font> <font color="#8080ff">; B6E4 CD 6D 07 .m.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB702</font> <font color="#8080ff">; B6E7 D0 19 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $076E </font> <font color="#8080ff">; B6E9 AD 6E 07 .n.</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LB6F7</font> <font color="#8080ff">; B6EC F0 09 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $076C </font> <font color="#8080ff">; B6EE EE 6C 07 .l.</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $076E </font> <font color="#8080ff">; B6F1 CE 6E 07 .n.</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LB6FD</font> <font color="#8080ff">; B6F4 4C FD B6 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB6F7</font>: <font color="#00ff00">dec</font> <font color="#ff40ff"> $076C </font> <font color="#8080ff">; B6F7 CE 6C 07 .l.</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $076F </font> <font color="#8080ff">; B6FA CE 6F 07 .o.</font> +<font color="#00ffff">LB6FD</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B6FD A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_2</font> <font color="#8080ff">; B6FF 8D 1B 06 ...</font> +<font color="#00ffff">LB702</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $076C </font> <font color="#8080ff">; B702 AD 6C 07 .l.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">AUDC1</font> <font color="#8080ff">; B705 8D 01 D2 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B708 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB709</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $06F5 </font> <font color="#8080ff">; B709 AD F5 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; B70C C9 01 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB71C</font> <font color="#8080ff">; B70E D0 0C ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0669 </font> <font color="#8080ff">; B710 EE 69 06 .i.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $066C </font> <font color="#8080ff">; B713 EE 6C 06 .l.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $066D </font> <font color="#8080ff">; B716 EE 6D 06 .m.</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $06F5 </font> <font color="#8080ff">; B719 EE F5 06 ...</font> +<font color="#00ffff">LB71C</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0622 </font> <font color="#8080ff">; B71C AD 22 06 .".</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB722</font> <font color="#8080ff">; B71F D0 01 ..</font> +<font color="#00ffff">LB721</font>: <font color="#00ff00">rts</font> <font color="#8080ff">; B721 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB722</font>: <font color="#00ff00">ldx</font> <font color="#ff6060">#$FF</font> <font color="#8080ff">; B722 A2 FF ..</font> +<font color="#00ffff">LB724</font>: <font color="#00ff00">inx</font> <font color="#8080ff">; B724 E8 .</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; B725 E0 01 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LB724</font> <font color="#8080ff">; B727 F0 FB ..</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; B729 E0 02 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LB724</font> <font color="#8080ff">; B72B F0 F7 ..</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; B72D E0 05 ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LB721</font> <font color="#8080ff">; B72F F0 F0 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $076C </font> <font color="#8080ff">; B731 AD 6C 07 .l.</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; B734 29 0F ).</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; B736 A8 .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B737 18 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $067D,x </font> <font color="#8080ff">; B738 BD 7D 06 .}.</font> + <font color="#00ff00">adc</font> <font color="#00ffff">wind_table_1</font>,<font color="#00ffff">y</font> <font color="#8080ff">; B73B 79 6B B7 yk.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067D,x </font> <font color="#8080ff">; B73E 9D 7D 06 .}.</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B741 18 .</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0682,x </font> <font color="#8080ff">; B742 BD 82 06 ...</font> + <font color="#00ff00">adc</font> <font color="#00ffff">wind_table_2</font>,<font color="#00ffff">y</font> <font color="#8080ff">; B745 79 71 B7 yq.</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$C6</font> <font color="#8080ff">; B748 C9 C6 ..</font> + <font color="#00ff00">bcs</font> <font color="#00ffff">LB75D</font> <font color="#8080ff">; B74A B0 11 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0682,x </font> <font color="#8080ff">; B74C 9D 82 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0687,x </font> <font color="#8080ff">; B74F BD 87 06 ...</font> + <font color="#00ff00">and</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; B752 29 03 ).</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0687,x </font> <font color="#8080ff">; B754 9D 87 06 ...</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $0687,x </font> <font color="#8080ff">; B757 FE 87 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LB724</font> <font color="#8080ff">; B75A 4C 24 B7 L$.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB75D</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; B75D A9 02 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067D,x </font> <font color="#8080ff">; B75F 9D 7D 06 .}.</font> + <font color="#00ff00">lda</font> <font color="#ff40ff">RANDOM</font> <font color="#8080ff">; B762 AD 0A D2 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0682,x </font> <font color="#8080ff">; B765 9D 82 06 ...</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LB724</font> <font color="#8080ff">; B768 4C 24 B7 L$.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; used in level11</font> +<font color="#00ffff">wind_table_1</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$03</font> <font color="#8080ff">; B76B 01 02 03 03 03 03 ......</font> +<font color="#00ffff">wind_table_2</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B771 02 01 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B779 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B781 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B789 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B791 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B799 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B7A1 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B7A9 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B7B1 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B7B9 00 00 00 00 00 00 00 .......</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB7C0</font>: <font color="#00ff00">lda</font> <font color="#00ffff">score</font>+<font color="#ff6060">2</font> <font color="#8080ff">; B7C0 AD 02 07 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; B7C3 C9 0F ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LB7EE</font> <font color="#8080ff">; B7C5 90 27 .'</font> + <font color="#00ff00">lda</font> <font color="#00ffff">score</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B7C7 AD 01 07 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$42</font> <font color="#8080ff">; B7CA C9 42 .B</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LB7EE</font> <font color="#8080ff">; B7CC 90 20 . </font> + <font color="#00ff00">lda</font> <font color="#00ffff">score</font> <font color="#8080ff">; B7CE AD 00 07 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$40</font> <font color="#8080ff">; B7D1 C9 40 .@</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LB7EE</font> <font color="#8080ff">; B7D3 90 19 ..</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; B7D5 38 8</font> + <font color="#00ff00">lda</font> <font color="#00ffff">score</font> <font color="#8080ff">; B7D6 AD 00 07 ...</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$40</font> <font color="#8080ff">; B7D9 E9 40 .@</font> + <font color="#00ff00">sta</font> <font color="#00ffff">score</font> <font color="#8080ff">; B7DB 8D 00 07 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">score</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B7DE AD 01 07 ...</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$42</font> <font color="#8080ff">; B7E1 E9 42 .B</font> + <font color="#00ff00">sta</font> <font color="#00ffff">score</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B7E3 8D 01 07 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">score</font>+<font color="#ff6060">2</font> <font color="#8080ff">; B7E6 AD 02 07 ...</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$0F</font> <font color="#8080ff">; B7E9 E9 0F ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">score</font>+<font color="#ff6060">2</font> <font color="#8080ff">; B7EB 8D 02 07 ...</font> +<font color="#00ffff">LB7EE</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">L8668</font> <font color="#8080ff">; B7EE 4C 68 86 Lh.</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7F1 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7F2 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7F3 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7F4 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7F5 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7F6 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7F7 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7F8 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7F9 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7FA 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7FB 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7FC 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7FD 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7FE 00 .</font> + <font color="#00ff00">brk</font> <font color="#8080ff">; B7FF 00 .</font> +<font color="#00ffff">end_of_level_bonus</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">level</font> <font color="#8080ff">; B800 AD F6 06 ...</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; B803 0A .</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; B804 A8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">mul_25_table</font>,<font color="#00ffff">y</font> <font color="#8080ff">; B805 B9 A7 B8 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $A4 </font> <font color="#8080ff">; B808 85 A4 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">mul_25_table</font>+<font color="#ff6060">1</font>,<font color="#00ffff">y</font> <font color="#8080ff">; B80A B9 A8 B8 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $A5 </font> <font color="#8080ff">; B80D 85 A5 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">lives</font> <font color="#8080ff">; B80F AD 0A 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $A6 </font> <font color="#8080ff">; B812 85 A6 ..</font> + <font color="#00ff00">inc</font> <font color="#ff40ff"> $A6 </font> <font color="#8080ff">; B814 E6 A6 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $A4 </font> <font color="#8080ff">; B816 A5 A4 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D0 </font> <font color="#8080ff">; B818 85 D0 ..</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $A5 </font> <font color="#8080ff">; B81A A5 A5 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D1 </font> <font color="#8080ff">; B81C 85 D1 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B81E A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_time_bonus</font> <font color="#8080ff">; B820 8D 91 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D2 </font> <font color="#8080ff">; B823 85 D2 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_time_bonus</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B825 8D 92 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$E9</font> <font color="#8080ff">; B828 A9 E9 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D3 </font> <font color="#8080ff">; B82A 85 D3 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$3D</font> <font color="#8080ff">; B82C A9 3D .=</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D4 </font> <font color="#8080ff">; B82E 85 D4 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">xxx_level_something_jv</font> <font color="#8080ff">; B830 20 09 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$78</font> <font color="#8080ff">; B833 A9 78 .x</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3DE9 </font> <font color="#8080ff">; B835 8D E9 3D ..=</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L800F</font> <font color="#8080ff">; B838 20 0F 80 ..</font> +<font color="#00ffff">add_life_bonus</font>: + <font color="#00ff00">clc</font> <font color="#8080ff">; B83B 18 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">score</font> <font color="#8080ff">; B83C AD 00 07 ...</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $A4 </font> <font color="#8080ff">; B83F 65 A4 e.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">score</font> <font color="#8080ff">; B841 8D 00 07 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">score</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B844 AD 01 07 ...</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $A5 </font> <font color="#8080ff">; B847 65 A5 e.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">score</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B849 8D 01 07 ...</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LB851</font> <font color="#8080ff">; B84C 90 03 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">score</font>+<font color="#ff6060">2</font> <font color="#8080ff">; B84E EE 02 07 ...</font> +<font color="#00ffff">LB851</font>: <font color="#00ff00">clc</font> <font color="#8080ff">; B851 18 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_time_bonus</font> <font color="#8080ff">; B852 AD 91 07 ...</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $A4 </font> <font color="#8080ff">; B855 65 A4 e.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_time_bonus</font> <font color="#8080ff">; B857 8D 91 07 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">work_level_time_bonus</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B85A AD 92 07 ...</font> + <font color="#00ff00">adc</font> <font color="#ff40ff"> $A5 </font> <font color="#8080ff">; B85D 65 A5 e.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_time_bonus</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B85F 8D 92 07 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L800C</font> <font color="#8080ff">; B862 20 0C 80 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">L800F</font> <font color="#8080ff">; B865 20 0F 80 ..</font> +<font color="#8080ff">; play once per life</font> +<font color="#00ffff">play_life_bonus_sfx</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$96</font> <font color="#8080ff">; B868 A9 96 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font> <font color="#8080ff">; B86A 8D 3C 06 .<.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$B8</font> <font color="#8080ff">; B86D A9 B8 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">sfx_ptr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B86F 8D 3D 06 .=.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_sfx_jv</font> <font color="#8080ff">; B872 20 06 80 ..</font> +<font color="#00ffff">LB875</font>: <font color="#00ff00">lda</font> <font color="#00ffff">sfx_slot_duration</font> <font color="#8080ff">; B875 AD 46 06 .F.</font> + <font color="#00ff00">ora</font> <font color="#ff40ff"> $0644 </font> <font color="#8080ff">; B878 0D 44 06 .D.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB875</font> <font color="#8080ff">; B87B D0 F8 ..</font> + <font color="#00ff00">dec</font> <font color="#ff40ff"> $A6 </font> <font color="#8080ff">; B87D C6 A6 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">add_life_bonus</font> <font color="#8080ff">; B87F D0 BA ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; B881 8D 1A 06 ...</font> +<font color="#00ffff">LB884</font>: <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; B884 AD 1A 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; B887 C9 20 . </font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB884</font> <font color="#8080ff">; B889 D0 F9 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">randomizer_mode</font> <font color="#8080ff">; B88B AD F3 06 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB893</font> <font color="#8080ff">; B88E D0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">L8DA0</font> <font color="#8080ff">; B890 4C A0 8D L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB893</font>: <font color="#00ff00">jmp</font> <font color="#00ffff">afterlife</font> <font color="#8080ff">; B893 4C 00 96 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; played when adding bonus per life at end of level</font> +<font color="#00ffff">sfx_add_life_bonus</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$E4</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$79</font> <font color="#8080ff">; B896 01 E4 00 18 02 3C 02 79 .....<.y</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$14</font> <font color="#8080ff">; B89E 02 F3 02 01 A0 00 0A 14 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; B8A6 00 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; multiply by 25</font> +<font color="#00ffff">mul_25_table</font>: + .<font color="#ffff00">word</font> <font color="#ff6060">$0019</font>,<font color="#ff6060">$0032</font>,<font color="#ff6060">$004B</font>,<font color="#ff6060">$0064</font> <font color="#8080ff">; B8A7 19 00 32 00 4B 00 64 00 ..2.K.d.</font> + .<font color="#ffff00">word</font> <font color="#ff6060">$007D</font>,<font color="#ff6060">$0096</font>,<font color="#ff6060">$00AF</font>,<font color="#ff6060">$00C8</font> <font color="#8080ff">; B8AF 7D 00 96 00 AF 00 C8 00 }.......</font> + .<font color="#ffff00">word</font> <font color="#ff6060">$00E1</font>,<font color="#ff6060">$00FA</font>,<font color="#ff6060">$0113</font>,<font color="#ff6060">$012C</font> <font color="#8080ff">; B8B7 E1 00 FA 00 13 01 2C 01 ......,.</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; all zeroes, filler?</font> +<font color="#00ffff">zero_filler_b8bf</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B8BF 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B8C7 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B8CF 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B8D7 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B8DF 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B8E7 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B8EF 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B8F7 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B8FF 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B907 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B90F 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B917 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B91F 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B927 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B92F 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B937 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B93F 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B947 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B94F 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B957 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B95F 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; B967 00 00 00 00 ....</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB96B</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B96B A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; B96D 8D 1A 06 ...</font> +<font color="#00ffff">LB970</font>: <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; B970 AD 1A 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$60</font> <font color="#8080ff">; B973 C9 60 .`</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB970</font> <font color="#8080ff">; B975 D0 F9 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B977 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">FR1</font> <font color="#8080ff">; B979 85 E0 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B97B A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06AB </font> <font color="#8080ff">; B97D 8D AB 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067D </font> <font color="#8080ff">; B980 8D 7D 06 .}.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0681 </font> <font color="#8080ff">; B983 8D 81 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; B986 8D 7E 06 .~.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0680 </font> <font color="#8080ff">; B989 8D 80 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$A0</font> <font color="#8080ff">; B98C A9 A0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">FR1</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B98E 85 E1 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B990 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">FR1</font>+<font color="#ff6060">2</font> <font color="#8080ff">; B992 85 E2 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">clear_screen_mem_jv</font> <font color="#8080ff">; B994 20 1E 80 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">setup_gameboard_dlist_jv</font> <font color="#8080ff">; B997 20 15 80 ..</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; B99A EA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; B99B EA .</font> + <font color="#00ff00">nop</font> <font color="#8080ff">; B99C EA .</font> +<font color="#00ffff">LB99D</font>: <font color="#00ff00">ldy</font> <font color="#ff6060">#$16</font> <font color="#8080ff">; B99D A0 16 ..</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">FR1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; B99F B1 E0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; B9A1 85 C0 ..</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; B9A3 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">FR1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; B9A4 B1 E0 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B9A6 85 C1 ..</font> + <font color="#00ff00">ldy</font> <font color="#00ffff">FR1</font>+<font color="#ff6060">2</font> <font color="#8080ff">; B9A8 A4 E2 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B9AA A2 00 ..</font> +<font color="#00ffff">LB9AC</font>: <font color="#00ff00">lda</font> <font color="#00ffff">level_names</font>,<font color="#00ffff">y</font> <font color="#8080ff">; B9AC B9 00 BB ...</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; B9AF 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; B9B0 E9 20 . </font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3DE8,x </font> <font color="#8080ff">; B9B2 9D E8 3D ..=</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; B9B5 C8 .</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; B9B6 E8 .</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$14</font> <font color="#8080ff">; B9B7 E0 14 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB9AC</font> <font color="#8080ff">; B9B9 D0 F1 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">LB9EC</font> <font color="#8080ff">; B9BB 20 EC B9 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; B9BE A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; B9C0 8D 1A 06 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">draw_map_jv</font> <font color="#8080ff">; B9C3 20 00 80 ..</font> +<font color="#00ffff">LB9C6</font>: <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; B9C6 AD 1A 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$40</font> <font color="#8080ff">; B9C9 C9 40 .@</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB9C6</font> <font color="#8080ff">; B9CB D0 F9 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">clear_screen_mem_jv</font> <font color="#8080ff">; B9CD 20 1E 80 ..</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; B9D0 18 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">FR1</font>+<font color="#ff6060">2</font> <font color="#8080ff">; B9D1 A5 E2 ..</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$14</font> <font color="#8080ff">; B9D3 69 14 i.</font> + <font color="#00ff00">sta</font> <font color="#00ffff">FR1</font>+<font color="#ff6060">2</font> <font color="#8080ff">; B9D5 85 E2 ..</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$F0</font> <font color="#8080ff">; B9D7 C9 F0 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LB9DE</font> <font color="#8080ff">; B9D9 D0 03 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">reinit_game</font> <font color="#8080ff">; B9DB 4C 0C 90 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB9DE</font>: <font color="#00ff00">clc</font> <font color="#8080ff">; B9DE 18 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">FR1</font> <font color="#8080ff">; B9DF A5 E0 ..</font> + <font color="#00ff00">adc</font> <font color="#ff6060">#$40</font> <font color="#8080ff">; B9E1 69 40 i@</font> + <font color="#00ff00">sta</font> <font color="#00ffff">FR1</font> <font color="#8080ff">; B9E3 85 E0 ..</font> + <font color="#00ff00">bcc</font> <font color="#00ffff">LB99D</font> <font color="#8080ff">; B9E5 90 B6 ..</font> + <font color="#00ff00">inc</font> <font color="#00ffff">FR1</font>+<font color="#ff6060">1</font> <font color="#8080ff">; B9E7 E6 E1 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">LB99D</font> <font color="#8080ff">; B9E9 4C 9D B9 L..</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LB9EC</font>: <font color="#00ff00">ldy</font> <font color="#ff6060">#$2F</font> <font color="#8080ff">; B9EC A0 2F ./</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">FR1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; B9EE B1 E0 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; B9F0 8D C4 02 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; B9F3 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">FR1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; B9F4 B1 E0 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR1</font> <font color="#8080ff">; B9F6 8D C5 02 ...</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; B9F9 C8 .</font> + <font color="#00ff00">lda</font> (<font color="#00ffff">FR1</font>),<font color="#00ffff">y</font> <font color="#8080ff">; B9FA B1 E0 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR2</font> <font color="#8080ff">; B9FC 8D C6 02 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; B9FF 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LBA00</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$40</font> <font color="#8080ff">; BA00 A9 40 .@</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">NMIEN</font> <font color="#8080ff">; BA02 8D 0E D4 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; BA05 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR3</font> <font color="#8080ff">; BA07 8D C7 02 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; BA0A 8D C4 02 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR1</font> <font color="#8080ff">; BA0D 8D C5 02 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR2</font> <font color="#8080ff">; BA10 8D C6 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; BA13 A9 30 .0</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">SAVMSC</font>+<font color="#ff6060">1</font> <font color="#8080ff">; BA15 85 59 .Y</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">clear_screen_mem_jv</font> <font color="#8080ff">; BA17 20 1E 80 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">cur_level_map0</font> <font color="#8080ff">; BA1A AD D6 07 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; BA1D 85 C0 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">cur_level_map0</font>+<font color="#ff6060">1</font> <font color="#8080ff">; BA1F AD D7 07 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; BA22 85 C1 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">draw_map_jv</font> <font color="#8080ff">; BA24 20 00 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$30</font> <font color="#8080ff">; BA27 A9 30 .0</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">SAVMSC</font>+<font color="#ff6060">1</font> <font color="#8080ff">; BA29 85 59 .Y</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; BA2B A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $AA </font> <font color="#8080ff">; BA2D 85 AA ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06AB </font> <font color="#8080ff">; BA2F 8D AB 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR4</font> <font color="#8080ff">; BA32 8D C8 02 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">setup_gameboard_dlist_jv</font> <font color="#8080ff">; BA35 20 15 80 ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">level</font> <font color="#8080ff">; BA38 AD F6 06 ...</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; BA3B A8 .</font> + <font color="#00ff00">lda</font> <font color="#00ffff">level_name_hscrol_table</font>,<font color="#00ffff">y</font> <font color="#8080ff">; BA3C B9 F0 BB ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">HSCROL</font> <font color="#8080ff">; BA3F 8D 04 D4 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$16</font> <font color="#8080ff">; BA42 A9 16 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $085E </font> <font color="#8080ff">; BA44 8D 5E 08 .^.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $08DF </font> <font color="#8080ff">; BA47 8D DF 08 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">level</font> <font color="#8080ff">; BA4A AD F6 06 ...</font> + <font color="#00ff00">pha</font> <font color="#8080ff">; BA4D 48 H</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; BA4E 0A .</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; BA4F 0A .</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; BA50 0A .</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; BA51 0A .</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; BA52 85 C0 ..</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; BA54 68 h</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; BA55 0A .</font> + <font color="#00ff00">asl</font> <font color="#00ffff">a</font> <font color="#8080ff">; BA56 0A .</font> + <font color="#00ff00">clc</font> <font color="#8080ff">; BA57 18 .</font> + <font color="#00ff00">adc</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; BA58 65 C0 e.</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; BA5A A8 .</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; BA5B A2 00 ..</font> +<font color="#8080ff">; copy level name into screen RAM</font> +<font color="#00ffff">show_level_name</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">level_names</font>,<font color="#00ffff">y</font> <font color="#8080ff">; BA5D B9 00 BB ...</font> + <font color="#00ff00">sec</font> <font color="#8080ff">; BA60 38 8</font> + <font color="#00ff00">sbc</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; BA61 E9 20 . </font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3DEA,x </font> <font color="#8080ff">; BA63 9D EA 3D ..=</font> + <font color="#00ff00">inx</font> <font color="#8080ff">; BA66 E8 .</font> + <font color="#00ff00">iny</font> <font color="#8080ff">; BA67 C8 .</font> + <font color="#00ff00">cpx</font> <font color="#ff6060">#$14</font> <font color="#8080ff">; BA68 E0 14 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">show_level_name</font> <font color="#8080ff">; BA6A D0 F1 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; BA6C A9 08 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_music_jv</font> <font color="#8080ff">; BA6E 20 18 80 ..</font> +<font color="#8080ff">; level is already drawn with all color regs set to black. for each color reg, wait 1 sec before turning it visible. this syncs up with the music because the music was written to sync with this actually</font> +<font color="#00ffff">sync_to_music</font>: + <font color="#00ff00">jsr</font> <font color="#00ffff">wait_1_sec</font> <font color="#8080ff">; BA71 20 9E BA ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">cur_level_offs_46</font>+<font color="#ff6060">3</font> <font color="#8080ff">; BA74 AD F1 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR2</font> <font color="#8080ff">; BA77 8D C6 02 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">wait_1_sec</font> <font color="#8080ff">; BA7A 20 9E BA ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">cur_level_offs_46</font>+<font color="#ff6060">2</font> <font color="#8080ff">; BA7D AD F0 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR1</font> <font color="#8080ff">; BA80 8D C5 02 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">wait_1_sec</font> <font color="#8080ff">; BA83 20 9E BA ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">cur_level_offs_46</font>+<font color="#ff6060">1</font> <font color="#8080ff">; BA86 AD EF 07 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; BA89 8D C4 02 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">wait_1_sec</font> <font color="#8080ff">; BA8C 20 9E BA ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; BA8F A9 00 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">wait_1_sec</font> <font color="#8080ff">; BA91 20 9E BA ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">enable_joystick_jv</font> <font color="#8080ff">; BA94 20 1B 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; BA97 A9 00 ..</font> + <font color="#00ff00">tay</font> <font color="#8080ff">; BA99 A8 .</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">wait_1_sec</font> <font color="#8080ff">; BA9A 20 9E BA ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; BA9D 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; actually 64 jiffies, 1.067S ntsc, 1.28s pal</font> +<font color="#00ffff">wait_1_sec</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; BA9E A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; BAA0 8D 1A 06 ...</font> +<font color="#00ffff">keep_waiting</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; BAA3 AD 1A 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$40</font> <font color="#8080ff">; BAA6 C9 40 .@</font> + <font color="#00ff00">bne</font> <font color="#00ffff">keep_waiting</font> <font color="#8080ff">; BAA8 D0 F9 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; BAAA 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; filler?</font> +<font color="#00ffff">zero_filler_baab</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BAAB 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BAB3 00 00 00 00 00 00 00 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; BABB 00 .</font> +<font color="#8080ff">; level intro music, melody</font> +<font color="#00ffff">sfx15</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$2F</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$35</font> <font color="#8080ff">; BABC 01 A5 02 3C 10 2F 10 35 ...<./.5</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$2D</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$2F</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$2D</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$28</font> <font color="#8080ff">; BAC4 10 2D 10 2F 08 2D 08 28 .-./.-.(</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$2F</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$2F</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$2D</font> <font color="#8080ff">; BACC 08 2F 08 35 08 2F 08 2D ./.5./.-</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$2F</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$35</font> <font color="#8080ff">; BAD4 08 35 08 3C 10 2F 10 35 .5.<./.5</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$2D</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$2D</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$2F</font> <font color="#8080ff">; BADC 10 2D 10 28 08 2D 08 2F .-.(.-./</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BAE4 08 35 08 3C 10 00 .5.<..</font> +<font color="#8080ff">; level intro music, bass</font> +<font color="#00ffff">sfx16</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A7</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$F3</font> <font color="#8080ff">; BAEA 01 A7 02 F3 20 A2 20 F3 .... . .</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$79</font> <font color="#8080ff">; BAF2 20 A2 20 F3 20 A2 20 79 . . . y</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BAFA 10 A2 10 F3 10 00 ......</font> +<font color="#00ffff">level_names</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$4E</font>,<font color="#ff6060">$4F</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$49</font> <font color="#8080ff">; BB00 20 20 20 4E 4F 54 48 49 NOTHI</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$4E</font>,<font color="#ff6060">$47</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$4F</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$54</font> <font color="#8080ff">; BB08 4E 47 20 54 4F 20 49 54 NG TO IT</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$45</font> <font color="#8080ff">; BB10 20 20 20 20 20 20 20 45 E</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$4C</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$43</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$4F</font>,<font color="#ff6060">$43</font>,<font color="#ff6060">$55</font> <font color="#8080ff">; BB18 4C 45 43 54 52 4F 43 55 LECTROCU</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$54</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$4F</font>,<font color="#ff6060">$4E</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BB20 54 49 4F 4E 20 20 20 20 TION </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$4D</font> <font color="#8080ff">; BB28 20 20 20 20 20 44 55 4D DUM</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$42</font>,<font color="#ff6060">$57</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BB30 42 57 41 49 54 45 52 20 BWAITER </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BB38 20 20 20 20 20 20 20 20 </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$53</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$4F</font> <font color="#8080ff">; BB40 20 48 45 4C 4C 53 54 4F HELLSTO</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$4E</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$53</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BB48 4E 45 53 20 20 20 20 20 NES </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$46</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$47</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$49</font> <font color="#8080ff">; BB50 20 20 46 49 47 55 52 49 FIGURI</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$54</font>,<font color="#ff6060">$53</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$56</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$4E</font> <font color="#8080ff">; BB58 54 53 20 52 45 56 45 4E TS REVEN</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$47</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BB60 47 45 20 20 20 20 20 20 GE </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$57</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$53</font> <font color="#8080ff">; BB68 20 20 20 57 41 4C 4C 53 WALLS</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BB70 20 20 20 20 20 20 20 20 </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$49</font> <font color="#8080ff">; BB78 20 20 20 20 20 20 5A 49 ZI</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$47</font>,<font color="#ff6060">$2D</font>,<font color="#ff6060">$5A</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$47</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BB80 47 2D 5A 41 47 20 20 20 G-ZAG </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BB88 20 20 20 20 20 20 20 20 </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$53</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$4F</font> <font color="#8080ff">; BB90 20 53 50 45 4C 4C 42 4F SPELLBO</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$55</font>,<font color="#ff6060">$4E</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BB98 55 4E 44 20 20 20 20 20 UND </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$42</font>,<font color="#ff6060">$4C</font> <font color="#8080ff">; BBA0 20 20 20 20 20 20 42 4C BL</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$41</font>,<font color="#ff6060">$43</font>,<font color="#ff6060">$4B</font>,<font color="#ff6060">$4F</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BBA8 41 43 4B 4F 55 54 20 20 ACKOUT </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$45</font> <font color="#8080ff">; BBB0 20 20 20 20 48 45 52 45 HERE</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$54</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$56</font>,<font color="#ff6060">$45</font> <font color="#8080ff">; BBB8 54 48 45 52 45 45 56 45 THEREEVE</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$52</font>,<font color="#ff6060">$59</font>,<font color="#ff6060">$57</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BBC0 52 59 57 48 45 52 45 20 RYWHERE </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$41</font>,<font color="#ff6060">$54</font> <font color="#8080ff">; BBC8 20 20 20 20 20 48 41 54 HAT</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$43</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$4E</font>,<font color="#ff6060">$47</font>,<font color="#ff6060">$53</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BBD0 43 48 4C 49 4E 47 53 20 CHLINGS </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BBD8 20 20 20 20 20 20 20 20 </font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$52</font>,<font color="#ff6060">$49</font>,<font color="#ff6060">$43</font>,<font color="#ff6060">$41</font> <font color="#8080ff">; BBE0 20 48 55 52 52 49 43 41 HURRICA</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$4E</font>,<font color="#ff6060">$45</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$20</font> <font color="#8080ff">; BBE8 4E 45 20 20 20 20 20 20 NE </font> +<font color="#8080ff">; used for centering level name on gameboard</font> +<font color="#00ffff">level_name_hscrol_table</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BBF0 04 04 00 00 00 04 04 00 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BBF8 00 04 00 04 00 00 00 00 ........</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; the WELL DONE screen, when you beat all the levels. after this, the game plays random levels.</font> +<font color="#00ffff">well_done_screen</font>: + <font color="#00ff00">jsr</font> <font color="#00ffff">L803C</font> <font color="#8080ff">; BC00 20 3C 80 <.</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">enable_joystick_jv</font> <font color="#8080ff">; BC03 20 1B 80 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">clear_screen_mem_jv</font> <font color="#8080ff">; BC06 20 1E 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; BC09 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06AB </font> <font color="#8080ff">; BC0B 8D AB 06 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">setup_gameboard_dlist_jv</font> <font color="#8080ff">; BC0E 20 15 80 ..</font> + <font color="#00ff00">ldy</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; BC11 AC AC 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$41</font> <font color="#8080ff">; BC14 A9 41 .A</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $080A,y </font> <font color="#8080ff">; BC16 99 0A 08 ...</font> + <font color="#00ff00">tya</font> <font color="#8080ff">; BC19 98 .</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $080B,y </font> <font color="#8080ff">; BC1A 99 0B 08 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; BC1D A9 08 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $080C,y </font> <font color="#8080ff">; BC1F 99 0C 08 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$D9</font> <font color="#8080ff">; BC22 A9 D9 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font> <font color="#8080ff">; BC24 85 C0 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$BC</font> <font color="#8080ff">; BC26 A9 BC ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dm_progctr</font>+<font color="#ff6060">1</font> <font color="#8080ff">; BC28 85 C1 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">draw_map_jv</font> <font color="#8080ff">; BC2A 20 00 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$04</font> <font color="#8080ff">; BC2D A9 04 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; BC2F 8D 88 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $066A </font> <font color="#8080ff">; BC32 8D 6A 06 .j.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$7C</font> <font color="#8080ff">; BC35 A9 7C .|</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $067E </font> <font color="#8080ff">; BC37 8D 7E 06 .~.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; BC3A A9 20 . </font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; BC3C 8D 83 06 ...</font> +<font color="#8080ff">; load dli_service_2 address into dli shadow</font> +<font color="#00ffff">setup_dli_2</font>: + <font color="#00ff00">lda</font> <font color="#ff6060">#$C7</font> <font color="#8080ff">; BC3F A9 C7 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dli_vec_shadow_lo</font> <font color="#8080ff">; BC41 8D AE 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$BD</font> <font color="#8080ff">; BC44 A9 BD ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">dli_vec_shadow_hi</font> <font color="#8080ff">; BC46 8D AF 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8D</font> <font color="#8080ff">; BC49 A9 8D ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0809 </font> <font color="#8080ff">; BC4B 8D 09 08 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $088A </font> <font color="#8080ff">; BC4E 8D 8A 08 ...</font> +<font color="#00ffff">LBC51</font>: <font color="#00ff00">lda</font> <font color="#00ffff">dli_vec_shadow_hi</font> <font color="#8080ff">; BC51 AD AF 06 ...</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LBC51</font> <font color="#8080ff">; BC54 D0 FB ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$96</font> <font color="#8080ff">; BC56 A9 96 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR0</font> <font color="#8080ff">; BC58 8D C4 02 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; BC5B 8D 1A 06 ...</font> +<font color="#00ffff">LBC5E</font>: <font color="#00ff00">lda</font> <font color="#00ffff">jiffy_timer_1</font> <font color="#8080ff">; BC5E AD 1A 06 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$20</font> <font color="#8080ff">; BC61 C9 20 . </font> + <font color="#00ff00">bne</font> <font color="#00ffff">LBC5E</font> <font color="#8080ff">; BC63 D0 F9 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; BC65 A9 03 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">cue_music_jv</font> <font color="#8080ff">; BC67 20 18 80 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$CD</font> <font color="#8080ff">; BC6A A9 CD ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font> <font color="#8080ff">; BC6C 8D 82 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$BC</font> <font color="#8080ff">; BC6F A9 BC ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub0</font>+<font color="#ff6060">1</font> <font color="#8080ff">; BC71 8D 83 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$05</font> <font color="#8080ff">; BC74 A9 05 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; BC76 8D 24 06 .$.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$0D</font> <font color="#8080ff">; BC79 A9 0D ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">joystick_disabled</font> <font color="#8080ff">; BC7B 8D 32 06 .2.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; BC7E A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0623 </font> <font color="#8080ff">; BC80 8D 23 06 .#.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$52</font> <font color="#8080ff">; BC83 A9 52 .R</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub1</font> <font color="#8080ff">; BC85 8D 84 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$BD</font> <font color="#8080ff">; BC88 A9 BD ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub1</font>+<font color="#ff6060">1</font> <font color="#8080ff">; BC8A 8D 85 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$4C</font> <font color="#8080ff">; BC8D A9 4C .L</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_offs_46</font>+<font color="#ff6060">7</font> <font color="#8080ff">; BC8F 8D B5 07 ...</font> +<font color="#00ffff">LBC92</font>: <font color="#00ff00">lda</font> <font color="#00ffff">work_level_sub1</font> <font color="#8080ff">; BC92 AD 84 07 ...</font> + <font color="#00ff00">cmp</font> <font color="#ff6060">#$E6</font> <font color="#8080ff">; BC95 C9 E6 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LBC92</font> <font color="#8080ff">; BC97 D0 F9 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; BC99 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $06AB </font> <font color="#8080ff">; BC9B 8D AB 06 ...</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">setup_gameboard_dlist_jv</font> <font color="#8080ff">; BC9E 20 15 80 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$0B</font> <font color="#8080ff">; BCA1 A2 0B ..</font> +<font color="#00ffff">LBCA3</font>: <font color="#00ff00">lda</font> <font color="#00ffff">LBDD1</font>,<font color="#00ffff">x</font> <font color="#8080ff">; BCA3 BD D1 BD ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $3DE8,x </font> <font color="#8080ff">; BCA6 9D E8 3D ..=</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; BCA9 CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LBCA3</font> <font color="#8080ff">; BCAA D0 F7 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$3D</font> <font color="#8080ff">; BCAC A9 3D .=</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D4 </font> <font color="#8080ff">; BCAE 85 D4 ..</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$F5</font> <font color="#8080ff">; BCB0 A9 F5 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $D3 </font> <font color="#8080ff">; BCB2 85 D3 ..</font> + <font color="#00ff00">ldx</font> <font color="#ff6060">#$03</font> <font color="#8080ff">; BCB4 A2 03 ..</font> +<font color="#00ffff">LBCB6</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $06FF,x </font> <font color="#8080ff">; BCB6 BD FF 06 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $CF,x </font> <font color="#8080ff">; BCB9 95 CF ..</font> + <font color="#00ff00">dex</font> <font color="#8080ff">; BCBB CA .</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LBCB6</font> <font color="#8080ff">; BCBC D0 F8 ..</font> + <font color="#00ff00">jsr</font> <font color="#00ffff">xxx_level_something_jv</font> <font color="#8080ff">; BCBE 20 09 80 ..</font> +<font color="#00ffff">LBCC1</font>: <font color="#00ff00">lda</font> <font color="#ff40ff"> $0663 </font> <font color="#8080ff">; BCC1 AD 63 06 .c.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LBCC1</font> <font color="#8080ff">; BCC4 D0 FB ..</font> + <font color="#00ff00">lda</font> <font color="#00ffff">level</font> <font color="#8080ff">; BCC6 AD F6 06 ...</font> + <font color="#00ff00">inc</font> <font color="#00ffff">randomizer_mode</font> <font color="#8080ff">; BCC9 EE F3 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; BCCC 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; dunno, but referenced by code at $BC6A</font> +<font color="#00ffff">code_bccd</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff"> $062A </font> <font color="#8080ff">; BCCD AD 2A 06 .*.</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLOR2</font> <font color="#8080ff">; BCD0 8D C6 02 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$02</font> <font color="#8080ff">; BCD3 A9 02 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">collision_save</font>+<font color="#ff6060">4</font> <font color="#8080ff">; BCD5 8D B4 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; BCD8 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; level map used for the WELL DONE screen, when you beat level 12</font> +<font color="#00ffff">well_done_map</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$FE</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$BD</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; BCD9 FE A0 BD FD 00 04 0C 06 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$07</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$78</font> <font color="#8080ff">; BCE1 07 30 06 09 54 06 09 78 .0..T..x</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$06</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; BCE9 06 09 0C 30 09 30 38 05 ...0.08.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$54</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; BCF1 54 30 09 78 30 09 FD 04 T0.x0...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$22</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$34</font> <font color="#8080ff">; BCF9 04 10 22 02 20 34 01 34 ..". 4.4</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$4C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$58</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; BD01 4C 01 44 34 01 58 38 05 L.D4.X8.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$FD</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$FC</font>,<font color="#ff6060">$1C</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$4C</font> <font color="#8080ff">; BD09 FD 04 FC 1C 26 02 20 4C ....&. L</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$FD</font> <font color="#8080ff">; BD11 01 34 34 01 44 4C 01 FD .44.DL..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$34</font>,<font color="#ff6060">$16</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; BD19 04 00 34 06 06 34 16 06 ..4..4..</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$34</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$54</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$78</font>,<font color="#ff6060">$26</font> <font color="#8080ff">; BD21 34 26 06 54 26 07 78 26 4&.T&.x&</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$07</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$38</font> <font color="#8080ff">; BD29 07 10 30 04 0C 50 05 38 ..0..P.8</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$30</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$06</font> <font color="#8080ff">; BD31 30 03 38 50 03 7C 30 06 0.8P.|0.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$7C</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$7C</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$FD</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BD39 7C 40 06 7C 50 06 FD 00 |@.|P...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$07</font>,<font color="#ff6060">$24</font>,<font color="#ff6060">$38</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$48</font> <font color="#8080ff">; BD41 04 24 06 07 24 38 05 48 .$..$8.H</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$38</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$18</font>,<font color="#ff6060">$1A</font>,<font color="#ff6060">$03</font> <font color="#8080ff">; BD49 38 05 6C 30 09 18 1A 03 8.l0....</font> + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $FF </font> <font color="#8080ff">; BD51 FF .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; referenced by code at $BC83</font> +<font color="#00ffff">code_bd52</font>: + <font color="#00ff00">lda</font> <font color="#ff40ff"> $0621 </font> <font color="#8080ff">; BD52 AD 21 06 .!.</font> + <font color="#00ff00">bne</font> <font color="#00ffff">LBD58</font> <font color="#8080ff">; BD55 D0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; BD57 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LBD58</font>: <font color="#00ff00">ldy</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; BD58 AC AC 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$0D</font> <font color="#8080ff">; BD5B A9 0D ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0809,y </font> <font color="#8080ff">; BD5D 99 09 08 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$8D</font> <font color="#8080ff">; BD60 A9 8D ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $080A,y </font> <font color="#8080ff">; BD62 99 0A 08 ...</font> + <font color="#00ff00">lda</font> <font color="#ff40ff"> $080B,y </font> <font color="#8080ff">; BD65 B9 0B 08 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $080C,y </font> <font color="#8080ff">; BD68 99 0C 08 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$41</font> <font color="#8080ff">; BD6B A9 41 .A</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $080B,y </font> <font color="#8080ff">; BD6D 99 0B 08 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; BD70 A9 08 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $080D,y </font> <font color="#8080ff">; BD72 99 0D 08 ...</font> + <font color="#00ff00">inc</font> <font color="#00ffff">dlist_shadow_lo</font> <font color="#8080ff">; BD75 EE AC 06 ...</font> + <font color="#00ff00">cpy</font> <font color="#ff6060">#$4E</font> <font color="#8080ff">; BD78 C0 4E .N</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LBD81</font> <font color="#8080ff">; BD7A F0 05 ..</font> + <font color="#00ff00">cpy</font> <font color="#ff6060">#$CE</font> <font color="#8080ff">; BD7C C0 CE ..</font> + <font color="#00ff00">beq</font> <font color="#00ffff">LBD81</font> <font color="#8080ff">; BD7E F0 01 ..</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; BD80 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#00ffff">LBD81</font>: <font color="#00ff00">lda</font> <font color="#ff6060">#$E6</font> <font color="#8080ff">; BD81 A9 E6 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub1</font> <font color="#8080ff">; BD83 8D 84 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$06</font> <font color="#8080ff">; BD86 A9 06 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">work_level_sub1</font>+<font color="#ff6060">1</font> <font color="#8080ff">; BD88 8D 85 07 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$09</font> <font color="#8080ff">; BD8B A9 09 ..</font> + <font color="#00ff00">sta</font> <font color="#00ffff">player_speed</font> <font color="#8080ff">; BD8D 8D 24 06 .$.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$C6</font> <font color="#8080ff">; BD90 A9 C6 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0683 </font> <font color="#8080ff">; BD92 8D 83 06 ...</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$00</font> <font color="#8080ff">; BD95 A9 00 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0621 </font> <font color="#8080ff">; BD97 8D 21 06 .!.</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$01</font> <font color="#8080ff">; BD9A A9 01 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff"> $0688 </font> <font color="#8080ff">; BD9C 8D 88 06 ...</font> + <font color="#00ff00">rts</font> <font color="#8080ff">; BD9F 60 `</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; used to draw the large WELL DONE banner</font> +<font color="#00ffff">well_done_shape</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; BDA0 04 00 00 01 01 01 01 05 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; BDA8 00 01 01 01 01 01 03 05 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$05</font> <font color="#8080ff">; BDB0 00 02 01 01 01 01 03 05 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$04</font> <font color="#8080ff">; BDB8 00 03 01 01 01 01 03 04 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$03</font>,<font color="#ff6060">$FF</font> <font color="#8080ff">; BDC0 01 04 03 03 03 03 FF .......</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; DLI service routine, changes COLBK, address gets stored in $6ae/$6af by code at $bc3c</font> +<font color="#00ffff">dli_service_2</font>: + <font color="#00ff00">pha</font> <font color="#8080ff">; BDC7 48 H</font> + <font color="#00ff00">lda</font> <font color="#ff6060">#$C4</font> <font color="#8080ff">; BDC8 A9 C4 ..</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">WSYNC</font> <font color="#8080ff">; BDCA 8D 0A D4 ...</font> + <font color="#00ff00">sta</font> <font color="#ff40ff">COLBK</font> <font color="#8080ff">; BDCD 8D 1A D0 ...</font> + <font color="#00ff00">pla</font> <font color="#8080ff">; BDD0 68 h</font> +<font color="#00ffff">LBDD1</font>: <font color="#00ff00">rti</font> <font color="#8080ff">; BDD1 40 @</font> + +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; not sure what displays this, but it's screen codes</font> +<font color="#00ffff">total_score_msg</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$74</font>,<font color="#ff6060">$6F</font>,<font color="#ff6060">$74</font>,<font color="#ff6060">$61</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$73</font>,<font color="#ff6060">$63</font> <font color="#8080ff">; BDD2 74 6F 74 61 6C 00 73 63 total.sc</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$6F</font>,<font color="#ff6060">$72</font>,<font color="#ff6060">$65</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$26</font>,<font color="#ff6060">$29</font>,<font color="#ff6060">$2C</font> <font color="#8080ff">; BDDA 6F 72 65 33 00 26 29 2C ore3.&),</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$25</font>,<font color="#ff6060">$33</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BDE2 25 33 00 00 00 00 00 00 %3......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BDEA 00 00 00 00 00 00 00 00 ........</font> +<font color="#00ffff">sfx00</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$79</font> <font color="#8080ff">; BDF2 01 A5 02 79 08 A2 08 79 ...y...y</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$C1</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$C1</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$F3</font> <font color="#8080ff">; BDFA 08 A2 08 C1 10 C1 10 F3 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$F5</font>,<font color="#ff6060">$BD</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$79</font> <font color="#8080ff">; BE02 20 F3 20 02 F5 BD 02 79 . ....y</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$5B</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$51</font> <font color="#8080ff">; BE0A 08 6C 08 60 08 5B 08 51 .l.`.[.Q</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$5B</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$79</font> <font color="#8080ff">; BE12 08 5B 08 60 08 6C 08 79 .[.`.l.y</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BE1A 10 A2 10 F3 20 01 A0 00 .... ...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0A</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BE22 0A 80 00 ...</font> +<font color="#00ffff">sfx01</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$48</font> <font color="#8080ff">; BE25 01 A6 02 3C 20 51 20 48 ...< Q H</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$3C</font> <font color="#8080ff">; BE2D 08 51 08 48 08 40 08 3C .Q.H.@.<</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$51</font> <font color="#8080ff">; BE35 10 3C 20 3C 10 51 10 51 .< <.Q.Q</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$40</font> <font color="#8080ff">; BE3D 10 48 08 51 08 48 08 40 .H.Q.H.@</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$48</font> <font color="#8080ff">; BE45 08 3C 20 3C 20 51 20 48 .< < Q H</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$3C</font> <font color="#8080ff">; BE4D 08 51 08 48 08 40 08 3C .Q.H.@.<</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$2F</font> <font color="#8080ff">; BE55 10 3C 10 3C 08 35 08 2F .<.<.5./</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$2D</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$28</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$2D</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$2F</font> <font color="#8080ff">; BE5D 08 2D 08 28 08 2D 08 2F .-.(.-./</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$60</font> <font color="#8080ff">; BE65 08 35 08 3C 08 51 08 60 .5.<.Q.`</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$81</font> <font color="#8080ff">; BE6D 08 51 08 79 20 00 01 81 .Q.y ...</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$00</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BE75 00 32 01 00 .2..</font> +<font color="#00ffff">sfx_extra_life</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A8</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$05</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$0F</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$0A</font> <font color="#8080ff">; BE79 01 A8 00 05 02 0F 02 0A ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$0F</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$19</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$14</font> <font color="#8080ff">; BE81 02 14 02 0F 02 19 02 14 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$02</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BE89 02 1E 02 00 ....</font> +<font color="#8080ff">; end of game tune, melody</font> +<font color="#00ffff">sfx02</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$3C</font> <font color="#8080ff">; BE8D 01 A5 02 3C 10 51 10 3C ...<.Q.<</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$44</font> <font color="#8080ff">; BE95 10 51 10 44 08 44 08 44 .Q.D.D.D</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$5B</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$4C</font> <font color="#8080ff">; BE9D 08 44 08 44 10 5B 10 4C .D.D.[.L</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$66</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$51</font> <font color="#8080ff">; BEA5 10 66 10 4C 10 66 10 51 .f.L.f.Q</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BEAD 40 00 @.</font> +<font color="#8080ff">; end of game tune, bass</font> +<font color="#00ffff">sfx03</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A4</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$F3</font> <font color="#8080ff">; BEAF 01 A4 02 79 10 A2 10 F3 ...y....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$88</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$B6</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$D9</font> <font color="#8080ff">; BEB7 10 79 10 88 10 B6 10 D9 .y......</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$88</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$99</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$CC</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$CC</font> <font color="#8080ff">; BEBF 10 88 10 99 10 CC 10 CC ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$99</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$99</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$A2</font> <font color="#8080ff">; BEC7 10 99 10 A2 08 99 08 A2 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$08</font>,<font color="#ff6060">$99</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BECF 08 99 08 A2 20 00 .... .</font> +<font color="#8080ff">; end level tune #1, bass</font> +<font color="#00ffff">sfx04</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$79</font> <font color="#8080ff">; BED5 01 A5 02 79 14 A2 14 79 ...y...y</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$14</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$F3</font> <font color="#8080ff">; BEDD 14 A2 14 79 14 A2 14 F3 ...y....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$14</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$D8</font>,<font color="#ff6060">$BE</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BEE5 14 A2 14 02 D8 BE 01 00 ........</font> +<font color="#8080ff">; end level tune #1, melody</font> +<font color="#00ffff">sfx05</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$A0</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; BEED 01 A0 00 0A A0 01 A6 02 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$51</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$55</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$0A</font> <font color="#8080ff">; BEF5 51 0A 55 0A 51 0A 4C 0A Q.U.Q.L.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$51</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$0A</font> <font color="#8080ff">; BEFD 51 0A 4C 0A 48 0A 4C 0A Q.L.H.L.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$48</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$48</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$0A</font> <font color="#8080ff">; BF05 48 0A 44 0A 48 0A 44 0A H.D.H.D.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BF0D 3C 0A 51 0A 3C 14 00 <.Q.<..</font> +<font color="#8080ff">; end level tune #2, melody</font> +<font color="#00ffff">sfx06</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$51</font> <font color="#8080ff">; BF14 01 A6 02 79 20 60 14 51 ...y `.Q</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$3C</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$5B</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$5B</font> <font color="#8080ff">; BF1C 3C 60 0A 5B 14 60 08 5B <`.[.`.[</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$14</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$5B</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$60</font> <font color="#8080ff">; BF24 14 60 08 5B 14 51 08 60 .`.[.Q.`</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$14</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BF2C 14 79 20 00 .y .</font> +<font color="#8080ff">; end level tune #2, bass</font> +<font color="#00ffff">sfx07</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$D9</font>,<font color="#ff6060">$0A</font>,<font color="#ff6060">$C1</font> <font color="#8080ff">; BF30 01 A6 02 F3 0A D9 0A C1 ........</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0A</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$1E</font>,<font color="#ff6060">$C1</font> <font color="#8080ff">; BF38 0A A2 14 79 1E A2 1E C1 ...y....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$0A</font>,<font color="#ff6060">$B6</font>,<font color="#ff6060">$50</font>,<font color="#ff6060">$C1</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$F3</font> <font color="#8080ff">; BF40 0A B6 50 C1 08 A2 14 F3 ..P.....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BF48 20 00 .</font> +<font color="#8080ff">; end level tune #3, bass</font> +<font color="#00ffff">sfx08</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A8</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$79</font> <font color="#8080ff">; BF4A 01 A8 02 79 30 A2 20 79 ...y0. y</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$A3</font> <font color="#8080ff">; BF52 20 51 10 A2 30 6C 20 A3 Q..0l .</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$6C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$70</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BF5A 20 6C 10 79 70 00 l.yp.</font> +<font color="#8080ff">; end level tune #3, melody</font> +<font color="#00ffff">sfx09</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$51</font> <font color="#8080ff">; BF60 01 A5 02 79 10 60 10 51 ...y.`.Q</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$44</font> <font color="#8080ff">; BF68 10 3C 20 35 10 3C 10 44 .< 5.<.D</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$5B</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$6C</font> <font color="#8080ff">; BF70 10 40 10 51 20 5B 20 6C .@.Q [ l</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$80</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$51</font> <font color="#8080ff">; BF78 20 80 10 79 10 60 10 51 ..y.`.Q</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BF80 10 3C 40 00 .<@.</font> +<font color="#8080ff">; end level tune #4, melody</font> +<font color="#00ffff">sfx10</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$2D</font>,<font color="#ff6060">$12</font>,<font color="#ff6060">$32</font> <font color="#8080ff">; BF84 01 A5 02 3C 20 2D 12 32 ...< -.2</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$08</font>,<font color="#ff6060">$44</font>,<font color="#ff6060">$14</font>,<font color="#ff6060">$4C</font> <font color="#8080ff">; BF8C 20 3C 20 4C 08 44 14 4C < L.D.L</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$09</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$44</font> <font color="#8080ff">; BF94 09 40 20 32 20 40 09 44 .@ 2 @.D</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$09</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$5B</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$4C</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$5B</font> <font color="#8080ff">; BF9C 09 4C 09 5B 09 4C 09 5B .L.[.L.[</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$48</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BFA4 48 00 H.</font> +<font color="#8080ff">; end level tune #4, bass</font> +<font color="#00ffff">sfx11</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$02</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$B6</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$99</font> <font color="#8080ff">; BFA6 01 A6 02 79 20 B6 30 99 ...y .0.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$88</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$99</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$E6</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$99</font> <font color="#8080ff">; BFAE 20 88 09 99 20 E6 30 99 ... .0.</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$20</font>,<font color="#ff6060">$88</font>,<font color="#ff6060">$09</font>,<font color="#ff6060">$99</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$B6</font>,<font color="#ff6060">$3A</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BFB6 20 88 09 99 20 B6 3A 00 ... .:.</font> +<font color="#8080ff">; jumping sound</font> +<font color="#00ffff">sfx12</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$51</font> <font color="#8080ff">; BFBE 01 A5 00 79 04 60 04 51 ...y.`.Q</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$51</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$60</font>,<font color="#ff6060">$04</font>,<font color="#ff6060">$79</font> <font color="#8080ff">; BFC6 04 3C 04 51 04 60 04 79 .<.Q.`.y</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$04</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BFCE 04 00 ..</font> +<font color="#8080ff">; funeral march melody</font> +<font color="#00ffff">sfx13</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A5</font>,<font color="#ff6060">$01</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$3C</font> <font color="#8080ff">; BFD0 01 A5 01 3C 20 3C 10 3C ...< <.<</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$20</font>,<font color="#ff6060">$32</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$35</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$35</font> <font color="#8080ff">; BFD8 10 3C 20 32 10 35 10 35 .< 2.5.5</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$10</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$3C</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$40</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$3C</font> <font color="#8080ff">; BFE0 10 3C 10 3C 10 40 10 3C .<.<.@.<</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$40</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BFE8 40 00 @.</font> +<font color="#8080ff">; funeral march bass</font> +<font color="#00ffff">sfx14</font>: .<font color="#ffff00">byte</font> <font color="#ff6060">$01</font>,<font color="#ff6060">$A6</font>,<font color="#ff6060">$00</font>,<font color="#ff6060">$79</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$02</font> <font color="#8080ff">; BFEA 01 A6 00 79 10 A2 10 02 ...y....</font> + .<font color="#ffff00">byte</font> <font color="#ff6060">$ED</font>,<font color="#ff6060">$BF</font>,<font color="#ff6060">$06</font>,<font color="#ff6060">$F3</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$A2</font>,<font color="#ff6060">$10</font>,<font color="#ff6060">$00</font> <font color="#8080ff">; BFF2 ED BF 06 F3 10 A2 10 00 ........</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; main entry point, note cartstart_left and cartstart_right point to the same address</font> +<font color="#00ffff">cartstart_left</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">cart_entry_point</font> <font color="#8080ff">; BFFA C0 8A ..</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; 0 here means 'cartridge present'</font> +<font color="#00ffff">cartpresent_left</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $00 </font> <font color="#8080ff">; BFFC 00 .</font> +<font color="#8080ff">; 4 here means init & start the cart, no disk boot, non-diagnostic</font> +<font color="#00ffff">cartoptions_left</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $04 </font> <font color="#8080ff">; BFFD 04 .</font> +<font color="#8080ff">; ----------------------------------------------------------------------------</font> +<font color="#8080ff">; points to a CLC/RTS do-nothing routine (same as cartinit_right)</font> +<font color="#00ffff">cartinit_left</font>: + .<font color="#00ffff">addr</font> <font color="#00ffff">cart_start_stub</font> <font color="#8080ff">; BFFE FE 8A ..</font> +</pre> +</body> +</html> |