From 840593459b2a9e065caa273ee1bc32de03a236dc Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 30 Aug 2016 05:29:39 -0400 Subject: regen html --- jumpmanjr.html | 298 +++++++++++++++++++++++---------------------------------- 1 file changed, 119 insertions(+), 179 deletions(-) diff --git a/jumpmanjr.html b/jumpmanjr.html index be382c8..30220de 100644 --- a/jumpmanjr.html +++ b/jumpmanjr.html @@ -7,7 +7,7 @@
 ; da65 V2.15 - Git 104f898
-; Created:    2016-08-30 01:18:47
+; Created:    2016-08-30 05:02:11
 ; Input file: jumpmanjr.rom
 ; Page:       1
 
@@ -145,7 +145,6 @@
 cur_level_offs_55:= $07F7                       ; unknown, always $00 $00 $00
 cur_level_offs_58:= $07FA                       ; unknown, not a ROM address
 cur_level_offs_60:= $07FC                       ; unknown, level05 (walls) has $ff $ff $ff $ff, all others $00 $00 $00 $00
-L0830           := $0830
 game_display_list:= $0881                       ; display list for game board
 pm_memory       := $2800
 HPOSP0_minus_two:= $CFFE
@@ -1489,16 +1488,10 @@
         rts                                     ; 88BD 60                       `
 
 ; ----------------------------------------------------------------------------
-        brk                                     ; 88BE 00                       .
-        brk                                     ; 88BF 00                       .
-        brk                                     ; 88C0 00                       .
-        brk                                     ; 88C1 00                       .
-        brk                                     ; 88C2 00                       .
-        brk                                     ; 88C3 00                       .
-        brk                                     ; 88C4 00                       .
-        brk                                     ; 88C5 00                       .
-        brk                                     ; 88C6 00                       .
-        brk                                     ; 88C7 00                       .
+zero_filler_88be:
+        .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; 88BE 00 00 00 00 00 00 00 00  ........
+        .byte   $00,$00                         ; 88C6 00 00                    ..
+; ----------------------------------------------------------------------------
 check_consol:
         lda     player_delta_x                  ; 88C8 AD 30 06                 .0.
         ora     player_delta_y                  ; 88CB 0D 31 06                 .1.
@@ -1529,13 +1522,9 @@
         jmp     init_game                       ; 88F6 4C 00 90                 L..
 
 ; ----------------------------------------------------------------------------
-        brk                                     ; 88F9 00                       .
-        brk                                     ; 88FA 00                       .
-        brk                                     ; 88FB 00                       .
-        brk                                     ; 88FC 00                       .
-        brk                                     ; 88FD 00                       .
-        brk                                     ; 88FE 00                       .
-        brk                                     ; 88FF 00                       .
+zero_filler_88f9:
+        .byte   $00,$00,$00,$00,$00,$00,$00     ; 88F9 00 00 00 00 00 00 00     .......
+; ----------------------------------------------------------------------------
         lda     $0621                           ; 8900 AD 21 06                 .!.
         beq     L890F                           ; 8903 F0 0A                    ..
         lda     $0623                           ; 8905 AD 23 06                 .#.
@@ -1758,63 +1747,22 @@
 ; another jump-to-itself empty display list
 blank_dlist_8aeb:
         .byte   $41,$EB,$8A                     ; 8AEB 41 EB 8A                 A..
+zero_filler_8aee:
+        .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; 8AEE 00 00 00 00 00 00 00 00  ........
+        .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; 8AF6 00 00 00 00 00 00 00 00  ........
 ; ----------------------------------------------------------------------------
-        brk                                     ; 8AEE 00                       .
-        brk                                     ; 8AEF 00                       .
-        brk                                     ; 8AF0 00                       .
-        brk                                     ; 8AF1 00                       .
-        brk                                     ; 8AF2 00                       .
-        brk                                     ; 8AF3 00                       .
-        brk                                     ; 8AF4 00                       .
-        brk                                     ; 8AF5 00                       .
-        brk                                     ; 8AF6 00                       .
-        brk                                     ; 8AF7 00                       .
-        brk                                     ; 8AF8 00                       .
-        brk                                     ; 8AF9 00                       .
-        brk                                     ; 8AFA 00                       .
-        brk                                     ; 8AFB 00                       .
-        brk                                     ; 8AFC 00                       .
-        brk                                     ; 8AFD 00                       .
 cart_start_stub:
         clc                                     ; 8AFE 18                       .
         rts                                     ; 8AFF 60                       `
 
 ; ----------------------------------------------------------------------------
-        brk                                     ; 8B00 00                       .
-        brk                                     ; 8B01 00                       .
-        brk                                     ; 8B02 00                       .
-        brk                                     ; 8B03 00                       .
-        brk                                     ; 8B04 00                       .
-        brk                                     ; 8B05 00                       .
-        brk                                     ; 8B06 00                       .
-        brk                                     ; 8B07 00                       .
-        brk                                     ; 8B08 00                       .
-        brk                                     ; 8B09 00                       .
-        brk                                     ; 8B0A 00                       .
-        brk                                     ; 8B0B 00                       .
-        brk                                     ; 8B0C 00                       .
-        brk                                     ; 8B0D 00                       .
-        brk                                     ; 8B0E 00                       .
-        brk                                     ; 8B0F 00                       .
-        brk                                     ; 8B10 00                       .
-        brk                                     ; 8B11 00                       .
-        brk                                     ; 8B12 00                       .
-        brk                                     ; 8B13 00                       .
-        brk                                     ; 8B14 00                       .
-        brk                                     ; 8B15 00                       .
-        brk                                     ; 8B16 00                       .
-        brk                                     ; 8B17 00                       .
-        brk                                     ; 8B18 00                       .
-        brk                                     ; 8B19 00                       .
-        brk                                     ; 8B1A 00                       .
-        brk                                     ; 8B1B 00                       .
-        brk                                     ; 8B1C 00                       .
-        brk                                     ; 8B1D 00                       .
-        brk                                     ; 8B1E 00                       .
-        brk                                     ; 8B1F 00                       .
-        brk                                     ; 8B20 00                       .
-        brk                                     ; 8B21 00                       .
-        brk                                     ; 8B22 00                       .
+zero_filler_8b00:
+        .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; 8B00 00 00 00 00 00 00 00 00  ........
+        .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; 8B08 00 00 00 00 00 00 00 00  ........
+        .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; 8B10 00 00 00 00 00 00 00 00  ........
+        .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; 8B18 00 00 00 00 00 00 00 00  ........
+        .byte   $00,$00,$00                     ; 8B20 00 00 00                 ...
+; ----------------------------------------------------------------------------
 L8B23:  ldx     #$20                            ; 8B23 A2 20                    . 
         lda     #$00                            ; 8B25 A9 00                    ..
 L8B27:  sta     $075F,x                         ; 8B27 9D 5F 07                 ._.
@@ -2037,14 +1985,9 @@
         rti                                     ; 8CB3 40                       @
 
 ; ----------------------------------------------------------------------------
-        brk                                     ; 8CB4 00                       .
-        brk                                     ; 8CB5 00                       .
-        brk                                     ; 8CB6 00                       .
-        brk                                     ; 8CB7 00                       .
-        brk                                     ; 8CB8 00                       .
-        brk                                     ; 8CB9 00                       .
-        brk                                     ; 8CBA 00                       .
-        brk                                     ; 8CBB 00                       .
+zero_filler_8cb4:
+        .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; 8CB4 00 00 00 00 00 00 00 00  ........
+; ----------------------------------------------------------------------------
 ; also adds extra life every 7500 points
 update_score_display:
         ldx     #$03                            ; 8CBC A2 03                    ..
@@ -2129,6 +2072,8 @@
         bne     L8D43                           ; 8D4C D0 F5                    ..
         cmp     #$00                            ; 8D4E C9 00                    ..
         bne     L8D08                           ; 8D50 D0 B6                    ..
+; well_done_screen jumps here via work_level_sub1
+well_done_scores:
         lda     #$00                            ; 8D52 A9 00                    ..
         sta     AUDF1                           ; 8D54 8D 00 D2                 ...
         sta     AUDC1                           ; 8D57 8D 01 D2                 ...
@@ -2168,15 +2113,10 @@
         rts                                     ; 8D96 60                       `
 
 ; ----------------------------------------------------------------------------
-        brk                                     ; 8D97 00                       .
-        brk                                     ; 8D98 00                       .
-        brk                                     ; 8D99 00                       .
-        brk                                     ; 8D9A 00                       .
-        brk                                     ; 8D9B 00                       .
-        brk                                     ; 8D9C 00                       .
-        brk                                     ; 8D9D 00                       .
-        brk                                     ; 8D9E 00                       .
-        brk                                     ; 8D9F 00                       .
+zero_filler_8d97:
+        .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; 8D97 00 00 00 00 00 00 00 00  ........
+        .byte   $00                             ; 8D9F 00                       .
+; ----------------------------------------------------------------------------
 L8DA0:  lda     level                           ; 8DA0 AD F6 06                 ...
         cmp     #$0B                            ; 8DA3 C9 0B                    ..
         beq     L8DAA                           ; 8DA5 F0 03                    ..
@@ -2207,7 +2147,9 @@
         rts                                     ; 8DCC 60                       `
 
 ; ----------------------------------------------------------------------------
-        brk                                     ; 8DCD 00                       .
+zero_filler_8dcd:
+        .byte   $00                             ; 8DCD 00                       .
+; ----------------------------------------------------------------------------
 ; bonus -= 100;
 decrement_time_bonus:
         lda     work_level_time_bonus           ; 8DCE AD 91 07                 ...
@@ -2286,8 +2228,9 @@
         jmp     end_of_level_bonus              ; 8E64 4C 00 B8                 L..
 
 ; ----------------------------------------------------------------------------
-        brk                                     ; 8E67 00                       .
-        brk                                     ; 8E68 00                       .
+zero_filler_8e67:
+        .byte   $00,$00                         ; 8E67 00 00                    ..
+; ----------------------------------------------------------------------------
         lda     $0622                           ; 8E69 AD 22 06                 .".
         beq     L8E75                           ; 8E6C F0 07                    ..
         lda     $0623                           ; 8E6E AD 23 06                 .#.
@@ -2570,7 +2513,7 @@
         sta     select_key_enabled              ; 901B 8D C7 06                 ...
         ldx     #$08                            ; 901E A2 08                    ..
         lda     #$FF                            ; 9020 A9 FF                    ..
-; 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
+; 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.
 try_to_write_rom:
         sta     block_char_minus_one,x          ; 9022 9D 0F 9E                 ...
         dex                                     ; 9025 CA                       .
@@ -2599,6 +2542,8 @@
         sta     AUDC1                           ; 9057 8D 01 D2                 ...
         lda     #$ED                            ; 905A A9 ED                    ..
         sta     dli_vec_shadow_lo               ; 905C 8D AE 06                 ...
+; set work_level_sub0 to title_screen_color_snd
+ts_setup_sub0:
         lda     #$92                            ; 905F A9 92                    ..
         sta     dli_vec_shadow_hi               ; 9061 8D AF 06                 ...
         lda     #$3C                            ; 9064 A9 3C                    .<
@@ -2680,37 +2625,35 @@
         beq     try_to_write_rom_again          ; 910E F0 16                    ..
         cmp     #$20                            ; 9110 C9 20                    . 
         bcc     L910A                           ; 9112 90 F6                    ..
+; set work_level_sub0 to $06e6 (just an RTS)
+ts_clear_sub0:
         lda     #$E6                            ; 9114 A9 E6                    ..
         sta     work_level_sub0                 ; 9116 8D 82 07                 ...
         lda     #$06                            ; 9119 A9 06                    ..
         sta     work_level_sub0+1               ; 911B 8D 83 07                 ...
         lda     #$08                            ; 911E A9 08                    ..
         sta     COLOR0                          ; 9120 8D C4 02                 ...
-        jmp     LB96B                           ; 9123 4C 6B B9                 Lk.
+        jmp     demo_mode                       ; 9123 4C 6B B9                 Lk.
 
 ; ----------------------------------------------------------------------------
-; see comment at try_to_write_rom
+; see comment at try_to_write_rom. this writes something else to the block character in the font, which causes the graphics corruption on cracked disk versions. it doesn't seem to actually hurt anything though.
 try_to_write_rom_again:
         ldx     #$08                            ; 9126 A2 08                    ..
-L9128:  lda     L9133,x                         ; 9128 BD 33 91                 .3.
+L9128:  lda     replacement_block_char_minus_one,x; 9128 BD 33 91               .3.
         sta     block_char_minus_one,x          ; 912B 9D 0F 9E                 ...
         dex                                     ; 912E CA                       .
         bne     L9128                           ; 912F D0 F7                    ..
-L9133           := * + 2
+replacement_block_char_minus_one:= * + 2        ; 1-indexed...
         jmp     L910A                           ; 9131 4C 0A 91                 L..
 
 ; ----------------------------------------------------------------------------
-data_9134:
-        .byte   $BF,$BF,$CF,$EF,$E7,$DB         ; 9134 BF BF CF EF E7 DB        ......
+replacement_block_char:
+        .byte   $BF,$BF,$CF,$EF,$E7,$DB,$D9,$BF ; 9134 BF BF CF EF E7 DB D9 BF  ........
 ; ----------------------------------------------------------------------------
-; this might be more data for the above table instead of code?
-maybe_data:
-        cmp     LADBF,y                         ; 913A D9 BF AD                 ...
-; this probably really is code
-probly_code:
-        rol     a                               ; 913D 2A                       *
-        asl     $8D                             ; 913E 06 8D                    ..
-        cpy     $02                             ; 9140 C4 02                    ..
+; rotate colors and play the descending tone as the letters appear on the title screen
+title_screen_color_snd:
+        lda     $062A                           ; 913C AD 2A 06                 .*.
+        sta     COLOR0                          ; 913F 8D C4 02                 ...
         ldy     $9C                             ; 9142 A4 9C                    ..
         cpy     #$07                            ; 9144 C0 07                    ..
         beq     L9164                           ; 9146 F0 1C                    ..
@@ -2726,7 +2669,9 @@
         lsr     a                               ; 9157 4A                       J
         ora     #$60                            ; 9158 09 60                    .`
         sta     COLOR3                          ; 915A 8D C7 02                 ...
-        lda     L928F,y                         ; 915D B9 8F 92                 ...
+        lda     title_letters,y                 ; 915D B9 8F 92                 ...
+; $3000 is screen memory, at this point
+show_letter:
         sta     $3045,y                         ; 9160 99 45 30                 .E0
         rts                                     ; 9163 60                       `
 
@@ -2809,7 +2754,9 @@
         .byte   $62,$79,$5A,$40,$72,$61,$6E,$64 ; 9277 62 79 5A 40 72 61 6E 64  byZ@rand
         .byte   $79,$40,$67,$6C,$6F,$76,$65,$72 ; 927F 79 40 67 6C 6F 76 65 72  y@glover
         .byte   $40,$40,$40,$40,$40,$40,$40,$40 ; 9287 40 40 40 40 40 40 40 40  @@@@@@@@
-L928F:  .byte   $EA,$F5,$ED,$F0,$ED,$E1,$EE,$00 ; 928F EA F5 ED F0 ED E1 EE 00  ........
+; JUMPMAN JUNIOR in screen codes with high bit set
+title_letters:
+        .byte   $EA,$F5,$ED,$F0,$ED,$E1,$EE,$00 ; 928F EA F5 ED F0 ED E1 EE 00  ........
         .byte   $EA,$F5,$EE,$E9,$EF,$F2,$00     ; 9297 EA F5 EE E9 EF F2 00     .......
 L929E:  .byte   $6A,$76,$00,$82,$8E             ; 929E 6A 76 00 82 8E           jv...
 L92A3:  .byte   $00,$02,$00,$04,$06             ; 92A3 00 02 00 04 06           .....
@@ -3372,22 +3319,10 @@
         rts                                     ; 97EF 60                       `
 
 ; ----------------------------------------------------------------------------
-        brk                                     ; 97F0 00                       .
-        brk                                     ; 97F1 00                       .
-        brk                                     ; 97F2 00                       .
-        brk                                     ; 97F3 00                       .
-        brk                                     ; 97F4 00                       .
-        brk                                     ; 97F5 00                       .
-        brk                                     ; 97F6 00                       .
-        brk                                     ; 97F7 00                       .
-        brk                                     ; 97F8 00                       .
-        brk                                     ; 97F9 00                       .
-        brk                                     ; 97FA 00                       .
-        brk                                     ; 97FB 00                       .
-        brk                                     ; 97FC 00                       .
-        brk                                     ; 97FD 00                       .
-        brk                                     ; 97FE 00                       .
-        brk                                     ; 97FF 00                       .
+zero_filler_97f0:
+        .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; 97F0 00 00 00 00 00 00 00 00  ........
+        .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; 97F8 00 00 00 00 00 00 00 00  ........
+; ----------------------------------------------------------------------------
         lda     $0621                           ; 9800 AD 21 06                 .!.
         bne     L9806                           ; 9803 D0 01                    ..
 L9805:  rts                                     ; 9805 60                       `
@@ -3916,16 +3851,18 @@
         rti                                     ; 9BC5 40                       @
 
 ; ----------------------------------------------------------------------------
+; filler, or leftover after a binary patch?
+random_9b:
         .byte   $9B                             ; 9BC6 9B                       .
+; ----------------------------------------------------------------------------
         sta     VDSLST+1                        ; 9BC7 8D 01 02                 ...
         pla                                     ; 9BCA 68                       h
         rti                                     ; 9BCB 40                       @
 
 ; ----------------------------------------------------------------------------
-        brk                                     ; 9BCC 00                       .
-        brk                                     ; 9BCD 00                       .
-        brk                                     ; 9BCE 00                       .
-        brk                                     ; 9BCF 00                       .
+zero_filler_9bcc:
+        .byte   $00,$00,$00,$00                 ; 9BCC 00 00 00 00              ....
+; ----------------------------------------------------------------------------
 L9BD0:  lda     number_of_players               ; 9BD0 AD F4 06                 ...
         cmp     #$00                            ; 9BD3 C9 00                    ..
         beq     L9BDA                           ; 9BD5 F0 03                    ..
@@ -3956,7 +3893,9 @@
 L9BFC:  jmp     enter_level                     ; 9BFC 4C BA 96                 L..
 
 ; ----------------------------------------------------------------------------
-        brk                                     ; 9BFF 00                       .
+zero_filler_9bff:
+        .byte   $00                             ; 9BFF 00                       .
+; ----------------------------------------------------------------------------
 ; only use of keyboard is to enter player speed before starting game
 keyboard_isr:
         txa                                     ; 9C00 8A                       .
@@ -4302,7 +4241,7 @@
 ; ----------------------------------------------------------------------------
 ; called when a bomb is picked up. $06E6 for most levels (just an RTS), or else a ROM subroutine
 level01_sub_bomb:
-        .addr   LA498                           ; A060 98 A4                    ..
+        .addr   electrocution_bomb_pickup       ; A060 98 A4                    ..
 ; called at start of level, $06E6 for some levels, or else a ROM subroutine
 level01_sub_start:
         .addr   L8036                           ; A062 36 80                    6.
@@ -4335,7 +4274,7 @@
 ; ----------------------------------------------------------------------------
 ; a subroutine
 level02_sub0:
-        .addr   LA6BD                           ; A082 BD A6                    ..
+        .addr   dumbwaiter_sub0                 ; A082 BD A6                    ..
 ; a subroutine
 level02_sub1:
         .addr   L0000                           ; A084 00 00                    ..
@@ -4344,7 +4283,7 @@
         .addr   L0000                           ; A086 00 00                    ..
 ; a subroutine
 level02_sub3:
-        .addr   LA724                           ; A088 24 A7                    $.
+        .addr   dumbwaiter_sub3                 ; A088 24 A7                    $.
 ; ----------------------------------------------------------------------------
 ; number of bombs to pick up on this level
 level02_num_bombs:
@@ -4398,7 +4337,7 @@
         .addr   L06E6                           ; A0A0 E6 06                    ..
 ; called at start of level, $06E6 for some levels, or else a ROM subroutine
 level02_sub_start:
-        .addr   LA68C                           ; A0A2 8C A6                    ..
+        .addr   dumbwaiter_setup                ; A0A2 8C A6                    ..
 ; always $9740 aka game_main_loop
 level02_sub6:
         .addr   game_main_loop                  ; A0A4 40 97                    @.
@@ -4428,7 +4367,7 @@
 ; ----------------------------------------------------------------------------
 ; a subroutine
 level03_sub0:
-        .addr   LA836                           ; A0C2 36 A8                    6.
+        .addr   hellstones_sub0                 ; A0C2 36 A8                    6.
 ; a subroutine
 level03_sub1:
         .addr   L0000                           ; A0C4 00 00                    ..
@@ -4437,7 +4376,7 @@
         .addr   L0000                           ; A0C6 00 00                    ..
 ; a subroutine
 level03_sub3:
-        .addr   LA827                           ; A0C8 27 A8                    '.
+        .addr   hellstones_sub3                 ; A0C8 27 A8                    '.
 ; ----------------------------------------------------------------------------
 ; number of bombs to pick up on this level
 level03_num_bombs:
@@ -5317,8 +5256,10 @@
         .byte   $2C,$00,$6C,$00,$8C,$00,$CC,$00 ; A48F 2C 00 6C 00 8C 00 CC 00  ,.l.....
         .byte   $FF                             ; A497 FF                       .
 ; ----------------------------------------------------------------------------
-LA498:  ldy     $B2                             ; A498 A4 B2                    ..
-        lda     data_table_a542,y               ; A49A B9 42 A5                 .B.
+; not sure what this actually does
+electrocution_bomb_pickup:
+        ldy     $B2                             ; A498 A4 B2                    ..
+        lda     data_a542,y                     ; A49A B9 42 A5                 .B.
         clc                                     ; A49D 18                       .
         adc     #$30                            ; A49E 69 30                    i0
         sta     $0680                           ; A4A0 8D 80 06                 ...
@@ -5406,8 +5347,8 @@
         jmp     L8F79                           ; A53F 4C 79 8F                 Ly.
 
 ; ----------------------------------------------------------------------------
-; dunno, referenced by routine at $A498
-data_table_a542:
+; dunno, referenced by electrocution_bomb_pickup
+data_a542:
         .byte   $0C                             ; A542 0C                       .
 LA543:  .byte   $05,$18,$09,$58,$05,$80,$15,$18 ; A543 05 18 09 58 05 80 15 18  ...X....
         .byte   $09,$28,$25,$4C,$1D,$80,$09,$18 ; A54B 09 28 25 4C 1D 80 09 18  .(%L....
@@ -5458,7 +5399,9 @@
 dw_platform_player:
         .byte   $FF,$FF,$FF,$AA,$55,$FF,$FF     ; A685 FF FF FF AA 55 FF FF     ....U..
 ; ----------------------------------------------------------------------------
-LA68C:  jsr     L8036                           ; A68C 20 36 80                  6.
+; gets called at start of level
+dumbwaiter_setup:
+        jsr     L8036                           ; A68C 20 36 80                  6.
         lda     #$06                            ; A68F A9 06                    ..
         sta     $0760                           ; A691 8D 60 07                 .`.
         ldy     #$2A                            ; A694 A0 2A                    .*
@@ -5483,7 +5426,9 @@
 LA6BC:  rts                                     ; A6BC 60                       `
 
 ; ----------------------------------------------------------------------------
-LA6BD:  lda     $06F5                           ; A6BD AD F5 06                 ...
+; gets called every frame
+dumbwaiter_sub0:
+        lda     $06F5                           ; A6BD AD F5 06                 ...
         beq     LA6BC                           ; A6C0 F0 FA                    ..
         cmp     #$01                            ; A6C2 C9 01                    ..
         bne     LA6DC                           ; A6C4 D0 16                    ..
@@ -5531,7 +5476,9 @@
         rts                                     ; A723 60                       `
 
 ; ----------------------------------------------------------------------------
-LA724:  lda     $0623                           ; A724 AD 23 06                 .#.
+; gets called every frame
+dumbwaiter_sub3:
+        lda     $0623                           ; A724 AD 23 06                 .#.
         cmp     #$02                            ; A727 C9 02                    ..
         beq     LA778                           ; A729 F0 4D                    .M
         lda     $0622                           ; A72B AD 22 06                 .".
@@ -5601,7 +5548,8 @@
         .byte   $6A,$00,$8A,$00,$2C,$00,$CC,$00 ; A81E 6A 00 8A 00 2C 00 CC 00  j...,...
         .byte   $FF                             ; A826 FF                       .
 ; ----------------------------------------------------------------------------
-LA827:  lda     $0619                           ; A827 AD 19 06                 ...
+hellstones_sub3:
+        lda     $0619                           ; A827 AD 19 06                 ...
         asl     a                               ; A82A 0A                       .
         asl     a                               ; A82B 0A                       .
         asl     a                               ; A82C 0A                       .
@@ -5611,7 +5559,8 @@
         jmp     check_collisions_1              ; A833 4C 73 8F                 Ls.
 
 ; ----------------------------------------------------------------------------
-LA836:  lda     $0623                           ; A836 AD 23 06                 .#.
+hellstones_sub0:
+        lda     $0623                           ; A836 AD 23 06                 .#.
         cmp     #$02                            ; A839 C9 02                    ..
         beq     LA842                           ; A83B F0 05                    ..
         lda     $0622                           ; A83D AD 22 06                 .".
@@ -5654,6 +5603,7 @@
         sta     $0767,x                         ; A888 9D 67 07                 .g.
         txa                                     ; A88B 8A                       .
         pha                                     ; A88C 48                       H
+play_hellstone_sfx:
         lda     #$0D                            ; A88D A9 0D                    ..
         sta     sfx_slot_tempo                  ; A88F 8D 3E 06                 .>.
         lda     #$A9                            ; A892 A9 A9                    ..
@@ -5715,6 +5665,7 @@
 data_table_a8fd:
         .byte   $00,$02,$02,$02,$02,$02,$02,$00 ; A8FD 00 02 02 02 02 02 02 00  ........
 LA905:  .byte   $FE,$FE,$FE,$00,$00,$02,$02,$02 ; A905 FE FE FE 00 00 02 02 02  ........
+sfx_hellstone:
         .byte   $01,$83,$00,$0A,$03,$00,$00,$00 ; A90D 01 83 00 0A 03 00 00 00  ........
         .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; A915 00 00 00 00 00 00 00 00  ........
         .byte   $00,$00,$00                     ; A91D 00 00 00                 ...
@@ -5995,7 +5946,6 @@
         and     #$0F                            ; ADB8 29 0F                    ).
         tay                                     ; ADBA A8                       .
         lda     data_table_adc7,y               ; ADBB B9 C7 AD                 ...
-LADBF           := * + 1
         sta     $075E,x                         ; ADBE 9D 5E 07                 .^.
 code_adc1:
         inc     $0768,x                         ; ADC1 FE 68 07                 .h.
@@ -6058,16 +6008,11 @@
         rti                                     ; AF0F 40                       @
 
 ; ----------------------------------------------------------------------------
-        cpx     #$00                            ; AF10 E0 00                    ..
-        sec                                     ; AF12 38                       8
-        jsr     L0830                           ; AF13 20 30 08                  0.
-        bmi     LAF1C                           ; AF16 30 04                    0.
-        asl     a                               ; AF18 0A                       .
-        asl     a                               ; AF19 0A                       .
-        asl     a                               ; AF1A 0A                       .
-; NMOS 6502 illegal opcode, NOP zp
-illegal_nop:
-        .byte   $04                             ; AF1B 04                       .
+; looks almost like code but it's bogus
+data_af10:
+        .byte   $E0,$00,$38,$20,$30,$08,$30,$04 ; AF10 E0 00 38 20 30 08 30 04  ..8 0.0.
+        .byte   $0A,$0A,$0A,$04                 ; AF18 0A 0A 0A 04              ....
+; ----------------------------------------------------------------------------
 LAF1C:  lda     $062A                           ; AF1C AD 2A 06                 .*.
         sta     PCOLR2                          ; AF1F 8D C2 02                 ...
         rts                                     ; AF22 60                       `
@@ -6794,21 +6739,10 @@
         jmp     L8668                           ; B7EE 4C 68 86                 Lh.
 
 ; ----------------------------------------------------------------------------
-        brk                                     ; B7F1 00                       .
-        brk                                     ; B7F2 00                       .
-        brk                                     ; B7F3 00                       .
-        brk                                     ; B7F4 00                       .
-        brk                                     ; B7F5 00                       .
-        brk                                     ; B7F6 00                       .
-        brk                                     ; B7F7 00                       .
-        brk                                     ; B7F8 00                       .
-        brk                                     ; B7F9 00                       .
-        brk                                     ; B7FA 00                       .
-        brk                                     ; B7FB 00                       .
-        brk                                     ; B7FC 00                       .
-        brk                                     ; B7FD 00                       .
-        brk                                     ; B7FE 00                       .
-        brk                                     ; B7FF 00                       .
+zero_filler_b7f1:
+        .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; B7F1 00 00 00 00 00 00 00 00  ........
+        .byte   $00,$00,$00,$00,$00,$00,$00     ; B7F9 00 00 00 00 00 00 00     .......
+; ----------------------------------------------------------------------------
 end_of_level_bonus:
         lda     level                           ; B800 AD F6 06                 ...
         asl     a                               ; B803 0A                       .
@@ -6891,7 +6825,6 @@
         .word   $007D,$0096,$00AF,$00C8         ; B8AF 7D 00 96 00 AF 00 C8 00  }.......
         .word   $00E1,$00FA,$0113,$012C         ; B8B7 E1 00 FA 00 13 01 2C 01  ......,.
 ; ----------------------------------------------------------------------------
-; all zeroes, filler?
 zero_filler_b8bf:
         .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; B8BF 00 00 00 00 00 00 00 00  ........
         .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; B8C7 00 00 00 00 00 00 00 00  ........
@@ -6916,11 +6849,15 @@
         .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; B95F 00 00 00 00 00 00 00 00  ........
         .byte   $00,$00,$00,$00                 ; B967 00 00 00 00              ....
 ; ----------------------------------------------------------------------------
-LB96B:  lda     #$00                            ; B96B A9 00                    ..
+; display all the levels, happens if left idle at the title screen
+demo_mode:
+        lda     #$00                            ; B96B A9 00                    ..
         sta     jiffy_timer_1                   ; B96D 8D 1A 06                 ...
-LB970:  lda     jiffy_timer_1                   ; B970 AD 1A 06                 ...
+; actually 64 jiffies, 1.067S ntsc, 1.28s pal
+wait_1_sec_2:
+        lda     jiffy_timer_1                   ; B970 AD 1A 06                 ...
         cmp     #$60                            ; B973 C9 60                    .`
-        bne     LB970                           ; B975 D0 F9                    ..
+        bne     wait_1_sec_2                    ; B975 D0 F9                    ..
         lda     #$00                            ; B977 A9 00                    ..
         sta     FR1                             ; B979 85 E0                    ..
         lda     #$00                            ; B97B A9 00                    ..
@@ -7079,7 +7016,6 @@
         rts                                     ; BAAA 60                       `
 
 ; ----------------------------------------------------------------------------
-; filler?
 zero_filler_baab:
         .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; BAAB 00 00 00 00 00 00 00 00  ........
         .byte   $00,$00,$00,$00,$00,$00,$00,$00 ; BAB3 00 00 00 00 00 00 00 00  ........
@@ -7193,14 +7129,16 @@
         sta     work_level_sub1+1               ; BC8A 8D 85 07                 ...
         lda     #$4C                            ; BC8D A9 4C                    .L
         sta     work_level_offs_46+7            ; BC8F 8D B5 07                 ...
-LBC92:  lda     work_level_sub1                 ; BC92 AD 84 07                 ...
+; wait for score screen to finish (I think, anyway)
+wd_wait_scores:
+        lda     work_level_sub1                 ; BC92 AD 84 07                 ...
         cmp     #$E6                            ; BC95 C9 E6                    ..
-        bne     LBC92                           ; BC97 D0 F9                    ..
+        bne     wd_wait_scores                  ; BC97 D0 F9                    ..
         lda     #$00                            ; BC99 A9 00                    ..
         sta     $06AB                           ; BC9B 8D AB 06                 ...
         jsr     setup_gameboard_dlist_jv        ; BC9E 20 15 80                  ..
         ldx     #$0B                            ; BCA1 A2 0B                    ..
-LBCA3:  lda     LBDD1,x                         ; BCA3 BD D1 BD                 ...
+LBCA3:  lda     total_score_msg_minus_one,x     ; BCA3 BD D1 BD                 ...
         sta     $3DE8,x                         ; BCA6 9D E8 3D                 ..=
         dex                                     ; BCA9 CA                       .
         bne     LBCA3                           ; BCAA D0 F7                    ..
@@ -7305,10 +7243,12 @@
         sta     WSYNC                           ; BDCA 8D 0A D4                 ...
         sta     COLBK                           ; BDCD 8D 1A D0                 ...
         pla                                     ; BDD0 68                       h
-LBDD1:  rti                                     ; BDD1 40                       @
+; 1-indexed
+total_score_msg_minus_one:
+        rti                                     ; BDD1 40                       @
 
 ; ----------------------------------------------------------------------------
-; not sure what displays this, but it's screen codes
+; screen codes, displayed by well_done_screen
 total_score_msg:
         .byte   $74,$6F,$74,$61,$6C,$00,$73,$63 ; BDD2 74 6F 74 61 6C 00 73 63  total.sc
         .byte   $6F,$72,$65,$33,$00,$26,$29,$2C ; BDDA 6F 72 65 33 00 26 29 2C  ore3.&),
-- 
cgit v1.2.3