diff options
author | B. Watson <yalhcru@gmail.com> | 2016-09-04 17:26:52 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-09-04 17:26:52 -0400 |
commit | bd22b14a194c56beea44caa28f38df6dce499b54 (patch) | |
tree | 8988741264ea467a48d43ba2fb80d1f93a275f07 /jumpmanjr.html | |
parent | 50b84516b09d9502a6eb258b17fd84eacbc2504e (diff) | |
download | jumpmanjr-bd22b14a194c56beea44caa28f38df6dce499b54.tar.gz |
regenerate jumpmanjr.html
Diffstat (limited to 'jumpmanjr.html')
-rw-r--r-- | jumpmanjr.html | 174 |
1 files changed, 102 insertions, 72 deletions
diff --git a/jumpmanjr.html b/jumpmanjr.html index 49cdb12..c312535 100644 --- a/jumpmanjr.html +++ b/jumpmanjr.html @@ -7,7 +7,7 @@ <body bgcolor="#000000" text="#ffffff"> <pre> <font color="#8080ff">; da65 V2.15 - Git 104f898</font> -<font color="#8080ff">; Created: 2016-09-04 04:12:02</font> +<font color="#8080ff">; Created: 2016-09-04 17:25:42</font> <font color="#8080ff">; Input file: jumpmanjr.rom</font> <font color="#8080ff">; Page: 1</font> @@ -85,6 +85,7 @@ <font color="#00ffff">player_x_pos</font> :=<font color="#ff40ff"> $067E </font> <font color="#8080ff">; stored in HPOSP0</font> <font color="#00ffff">player_y_pos</font> :=<font color="#ff40ff"> $0683 </font> <font color="#8080ff">; $C6 is the bottom of the level (where you end up when you die)</font> <font color="#00ffff">bullet_x_pos</font> :=<font color="#ff40ff"> $069B </font> <font color="#8080ff">; 4 bytes, meaning we can never have >4 bullets on screen at once (makes sense, GTIA only has 4 missiles)</font> +<font color="#00ffff">bullet_y_pos_minus_one</font>:=<font color="#ff40ff"> $069E</font> <font color="#00ffff">bullet_y_pos</font> :=<font color="#ff40ff"> $069F </font> <font color="#8080ff">; another 4 bytes</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> @@ -489,10 +490,11 @@ <font color="#00ff00">ldx</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 80D8 A2 08 ..</font> <font color="#00ffff">mul40_loop</font>: <font color="#00ff00">lsr</font> <font color="#00ffff">sa_tmp_1</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">bcc</font> <font color="#00ffff">mul40_no_add</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="#00ffff">mul40_no_add</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">mul40_loop</font> <font color="#8080ff">; 80E5 D0 F3 ..</font> @@ -516,7 +518,8 @@ <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="#00ffff">sa_tmp_2</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="#00ffff">calc_pixels</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="#00ffff">sa_tmp_1</font> <font color="#8080ff">; 8109 85 BD ..</font> <font color="#00ff00">lda</font> <font color="#00ffff">sa_tmp_2</font> <font color="#8080ff">; 810B A5 C8 ..</font> <font color="#00ff00">lsr</font> <font color="#00ffff">sa_tmp_1</font> <font color="#8080ff">; 810D 46 BD F.</font> @@ -539,15 +542,15 @@ <font color="#00ff00">inc</font> <font color="#00ffff">sa_tmp_2</font> <font color="#8080ff">; 812A E6 C8 ..</font> <font color="#00ff00">lda</font> <font color="#00ffff">sa_tmp_2</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">bcc</font> <font color="#00ffff">sa_hi_ok_2</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="#00ffff">sa_tmp_2</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="#00ffff">sa_hi_ok_2</font>: - <font color="#00ff00">bne</font> <font color="#00ffff">L813C</font> <font color="#8080ff">; 8138 D0 02 ..</font> + <font color="#00ff00">bne</font> <font color="#00ffff">sa_hi_ok_2</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="#00ffff">sa_hi_ok_2</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">calc_pixels</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> @@ -570,11 +573,11 @@ <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="#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_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> @@ -610,7 +613,7 @@ <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="#00ff00">jmp</font> <font color="#00ffff">is_slot_active</font> <font color="#8080ff">; 81AB 4C 68 81 Lh.</font> <font color="#8080ff">; ----------------------------------------------------------------------------</font> <font color="#8080ff">; y==0 on entry</font> @@ -623,9 +626,9 @@ <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">bne</font> <font color="#00ffff">is_slot_active</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="#00ff00">jmp</font> <font color="#00ffff">is_slot_active</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> @@ -673,9 +676,10 @@ <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">bcc</font> <font color="#00ffff">cpos_hi_ok</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="#00ffff">cpos_hi_ok</font>: + <font color="#00ff00">jmp</font> <font color="#00ffff">is_slot_active</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> @@ -702,12 +706,13 @@ <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="#00ffff">cue_ok</font>: <font color="#00ff00">beq</font> <font color="#00ffff">lp_ok</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="#8080ff">; copy to sfx_ptr, fall thru to cue_sfx</font> +<font color="#00ffff">lp_ok</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> @@ -716,12 +721,15 @@ <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="#00ffff">next_slot</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">beq</font> <font color="#00ffff">bump_slot</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">bne</font> <font color="#00ffff">next_slot</font> <font color="#8080ff">; 8264 D0 F7 ..</font> +<font color="#8080ff">; found a free slot, use it</font> +<font color="#00ffff">load_slot</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> @@ -734,56 +742,66 @@ <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="#8080ff">; couldn't find a free slot, look for a used slot with lower priority than this sfx has</font> +<font color="#00ffff">bump_slot</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$0A</font> <font color="#8080ff">; 8281 A2 0A ..</font> +<font color="#8080ff">; until we find one, or ran out of slots to look at</font> +<font color="#00ffff">bump_try_next</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="#8080ff">; branch to cue_done (give up) if all slots are in use with higher priority than this sfx (which means it won't be heard)</font> +<font color="#00ffff">bump_fail</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="#00ff00">bcc</font> <font color="#00ffff">load_slot</font> <font color="#8080ff">; 828D 90 D7 ..</font> + <font color="#00ff00">jmp</font> <font color="#00ffff">bump_try_next</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="#00ffff">pm_next</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="#00ffff">bullet_y_pos</font>+<font color="#ff6060">3</font>,<font color="#00ffff">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">beq</font> <font color="#00ffff">skip_pos</font> <font color="#8080ff">; 829E F0 06 ..</font> <font color="#00ff00">sta</font> <font color="#00ffff">bullet_y_pos</font>+<font color="#ff6060">3</font>,<font color="#00ffff">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="#00ffff">bullet_x_pos</font>+<font color="#ff6060">3</font>,<font color="#00ffff">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="#00ffff">skip_pos</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="#00ffff">bullet_y_pos_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 82A9 DD 9E 06 ...</font> + <font color="#00ff00">beq</font> <font color="#00ffff">pm_next</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">and</font> <font color="#00ffff">missiles_and_masks_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">and</font> <font color="#00ffff">missiles_and_masks_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="#00ffff">bullet_x_pos</font>+<font color="#ff6060">3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 82C1 BD 9E 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">bullet_y_pos_minus_one</font>,<font color="#00ffff">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">ora</font> <font color="#00ffff">missiles_or_masks_minus_one</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">ora</font> <font color="#00ffff">missiles_or_masks_minus_one</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="#00ff00">jmp</font> <font color="#00ffff">pm_next</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="#00ffff">missiles_and_masks_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="#00ffff">missiles_and_masks</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="#00ffff">missiles_or_masks_minus_one</font>: + .<font color="#ffff00">byte</font> <font color="#ff40ff"> $3F </font> <font color="#8080ff">; 82E3 3F ?</font> +<font color="#00ffff">missiles_or_masks</font>: + .<font color="#ffff00">byte</font> <font color="#ff6060">$03</font>,<font color="#ff6060">$0C</font>,<font color="#ff6060">$30</font>,<font color="#ff6060">$C0</font> <font color="#8080ff">; 82E4 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> @@ -796,11 +814,12 @@ <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="#00ffff">next_plr</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">beq</font> <font color="#00ffff">next_plr</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> @@ -824,13 +843,14 @@ <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">bne</font> <font color="#00ffff">skip_vert</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">beq</font> <font color="#00ffff">next_plr</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="#00ffff">skip_vert</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> @@ -866,7 +886,7 @@ <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="#00ff00">jmp</font> <font color="#00ffff">next_plr</font> <font color="#8080ff">; 8379 4C F3 82 L..</font> <font color="#8080ff">; ----------------------------------------------------------------------------</font> <font color="#00ffff">init_hardware</font>: @@ -932,10 +952,11 @@ <font color="#8080ff">; stub => map_draw_1_blank-1</font> <font color="#00ffff">copy_blank_1_map</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">stub</font>,<font color="#00ffff">x</font> <font color="#8080ff">; 83F2 BD 05 84 ...</font> +<font color="#00ffff">cb1_loop</font>: + <font color="#00ff00">lda</font> <font color="#00ffff">stub</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">bne</font> <font color="#00ffff">cb1_loop</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> @@ -977,10 +998,10 @@ <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">current_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">bcs</font> <font color="#00ffff">check_time_bonus</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">current_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">bcc</font> <font color="#00ffff">check_speed_timer</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="#00ffff">falling_flag</font> <font color="#8080ff">; 8455 EE 21 06 .!.</font> @@ -992,13 +1013,15 @@ <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="#00ffff">check_speed_timer</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">bcc</font> <font color="#00ffff">check_time_bonus</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="#00ffff">check_time_bonus</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> @@ -1042,24 +1065,28 @@ <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="#00ff00">jmp</font> <font color="#00ffff">copy_level_vecs</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="#8080ff">; copy work_level vectors to page 6</font> +<font color="#00ffff">copy_level_vecs</font>: + <font color="#00ff00">ldx</font> <font color="#ff6060">#$08</font> <font color="#8080ff">; 84D9 A2 08 ..</font> +<font color="#00ffff">next_vec</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">skip_vec</font> <font color="#8080ff">; 84DE F0 0E ..</font> <font color="#00ff00">sta</font> <font color="#00ffff">page6_vectors</font>+<font color="#ff6060">3</font>,<font color="#00ffff">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="#00ffff">page6_vectors</font>+<font color="#ff6060">2</font>,<font color="#00ffff">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="#00ffff">skip_vec</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">bne</font> <font color="#00ffff">next_vec</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> @@ -1089,7 +1116,7 @@ <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">beq</font> <font color="#00ffff">skip_dli</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> @@ -1101,7 +1128,8 @@ <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="#00ffff">skip_dli</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> @@ -1147,14 +1175,16 @@ <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">bcs</font> <font color="#00ffff">no_consol_pressed</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">beq</font> <font color="#00ffff">no_consol_pressed</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="#8080ff">; this probably is what rotates the PLAYER SPEED prompt colors. not sure what it's doing with the page 6 vectors.</font> +<font color="#00ffff">no_consol_pressed</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> @@ -1165,12 +1195,12 @@ <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="#00ffff">page6_vectors</font>+<font color="#ff6060">1</font>,<font color="#00ffff">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">beq</font> <font color="#00ffff">no_consol_pressed</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="#00ffff">page6_vectors</font>,<font color="#00ffff">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="#00ff00">jmp</font> <font color="#00ffff">no_consol_pressed</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> @@ -6001,7 +6031,7 @@ <font color="#00ff00">bne</font> <font color="#00ffff">LA845</font> <font color="#8080ff">; A852 D0 F1 ..</font> <font color="#00ff00">inc</font> <font color="#00ffff">bullet_y_delta</font>+<font color="#ff6060">1</font>,<font color="#00ffff">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="#00ffff">bullet_x_pos</font>+<font color="#ff6060">3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; A859 9D 9E 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">bullet_y_pos_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; A859 9D 9E 06 ...</font> <font color="#00ff00">lda</font> <font color="#00ffff">player_x_pos</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> @@ -6038,11 +6068,11 @@ <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="#00ffff">bullet_x_pos</font>+<font color="#ff6060">3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; A8A4 BD 9E 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">bullet_y_pos_minus_one</font>,<font color="#00ffff">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="#00ffff">bullet_x_pos</font>+<font color="#ff6060">3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; A8AD 9D 9E 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">bullet_y_pos_minus_one</font>,<font color="#00ffff">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> @@ -6065,9 +6095,9 @@ <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="#00ffff">bullet_x_pos</font>+<font color="#ff6060">3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; A8D6 BD 9E 06 ...</font> + <font color="#00ff00">lda</font> <font color="#00ffff">bullet_y_pos_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; A8D6 BD 9E 06 ...</font> <font color="#00ff00">adc</font> <font color="#00ffff">hellstone_deltas_2</font>,<font color="#00ffff">y</font> <font color="#8080ff">; A8D9 79 05 A9 y..</font> - <font color="#00ff00">sta</font> <font color="#00ffff">bullet_x_pos</font>+<font color="#ff6060">3</font>,<font color="#00ffff">x</font> <font color="#8080ff">; A8DC 9D 9E 06 ...</font> + <font color="#00ff00">sta</font> <font color="#00ffff">bullet_y_pos_minus_one</font>,<font color="#00ffff">x</font> <font color="#8080ff">; A8DC 9D 9E 06 ...</font> <font color="#00ff00">lda</font> <font color="#00ffff">hellstone_deltas_1</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> |