{"schema":1,"platform":"c64","game":"aliens","part":"engine","title":"Aliens","build":"US Activision disk, 'Aliens [Activision].d64', a cracked copy: a Remember cracktro and trainer (22 KB BASIC file at $0801) in front of ten packed game files A0-A9","symbols_sha256":"d4819c73e996ab1efb3033c394fd81c5dbb424e45af9c09754c81ef64118ba7a","snapshot":{"file":"trainer-menu.vsf","sha256":"618bf96d1b35ee4fd2281adb573f1be1278fc7eade3f402538b4c083924a96f4"},"index":[{"a":2048,"n":"zero_pad","k":"table","len":15,"c":true},{"a":2063,"n":"clear_ram_to_bfff","k":"routine","len":5,"c":true},{"a":2066,"n":"b_0812","k":"branch","len":1,"c":false},{"a":2068,"n":"clear_ram_page","k":"routine","len":14,"c":true},{"a":2082,"n":"game_start","k":"routine","len":76,"c":true},{"a":2115,"n":"b_0843","k":"branch","len":1,"c":false},{"a":2120,"n":"b_0848","k":"branch","len":1,"c":false},{"a":2125,"n":"b_084D","k":"branch","len":1,"c":false},{"a":2130,"n":"b_0852","k":"branch","len":1,"c":false},{"a":2146,"n":"b_0862","k":"branch","len":1,"c":false},{"a":2158,"n":"main_new_game","k":"routine","len":46,"c":true},{"a":2171,"n":"j_087B","k":"branch","len":1,"c":false},{"a":2201,"n":"b_0899","k":"branch","len":1,"c":false},{"a":2204,"n":"stage_complete","k":"routine","len":16,"c":true},{"a":2220,"n":"stage_abort","k":"routine","len":5,"c":true},{"a":2225,"n":"stage_done","k":"routine","len":39,"c":true},{"a":2229,"n":"b_08B5","k":"branch","len":1,"c":false},{"a":2264,"n":"stage_skip","k":"routine","len":13,"c":true},{"a":2277,"n":"irq_to_level","k":"routine","len":30,"c":true},{"a":2307,"n":"reset_sound","k":"routine","len":20,"c":true},{"a":2327,"n":"set_vic_bank","k":"routine","len":13,"c":true},{"a":2340,"n":"clear_pages","k":"routine","len":5,"c":true},{"a":2343,"n":"b_0927","k":"branch","len":1,"c":false},{"a":2345,"n":"clear_pages_page","k":"routine","len":11,"c":true},{"a":2356,"n":"irq_handler","k":"routine","len":23,"c":true},{"a":2379,"n":"irq_raster_call","k":"routine","len":1,"c":true},{"a":2380,"n":"irq_raster_call_hi","k":"routine","len":6,"c":true},{"a":2381,"n":"b_094D","k":"branch","len":1,"c":false},{"a":2386,"n":"nmi_ignore","k":"routine","len":1,"c":true},{"a":2387,"n":"nmi_rti","k":"routine","len":3,"c":true},{"a":2390,"n":"nmi_abort","k":"routine","len":3,"c":true},{"a":2393,"n":"nmi_restart","k":"routine","len":17,"c":true},{"a":2410,"n":"irq_cia","k":"routine","len":36,"c":true},{"a":2432,"n":"b_0980","k":"branch","len":1,"c":false},{"a":2446,"n":"irq_brk","k":"routine","len":12,"c":true},{"a":2458,"n":"level_frame","k":"routine","len":3,"c":true},{"a":2461,"n":"frame_tick","k":"routine","len":19,"c":true},{"a":2480,"n":"restore_choose","k":"routine","len":65,"c":true},{"a":2537,"n":"b_09E9","k":"branch","len":1,"c":false},{"a":2545,"n":"restore_switch","k":"routine","len":48,"c":true},{"a":2585,"n":"b_0A19","k":"branch","len":1,"c":false},{"a":2593,"n":"frame_counters","k":"routine","len":74,"c":true},{"a":2643,"n":"b_0A53","k":"branch","len":1,"c":false},{"a":2644,"n":"b_0A54","k":"branch","len":1,"c":false},{"a":2656,"n":"b_0A60","k":"branch","len":1,"c":false},{"a":2659,"n":"b_0A63","k":"branch","len":1,"c":false},{"a":2667,"n":"frame_sprites_sound","k":"routine","len":28,"c":true},{"a":2689,"n":"b_0A81","k":"branch","len":1,"c":false},{"a":2695,"n":"idle_blank","k":"routine","len":14,"c":true},{"a":2708,"n":"r_0A94","k":"branch","len":1,"c":false},{"a":2709,"n":"wait_frames","k":"routine","len":15,"c":true},{"a":2716,"n":"b_0A9C","k":"branch","len":1,"c":false},{"a":2723,"n":"r_0AA3","k":"branch","len":1,"c":false},{"a":2724,"n":"install_vectors","k":"routine","len":93,"c":true},{"a":2741,"n":"b_0AB5","k":"branch","len":1,"c":false},{"a":2746,"n":"j_0ABA","k":"branch","len":1,"c":false},{"a":2791,"n":"b_0AE7","k":"branch","len":1,"c":false},{"a":2817,"n":"draw_char_block","k":"routine","len":21,"c":true},{"a":2838,"n":"dcb_copy_args","k":"routine","len":1,"c":true},{"a":2839,"n":"dcb_ret_lo","k":"routine","len":1,"c":true},{"a":2840,"n":"dcb_ret_hi","k":"routine","len":54,"c":true},{"a":2847,"n":"b_0B1F","k":"branch","len":1,"c":false},{"a":2859,"n":"b_0B2B","k":"branch","len":1,"c":false},{"a":2869,"n":"b_0B35","k":"branch","len":1,"c":false},{"a":2894,"n":"dcb_copy_glyph","k":"routine","len":1,"c":true},{"a":2895,"n":"dcb_glyph_lo","k":"routine","len":1,"c":true},{"a":2896,"n":"dcb_glyph_hi","k":"routine","len":2,"c":true},{"a":2898,"n":"dcb_bitmap_lo","k":"routine","len":1,"c":true},{"a":2899,"n":"dcb_bitmap_hi","k":"routine","len":38,"c":true},{"a":2916,"n":"b_0B64","k":"branch","len":1,"c":false},{"a":2937,"n":"key_init","k":"routine","len":13,"c":true},{"a":2950,"n":"keys_none","k":"routine","len":3,"c":true},{"a":2953,"n":"key_clear","k":"routine","len":11,"c":true},{"a":2957,"n":"b_0B8D","k":"branch","len":1,"c":false},{"a":2966,"n":"read_keys","k":"routine","len":25,"c":true},{"a":2991,"n":"key_row_loop","k":"routine","len":32,"c":true},{"a":3023,"n":"key_find_new","k":"routine","len":47,"c":true},{"a":3041,"n":"b_0BE1","k":"branch","len":1,"c":false},{"a":3045,"n":"b_0BE5","k":"branch","len":1,"c":false},{"a":3054,"n":"b_0BEE","k":"branch","len":1,"c":false},{"a":3061,"n":"b_0BF5","k":"branch","len":1,"c":false},{"a":3070,"n":"read_joysticks","k":"routine","len":39,"c":true},{"a":3109,"n":"text_origin","k":"routine","len":18,"c":true},{"a":3127,"n":"text_cursor","k":"routine","len":6,"c":true},{"a":3133,"n":"text_at","k":"routine","len":48,"c":true},{"a":3181,"n":"draw_char","k":"routine","len":39,"c":true},{"a":3219,"n":"b_0C93","k":"branch","len":1,"c":false},{"a":3220,"n":"glyph8_lo","k":"routine","len":1,"c":true},{"a":3221,"n":"glyph8_hi","k":"routine","len":22,"c":true},{"a":3239,"n":"b_0CA7","k":"branch","len":1,"c":false},{"a":3242,"n":"r_0CAA","k":"branch","len":1,"c":false},{"a":3243,"n":"draw_char_wide","k":"routine","len":38,"c":true},{"a":3280,"n":"b_0CD0","k":"branch","len":1,"c":false},{"a":3281,"n":"glyph4_lo","k":"routine","len":1,"c":true},{"a":3282,"n":"glyph4_hi","k":"routine","len":46,"c":true},{"a":3300,"n":"b_0CE4","k":"branch","len":1,"c":false},{"a":3324,"n":"b_0CFC","k":"branch","len":1,"c":false},{"a":3327,"n":"r_0CFF","k":"branch","len":1,"c":false},{"a":3328,"n":"print","k":"routine","len":13,"c":true},{"a":3341,"n":"print_wide","k":"routine","len":11,"c":true},{"a":3351,"n":"j_0D17","k":"branch","len":1,"c":false},{"a":3352,"n":"print_ptr","k":"routine","len":1,"c":true},{"a":3353,"n":"print_ptr_hi","k":"routine","len":14,"c":true},{"a":3366,"n":"b_0D26","k":"branch","len":1,"c":false},{"a":3367,"n":"print_drawer","k":"routine","len":1,"c":true},{"a":3368,"n":"print_drawer_hi","k":"routine","len":4,"c":true},{"a":3372,"n":"print_control","k":"routine","len":85,"c":true},{"a":3380,"n":"b_0D34","k":"branch","len":1,"c":false},{"a":3417,"n":"b_0D59","k":"branch","len":1,"c":false},{"a":3431,"n":"b_0D67","k":"branch","len":1,"c":false},{"a":3438,"n":"b_0D6E","k":"branch","len":1,"c":false},{"a":3443,"n":"b_0D73","k":"branch","len":1,"c":false},{"a":3447,"n":"b_0D77","k":"branch","len":1,"c":false},{"a":3456,"n":"r_0D80","k":"branch","len":1,"c":false},{"a":3457,"n":"random_seed","k":"routine","len":35,"c":true},{"a":3477,"n":"b_0D95","k":"branch","len":1,"c":false},{"a":3492,"n":"random","k":"routine","len":29,"c":true},{"a":3521,"n":"link_object_tables","k":"routine","len":216,"c":true},{"a":3737,"n":"objects_reset","k":"routine","len":19,"c":true},{"a":3741,"n":"b_0E9D","k":"branch","len":1,"c":false},{"a":3756,"n":"object_create","k":"routine","len":7,"c":true},{"a":3763,"n":"objtab1_lo","k":"routine","len":1,"c":true},{"a":3764,"n":"objtab1_hi","k":"routine","len":38,"c":true},{"a":3802,"n":"objtab2_lo","k":"routine","len":1,"c":true},{"a":3803,"n":"objtab2_hi","k":"routine","len":7,"c":true},{"a":3809,"n":"b_0EE1","k":"branch","len":1,"c":false},{"a":3810,"n":"objtab3_lo","k":"routine","len":1,"c":true},{"a":3811,"n":"objtab3_hi","k":"routine","len":5,"c":true},{"a":3816,"n":"objtab4_lo","k":"routine","len":1,"c":true},{"a":3817,"n":"objtab4_hi","k":"routine","len":5,"c":true},{"a":3822,"n":"objtab5_lo","k":"routine","len":1,"c":true},{"a":3823,"n":"objtab5_hi","k":"routine","len":12,"c":true},{"a":3835,"n":"part_frames_set","k":"routine","len":6,"c":true},{"a":3841,"n":"objtab6_lo","k":"routine","len":1,"c":true},{"a":3842,"n":"objtab6_hi","k":"routine","len":5,"c":true},{"a":3847,"n":"objtab7_lo","k":"routine","len":1,"c":true},{"a":3848,"n":"objtab7_hi","k":"routine","len":5,"c":true},{"a":3853,"n":"objtab8_lo","k":"routine","len":1,"c":true},{"a":3854,"n":"objtab8_hi","k":"routine","len":5,"c":true},{"a":3859,"n":"objtab9_lo","k":"routine","len":1,"c":true},{"a":3860,"n":"objtab9_hi","k":"routine","len":5,"c":true},{"a":3865,"n":"objtab10_lo","k":"routine","len":1,"c":true},{"a":3866,"n":"objtab10_hi","k":"routine","len":5,"c":true},{"a":3871,"n":"objtab11_lo","k":"routine","len":1,"c":true},{"a":3872,"n":"objtab11_hi","k":"routine","len":32,"c":true},{"a":3895,"n":"b_0F37","k":"branch","len":1,"c":false},{"a":3901,"n":"b_0F3D","k":"branch","len":1,"c":false},{"a":3904,"n":"part_path_set","k":"routine","len":6,"c":true},{"a":3910,"n":"objtab12_lo","k":"routine","len":1,"c":true},{"a":3911,"n":"objtab12_hi","k":"routine","len":5,"c":true},{"a":3916,"n":"objtab13_lo","k":"routine","len":1,"c":true},{"a":3917,"n":"objtab13_hi","k":"routine","len":5,"c":true},{"a":3922,"n":"objtab14_lo","k":"routine","len":1,"c":true},{"a":3923,"n":"objtab14_hi","k":"routine","len":5,"c":true},{"a":3928,"n":"objtab15_lo","k":"routine","len":1,"c":true},{"a":3929,"n":"objtab15_hi","k":"routine","len":5,"c":true},{"a":3934,"n":"objtab16_lo","k":"routine","len":1,"c":true},{"a":3935,"n":"objtab16_hi","k":"routine","len":5,"c":true},{"a":3940,"n":"objtab17_lo","k":"routine","len":1,"c":true},{"a":3941,"n":"objtab17_hi","k":"routine","len":5,"c":true},{"a":3946,"n":"objtab18_lo","k":"routine","len":1,"c":true},{"a":3947,"n":"objtab18_hi","k":"routine","len":32,"c":true},{"a":3970,"n":"b_0F82","k":"branch","len":1,"c":false},{"a":3976,"n":"b_0F88","k":"branch","len":1,"c":false},{"a":3979,"n":"object_frames_tick","k":"routine","len":25,"c":true},{"a":3993,"n":"b_0F99","k":"branch","len":1,"c":false},{"a":4004,"n":"part_frames_tick","k":"routine","len":49,"c":true},{"a":4022,"n":"b_0FB6","k":"branch","len":1,"c":false},{"a":4034,"n":"j_0FC2","k":"branch","len":1,"c":false},{"a":4053,"n":"frame_list_lo","k":"routine","len":1,"c":true},{"a":4054,"n":"frame_list_hi","k":"routine","len":12,"c":true},{"a":4055,"n":"b_0FD7","k":"branch","len":1,"c":false},{"a":4066,"n":"object_paths_tick","k":"routine","len":25,"c":true},{"a":4080,"n":"b_0FF0","k":"branch","len":1,"c":false},{"a":4091,"n":"part_path_tick","k":"routine","len":58,"c":true},{"a":4109,"n":"b_100D","k":"branch","len":1,"c":false},{"a":4121,"n":"j_1019","k":"branch","len":1,"c":false},{"a":4149,"n":"path_across_lo","k":"routine","len":1,"c":true},{"a":4150,"n":"path_across_hi","k":"routine","len":5,"c":true},{"a":4155,"n":"path_down_lo","k":"routine","len":1,"c":true},{"a":4156,"n":"path_down_hi","k":"routine","len":5,"c":true},{"a":4160,"n":"r_1040","k":"branch","len":1,"c":false},{"a":4161,"n":"frame_step","k":"routine","len":96,"c":true},{"a":4189,"n":"b_105D","k":"branch","len":1,"c":false},{"a":4196,"n":"b_1064","k":"branch","len":1,"c":false},{"a":4204,"n":"b_106C","k":"branch","len":1,"c":false},{"a":4209,"n":"b_1071","k":"branch","len":1,"c":false},{"a":4227,"n":"b_1083","k":"branch","len":1,"c":false},{"a":4235,"n":"b_108B","k":"branch","len":1,"c":false},{"a":4243,"n":"b_1093","k":"branch","len":1,"c":false},{"a":4248,"n":"b_1098","k":"branch","len":1,"c":false},{"a":4256,"n":"r_10A0","k":"branch","len":1,"c":false},{"a":4257,"n":"path_step","k":"routine","len":96,"c":true},{"a":4285,"n":"b_10BD","k":"branch","len":1,"c":false},{"a":4292,"n":"b_10C4","k":"branch","len":1,"c":false},{"a":4300,"n":"b_10CC","k":"branch","len":1,"c":false},{"a":4305,"n":"b_10D1","k":"branch","len":1,"c":false},{"a":4323,"n":"b_10E3","k":"branch","len":1,"c":false},{"a":4331,"n":"b_10EB","k":"branch","len":1,"c":false},{"a":4339,"n":"b_10F3","k":"branch","len":1,"c":false},{"a":4344,"n":"b_10F8","k":"branch","len":1,"c":false},{"a":4352,"n":"r_1100","k":"branch","len":1,"c":false},{"a":4353,"n":"object_move","k":"routine","len":73,"c":true},{"a":4401,"n":"b_1131","k":"branch","len":1,"c":false},{"a":4417,"n":"b_1141","k":"branch","len":1,"c":false},{"a":4426,"n":"part_place","k":"routine","len":111,"c":true},{"a":4471,"n":"b_1177","k":"branch","len":1,"c":false},{"a":4491,"n":"j_118B","k":"branch","len":1,"c":false},{"a":4536,"n":"r_11B8","k":"branch","len":1,"c":false},{"a":4537,"n":"sprite_setup","k":"routine","len":34,"c":true},{"a":4543,"n":"b_11BF","k":"branch","len":1,"c":false},{"a":4570,"n":"b_11DA","k":"branch","len":1,"c":false},{"a":4571,"n":"sprite_slot","k":"routine","len":57,"c":true},{"a":4628,"n":"sprite_x_offset","k":"routine","len":19,"c":true},{"a":4642,"n":"b_1222","k":"branch","len":1,"c":false},{"a":4647,"n":"sprite_y_offset","k":"routine","len":32,"c":true},{"a":4654,"n":"b_122E","k":"branch","len":1,"c":false},{"a":4670,"n":"b_123E","k":"branch","len":1,"c":false},{"a":4679,"n":"vic_inline_writes","k":"routine","len":37,"c":true},{"a":4687,"n":"b_124F","k":"branch","len":1,"c":false},{"a":4701,"n":"b_125D","k":"branch","len":1,"c":false},{"a":4716,"n":"viw_return_lo","k":"routine","len":1,"c":true},{"a":4717,"n":"viw_return_hi","k":"routine","len":1,"c":true},{"a":4718,"n":"latch_collisions","k":"routine","len":30,"c":true},{"a":4724,"n":"b_1274","k":"branch","len":1,"c":false},{"a":4748,"n":"screen_on","k":"routine","len":3,"c":true},{"a":4751,"n":"screen_off","k":"routine","len":14,"c":true},{"a":4765,"n":"unpack_inline","k":"routine","len":22,"c":true},{"a":4786,"n":"b_12B2","k":"branch","len":1,"c":false},{"a":4787,"n":"unpack_ret_lo","k":"routine","len":1,"c":true},{"a":4788,"n":"unpack_ret_hi","k":"routine","len":38,"c":true},{"a":4795,"n":"b_12BB","k":"branch","len":1,"c":false},{"a":4818,"n":"b_12D2","k":"branch","len":1,"c":false},{"a":4826,"n":"unpack_repeat","k":"routine","len":62,"c":true},{"a":4827,"n":"b_12DB","k":"branch","len":1,"c":false},{"a":4836,"n":"b_12E4","k":"branch","len":1,"c":false},{"a":4842,"n":"b_12EA","k":"branch","len":1,"c":false},{"a":4848,"n":"b_12F0","k":"branch","len":1,"c":false},{"a":4852,"n":"b_12F4","k":"branch","len":1,"c":false},{"a":4861,"n":"b_12FD","k":"branch","len":1,"c":false},{"a":4871,"n":"j_1307","k":"branch","len":1,"c":false},{"a":4881,"n":"b_1311","k":"branch","len":1,"c":false},{"a":4888,"n":"unpack_used","k":"routine","len":14,"c":true},{"a":4895,"n":"b_131F","k":"branch","len":1,"c":false},{"a":4902,"n":"code_state","k":"variable","len":1,"c":true},{"a":4903,"n":"code_count","k":"variable","len":1,"c":true},{"a":4904,"n":"code_marines","k":"variable","len":1,"c":true},{"a":4905,"n":"code_stage_letter","k":"variable","len":1,"c":true},{"a":4906,"n":"code_check_value","k":"variable","len":1,"c":true},{"a":4907,"n":"status_bits","k":"variable","len":1,"c":true},{"a":4908,"n":"status_count","k":"variable","len":1,"c":true},{"a":4909,"n":"status_screen","k":"routine","len":11,"c":true},{"a":4920,"n":"status_loop","k":"routine","len":39,"c":true},{"a":4930,"n":"b_1342","k":"branch","len":1,"c":false},{"a":4950,"n":"b_1356","k":"branch","len":1,"c":false},{"a":4959,"n":"status_after_entry","k":"routine","len":54,"c":true},{"a":4971,"n":"b_136B","k":"branch","len":1,"c":false},{"a":5004,"n":"b_138C","k":"branch","len":1,"c":false},{"a":5013,"n":"stage_next","k":"routine","len":4,"c":true},{"a":5017,"n":"apply_code","k":"routine","len":23,"c":true},{"a":5040,"n":"say_valid","k":"routine","len":12,"c":true},{"a":5052,"n":"text_valid","k":"table","len":35,"c":true},{"a":5087,"n":"say_press_return","k":"routine","len":12,"c":true},{"a":5099,"n":"text_press_return","k":"table","len":28,"c":true},{"a":5127,"n":"code_rubout","k":"routine","len":42,"c":true},{"a":5168,"n":"r_1430","k":"branch","len":1,"c":false},{"a":5169,"n":"text_rubout","k":"variable","len":2,"c":true},{"a":5171,"n":"code_typed","k":"variable","len":1,"c":true},{"a":5172,"n":"code_typed_2","k":"variable","len":1,"c":true},{"a":5173,"n":"code_typed_3","k":"variable","len":1,"c":true},{"a":5174,"n":"code_typed_4","k":"variable","len":1,"c":true},{"a":5175,"n":"code_typed_5","k":"variable","len":1,"c":true},{"a":5176,"n":"decode_code","k":"routine","len":63,"c":true},{"a":5239,"n":"check_code","k":"routine","len":40,"c":true},{"a":5277,"n":"b_149D","k":"branch","len":1,"c":false},{"a":5278,"n":"r_149E","k":"branch","len":1,"c":false},{"a":5279,"n":"status_raster","k":"routine","len":4,"c":true},{"a":5283,"n":"game_over","k":"routine","len":38,"c":true},{"a":5321,"n":"text_memo","k":"table","len":264,"c":true},{"a":5585,"n":"say_invalid","k":"routine","len":12,"c":true},{"a":5597,"n":"text_invalid","k":"table","len":55,"c":true},{"a":5652,"n":"read_code","k":"routine","len":39,"c":true},{"a":5665,"n":"b_1621","k":"branch","len":1,"c":false},{"a":5691,"n":"code_keep_char","k":"routine","len":31,"c":true},{"a":5721,"n":"r_1659","k":"branch","len":1,"c":false},{"a":5722,"n":"text_enter_code","k":"table","len":65,"c":true},{"a":5787,"n":"say_code_heading","k":"routine","len":12,"c":true},{"a":5799,"n":"text_your_code","k":"table","len":30,"c":true},{"a":5829,"n":"code_shown","k":"variable","len":1,"c":true},{"a":5830,"n":"code_shown_2","k":"variable","len":1,"c":true},{"a":5831,"n":"code_shown_3","k":"variable","len":1,"c":true},{"a":5832,"n":"code_shown_4","k":"variable","len":1,"c":true},{"a":5833,"n":"code_shown_5","k":"table","len":87,"c":true},{"a":5920,"n":"make_code","k":"routine","len":16,"c":true},{"a":5924,"n":"b_1724","k":"branch","len":1,"c":false},{"a":5936,"n":"code_keys","k":"table","len":9,"c":true},{"a":5945,"n":"make_code_digits","k":"routine","len":76,"c":true},{"a":6021,"n":"code_check","k":"routine","len":46,"c":true},{"a":6067,"n":"bit_counts","k":"table","len":16,"c":true},{"a":6083,"n":"show_marines","k":"routine","len":90,"c":true},{"a":6104,"n":"b_17D8","k":"branch","len":1,"c":false},{"a":6150,"n":"b_1806","k":"branch","len":1,"c":false},{"a":6173,"n":"text_status_end","k":"table","len":3,"c":true},{"a":6176,"n":"text_status_head","k":"table","len":37,"c":true},{"a":6213,"n":"text_names","k":"table","len":96,"c":true},{"a":6309,"n":"text_missing","k":"table","len":9,"c":true},{"a":6318,"n":"text_ok","k":"table","len":4,"c":true},{"a":6322,"n":"status_name_ptrs","k":"variable","len":1,"c":true},{"a":6323,"n":"status_name_ptrs_hi","k":"table","len":15,"c":true},{"a":6338,"n":"show_briefing","k":"routine","len":82,"c":true},{"a":6346,"n":"b_18CA","k":"branch","len":1,"c":false},{"a":6354,"n":"j_18D2","k":"branch","len":1,"c":false},{"a":6420,"n":"wait_return_screen","k":"routine","len":111,"c":true},{"a":6450,"n":"b_1932","k":"branch","len":1,"c":false},{"a":6455,"n":"b_1937","k":"branch","len":1,"c":false},{"a":6499,"n":"b_1963","k":"branch","len":1,"c":false},{"a":6510,"n":"b_196E","k":"branch","len":1,"c":false},{"a":6520,"n":"b_1978","k":"branch","len":1,"c":false},{"a":6530,"n":"r_1982","k":"branch","len":1,"c":false},{"a":6531,"n":"text_return","k":"table","len":12,"c":true},{"a":6543,"n":"briefing_ptrs_pad","k":"variable","len":1,"c":true},{"a":6544,"n":"briefing_ptrs","k":"variable","len":1,"c":true},{"a":6545,"n":"briefing_ptrs_hi","k":"table","len":15,"c":true},{"a":6560,"n":"brief_intro","k":"table","len":320,"c":true},{"a":6880,"n":"brief_drop","k":"table","len":173,"c":true},{"a":7053,"n":"brief_ambush","k":"table","len":343,"c":true},{"a":7396,"n":"brief_power","k":"table","len":352,"c":true},{"a":7748,"n":"brief_duct","k":"table","len":159,"c":true},{"a":7907,"n":"brief_rescue","k":"table","len":336,"c":true},{"a":8243,"n":"brief_bishop","k":"table","len":508,"c":true},{"a":8751,"n":"text_screen_setup","k":"routine","len":19,"c":true},{"a":8770,"n":"text_vic_list","k":"table","len":29,"c":true},{"a":8829,"n":"b_227D","k":"branch","len":1,"c":false},{"a":8857,"n":"j_2299","k":"branch","len":1,"c":false},{"a":8860,"n":"text_colours","k":"routine","len":27,"c":true},{"a":8887,"n":"bitmap_off","k":"routine","len":12,"c":true},{"a":8899,"n":"bitmap_on","k":"routine","len":25,"c":true},{"a":8924,"n":"clear_page6","k":"routine","len":14,"c":true},{"a":8937,"n":"b_22E9","k":"branch","len":1,"c":false},{"a":8938,"n":"clear_page6_lo","k":"routine","len":1,"c":true},{"a":8939,"n":"clear_page6_hi","k":"routine","len":5,"c":true},{"a":8944,"n":"clear_screen_5c00","k":"routine","len":27,"c":true},{"a":8971,"n":"clear_colour_ram","k":"routine","len":27,"c":true},{"a":8998,"n":"clear_bitmap_6000","k":"routine","len":27,"c":true},{"a":9025,"n":"fill_memory","k":"routine","len":1,"c":true},{"a":9026,"n":"fill_ptr","k":"routine","len":1,"c":true},{"a":9027,"n":"fill_ptr_hi","k":"routine","len":13,"c":true},{"a":9036,"n":"b_234C","k":"branch","len":1,"c":false},{"a":9040,"n":"fill_end_lo","k":"routine","len":7,"c":true},{"a":9047,"n":"fill_end_hi","k":"routine","len":4,"c":true},{"a":9051,"n":"set_sprite_x","k":"routine","len":38,"c":true},{"a":9072,"n":"b_2370","k":"branch","len":1,"c":false},{"a":9089,"n":"ssx_save_a","k":"variable","len":1,"c":true},{"a":9090,"n":"ssx_save_y","k":"variable","len":1,"c":true},{"a":9091,"n":"sprite_bit_clear","k":"table","len":8,"c":true},{"a":9099,"n":"sprite_bit_set","k":"table","len":8,"c":true},{"a":9107,"n":"print_list","k":"routine","len":80,"c":true},{"a":9119,"n":"b_239F","k":"branch","len":1,"c":false},{"a":9156,"n":"b_23C4","k":"branch","len":1,"c":false},{"a":9180,"n":"b_23DC","k":"branch","len":1,"c":false},{"a":9186,"n":"r_23E2","k":"branch","len":1,"c":false},{"a":9187,"n":"one_char","k":"variable","len":2,"c":true},{"a":9189,"n":"add_score_digits","k":"routine","len":40,"c":true},{"a":9191,"n":"b_23E7","k":"branch","len":1,"c":false},{"a":9220,"n":"b_2404","k":"branch","len":1,"c":false},{"a":9229,"n":"score_pair","k":"variable","len":1,"c":true},{"a":9230,"n":"is_return","k":"routine","len":11,"c":true},{"a":9239,"n":"b_2417","k":"branch","len":1,"c":false},{"a":9241,"n":"next_key","k":"routine","len":21,"c":true},{"a":9253,"n":"b_2425","k":"branch","len":1,"c":false},{"a":9262,"n":"wait_return","k":"routine","len":9,"c":true},{"a":9271,"n":"start_music","k":"routine","len":103,"c":true},{"a":9283,"n":"b_2443","k":"branch","len":1,"c":false},{"a":9321,"n":"b_2469","k":"branch","len":1,"c":false},{"a":9374,"n":"music_tick","k":"routine","len":16,"c":true},{"a":9390,"n":"music_voice_loop","k":"routine","len":21,"c":true},{"a":9411,"n":"music_next_byte","k":"routine","len":31,"c":true},{"a":9422,"n":"b_24CE","k":"branch","len":1,"c":false},{"a":9442,"n":"music_cmd_jmp_lo","k":"routine","len":1,"c":true},{"a":9443,"n":"music_cmd_jmp_hi","k":"routine","len":1,"c":true},{"a":9444,"n":"music_voice_next","k":"routine","len":8,"c":true},{"a":9449,"n":"j_24E9","k":"branch","len":1,"c":false},{"a":9452,"n":"music_exit","k":"routine","len":1,"c":true},{"a":9453,"n":"music_save_a","k":"routine","len":2,"c":true},{"a":9455,"n":"music_save_x","k":"routine","len":2,"c":true},{"a":9457,"n":"music_save_y","k":"routine","len":2,"c":true},{"a":9459,"n":"mc_tempo","k":"routine","len":17,"c":true},{"a":9476,"n":"mc_volume","k":"routine","len":17,"c":true},{"a":9493,"n":"mc_envelope","k":"routine","len":31,"c":true},{"a":9524,"n":"mc_repeat","k":"routine","len":53,"c":true},{"a":9544,"n":"b_2548","k":"branch","len":1,"c":false},{"a":9577,"n":"mc_call","k":"routine","len":72,"c":true},{"a":9597,"n":"b_257D","k":"branch","len":1,"c":false},{"a":9649,"n":"mc_effect","k":"routine","len":14,"c":true},{"a":9663,"n":"mc_wave","k":"routine","len":24,"c":true},{"a":9687,"n":"mc_extended","k":"routine","len":19,"c":true},{"a":9706,"n":"music_ext_jmp_lo","k":"routine","len":1,"c":true},{"a":9707,"n":"music_ext_jmp_hi","k":"routine","len":1,"c":true},{"a":9708,"n":"mc_loop_end","k":"routine","len":30,"c":true},{"a":9728,"n":"b_2600","k":"branch","len":1,"c":false},{"a":9738,"n":"music_loop_back","k":"routine","len":27,"c":true},{"a":9765,"n":"music_loop_done","k":"routine","len":12,"c":true},{"a":9777,"n":"mc_return","k":"routine","len":30,"c":true},{"a":9797,"n":"b_2645","k":"branch","len":1,"c":false},{"a":9807,"n":"music_call_again","k":"routine","len":32,"c":true},{"a":9839,"n":"transpose_ptr_lo","k":"routine","len":1,"c":true},{"a":9840,"n":"transpose_ptr_hi","k":"routine","len":18,"c":true},{"a":9858,"n":"music_call_done","k":"routine","len":30,"c":true},{"a":9888,"n":"mc_jump","k":"routine","len":17,"c":true},{"a":9905,"n":"mc_effect_off","k":"routine","len":8,"c":true},{"a":9913,"n":"mc_machine_code","k":"routine","len":19,"c":true},{"a":9932,"n":"mc_code_lo","k":"routine","len":1,"c":true},{"a":9933,"n":"mc_code_hi","k":"routine","len":2,"c":true},{"a":9935,"n":"mc_code_voice1","k":"routine","len":4,"c":true},{"a":9939,"n":"music_voice_end","k":"routine","len":19,"c":true},{"a":9958,"n":"mc_stop_all","k":"routine","len":19,"c":true},{"a":9977,"n":"mc_pulse","k":"routine","len":18,"c":true},{"a":9995,"n":"mc_sync_ring","k":"routine","len":21,"c":true},{"a":10016,"n":"mc_filter","k":"routine","len":22,"c":true},{"a":10038,"n":"mc_filter_mode","k":"routine","len":21,"c":true},{"a":10059,"n":"mc_filter_route","k":"routine","len":23,"c":true},{"a":10073,"n":"b_2759","k":"branch","len":1,"c":false},{"a":10076,"n":"b_275C","k":"branch","len":1,"c":false},{"a":10082,"n":"music_note","k":"routine","len":46,"c":true},{"a":10091,"n":"b_276B","k":"branch","len":1,"c":false},{"a":10128,"n":"music_step","k":"routine","len":8,"c":true},{"a":10136,"n":"music_play_pitch","k":"routine","len":38,"c":true},{"a":10174,"n":"music_rest","k":"routine","len":31,"c":true},{"a":10202,"n":"b_27DA","k":"branch","len":1,"c":false},{"a":10205,"n":"music_release","k":"routine","len":30,"c":true},{"a":10221,"n":"b_27ED","k":"branch","len":1,"c":false},{"a":10232,"n":"b_27F8","k":"branch","len":1,"c":false},{"a":10235,"n":"effects_tick","k":"routine","len":32,"c":true},{"a":10242,"n":"b_2802","k":"branch","len":1,"c":false},{"a":10267,"n":"fx_handler_lo","k":"routine","len":1,"c":true},{"a":10268,"n":"fx_handler_hi","k":"routine","len":2,"c":true},{"a":10270,"n":"fx_voice1","k":"routine","len":7,"c":true},{"a":10271,"n":"b_281F","k":"branch","len":1,"c":false},{"a":10276,"n":"r_2824","k":"branch","len":1,"c":false},{"a":10277,"n":"sid_write_music","k":"routine","len":36,"c":true},{"a":10279,"n":"b_2827","k":"branch","len":1,"c":false},{"a":10313,"n":"music_byte","k":"routine","len":21,"c":true},{"a":10333,"n":"b_285D","k":"branch","len":1,"c":false},{"a":10334,"n":"music_pos_lo","k":"routine","len":1,"c":true},{"a":10335,"n":"music_pos_hi","k":"routine","len":2,"c":true},{"a":10337,"n":"fx_drift","k":"routine","len":57,"c":true},{"a":10368,"n":"b_2880","k":"branch","len":1,"c":false},{"a":10394,"n":"fx_drift_steps","k":"table","len":3,"c":true},{"a":10397,"n":"fx_drift_steps_hi","k":"table","len":3,"c":true},{"a":10400,"n":"fx_filter_env3","k":"routine","len":10,"c":true},{"a":10410,"n":"fx_drift_filter","k":"routine","len":7,"c":true},{"a":10417,"n":"fx_fade_in","k":"routine","len":27,"c":true},{"a":10444,"n":"fade_count","k":"variable","len":1,"c":true},{"a":10445,"n":"fade_exit","k":"routine","len":2,"c":true},{"a":10463,"n":"briefing_tune","k":"table","len":6,"c":true},{"a":10469,"n":"tune2_voice1","k":"table","len":84,"c":true},{"a":10553,"n":"tune2_voice2","k":"table","len":63,"c":true},{"a":10616,"n":"tune2_voice3","k":"table","len":26,"c":true},{"a":10642,"n":"briefing_voice1","k":"table","len":51,"c":true},{"a":10693,"n":"briefing_voice2","k":"table","len":30,"c":true},{"a":10723,"n":"briefing_voice3","k":"table","len":6,"c":true},{"a":10729,"n":"shared_patterns_0","k":"table","len":64,"c":true},{"a":10793,"n":"shared_patterns","k":"table","len":21,"c":true},{"a":10814,"n":"shared_patterns_2","k":"table","len":22,"c":true},{"a":10836,"n":"count_marker","k":"routine","len":4,"c":true},{"a":10840,"n":"envelopes","k":"table","len":22,"c":true},{"a":10862,"n":"clear_effects","k":"routine","len":11,"c":true},{"a":10866,"n":"b_2A72","k":"branch","len":1,"c":false},{"a":10873,"n":"start_effect","k":"routine","len":108,"c":true},{"a":10904,"n":"b_2A98","k":"branch","len":1,"c":false},{"a":10967,"n":"b_2AD7","k":"branch","len":1,"c":false},{"a":10978,"n":"b_2AE2","k":"branch","len":1,"c":false},{"a":10981,"n":"silence_effects","k":"routine","len":42,"c":true},{"a":11023,"n":"effects_frame","k":"routine","len":103,"c":true},{"a":11041,"n":"b_2B21","k":"branch","len":1,"c":false},{"a":11054,"n":"b_2B2E","k":"branch","len":1,"c":false},{"a":11076,"n":"b_2B44","k":"branch","len":1,"c":false},{"a":11095,"n":"b_2B57","k":"branch","len":1,"c":false},{"a":11114,"n":"b_2B6A","k":"branch","len":1,"c":false},{"a":11116,"n":"b_2B6C","k":"branch","len":1,"c":false},{"a":11125,"n":"r_2B75","k":"branch","len":1,"c":false},{"a":11126,"n":"set_effect_voice","k":"routine","len":36,"c":true},{"a":11152,"n":"b_2B90","k":"branch","len":1,"c":false},{"a":11162,"n":"sev_save_x","k":"routine","len":15,"c":true},{"a":11174,"n":"b_2BA6","k":"branch","len":1,"c":false},{"a":11177,"n":"fx_call_frame","k":"routine","len":3,"c":true},{"a":11180,"n":"fx_call_voice1","k":"routine","len":3,"c":true},{"a":11183,"n":"fx_call_voice2","k":"routine","len":3,"c":true},{"a":11186,"n":"fx_call_voice3","k":"routine","len":3,"c":true},{"a":11197,"n":"load_name","k":"variable","len":1,"c":true},{"a":11198,"n":"load_name_digit","k":"variable","len":2,"c":true},{"a":11200,"n":"load_stage","k":"routine","len":48,"c":true},{"a":11225,"n":"b_2BD9","k":"branch","len":1,"c":false},{"a":11230,"n":"b_2BDE","k":"branch","len":1,"c":false},{"a":11232,"n":"b_2BE0","k":"branch","len":1,"c":false},{"a":11248,"n":"load_file_for_stage","k":"routine","len":6,"c":true},{"a":11254,"n":"load_file","k":"routine","len":16,"c":true},{"a":11270,"n":"trainer_patch","k":"routine","len":193,"c":true},{"a":11297,"n":"r_2C21","k":"branch","len":1,"c":false},{"a":11298,"n":"b_2C22","k":"branch","len":1,"c":false},{"a":11317,"n":"r_2C35","k":"branch","len":1,"c":false},{"a":11318,"n":"b_2C36","k":"branch","len":1,"c":false},{"a":11335,"n":"r_2C47","k":"branch","len":1,"c":false},{"a":11336,"n":"b_2C48","k":"branch","len":1,"c":false},{"a":11355,"n":"b_2C5B","k":"branch","len":1,"c":false},{"a":11365,"n":"r_2C65","k":"branch","len":1,"c":false},{"a":11366,"n":"b_2C66","k":"branch","len":1,"c":false},{"a":11380,"n":"b_2C74","k":"branch","len":1,"c":false},{"a":11390,"n":"b_2C7E","k":"branch","len":1,"c":false},{"a":11406,"n":"b_2C8E","k":"branch","len":1,"c":false},{"a":11421,"n":"r_2C9D","k":"branch","len":1,"c":false},{"a":11422,"n":"b_2C9E","k":"branch","len":1,"c":false},{"a":11442,"n":"b_2CB2","k":"branch","len":1,"c":false},{"a":11462,"n":"r_2CC6","k":"branch","len":1,"c":false},{"a":11983,"n":"frame_counter_init","k":"table","len":9,"c":true},{"a":11992,"n":"font_wide","k":"table","len":384,"c":true},{"a":12376,"n":"font8","k":"table","len":72,"c":true},{"a":12448,"n":"font8_glyph_29","k":"table","len":440,"c":true},{"a":12888,"n":"key_rows","k":"table","len":8,"c":true},{"a":12896,"n":"key_ignore","k":"table","len":8,"c":true},{"a":12904,"n":"key_chars","k":"table","len":64,"c":true},{"a":12968,"n":"row_lo","k":"table","len":24,"c":true},{"a":12992,"n":"row_hi","k":"table","len":24,"c":true},{"a":13016,"n":"nibble_wide","k":"table","len":16,"c":true},{"a":13032,"n":"marine_names","k":"table","len":55,"c":true},{"a":13087,"n":"marine_name_lo","k":"table","len":8,"c":true},{"a":13095,"n":"marine_name_hi","k":"table","len":8,"c":true},{"a":13103,"n":"music_cmd_lo","k":"table","len":8,"c":true},{"a":13111,"n":"music_cmd_hi","k":"table","len":8,"c":true},{"a":13119,"n":"music_ext_lo","k":"table","len":16,"c":true},{"a":13135,"n":"music_ext_hi","k":"table","len":15,"c":true},{"a":13150,"n":"fx_lo","k":"table","len":16,"c":true},{"a":13166,"n":"fx_hi","k":"table","len":17,"c":true},{"a":13183,"n":"voice_stack_lo","k":"table","len":3,"c":true},{"a":13186,"n":"voice_stack_hi","k":"table","len":3,"c":true},{"a":13189,"n":"voice_reg","k":"table","len":3,"c":true},{"a":13192,"n":"voice_filter_on","k":"table","len":3,"c":true},{"a":13195,"n":"voice_filter_off","k":"table","len":3,"c":true},{"a":13198,"n":"note_lengths","k":"table","len":12,"c":true},{"a":13210,"n":"freq_lo","k":"table","len":96,"c":true},{"a":13306,"n":"freq_hi","k":"table","len":96,"c":true},{"a":13402,"n":"tune2","k":"table","len":5,"c":true},{"a":13407,"n":"tune2_end","k":"variable","len":1,"c":true},{"a":13408,"n":"effect_slot_end","k":"table","len":3,"c":true},{"a":13411,"n":"sfx_roar","k":"table","len":12,"c":true},{"a":13423,"n":"sfx_roar_voice1","k":"table","len":7,"c":true},{"a":13430,"n":"sfx_roar_voice2","k":"table","len":7,"c":true},{"a":13437,"n":"sfx_roar_voice3","k":"table","len":7,"c":true},{"a":13474,"n":"sfx_roar_frame","k":"routine","len":13,"c":true},{"a":13487,"n":"sfx_burst","k":"table","len":12,"c":true},{"a":13499,"n":"sfx_burst_voice1","k":"table","len":7,"c":true},{"a":13506,"n":"sfx_burst_voice2","k":"table","len":7,"c":true},{"a":13513,"n":"sfx_burst_voice3","k":"table","len":7,"c":true},{"a":13550,"n":"fx_none","k":"routine","len":1,"c":true},{"a":13551,"n":"sfx_burst_frame","k":"routine","len":55,"c":true},{"a":13606,"n":"sfx_crash","k":"table","len":12,"c":true},{"a":13618,"n":"sfx_crash_voice1","k":"table","len":7,"c":true},{"a":13625,"n":"sfx_crash_voice2","k":"table","len":7,"c":true},{"a":13632,"n":"sfx_crash_voice3","k":"table","len":7,"c":true},{"a":13682,"n":"sfx_crash_v2","k":"routine","len":5,"c":true},{"a":13690,"n":"sfx_crash_v3","k":"routine","len":5,"c":true},{"a":13698,"n":"sfx_alarm","k":"table","len":12,"c":true},{"a":13710,"n":"sfx_alarm_voice1","k":"table","len":7,"c":true},{"a":13717,"n":"sfx_alarm_voice2","k":"table","len":7,"c":true},{"a":13724,"n":"sfx_alarm_voice3","k":"table","len":7,"c":true},{"a":13799,"n":"fx_release_tri","k":"routine","len":12,"c":true},{"a":13811,"n":"fx_stop","k":"routine","len":3,"c":true},{"a":13814,"n":"sfx_siren_frame","k":"routine","len":60,"c":true},{"a":13873,"n":"r_3631","k":"branch","len":1,"c":false},{"a":13874,"n":"fx_drift_all","k":"routine","len":11,"c":true},{"a":13876,"n":"b_3634","k":"branch","len":1,"c":false},{"a":13885,"n":"fx_random_freq","k":"routine","len":37,"c":true},{"a":13922,"n":"fx_random_volume","k":"routine","len":22,"c":true},{"a":13944,"n":"sfx_siren","k":"table","len":12,"c":true},{"a":13956,"n":"sfx_siren_voice1","k":"table","len":7,"c":true},{"a":13963,"n":"sfx_siren_voice2","k":"table","len":7,"c":true},{"a":13970,"n":"sfx_siren_voice3","k":"table","len":7,"c":true},{"a":14035,"n":"sfx_siren_v2","k":"routine","len":5,"c":true},{"a":14043,"n":"sfx_siren_v3","k":"routine","len":5,"c":true},{"a":14051,"n":"sfx_siren_stop","k":"routine","len":4,"c":true},{"a":14055,"n":"sfx_falling","k":"table","len":12,"c":true},{"a":14067,"n":"sfx_falling_voice1","k":"table","len":21,"c":true},{"a":14140,"n":"sfx_falling_frame","k":"routine","len":72,"c":true},{"a":14211,"n":"r_3783","k":"branch","len":1,"c":false},{"a":14212,"n":"sfx_falling_v1","k":"routine","len":14,"c":true},{"a":14226,"n":"sfx_falling_v2","k":"routine","len":4,"c":true},{"a":14230,"n":"sfx_rising","k":"table","len":12,"c":true},{"a":14242,"n":"sfx_rising_voice1","k":"table","len":7,"c":true},{"a":14249,"n":"sfx_rising_voice2","k":"table","len":7,"c":true},{"a":14256,"n":"sfx_rising_voice3","k":"table","len":7,"c":true},{"a":14315,"n":"sfx_rising_frame","k":"routine","len":67,"c":true},{"a":14381,"n":"r_382D","k":"branch","len":1,"c":false},{"a":14382,"n":"sfx_rising_v1","k":"routine","len":9,"c":true},{"a":14391,"n":"sfx_hiss","k":"table","len":12,"c":true},{"a":14403,"n":"sfx_hiss_short","k":"table","len":12,"c":true},{"a":14415,"n":"sfx_hiss_voice1","k":"table","len":7,"c":true},{"a":14422,"n":"sfx_hiss_voice2","k":"table","len":7,"c":true},{"a":14429,"n":"sfx_hiss_voice3","k":"table","len":7,"c":true},{"a":14488,"n":"fx_release_noise","k":"routine","len":12,"c":true},{"a":14500,"n":"sfx_engine","k":"table","len":12,"c":true},{"a":14512,"n":"sfx_engine_voice1","k":"table","len":7,"c":true},{"a":14519,"n":"sfx_engine_voice2","k":"table","len":7,"c":true},{"a":14526,"n":"sfx_engine_voice3","k":"table","len":7,"c":true},{"a":14575,"n":"sfx_blast","k":"table","len":12,"c":true},{"a":14587,"n":"sfx_blast_voice1","k":"table","len":7,"c":true},{"a":14594,"n":"sfx_blast_voice2","k":"table","len":7,"c":true},{"a":14601,"n":"sfx_blast_voice3","k":"table","len":7,"c":true},{"a":14628,"n":"sfx_blast_again","k":"routine","len":20,"c":true},{"a":14680,"n":"sfx_chord","k":"table","len":12,"c":true},{"a":14692,"n":"sfx_chord_voice1","k":"table","len":7,"c":true},{"a":14699,"n":"sfx_chord_voice2","k":"table","len":7,"c":true},{"a":14706,"n":"sfx_chord_voice3","k":"table","len":7,"c":true},{"a":14740,"n":"sfx_chord2","k":"table","len":12,"c":true},{"a":14752,"n":"sfx_chord2_voice1","k":"table","len":7,"c":true},{"a":14759,"n":"sfx_chord2_voice2","k":"table","len":7,"c":true},{"a":14766,"n":"sfx_chord2_voice3","k":"table","len":7,"c":true},{"a":14800,"n":"sfx_drone","k":"table","len":12,"c":true},{"a":14812,"n":"sfx_drone_voice1","k":"table","len":7,"c":true},{"a":14819,"n":"sfx_drone_voice2","k":"table","len":7,"c":true},{"a":14826,"n":"sfx_drone_voice3","k":"table","len":7,"c":true},{"a":14868,"n":"sfx_drone_release","k":"table","len":22,"c":true},{"a":14890,"n":"sfx_buzz","k":"table","len":12,"c":true},{"a":14902,"n":"sfx_buzz_voice1","k":"table","len":7,"c":true},{"a":14909,"n":"sfx_buzz_voice2","k":"table","len":7,"c":true},{"a":14916,"n":"sfx_buzz_voice3","k":"table","len":7,"c":true},{"a":14960,"n":"sfx_buzz_frame","k":"routine","len":4,"c":true},{"a":14964,"n":"sfx_rumble","k":"table","len":12,"c":true},{"a":14976,"n":"sfx_rumble_voice1","k":"table","len":7,"c":true},{"a":14983,"n":"sfx_rumble_voice2","k":"table","len":7,"c":true},{"a":14990,"n":"sfx_rumble_voice3","k":"table","len":7,"c":true},{"a":15034,"n":"fx_drift_filter_all","k":"routine","len":7,"c":true},{"a":15041,"n":"fx_drift_voice","k":"routine","len":48,"c":true},{"a":15069,"n":"b_3ADD","k":"branch","len":1,"c":false},{"a":15089,"n":"drift_steps_lo","k":"table","len":3,"c":true},{"a":15092,"n":"drift_steps_hi","k":"table","len":3,"c":true},{"a":15095,"n":"fx_filter_follow","k":"routine","len":7,"c":true},{"a":15102,"n":"drift_voice_reg","k":"table","len":3,"c":true},{"a":15105,"n":"trainer_skip","k":"routine","len":24,"c":true},{"a":15128,"n":"j_3B18","k":"branch","len":1,"c":false},{"a":15129,"n":"skip_save_port","k":"routine","len":5,"c":true},{"a":15133,"n":"r_3B1D","k":"branch","len":1,"c":false},{"a":15134,"n":"skip_pressed","k":"routine","len":53,"c":true},{"a":15153,"n":"b_3B31","k":"branch","len":1,"c":false},{"a":15164,"n":"b_3B3C","k":"branch","len":1,"c":false},{"a":15177,"n":"b_3B49","k":"branch","len":1,"c":false},{"a":15187,"n":"stage_files","k":"table","len":9,"c":true},{"a":15196,"n":"copy_vic","k":"routine","len":16,"c":true},{"a":15198,"n":"b_3B5E","k":"branch","len":1,"c":false},{"a":15208,"n":"b_3B68","k":"branch","len":1,"c":false},{"a":15297,"n":"restore_arm","k":"routine","len":19,"c":true},{"a":15316,"n":"any_key_down","k":"routine","len":30,"c":true},{"a":15345,"n":"r_3BF1","k":"branch","len":1,"c":false},{"a":15346,"n":"start_stage","k":"routine","len":8,"c":true},{"a":15354,"n":"status_entry","k":"routine","len":8,"c":true},{"a":15362,"n":"briefing_entry","k":"routine","len":8,"c":true},{"a":15370,"n":"briefing_return","k":"routine","len":8,"c":true},{"a":49152,"n":"stage_sprites","k":"table","len":256,"c":true},{"a":49408,"n":"hand_outline_1","k":"table","len":256,"c":true}],"records":[{"a":0,"t":"gap","n":2048,"x":[2091,2095]},{"a":0,"t":"note","l":"cpu_port_ddr","note":"outside the tracked image","x":[2091,2095]},{"a":2048,"l":"zero_pad","c":"Fifteen zero bytes before the first instruction; clear_page6's caller at $22E9 names $0800 only through its own patched operand.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[8937]},{"a":2056,"t":"byte","b":[0,0,0,0,0,0,0]},{"a":2063,"l":"clear_ram_to_bfff","c":"Start of the game. Clears RAM a page at a time, from the page held in its own operand at $0814 up to $BFFF, then falls into game_start.","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[2080]},{"a":2065,"t":"code","b":[138],"m":"txa"},{"a":2066,"l":"b_0812","t":"code","b":[157,0,64],"m":"sta","oa":16384,"o":"$4000,x","x":[2070]},{"a":2068,"t":"note","l":"clear_ram_page","c":"The high byte of clear_ram_to_bfff's STA, stepped a page at a time from $40 to $C0.","note":"inside the item at $0812","x":[2072,2075]},{"a":2069,"t":"code","b":[232],"m":"inx"},{"a":2070,"t":"code","b":[208,250],"m":"bne","oa":2066,"o":"b_0812"},{"a":2072,"t":"code","b":[238,20,8],"m":"inc","oa":2068,"o":"clear_ram_page"},{"a":2075,"t":"code","b":[173,20,8],"m":"lda","oa":2068,"o":"clear_ram_page"},{"a":2078,"t":"code","b":[201,192],"m":"cmp","o":"#$C0"},{"a":2080,"t":"code","b":[208,237],"m":"bne","oa":2063,"o":"clear_ram_to_bfff"},{"a":2082,"l":"game_start","c":"Power-on set-up: clears $0200-$07FF (clear_pages with X=6), installs the interrupt vectors (install_vectors), banks the ROMs out ($01 = $35), then times one frame to tell PAL from NTSC: the last raster line before line 0 is stored, and a low byte under $1E (an NTSC 263-line frame) sets video_adjust to $FF. Then reads the keyboard once, seeds the random numbers from the SID's noise voice and enters the main loop with level 0 and all eight marines alive ($0204 = $FF).","t":"code","b":[120],"m":"sei"},{"a":2083,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":2085,"t":"code","b":[32,36,9],"m":"jsr","oa":2340,"o":"clear_pages"},{"a":2088,"t":"code","b":[32,164,10],"m":"jsr","oa":2724,"o":"install_vectors"},{"a":2091,"t":"code","b":[165,0],"m":"lda","oa":0,"o":"cpu_port_ddr"},{"a":2093,"t":"code","b":[9,7],"m":"ora","o":"#$07"},{"a":2095,"t":"code","b":[133,0],"m":"sta","oa":0,"o":"cpu_port_ddr"},{"a":2097,"t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":2099,"t":"code","b":[69,1],"m":"eor","oa":1,"o":"zpa_01"},{"a":2101,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":2103,"t":"code","b":[69,1],"m":"eor","oa":1,"o":"zpa_01"},{"a":2105,"t":"code","b":[133,1],"m":"sta","oa":1,"o":"zpa_01"},{"a":2107,"t":"code","b":[173,2,221],"m":"lda","o":"cia2_ddr_a"},{"a":2110,"t":"code","b":[9,3],"m":"ora","o":"#$03"},{"a":2112,"t":"code","b":[141,2,221],"m":"sta","o":"cia2_ddr_a"},{"a":2115,"l":"b_0843","t":"code","b":[173,17,208],"m":"lda","o":"vic_control1","x":[2118]},{"a":2118,"t":"code","b":[48,251],"m":"bmi","oa":2115,"o":"b_0843"},{"a":2120,"l":"b_0848","t":"code","b":[173,17,208],"m":"lda","o":"vic_control1","x":[2123]},{"a":2123,"t":"code","b":[16,251],"m":"bpl","oa":2120,"o":"b_0848"},{"a":2125,"l":"b_084D","t":"code","b":[173,18,208],"m":"lda","o":"vic_raster","x":[2128]},{"a":2128,"t":"code","b":[240,251],"m":"beq","oa":2125,"o":"b_084D"},{"a":2130,"l":"b_0852","t":"code","b":[168],"m":"tay","x":[2134]},{"a":2131,"t":"code","b":[173,18,208],"m":"lda","o":"vic_raster"},{"a":2134,"t":"code","b":[208,250],"m":"bne","oa":2130,"o":"b_0852"},{"a":2136,"t":"code","b":[141,0,2],"m":"sta","oa":512,"o":"a_0200"},{"a":2139,"t":"code","b":[192,30],"m":"cpy","o":"#$1E"},{"a":2141,"t":"code","b":[144,3],"m":"bcc","oa":2146,"o":"b_0862"},{"a":2143,"t":"code","b":[206,0,2],"m":"dec","oa":512,"o":"a_0200"},{"a":2146,"l":"b_0862","t":"code","b":[32,121,11],"m":"jsr","oa":2937,"o":"key_init","x":[2141]},{"a":2149,"t":"code","b":[32,129,13],"m":"jsr","oa":3457,"o":"random_seed"},{"a":2152,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":2154,"t":"code","b":[154],"m":"txs"},{"a":2155,"t":"code","b":[32,3,9],"m":"jsr","oa":2307,"o":"reset_sound"},{"a":2158,"l":"main_new_game","c":"The game's outer loop. Each pass loads and starts the stage numbered in stage ($0205): resets the music (reset_sound unless the stage is 1), loads the stage's files (load_stage), applies the trainer's patches (trainer_patch), waits for RETURN on the stage's title screen (wait_return_screen) and jumps into the stage through its own vector at $8000 (via start_stage at $3BF2). A stage ends at stage_complete ($089C), stage_done ($08B1) or stage_skip ($08D8).","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2253]},{"a":2160,"t":"code","b":[141,2,2],"m":"sta","oa":514,"o":"a_0202"},{"a":2163,"t":"code","b":[141,5,2],"m":"sta","oa":517,"o":"a_0205"},{"a":2166,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":2168,"t":"code","b":[141,4,2],"m":"sta","oa":516,"o":"a_0204"},{"a":2171,"l":"j_087B","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[2217,2261,2274]},{"a":2173,"t":"code","b":[141,3,2],"m":"sta","oa":515,"o":"a_0203"},{"a":2176,"t":"code","b":[173,4,2],"m":"lda","oa":516,"o":"a_0204"},{"a":2179,"t":"code","b":[141,6,2],"m":"sta","oa":518,"o":"a_0206"},{"a":2182,"t":"code","b":[32,192,43],"m":"jsr","oa":11200,"o":"load_stage"},{"a":2185,"t":"code","b":[32,6,44],"m":"jsr","oa":11270,"o":"trainer_patch"},{"a":2188,"t":"code","b":[32,20,25],"m":"jsr","oa":6420,"o":"wait_return_screen"},{"a":2191,"t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205"},{"a":2194,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":2196,"t":"code","b":[240,3],"m":"beq","oa":2201,"o":"b_0899"},{"a":2198,"t":"code","b":[32,3,9],"m":"jsr","oa":2307,"o":"reset_sound"},{"a":2201,"l":"b_0899","t":"code","b":[76,242,59],"m":"jmp","oa":15346,"o":"start_stage","x":[2196]},{"a":2204,"l":"stage_complete","c":"Where a level jumps when it is won (level 1's script at its last step, for one): resets the stack and the sound and shows the status screen, which gives the code for the stage and, with nothing typed, moves stage on by one and shows the next briefing; then hands the raster interrupt back and loads that stage. RUN/STOP and RESTORE on the status screen start the section again instead (nmi_restart).","t":"code","b":[120],"m":"sei","x":[15150]},{"a":2205,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":2207,"t":"code","b":[154],"m":"txs"},{"a":2208,"t":"code","b":[32,3,9],"m":"jsr","oa":2307,"o":"reset_sound"},{"a":2211,"t":"code","b":[32,45,19],"m":"jsr","oa":4909,"o":"status_screen"},{"a":2214,"t":"code","b":[32,229,8],"m":"jsr","oa":2277,"o":"irq_to_level"},{"a":2217,"t":"code","b":[76,123,8],"m":"jmp","oa":2171,"o":"j_087B"},{"a":2220,"l":"stage_abort","c":"Where RESTORE leads while the key read as bit 6 of $0217 is held (the up-arrow key, by the keyboard matrix): sets $0202 to $FF and falls into stage_done, so the stage is skipped without its status screen. $0202 stays set until a new game, so every code shown after that is five asterisks.","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[2390,15184]},{"a":2222,"t":"code","b":[141,2,2],"m":"sta","oa":514,"o":"a_0202"},{"a":2225,"l":"stage_done","c":"Entered when a stage is won: blanks the screen, moves stage ($0205) on by one, starts a new game after stage 8, shows the next stage's briefing text (show_briefing) and loops to load it.","t":"code","b":[120],"m":"sei","x":[15161]},{"a":2226,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":2228,"t":"code","b":[154],"m":"txs"},{"a":2229,"l":"b_08B5","t":"code","b":[173,17,208],"m":"lda","o":"vic_control1","x":[2232]},{"a":2232,"t":"code","b":[16,251],"m":"bpl","oa":2229,"o":"b_08B5"},{"a":2234,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2236,"t":"code","b":[141,32,208],"m":"sta","o":"vic_border"},{"a":2239,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":2242,"t":"code","b":[32,3,9],"m":"jsr","oa":2307,"o":"reset_sound"},{"a":2245,"t":"code","b":[238,5,2],"m":"inc","oa":517,"o":"a_0205"},{"a":2248,"t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205"},{"a":2251,"t":"code","b":[201,9],"m":"cmp","o":"#$09"},{"a":2253,"t":"code","b":[176,159],"m":"bcs","oa":2158,"o":"main_new_game"},{"a":2255,"t":"code","b":[32,194,24],"m":"jsr","oa":6338,"o":"show_briefing"},{"a":2258,"t":"code","b":[32,229,8],"m":"jsr","oa":2277,"o":"irq_to_level"},{"a":2261,"t":"code","b":[76,123,8],"m":"jmp","oa":2171,"o":"j_087B"},{"a":2264,"l":"stage_skip","c":"Resets the stack and the sound, moves stage ($0205) on by one and loads that stage at once, without the briefing. The power loader's lift scene (stage 7) jumps here from $8132 when it ends, so the fight with the Queen follows with no briefing.","t":"code","b":[120],"m":"sei"},{"a":2265,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":2267,"t":"code","b":[154],"m":"txs"},{"a":2268,"t":"code","b":[32,3,9],"m":"jsr","oa":2307,"o":"reset_sound"},{"a":2271,"t":"code","b":[238,5,2],"m":"inc","oa":517,"o":"a_0205"},{"a":2274,"t":"code","b":[76,123,8],"m":"jmp","oa":2171,"o":"j_087B"},{"a":2277,"l":"irq_to_level","c":"Hands the raster interrupt to the level: clears $0476, clears bit 7 of the $D011 copy at $0475, latches the sprite collisions and points the raster call at $094A to $27FB. Keeps the interrupt flag as it was.","t":"code","b":[8],"m":"php","x":[2214,2258]},{"a":2278,"t":"code","b":[120],"m":"sei"},{"a":2279,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2281,"t":"code","b":[141,118,4],"m":"sta","oa":1142,"o":"a_0476"},{"a":2284,"t":"code","b":[169,127],"m":"lda","o":"#$7F"},{"a":2286,"t":"code","b":[45,117,4],"m":"and","oa":1141,"o":"a_0475"},{"a":2289,"t":"code","b":[141,117,4],"m":"sta","oa":1141,"o":"a_0475"},{"a":2292,"t":"code","b":[32,110,18],"m":"jsr","oa":4718,"o":"latch_collisions"},{"a":2295,"t":"code","b":[169,251],"m":"lda","o":"#$FB"},{"a":2297,"t":"code","b":[141,75,9],"m":"sta","oa":2379,"o":"irq_raster_call"},{"a":2300,"t":"code","b":[169,39],"m":"lda","o":"#$27"},{"a":2302,"t":"code","b":[141,76,9],"m":"sta","oa":2380,"o":"irq_raster_call_hi"},{"a":2305,"t":"code","b":[40],"m":"plp"},{"a":2306,"t":"code","b":[96],"m":"rts"},{"a":2307,"l":"reset_sound","c":"Reinstalls the vectors (install_vectors), clears the effects voices and silences the SID (clear_effects, silence_effects), stops the music ($04B5 = $FF) and clears $0463.","t":"code","b":[32,164,10],"m":"jsr","oa":2724,"o":"install_vectors","x":[2155,2198,2208,2242,2268,15297]},{"a":2310,"t":"code","b":[32,110,42],"m":"jsr","oa":10862,"o":"clear_effects"},{"a":2313,"t":"code","b":[32,229,42],"m":"jsr","oa":10981,"o":"silence_effects"},{"a":2316,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":2318,"t":"code","b":[141,181,4],"m":"sta","oa":1205,"o":"a_04B5"},{"a":2321,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2323,"t":"code","b":[141,99,4],"m":"sta","oa":1123,"o":"a_0463"},{"a":2326,"t":"code","b":[96],"m":"rts"},{"a":2327,"l":"set_vic_bank","c":"Sets the VIC-II bank to A (the low two bits of CIA 2 port A at $DD00), leaving the port's other bits alone.","t":"code","b":[77,0,221],"m":"eor","o":"cia2_port_a","x":[8822]},{"a":2330,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":2332,"t":"code","b":[77,0,221],"m":"eor","o":"cia2_port_a"},{"a":2335,"t":"code","b":[141,0,221],"m":"sta","o":"cia2_port_a"},{"a":2338,"t":"code","b":[96],"m":"rts"},{"a":2339,"c":"A second RTS that nothing reaches, between set_vic_bank and clear_pages.","t":"code","b":[96],"m":"rts"},{"a":2340,"l":"clear_pages","c":"Clears X pages of RAM to zero, starting at the page in its own operand at $0929 (incremented as it goes, so the operand in a snapshot shows where the last call stopped).","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[2085,2353]},{"a":2342,"t":"code","b":[152],"m":"tya"},{"a":2343,"l":"b_0927","t":"code","b":[153,0,2],"m":"sta","oa":512,"o":"a_0200,y","x":[2347]},{"a":2345,"t":"note","l":"clear_pages_page","c":"The high byte of clear_pages's STA: $02 as loaded, so the first call clears from $0200; each page cleared steps it on.","note":"inside the item at $0927","x":[2349]},{"a":2346,"t":"code","b":[200],"m":"iny"},{"a":2347,"t":"code","b":[208,250],"m":"bne","oa":2343,"o":"b_0927"},{"a":2349,"t":"code","b":[238,41,9],"m":"inc","oa":2345,"o":"clear_pages_page"},{"a":2352,"t":"code","b":[202],"m":"dex"},{"a":2353,"t":"code","b":[208,241],"m":"bne","oa":2340,"o":"clear_pages"},{"a":2355,"t":"code","b":[96],"m":"rts"},{"a":2356,"l":"irq_handler","c":"The game's IRQ handler (the vector at $FFFE). Ignores BRK. A raster interrupt is acknowledged and calls the routine whose address is at $094B (the level's raster code, $811B in play). A CIA 1 interrupt runs the music driver (music_tick) unless the music is off ($0207) or the game is paused or ending ($020F/$0210 bit 7).","t":"code","b":[216],"m":"cld"},{"a":2357,"t":"code","b":[72],"m":"pha"},{"a":2358,"t":"code","b":[138],"m":"txa"},{"a":2359,"t":"code","b":[72],"m":"pha"},{"a":2360,"t":"code","b":[152],"m":"tya"},{"a":2361,"t":"code","b":[72],"m":"pha"},{"a":2362,"t":"code","b":[186],"m":"tsx"},{"a":2363,"t":"code","b":[189,4,1],"m":"lda","oa":260,"o":"f_0104,x"},{"a":2366,"t":"code","b":[41,16],"m":"and","o":"#$10"},{"a":2368,"t":"code","b":[208,76],"m":"bne","oa":2446,"o":"irq_brk"},{"a":2370,"t":"code","b":[173,25,208],"m":"lda","o":"vic_irq_status"},{"a":2373,"t":"code","b":[16,35],"m":"bpl","oa":2410,"o":"irq_cia"},{"a":2375,"t":"code","b":[141,25,208],"m":"sta","o":"vic_irq_status"},{"a":2378,"t":"code","b":[32,255,255],"m":"jsr","oa":65535,"o":"$FFFF"},{"a":2379,"t":"note","l":"irq_raster_call","c":"The address the raster interrupt calls (the operand of the JSR at $094A), low byte here and high byte at $094C: $0B00 (an RTS) after install_vectors, then each screen's own routine.","note":"inside the item at $094A","x":[2297,2802,8759]},{"a":2380,"t":"note","l":"irq_raster_call_hi","c":"The raster call's high byte.","note":"inside the item at $094A","x":[2302,2807,8764]},{"a":2381,"l":"b_094D","t":"code","b":[104],"m":"pla","x":[2414,2429,2438,2443,2446]},{"a":2382,"t":"code","b":[168],"m":"tay"},{"a":2383,"t":"code","b":[104],"m":"pla"},{"a":2384,"t":"code","b":[170],"m":"tax"},{"a":2385,"t":"code","b":[104],"m":"pla"},{"a":2386,"l":"nmi_ignore","c":"An RTI: the NMI vector points here while RESTORE is ignored.","t":"code","b":[64],"m":"rti"},{"a":2387,"l":"nmi_rti","c":"Two more RTIs, at $0953 and $0954: install_vectors points the NMI vector at $0953 instead of $0952 when $0201 is non-zero.","t":"code","b":[64],"m":"rti"},{"a":2388,"t":"code","b":[64],"m":"rti"},{"a":2389,"t":"code","b":[64],"m":"rti"},{"a":2390,"l":"nmi_abort","c":"The RESTORE handler while the up-arrow key is held: frame_tick points the NMI vector here (X = $56) and it jumps to stage_abort, skipping the stage.","t":"code","b":[76,172,8],"m":"jmp","oa":2220,"o":"stage_abort"},{"a":2393,"l":"nmi_restart","c":"The RESTORE key's handler while a stage is armed (restore_arm at $3BC1 points the NMI vector here): puts back the marines alive when the stage began ($0206 into $0204), sets $0203 to $FF, rearms and restarts the stage through the level's own vector at $8002.","t":"code","b":[173,6,2],"m":"lda","oa":518,"o":"a_0206"},{"a":2396,"t":"code","b":[141,4,2],"m":"sta","oa":516,"o":"a_0204"},{"a":2399,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":2401,"t":"code","b":[141,3,2],"m":"sta","oa":515,"o":"a_0203"},{"a":2404,"t":"code","b":[32,193,59],"m":"jsr","oa":15297,"o":"restore_arm"},{"a":2407,"t":"code","b":[108,2,128],"m":"jmp","oa":32770,"o":"($8002)"},{"a":2410,"l":"irq_cia","c":"Not a raster interrupt, so CIA 1's timer: reading its interrupt register acknowledges it. With $0207 set the timer interrupt is turned off instead; otherwise the music driver runs unless the game is paused or the screen has been blanked for want of a key ($0210, $020F bit 7).","t":"code","b":[173,13,220],"m":"lda","o":"cia1_interrupt","x":[2373]},{"a":2413,"t":"code","b":[88],"m":"cli"},{"a":2414,"t":"code","b":[16,221],"m":"bpl","oa":2381,"o":"b_094D"},{"a":2416,"t":"code","b":[173,7,2],"m":"lda","oa":519,"o":"a_0207"},{"a":2419,"t":"code","b":[240,11],"m":"beq","oa":2432,"o":"b_0980"},{"a":2421,"t":"code","b":[169,127],"m":"lda","o":"#$7F"},{"a":2423,"t":"code","b":[141,13,220],"m":"sta","o":"cia1_interrupt"},{"a":2426,"t":"code","b":[173,13,220],"m":"lda","o":"cia1_interrupt"},{"a":2429,"t":"code","b":[76,77,9],"m":"jmp","oa":2381,"o":"b_094D"},{"a":2432,"l":"b_0980","t":"code","b":[173,16,2],"m":"lda","oa":528,"o":"a_0210","x":[2419]},{"a":2435,"t":"code","b":[13,15,2],"m":"ora","oa":527,"o":"a_020F"},{"a":2438,"t":"code","b":[48,197],"m":"bmi","oa":2381,"o":"b_094D"},{"a":2440,"t":"code","b":[32,158,36],"m":"jsr","oa":9374,"o":"music_tick"},{"a":2443,"t":"code","b":[76,77,9],"m":"jmp","oa":2381,"o":"b_094D"},{"a":2446,"l":"irq_brk","c":"A BRK: returns at once.","t":"code","b":[76,77,9],"m":"jmp","oa":2381,"o":"b_094D","x":[2368]},{"a":2449,"c":"Nine NOPs, room left before the level's entry point.","t":"code","b":[234],"m":"nop"},{"a":2450,"t":"code","b":[234],"m":"nop"},{"a":2451,"t":"code","b":[234],"m":"nop"},{"a":2452,"t":"code","b":[234],"m":"nop"},{"a":2453,"t":"code","b":[234],"m":"nop"},{"a":2454,"t":"code","b":[234],"m":"nop"},{"a":2455,"t":"code","b":[234],"m":"nop"},{"a":2456,"t":"code","b":[234],"m":"nop"},{"a":2457,"t":"code","b":[234],"m":"nop"},{"a":2458,"l":"level_frame","c":"Every level calls this once a frame: the trainer's skip key (trainer_skip), then frame_tick.","t":"code","b":[32,1,59],"m":"jsr","oa":15105,"o":"trainer_skip"},{"a":2461,"l":"frame_tick","c":"Called once a frame. Reads the keys; RUN/STOP and RESTORE together (with the RESTORE handler armed) toggle the pause flag $0210 and stop or restart CIA 1's timer and the SID's three gates. Then counts frames: $020D (the counter that wait_frames compares), $0208, and the clock in $0209 (ticks of 6 frames on PAL, 5 on NTSC, from video_adjust) and $020B (one tick in ten). With nothing pressed for a long while ($020E/$020F count frames without a key) the volume is set to 0 and the screen blanked. Finally places the sprites (sprite_setup), latches collisions, runs the music driver and the sound effects.","t":"code","b":[32,150,11],"m":"jsr","oa":2966,"o":"read_keys","x":[5279]},{"a":2464,"t":"code","b":[162,82],"m":"ldx","o":"#$52"},{"a":2466,"t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205"},{"a":2469,"t":"code","b":[201,7],"m":"cmp","o":"#$07"},{"a":2471,"t":"code","b":[240,7],"m":"beq","oa":2480,"o":"restore_choose"},{"a":2473,"t":"code","b":[44,23,2],"m":"bit","oa":535,"o":"a_0217"},{"a":2476,"t":"code","b":[80,2],"m":"bvc","oa":2480,"o":"restore_choose"},{"a":2478,"t":"code","b":[162,86],"m":"ldx","o":"#$56"},{"a":2480,"l":"restore_choose","c":"RUN/STOP newly pressed (bit 7 of $0218) toggles the pause flag $0210 unless the NMI vector already points at nmi_restart; pausing stops CIA 1's timer and clears the gate bits of the three voices, unpausing restarts the timer.","t":"code","b":[173,24,2],"m":"lda","oa":536,"o":"a_0218","x":[2471,2476]},{"a":2483,"t":"code","b":[16,60],"m":"bpl","oa":2545,"o":"restore_switch"},{"a":2485,"t":"code","b":[162,89],"m":"ldx","o":"#$59"},{"a":2487,"t":"code","b":[236,250,255],"m":"cpx","oa":65530,"o":"$FFFA"},{"a":2490,"t":"code","b":[240,53],"m":"beq","oa":2545,"o":"restore_switch"},{"a":2492,"t":"code","b":[173,16,2],"m":"lda","oa":528,"o":"a_0210"},{"a":2495,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":2497,"t":"code","b":[141,16,2],"m":"sta","oa":528,"o":"a_0210"},{"a":2500,"t":"code","b":[240,35],"m":"beq","oa":2537,"o":"b_09E9"},{"a":2502,"t":"code","b":[169,254],"m":"lda","o":"#$FE"},{"a":2504,"t":"code","b":[45,14,220],"m":"and","o":"cia1_control_a"},{"a":2507,"t":"code","b":[141,14,220],"m":"sta","o":"cia1_control_a"},{"a":2510,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":2512,"t":"code","b":[45,4,212],"m":"and","o":"sid_v1_control"},{"a":2515,"t":"code","b":[141,4,212],"m":"sta","o":"sid_v1_control"},{"a":2518,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":2520,"t":"code","b":[45,11,212],"m":"and","o":"sid_v2_control"},{"a":2523,"t":"code","b":[141,11,212],"m":"sta","o":"sid_v2_control"},{"a":2526,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":2528,"t":"code","b":[45,18,212],"m":"and","o":"sid_v3_control"},{"a":2531,"t":"code","b":[141,18,212],"m":"sta","o":"sid_v3_control"},{"a":2534,"t":"code","b":[76,241,9],"m":"jmp","oa":2545,"o":"restore_switch"},{"a":2537,"l":"b_09E9","t":"code","b":[173,14,220],"m":"lda","o":"cia1_control_a","x":[2500]},{"a":2540,"t":"code","b":[9,1],"m":"ora","o":"#$01"},{"a":2542,"t":"code","b":[141,14,220],"m":"sta","o":"cia1_control_a"},{"a":2545,"l":"restore_switch","c":"This instruction's opcode is a switch: $AE makes it LDX $FFFA (no change), $8E (written by start_stage and status_entry) makes it STX $FFFA, which points the NMI vector at $0952, $0956 or $0959 by X. Then checks rows 1 and 2 of the keyboard; with a key down the idle counters $020E/$020F restart.","t":"code","b":[174,250,255],"m":"ldx","oa":65530,"o":"$FFFA","x":[2483,2490,2534,2751,15312,15348,15356,15364,15372]},{"a":2548,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":2550,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":2553,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":2555,"t":"code","b":[141,2,220],"m":"sta","o":"cia1_ddr_a"},{"a":2558,"t":"code","b":[205,1,220],"m":"cmp","o":"cia1_port_b"},{"a":2561,"t":"code","b":[208,22],"m":"bne","oa":2585,"o":"b_0A19"},{"a":2563,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":2566,"t":"code","b":[205,0,220],"m":"cmp","o":"cia1_port_a"},{"a":2569,"t":"code","b":[208,14],"m":"bne","oa":2585,"o":"b_0A19"},{"a":2571,"t":"code","b":[169,253],"m":"lda","o":"#$FD"},{"a":2573,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":2576,"t":"code","b":[173,1,220],"m":"lda","o":"cia1_port_b"},{"a":2579,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":2581,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":2583,"t":"code","b":[240,8],"m":"beq","oa":2593,"o":"frame_counters"},{"a":2585,"l":"b_0A19","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2561,2569]},{"a":2587,"t":"code","b":[141,14,2],"m":"sta","oa":526,"o":"a_020E"},{"a":2590,"t":"code","b":[141,15,2],"m":"sta","oa":527,"o":"a_020F"},{"a":2593,"l":"frame_counters","c":"The frame counters: $020D for wait_frames, $0208, and the clock $0209 (one tick every 6 frames on PAL, 5 on NTSC, from $0200) and $020B (one tick every ten of those). Skipped while paused; with no key for 32,768 frames ($020F bit 7) the volume is set to 0.","t":"code","b":[162,2],"m":"ldx","o":"#$02","x":[2583]},{"a":2595,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2597,"t":"code","b":[44,15,2],"m":"bit","oa":527,"o":"a_020F"},{"a":2600,"t":"code","b":[48,57],"m":"bmi","oa":2659,"o":"b_0A63"},{"a":2602,"t":"code","b":[44,16,2],"m":"bit","oa":528,"o":"a_0210"},{"a":2605,"t":"code","b":[48,37],"m":"bmi","oa":2644,"o":"b_0A54"},{"a":2607,"t":"code","b":[238,13,2],"m":"inc","oa":525,"o":"a_020D"},{"a":2610,"t":"code","b":[238,8,2],"m":"inc","oa":520,"o":"a_0208"},{"a":2613,"t":"code","b":[206,10,2],"m":"dec","oa":522,"o":"a_020A"},{"a":2616,"t":"code","b":[208,25],"m":"bne","oa":2643,"o":"b_0A53"},{"a":2618,"t":"code","b":[238,9,2],"m":"inc","oa":521,"o":"a_0209"},{"a":2621,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":2623,"t":"code","b":[24],"m":"clc"},{"a":2624,"t":"code","b":[109,0,2],"m":"adc","oa":512,"o":"a_0200"},{"a":2627,"t":"code","b":[141,10,2],"m":"sta","oa":522,"o":"a_020A"},{"a":2630,"t":"code","b":[206,12,2],"m":"dec","oa":524,"o":"a_020C"},{"a":2633,"t":"code","b":[208,8],"m":"bne","oa":2643,"o":"b_0A53"},{"a":2635,"t":"code","b":[238,11,2],"m":"inc","oa":523,"o":"a_020B"},{"a":2638,"t":"code","b":[169,10],"m":"lda","o":"#$0A"},{"a":2640,"t":"code","b":[141,12,2],"m":"sta","oa":524,"o":"a_020C"},{"a":2643,"l":"b_0A53","t":"code","b":[202],"m":"dex","x":[2616,2633]},{"a":2644,"l":"b_0A54","t":"code","b":[201,0],"m":"cmp","o":"#$00","x":[2605]},{"a":2646,"t":"code","b":[240,8],"m":"beq","oa":2656,"o":"b_0A60"},{"a":2648,"t":"code","b":[238,14,2],"m":"inc","oa":526,"o":"a_020E"},{"a":2651,"t":"code","b":[208,3],"m":"bne","oa":2656,"o":"b_0A60"},{"a":2653,"t":"code","b":[238,15,2],"m":"inc","oa":527,"o":"a_020F"},{"a":2656,"l":"b_0A60","t":"code","b":[202],"m":"dex","x":[2646,2651]},{"a":2657,"t":"code","b":[240,8],"m":"beq","oa":2667,"o":"frame_sprites_sound"},{"a":2659,"l":"b_0A63","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2600]},{"a":2661,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":2664,"t":"code","b":[202],"m":"dex"},{"a":2665,"t":"code","b":[240,0],"m":"beq","oa":2667,"o":"frame_sprites_sound"},{"a":2667,"l":"frame_sprites_sound","c":"Places the sprites, latches the collisions and, unless paused or idle, runs the music (when $0207 asks for it from here) and the sound effects.","t":"code","b":[32,185,17],"m":"jsr","oa":4537,"o":"sprite_setup","x":[2657,2665]},{"a":2670,"t":"code","b":[32,110,18],"m":"jsr","oa":4718,"o":"latch_collisions"},{"a":2673,"t":"code","b":[173,16,2],"m":"lda","oa":528,"o":"a_0210"},{"a":2676,"t":"code","b":[13,15,2],"m":"ora","oa":527,"o":"a_020F"},{"a":2679,"t":"code","b":[48,14],"m":"bmi","oa":2695,"o":"idle_blank"},{"a":2681,"t":"code","b":[173,7,2],"m":"lda","oa":519,"o":"a_0207"},{"a":2684,"t":"code","b":[240,3],"m":"beq","oa":2689,"o":"b_0A81"},{"a":2686,"t":"code","b":[32,158,36],"m":"jsr","oa":9374,"o":"music_tick"},{"a":2689,"l":"b_0A81","t":"code","b":[32,251,39],"m":"jsr","oa":10235,"o":"effects_tick","x":[2684]},{"a":2692,"t":"code","b":[32,15,43],"m":"jsr","oa":11023,"o":"effects_frame"},{"a":2695,"l":"idle_blank","c":"After 32,768 frames with no key the screen and the volume are turned off.","t":"code","b":[173,15,2],"m":"lda","oa":527,"o":"a_020F","x":[2679]},{"a":2698,"t":"code","b":[16,8],"m":"bpl","oa":2708,"o":"r_0A94"},{"a":2700,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2702,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":2705,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":2708,"l":"r_0A94","t":"code","b":[96],"m":"rts","x":[2698]},{"a":2709,"l":"wait_frames","c":"Waits until A frames have passed: clears the frame counter $020D and loops until it reaches A.","t":"code","b":[72],"m":"pha","x":[4917,6359,6416,8810,9150,9243]},{"a":2710,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2712,"t":"code","b":[141,13,2],"m":"sta","oa":525,"o":"a_020D"},{"a":2715,"t":"code","b":[104],"m":"pla"},{"a":2716,"l":"b_0A9C","t":"code","b":[205,13,2],"m":"cmp","oa":525,"o":"a_020D","x":[2721]},{"a":2719,"t":"code","b":[144,2],"m":"bcc","oa":2723,"o":"r_0AA3"},{"a":2721,"t":"code","b":[208,249],"m":"bne","oa":2716,"o":"b_0A9C"},{"a":2723,"l":"r_0AA3","t":"code","b":[96],"m":"rts","x":[2719]},{"a":2724,"l":"install_vectors","c":"Installs the game's vectors in RAM under the KERNAL: NMI to $0952 or $0953 (depending on $0201), IRQ to irq_handler at $0934; turns off every VIC-II and CIA interrupt, acknowledges any pending, copies nine bytes of starting values from $2ECF into $0208-$0210 and clears the music flag $0207 and the raster call.","t":"code","b":[8],"m":"php","x":[2088,2307]},{"a":2725,"t":"code","b":[120],"m":"sei"},{"a":2726,"t":"code","b":[162,9],"m":"ldx","o":"#$09"},{"a":2728,"t":"code","b":[173,1,2],"m":"lda","oa":513,"o":"a_0201"},{"a":2731,"t":"code","b":[240,8],"m":"beq","oa":2741,"o":"b_0AB5"},{"a":2733,"t":"code","b":[169,83],"m":"lda","o":"#$53"},{"a":2735,"t":"code","b":[141,250,255],"m":"sta","oa":65530,"o":"$FFFA"},{"a":2738,"t":"code","b":[76,186,10],"m":"jmp","oa":2746,"o":"j_0ABA"},{"a":2741,"l":"b_0AB5","t":"code","b":[169,82],"m":"lda","o":"#$52","x":[2731]},{"a":2743,"t":"code","b":[141,250,255],"m":"sta","oa":65530,"o":"$FFFA"},{"a":2746,"l":"j_0ABA","t":"code","b":[142,251,255],"m":"stx","oa":65531,"o":"$FFFB","x":[2738]},{"a":2749,"t":"code","b":[169,174],"m":"lda","o":"#$AE"},{"a":2751,"t":"code","b":[141,241,9],"m":"sta","oa":2545,"o":"restore_switch"},{"a":2754,"t":"code","b":[169,52],"m":"lda","o":"#$34"},{"a":2756,"t":"code","b":[141,254,255],"m":"sta","oa":65534,"o":"$FFFE"},{"a":2759,"t":"code","b":[169,9],"m":"lda","o":"#$09"},{"a":2761,"t":"code","b":[141,255,255],"m":"sta","oa":65535,"o":"$FFFF"},{"a":2764,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2766,"t":"code","b":[141,26,208],"m":"sta","o":"vic_irq_enable"},{"a":2769,"t":"code","b":[173,25,208],"m":"lda","o":"vic_irq_status"},{"a":2772,"t":"code","b":[141,25,208],"m":"sta","o":"vic_irq_status"},{"a":2775,"t":"code","b":[169,127],"m":"lda","o":"#$7F"},{"a":2777,"t":"code","b":[141,13,220],"m":"sta","o":"cia1_interrupt"},{"a":2780,"t":"code","b":[141,13,221],"m":"sta","o":"cia2_interrupt"},{"a":2783,"t":"code","b":[173,13,220],"m":"lda","o":"cia1_interrupt"},{"a":2786,"t":"code","b":[173,13,221],"m":"lda","o":"cia2_interrupt"},{"a":2789,"t":"code","b":[162,8],"m":"ldx","o":"#$08"},{"a":2791,"l":"b_0AE7","t":"code","b":[189,207,46],"m":"lda","oa":11983,"o":"frame_counter_init,x","x":[2798]},{"a":2794,"t":"code","b":[157,8,2],"m":"sta","oa":520,"o":"a_0208,x"},{"a":2797,"t":"code","b":[202],"m":"dex"},{"a":2798,"t":"code","b":[16,247],"m":"bpl","oa":2791,"o":"b_0AE7"},{"a":2800,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2802,"t":"code","b":[141,75,9],"m":"sta","oa":2379,"o":"irq_raster_call"},{"a":2805,"t":"code","b":[169,11],"m":"lda","o":"#$0B"},{"a":2807,"t":"code","b":[141,76,9],"m":"sta","oa":2380,"o":"irq_raster_call_hi"},{"a":2810,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2812,"t":"code","b":[141,7,2],"m":"sta","oa":519,"o":"a_0207"},{"a":2815,"t":"code","b":[40],"m":"plp"},{"a":2816,"c":"The raster call's default target: install_vectors points the JSR at $094A here, an RTS, until a level sets its own.","t":"code","b":[96],"m":"rts"},{"a":2817,"l":"draw_char_block","c":"Draws a block of 8-by-8 characters into a bitmap. Its arguments are the eight bytes after the JSR, copied to $03-$0A: the font's address ($03/$04), the string of character codes ($05/$06), the bitmap address ($07/$08), the characters in a row ($09) and the number of rows ($0A). Each code times 8 plus the font's address gives the eight bytes copied; each row moves the bitmap address on by 320 bytes, one character row. Returns past the arguments. Called by the levels, such as level 2 at $8389.","t":"code","b":[104],"m":"pla"},{"a":2818,"t":"code","b":[141,23,11],"m":"sta","oa":2839,"o":"dcb_ret_lo"},{"a":2821,"t":"code","b":[24],"m":"clc"},{"a":2822,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":2824,"t":"code","b":[133,2],"m":"sta","oa":2,"o":"zpa_02"},{"a":2826,"t":"code","b":[104],"m":"pla"},{"a":2827,"t":"code","b":[141,24,11],"m":"sta","oa":2840,"o":"dcb_ret_hi"},{"a":2830,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":2832,"t":"code","b":[72],"m":"pha"},{"a":2833,"t":"code","b":[165,2],"m":"lda","oa":2,"o":"zpa_02"},{"a":2835,"t":"code","b":[72],"m":"pha"},{"a":2836,"t":"code","b":[160,8],"m":"ldy","o":"#$08"},{"a":2838,"l":"dcb_copy_args","c":"Copies the inline arguments; the return address was patched into this LDA's operand.","t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y","x":[2845]},{"a":2839,"t":"note","l":"dcb_ret_lo","c":"draw_char_block's return address, low byte, patched into this LDA so the inline arguments can be read.","note":"inside the item at $0B16","x":[2818]},{"a":2840,"t":"note","l":"dcb_ret_hi","c":"The return address's high byte.","note":"inside the item at $0B16","x":[2827]},{"a":2841,"t":"code","b":[153,2,0],"m":"sta","oa":2,"o":"zpa_02,y"},{"a":2844,"t":"code","b":[136],"m":"dey"},{"a":2845,"t":"code","b":[208,247],"m":"bne","oa":2838,"o":"dcb_copy_args"},{"a":2847,"l":"b_0B1F","t":"code","b":[166,9],"m":"ldx","oa":9,"o":"zpa_09","x":[2934]},{"a":2849,"t":"code","b":[165,7],"m":"lda","oa":7,"o":"zpa_07"},{"a":2851,"t":"code","b":[141,82,11],"m":"sta","oa":2898,"o":"dcb_bitmap_lo"},{"a":2854,"t":"code","b":[165,8],"m":"lda","oa":8,"o":"zpa_08"},{"a":2856,"t":"code","b":[141,83,11],"m":"sta","oa":2899,"o":"dcb_bitmap_hi"},{"a":2859,"l":"b_0B2B","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[2917]},{"a":2861,"t":"code","b":[177,5],"m":"lda","oa":5,"o":"(zpp_05),y"},{"a":2863,"t":"code","b":[230,5],"m":"inc","oa":5,"o":"zpp_05"},{"a":2865,"t":"code","b":[208,2],"m":"bne","oa":2869,"o":"b_0B35"},{"a":2867,"t":"code","b":[230,6],"m":"inc","oa":6,"o":"zpa_06"},{"a":2869,"l":"b_0B35","t":"code","b":[132,2],"m":"sty","oa":2,"o":"zpa_02","x":[2865]},{"a":2871,"t":"code","b":[10],"m":"asl","o":"a"},{"a":2872,"t":"code","b":[38,2],"m":"rol","oa":2,"o":"zpa_02"},{"a":2874,"t":"code","b":[10],"m":"asl","o":"a"},{"a":2875,"t":"code","b":[38,2],"m":"rol","oa":2,"o":"zpa_02"},{"a":2877,"t":"code","b":[10],"m":"asl","o":"a"},{"a":2878,"t":"code","b":[38,2],"m":"rol","oa":2,"o":"zpa_02"},{"a":2880,"t":"code","b":[101,3],"m":"adc","oa":3,"o":"zpa_03"},{"a":2882,"t":"code","b":[141,79,11],"m":"sta","oa":2895,"o":"dcb_glyph_lo"},{"a":2885,"t":"code","b":[165,2],"m":"lda","oa":2,"o":"zpa_02"},{"a":2887,"t":"code","b":[101,4],"m":"adc","oa":4,"o":"zpa_04"},{"a":2889,"t":"code","b":[141,80,11],"m":"sta","oa":2896,"o":"dcb_glyph_hi"},{"a":2892,"t":"code","b":[160,7],"m":"ldy","o":"#$07"},{"a":2894,"l":"dcb_copy_glyph","c":"Copies the character's eight bytes; source and target were patched into these two operands.","t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y","x":[2901]},{"a":2895,"t":"note","l":"dcb_glyph_lo","c":"The glyph's address in the font, low byte, patched by draw_char_block for each character.","note":"inside the item at $0B4E","x":[2882]},{"a":2896,"t":"note","l":"dcb_glyph_hi","c":"The glyph's address, high byte.","note":"inside the item at $0B4E","x":[2889]},{"a":2897,"t":"code","b":[153,255,255],"m":"sta","oa":65535,"o":"$FFFF,y"},{"a":2898,"t":"note","l":"dcb_bitmap_lo","c":"The bitmap address being drawn to, low byte, stepped eight bytes a character.","note":"inside the item at $0B51","x":[2851,2903,2908]},{"a":2899,"t":"note","l":"dcb_bitmap_hi","c":"The bitmap address, high byte.","note":"inside the item at $0B51","x":[2856,2913]},{"a":2900,"t":"code","b":[136],"m":"dey"},{"a":2901,"t":"code","b":[16,247],"m":"bpl","oa":2894,"o":"dcb_copy_glyph"},{"a":2903,"t":"code","b":[173,82,11],"m":"lda","oa":2898,"o":"dcb_bitmap_lo"},{"a":2906,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":2908,"t":"code","b":[141,82,11],"m":"sta","oa":2898,"o":"dcb_bitmap_lo"},{"a":2911,"t":"code","b":[144,3],"m":"bcc","oa":2916,"o":"b_0B64"},{"a":2913,"t":"code","b":[238,83,11],"m":"inc","oa":2899,"o":"dcb_bitmap_hi"},{"a":2916,"l":"b_0B64","t":"code","b":[202],"m":"dex","x":[2911]},{"a":2917,"t":"code","b":[208,196],"m":"bne","oa":2859,"o":"b_0B2B"},{"a":2919,"t":"code","b":[165,7],"m":"lda","oa":7,"o":"zpa_07"},{"a":2921,"t":"code","b":[24],"m":"clc"},{"a":2922,"t":"code","b":[105,64],"m":"adc","o":"#$40"},{"a":2924,"t":"code","b":[133,7],"m":"sta","oa":7,"o":"zpa_07"},{"a":2926,"t":"code","b":[165,8],"m":"lda","oa":8,"o":"zpa_08"},{"a":2928,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":2930,"t":"code","b":[133,8],"m":"sta","oa":8,"o":"zpa_08"},{"a":2932,"t":"code","b":[198,10],"m":"dec","oa":10,"o":"zpa_0A"},{"a":2934,"t":"code","b":[208,167],"m":"bne","oa":2847,"o":"b_0B1F"},{"a":2936,"t":"code","b":[96],"m":"rts"},{"a":2937,"l":"key_init","c":"Clears the keyboard state (key_clear) and the key and joystick results $0221-$0223.","t":"code","b":[32,137,11],"m":"jsr","oa":2953,"o":"key_clear","x":[2146]},{"a":2940,"t":"code","b":[141,35,2],"m":"sta","oa":547,"o":"a_0223"},{"a":2943,"t":"code","b":[142,34,2],"m":"stx","oa":546,"o":"a_0222"},{"a":2946,"t":"code","b":[142,33,2],"m":"stx","oa":545,"o":"a_0221"},{"a":2949,"t":"code","b":[96],"m":"rts"},{"a":2950,"l":"keys_none","c":"No key read: reads the joysticks, then clears the keyboard state. read_keys comes here from $0BA8 when a joystick line is low on both of CIA 1's ports (a stick pushed or fire held), whatever keys are down, and from $0BAD when no key is down.","t":"code","b":[32,254,11],"m":"jsr","oa":3070,"o":"read_joysticks","x":[2984,2989]},{"a":2953,"l":"key_clear","c":"Clears the 16 bytes of keyboard state at $0211.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2937]},{"a":2955,"t":"code","b":[162,15],"m":"ldx","o":"#$0F"},{"a":2957,"l":"b_0B8D","t":"code","b":[157,17,2],"m":"sta","oa":529,"o":"f_0211,x","x":[2961]},{"a":2960,"t":"code","b":[202],"m":"dex"},{"a":2961,"t":"code","b":[16,250],"m":"bpl","oa":2957,"o":"b_0B8D"},{"a":2963,"t":"code","b":[96],"m":"rts"},{"a":2964,"c":"Two bytes nothing reads.","t":"byte","b":[234,234]},{"a":2966,"l":"read_keys","c":"Scans the keyboard matrix itself, eight rows from the masks at $3258, and keeps for each row the keys newly pressed ($0219+x) and those held ($0211+x). The first newly pressed key is turned into a character through the table at $3268 and left in $0221 (bit 7 set when none). When no key is down it reads the joysticks instead (read_joysticks).","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2461,6460]},{"a":2968,"t":"code","b":[141,2,220],"m":"sta","o":"cia1_ddr_a"},{"a":2971,"t":"code","b":[141,3,220],"m":"sta","o":"cia1_ddr_b"},{"a":2974,"t":"code","b":[173,1,220],"m":"lda","o":"cia1_port_b"},{"a":2977,"t":"code","b":[45,0,220],"m":"and","o":"cia1_port_a"},{"a":2980,"t":"code","b":[9,224],"m":"ora","o":"#$E0"},{"a":2982,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":2984,"t":"code","b":[208,220],"m":"bne","oa":2950,"o":"keys_none"},{"a":2986,"t":"code","b":[32,212,59],"m":"jsr","oa":15316,"o":"any_key_down"},{"a":2989,"t":"code","b":[240,215],"m":"beq","oa":2950,"o":"keys_none"},{"a":2991,"l":"key_row_loop","c":"Each row in turn: the row's mask from $3258 selects it, and the keys held last time and the never-reported keys in $3260 are masked out to leave the keys newly pressed.","t":"code","b":[189,88,50],"m":"lda","oa":12888,"o":"key_rows,x","x":[3019]},{"a":2994,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":2997,"t":"code","b":[173,1,220],"m":"lda","o":"cia1_port_b"},{"a":3000,"t":"code","b":[72],"m":"pha"},{"a":3001,"t":"code","b":[29,17,2],"m":"ora","oa":529,"o":"f_0211,x"},{"a":3004,"t":"code","b":[29,96,50],"m":"ora","oa":12896,"o":"key_ignore,x"},{"a":3007,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":3009,"t":"code","b":[157,25,2],"m":"sta","oa":537,"o":"f_0219,x"},{"a":3012,"t":"code","b":[104],"m":"pla"},{"a":3013,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":3015,"t":"code","b":[157,17,2],"m":"sta","oa":529,"o":"f_0211,x"},{"a":3018,"t":"code","b":[202],"m":"dex"},{"a":3019,"t":"code","b":[16,226],"m":"bpl","oa":2991,"o":"key_row_loop"},{"a":3021,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":3023,"l":"key_find_new","c":"Finds the first row with a newly pressed key and turns its column into a character through $3268; otherwise marks no key (bit 7 of $0221).","t":"code","b":[189,25,2],"m":"lda","oa":537,"o":"f_0219,x","x":[3029]},{"a":3026,"t":"code","b":[208,13],"m":"bne","oa":3041,"o":"b_0BE1"},{"a":3028,"t":"code","b":[202],"m":"dex"},{"a":3029,"t":"code","b":[16,248],"m":"bpl","oa":3023,"o":"key_find_new"},{"a":3031,"t":"code","b":[173,33,2],"m":"lda","oa":545,"o":"a_0221"},{"a":3034,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":3036,"t":"code","b":[141,33,2],"m":"sta","oa":545,"o":"a_0221"},{"a":3039,"t":"code","b":[48,20],"m":"bmi","oa":3061,"o":"b_0BF5"},{"a":3041,"l":"b_0BE1","t":"code","b":[141,33,2],"m":"sta","oa":545,"o":"a_0221","x":[3026]},{"a":3044,"t":"code","b":[138],"m":"txa"},{"a":3045,"l":"b_0BE5","t":"code","b":[78,33,2],"m":"lsr","oa":545,"o":"a_0221","x":[3052]},{"a":3048,"t":"code","b":[176,4],"m":"bcs","oa":3054,"o":"b_0BEE"},{"a":3050,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":3052,"t":"code","b":[208,247],"m":"bne","oa":3045,"o":"b_0BE5"},{"a":3054,"l":"b_0BEE","t":"code","b":[170],"m":"tax","x":[3048]},{"a":3055,"t":"code","b":[189,104,50],"m":"lda","oa":12904,"o":"key_chars,x"},{"a":3058,"t":"code","b":[141,33,2],"m":"sta","oa":545,"o":"a_0221"},{"a":3061,"l":"b_0BF5","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[3039]},{"a":3063,"t":"code","b":[141,34,2],"m":"sta","oa":546,"o":"a_0222"},{"a":3066,"t":"code","b":[141,35,2],"m":"sta","oa":547,"o":"a_0223"},{"a":3069,"t":"code","b":[96],"m":"rts"},{"a":3070,"l":"read_joysticks","c":"Reads both control ports at once (CIA 1 ports A and B ANDed) into $0222 (directions and fire held) and $0223 (newly pressed), and marks no key in $0221.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2950]},{"a":3072,"t":"code","b":[141,2,220],"m":"sta","o":"cia1_ddr_a"},{"a":3075,"t":"code","b":[173,1,220],"m":"lda","o":"cia1_port_b"},{"a":3078,"t":"code","b":[45,0,220],"m":"and","o":"cia1_port_a"},{"a":3081,"t":"code","b":[72],"m":"pha"},{"a":3082,"t":"code","b":[13,34,2],"m":"ora","oa":546,"o":"a_0222"},{"a":3085,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":3087,"t":"code","b":[41,31],"m":"and","o":"#$1F"},{"a":3089,"t":"code","b":[141,35,2],"m":"sta","oa":547,"o":"a_0223"},{"a":3092,"t":"code","b":[104],"m":"pla"},{"a":3093,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":3095,"t":"code","b":[41,31],"m":"and","o":"#$1F"},{"a":3097,"t":"code","b":[141,34,2],"m":"sta","oa":546,"o":"a_0222"},{"a":3100,"t":"code","b":[173,33,2],"m":"lda","oa":545,"o":"a_0221"},{"a":3103,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":3105,"t":"code","b":[141,33,2],"m":"sta","oa":545,"o":"a_0221"},{"a":3108,"t":"code","b":[96],"m":"rts"},{"a":3109,"l":"text_origin","c":"Sets where text is drawn: X is the high byte of the bitmap and Y the high byte of the screen matrix that text_at uses; also sets the colour to $0F and the column to 0.","t":"code","b":[142,36,2],"m":"stx","oa":548,"o":"a_0224","x":[8817]},{"a":3112,"t":"code","b":[140,37,2],"m":"sty","oa":549,"o":"a_0225"},{"a":3115,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":3117,"t":"code","b":[141,38,2],"m":"sta","oa":550,"o":"a_0226"},{"a":3120,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":3122,"t":"code","b":[141,39,2],"m":"sta","oa":551,"o":"a_0227"},{"a":3125,"t":"code","b":[170],"m":"tax"},{"a":3126,"t":"code","b":[168],"m":"tay"},{"a":3127,"l":"text_cursor","c":"Recomputes the text pointers for the current column and row ($0228, $0229).","t":"code","b":[174,40,2],"m":"ldx","oa":552,"o":"a_0228","x":[5135,5154]},{"a":3130,"t":"code","b":[172,41,2],"m":"ldy","oa":553,"o":"a_0229"},{"a":3133,"l":"text_at","c":"Moves the text cursor to column X, row Y: zero page $0D/$0E points at the cell in the screen matrix (the colour byte) and $0B/$0C at the cell's 8 bytes in the bitmap, from the row tables at $32A8 and $32C0.","t":"code","b":[142,40,2],"m":"stx","oa":552,"o":"a_0228","x":[3450]},{"a":3136,"t":"code","b":[140,41,2],"m":"sty","oa":553,"o":"a_0229"},{"a":3139,"t":"code","b":[138],"m":"txa"},{"a":3140,"t":"code","b":[24],"m":"clc"},{"a":3141,"t":"code","b":[121,168,50],"m":"adc","oa":12968,"o":"row_lo,y"},{"a":3144,"t":"code","b":[133,2],"m":"sta","oa":2,"o":"zpa_02"},{"a":3146,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":3148,"t":"code","b":[185,192,50],"m":"lda","oa":12992,"o":"row_hi,y"},{"a":3151,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":3153,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"zpa_03"},{"a":3155,"t":"code","b":[109,37,2],"m":"adc","oa":549,"o":"a_0225"},{"a":3158,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":3160,"t":"code","b":[165,2],"m":"lda","oa":2,"o":"zpa_02"},{"a":3162,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3163,"t":"code","b":[38,3],"m":"rol","oa":3,"o":"zpa_03"},{"a":3165,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3166,"t":"code","b":[38,3],"m":"rol","oa":3,"o":"zpa_03"},{"a":3168,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3169,"t":"code","b":[38,3],"m":"rol","oa":3,"o":"zpa_03"},{"a":3171,"t":"code","b":[133,11],"m":"sta","oa":11,"o":"zpa_0B"},{"a":3173,"t":"code","b":[165,3],"m":"lda","oa":3,"o":"zpa_03"},{"a":3175,"t":"code","b":[109,36,2],"m":"adc","oa":548,"o":"a_0224"},{"a":3178,"t":"code","b":[133,12],"m":"sta","oa":12,"o":"zpa_0C"},{"a":3180,"t":"code","b":[96],"m":"rts"},{"a":3181,"l":"draw_char","c":"Draws the ASCII character in A (from $20) at the text cursor on the bitmap screen: writes the colour from $0226 into the screen matrix and copies the character's 8 bytes from the font at $30A0 (character $20 first) into the bitmap, then moves the cursor one column right.","t":"code","b":[56],"m":"sec"},{"a":3182,"t":"code","b":[233,32],"m":"sbc","o":"#$20"},{"a":3184,"t":"code","b":[48,56],"m":"bmi","oa":3242,"o":"r_0CAA"},{"a":3186,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3187,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3188,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3189,"t":"code","b":[8],"m":"php"},{"a":3190,"t":"code","b":[24],"m":"clc"},{"a":3191,"t":"code","b":[105,88],"m":"adc","o":"#$58"},{"a":3193,"t":"code","b":[141,148,12],"m":"sta","oa":3220,"o":"glyph8_lo"},{"a":3196,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":3198,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":3200,"t":"code","b":[40],"m":"plp"},{"a":3201,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":3203,"t":"code","b":[141,149,12],"m":"sta","oa":3221,"o":"glyph8_hi"},{"a":3206,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":3208,"t":"code","b":[173,38,2],"m":"lda","oa":550,"o":"a_0226"},{"a":3211,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":3213,"t":"code","b":[230,13],"m":"inc","oa":13,"o":"zpa_0D"},{"a":3215,"t":"code","b":[208,2],"m":"bne","oa":3219,"o":"b_0C93"},{"a":3217,"t":"code","b":[230,14],"m":"inc","oa":14,"o":"zpa_0E"},{"a":3219,"l":"b_0C93","t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y","x":[3215,3227]},{"a":3220,"t":"note","l":"glyph8_lo","c":"draw_char's glyph address, low byte: $3058 plus eight times the character less $20.","note":"inside the item at $0C93","x":[3193]},{"a":3221,"t":"note","l":"glyph8_hi","c":"draw_char's glyph address, high byte.","note":"inside the item at $0C93","x":[3203]},{"a":3222,"t":"code","b":[145,11],"m":"sta","oa":11,"o":"(zpa_0B),y"},{"a":3224,"t":"code","b":[200],"m":"iny"},{"a":3225,"t":"code","b":[192,8],"m":"cpy","o":"#$08"},{"a":3227,"t":"code","b":[144,246],"m":"bcc","oa":3219,"o":"b_0C93"},{"a":3229,"t":"code","b":[152],"m":"tya"},{"a":3230,"t":"code","b":[24],"m":"clc"},{"a":3231,"t":"code","b":[101,11],"m":"adc","oa":11,"o":"zpa_0B"},{"a":3233,"t":"code","b":[133,11],"m":"sta","oa":11,"o":"zpa_0B"},{"a":3235,"t":"code","b":[144,2],"m":"bcc","oa":3239,"o":"b_0CA7"},{"a":3237,"t":"code","b":[230,12],"m":"inc","oa":12,"o":"zpa_0C"},{"a":3239,"l":"b_0CA7","t":"code","b":[238,40,2],"m":"inc","oa":552,"o":"a_0228","x":[3235]},{"a":3242,"l":"r_0CAA","t":"code","b":[96],"m":"rts","x":[3184]},{"a":3243,"l":"draw_char_wide","c":"A second character drawer for a font of 4-byte characters at $2ED8 (character $20 first): each byte holds two rows of 4 bits, widened through the table at $32D8 into the multicolour bitmap. Used by print_wide.","t":"code","b":[56],"m":"sec"},{"a":3244,"t":"code","b":[233,32],"m":"sbc","o":"#$20"},{"a":3246,"t":"code","b":[48,79],"m":"bmi","oa":3327,"o":"r_0CFF"},{"a":3248,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3249,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3250,"t":"code","b":[8],"m":"php"},{"a":3251,"t":"code","b":[24],"m":"clc"},{"a":3252,"t":"code","b":[105,216],"m":"adc","o":"#$D8"},{"a":3254,"t":"code","b":[141,209,12],"m":"sta","oa":3281,"o":"glyph4_lo"},{"a":3257,"t":"code","b":[169,46],"m":"lda","o":"#$2E"},{"a":3259,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":3261,"t":"code","b":[40],"m":"plp"},{"a":3262,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":3264,"t":"code","b":[141,210,12],"m":"sta","oa":3282,"o":"glyph4_hi"},{"a":3267,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":3269,"t":"code","b":[173,38,2],"m":"lda","oa":550,"o":"a_0226"},{"a":3272,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":3274,"t":"code","b":[230,13],"m":"inc","oa":13,"o":"zpa_0D"},{"a":3276,"t":"code","b":[208,2],"m":"bne","oa":3280,"o":"b_0CD0"},{"a":3278,"t":"code","b":[230,14],"m":"inc","oa":14,"o":"zpa_0E"},{"a":3280,"l":"b_0CD0","t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y","x":[3276,3312]},{"a":3281,"t":"note","l":"glyph4_lo","c":"draw_char_wide's glyph address, low byte: $2ED8 plus four times the character less $20.","note":"inside the item at $0CD0","x":[3254]},{"a":3282,"t":"note","l":"glyph4_hi","c":"draw_char_wide's glyph address, high byte.","note":"inside the item at $0CD0","x":[3264]},{"a":3283,"t":"code","b":[72],"m":"pha"},{"a":3284,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":3285,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":3286,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":3287,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":3288,"t":"code","b":[170],"m":"tax"},{"a":3289,"t":"code","b":[189,216,50],"m":"lda","oa":13016,"o":"nibble_wide,x"},{"a":3292,"t":"code","b":[145,11],"m":"sta","oa":11,"o":"(zpa_0B),y"},{"a":3294,"t":"code","b":[230,11],"m":"inc","oa":11,"o":"zpa_0B"},{"a":3296,"t":"code","b":[208,2],"m":"bne","oa":3300,"o":"b_0CE4"},{"a":3298,"t":"code","b":[230,12],"m":"inc","oa":12,"o":"zpa_0C"},{"a":3300,"l":"b_0CE4","t":"code","b":[104],"m":"pla","x":[3296]},{"a":3301,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":3303,"t":"code","b":[170],"m":"tax"},{"a":3304,"t":"code","b":[189,216,50],"m":"lda","oa":13016,"o":"nibble_wide,x"},{"a":3307,"t":"code","b":[145,11],"m":"sta","oa":11,"o":"(zpa_0B),y"},{"a":3309,"t":"code","b":[200],"m":"iny"},{"a":3310,"t":"code","b":[192,4],"m":"cpy","o":"#$04"},{"a":3312,"t":"code","b":[144,222],"m":"bcc","oa":3280,"o":"b_0CD0"},{"a":3314,"t":"code","b":[152],"m":"tya"},{"a":3315,"t":"code","b":[24],"m":"clc"},{"a":3316,"t":"code","b":[101,11],"m":"adc","oa":11,"o":"zpa_0B"},{"a":3318,"t":"code","b":[133,11],"m":"sta","oa":11,"o":"zpa_0B"},{"a":3320,"t":"code","b":[144,2],"m":"bcc","oa":3324,"o":"b_0CFC"},{"a":3322,"t":"code","b":[230,12],"m":"inc","oa":12,"o":"zpa_0C"},{"a":3324,"l":"b_0CFC","t":"code","b":[238,40,2],"m":"inc","oa":552,"o":"a_0228","x":[3320]},{"a":3327,"l":"r_0CFF","t":"code","b":[96],"m":"rts","x":[3246]},{"a":3328,"l":"print","c":"Prints the text at the address in its own operand ($0D18/$0D19) with draw_char. A zero byte ends it. Bytes $20-$7F are characters; $FF starts a new line at the left margin; $E0-$FE moves to row (byte AND $1F) at the left margin; $C0-$DF sets the left margin to (byte AND $1F); $B0-$BF sets the low nibble of the colour and $A0-$AF the high nibble; $80-$9F are skipped.","t":"code","b":[169,109],"m":"lda","o":"#$6D","x":[5148,5662,6093,6122,6150,6169,6408,6447,9174]},{"a":3330,"t":"code","b":[141,39,13],"m":"sta","oa":3367,"o":"print_drawer"},{"a":3333,"t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":3335,"t":"code","b":[141,40,13],"m":"sta","oa":3368,"o":"print_drawer_hi"},{"a":3338,"t":"code","b":[76,23,13],"m":"jmp","oa":3351,"o":"j_0D17"},{"a":3341,"l":"print_wide","c":"Same as print, but draws with draw_char_wide.","t":"code","b":[169,171],"m":"lda","o":"#$AB","x":[9180]},{"a":3343,"t":"code","b":[141,39,13],"m":"sta","oa":3367,"o":"print_drawer"},{"a":3346,"t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":3348,"t":"code","b":[141,40,13],"m":"sta","oa":3368,"o":"print_drawer_hi"},{"a":3351,"l":"j_0D17","t":"code","b":[173,255,255],"m":"lda","oa":65535,"o":"$FFFF","x":[3338,3369,3398,3415,3428,3436,3453]},{"a":3352,"t":"note","l":"print_ptr","c":"print's text pointer, low byte (the operand of the LDA at $0D17), stepped a byte at a time; callers set it before calling print.","note":"inside the item at $0D17","x":[3358,3372,5140,5654,6085,6113,6127,6142,6161,6399,6439,9161]},{"a":3353,"t":"note","l":"print_ptr_hi","c":"print's text pointer, high byte.","note":"inside the item at $0D17","x":[3363,3377,5145,5659,6090,6119,6132,6147,6166,6405,6444,9166]},{"a":3354,"t":"code","b":[240,100],"m":"beq","oa":3456,"o":"r_0D80"},{"a":3356,"t":"code","b":[48,14],"m":"bmi","oa":3372,"o":"print_control"},{"a":3358,"t":"code","b":[238,24,13],"m":"inc","oa":3352,"o":"print_ptr"},{"a":3361,"t":"code","b":[208,3],"m":"bne","oa":3366,"o":"b_0D26"},{"a":3363,"t":"code","b":[238,25,13],"m":"inc","oa":3353,"o":"print_ptr_hi"},{"a":3366,"l":"b_0D26","t":"code","b":[32,255,255],"m":"jsr","oa":65535,"o":"$FFFF","x":[3361]},{"a":3367,"t":"note","l":"print_drawer","c":"The routine print draws each character with (the operand of the JSR at $0D26): draw_char ($0C6D) for print, draw_char_wide ($0CAB) for print_wide.","note":"inside the item at $0D26","x":[3330,3343]},{"a":3368,"t":"note","l":"print_drawer_hi","c":"The drawer's high byte.","note":"inside the item at $0D26","x":[3335,3348]},{"a":3369,"t":"code","b":[76,23,13],"m":"jmp","oa":3351,"o":"j_0D17"},{"a":3372,"l":"print_control","c":"A byte of $80 or more is a control code: $FF starts the next row at the left margin ($0227); $E0-$FE moves to row n AND $1F at the margin; $C0-$DF sets the margin and column to n AND $1F; $B0-$BF sets the low nibble of the colour byte $0226 (the bitmap's background pixels) and $A0-$AF its high nibble (the foreground); $80-$9F are skipped. A zero byte ends the text.","t":"code","b":[238,24,13],"m":"inc","oa":3352,"o":"print_ptr","x":[3356]},{"a":3375,"t":"code","b":[208,3],"m":"bne","oa":3380,"o":"b_0D34"},{"a":3377,"t":"code","b":[238,25,13],"m":"inc","oa":3353,"o":"print_ptr_hi"},{"a":3380,"l":"b_0D34","t":"code","b":[201,255],"m":"cmp","o":"#$FF","x":[3375]},{"a":3382,"t":"code","b":[240,59],"m":"beq","oa":3443,"o":"b_0D73"},{"a":3384,"t":"code","b":[201,224],"m":"cmp","o":"#$E0"},{"a":3386,"t":"code","b":[176,50],"m":"bcs","oa":3438,"o":"b_0D6E"},{"a":3388,"t":"code","b":[201,192],"m":"cmp","o":"#$C0"},{"a":3390,"t":"code","b":[176,39],"m":"bcs","oa":3431,"o":"b_0D67"},{"a":3392,"t":"code","b":[201,176],"m":"cmp","o":"#$B0"},{"a":3394,"t":"code","b":[176,21],"m":"bcs","oa":3417,"o":"b_0D59"},{"a":3396,"t":"code","b":[201,160],"m":"cmp","o":"#$A0"},{"a":3398,"t":"code","b":[144,207],"m":"bcc","oa":3351,"o":"j_0D17"},{"a":3400,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3401,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3402,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3403,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3404,"t":"code","b":[77,38,2],"m":"eor","oa":550,"o":"a_0226"},{"a":3407,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":3409,"t":"code","b":[77,38,2],"m":"eor","oa":550,"o":"a_0226"},{"a":3412,"t":"code","b":[141,38,2],"m":"sta","oa":550,"o":"a_0226"},{"a":3415,"t":"code","b":[144,190],"m":"bcc","oa":3351,"o":"j_0D17"},{"a":3417,"l":"b_0D59","t":"code","b":[77,38,2],"m":"eor","oa":550,"o":"a_0226","x":[3394]},{"a":3420,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":3422,"t":"code","b":[77,38,2],"m":"eor","oa":550,"o":"a_0226"},{"a":3425,"t":"code","b":[141,38,2],"m":"sta","oa":550,"o":"a_0226"},{"a":3428,"t":"code","b":[76,23,13],"m":"jmp","oa":3351,"o":"j_0D17"},{"a":3431,"l":"b_0D67","t":"code","b":[41,31],"m":"and","o":"#$1F","x":[3390]},{"a":3433,"t":"code","b":[141,39,2],"m":"sta","oa":551,"o":"a_0227"},{"a":3436,"t":"code","b":[16,169],"m":"bpl","oa":3351,"o":"j_0D17"},{"a":3438,"l":"b_0D6E","t":"code","b":[41,31],"m":"and","o":"#$1F","x":[3386]},{"a":3440,"t":"code","b":[168],"m":"tay"},{"a":3441,"t":"code","b":[16,4],"m":"bpl","oa":3447,"o":"b_0D77"},{"a":3443,"l":"b_0D73","t":"code","b":[172,41,2],"m":"ldy","oa":553,"o":"a_0229","x":[3382]},{"a":3446,"t":"code","b":[200],"m":"iny"},{"a":3447,"l":"b_0D77","t":"code","b":[174,39,2],"m":"ldx","oa":551,"o":"a_0227","x":[3441]},{"a":3450,"t":"code","b":[32,61,12],"m":"jsr","oa":3133,"o":"text_at"},{"a":3453,"t":"code","b":[76,23,13],"m":"jmp","oa":3351,"o":"j_0D17"},{"a":3456,"l":"r_0D80","t":"code","b":[96],"m":"rts","x":[3354]},{"a":3457,"l":"random_seed","c":"Seeds the random numbers: sets the SID's voice 3 to noise at the highest frequency and reads its oscillator three times into $022A-$022C, waiting each time for a new value. Also turns the volume off.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2149]},{"a":3459,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":3462,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":3464,"t":"code","b":[141,14,212],"m":"sta","o":"sid_v3_freq_lo"},{"a":3467,"t":"code","b":[141,15,212],"m":"sta","o":"sid_v3_freq_hi"},{"a":3470,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":3472,"t":"code","b":[141,18,212],"m":"sta","o":"sid_v3_control"},{"a":3475,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":3477,"l":"b_0D95","t":"code","b":[173,27,212],"m":"lda","o":"sid_v3_oscillator","x":[3483,3489]},{"a":3480,"t":"code","b":[93,42,2],"m":"eor","oa":554,"o":"f_022A,x"},{"a":3483,"t":"code","b":[240,248],"m":"beq","oa":3477,"o":"b_0D95"},{"a":3485,"t":"code","b":[157,42,2],"m":"sta","oa":554,"o":"f_022A,x"},{"a":3488,"t":"code","b":[202],"m":"dex"},{"a":3489,"t":"code","b":[16,242],"m":"bpl","oa":3477,"o":"b_0D95"},{"a":3491,"t":"code","b":[96],"m":"rts"},{"a":3492,"l":"random","c":"Returns a random byte in A: a 24-bit shift register in $022A-$022C, moved one step a call.","t":"code","b":[173,44,2],"m":"lda","oa":556,"o":"a_022C","x":[13772,13885,13891,13897,13903,13909,13915,13930]},{"a":3495,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":3497,"t":"code","b":[173,43,2],"m":"lda","oa":555,"o":"a_022B"},{"a":3500,"t":"code","b":[141,44,2],"m":"sta","oa":556,"o":"a_022C"},{"a":3503,"t":"code","b":[201,128],"m":"cmp","o":"#$80"},{"a":3505,"t":"code","b":[38,15],"m":"rol","oa":15,"o":"zpa_0F"},{"a":3507,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":3508,"t":"code","b":[173,42,2],"m":"lda","oa":554,"o":"f_022A"},{"a":3511,"t":"code","b":[141,43,2],"m":"sta","oa":555,"o":"a_022B"},{"a":3514,"t":"code","b":[106],"m":"ror","o":"a"},{"a":3515,"t":"code","b":[69,15],"m":"eor","oa":15,"o":"zpa_0F"},{"a":3517,"t":"code","b":[141,42,2],"m":"sta","oa":554,"o":"f_022A"},{"a":3520,"t":"code","b":[96],"m":"rts"},{"a":3521,"l":"link_object_tables","c":"Copies the eighteen table addresses a stage keeps at $8004-$8027 into the operands of the LDA instructions in object_create, part_frames_set and part_path_set, so the shared object code reads the stage's own tables of object shapes and animations. Called by the stages that use objects, such as level 2 at $8070.","t":"code","b":[173,4,128],"m":"lda","oa":32772,"o":"$8004"},{"a":3524,"t":"code","b":[141,179,14],"m":"sta","oa":3763,"o":"objtab1_lo"},{"a":3527,"t":"code","b":[173,5,128],"m":"lda","oa":32773,"o":"$8005"},{"a":3530,"t":"code","b":[141,180,14],"m":"sta","oa":3764,"o":"objtab1_hi"},{"a":3533,"t":"code","b":[173,6,128],"m":"lda","oa":32774,"o":"$8006"},{"a":3536,"t":"code","b":[141,218,14],"m":"sta","oa":3802,"o":"objtab2_lo"},{"a":3539,"t":"code","b":[173,7,128],"m":"lda","oa":32775,"o":"$8007"},{"a":3542,"t":"code","b":[141,219,14],"m":"sta","oa":3803,"o":"objtab2_hi"},{"a":3545,"t":"code","b":[173,8,128],"m":"lda","oa":32776,"o":"$8008"},{"a":3548,"t":"code","b":[141,226,14],"m":"sta","oa":3810,"o":"objtab3_lo"},{"a":3551,"t":"code","b":[173,9,128],"m":"lda","oa":32777,"o":"$8009"},{"a":3554,"t":"code","b":[141,227,14],"m":"sta","oa":3811,"o":"objtab3_hi"},{"a":3557,"t":"code","b":[173,10,128],"m":"lda","oa":32778,"o":"$800A"},{"a":3560,"t":"code","b":[141,232,14],"m":"sta","oa":3816,"o":"objtab4_lo"},{"a":3563,"t":"code","b":[173,11,128],"m":"lda","oa":32779,"o":"$800B"},{"a":3566,"t":"code","b":[141,233,14],"m":"sta","oa":3817,"o":"objtab4_hi"},{"a":3569,"t":"code","b":[173,12,128],"m":"lda","oa":32780,"o":"$800C"},{"a":3572,"t":"code","b":[141,238,14],"m":"sta","oa":3822,"o":"objtab5_lo"},{"a":3575,"t":"code","b":[173,13,128],"m":"lda","oa":32781,"o":"$800D"},{"a":3578,"t":"code","b":[141,239,14],"m":"sta","oa":3823,"o":"objtab5_hi"},{"a":3581,"t":"code","b":[173,14,128],"m":"lda","oa":32782,"o":"$800E"},{"a":3584,"t":"code","b":[141,1,15],"m":"sta","oa":3841,"o":"objtab6_lo"},{"a":3587,"t":"code","b":[173,15,128],"m":"lda","oa":32783,"o":"$800F"},{"a":3590,"t":"code","b":[141,2,15],"m":"sta","oa":3842,"o":"objtab6_hi"},{"a":3593,"t":"code","b":[173,16,128],"m":"lda","oa":32784,"o":"$8010"},{"a":3596,"t":"code","b":[141,7,15],"m":"sta","oa":3847,"o":"objtab7_lo"},{"a":3599,"t":"code","b":[173,17,128],"m":"lda","oa":32785,"o":"$8011"},{"a":3602,"t":"code","b":[141,8,15],"m":"sta","oa":3848,"o":"objtab7_hi"},{"a":3605,"t":"code","b":[173,18,128],"m":"lda","oa":32786,"o":"$8012"},{"a":3608,"t":"code","b":[141,13,15],"m":"sta","oa":3853,"o":"objtab8_lo"},{"a":3611,"t":"code","b":[173,19,128],"m":"lda","oa":32787,"o":"$8013"},{"a":3614,"t":"code","b":[141,14,15],"m":"sta","oa":3854,"o":"objtab8_hi"},{"a":3617,"t":"code","b":[173,20,128],"m":"lda","oa":32788,"o":"$8014"},{"a":3620,"t":"code","b":[141,19,15],"m":"sta","oa":3859,"o":"objtab9_lo"},{"a":3623,"t":"code","b":[173,21,128],"m":"lda","oa":32789,"o":"$8015"},{"a":3626,"t":"code","b":[141,20,15],"m":"sta","oa":3860,"o":"objtab9_hi"},{"a":3629,"t":"code","b":[173,22,128],"m":"lda","oa":32790,"o":"$8016"},{"a":3632,"t":"code","b":[141,25,15],"m":"sta","oa":3865,"o":"objtab10_lo"},{"a":3635,"t":"code","b":[173,23,128],"m":"lda","oa":32791,"o":"$8017"},{"a":3638,"t":"code","b":[141,26,15],"m":"sta","oa":3866,"o":"objtab10_hi"},{"a":3641,"t":"code","b":[173,24,128],"m":"lda","oa":32792,"o":"$8018"},{"a":3644,"t":"code","b":[141,31,15],"m":"sta","oa":3871,"o":"objtab11_lo"},{"a":3647,"t":"code","b":[173,25,128],"m":"lda","oa":32793,"o":"$8019"},{"a":3650,"t":"code","b":[141,32,15],"m":"sta","oa":3872,"o":"objtab11_hi"},{"a":3653,"t":"code","b":[173,26,128],"m":"lda","oa":32794,"o":"$801A"},{"a":3656,"t":"code","b":[141,70,15],"m":"sta","oa":3910,"o":"objtab12_lo"},{"a":3659,"t":"code","b":[173,27,128],"m":"lda","oa":32795,"o":"$801B"},{"a":3662,"t":"code","b":[141,71,15],"m":"sta","oa":3911,"o":"objtab12_hi"},{"a":3665,"t":"code","b":[173,28,128],"m":"lda","oa":32796,"o":"$801C"},{"a":3668,"t":"code","b":[141,76,15],"m":"sta","oa":3916,"o":"objtab13_lo"},{"a":3671,"t":"code","b":[173,29,128],"m":"lda","oa":32797,"o":"$801D"},{"a":3674,"t":"code","b":[141,77,15],"m":"sta","oa":3917,"o":"objtab13_hi"},{"a":3677,"t":"code","b":[173,30,128],"m":"lda","oa":32798,"o":"$801E"},{"a":3680,"t":"code","b":[141,82,15],"m":"sta","oa":3922,"o":"objtab14_lo"},{"a":3683,"t":"code","b":[173,31,128],"m":"lda","oa":32799,"o":"$801F"},{"a":3686,"t":"code","b":[141,83,15],"m":"sta","oa":3923,"o":"objtab14_hi"},{"a":3689,"t":"code","b":[173,32,128],"m":"lda","oa":32800,"o":"$8020"},{"a":3692,"t":"code","b":[141,88,15],"m":"sta","oa":3928,"o":"objtab15_lo"},{"a":3695,"t":"code","b":[173,33,128],"m":"lda","oa":32801,"o":"$8021"},{"a":3698,"t":"code","b":[141,89,15],"m":"sta","oa":3929,"o":"objtab15_hi"},{"a":3701,"t":"code","b":[173,34,128],"m":"lda","oa":32802,"o":"$8022"},{"a":3704,"t":"code","b":[141,94,15],"m":"sta","oa":3934,"o":"objtab16_lo"},{"a":3707,"t":"code","b":[173,35,128],"m":"lda","oa":32803,"o":"$8023"},{"a":3710,"t":"code","b":[141,95,15],"m":"sta","oa":3935,"o":"objtab16_hi"},{"a":3713,"t":"code","b":[173,36,128],"m":"lda","oa":32804,"o":"$8024"},{"a":3716,"t":"code","b":[141,100,15],"m":"sta","oa":3940,"o":"objtab17_lo"},{"a":3719,"t":"code","b":[173,37,128],"m":"lda","oa":32805,"o":"$8025"},{"a":3722,"t":"code","b":[141,101,15],"m":"sta","oa":3941,"o":"objtab17_hi"},{"a":3725,"t":"code","b":[173,38,128],"m":"lda","oa":32806,"o":"$8026"},{"a":3728,"t":"code","b":[141,106,15],"m":"sta","oa":3946,"o":"objtab18_lo"},{"a":3731,"t":"code","b":[173,39,128],"m":"lda","oa":32807,"o":"$8027"},{"a":3734,"t":"code","b":[141,107,15],"m":"sta","oa":3947,"o":"objtab18_hi"},{"a":3737,"l":"objects_reset","c":"Empties the object system: all eight hardware sprite slots ($045B-$0462) to $FF (no part), no parts allocated ($022D = 0) and sprite placing on ($045A = 0).","t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":3739,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":3741,"l":"b_0E9D","t":"code","b":[157,91,4],"m":"sta","oa":1115,"o":"f_045B,x","x":[3745]},{"a":3744,"t":"code","b":[202],"m":"dex"},{"a":3745,"t":"code","b":[16,250],"m":"bpl","oa":3741,"o":"b_0E9D"},{"a":3747,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":3749,"t":"code","b":[141,45,2],"m":"sta","oa":557,"o":"a_022D"},{"a":3752,"t":"code","b":[141,90,4],"m":"sta","oa":1114,"o":"a_045A"},{"a":3755,"t":"code","b":[96],"m":"rts"},{"a":3756,"l":"object_create","c":"Makes object X of type Y: allocates the type's number of parts (from the stage's first table) after those already in use, records the first part ($022E+X) and the count ($0236+X), zeroes the object's position and velocity, then for each part copies from three more tables the part it hangs from ($036C, negative for the object itself) and its offset from it ($037D across, $038E down).","t":"code","b":[173,45,2],"m":"lda","oa":557,"o":"a_022D"},{"a":3759,"t":"code","b":[157,46,2],"m":"sta","oa":558,"o":"f_022E,x"},{"a":3762,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3763,"t":"note","l":"objtab1_lo","c":"The stage's table 1 address, low byte, copied from $8004 by link_object_tables.","note":"inside the item at $0EB2","x":[3524]},{"a":3764,"t":"note","l":"objtab1_hi","c":"The stage's table 1 address, high byte, copied from $8005 by link_object_tables.","note":"inside the item at $0EB2","x":[3530]},{"a":3765,"t":"code","b":[157,54,2],"m":"sta","oa":566,"o":"f_0236,x"},{"a":3768,"t":"code","b":[24],"m":"clc"},{"a":3769,"t":"code","b":[109,45,2],"m":"adc","oa":557,"o":"a_022D"},{"a":3772,"t":"code","b":[141,45,2],"m":"sta","oa":557,"o":"a_022D"},{"a":3775,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":3777,"t":"code","b":[157,70,2],"m":"sta","oa":582,"o":"f_0246,x"},{"a":3780,"t":"code","b":[157,62,2],"m":"sta","oa":574,"o":"f_023E,x"},{"a":3783,"t":"code","b":[157,86,2],"m":"sta","oa":598,"o":"f_0256,x"},{"a":3786,"t":"code","b":[157,78,2],"m":"sta","oa":590,"o":"f_024E,x"},{"a":3789,"t":"code","b":[157,102,2],"m":"sta","oa":614,"o":"f_0266,x"},{"a":3792,"t":"code","b":[157,94,2],"m":"sta","oa":606,"o":"f_025E,x"},{"a":3795,"t":"code","b":[157,118,2],"m":"sta","oa":630,"o":"f_0276,x"},{"a":3798,"t":"code","b":[157,110,2],"m":"sta","oa":622,"o":"f_026E,x"},{"a":3801,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3802,"t":"note","l":"objtab2_lo","c":"The stage's table 2 address, low byte, copied from $8006 by link_object_tables.","note":"inside the item at $0ED9","x":[3536]},{"a":3803,"t":"note","l":"objtab2_hi","c":"The stage's table 2 address, high byte, copied from $8007 by link_object_tables.","note":"inside the item at $0ED9","x":[3542]},{"a":3804,"t":"code","b":[168],"m":"tay"},{"a":3805,"t":"code","b":[189,46,2],"m":"lda","oa":558,"o":"f_022E,x"},{"a":3808,"t":"code","b":[170],"m":"tax"},{"a":3809,"l":"b_0EE1","t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y","x":[3832]},{"a":3810,"t":"note","l":"objtab3_lo","c":"The stage's table 3 address, low byte, copied from $8008 by link_object_tables.","note":"inside the item at $0EE1","x":[3548]},{"a":3811,"t":"note","l":"objtab3_hi","c":"The stage's table 3 address, high byte, copied from $8009 by link_object_tables.","note":"inside the item at $0EE1","x":[3554]},{"a":3812,"t":"code","b":[157,108,3],"m":"sta","oa":876,"o":"f_036C,x"},{"a":3815,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3816,"t":"note","l":"objtab4_lo","c":"The stage's table 4 address, low byte, copied from $800A by link_object_tables.","note":"inside the item at $0EE7","x":[3560]},{"a":3817,"t":"note","l":"objtab4_hi","c":"The stage's table 4 address, high byte, copied from $800B by link_object_tables.","note":"inside the item at $0EE7","x":[3566]},{"a":3818,"t":"code","b":[157,125,3],"m":"sta","oa":893,"o":"f_037D,x"},{"a":3821,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3822,"t":"note","l":"objtab5_lo","c":"The stage's table 5 address, low byte, copied from $800C by link_object_tables.","note":"inside the item at $0EED","x":[3572]},{"a":3823,"t":"note","l":"objtab5_hi","c":"The stage's table 5 address, high byte, copied from $800D by link_object_tables.","note":"inside the item at $0EED","x":[3578]},{"a":3824,"t":"code","b":[157,142,3],"m":"sta","oa":910,"o":"f_038E,x"},{"a":3827,"t":"code","b":[200],"m":"iny"},{"a":3828,"t":"code","b":[232],"m":"inx"},{"a":3829,"t":"code","b":[236,45,2],"m":"cpx","oa":557,"o":"a_022D"},{"a":3832,"t":"code","b":[144,231],"m":"bcc","oa":3809,"o":"b_0EE1"},{"a":3834,"t":"code","b":[96],"m":"rts"},{"a":3835,"l":"part_frames_set","c":"Gives part A of object X the frame animation numbered Y: copies its flags ($02C2), first sprite frame ($02D3), last step ($02E4), the address of its list of frames ($02F5/$0306) and speed ($0317) from six of the stage's tables; starts at step 0, or at the last step when it runs backwards (flag bit 6), and works out the frame.","t":"code","b":[24],"m":"clc"},{"a":3836,"t":"code","b":[125,46,2],"m":"adc","oa":558,"o":"f_022E,x"},{"a":3839,"t":"code","b":[170],"m":"tax"},{"a":3840,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3841,"t":"note","l":"objtab6_lo","c":"The stage's table 6 address, low byte, copied from $800E by link_object_tables.","note":"inside the item at $0F00","x":[3584]},{"a":3842,"t":"note","l":"objtab6_hi","c":"The stage's table 6 address, high byte, copied from $800F by link_object_tables.","note":"inside the item at $0F00","x":[3590]},{"a":3843,"t":"code","b":[157,194,2],"m":"sta","oa":706,"o":"f_02C2,x"},{"a":3846,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3847,"t":"note","l":"objtab7_lo","c":"The stage's table 7 address, low byte, copied from $8010 by link_object_tables.","note":"inside the item at $0F06","x":[3596]},{"a":3848,"t":"note","l":"objtab7_hi","c":"The stage's table 7 address, high byte, copied from $8011 by link_object_tables.","note":"inside the item at $0F06","x":[3602]},{"a":3849,"t":"code","b":[157,211,2],"m":"sta","oa":723,"o":"f_02D3,x"},{"a":3852,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3853,"t":"note","l":"objtab8_lo","c":"The stage's table 8 address, low byte, copied from $8012 by link_object_tables.","note":"inside the item at $0F0C","x":[3608]},{"a":3854,"t":"note","l":"objtab8_hi","c":"The stage's table 8 address, high byte, copied from $8013 by link_object_tables.","note":"inside the item at $0F0C","x":[3614]},{"a":3855,"t":"code","b":[157,228,2],"m":"sta","oa":740,"o":"f_02E4,x"},{"a":3858,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3859,"t":"note","l":"objtab9_lo","c":"The stage's table 9 address, low byte, copied from $8014 by link_object_tables.","note":"inside the item at $0F12","x":[3620]},{"a":3860,"t":"note","l":"objtab9_hi","c":"The stage's table 9 address, high byte, copied from $8015 by link_object_tables.","note":"inside the item at $0F12","x":[3626]},{"a":3861,"t":"code","b":[157,245,2],"m":"sta","oa":757,"o":"f_02F5,x"},{"a":3864,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3865,"t":"note","l":"objtab10_lo","c":"The stage's table 10 address, low byte, copied from $8016 by link_object_tables.","note":"inside the item at $0F18","x":[3632]},{"a":3866,"t":"note","l":"objtab10_hi","c":"The stage's table 10 address, high byte, copied from $8017 by link_object_tables.","note":"inside the item at $0F18","x":[3638]},{"a":3867,"t":"code","b":[157,6,3],"m":"sta","oa":774,"o":"f_0306,x"},{"a":3870,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3871,"t":"note","l":"objtab11_lo","c":"The stage's table 11 address, low byte, copied from $8018 by link_object_tables.","note":"inside the item at $0F1E","x":[3644]},{"a":3872,"t":"note","l":"objtab11_hi","c":"The stage's table 11 address, high byte, copied from $8019 by link_object_tables.","note":"inside the item at $0F1E","x":[3650]},{"a":3873,"t":"code","b":[157,23,3],"m":"sta","oa":791,"o":"f_0317,x"},{"a":3876,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":3878,"t":"code","b":[157,91,3],"m":"sta","oa":859,"o":"f_035B,x"},{"a":3881,"t":"code","b":[189,194,2],"m":"lda","oa":706,"o":"f_02C2,x"},{"a":3884,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":3886,"t":"code","b":[208,7],"m":"bne","oa":3895,"o":"b_0F37"},{"a":3888,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":3890,"t":"code","b":[157,40,3],"m":"sta","oa":808,"o":"f_0328,x"},{"a":3893,"t":"code","b":[240,6],"m":"beq","oa":3901,"o":"b_0F3D"},{"a":3895,"l":"b_0F37","t":"code","b":[189,228,2],"m":"lda","oa":740,"o":"f_02E4,x","x":[3886]},{"a":3898,"t":"code","b":[157,40,3],"m":"sta","oa":808,"o":"f_0328,x"},{"a":3901,"l":"b_0F3D","t":"code","b":[76,194,15],"m":"jmp","oa":4034,"o":"j_0FC2","x":[3893]},{"a":3904,"l":"part_path_set","c":"Gives part A of object X the path animation numbered Y, the same way for its offset from the part it hangs from: flags ($039F), last step ($03B0), the addresses of its lists of offsets across and down ($03C1/$03D2, $03E3/$03F4) and speed ($0405).","t":"code","b":[24],"m":"clc"},{"a":3905,"t":"code","b":[125,46,2],"m":"adc","oa":558,"o":"f_022E,x"},{"a":3908,"t":"code","b":[170],"m":"tax"},{"a":3909,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3910,"t":"note","l":"objtab12_lo","c":"The stage's table 12 address, low byte, copied from $801A by link_object_tables.","note":"inside the item at $0F45","x":[3656]},{"a":3911,"t":"note","l":"objtab12_hi","c":"The stage's table 12 address, high byte, copied from $801B by link_object_tables.","note":"inside the item at $0F45","x":[3662]},{"a":3912,"t":"code","b":[157,159,3],"m":"sta","oa":927,"o":"f_039F,x"},{"a":3915,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3916,"t":"note","l":"objtab13_lo","c":"The stage's table 13 address, low byte, copied from $801C by link_object_tables.","note":"inside the item at $0F4B","x":[3668]},{"a":3917,"t":"note","l":"objtab13_hi","c":"The stage's table 13 address, high byte, copied from $801D by link_object_tables.","note":"inside the item at $0F4B","x":[3674]},{"a":3918,"t":"code","b":[157,176,3],"m":"sta","oa":944,"o":"f_03B0,x"},{"a":3921,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3922,"t":"note","l":"objtab14_lo","c":"The stage's table 14 address, low byte, copied from $801E by link_object_tables.","note":"inside the item at $0F51","x":[3680]},{"a":3923,"t":"note","l":"objtab14_hi","c":"The stage's table 14 address, high byte, copied from $801F by link_object_tables.","note":"inside the item at $0F51","x":[3686]},{"a":3924,"t":"code","b":[157,193,3],"m":"sta","oa":961,"o":"f_03C1,x"},{"a":3927,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3928,"t":"note","l":"objtab15_lo","c":"The stage's table 15 address, low byte, copied from $8020 by link_object_tables.","note":"inside the item at $0F57","x":[3692]},{"a":3929,"t":"note","l":"objtab15_hi","c":"The stage's table 15 address, high byte, copied from $8021 by link_object_tables.","note":"inside the item at $0F57","x":[3698]},{"a":3930,"t":"code","b":[157,210,3],"m":"sta","oa":978,"o":"f_03D2,x"},{"a":3933,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3934,"t":"note","l":"objtab16_lo","c":"The stage's table 16 address, low byte, copied from $8022 by link_object_tables.","note":"inside the item at $0F5D","x":[3704]},{"a":3935,"t":"note","l":"objtab16_hi","c":"The stage's table 16 address, high byte, copied from $8023 by link_object_tables.","note":"inside the item at $0F5D","x":[3710]},{"a":3936,"t":"code","b":[157,227,3],"m":"sta","oa":995,"o":"f_03E3,x"},{"a":3939,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3940,"t":"note","l":"objtab17_lo","c":"The stage's table 17 address, low byte, copied from $8024 by link_object_tables.","note":"inside the item at $0F63","x":[3716]},{"a":3941,"t":"note","l":"objtab17_hi","c":"The stage's table 17 address, high byte, copied from $8025 by link_object_tables.","note":"inside the item at $0F63","x":[3722]},{"a":3942,"t":"code","b":[157,244,3],"m":"sta","oa":1012,"o":"f_03F4,x"},{"a":3945,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":3946,"t":"note","l":"objtab18_lo","c":"The stage's table 18 address, low byte, copied from $8026 by link_object_tables.","note":"inside the item at $0F69","x":[3728]},{"a":3947,"t":"note","l":"objtab18_hi","c":"The stage's table 18 address, high byte, copied from $8027 by link_object_tables.","note":"inside the item at $0F69","x":[3734]},{"a":3948,"t":"code","b":[157,5,4],"m":"sta","oa":1029,"o":"f_0405,x"},{"a":3951,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":3953,"t":"code","b":[157,39,4],"m":"sta","oa":1063,"o":"f_0427,x"},{"a":3956,"t":"code","b":[189,159,3],"m":"lda","oa":927,"o":"f_039F,x"},{"a":3959,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":3961,"t":"code","b":[208,7],"m":"bne","oa":3970,"o":"b_0F82"},{"a":3963,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":3965,"t":"code","b":[157,22,4],"m":"sta","oa":1046,"o":"f_0416,x"},{"a":3968,"t":"code","b":[240,6],"m":"beq","oa":3976,"o":"b_0F88"},{"a":3970,"l":"b_0F82","t":"code","b":[189,176,3],"m":"lda","oa":944,"o":"f_03B0,x","x":[3961]},{"a":3973,"t":"code","b":[157,22,4],"m":"sta","oa":1046,"o":"f_0416,x"},{"a":3976,"l":"b_0F88","t":"code","b":[76,25,16],"m":"jmp","oa":4121,"o":"j_1019","x":[3968]},{"a":3979,"l":"object_frames_tick","c":"Runs part_frames_tick for each part of object X.","t":"code","b":[134,2],"m":"stx","oa":2,"o":"zpa_02"},{"a":3981,"t":"code","b":[189,46,2],"m":"lda","oa":558,"o":"f_022E,x"},{"a":3984,"t":"code","b":[168],"m":"tay"},{"a":3985,"t":"code","b":[24],"m":"clc"},{"a":3986,"t":"code","b":[125,54,2],"m":"adc","oa":566,"o":"f_0236,x"},{"a":3989,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"zpa_03"},{"a":3991,"t":"code","b":[152],"m":"tya"},{"a":3992,"t":"code","b":[170],"m":"tax"},{"a":3993,"l":"b_0F99","t":"code","b":[32,164,15],"m":"jsr","oa":4004,"o":"part_frames_tick","x":[3999]},{"a":3996,"t":"code","b":[232],"m":"inx"},{"a":3997,"t":"code","b":[228,3],"m":"cpx","oa":3,"o":"zpa_03"},{"a":3999,"t":"code","b":[208,248],"m":"bne","oa":3993,"o":"b_0F99"},{"a":4001,"t":"code","b":[166,2],"m":"ldx","oa":2,"o":"zpa_02"},{"a":4003,"t":"code","b":[96],"m":"rts"},{"a":4004,"l":"part_frames_tick","c":"For a part whose frame animation is running (flag bit 7): adds its speed to the accumulator $035B and takes a step on each carry (a speed with bit 7 set takes one more every frame). Then sets the frame: the step's entry in the frame list (or the step itself if the list's address is zero) plus the first frame gives the sprite pointer $034A.","t":"code","b":[189,194,2],"m":"lda","oa":706,"o":"f_02C2,x","x":[3993]},{"a":4007,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":4009,"t":"code","b":[240,23],"m":"beq","oa":4034,"o":"j_0FC2"},{"a":4011,"t":"code","b":[189,23,3],"m":"lda","oa":791,"o":"f_0317,x"},{"a":4014,"t":"code","b":[10],"m":"asl","o":"a"},{"a":4015,"t":"code","b":[144,5],"m":"bcc","oa":4022,"o":"b_0FB6"},{"a":4017,"t":"code","b":[72],"m":"pha"},{"a":4018,"t":"code","b":[32,65,16],"m":"jsr","oa":4161,"o":"frame_step"},{"a":4021,"t":"code","b":[104],"m":"pla"},{"a":4022,"l":"b_0FB6","t":"code","b":[24],"m":"clc","x":[4015]},{"a":4023,"t":"code","b":[125,91,3],"m":"adc","oa":859,"o":"f_035B,x"},{"a":4026,"t":"code","b":[157,91,3],"m":"sta","oa":859,"o":"f_035B,x"},{"a":4029,"t":"code","b":[144,3],"m":"bcc","oa":4034,"o":"j_0FC2"},{"a":4031,"t":"code","b":[32,65,16],"m":"jsr","oa":4161,"o":"frame_step"},{"a":4034,"l":"j_0FC2","t":"code","b":[189,40,3],"m":"lda","oa":808,"o":"f_0328,x","x":[3901,4009,4029]},{"a":4037,"t":"code","b":[188,6,3],"m":"ldy","oa":774,"o":"f_0306,x"},{"a":4040,"t":"code","b":[240,13],"m":"beq","oa":4055,"o":"b_0FD7"},{"a":4042,"t":"code","b":[140,214,15],"m":"sty","oa":4054,"o":"frame_list_hi"},{"a":4045,"t":"code","b":[188,245,2],"m":"ldy","oa":757,"o":"f_02F5,x"},{"a":4048,"t":"code","b":[140,213,15],"m":"sty","oa":4053,"o":"frame_list_lo"},{"a":4051,"t":"code","b":[168],"m":"tay"},{"a":4052,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":4053,"t":"note","l":"frame_list_lo","c":"The frame list's address, low byte, patched into this LDA.","note":"inside the item at $0FD4","x":[4048]},{"a":4054,"t":"note","l":"frame_list_hi","c":"The frame list's address, high byte.","note":"inside the item at $0FD4","x":[4042]},{"a":4055,"l":"b_0FD7","t":"code","b":[157,57,3],"m":"sta","oa":825,"o":"f_0339,x","x":[4040]},{"a":4058,"t":"code","b":[24],"m":"clc"},{"a":4059,"t":"code","b":[125,211,2],"m":"adc","oa":723,"o":"f_02D3,x"},{"a":4062,"t":"code","b":[157,74,3],"m":"sta","oa":842,"o":"f_034A,x"},{"a":4065,"t":"code","b":[96],"m":"rts"},{"a":4066,"l":"object_paths_tick","c":"Runs part_path_tick for each part of object X.","t":"code","b":[134,2],"m":"stx","oa":2,"o":"zpa_02"},{"a":4068,"t":"code","b":[189,46,2],"m":"lda","oa":558,"o":"f_022E,x"},{"a":4071,"t":"code","b":[168],"m":"tay"},{"a":4072,"t":"code","b":[24],"m":"clc"},{"a":4073,"t":"code","b":[125,54,2],"m":"adc","oa":566,"o":"f_0236,x"},{"a":4076,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"zpa_03"},{"a":4078,"t":"code","b":[152],"m":"tya"},{"a":4079,"t":"code","b":[170],"m":"tax"},{"a":4080,"l":"b_0FF0","t":"code","b":[32,251,15],"m":"jsr","oa":4091,"o":"part_path_tick","x":[4086]},{"a":4083,"t":"code","b":[232],"m":"inx"},{"a":4084,"t":"code","b":[228,3],"m":"cpx","oa":3,"o":"zpa_03"},{"a":4086,"t":"code","b":[208,248],"m":"bne","oa":4080,"o":"b_0FF0"},{"a":4088,"t":"code","b":[166,2],"m":"ldx","oa":2,"o":"zpa_02"},{"a":4090,"t":"code","b":[96],"m":"rts"},{"a":4091,"l":"part_path_tick","c":"For a part whose path is running (flag bit 7): adds its speed to the accumulator $0427 and takes a step on each carry. Then reads the step's offsets across and down from its two lists into $037D and $038E.","t":"code","b":[189,159,3],"m":"lda","oa":927,"o":"f_039F,x","x":[4080]},{"a":4094,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":4096,"t":"code","b":[240,62],"m":"beq","oa":4160,"o":"r_1040","x":[9025]},{"a":4098,"t":"code","b":[189,5,4],"m":"lda","oa":1029,"o":"f_0405,x"},{"a":4101,"t":"code","b":[10],"m":"asl","o":"a"},{"a":4102,"t":"code","b":[144,5],"m":"bcc","oa":4109,"o":"b_100D"},{"a":4104,"t":"code","b":[72],"m":"pha"},{"a":4105,"t":"code","b":[32,161,16],"m":"jsr","oa":4257,"o":"path_step"},{"a":4108,"t":"code","b":[104],"m":"pla"},{"a":4109,"l":"b_100D","t":"code","b":[24],"m":"clc","x":[4102]},{"a":4110,"t":"code","b":[125,39,4],"m":"adc","oa":1063,"o":"f_0427,x"},{"a":4113,"t":"code","b":[157,39,4],"m":"sta","oa":1063,"o":"f_0427,x"},{"a":4116,"t":"code","b":[144,3],"m":"bcc","oa":4121,"o":"j_1019"},{"a":4118,"t":"code","b":[32,161,16],"m":"jsr","oa":4257,"o":"path_step"},{"a":4121,"l":"j_1019","t":"code","b":[189,193,3],"m":"lda","oa":961,"o":"f_03C1,x","x":[3976,4116]},{"a":4124,"t":"code","b":[141,53,16],"m":"sta","oa":4149,"o":"path_across_lo"},{"a":4127,"t":"code","b":[189,210,3],"m":"lda","oa":978,"o":"f_03D2,x"},{"a":4130,"t":"code","b":[141,54,16],"m":"sta","oa":4150,"o":"path_across_hi"},{"a":4133,"t":"code","b":[189,227,3],"m":"lda","oa":995,"o":"f_03E3,x"},{"a":4136,"t":"code","b":[141,59,16],"m":"sta","oa":4155,"o":"path_down_lo"},{"a":4139,"t":"code","b":[189,244,3],"m":"lda","oa":1012,"o":"f_03F4,x"},{"a":4142,"t":"code","b":[141,60,16],"m":"sta","oa":4156,"o":"path_down_hi"},{"a":4145,"t":"code","b":[188,22,4],"m":"ldy","oa":1046,"o":"f_0416,x"},{"a":4148,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":4149,"t":"note","l":"path_across_lo","c":"The list of offsets across, its address patched into this LDA.","note":"inside the item at $1034","x":[4124]},{"a":4150,"t":"note","l":"path_across_hi","c":"The list of offsets across, high byte.","note":"inside the item at $1034","x":[4130]},{"a":4151,"t":"code","b":[157,125,3],"m":"sta","oa":893,"o":"f_037D,x"},{"a":4154,"t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y"},{"a":4155,"t":"note","l":"path_down_lo","c":"The list of offsets down, its address patched into this LDA.","note":"inside the item at $103A","x":[4136]},{"a":4156,"t":"note","l":"path_down_hi","c":"The list of offsets down, high byte.","note":"inside the item at $103A","x":[4142]},{"a":4157,"t":"code","b":[157,142,3],"m":"sta","oa":910,"o":"f_038E,x"},{"a":4160,"l":"r_1040","t":"code","b":[96],"m":"rts","x":[4096]},{"a":4161,"l":"frame_step","c":"Moves a frame animation one step. Forwards (flag bit 6 clear) at the last step: with neither bit 4 nor bit 5 set it starts again at step 0; with bit 4 it turns round (sets bit 6); otherwise it stops (clears bit 7). Backwards at step 0: with neither bit it starts again at the last step; with bit 5 clear it turns round; otherwise it stops. So bit 4 makes it swing to and fro and bit 5 play once.","t":"code","b":[189,194,2],"m":"lda","oa":706,"o":"f_02C2,x","x":[4018,4031]},{"a":4164,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":4166,"t":"code","b":[208,41],"m":"bne","oa":4209,"o":"b_1071"},{"a":4168,"t":"code","b":[189,40,3],"m":"lda","oa":808,"o":"f_0328,x"},{"a":4171,"t":"code","b":[221,228,2],"m":"cmp","oa":740,"o":"f_02E4,x"},{"a":4174,"t":"code","b":[144,28],"m":"bcc","oa":4204,"o":"b_106C"},{"a":4176,"t":"code","b":[189,194,2],"m":"lda","oa":706,"o":"f_02C2,x"},{"a":4179,"t":"code","b":[41,48],"m":"and","o":"#$30"},{"a":4181,"t":"code","b":[240,6],"m":"beq","oa":4189,"o":"b_105D"},{"a":4183,"t":"code","b":[41,16],"m":"and","o":"#$10"},{"a":4185,"t":"code","b":[208,48],"m":"bne","oa":4235,"o":"b_108B"},{"a":4187,"t":"code","b":[240,59],"m":"beq","oa":4248,"o":"b_1098"},{"a":4189,"l":"b_105D","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[4181]},{"a":4191,"t":"code","b":[157,40,3],"m":"sta","oa":808,"o":"f_0328,x"},{"a":4194,"t":"code","b":[16,60],"m":"bpl","oa":4256,"o":"r_10A0"},{"a":4196,"l":"b_1064","t":"code","b":[169,191],"m":"lda","o":"#$BF","x":[4223]},{"a":4198,"t":"code","b":[61,194,2],"m":"and","oa":706,"o":"f_02C2,x"},{"a":4201,"t":"code","b":[157,194,2],"m":"sta","oa":706,"o":"f_02C2,x"},{"a":4204,"l":"b_106C","t":"code","b":[254,40,3],"m":"inc","oa":808,"o":"f_0328,x","x":[4174]},{"a":4207,"t":"code","b":[16,47],"m":"bpl","oa":4256,"o":"r_10A0"},{"a":4209,"l":"b_1071","t":"code","b":[189,40,3],"m":"lda","oa":808,"o":"f_0328,x","x":[4166]},{"a":4212,"t":"code","b":[208,29],"m":"bne","oa":4243,"o":"b_1093"},{"a":4214,"t":"code","b":[189,194,2],"m":"lda","oa":706,"o":"f_02C2,x"},{"a":4217,"t":"code","b":[41,48],"m":"and","o":"#$30"},{"a":4219,"t":"code","b":[240,6],"m":"beq","oa":4227,"o":"b_1083"},{"a":4221,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":4223,"t":"code","b":[240,227],"m":"beq","oa":4196,"o":"b_1064"},{"a":4225,"t":"code","b":[208,21],"m":"bne","oa":4248,"o":"b_1098"},{"a":4227,"l":"b_1083","t":"code","b":[189,228,2],"m":"lda","oa":740,"o":"f_02E4,x","x":[4219]},{"a":4230,"t":"code","b":[157,40,3],"m":"sta","oa":808,"o":"f_0328,x"},{"a":4233,"t":"code","b":[16,21],"m":"bpl","oa":4256,"o":"r_10A0"},{"a":4235,"l":"b_108B","t":"code","b":[189,194,2],"m":"lda","oa":706,"o":"f_02C2,x","x":[4185]},{"a":4238,"t":"code","b":[9,64],"m":"ora","o":"#$40"},{"a":4240,"t":"code","b":[157,194,2],"m":"sta","oa":706,"o":"f_02C2,x"},{"a":4243,"l":"b_1093","t":"code","b":[222,40,3],"m":"dec","oa":808,"o":"f_0328,x","x":[4212]},{"a":4246,"t":"code","b":[16,8],"m":"bpl","oa":4256,"o":"r_10A0"},{"a":4248,"l":"b_1098","t":"code","b":[169,127],"m":"lda","o":"#$7F","x":[4187,4225]},{"a":4250,"t":"code","b":[61,194,2],"m":"and","oa":706,"o":"f_02C2,x"},{"a":4253,"t":"code","b":[157,194,2],"m":"sta","oa":706,"o":"f_02C2,x"},{"a":4256,"l":"r_10A0","t":"code","b":[96],"m":"rts","x":[4194,4207,4233,4246]},{"a":4257,"l":"path_step","c":"Moves a path animation one step, by the same rules as frame_step.","t":"code","b":[189,159,3],"m":"lda","oa":927,"o":"f_039F,x","x":[4105,4118]},{"a":4260,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":4262,"t":"code","b":[208,41],"m":"bne","oa":4305,"o":"b_10D1"},{"a":4264,"t":"code","b":[189,22,4],"m":"lda","oa":1046,"o":"f_0416,x"},{"a":4267,"t":"code","b":[221,176,3],"m":"cmp","oa":944,"o":"f_03B0,x"},{"a":4270,"t":"code","b":[144,28],"m":"bcc","oa":4300,"o":"b_10CC"},{"a":4272,"t":"code","b":[189,159,3],"m":"lda","oa":927,"o":"f_039F,x"},{"a":4275,"t":"code","b":[41,48],"m":"and","o":"#$30"},{"a":4277,"t":"code","b":[240,6],"m":"beq","oa":4285,"o":"b_10BD"},{"a":4279,"t":"code","b":[41,16],"m":"and","o":"#$10"},{"a":4281,"t":"code","b":[208,48],"m":"bne","oa":4331,"o":"b_10EB"},{"a":4283,"t":"code","b":[240,59],"m":"beq","oa":4344,"o":"b_10F8"},{"a":4285,"l":"b_10BD","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[4277]},{"a":4287,"t":"code","b":[157,22,4],"m":"sta","oa":1046,"o":"f_0416,x"},{"a":4290,"t":"code","b":[16,60],"m":"bpl","oa":4352,"o":"r_1100"},{"a":4292,"l":"b_10C4","t":"code","b":[169,191],"m":"lda","o":"#$BF","x":[4319]},{"a":4294,"t":"code","b":[61,159,3],"m":"and","oa":927,"o":"f_039F,x"},{"a":4297,"t":"code","b":[157,159,3],"m":"sta","oa":927,"o":"f_039F,x"},{"a":4300,"l":"b_10CC","t":"code","b":[254,22,4],"m":"inc","oa":1046,"o":"f_0416,x","x":[4270]},{"a":4303,"t":"code","b":[16,47],"m":"bpl","oa":4352,"o":"r_1100"},{"a":4305,"l":"b_10D1","t":"code","b":[189,22,4],"m":"lda","oa":1046,"o":"f_0416,x","x":[4262]},{"a":4308,"t":"code","b":[208,29],"m":"bne","oa":4339,"o":"b_10F3"},{"a":4310,"t":"code","b":[189,159,3],"m":"lda","oa":927,"o":"f_039F,x"},{"a":4313,"t":"code","b":[41,48],"m":"and","o":"#$30"},{"a":4315,"t":"code","b":[240,6],"m":"beq","oa":4323,"o":"b_10E3"},{"a":4317,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":4319,"t":"code","b":[240,227],"m":"beq","oa":4292,"o":"b_10C4"},{"a":4321,"t":"code","b":[208,21],"m":"bne","oa":4344,"o":"b_10F8"},{"a":4323,"l":"b_10E3","t":"code","b":[189,176,3],"m":"lda","oa":944,"o":"f_03B0,x","x":[4315]},{"a":4326,"t":"code","b":[157,22,4],"m":"sta","oa":1046,"o":"f_0416,x"},{"a":4329,"t":"code","b":[16,21],"m":"bpl","oa":4352,"o":"r_1100"},{"a":4331,"l":"b_10EB","t":"code","b":[189,159,3],"m":"lda","oa":927,"o":"f_039F,x","x":[4281]},{"a":4334,"t":"code","b":[9,64],"m":"ora","o":"#$40"},{"a":4336,"t":"code","b":[157,159,3],"m":"sta","oa":927,"o":"f_039F,x"},{"a":4339,"l":"b_10F3","t":"code","b":[222,22,4],"m":"dec","oa":1046,"o":"f_0416,x","x":[4308]},{"a":4342,"t":"code","b":[16,8],"m":"bpl","oa":4352,"o":"r_1100"},{"a":4344,"l":"b_10F8","t":"code","b":[169,127],"m":"lda","o":"#$7F","x":[4283,4321]},{"a":4346,"t":"code","b":[61,159,3],"m":"and","oa":927,"o":"f_039F,x"},{"a":4349,"t":"code","b":[157,159,3],"m":"sta","oa":927,"o":"f_039F,x"},{"a":4352,"l":"r_1100","t":"code","b":[96],"m":"rts","x":[4290,4303,4329,4342]},{"a":4353,"l":"object_move","c":"Adds object X's velocity to its position (across $023E/$0246 plus $025E/$0266, down $024E/$0256 plus $026E/$0276, each in 256ths), marks all its parts unplaced and places each (part_place).","t":"code","b":[189,62,2],"m":"lda","oa":574,"o":"f_023E,x"},{"a":4356,"t":"code","b":[24],"m":"clc"},{"a":4357,"t":"code","b":[125,94,2],"m":"adc","oa":606,"o":"f_025E,x"},{"a":4360,"t":"code","b":[157,62,2],"m":"sta","oa":574,"o":"f_023E,x"},{"a":4363,"t":"code","b":[189,70,2],"m":"lda","oa":582,"o":"f_0246,x"},{"a":4366,"t":"code","b":[125,102,2],"m":"adc","oa":614,"o":"f_0266,x"},{"a":4369,"t":"code","b":[157,70,2],"m":"sta","oa":582,"o":"f_0246,x"},{"a":4372,"t":"code","b":[189,78,2],"m":"lda","oa":590,"o":"f_024E,x"},{"a":4375,"t":"code","b":[24],"m":"clc"},{"a":4376,"t":"code","b":[125,110,2],"m":"adc","oa":622,"o":"f_026E,x"},{"a":4379,"t":"code","b":[157,78,2],"m":"sta","oa":590,"o":"f_024E,x"},{"a":4382,"t":"code","b":[189,86,2],"m":"lda","oa":598,"o":"f_0256,x"},{"a":4385,"t":"code","b":[125,118,2],"m":"adc","oa":630,"o":"f_0276,x"},{"a":4388,"t":"code","b":[157,86,2],"m":"sta","oa":598,"o":"f_0256,x"},{"a":4391,"t":"code","b":[189,46,2],"m":"lda","oa":558,"o":"f_022E,x"},{"a":4394,"t":"code","b":[168],"m":"tay"},{"a":4395,"t":"code","b":[24],"m":"clc"},{"a":4396,"t":"code","b":[125,54,2],"m":"adc","oa":566,"o":"f_0236,x"},{"a":4399,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"zpa_03"},{"a":4401,"l":"b_1131","t":"code","b":[169,191],"m":"lda","o":"#$BF","x":[4412]},{"a":4403,"t":"code","b":[57,56,4],"m":"and","oa":1080,"o":"f_0438,y"},{"a":4406,"t":"code","b":[153,56,4],"m":"sta","oa":1080,"o":"f_0438,y"},{"a":4409,"t":"code","b":[200],"m":"iny"},{"a":4410,"t":"code","b":[196,3],"m":"cpy","oa":3,"o":"zpa_03"},{"a":4412,"t":"code","b":[144,243],"m":"bcc","oa":4401,"o":"b_1131"},{"a":4414,"t":"code","b":[188,46,2],"m":"ldy","oa":558,"o":"f_022E,x"},{"a":4417,"l":"b_1141","t":"code","b":[32,74,17],"m":"jsr","oa":4426,"o":"part_place","x":[4423]},{"a":4420,"t":"code","b":[200],"m":"iny"},{"a":4421,"t":"code","b":[196,3],"m":"cpy","oa":3,"o":"zpa_03"},{"a":4423,"t":"code","b":[144,248],"m":"bcc","oa":4417,"o":"b_1141"},{"a":4425,"t":"code","b":[96],"m":"rts"},{"a":4426,"l":"part_place","c":"Works out part Y's position, once a frame: if it hangs from another part, that part is placed first and gives the base, otherwise the object's position does; the offset across ($037D, signed, in half units of the coordinate at $028F) and down ($038E) are added, and the result goes to $027E/$028F (across) and $02A0/$02B1 (down). Then marks the part placed (bit 6 of $0438).","t":"code","b":[185,56,4],"m":"lda","oa":1080,"o":"f_0438,y","x":[4417,4445]},{"a":4429,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":4431,"t":"code","b":[208,103],"m":"bne","oa":4536,"o":"r_11B8"},{"a":4433,"t":"code","b":[152],"m":"tya"},{"a":4434,"t":"code","b":[72],"m":"pha"},{"a":4435,"t":"code","b":[185,108,3],"m":"lda","oa":876,"o":"f_036C,y"},{"a":4438,"t":"code","b":[48,31],"m":"bmi","oa":4471,"o":"b_1177"},{"a":4440,"t":"code","b":[24],"m":"clc"},{"a":4441,"t":"code","b":[125,46,2],"m":"adc","oa":558,"o":"f_022E,x"},{"a":4444,"t":"code","b":[168],"m":"tay"},{"a":4445,"t":"code","b":[32,74,17],"m":"jsr","oa":4426,"o":"part_place"},{"a":4448,"t":"code","b":[185,126,2],"m":"lda","oa":638,"o":"f_027E,y"},{"a":4451,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":4453,"t":"code","b":[185,143,2],"m":"lda","oa":655,"o":"f_028F,y"},{"a":4456,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"zpp_05"},{"a":4458,"t":"code","b":[185,160,2],"m":"lda","oa":672,"o":"f_02A0,y"},{"a":4461,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpa_06"},{"a":4463,"t":"code","b":[185,177,2],"m":"lda","oa":689,"o":"f_02B1,y"},{"a":4466,"t":"code","b":[133,7],"m":"sta","oa":7,"o":"zpa_07"},{"a":4468,"t":"code","b":[76,139,17],"m":"jmp","oa":4491,"o":"j_118B"},{"a":4471,"l":"b_1177","t":"code","b":[189,62,2],"m":"lda","oa":574,"o":"f_023E,x","x":[4438]},{"a":4474,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":4476,"t":"code","b":[189,70,2],"m":"lda","oa":582,"o":"f_0246,x"},{"a":4479,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"zpp_05"},{"a":4481,"t":"code","b":[189,78,2],"m":"lda","oa":590,"o":"f_024E,x"},{"a":4484,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpa_06"},{"a":4486,"t":"code","b":[189,86,2],"m":"lda","oa":598,"o":"f_0256,x"},{"a":4489,"t":"code","b":[133,7],"m":"sta","oa":7,"o":"zpa_07"},{"a":4491,"l":"j_118B","t":"code","b":[104],"m":"pla","x":[4468]},{"a":4492,"t":"code","b":[168],"m":"tay"},{"a":4493,"t":"code","b":[185,125,3],"m":"lda","oa":893,"o":"f_037D,y"},{"a":4496,"t":"code","b":[201,128],"m":"cmp","o":"#$80"},{"a":4498,"t":"code","b":[106],"m":"ror","o":"a"},{"a":4499,"t":"code","b":[72],"m":"pha"},{"a":4500,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4502,"t":"code","b":[106],"m":"ror","o":"a"},{"a":4503,"t":"code","b":[101,4],"m":"adc","oa":4,"o":"zpa_04"},{"a":4505,"t":"code","b":[153,126,2],"m":"sta","oa":638,"o":"f_027E,y"},{"a":4508,"t":"code","b":[104],"m":"pla"},{"a":4509,"t":"code","b":[101,5],"m":"adc","oa":5,"o":"zpp_05"},{"a":4511,"t":"code","b":[153,143,2],"m":"sta","oa":655,"o":"f_028F,y"},{"a":4514,"t":"code","b":[165,6],"m":"lda","oa":6,"o":"zpa_06"},{"a":4516,"t":"code","b":[153,160,2],"m":"sta","oa":672,"o":"f_02A0,y"},{"a":4519,"t":"code","b":[185,142,3],"m":"lda","oa":910,"o":"f_038E,y"},{"a":4522,"t":"code","b":[24],"m":"clc"},{"a":4523,"t":"code","b":[101,7],"m":"adc","oa":7,"o":"zpa_07"},{"a":4525,"t":"code","b":[153,177,2],"m":"sta","oa":689,"o":"f_02B1,y"},{"a":4528,"t":"code","b":[185,56,4],"m":"lda","oa":1080,"o":"f_0438,y"},{"a":4531,"t":"code","b":[9,64],"m":"ora","o":"#$40"},{"a":4533,"t":"code","b":[153,56,4],"m":"sta","oa":1080,"o":"f_0438,y"},{"a":4536,"l":"r_11B8","t":"code","b":[96],"m":"rts","x":[4431]},{"a":4537,"l":"sprite_setup","c":"Places the eight hardware sprites from the object table, unless $045A says the stage does its own. For each of the eight slots in $045B, an active object (bit 7 of $0438+object) gives its frame pointer ($034A+object) to the sprite pointer at $5FF8, its colour ($0449+object) to the colour copy at $048B, its flags to the multicolour, expand and priority copies ($047B-$0481), and its x and y ($027E/$028F, $02B1) to the VIC-II copy at $0464, with the fine-scroll offsets written into the operands at $1214 and $1227.","t":"code","b":[173,90,4],"m":"lda","oa":1114,"o":"a_045A","x":[2667]},{"a":4540,"t":"code","b":[240,1],"m":"beq","oa":4543,"o":"b_11BF"},{"a":4542,"t":"code","b":[96],"m":"rts"},{"a":4543,"l":"b_11BF","t":"code","b":[173,122,4],"m":"lda","oa":1146,"o":"a_047A","x":[4540]},{"a":4546,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":4548,"t":"code","b":[24],"m":"clc"},{"a":4549,"t":"code","b":[105,24],"m":"adc","o":"#$18"},{"a":4551,"t":"code","b":[141,20,18],"m":"sta","oa":4628,"o":"sprite_x_offset"},{"a":4554,"t":"code","b":[173,117,4],"m":"lda","oa":1141,"o":"a_0475"},{"a":4557,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":4559,"t":"code","b":[24],"m":"clc"},{"a":4560,"t":"code","b":[105,47],"m":"adc","o":"#$2F"},{"a":4562,"t":"code","b":[141,39,18],"m":"sta","oa":4647,"o":"sprite_y_offset"},{"a":4565,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":4567,"t":"code","b":[141,219,17],"m":"sta","oa":4571,"o":"sprite_slot"},{"a":4570,"l":"b_11DA","t":"code","b":[162,255],"m":"ldx","o":"#$FF","x":[4676]},{"a":4571,"t":"note","l":"sprite_slot","c":"The sprite slot count, from 7 down to 0, kept in the operand of the LDX at $11DA.","note":"inside the item at $11DA","x":[4567,4673]},{"a":4572,"t":"code","b":[188,91,4],"m":"ldy","oa":1115,"o":"f_045B,x"},{"a":4575,"t":"code","b":[192,17],"m":"cpy","o":"#$11"},{"a":4577,"t":"code","b":[176,75],"m":"bcs","oa":4654,"o":"b_122E"},{"a":4579,"t":"code","b":[185,56,4],"m":"lda","oa":1080,"o":"f_0438,y"},{"a":4582,"t":"code","b":[16,70],"m":"bpl","oa":4654,"o":"b_122E"},{"a":4584,"t":"code","b":[185,74,3],"m":"lda","oa":842,"o":"f_034A,y"},{"a":4587,"t":"code","b":[157,248,95],"m":"sta","oa":24568,"o":"$5FF8,x"},{"a":4590,"t":"code","b":[185,73,4],"m":"lda","oa":1097,"o":"f_0449,y"},{"a":4593,"t":"code","b":[157,139,4],"m":"sta","oa":1163,"o":"f_048B,x"},{"a":4596,"t":"code","b":[10],"m":"asl","o":"a"},{"a":4597,"t":"code","b":[46,128,4],"m":"rol","oa":1152,"o":"a_0480"},{"a":4600,"t":"code","b":[10],"m":"asl","o":"a"},{"a":4601,"t":"code","b":[46,127,4],"m":"rol","oa":1151,"o":"a_047F"},{"a":4604,"t":"code","b":[10],"m":"asl","o":"a"},{"a":4605,"t":"code","b":[46,129,4],"m":"rol","oa":1153,"o":"a_0481"},{"a":4608,"t":"code","b":[10],"m":"asl","o":"a"},{"a":4609,"t":"code","b":[46,123,4],"m":"rol","oa":1147,"o":"a_047B"},{"a":4612,"t":"code","b":[138],"m":"txa"},{"a":4613,"t":"code","b":[10],"m":"asl","o":"a"},{"a":4614,"t":"code","b":[170],"m":"tax"},{"a":4615,"t":"code","b":[185,126,2],"m":"lda","oa":638,"o":"f_027E,y"},{"a":4618,"t":"code","b":[10],"m":"asl","o":"a"},{"a":4619,"t":"code","b":[185,143,2],"m":"lda","oa":655,"o":"f_028F,y"},{"a":4622,"t":"code","b":[42],"m":"rol","o":"a"},{"a":4623,"t":"code","b":[46,116,4],"m":"rol","oa":1140,"o":"a_0474"},{"a":4626,"t":"code","b":[24],"m":"clc"},{"a":4627,"t":"code","b":[105,255],"m":"adc","o":"#$FF"},{"a":4628,"t":"note","l":"sprite_x_offset","c":"The horizontal offset for the sprites' X positions, $18 plus the fine scroll (low three bits of $047A), patched into this ADC.","note":"inside the item at $1213","x":[4551]},{"a":4629,"t":"code","b":[157,100,4],"m":"sta","oa":1124,"o":"f_0464,x"},{"a":4632,"t":"code","b":[144,8],"m":"bcc","oa":4642,"o":"b_1222"},{"a":4634,"t":"code","b":[173,116,4],"m":"lda","oa":1140,"o":"a_0474"},{"a":4637,"t":"code","b":[73,1],"m":"eor","o":"#$01"},{"a":4639,"t":"code","b":[141,116,4],"m":"sta","oa":1140,"o":"a_0474"},{"a":4642,"l":"b_1222","t":"code","b":[185,177,2],"m":"lda","oa":689,"o":"f_02B1,y","x":[4632]},{"a":4645,"t":"code","b":[24],"m":"clc"},{"a":4646,"t":"code","b":[105,255],"m":"adc","o":"#$FF"},{"a":4647,"t":"note","l":"sprite_y_offset","c":"The vertical offset for the sprites' Y positions, $2F plus the fine scroll (low three bits of $0475), patched into this ADC.","note":"inside the item at $1226","x":[4562]},{"a":4648,"t":"code","b":[157,101,4],"m":"sta","oa":1125,"o":"f_0465,x"},{"a":4651,"t":"code","b":[56],"m":"sec"},{"a":4652,"t":"code","b":[176,16],"m":"bcs","oa":4670,"o":"b_123E"},{"a":4654,"l":"b_122E","t":"code","b":[14,128,4],"m":"asl","oa":1152,"o":"a_0480","x":[4577,4582]},{"a":4657,"t":"code","b":[14,127,4],"m":"asl","oa":1151,"o":"a_047F"},{"a":4660,"t":"code","b":[14,129,4],"m":"asl","oa":1153,"o":"a_0481"},{"a":4663,"t":"code","b":[14,123,4],"m":"asl","oa":1147,"o":"a_047B"},{"a":4666,"t":"code","b":[14,116,4],"m":"asl","oa":1140,"o":"a_0474"},{"a":4669,"t":"code","b":[24],"m":"clc"},{"a":4670,"l":"b_123E","t":"code","b":[46,121,4],"m":"rol","oa":1145,"o":"a_0479","x":[4652]},{"a":4673,"t":"code","b":[206,219,17],"m":"dec","oa":4571,"o":"sprite_slot"},{"a":4676,"t":"code","b":[16,148],"m":"bpl","oa":4570,"o":"b_11DA"},{"a":4678,"t":"code","b":[96],"m":"rts"},{"a":4679,"l":"vic_inline_writes","c":"Writes VIC-II register copies listed after the JSR that called it: pairs of register number and value, ended by a byte with bit 7 set, into $0464+register. Then jumps to the byte after the list by rewriting the operand of the JMP at $126B.","t":"code","b":[104],"m":"pla","x":[8767]},{"a":4680,"t":"code","b":[133,2],"m":"sta","oa":2,"o":"zpa_02"},{"a":4682,"t":"code","b":[104],"m":"pla"},{"a":4683,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"zpa_03"},{"a":4685,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":4687,"l":"b_124F","t":"code","b":[177,2],"m":"lda","oa":2,"o":"(zpa_02),y","x":[4699]},{"a":4689,"t":"code","b":[48,10],"m":"bmi","oa":4701,"o":"b_125D"},{"a":4691,"t":"code","b":[200],"m":"iny"},{"a":4692,"t":"code","b":[170],"m":"tax"},{"a":4693,"t":"code","b":[177,2],"m":"lda","oa":2,"o":"(zpa_02),y"},{"a":4695,"t":"code","b":[157,100,4],"m":"sta","oa":1124,"o":"f_0464,x"},{"a":4698,"t":"code","b":[200],"m":"iny"},{"a":4699,"t":"code","b":[208,242],"m":"bne","oa":4687,"o":"b_124F"},{"a":4701,"l":"b_125D","t":"code","b":[152],"m":"tya","x":[4689]},{"a":4702,"t":"code","b":[56],"m":"sec"},{"a":4703,"t":"code","b":[101,2],"m":"adc","oa":2,"o":"zpa_02"},{"a":4705,"t":"code","b":[141,108,18],"m":"sta","oa":4716,"o":"viw_return_lo"},{"a":4708,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4710,"t":"code","b":[101,3],"m":"adc","oa":3,"o":"zpa_03"},{"a":4712,"t":"code","b":[141,109,18],"m":"sta","oa":4717,"o":"viw_return_hi"},{"a":4715,"t":"code","b":[76,255,255],"m":"jmp","oa":65535,"o":"$FFFF"},{"a":4716,"t":"note","l":"viw_return_lo","c":"The address after vic_inline_writes's list, low byte, patched into the JMP at $126B.","note":"inside the item at $126B","x":[4705]},{"a":4717,"t":"note","l":"viw_return_hi","c":"The address after the list, high byte.","note":"inside the item at $126B","x":[4712]},{"a":4718,"l":"latch_collisions","c":"Unless $0463 is set, copies the sprite collision registers into $0482 and $0483 and writes the VIC-II copy to the chip (copy_vic).","t":"code","b":[173,99,4],"m":"lda","oa":1123,"o":"a_0463","x":[2292,2670]},{"a":4721,"t":"code","b":[240,1],"m":"beq","oa":4724,"o":"b_1274"},{"a":4723,"t":"code","b":[96],"m":"rts"},{"a":4724,"l":"b_1274","t":"code","b":[173,30,208],"m":"lda","o":"vic_sprite_collision","x":[4721]},{"a":4727,"t":"code","b":[141,130,4],"m":"sta","oa":1154,"o":"a_0482"},{"a":4730,"t":"code","b":[173,31,208],"m":"lda","o":"vic_sprite_bg_collision"},{"a":4733,"t":"code","b":[141,131,4],"m":"sta","oa":1155,"o":"a_0483"},{"a":4736,"t":"code","b":[76,92,59],"m":"jmp","oa":15196,"o":"copy_vic"},{"a":4739,"c":"Nine RTS instructions nothing calls.","t":"code","b":[96],"m":"rts"},{"a":4740,"t":"code","b":[96],"m":"rts"},{"a":4741,"t":"code","b":[96],"m":"rts"},{"a":4742,"t":"code","b":[96],"m":"rts"},{"a":4743,"t":"code","b":[96],"m":"rts"},{"a":4744,"t":"code","b":[96],"m":"rts"},{"a":4745,"t":"code","b":[96],"m":"rts"},{"a":4746,"t":"code","b":[96],"m":"rts"},{"a":4747,"t":"code","b":[96],"m":"rts"},{"a":4748,"l":"screen_on","c":"Sets the screen on (bit 4 of the $D011 copy at $0475) and clears bit 7; entered at $128F it clears both, blanking the screen.","t":"code","b":[169,16],"m":"lda","o":"#$10","x":[4912,6411,8854]},{"a":4750,"t":"code","b":[44,169,0],"m":"bit","oa":169,"o":"a_00A9"},{"a":4751,"t":"note","l":"screen_off","c":"Entered here, the BIT at $128E hides the LDA #$10 and A is zero: blanks the screen (clears bits 4 and 7 of the $D011 copy).","note":"inside the item at $128E","x":[6354]},{"a":4753,"t":"code","b":[77,117,4],"m":"eor","oa":1141,"o":"a_0475"},{"a":4756,"t":"code","b":[41,144],"m":"and","o":"#$90"},{"a":4758,"t":"code","b":[77,117,4],"m":"eor","oa":1141,"o":"a_0475"},{"a":4761,"t":"code","b":[141,117,4],"m":"sta","oa":1141,"o":"a_0475"},{"a":4764,"t":"code","b":[96],"m":"rts"},{"a":4765,"l":"unpack_inline","c":"Unpacks a run-length packed block. The four bytes after the JSR give the packed data's address ($02/$03) and its length in bytes ($04/$05); returns past them. In the data, $80 followed by two bytes sets the destination; a byte from $81 to $FF repeats the next byte (n AND $7F) + 1 times; a byte n under $80 copies the next n + 1 bytes. Called by the stages, such as level 2 at $803A.","t":"code","b":[104],"m":"pla"},{"a":4766,"t":"code","b":[141,179,18],"m":"sta","oa":4787,"o":"unpack_ret_lo"},{"a":4769,"t":"code","b":[24],"m":"clc"},{"a":4770,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":4772,"t":"code","b":[133,2],"m":"sta","oa":2,"o":"zpa_02"},{"a":4774,"t":"code","b":[104],"m":"pla"},{"a":4775,"t":"code","b":[141,180,18],"m":"sta","oa":4788,"o":"unpack_ret_hi"},{"a":4778,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":4780,"t":"code","b":[72],"m":"pha"},{"a":4781,"t":"code","b":[165,2],"m":"lda","oa":2,"o":"zpa_02"},{"a":4783,"t":"code","b":[72],"m":"pha"},{"a":4784,"t":"code","b":[160,4],"m":"ldy","o":"#$04"},{"a":4786,"l":"b_12B2","t":"code","b":[185,255,255],"m":"lda","oa":65535,"o":"$FFFF,y","x":[4793]},{"a":4787,"t":"note","l":"unpack_ret_lo","c":"The return address, low byte, patched into this LDA to read the four inline bytes.","note":"inside the item at $12B2","x":[4766]},{"a":4788,"t":"note","l":"unpack_ret_hi","c":"The return address, high byte.","note":"inside the item at $12B2","x":[4775]},{"a":4789,"t":"code","b":[153,1,0],"m":"sta","oa":1,"o":"zpa_01,y"},{"a":4792,"t":"code","b":[136],"m":"dey"},{"a":4793,"t":"code","b":[208,247],"m":"bne","oa":4786,"o":"b_12B2"},{"a":4795,"l":"b_12BB","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[4899]},{"a":4797,"t":"code","b":[177,2],"m":"lda","oa":2,"o":"(zpa_02),y"},{"a":4799,"t":"code","b":[16,35],"m":"bpl","oa":4836,"o":"b_12E4"},{"a":4801,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":4803,"t":"code","b":[208,13],"m":"bne","oa":4818,"o":"b_12D2"},{"a":4805,"t":"code","b":[200],"m":"iny"},{"a":4806,"t":"code","b":[177,2],"m":"lda","oa":2,"o":"(zpa_02),y"},{"a":4808,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpa_06"},{"a":4810,"t":"code","b":[200],"m":"iny"},{"a":4811,"t":"code","b":[177,2],"m":"lda","oa":2,"o":"(zpa_02),y"},{"a":4813,"t":"code","b":[133,7],"m":"sta","oa":7,"o":"zpa_07"},{"a":4815,"t":"code","b":[76,7,19],"m":"jmp","oa":4871,"o":"j_1307"},{"a":4818,"l":"b_12D2","t":"code","b":[141,218,18],"m":"sta","oa":4826,"o":"unpack_repeat","x":[4803]},{"a":4821,"t":"code","b":[170],"m":"tax"},{"a":4822,"t":"code","b":[200],"m":"iny"},{"a":4823,"t":"code","b":[177,2],"m":"lda","oa":2,"o":"(zpa_02),y"},{"a":4825,"t":"code","b":[160,255],"m":"ldy","o":"#$FF"},{"a":4826,"t":"note","l":"unpack_repeat","c":"The repeat count, patched into the LDY at $12D9.","note":"inside the item at $12D9","x":[4818]},{"a":4827,"l":"b_12DB","t":"code","b":[145,6],"m":"sta","oa":6,"o":"(zpa_06),y","x":[4830]},{"a":4829,"t":"code","b":[136],"m":"dey"},{"a":4830,"t":"code","b":[16,251],"m":"bpl","oa":4827,"o":"b_12DB"},{"a":4832,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":4834,"t":"code","b":[208,25],"m":"bne","oa":4861,"o":"b_12FD"},{"a":4836,"l":"b_12E4","t":"code","b":[230,2],"m":"inc","oa":2,"o":"zpa_02","x":[4799]},{"a":4838,"t":"code","b":[208,2],"m":"bne","oa":4842,"o":"b_12EA"},{"a":4840,"t":"code","b":[230,3],"m":"inc","oa":3,"o":"zpa_03"},{"a":4842,"l":"b_12EA","t":"code","b":[166,4],"m":"ldx","oa":4,"o":"zpa_04","x":[4838]},{"a":4844,"t":"code","b":[208,2],"m":"bne","oa":4848,"o":"b_12F0"},{"a":4846,"t":"code","b":[198,5],"m":"dec","oa":5,"o":"zpp_05"},{"a":4848,"l":"b_12F0","t":"code","b":[198,4],"m":"dec","oa":4,"o":"zpa_04","x":[4844]},{"a":4850,"t":"code","b":[170],"m":"tax"},{"a":4851,"t":"code","b":[168],"m":"tay"},{"a":4852,"l":"b_12F4","t":"code","b":[177,2],"m":"lda","oa":2,"o":"(zpa_02),y","x":[4857]},{"a":4854,"t":"code","b":[145,6],"m":"sta","oa":6,"o":"(zpa_06),y"},{"a":4856,"t":"code","b":[136],"m":"dey"},{"a":4857,"t":"code","b":[16,249],"m":"bpl","oa":4852,"o":"b_12F4"},{"a":4859,"t":"code","b":[138],"m":"txa"},{"a":4860,"t":"code","b":[168],"m":"tay"},{"a":4861,"l":"b_12FD","t":"code","b":[138],"m":"txa","x":[4834]},{"a":4862,"t":"code","b":[56],"m":"sec"},{"a":4863,"t":"code","b":[101,6],"m":"adc","oa":6,"o":"zpa_06"},{"a":4865,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpa_06"},{"a":4867,"t":"code","b":[144,2],"m":"bcc","oa":4871,"o":"j_1307"},{"a":4869,"t":"code","b":[230,7],"m":"inc","oa":7,"o":"zpa_07"},{"a":4871,"l":"j_1307","t":"code","b":[152],"m":"tya","x":[4815,4867]},{"a":4872,"t":"code","b":[56],"m":"sec"},{"a":4873,"t":"code","b":[101,2],"m":"adc","oa":2,"o":"zpa_02"},{"a":4875,"t":"code","b":[133,2],"m":"sta","oa":2,"o":"zpa_02"},{"a":4877,"t":"code","b":[144,2],"m":"bcc","oa":4881,"o":"b_1311"},{"a":4879,"t":"code","b":[230,3],"m":"inc","oa":3,"o":"zpa_03"},{"a":4881,"l":"b_1311","t":"code","b":[140,24,19],"m":"sty","oa":4888,"o":"unpack_used","x":[4877]},{"a":4884,"t":"code","b":[24],"m":"clc"},{"a":4885,"t":"code","b":[165,4],"m":"lda","oa":4,"o":"zpa_04"},{"a":4887,"t":"code","b":[233,255],"m":"sbc","o":"#$FF"},{"a":4888,"t":"note","l":"unpack_used","c":"One less than the bytes just used, patched into the SBC: it runs with the carry clear, so it takes off one more, the bytes used.","note":"inside the item at $1317","x":[4881]},{"a":4889,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":4891,"t":"code","b":[176,2],"m":"bcs","oa":4895,"o":"b_131F"},{"a":4893,"t":"code","b":[198,5],"m":"dec","oa":5,"o":"zpp_05"},{"a":4895,"l":"b_131F","t":"code","b":[165,4],"m":"lda","oa":4,"o":"zpa_04","x":[4891]},{"a":4897,"t":"code","b":[5,5],"m":"ora","oa":5,"o":"zpp_05"},{"a":4899,"t":"code","b":[208,150],"m":"bne","oa":4795,"o":"b_12BB"},{"a":4901,"t":"code","b":[96],"m":"rts"},{"a":4902,"l":"code_state","c":"Seven working bytes of the status screen, cleared by text_screen_setup: $1326 unused, $1327 the number of characters typed, $1328 the decoded marines byte, $1329 the stage nibble and the letter, $132A the check value, $132B and $132C show_marines's bits and count.","t":"byte","b":[0],"x":[8829]},{"a":4903,"l":"code_count","c":"The number of code characters typed so far (0 to 5); zero after RETURN means no code was entered.","t":"byte","b":[0],"x":[4925,4959,5127,5157,5160,5691,5715]},{"a":4904,"l":"code_marines","c":"The code's marines byte: decode_code builds it from the first three digits and make_code from the marines alive XOR the stage's key.","t":"byte","b":[0],"x":[5030,5184,5194,5197,5206,5209,5954,6021,6035]},{"a":4905,"l":"code_stage_letter","c":"The code's stage nibble (high) and letter (low).","t":"byte","b":[0],"x":[5017,5221,5232,5235,5239,5266,5999,6051]},{"a":4906,"l":"code_check_value","c":"The check value of the code being read or made.","t":"byte","b":[0],"x":[5263,5271,6032,6045,6048,6063]},{"a":4907,"l":"status_bits","c":"show_marines's copy of the marines byte, shifted a bit at a time.","t":"byte","b":[0],"x":[6101,6135]},{"a":4908,"l":"status_count","c":"show_marines's count of names left.","t":"byte","b":[0],"x":[6104,6153]},{"a":4909,"l":"status_screen","c":"The \"Colonial Marines status update\" screen. Draws the marines' status (show_marines). On stage 0, at the start of a game, it reads up to five characters (read_code, DEL rubs one out) and checks them (decode_code, check_code): a valid code sets stage and marines from it (apply_code), an invalid one says \"INVALID\" and asks again. On any later stage it shows the code for the stage just won (make_code) and waits for RETURN. Either way it then moves stage on by one (stage_next) and shows that stage's briefing.","t":"code","b":[32,250,59],"m":"jsr","oa":15354,"o":"status_entry","x":[2211]},{"a":4912,"t":"code","b":[32,140,18],"m":"jsr","oa":4748,"o":"screen_on"},{"a":4915,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":4917,"t":"code","b":[32,149,10],"m":"jsr","oa":2709,"o":"wait_frames"},{"a":4920,"l":"status_loop","c":"Clears the five characters typed and the count, shows the marines and either reads a code (stage 0, at the start of a game) or shows the code earned (any later stage).","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[5010]},{"a":4922,"t":"code","b":[141,179,4],"m":"sta","oa":1203,"o":"a_04B3"},{"a":4925,"t":"code","b":[141,39,19],"m":"sta","oa":4903,"o":"code_count"},{"a":4928,"t":"code","b":[162,4],"m":"ldx","o":"#$04"},{"a":4930,"l":"b_1342","t":"code","b":[157,51,20],"m":"sta","oa":5171,"o":"code_typed,x","x":[4934]},{"a":4933,"t":"code","b":[202],"m":"dex"},{"a":4934,"t":"code","b":[16,250],"m":"bpl","oa":4930,"o":"b_1342"},{"a":4936,"t":"code","b":[32,195,23],"m":"jsr","oa":6083,"o":"show_marines"},{"a":4939,"t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205"},{"a":4942,"t":"code","b":[208,6],"m":"bne","oa":4950,"o":"b_1356"},{"a":4944,"t":"code","b":[32,20,22],"m":"jsr","oa":5652,"o":"read_code"},{"a":4947,"t":"code","b":[76,95,19],"m":"jmp","oa":4959,"o":"status_after_entry"},{"a":4950,"l":"b_1356","t":"code","b":[32,32,23],"m":"jsr","oa":5920,"o":"make_code","x":[4942]},{"a":4953,"t":"code","b":[32,155,22],"m":"jsr","oa":5787,"o":"say_code_heading"},{"a":4956,"t":"code","b":[32,46,36],"m":"jsr","oa":9262,"o":"wait_return"},{"a":4959,"l":"status_after_entry","c":"Nothing typed: just moves on to the next stage's briefing. A valid code: \"VALID\", the marines and stage it gives, the status again and \"PRESS RETURN TO CONTINUE\", then that stage's briefing. An invalid code: \"INVALID\", and the entry starts again.","t":"code","b":[173,39,19],"m":"lda","oa":4903,"o":"code_count","x":[4947]},{"a":4962,"t":"code","b":[208,7],"m":"bne","oa":4971,"o":"b_136B"},{"a":4964,"t":"code","b":[32,149,19],"m":"jsr","oa":5013,"o":"stage_next"},{"a":4967,"t":"code","b":[32,10,60],"m":"jsr","oa":15370,"o":"briefing_return"},{"a":4970,"t":"code","b":[96],"m":"rts"},{"a":4971,"l":"b_136B","t":"code","b":[32,56,20],"m":"jsr","oa":5176,"o":"decode_code","x":[4962]},{"a":4974,"t":"code","b":[32,119,20],"m":"jsr","oa":5239,"o":"check_code"},{"a":4977,"t":"code","b":[176,25],"m":"bcs","oa":5004,"o":"b_138C"},{"a":4979,"t":"code","b":[32,176,19],"m":"jsr","oa":5040,"o":"say_valid"},{"a":4982,"t":"code","b":[32,38,35],"m":"jsr","oa":8998,"o":"clear_bitmap_6000"},{"a":4985,"t":"code","b":[32,153,19],"m":"jsr","oa":5017,"o":"apply_code"},{"a":4988,"t":"code","b":[32,195,23],"m":"jsr","oa":6083,"o":"show_marines"},{"a":4991,"t":"code","b":[32,149,19],"m":"jsr","oa":5013,"o":"stage_next"},{"a":4994,"t":"code","b":[32,223,19],"m":"jsr","oa":5087,"o":"say_press_return"},{"a":4997,"t":"code","b":[32,46,36],"m":"jsr","oa":9262,"o":"wait_return"},{"a":5000,"t":"code","b":[32,10,60],"m":"jsr","oa":15370,"o":"briefing_return"},{"a":5003,"t":"code","b":[96],"m":"rts"},{"a":5004,"l":"b_138C","t":"code","b":[32,209,21],"m":"jsr","oa":5585,"o":"say_invalid","x":[4977]},{"a":5007,"t":"code","b":[32,38,35],"m":"jsr","oa":8998,"o":"clear_bitmap_6000"},{"a":5010,"t":"code","b":[76,56,19],"m":"jmp","oa":4920,"o":"status_loop"},{"a":5013,"l":"stage_next","c":"Moves stage ($0205) on by one.","t":"code","b":[238,5,2],"m":"inc","oa":517,"o":"a_0205","x":[4964,4991]},{"a":5016,"t":"code","b":[96],"m":"rts"},{"a":5017,"l":"apply_code","c":"Sets the game from a valid code: stage = the code's stage nibble XOR 5, and the marines byte $0204 = $1328 XOR that stage's key in $1730. stage_next then moves on to the stage after the one the code was earned in.","t":"code","b":[173,41,19],"m":"lda","oa":4905,"o":"code_stage_letter","x":[4985]},{"a":5020,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":5021,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":5022,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":5023,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":5024,"t":"code","b":[73,5],"m":"eor","o":"#$05"},{"a":5026,"t":"code","b":[141,5,2],"m":"sta","oa":517,"o":"a_0205"},{"a":5029,"t":"code","b":[170],"m":"tax"},{"a":5030,"t":"code","b":[173,40,19],"m":"lda","oa":4904,"o":"code_marines"},{"a":5033,"t":"code","b":[93,48,23],"m":"eor","oa":5936,"o":"code_keys,x"},{"a":5036,"t":"code","b":[141,4,2],"m":"sta","oa":516,"o":"a_0204"},{"a":5039,"t":"code","b":[96],"m":"rts"},{"a":5040,"l":"say_valid","c":"Prints \"MISSION STATUS CODE... VALID.\" through print_list, with pauses.","t":"code","b":[169,188],"m":"lda","o":"#$BC","x":[4979]},{"a":5042,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"zpa_10"},{"a":5044,"t":"code","b":[169,19],"m":"lda","o":"#$13"},{"a":5046,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":5048,"t":"code","b":[32,147,35],"m":"jsr","oa":9107,"o":"print_list"},{"a":5051,"t":"code","b":[96],"m":"rts"},{"a":5052,"l":"text_valid","c":"Two new lines, \"MISSION STATUS CODE...\", a pause ($80), \"VALID.\" and three more pauses.","t":"byte","b":[255,255,77,73,83,83,73,79]},{"a":5060,"t":"byte","b":[78,32,83,84,65,84,85,83]},{"a":5068,"t":"byte","b":[32,67,79,68,69,46,46,46]},{"a":5076,"t":"byte","b":[128,86,65,76,73,68,46,128]},{"a":5084,"t":"byte","b":[128,128,0]},{"a":5087,"l":"say_press_return","c":"Prints \"PRESS RETURN TO CONTINUE.\" two lines down, through print_list.","t":"code","b":[169,235],"m":"lda","o":"#$EB","x":[4994]},{"a":5089,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"zpa_10"},{"a":5091,"t":"code","b":[169,19],"m":"lda","o":"#$13"},{"a":5093,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":5095,"t":"code","b":[32,147,35],"m":"jsr","oa":9107,"o":"print_list"},{"a":5098,"t":"code","b":[96],"m":"rts"},{"a":5099,"l":"text_press_return","c":"Two new lines and \"PRESS RETURN TO CONTINUE.\".","t":"byte","b":[255,255,80,82,69,83,83,32]},{"a":5107,"t":"byte","b":[82,69,84,85,82,78,32,84]},{"a":5115,"t":"byte","b":[79,32,67,79,78,84,73,78]},{"a":5123,"t":"byte","b":[85,69,46,0]},{"a":5127,"l":"code_rubout","c":"Takes back the last character typed into the code: moves the cursor left, prints a blank and clears the character.","t":"code","b":[173,39,19],"m":"lda","oa":4903,"o":"code_count","x":[5684]},{"a":5130,"t":"code","b":[240,36],"m":"beq","oa":5168,"o":"r_1430"},{"a":5132,"t":"code","b":[206,40,2],"m":"dec","oa":552,"o":"a_0228"},{"a":5135,"t":"code","b":[32,55,12],"m":"jsr","oa":3127,"o":"text_cursor"},{"a":5138,"t":"code","b":[169,49],"m":"lda","o":"#$31"},{"a":5140,"t":"code","b":[141,24,13],"m":"sta","oa":3352,"o":"print_ptr"},{"a":5143,"t":"code","b":[169,20],"m":"lda","o":"#$14"},{"a":5145,"t":"code","b":[141,25,13],"m":"sta","oa":3353,"o":"print_ptr_hi"},{"a":5148,"t":"code","b":[32,0,13],"m":"jsr","oa":3328,"o":"print"},{"a":5151,"t":"code","b":[206,40,2],"m":"dec","oa":552,"o":"a_0228"},{"a":5154,"t":"code","b":[32,55,12],"m":"jsr","oa":3127,"o":"text_cursor"},{"a":5157,"t":"code","b":[206,39,19],"m":"dec","oa":4903,"o":"code_count"},{"a":5160,"t":"code","b":[174,39,19],"m":"ldx","oa":4903,"o":"code_count"},{"a":5163,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5165,"t":"code","b":[157,51,20],"m":"sta","oa":5171,"o":"code_typed,x"},{"a":5168,"l":"r_1430","t":"code","b":[96],"m":"rts","x":[5130]},{"a":5169,"l":"text_rubout","c":"The string code_rubout prints over the character it takes back: an asterisk, the placeholder the entry line starts with.","t":"byte","b":[42,0]},{"a":5171,"l":"code_typed","c":"The five characters of the code as typed: three digits, a fourth digit and a letter.","t":"byte","b":[0],"x":[4930,5165,5176,5698]},{"a":5172,"l":"code_typed_2","c":"The code's second character.","t":"byte","b":[0],"x":[5187]},{"a":5173,"l":"code_typed_3","c":"The code's third character.","t":"byte","b":[0],"x":[5200]},{"a":5174,"l":"code_typed_4","c":"The code's fourth character, the stage digit.","t":"byte","b":[0],"x":[5212]},{"a":5175,"l":"code_typed_5","c":"The code's fifth character, the check letter.","t":"byte","b":[0],"x":[5224,5250]},{"a":5176,"l":"decode_code","c":"Turns the five characters typed ($1433-$1437) into two bytes. $1328 holds the marines bits: the first digit's low three bits as bits 7-5, the second's as bits 4-2, the third's bits 2-1 as bits 1-0. $1329 holds the fourth digit's low three bits in the high nibble and the letter minus $40 in the low nibble.","t":"code","b":[173,51,20],"m":"lda","oa":5171,"o":"code_typed","x":[4971]},{"a":5179,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5180,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5181,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5182,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5183,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5184,"t":"code","b":[141,40,19],"m":"sta","oa":4904,"o":"code_marines"},{"a":5187,"t":"code","b":[173,52,20],"m":"lda","oa":5172,"o":"code_typed_2"},{"a":5190,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":5192,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5193,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5194,"t":"code","b":[13,40,19],"m":"ora","oa":4904,"o":"code_marines"},{"a":5197,"t":"code","b":[141,40,19],"m":"sta","oa":4904,"o":"code_marines"},{"a":5200,"t":"code","b":[173,53,20],"m":"lda","oa":5173,"o":"code_typed_3"},{"a":5203,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":5205,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":5206,"t":"code","b":[13,40,19],"m":"ora","oa":4904,"o":"code_marines"},{"a":5209,"t":"code","b":[141,40,19],"m":"sta","oa":4904,"o":"code_marines"},{"a":5212,"t":"code","b":[173,54,20],"m":"lda","oa":5174,"o":"code_typed_4"},{"a":5215,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":5217,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5218,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5219,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5220,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5221,"t":"code","b":[141,41,19],"m":"sta","oa":4905,"o":"code_stage_letter"},{"a":5224,"t":"code","b":[173,55,20],"m":"lda","oa":5175,"o":"code_typed_5"},{"a":5227,"t":"code","b":[56],"m":"sec"},{"a":5228,"t":"code","b":[233,64],"m":"sbc","o":"#$40"},{"a":5230,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":5232,"t":"code","b":[13,41,19],"m":"ora","oa":4905,"o":"code_stage_letter"},{"a":5235,"t":"code","b":[141,41,19],"m":"sta","oa":4905,"o":"code_stage_letter"},{"a":5238,"t":"code","b":[96],"m":"rts"},{"a":5239,"l":"check_code","c":"Checks a decoded code; returns carry clear when it is valid: the fourth digit XOR 5 must be below 7, the letter must be A to L, and the letter must equal the check value (code_check).","t":"code","b":[173,41,19],"m":"lda","oa":4905,"o":"code_stage_letter","x":[4974]},{"a":5242,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":5244,"t":"code","b":[73,80],"m":"eor","o":"#$50"},{"a":5246,"t":"code","b":[201,112],"m":"cmp","o":"#$70"},{"a":5248,"t":"code","b":[176,27],"m":"bcs","oa":5277,"o":"b_149D"},{"a":5250,"t":"code","b":[173,55,20],"m":"lda","oa":5175,"o":"code_typed_5"},{"a":5253,"t":"code","b":[56],"m":"sec"},{"a":5254,"t":"code","b":[233,65],"m":"sbc","o":"#$41"},{"a":5256,"t":"code","b":[201,12],"m":"cmp","o":"#$0C"},{"a":5258,"t":"code","b":[176,17],"m":"bcs","oa":5277,"o":"b_149D"},{"a":5260,"t":"code","b":[32,133,23],"m":"jsr","oa":6021,"o":"code_check"},{"a":5263,"t":"code","b":[141,42,19],"m":"sta","oa":4906,"o":"code_check_value"},{"a":5266,"t":"code","b":[173,41,19],"m":"lda","oa":4905,"o":"code_stage_letter"},{"a":5269,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":5271,"t":"code","b":[205,42,19],"m":"cmp","oa":4906,"o":"code_check_value"},{"a":5274,"t":"code","b":[24],"m":"clc"},{"a":5275,"t":"code","b":[240,1],"m":"beq","oa":5278,"o":"r_149E"},{"a":5277,"l":"b_149D","t":"code","b":[56],"m":"sec","x":[5248,5258]},{"a":5278,"l":"r_149E","t":"code","b":[96],"m":"rts","x":[5275]},{"a":5279,"l":"status_raster","c":"The status and briefing screens' raster routine (text_screen_setup points the raster call here): just frame_tick, so keys, music and the clock keep running.","t":"code","b":[32,157,9],"m":"jsr","oa":2461,"o":"frame_tick"},{"a":5282,"t":"code","b":[96],"m":"rts"},{"a":5283,"l":"game_over","c":"The screen when every marine is lost ($0203 zero at text_screen_setup): clears the screen colours and prints text_memo; text_screen_setup then waits for ever, and only RUN/STOP and RESTORE start the section again.","t":"code","b":[169,187],"m":"lda","o":"#$BB","x":[8851]},{"a":5285,"t":"code","b":[168],"m":"tay"},{"a":5286,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5288,"t":"code","b":[141,66,35],"m":"sta","oa":9026,"o":"fill_ptr"},{"a":5291,"t":"code","b":[169,92],"m":"lda","o":"#$5C"},{"a":5293,"t":"code","b":[141,67,35],"m":"sta","oa":9027,"o":"fill_ptr_hi"},{"a":5296,"t":"code","b":[169,232],"m":"lda","o":"#$E8"},{"a":5298,"t":"code","b":[141,80,35],"m":"sta","oa":9040,"o":"fill_end_lo"},{"a":5301,"t":"code","b":[169,95],"m":"lda","o":"#$5F"},{"a":5303,"t":"code","b":[141,87,35],"m":"sta","oa":9047,"o":"fill_end_hi"},{"a":5306,"t":"code","b":[32,65,35],"m":"jsr","oa":9025,"o":"fill_memory"},{"a":5309,"t":"code","b":[169,201],"m":"lda","o":"#$C9"},{"a":5311,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"zpa_10"},{"a":5313,"t":"code","b":[169,20],"m":"lda","o":"#$14"},{"a":5315,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":5317,"t":"code","b":[32,147,35],"m":"jsr","oa":9107,"o":"print_list"},{"a":5320,"t":"code","b":[96],"m":"rts"},{"a":5321,"l":"text_memo","c":"\"CONFIDENTIAL COMPANY MEMORANDUM. FROM: VAN LEUWEN TO: BIO-WEAPONS DIVISION RE: SPECIMEN RETRIEVAL FROM LV-426. NO CONTACT WITH BURKE FOR SEVENTEEN DAYS. MISSION FAILURE PRESUMED. SUGGEST FOLLOW-UP MISSION A.S.A.P. (RUN-STOP/RESTORE TO TRY AGAIN.)\" The first four bytes set the column, row and colours.","t":"byte","b":[194,228,175,187,67,79,78,70]},{"a":5329,"t":"byte","b":[73,68,69,78,84,73,65,76]},{"a":5337,"t":"byte","b":[32,67,79,77,80,65,78,89]},{"a":5345,"t":"byte","b":[32,77,69,77,79,82,65,78]},{"a":5353,"t":"byte","b":[68,85,77,46,255,255,70,82]},{"a":5361,"t":"byte","b":[79,77,58,32,86,65,78,32]},{"a":5369,"t":"byte","b":[76,69,85,87,69,78,255,255]},{"a":5377,"t":"byte","b":[84,79,58,32,32,32,66,73]},{"a":5385,"t":"byte","b":[79,45,87,69,65,80,79,78]},{"a":5393,"t":"byte","b":[83,32,68,73,86,73,83,73]},{"a":5401,"t":"byte","b":[79,78,255,255,82,69,58,32]},{"a":5409,"t":"byte","b":[32,32,83,80,69,67,73,77]},{"a":5417,"t":"byte","b":[69,78,32,82,69,84,82,73]},{"a":5425,"t":"byte","b":[69,86,65,76,32,70,82,79]},{"a":5433,"t":"byte","b":[77,32,76,86,45,52,50,54]},{"a":5441,"t":"byte","b":[255,255,255,78,79,32,67,79]},{"a":5449,"t":"byte","b":[78,84,65,67,84,32,87,73]},{"a":5457,"t":"byte","b":[84,72,32,66,85,82,75,69]},{"a":5465,"t":"byte","b":[32,70,79,82,32,83,69,86]},{"a":5473,"t":"byte","b":[69,78,84,69,69,78,255,68]},{"a":5481,"t":"byte","b":[65,89,83,46,32,77,73,83]},{"a":5489,"t":"byte","b":[83,73,79,78,32,70,65,73]},{"a":5497,"t":"byte","b":[76,85,82,69,32,80,82,69]},{"a":5505,"t":"byte","b":[83,85,77,69,68,46,255,83]},{"a":5513,"t":"byte","b":[85,71,71,69,83,84,32,70]},{"a":5521,"t":"byte","b":[79,76,76,79,87,45,85,80]},{"a":5529,"t":"byte","b":[32,77,73,83,83,73,79,78]},{"a":5537,"t":"byte","b":[32,65,46,83,46,65,46,80]},{"a":5545,"t":"byte","b":[46,255,255,255,255,255,255,40]},{"a":5553,"t":"byte","b":[82,85,78,45,83,84,79,80]},{"a":5561,"t":"byte","b":[47,82,69,83,84,79,82,69]},{"a":5569,"t":"byte","b":[32,84,79,32,84,82,89,32]},{"a":5577,"t":"byte","b":[65,71,65,73,78,46,41,0]},{"a":5585,"l":"say_invalid","c":"Prints \"MISSION STATUS CODE... INVALID. PLEASE TRY AGAIN.\" through print_list.","t":"code","b":[169,221],"m":"lda","o":"#$DD","x":[5004]},{"a":5587,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"zpa_10"},{"a":5589,"t":"code","b":[169,21],"m":"lda","o":"#$15"},{"a":5591,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":5593,"t":"code","b":[32,147,35],"m":"jsr","oa":9107,"o":"print_list"},{"a":5596,"t":"code","b":[96],"m":"rts"},{"a":5597,"l":"text_invalid","c":"Two new lines, then \"MISSION STATUS CODE...\", a pause, \"INVALID.\", a pause, \"PLEASE TRY AGAIN.\" and two more pauses.","t":"byte","b":[255,255,77,73,83,83,73,79]},{"a":5605,"t":"byte","b":[78,32,83,84,65,84,85,83]},{"a":5613,"t":"byte","b":[32,67,79,68,69,46,46,46]},{"a":5621,"t":"byte","b":[128,73,78,86,65,76,73,68]},{"a":5629,"t":"byte","b":[46,128,255,80,76,69,65,83]},{"a":5637,"t":"byte","b":[69,32,84,82,89,32,65,71]},{"a":5645,"t":"byte","b":[65,73,78,46,128,128,0]},{"a":5652,"l":"read_code","c":"Prints \"ENTER MISSION STATUS CODE OR PRESS RETURN TO CONTINUE.\" and reads keys until RETURN: DEL ($7F) rubs out, any other character from $20 is drawn and kept in $1433+n, up to five.","t":"code","b":[169,90],"m":"lda","o":"#$5A","x":[4944]},{"a":5654,"t":"code","b":[141,24,13],"m":"sta","oa":3352,"o":"print_ptr"},{"a":5657,"t":"code","b":[169,22],"m":"lda","o":"#$16"},{"a":5659,"t":"code","b":[141,25,13],"m":"sta","oa":3353,"o":"print_ptr_hi"},{"a":5662,"t":"code","b":[32,0,13],"m":"jsr","oa":3328,"o":"print"},{"a":5665,"l":"b_1621","t":"code","b":[32,25,36],"m":"jsr","oa":9241,"o":"next_key","x":[5678,5687,5696,5718]},{"a":5668,"t":"code","b":[32,14,36],"m":"jsr","oa":9230,"o":"is_return"},{"a":5671,"t":"code","b":[144,48],"m":"bcc","oa":5721,"o":"r_1659"},{"a":5673,"t":"code","b":[173,179,4],"m":"lda","oa":1203,"o":"a_04B3"},{"a":5676,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":5678,"t":"code","b":[144,241],"m":"bcc","oa":5665,"o":"b_1621"},{"a":5680,"t":"code","b":[201,127],"m":"cmp","o":"#$7F"},{"a":5682,"t":"code","b":[208,7],"m":"bne","oa":5691,"o":"code_keep_char"},{"a":5684,"t":"code","b":[32,7,20],"m":"jsr","oa":5127,"o":"code_rubout"},{"a":5687,"t":"code","b":[76,33,22],"m":"jmp","oa":5665,"o":"b_1621"},{"a":5690,"c":"A NOP that nothing reaches, after the JMP back to the key loop.","t":"code","b":[234],"m":"nop"},{"a":5691,"l":"code_keep_char","c":"A character from $20 up: drawn and kept, while fewer than five have been typed.","t":"code","b":[174,39,19],"m":"ldx","oa":4903,"o":"code_count","x":[5682]},{"a":5694,"t":"code","b":[224,5],"m":"cpx","o":"#$05"},{"a":5696,"t":"code","b":[176,223],"m":"bcs","oa":5665,"o":"b_1621"},{"a":5698,"t":"code","b":[157,51,20],"m":"sta","oa":5171,"o":"code_typed,x"},{"a":5701,"t":"code","b":[141,227,35],"m":"sta","oa":9187,"o":"one_char"},{"a":5704,"t":"code","b":[169,227],"m":"lda","o":"#$E3"},{"a":5706,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"zpa_10"},{"a":5708,"t":"code","b":[169,35],"m":"lda","o":"#$23"},{"a":5710,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":5712,"t":"code","b":[32,147,35],"m":"jsr","oa":9107,"o":"print_list"},{"a":5715,"t":"code","b":[238,39,19],"m":"inc","oa":4903,"o":"code_count"},{"a":5718,"t":"code","b":[76,33,22],"m":"jmp","oa":5665,"o":"b_1621"},{"a":5721,"l":"r_1659","t":"code","b":[96],"m":"rts","x":[5671]},{"a":5722,"l":"text_enter_code","c":"\"ENTER MISSION STATUS CODE OR PRESS RETURN TO CONTINUE.\" and five asterisks for the code to be typed over; the last two codes put the cursor back at the first asterisk.","t":"byte","b":[69,78,84,69,82,32,77,73]},{"a":5730,"t":"byte","b":[83,83,73,79,78,32,83,84]},{"a":5738,"t":"byte","b":[65,84,85,83,32,67,79,68]},{"a":5746,"t":"byte","b":[69,32,255,79,82,32,80,82]},{"a":5754,"t":"byte","b":[69,83,83,32,82,69,84,85]},{"a":5762,"t":"byte","b":[82,78,32,84,79,32,67,79]},{"a":5770,"t":"byte","b":[78,84,73,78,85,69,46,255]},{"a":5778,"t":"byte","b":[255,42,42,42,42,42,193,240]},{"a":5786,"t":"byte","b":[0]},{"a":5787,"l":"say_code_heading","c":"Prints the list at $16A7 (\"YOUR MISSION STATUS CODE IS\" and the code) through print_list.","t":"code","b":[169,167],"m":"lda","o":"#$A7","x":[4953]},{"a":5789,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"zpa_10"},{"a":5791,"t":"code","b":[169,22],"m":"lda","o":"#$16"},{"a":5793,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":5795,"t":"code","b":[32,147,35],"m":"jsr","oa":9107,"o":"print_list"},{"a":5798,"t":"code","b":[96],"m":"rts"},{"a":5799,"l":"text_your_code","c":"Two pauses, \"YOUR MISSION STATUS CODE IS\" and the five characters at $16C5 that make_code fills, two more pauses and \"PRESS RETURN TO CONTINUE OR PRESS RUN-STOP/RESTORE TO REPEAT PREVIOUS SECTION.\".","t":"byte","b":[128,128,89,79,85,82,32,77]},{"a":5807,"t":"byte","b":[73,83,83,73,79,78,32,83]},{"a":5815,"t":"byte","b":[84,65,84,85,83,32,67,79]},{"a":5823,"t":"byte","b":[68,69,32,73,83,255]},{"a":5829,"l":"code_shown","c":"The code shown at the end of a section, five characters written by make_code: three digits from the marines byte, the stage digit and the check letter. Five asterisks when the code is withheld.","t":"byte","b":[42],"x":[5924,5967]},{"a":5830,"l":"code_shown_2","c":"The second character of the code shown.","t":"byte","b":[42],"x":[5977]},{"a":5831,"l":"code_shown_3","c":"The third character of the code shown.","t":"byte","b":[42],"x":[5986]},{"a":5832,"l":"code_shown_4","c":"The fourth character of the code shown, the stage digit.","t":"byte","b":[42],"x":[6007]},{"a":5833,"l":"code_shown_5","c":"The check letter of the code shown, then the rest of text_your_code.","t":"byte","b":[42,128,128,255,255,80,82,69],"x":[6017]},{"a":5841,"t":"byte","b":[83,83,32,82,69,84,85,82]},{"a":5849,"t":"byte","b":[78,32,84,79,32,67,79,78]},{"a":5857,"t":"byte","b":[84,73,78,85,69,255,79,82]},{"a":5865,"t":"byte","b":[32,80,82,69,83,83,32,82]},{"a":5873,"t":"byte","b":[85,78,45,83,84,79,80,47]},{"a":5881,"t":"byte","b":[82,69,83,84,79,82,69,255]},{"a":5889,"t":"byte","b":[84,79,32,82,69,80,69,65]},{"a":5897,"c":"The end of text_your_code: the rest of \"TO REPEAT PREVIOUS SECTION.\", three new lines and the zero that ends it.","t":"byte","b":[84,32,80,82,69,86,73,79]},{"a":5905,"t":"byte","b":[85,83,32,83,69,67,84,73]},{"a":5913,"t":"byte","b":[79,78,46,255,255,255,0]},{"a":5920,"l":"make_code","c":"Builds the five characters of the code for the stage reached into $16C5-$16C9, the reverse of decode_code: the marines byte XOR the stage's key in $1730 gives three digits, stage XOR $55 gives the fourth, and the letter is $40 plus the check value. Does nothing when $0202 bit 7 is set.","t":"code","b":[162,4],"m":"ldx","o":"#$04","x":[4950]},{"a":5922,"t":"code","b":[169,42],"m":"lda","o":"#$2A"},{"a":5924,"l":"b_1724","t":"code","b":[157,197,22],"m":"sta","oa":5829,"o":"code_shown,x","x":[5928]},{"a":5927,"t":"code","b":[202],"m":"dex"},{"a":5928,"t":"code","b":[16,250],"m":"bpl","oa":5924,"o":"b_1724"},{"a":5930,"t":"code","b":[44,2,2],"m":"bit","oa":514,"o":"a_0202"},{"a":5933,"t":"code","b":[16,10],"m":"bpl","oa":5945,"o":"make_code_digits"},{"a":5935,"t":"code","b":[96],"m":"rts"},{"a":5936,"l":"code_keys","c":"The key each stage's code is scrambled with, by stage 0 to 8: $CD $12 $A2 $CB $40 $E5 $E4 $73 $F2. make_code XORs the marines byte with the key of the stage just finished; apply_code undoes it.","t":"byte","b":[205,18,162,203,64,229,228,115],"x":[5033,5951]},{"a":5944,"t":"byte","b":[242]},{"a":5945,"l":"make_code_digits","c":"Three digits from the marines byte XOR the key: bits 7-5, bits 4-2 and bits 1-0 (times two, so the third digit is always even). The fourth digit is the low three bits of stage XOR $55. The letter is $40 plus the check value, so a code's letter says how many 1 bits the rest of it holds.","t":"code","b":[173,4,2],"m":"lda","oa":516,"o":"a_0204","x":[5933]},{"a":5948,"t":"code","b":[174,5,2],"m":"ldx","oa":517,"o":"a_0205"},{"a":5951,"t":"code","b":[93,48,23],"m":"eor","oa":5936,"o":"code_keys,x"},{"a":5954,"t":"code","b":[141,40,19],"m":"sta","oa":4904,"o":"code_marines"},{"a":5957,"t":"code","b":[170],"m":"tax"},{"a":5958,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":5959,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":5960,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":5961,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":5962,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":5963,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":5965,"t":"code","b":[9,48],"m":"ora","o":"#$30"},{"a":5967,"t":"code","b":[141,197,22],"m":"sta","oa":5829,"o":"code_shown"},{"a":5970,"t":"code","b":[138],"m":"txa"},{"a":5971,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":5972,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":5973,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":5975,"t":"code","b":[9,48],"m":"ora","o":"#$30"},{"a":5977,"t":"code","b":[141,198,22],"m":"sta","oa":5830,"o":"code_shown_2"},{"a":5980,"t":"code","b":[138],"m":"txa"},{"a":5981,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5982,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":5984,"t":"code","b":[9,48],"m":"ora","o":"#$30"},{"a":5986,"t":"code","b":[141,199,22],"m":"sta","oa":5831,"o":"code_shown_3"},{"a":5989,"t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205"},{"a":5992,"t":"code","b":[73,85],"m":"eor","o":"#$55"},{"a":5994,"t":"code","b":[170],"m":"tax"},{"a":5995,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5996,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5997,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5998,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5999,"t":"code","b":[141,41,19],"m":"sta","oa":4905,"o":"code_stage_letter"},{"a":6002,"t":"code","b":[138],"m":"txa"},{"a":6003,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":6005,"t":"code","b":[9,48],"m":"ora","o":"#$30"},{"a":6007,"t":"code","b":[141,200,22],"m":"sta","oa":5832,"o":"code_shown_4"},{"a":6010,"t":"code","b":[32,133,23],"m":"jsr","oa":6021,"o":"code_check"},{"a":6013,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":6015,"t":"code","b":[9,64],"m":"ora","o":"#$40"},{"a":6017,"t":"code","b":[141,201,22],"m":"sta","oa":5833,"o":"code_shown_5"},{"a":6020,"t":"code","b":[96],"m":"rts"},{"a":6021,"l":"code_check","c":"The check value of a code: the number of 1 bits in $1328 plus the number in the high nibble of $1329, counted through the table at $17B3.","t":"code","b":[173,40,19],"m":"lda","oa":4904,"o":"code_marines","x":[5260,6010]},{"a":6024,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6025,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6026,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6027,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6028,"t":"code","b":[170],"m":"tax"},{"a":6029,"t":"code","b":[189,179,23],"m":"lda","oa":6067,"o":"bit_counts,x"},{"a":6032,"t":"code","b":[141,42,19],"m":"sta","oa":4906,"o":"code_check_value"},{"a":6035,"t":"code","b":[173,40,19],"m":"lda","oa":4904,"o":"code_marines"},{"a":6038,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":6040,"t":"code","b":[170],"m":"tax"},{"a":6041,"t":"code","b":[189,179,23],"m":"lda","oa":6067,"o":"bit_counts,x"},{"a":6044,"t":"code","b":[24],"m":"clc"},{"a":6045,"t":"code","b":[109,42,19],"m":"adc","oa":4906,"o":"code_check_value"},{"a":6048,"t":"code","b":[141,42,19],"m":"sta","oa":4906,"o":"code_check_value"},{"a":6051,"t":"code","b":[173,41,19],"m":"lda","oa":4905,"o":"code_stage_letter"},{"a":6054,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6055,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6056,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6057,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6058,"t":"code","b":[170],"m":"tax"},{"a":6059,"t":"code","b":[189,179,23],"m":"lda","oa":6067,"o":"bit_counts,x"},{"a":6062,"t":"code","b":[24],"m":"clc"},{"a":6063,"t":"code","b":[109,42,19],"m":"adc","oa":4906,"o":"code_check_value"},{"a":6066,"t":"code","b":[96],"m":"rts"},{"a":6067,"l":"bit_counts","c":"The number of 1 bits in each value 0 to 15, used by code_check.","t":"byte","b":[0,1,1,2,1,2,2,3],"x":[6029,6041,6059]},{"a":6075,"t":"byte","b":[1,2,2,3,2,3,3,4]},{"a":6083,"l":"show_marines","c":"Prints the status update heading, then the eight marines' names (table at $18B2) each followed by \"-OK\" or \"-MISSING\" from the bits of $0204 (bit 0 first, for the name at the bottom of the table's order).","t":"code","b":[169,32],"m":"lda","o":"#$20","x":[4936,4988]},{"a":6085,"t":"code","b":[141,24,13],"m":"sta","oa":3352,"o":"print_ptr"},{"a":6088,"t":"code","b":[169,24],"m":"lda","o":"#$18"},{"a":6090,"t":"code","b":[141,25,13],"m":"sta","oa":3353,"o":"print_ptr_hi"},{"a":6093,"t":"code","b":[32,0,13],"m":"jsr","oa":3328,"o":"print"},{"a":6096,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":6098,"t":"code","b":[173,4,2],"m":"lda","oa":516,"o":"a_0204"},{"a":6101,"t":"code","b":[141,43,19],"m":"sta","oa":4907,"o":"status_bits"},{"a":6104,"l":"b_17D8","t":"code","b":[142,44,19],"m":"stx","oa":4908,"o":"status_count","x":[6157]},{"a":6107,"t":"code","b":[138],"m":"txa"},{"a":6108,"t":"code","b":[10],"m":"asl","o":"a"},{"a":6109,"t":"code","b":[168],"m":"tay"},{"a":6110,"t":"code","b":[185,178,24],"m":"lda","oa":6322,"o":"status_name_ptrs,y"},{"a":6113,"t":"code","b":[141,24,13],"m":"sta","oa":3352,"o":"print_ptr"},{"a":6116,"t":"code","b":[185,179,24],"m":"lda","oa":6323,"o":"status_name_ptrs_hi,y"},{"a":6119,"t":"code","b":[141,25,13],"m":"sta","oa":3353,"o":"print_ptr_hi"},{"a":6122,"t":"code","b":[32,0,13],"m":"jsr","oa":3328,"o":"print"},{"a":6125,"t":"code","b":[169,174],"m":"lda","o":"#$AE"},{"a":6127,"t":"code","b":[141,24,13],"m":"sta","oa":3352,"o":"print_ptr"},{"a":6130,"t":"code","b":[169,24],"m":"lda","o":"#$18"},{"a":6132,"t":"code","b":[141,25,13],"m":"sta","oa":3353,"o":"print_ptr_hi"},{"a":6135,"t":"code","b":[78,43,19],"m":"lsr","oa":4907,"o":"status_bits"},{"a":6138,"t":"code","b":[176,10],"m":"bcs","oa":6150,"o":"b_1806"},{"a":6140,"t":"code","b":[169,165],"m":"lda","o":"#$A5"},{"a":6142,"t":"code","b":[141,24,13],"m":"sta","oa":3352,"o":"print_ptr"},{"a":6145,"t":"code","b":[169,24],"m":"lda","o":"#$18"},{"a":6147,"t":"code","b":[141,25,13],"m":"sta","oa":3353,"o":"print_ptr_hi"},{"a":6150,"l":"b_1806","t":"code","b":[32,0,13],"m":"jsr","oa":3328,"o":"print","x":[6138]},{"a":6153,"t":"code","b":[174,44,19],"m":"ldx","oa":4908,"o":"status_count"},{"a":6156,"t":"code","b":[202],"m":"dex"},{"a":6157,"t":"code","b":[16,201],"m":"bpl","oa":6104,"o":"b_17D8"},{"a":6159,"t":"code","b":[169,29],"m":"lda","o":"#$1D"},{"a":6161,"t":"code","b":[141,24,13],"m":"sta","oa":3352,"o":"print_ptr"},{"a":6164,"t":"code","b":[169,24],"m":"lda","o":"#$18"},{"a":6166,"t":"code","b":[141,25,13],"m":"sta","oa":3353,"o":"print_ptr_hi"},{"a":6169,"t":"code","b":[32,0,13],"m":"jsr","oa":3328,"o":"print"},{"a":6172,"t":"code","b":[96],"m":"rts"},{"a":6173,"l":"text_status_end","c":"Moves the cursor to row 13, ending the status list.","t":"byte","b":[193,237,0]},{"a":6176,"l":"text_status_head","c":"\"COLONIAL MARINES STATUS UPDATE:\", after codes setting the column, row and colours.","t":"byte","b":[193,226,175,182,67,79,76,79]},{"a":6184,"t":"byte","b":[78,73,65,76,32,77,65,82]},{"a":6192,"t":"byte","b":[73,78,69,83,32,83,84,65]},{"a":6200,"t":"byte","b":[84,85,83,32,85,80,68,65]},{"a":6208,"t":"byte","b":[84,69,58,255,0]},{"a":6213,"l":"text_names","c":"The marines' names for the status list, each on a new line and padded to ten characters: HICKS, GORMAN, VASQUEZ, HUDSON, DRAKE, FROST, DIETRICH and CROWE.","t":"byte","b":[255,72,73,67,75,83,32,32]},{"a":6221,"t":"byte","b":[32,32,32,0,255,71,79,82]},{"a":6229,"t":"byte","b":[77,65,78,32,32,32,32,0]},{"a":6237,"t":"byte","b":[255,86,65,83,81,85,69,90]},{"a":6245,"t":"byte","b":[32,32,32,0,255,72,85,68]},{"a":6253,"t":"byte","b":[83,79,78,32,32,32,32,0]},{"a":6261,"t":"byte","b":[255,68,82,65,75,69,32,32]},{"a":6269,"t":"byte","b":[32,32,32,0,255,70,82,79]},{"a":6277,"t":"byte","b":[83,84,32,32,32,32,32,0]},{"a":6285,"t":"byte","b":[255,68,73,69,84,82,73,67]},{"a":6293,"t":"byte","b":[72,32,32,0,255,67,82,79]},{"a":6301,"t":"byte","b":[87,69,32,32,32,32,32,0]},{"a":6309,"l":"text_missing","c":"\"-MISSING\", printed after a marine whose bit in $0204 is clear.","t":"byte","b":[45,77,73,83,83,73,78,71]},{"a":6317,"t":"byte","b":[0]},{"a":6318,"l":"text_ok","c":"\"-OK\", printed after a marine whose bit in $0204 is set.","t":"byte","b":[45,79,75,0]},{"a":6322,"l":"status_name_ptrs","c":"The addresses of the names in text_names, CROWE first, read from the end, so HICKS goes with bit 0 of $0204 and CROWE with bit 7.","t":"byte","b":[153],"x":[6110]},{"a":6323,"l":"status_name_ptrs_hi","c":"The high bytes of the name addresses.","t":"byte","b":[24,141,24,129,24,117,24,105],"x":[6116]},{"a":6331,"t":"byte","b":[24,93,24,81,24,69,24]},{"a":6338,"l":"show_briefing","c":"Before each stage but the ending: blanks the screen, clears the bitmap and prints the stage's briefing text, chosen from the table at $1990 by stage, then turns the screen on.","t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205","x":[2255]},{"a":6341,"t":"code","b":[201,8],"m":"cmp","o":"#$08"},{"a":6343,"t":"code","b":[208,1],"m":"bne","oa":6346,"o":"b_18CA"},{"a":6345,"t":"code","b":[96],"m":"rts"},{"a":6346,"l":"b_18CA","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[6343]},{"a":6348,"t":"code","b":[141,3,2],"m":"sta","oa":515,"o":"a_0203"},{"a":6351,"t":"code","b":[32,2,60],"m":"jsr","oa":15362,"o":"briefing_entry"},{"a":6354,"l":"j_18D2","t":"code","b":[32,143,18],"m":"jsr","oa":4751,"o":"screen_off","x":[15375]},{"a":6357,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":6359,"t":"code","b":[32,149,10],"m":"jsr","oa":2709,"o":"wait_frames"},{"a":6362,"t":"code","b":[32,38,35],"m":"jsr","oa":8998,"o":"clear_bitmap_6000"},{"a":6365,"t":"code","b":[169,187],"m":"lda","o":"#$BB"},{"a":6367,"t":"code","b":[168],"m":"tay"},{"a":6368,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":6370,"t":"code","b":[141,66,35],"m":"sta","oa":9026,"o":"fill_ptr"},{"a":6373,"t":"code","b":[169,92],"m":"lda","o":"#$5C"},{"a":6375,"t":"code","b":[141,67,35],"m":"sta","oa":9027,"o":"fill_ptr_hi"},{"a":6378,"t":"code","b":[169,232],"m":"lda","o":"#$E8"},{"a":6380,"t":"code","b":[141,80,35],"m":"sta","oa":9040,"o":"fill_end_lo"},{"a":6383,"t":"code","b":[169,95],"m":"lda","o":"#$5F"},{"a":6385,"t":"code","b":[141,87,35],"m":"sta","oa":9047,"o":"fill_end_hi"},{"a":6388,"t":"code","b":[32,65,35],"m":"jsr","oa":9025,"o":"fill_memory"},{"a":6391,"t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205"},{"a":6394,"t":"code","b":[10],"m":"asl","o":"a"},{"a":6395,"t":"code","b":[170],"m":"tax"},{"a":6396,"t":"code","b":[189,144,25],"m":"lda","oa":6544,"o":"briefing_ptrs,x"},{"a":6399,"t":"code","b":[141,24,13],"m":"sta","oa":3352,"o":"print_ptr"},{"a":6402,"t":"code","b":[189,145,25],"m":"lda","oa":6545,"o":"briefing_ptrs_hi,x"},{"a":6405,"t":"code","b":[141,25,13],"m":"sta","oa":3353,"o":"print_ptr_hi"},{"a":6408,"t":"code","b":[32,0,13],"m":"jsr","oa":3328,"o":"print"},{"a":6411,"t":"code","b":[32,140,18],"m":"jsr","oa":4748,"o":"screen_on"},{"a":6414,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":6416,"t":"code","b":[32,149,10],"m":"jsr","oa":2709,"o":"wait_frames"},{"a":6419,"t":"code","b":[96],"m":"rts"},{"a":6420,"l":"wait_return_screen","c":"On every stage but 0 and 8, prints \"(RETURN)\" and waits for RETURN, a frame at a time, for at most 1,800 frames (counting $0493/$0494 up from $F8F8 to zero, about 36 seconds on a PAL machine). Except on stage 1 the music's volume falls by one every eighth frame. Then stops any sound effect, except on stage 1.","t":"code","b":[169,248],"m":"lda","o":"#$F8","x":[2188]},{"a":6422,"t":"code","b":[141,147,4],"m":"sta","oa":1171,"o":"a_0493"},{"a":6425,"t":"code","b":[141,148,4],"m":"sta","oa":1172,"o":"a_0494"},{"a":6428,"t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205"},{"a":6431,"t":"code","b":[240,87],"m":"beq","oa":6520,"o":"b_1978"},{"a":6433,"t":"code","b":[201,8],"m":"cmp","o":"#$08"},{"a":6435,"t":"code","b":[240,83],"m":"beq","oa":6520,"o":"b_1978"},{"a":6437,"t":"code","b":[169,131],"m":"lda","o":"#$83"},{"a":6439,"t":"code","b":[141,24,13],"m":"sta","oa":3352,"o":"print_ptr"},{"a":6442,"t":"code","b":[169,25],"m":"lda","o":"#$19"},{"a":6444,"t":"code","b":[141,25,13],"m":"sta","oa":3353,"o":"print_ptr_hi"},{"a":6447,"t":"code","b":[32,0,13],"m":"jsr","oa":3328,"o":"print"},{"a":6450,"l":"b_1932","t":"code","b":[173,17,208],"m":"lda","o":"vic_control1","x":[6453,6513,6518]},{"a":6453,"t":"code","b":[48,251],"m":"bmi","oa":6450,"o":"b_1932"},{"a":6455,"l":"b_1937","t":"code","b":[173,17,208],"m":"lda","o":"vic_control1","x":[6458]},{"a":6458,"t":"code","b":[16,251],"m":"bpl","oa":6455,"o":"b_1937"},{"a":6460,"t":"code","b":[32,150,11],"m":"jsr","oa":2966,"o":"read_keys"},{"a":6463,"t":"code","b":[173,33,2],"m":"lda","oa":545,"o":"a_0221"},{"a":6466,"t":"code","b":[201,13],"m":"cmp","o":"#$0D"},{"a":6468,"t":"code","b":[240,50],"m":"beq","oa":6520,"o":"b_1978"},{"a":6470,"t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205"},{"a":6473,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":6475,"t":"code","b":[240,33],"m":"beq","oa":6510,"o":"b_196E"},{"a":6477,"t":"code","b":[238,8,2],"m":"inc","oa":520,"o":"a_0208"},{"a":6480,"t":"code","b":[173,8,2],"m":"lda","oa":520,"o":"a_0208"},{"a":6483,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":6485,"t":"code","b":[208,23],"m":"bne","oa":6510,"o":"b_196E"},{"a":6487,"t":"code","b":[173,120,5],"m":"lda","oa":1400,"o":"a_0578"},{"a":6490,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":6492,"t":"code","b":[56],"m":"sec"},{"a":6493,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":6495,"t":"code","b":[16,2],"m":"bpl","oa":6499,"o":"b_1963"},{"a":6497,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":6499,"l":"b_1963","t":"code","b":[77,120,5],"m":"eor","oa":1400,"o":"a_0578","x":[6495]},{"a":6502,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":6504,"t":"code","b":[77,120,5],"m":"eor","oa":1400,"o":"a_0578"},{"a":6507,"t":"code","b":[141,120,5],"m":"sta","oa":1400,"o":"a_0578"},{"a":6510,"l":"b_196E","t":"code","b":[238,147,4],"m":"inc","oa":1171,"o":"a_0493","x":[6475,6485]},{"a":6513,"t":"code","b":[208,191],"m":"bne","oa":6450,"o":"b_1932"},{"a":6515,"t":"code","b":[238,148,4],"m":"inc","oa":1172,"o":"a_0494"},{"a":6518,"t":"code","b":[208,186],"m":"bne","oa":6450,"o":"b_1932"},{"a":6520,"l":"b_1978","t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205","x":[6431,6435,6468]},{"a":6523,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":6525,"t":"code","b":[240,3],"m":"beq","oa":6530,"o":"r_1982"},{"a":6527,"t":"code","b":[32,229,42],"m":"jsr","oa":10981,"o":"silence_effects"},{"a":6530,"l":"r_1982","t":"code","b":[96],"m":"rts","x":[6525]},{"a":6531,"l":"text_return","c":"\"(RETURN)\" at the bottom right, after codes setting the colours, row and column.","t":"byte","b":[175,187,222,247,40,82,69,84]},{"a":6539,"t":"byte","b":[85,82,78,41]},{"a":6543,"l":"briefing_ptrs_pad","c":"The text pointer's operand value in the snapshot, part of the briefing table's first word.","t":"byte","b":[0]},{"a":6544,"l":"briefing_ptrs","c":"The address of each stage's briefing text, by stage 0 to 7: $19A0 for stages 0 and 1, then $1AE0, $1B8D, $1CE4, $1E44, $1EE3 and $2033.","t":"byte","b":[160],"x":[6396]},{"a":6545,"l":"briefing_ptrs_hi","c":"The high bytes of the briefing addresses.","t":"byte","b":[25,160,25,224,26,141,27,228],"x":[6402]},{"a":6553,"t":"byte","b":[28,68,30,227,30,51,32]},{"a":6560,"l":"brief_intro","c":"Before stage 1: \"SOMETIME IN THE FUTURE - SPACE. SILENT AND ENDLESS. THE STARS SHINE LIKE THE LOVE OF GOD...\" about the Narcissus and Ripley's fifty-seven years in hypersleep.","t":"byte","b":[175,187,193,226,83,79,77,69]},{"a":6568,"t":"byte","b":[84,73,77,69,32,73,78,32]},{"a":6576,"t":"byte","b":[84,72,69,32,70,85,84,85]},{"a":6584,"t":"byte","b":[82,69,32,45,32,83,80,65]},{"a":6592,"t":"byte","b":[67,69,255,255,32,32,83,73]},{"a":6600,"t":"byte","b":[76,69,78,84,32,65,78,68]},{"a":6608,"t":"byte","b":[32,69,78,68,76,69,83,83]},{"a":6616,"t":"byte","b":[46,32,32,84,72,69,32,83]},{"a":6624,"t":"byte","b":[84,65,82,83,32,83,72,73]},{"a":6632,"t":"byte","b":[78,69,255,76,73,75,69,32]},{"a":6640,"t":"byte","b":[84,72,69,32,76,79,86,69]},{"a":6648,"t":"byte","b":[32,79,70,32,71,79,68,46]},{"a":6656,"t":"byte","b":[32,32,65,71,65,73,78,83]},{"a":6664,"t":"byte","b":[84,32,84,72,69,77,255,68]},{"a":6672,"t":"byte","b":[82,73,70,84,83,32,65,32]},{"a":6680,"t":"byte","b":[84,73,78,89,32,67,72,73]},{"a":6688,"t":"byte","b":[80,32,79,70,32,84,69,67]},{"a":6696,"t":"byte","b":[72,78,79,76,79,71,89,46]},{"a":6704,"t":"byte","b":[32,32,73,84,255,73,83,32]},{"a":6712,"t":"byte","b":[84,72,69,32,78,65,82,67]},{"a":6720,"t":"byte","b":[73,83,83,85,83,44,32,69]},{"a":6728,"t":"byte","b":[83,67,65,80,69,32,80,79]},{"a":6736,"t":"byte","b":[68,32,79,70,32,84,72,69]},{"a":6744,"t":"byte","b":[255,73,76,76,45,70,65,84]},{"a":6752,"t":"byte","b":[69,68,32,83,84,65,82,32]},{"a":6760,"t":"byte","b":[70,82,69,73,71,72,84,69]},{"a":6768,"t":"byte","b":[82,32,78,79,83,84,82,79]},{"a":6776,"t":"byte","b":[77,79,46,255,73,78,83,73]},{"a":6784,"t":"byte","b":[68,69,44,32,83,79,76,69]},{"a":6792,"t":"byte","b":[32,83,85,82,86,73,86,79]},{"a":6800,"t":"byte","b":[82,32,87,65,82,82,65,78]},{"a":6808,"t":"byte","b":[84,32,79,70,70,73,67,69]},{"a":6816,"t":"byte","b":[82,255,82,73,80,76,69,89]},{"a":6824,"t":"byte","b":[32,72,65,83,32,66,69,69]},{"a":6832,"t":"byte","b":[78,32,68,82,73,70,84,73]},{"a":6840,"t":"byte","b":[78,71,32,73,78,32,72,89]},{"a":6848,"t":"byte","b":[80,69,82,83,76,69,69,80]},{"a":6856,"t":"byte","b":[255,70,79,82,32,70,73,70]},{"a":6864,"t":"byte","b":[84,89,45,83,69,86,69,78]},{"a":6872,"t":"byte","b":[32,89,69,65,82,83,46,0]},{"a":6880,"l":"brief_drop","c":"Before stage 2: Ripley asks Gorman how many drops this is for him; \"THIRTY-EIGHT...SIMULATED\", and two combat drops, including this one.","t":"byte","b":[175,187,193,226,82,73,80,76]},{"a":6888,"t":"byte","b":[69,89,58,32,72,79,87,32]},{"a":6896,"t":"byte","b":[77,65,78,89,32,68,82,79]},{"a":6904,"t":"byte","b":[80,83,32,73,83,32,84,72]},{"a":6912,"t":"byte","b":[73,83,32,70,79,82,255,32]},{"a":6920,"t":"byte","b":[32,89,79,85,44,32,76,73]},{"a":6928,"t":"byte","b":[69,85,84,69,78,65,78,84]},{"a":6936,"t":"byte","b":[63,255,255,71,79,82,77,65]},{"a":6944,"t":"byte","b":[78,58,32,84,72,73,82,84]},{"a":6952,"t":"byte","b":[89,45,69,73,71,72,84,46]},{"a":6960,"t":"byte","b":[46,46,83,73,77,85,76,65]},{"a":6968,"t":"byte","b":[84,69,68,46,255,255,86,65]},{"a":6976,"t":"byte","b":[83,81,85,69,90,58,32,72]},{"a":6984,"t":"byte","b":[79,87,32,77,65,78,89,32]},{"a":6992,"t":"byte","b":[67,79,77,66,65,84,32,68]},{"a":7000,"t":"byte","b":[82,79,80,83,63,255,255,71]},{"a":7008,"t":"byte","b":[79,82,77,65,78,58,32,87]},{"a":7016,"t":"byte","b":[69,76,76,44,32,85,72,44]},{"a":7024,"t":"byte","b":[32,84,87,79,46,46,46,73]},{"a":7032,"t":"byte","b":[78,67,76,85,68,73,78,71]},{"a":7040,"t":"byte","b":[255,32,32,84,72,73,83,32]},{"a":7048,"t":"byte","b":[79,78,69,46,0]},{"a":7053,"l":"brief_ambush","c":"Before stage 3: the marines under fire in the hive; Gorman calls the roll, Hudson says the sergeant is gone, and Ripley tells Gorman to do something.","t":"byte","b":[175,187,193,226,71,79,82,77]},{"a":7061,"t":"byte","b":[65,78,58,32,65,80,79,78]},{"a":7069,"t":"byte","b":[69,44,32,87,72,65,84,39]},{"a":7077,"t":"byte","b":[83,32,71,79,73,78,71,32]},{"a":7085,"t":"byte","b":[79,78,33,63,32,32,32,255]},{"a":7093,"t":"byte","b":[32,32,32,32,32,32,32,32]},{"a":7101,"t":"byte","b":[32,32,32,32,255,86,65,83]},{"a":7109,"t":"byte","b":[81,85,69,90,58,32,76,69]},{"a":7117,"t":"byte","b":[84,39,83,32,82,79,67,75]},{"a":7125,"t":"byte","b":[33,33,255,255,71,79,82,77]},{"a":7133,"t":"byte","b":[65,78,58,32,87,72,79,39]},{"a":7141,"t":"byte","b":[83,32,70,73,82,73,78,71]},{"a":7149,"t":"byte","b":[63,32,73,32,79,82,68,69]},{"a":7157,"t":"byte","b":[82,69,68,32,65,255,32,32]},{"a":7165,"t":"byte","b":[72,79,76,68,32,70,73,82]},{"a":7173,"t":"byte","b":[69,33,255,255,82,73,80,76]},{"a":7181,"t":"byte","b":[69,89,58,32,71,69,84,32]},{"a":7189,"t":"byte","b":[84,72,69,77,32,79,85,84]},{"a":7197,"t":"byte","b":[32,79,70,32,84,72,69,82]},{"a":7205,"t":"byte","b":[69,33,255,32,32,68,79,32]},{"a":7213,"t":"byte","b":[73,84,32,78,79,87,33,33]},{"a":7221,"t":"byte","b":[255,255,71,79,82,77,65,78]},{"a":7229,"t":"byte","b":[58,32,68,73,69,84,82,73]},{"a":7237,"t":"byte","b":[67,72,63,32,67,82,79,87]},{"a":7245,"t":"byte","b":[69,63,255,32,32,83,79,85]},{"a":7253,"t":"byte","b":[78,68,32,79,70,70,33,32]},{"a":7261,"t":"byte","b":[70,82,79,83,84,63,32,65]},{"a":7269,"t":"byte","b":[80,79,78,69,63,255,255,72]},{"a":7277,"t":"byte","b":[85,68,83,79,78,58,32,84]},{"a":7285,"t":"byte","b":[72,69,32,83,65,82,71,69]},{"a":7293,"t":"byte","b":[32,73,83,32,71,79,78,69]},{"a":7301,"t":"byte","b":[44,32,77,65,78,33,32,76]},{"a":7309,"t":"byte","b":[69,84,39,83,255,32,32,71]},{"a":7317,"t":"byte","b":[69,84,32,84,72,69,32,35]},{"a":7325,"t":"byte","b":[36,37,38,32,79,85,84,32]},{"a":7333,"t":"byte","b":[79,70,32,72,69,82,69,33]},{"a":7341,"t":"byte","b":[33,255,255,82,73,80,76,69]},{"a":7349,"t":"byte","b":[89,58,32,84,72,69,89,39]},{"a":7357,"t":"byte","b":[82,69,32,67,85,84,32,79]},{"a":7365,"t":"byte","b":[70,70,33,32,71,79,82,77]},{"a":7373,"t":"byte","b":[65,78,46,46,46,255,32,32]},{"a":7381,"t":"byte","b":[68,79,32,83,79,77,69,84]},{"a":7389,"t":"byte","b":[72,73,78,71,33,33,0]},{"a":7396,"l":"brief_power","c":"Before stage 4: \"THEY CUT THE POWER\", Hudson's trackers count down and Ripley says the movement is inside the room.","t":"byte","b":[175,187,193,226,72,73,67,75]},{"a":7404,"t":"byte","b":[83,58,32,84,72,69,89,32]},{"a":7412,"t":"byte","b":[67,85,84,32,84,72,69,32]},{"a":7420,"t":"byte","b":[80,79,87,69,82,46,255,255]},{"a":7428,"t":"byte","b":[72,85,68,83,79,78,58,32]},{"a":7436,"t":"byte","b":[87,72,65,84,32,68,79,32]},{"a":7444,"t":"byte","b":[89,79,85,32,77,69,65,78]},{"a":7452,"t":"byte","b":[32,34,84,72,69,89,34,32]},{"a":7460,"t":"byte","b":[67,85,84,255,32,32,84,72]},{"a":7468,"t":"byte","b":[69,32,80,79,87,69,82,63]},{"a":7476,"t":"byte","b":[32,72,79,87,32,67,79,85]},{"a":7484,"t":"byte","b":[76,68,32,34,84,72,69,89]},{"a":7492,"t":"byte","b":[34,32,67,85,84,32,84,72]},{"a":7500,"t":"byte","b":[69,255,32,32,80,79,87,69]},{"a":7508,"t":"byte","b":[82,63,32,84,72,69,89,39]},{"a":7516,"t":"byte","b":[82,69,32,65,78,73,77,65]},{"a":7524,"t":"byte","b":[76,83,33,255,255,71,79,82]},{"a":7532,"t":"byte","b":[77,65,78,58,32,71,69,84]},{"a":7540,"t":"byte","b":[32,83,79,77,69,32,84,82]},{"a":7548,"t":"byte","b":[65,67,75,69,82,83,32,71]},{"a":7556,"t":"byte","b":[79,73,78,71,46,255,255,72]},{"a":7564,"t":"byte","b":[85,68,83,79,78,58,32,84]},{"a":7572,"t":"byte","b":[72,69,89,39,82,69,32,73]},{"a":7580,"t":"byte","b":[78,83,73,68,69,32,84,72]},{"a":7588,"t":"byte","b":[69,255,32,32,80,69,82,73]},{"a":7596,"t":"byte","b":[77,69,84,69,82,46,255,255]},{"a":7604,"t":"byte","b":[72,73,67,75,83,58,32,73]},{"a":7612,"t":"byte","b":[84,39,83,32,71,65,77,69]},{"a":7620,"t":"byte","b":[32,84,73,77,69,46,255,255]},{"a":7628,"t":"byte","b":[72,85,68,83,79,78,58,32]},{"a":7636,"t":"byte","b":[84,72,69,82,69,39,83,32]},{"a":7644,"t":"byte","b":[77,79,86,69,77,69,78,84]},{"a":7652,"t":"byte","b":[32,65,76,76,32,65,82,79]},{"a":7660,"t":"byte","b":[85,78,68,46,255,32,32,84]},{"a":7668,"t":"byte","b":[69,78,32,77,69,84,69,82]},{"a":7676,"t":"byte","b":[83,46,46,46,78,73,78,69]},{"a":7684,"t":"byte","b":[46,46,46,69,73,71,72,84]},{"a":7692,"t":"byte","b":[46,46,46,255,255,82,73,80]},{"a":7700,"t":"byte","b":[76,69,89,58,32,84,72,65]},{"a":7708,"t":"byte","b":[84,32,67,65,78,39,84,32]},{"a":7716,"t":"byte","b":[66,69,33,32,84,72,65,84]},{"a":7724,"t":"byte","b":[39,83,32,73,78,83,73,68]},{"a":7732,"t":"byte","b":[69,255,32,32,84,72,69,32]},{"a":7740,"t":"byte","b":[82,79,79,77,46,46,46,0]},{"a":7748,"l":"brief_duct","c":"Before stage 5: Ripley shouts at Burke to open the door, and Newt leads her into the air duct to the landing field.","t":"byte","b":[175,187,193,226,82,73,80,76]},{"a":7756,"t":"byte","b":[69,89,58,32,66,85,82,75]},{"a":7764,"t":"byte","b":[69,33,32,79,80,69,78,32]},{"a":7772,"t":"byte","b":[84,72,73,83,32,68,79,79]},{"a":7780,"t":"byte","b":[82,33,255,255,78,69,87,84]},{"a":7788,"t":"byte","b":[58,32,82,73,80,76,69,89]},{"a":7796,"t":"byte","b":[44,32,67,79,77,69,32,79]},{"a":7804,"t":"byte","b":[78,33,32,84,72,73,83,32]},{"a":7812,"t":"byte","b":[87,65,89,33,255,255,82,73]},{"a":7820,"t":"byte","b":[80,76,69,89,58,32,87,73]},{"a":7828,"t":"byte","b":[76,76,32,84,72,65,84,32]},{"a":7836,"t":"byte","b":[65,73,82,32,68,85,67,84]},{"a":7844,"t":"byte","b":[32,84,65,75,69,32,85,83]},{"a":7852,"t":"byte","b":[255,32,32,32,79,85,84,32]},{"a":7860,"t":"byte","b":[84,79,32,84,72,69,32,76]},{"a":7868,"t":"byte","b":[65,78,68,73,78,71,32,70]},{"a":7876,"t":"byte","b":[73,69,76,68,63,255,255,78]},{"a":7884,"t":"byte","b":[69,87,84,58,32,83,85,82]},{"a":7892,"t":"byte","b":[69,46,46,46,70,79,76,76]},{"a":7900,"t":"byte","b":[79,87,32,77,69,33,0]},{"a":7907,"l":"brief_rescue","c":"Before stage 6: Bishop says seventeen minutes, and Ripley goes back for Newt.","t":"byte","b":[175,187,193,226,82,73,80,76]},{"a":7915,"t":"byte","b":[69,89,58,32,66,73,83,72]},{"a":7923,"t":"byte","b":[79,80,46,46,46,72,79,87]},{"a":7931,"t":"byte","b":[32,77,85,67,72,32,84,73]},{"a":7939,"t":"byte","b":[77,69,255,32,32,68,79,32]},{"a":7947,"t":"byte","b":[87,69,32,72,65,86,69,63]},{"a":7955,"t":"byte","b":[255,255,66,73,83,72,79,80]},{"a":7963,"t":"byte","b":[58,32,83,69,86,69,78,84]},{"a":7971,"t":"byte","b":[69,69,78,32,77,73,78,85]},{"a":7979,"t":"byte","b":[84,69,83,46,255,255,82,73]},{"a":7987,"t":"byte","b":[80,76,69,89,58,32,87,69]},{"a":7995,"t":"byte","b":[39,82,69,32,78,79,84,32]},{"a":8003,"t":"byte","b":[76,69,65,86,73,78,71,46]},{"a":8011,"t":"byte","b":[255,255,66,73,83,72,79,80]},{"a":8019,"t":"byte","b":[58,32,87,69,39,82,69,32]},{"a":8027,"t":"byte","b":[78,79,84,63,63,255,255,82]},{"a":8035,"t":"byte","b":[73,80,76,69,89,58,32,83]},{"a":8043,"t":"byte","b":[72,69,39,83,32,65,76,73]},{"a":8051,"t":"byte","b":[86,69,33,32,84,72,69,89]},{"a":8059,"t":"byte","b":[32,66,82,79,85,71,72,84]},{"a":8067,"t":"byte","b":[32,72,69,82,255,32,32,72]},{"a":8075,"t":"byte","b":[69,82,69,32,65,78,68,32]},{"a":8083,"t":"byte","b":[89,79,85,32,75,78,79,87]},{"a":8091,"t":"byte","b":[32,73,84,46,32,32,73,84]},{"a":8099,"t":"byte","b":[39,83,32,78,79,84,32,84]},{"a":8107,"t":"byte","b":[79,79,255,32,32,76,65,84]},{"a":8115,"t":"byte","b":[69,46,255,255,66,73,83,72]},{"a":8123,"t":"byte","b":[79,80,58,32,73,78,32,83]},{"a":8131,"t":"byte","b":[69,86,69,78,84,69,69,78]},{"a":8139,"t":"byte","b":[32,77,73,78,85,84,69,83]},{"a":8147,"t":"byte","b":[32,84,72,73,83,255,32,32]},{"a":8155,"t":"byte","b":[80,76,65,67,69,32,87,73]},{"a":8163,"t":"byte","b":[76,76,32,66,69,32,65,32]},{"a":8171,"t":"byte","b":[67,76,79,85,68,32,79,70]},{"a":8179,"t":"byte","b":[32,86,65,80,79,82,32,84]},{"a":8187,"t":"byte","b":[72,69,255,32,32,83,73,90]},{"a":8195,"t":"byte","b":[69,32,79,70,32,78,69,66]},{"a":8203,"t":"byte","b":[82,65,83,75,65,46,255,255]},{"a":8211,"t":"byte","b":[82,73,80,76,69,89,58,32]},{"a":8219,"t":"byte","b":[68,79,78,39,84,32,76,69]},{"a":8227,"t":"byte","b":[65,86,69,32,87,73,84,72]},{"a":8235,"t":"byte","b":[79,85,84,32,77,69,33,0]},{"a":8243,"l":"brief_bishop","c":"Before stage 7: Bishop's landing, the Queen's tail through his chest, and Newt crawling into a service channel under the deck.","t":"byte","b":[175,187,193,226,66,73,83,72]},{"a":8251,"t":"byte","b":[79,80,58,32,83,79,82,82]},{"a":8259,"t":"byte","b":[89,32,73,70,32,73,32,71]},{"a":8267,"t":"byte","b":[65,86,69,32,89,79,85,32]},{"a":8275,"t":"byte","b":[65,32,83,67,65,82,69,46]},{"a":8283,"t":"byte","b":[255,32,32,73,32,72,65,68]},{"a":8291,"t":"byte","b":[32,84,79,32,67,73,82,67]},{"a":8299,"t":"byte","b":[76,69,32,65,78,68,32,72]},{"a":8307,"t":"byte","b":[79,80,69,32,84,72,73,78]},{"a":8315,"t":"byte","b":[71,83,255,32,32,68,73,68]},{"a":8323,"t":"byte","b":[78,39,84,32,71,69,84,32]},{"a":8331,"t":"byte","b":[84,79,79,32,82,79,85,71]},{"a":8339,"t":"byte","b":[72,32,84,79,32,84,65,75]},{"a":8347,"t":"byte","b":[69,255,32,32,89,79,85,32]},{"a":8355,"t":"byte","b":[79,70,70,46,255,255,82,73]},{"a":8363,"t":"byte","b":[80,76,69,89,58,32,89,79]},{"a":8371,"t":"byte","b":[85,32,68,73,68,32,79,75]},{"a":8379,"t":"byte","b":[65,89,44,32,66,73,83,72]},{"a":8387,"t":"byte","b":[79,80,46,255,255,66,73,83]},{"a":8395,"t":"byte","b":[72,79,80,58,32,73,32,68]},{"a":8403,"t":"byte","b":[73,68,63,32,32,87,69,76]},{"a":8411,"t":"byte","b":[76,44,32,84,72,65,78,75]},{"a":8419,"t":"byte","b":[83,44,32,73,46,46,46,255]},{"a":8427,"t":"byte","b":[255,72,69,32,78,79,84,73]},{"a":8435,"t":"byte","b":[67,69,83,32,65,32,84,73]},{"a":8443,"t":"byte","b":[78,89,32,73,78,78,79,67]},{"a":8451,"t":"byte","b":[85,79,85,83,32,68,82,79]},{"a":8459,"t":"byte","b":[80,32,79,70,255,76,73,81]},{"a":8467,"t":"byte","b":[85,73,68,32,83,80,76,65]},{"a":8475,"t":"byte","b":[83,72,32,79,78,84,79,32]},{"a":8483,"t":"byte","b":[84,72,69,32,82,65,77,80]},{"a":8491,"t":"byte","b":[46,32,32,83,83,83,83,83]},{"a":8499,"t":"byte","b":[46,255,65,67,73,68,33,32]},{"a":8507,"t":"byte","b":[84,72,69,32,81,85,69,69]},{"a":8515,"t":"byte","b":[78,39,83,32,84,65,73,76]},{"a":8523,"t":"byte","b":[32,66,85,82,83,84,83,32]},{"a":8531,"t":"byte","b":[70,82,79,77,255,72,73,83]},{"a":8539,"t":"byte","b":[32,67,72,69,83,84,44,32]},{"a":8547,"t":"byte","b":[83,80,82,65,89,73,78,71]},{"a":8555,"t":"byte","b":[32,82,73,80,76,69,89,32]},{"a":8563,"t":"byte","b":[87,73,84,72,255,77,73,76]},{"a":8571,"t":"byte","b":[75,45,76,73,75,69,32,65]},{"a":8579,"t":"byte","b":[78,68,82,79,73,68,32,66]},{"a":8587,"t":"byte","b":[76,79,79,68,46,255,83,69]},{"a":8595,"t":"byte","b":[73,90,73,78,71,32,66,73]},{"a":8603,"t":"byte","b":[83,72,79,80,32,73,78,32]},{"a":8611,"t":"byte","b":[84,87,79,32,71,82,69,65]},{"a":8619,"t":"byte","b":[84,32,72,65,78,68,83,44]},{"a":8627,"t":"byte","b":[255,73,84,32,82,73,80,83]},{"a":8635,"t":"byte","b":[32,72,73,77,32,65,80,65]},{"a":8643,"t":"byte","b":[82,84,46,255,255,84,72,69]},{"a":8651,"t":"byte","b":[32,81,85,69,69,78,32,84]},{"a":8659,"t":"byte","b":[85,82,78,83,32,73,84,83]},{"a":8667,"t":"byte","b":[32,65,84,84,69,78,84,73]},{"a":8675,"t":"byte","b":[79,78,32,84,79,32,78,69]},{"a":8683,"t":"byte","b":[87,84,255,65,83,32,84,72]},{"a":8691,"t":"byte","b":[69,32,76,73,84,84,76,69]},{"a":8699,"t":"byte","b":[32,71,73,82,76,32,67,82]},{"a":8707,"t":"byte","b":[65,87,76,83,32,73,78,84]},{"a":8715,"t":"byte","b":[79,32,65,255,83,69,82,86]},{"a":8723,"t":"byte","b":[73,67,69,32,67,72,65,78]},{"a":8731,"t":"byte","b":[78,69,76,32,85,78,68,69]},{"a":8739,"t":"byte","b":[82,32,84,72,69,32,68,69]},{"a":8747,"t":"byte","b":[67,75,46,0]},{"a":8751,"l":"text_screen_setup","c":"Sets up the text screen the briefings and the status update use: stops the stage's sprites ($045A), points the raster call at $149F, sets the VIC-II registers from the list after its call, starts the briefing tune (start_music with the tune list at $28DF), turns on the raster interrupt, sets text to the bitmap at $6000 with its screen at $5C00, selects VIC-II bank 1 ($4000), clears $1326-$132C, clears the screen and colour and, if $0203 is 0, prints the list at $14C9 and waits for ever.","t":"code","b":[120],"m":"sei","x":[15359,15367]},{"a":8752,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":8754,"t":"code","b":[141,90,4],"m":"sta","oa":1114,"o":"a_045A"},{"a":8757,"t":"code","b":[169,159],"m":"lda","o":"#$9F"},{"a":8759,"t":"code","b":[141,75,9],"m":"sta","oa":2379,"o":"irq_raster_call"},{"a":8762,"t":"code","b":[169,20],"m":"lda","o":"#$14"},{"a":8764,"t":"code","b":[141,76,9],"m":"sta","oa":2380,"o":"irq_raster_call_hi"},{"a":8767,"t":"code","b":[32,71,18],"m":"jsr","oa":4679,"o":"vic_inline_writes"},{"a":8770,"l":"text_vic_list","c":"vic_inline_writes's list for the text screen: sprites off and unexpanded, sprite colours, bitmap mode ($D011 = $2B, raster line $FA), multicolour ($D016 = $08), screen and bitmap at $5C00 and $6000 ($D018 = $79), the raster interrupt on, black border and blue background; $FF ends it.","t":"byte","b":[21,0,28,0,29,0,39,1]},{"a":8778,"t":"byte","b":[40,0,23,0,17,43,18,250]},{"a":8786,"t":"byte","b":[22,8,24,121,25,255,26,129]},{"a":8794,"t":"byte","b":[32,0,33,6,255]},{"a":8799,"c":"Starts the briefing tune (start_music, its header at $28DF inline), turns on the raster interrupt and waits a frame, then sets text to the bitmap at $6000 and screen $5C00 in VIC-II bank 1, clears the status bytes and the screen; with no marines left shows the memorandum and loops for ever at $2299.","t":"code","b":[32,55,36],"m":"jsr","oa":9271,"o":"start_music"},{"a":8802,"t":"byte","b":[223],"note":"not a legal opcode"},{"a":8803,"t":"code","b":[40],"m":"plp"},{"a":8804,"t":"code","b":[88],"m":"cli"},{"a":8805,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":8807,"t":"code","b":[141,26,208],"m":"sta","o":"vic_irq_enable"},{"a":8810,"t":"code","b":[32,149,10],"m":"jsr","oa":2709,"o":"wait_frames"},{"a":8813,"t":"code","b":[160,92],"m":"ldy","o":"#$5C"},{"a":8815,"t":"code","b":[162,96],"m":"ldx","o":"#$60"},{"a":8817,"t":"code","b":[32,37,12],"m":"jsr","oa":3109,"o":"text_origin"},{"a":8820,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":8822,"t":"code","b":[32,23,9],"m":"jsr","oa":2327,"o":"set_vic_bank"},{"a":8825,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":8827,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8829,"l":"b_227D","t":"code","b":[157,38,19],"m":"sta","oa":4902,"o":"code_state,x","x":[8833]},{"a":8832,"t":"code","b":[202],"m":"dex"},{"a":8833,"t":"code","b":[16,250],"m":"bpl","oa":8829,"o":"b_227D"},{"a":8835,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8837,"t":"code","b":[141,35,2],"m":"sta","oa":547,"o":"a_0223"},{"a":8840,"t":"code","b":[32,240,34],"m":"jsr","oa":8944,"o":"clear_screen_5c00"},{"a":8843,"t":"code","b":[32,38,35],"m":"jsr","oa":8998,"o":"clear_bitmap_6000"},{"a":8846,"t":"code","b":[173,3,2],"m":"lda","oa":515,"o":"a_0203"},{"a":8849,"t":"code","b":[208,9],"m":"bne","oa":8860,"o":"text_colours"},{"a":8851,"t":"code","b":[32,163,20],"m":"jsr","oa":5283,"o":"game_over"},{"a":8854,"t":"code","b":[32,140,18],"m":"jsr","oa":4748,"o":"screen_on"},{"a":8857,"l":"j_2299","t":"code","b":[76,153,34],"m":"jmp","oa":8857,"o":"j_2299","x":[8857]},{"a":8860,"l":"text_colours","c":"With the stage not lost ($0203 non-zero): fills the screen colours $5C00-$5FE7 with $66 and returns.","t":"code","b":[169,102],"m":"lda","o":"#$66","x":[8849]},{"a":8862,"t":"code","b":[168],"m":"tay"},{"a":8863,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8865,"t":"code","b":[141,66,35],"m":"sta","oa":9026,"o":"fill_ptr"},{"a":8868,"t":"code","b":[169,92],"m":"lda","o":"#$5C"},{"a":8870,"t":"code","b":[141,67,35],"m":"sta","oa":9027,"o":"fill_ptr_hi"},{"a":8873,"t":"code","b":[169,232],"m":"lda","o":"#$E8"},{"a":8875,"t":"code","b":[141,80,35],"m":"sta","oa":9040,"o":"fill_end_lo"},{"a":8878,"t":"code","b":[169,95],"m":"lda","o":"#$5F"},{"a":8880,"t":"code","b":[141,87,35],"m":"sta","oa":9047,"o":"fill_end_hi"},{"a":8883,"t":"code","b":[32,65,35],"m":"jsr","oa":9025,"o":"fill_memory"},{"a":8886,"t":"code","b":[96],"m":"rts"},{"a":8887,"l":"bitmap_off","c":"Clears bits 4 and 7 of $D011 and its copy: blank screen. Called by the stages, such as level 3 at $803B.","t":"code","b":[173,17,208],"m":"lda","o":"vic_control1"},{"a":8890,"t":"code","b":[41,111],"m":"and","o":"#$6F"},{"a":8892,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":8895,"t":"code","b":[141,117,4],"m":"sta","oa":1141,"o":"a_0475"},{"a":8898,"t":"code","b":[96],"m":"rts"},{"a":8899,"l":"bitmap_on","c":"Sets bit 4 of $D011 and its copy and clears bit 7: screen on. Called by level 6 at $8080.","t":"code","b":[173,17,208],"m":"lda","o":"vic_control1"},{"a":8902,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":8904,"t":"code","b":[9,16],"m":"ora","o":"#$10"},{"a":8906,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":8909,"t":"code","b":[141,117,4],"m":"sta","oa":1141,"o":"a_0475"},{"a":8912,"t":"code","b":[96],"m":"rts"},{"a":8913,"c":"Eleven bytes no code reaches: LDA #$03, STA $DD02, LDA #$3E, STA $DD00, RTS, which would select VIC-II bank 1 directly.","t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":8915,"t":"code","b":[141,2,221],"m":"sta","o":"cia2_ddr_a"},{"a":8918,"t":"code","b":[169,62],"m":"lda","o":"#$3E"},{"a":8920,"t":"code","b":[141,0,221],"m":"sta","o":"cia2_port_a"},{"a":8923,"t":"code","b":[96],"m":"rts"},{"a":8924,"l":"clear_page6","c":"Clears $0600-$06FF.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8926,"t":"code","b":[141,234,34],"m":"sta","oa":8938,"o":"clear_page6_lo"},{"a":8929,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":8931,"t":"code","b":[141,235,34],"m":"sta","oa":8939,"o":"clear_page6_hi"},{"a":8934,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8936,"t":"code","b":[170],"m":"tax"},{"a":8937,"l":"b_22E9","t":"code","b":[157,0,8],"m":"sta","oa":2048,"o":"zero_pad,x","x":[8941]},{"a":8938,"t":"note","l":"clear_page6_lo","c":"The address clear_page6 clears, low byte (patched to $0600).","note":"inside the item at $22E9","x":[8926]},{"a":8939,"t":"note","l":"clear_page6_hi","c":"The address clear_page6 clears, high byte.","note":"inside the item at $22E9","x":[8931]},{"a":8940,"t":"code","b":[232],"m":"inx"},{"a":8941,"t":"code","b":[208,250],"m":"bne","oa":8937,"o":"b_22E9"},{"a":8943,"t":"code","b":[96],"m":"rts"},{"a":8944,"l":"clear_screen_5c00","c":"Fills the screen matrix at $5C00-$5FE7 with 0 (fill_memory).","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[8840]},{"a":8946,"t":"code","b":[168],"m":"tay"},{"a":8947,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8949,"t":"code","b":[141,66,35],"m":"sta","oa":9026,"o":"fill_ptr"},{"a":8952,"t":"code","b":[169,92],"m":"lda","o":"#$5C"},{"a":8954,"t":"code","b":[141,67,35],"m":"sta","oa":9027,"o":"fill_ptr_hi"},{"a":8957,"t":"code","b":[169,232],"m":"lda","o":"#$E8"},{"a":8959,"t":"code","b":[141,80,35],"m":"sta","oa":9040,"o":"fill_end_lo"},{"a":8962,"t":"code","b":[169,95],"m":"lda","o":"#$5F"},{"a":8964,"t":"code","b":[141,87,35],"m":"sta","oa":9047,"o":"fill_end_hi"},{"a":8967,"t":"code","b":[32,65,35],"m":"jsr","oa":9025,"o":"fill_memory"},{"a":8970,"t":"code","b":[96],"m":"rts"},{"a":8971,"l":"clear_colour_ram","c":"Fills colour RAM ($D800-$DBFF) with 0.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8973,"t":"code","b":[168],"m":"tay"},{"a":8974,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8976,"t":"code","b":[141,66,35],"m":"sta","oa":9026,"o":"fill_ptr"},{"a":8979,"t":"code","b":[169,216],"m":"lda","o":"#$D8"},{"a":8981,"t":"code","b":[141,67,35],"m":"sta","oa":9027,"o":"fill_ptr_hi"},{"a":8984,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8986,"t":"code","b":[141,80,35],"m":"sta","oa":9040,"o":"fill_end_lo"},{"a":8989,"t":"code","b":[169,220],"m":"lda","o":"#$DC"},{"a":8991,"t":"code","b":[141,87,35],"m":"sta","oa":9047,"o":"fill_end_hi"},{"a":8994,"t":"code","b":[32,65,35],"m":"jsr","oa":9025,"o":"fill_memory"},{"a":8997,"t":"code","b":[96],"m":"rts"},{"a":8998,"l":"clear_bitmap_6000","c":"Fills the bitmap at $6000-$7FFF with 0.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[4982,5007,6362,8843]},{"a":9000,"t":"code","b":[168],"m":"tay"},{"a":9001,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9003,"t":"code","b":[141,66,35],"m":"sta","oa":9026,"o":"fill_ptr"},{"a":9006,"t":"code","b":[169,96],"m":"lda","o":"#$60"},{"a":9008,"t":"code","b":[141,67,35],"m":"sta","oa":9027,"o":"fill_ptr_hi"},{"a":9011,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9013,"t":"code","b":[141,80,35],"m":"sta","oa":9040,"o":"fill_end_lo"},{"a":9016,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":9018,"t":"code","b":[141,87,35],"m":"sta","oa":9047,"o":"fill_end_hi"},{"a":9021,"t":"code","b":[32,65,35],"m":"jsr","oa":9025,"o":"fill_memory"},{"a":9024,"t":"code","b":[96],"m":"rts"},{"a":9025,"l":"fill_memory","c":"Stores Y from the address in its own operand ($2342/$2343) up to the end address in the operands at $2350 and $2357.","t":"code","b":[140,0,16],"m":"sty","oa":4096,"o":"$1000","x":[5306,6388,8883,8967,8994,9021,9041,9048]},{"a":9026,"t":"note","l":"fill_ptr","c":"fill_memory's target address, low byte (the operand of its STA), stepped until it equals the end held in the CMPs at $234F and $2356.","note":"inside the item at $2341","x":[5288,6370,8865,8949,8976,9003,9028,9036]},{"a":9027,"t":"note","l":"fill_ptr_hi","c":"fill_memory's target address, high byte.","note":"inside the item at $2341","x":[5293,6375,8870,8954,8981,9008,9033,9043]},{"a":9028,"t":"code","b":[238,66,35],"m":"inc","oa":9026,"o":"fill_ptr"},{"a":9031,"t":"code","b":[208,3],"m":"bne","oa":9036,"o":"b_234C"},{"a":9033,"t":"code","b":[238,67,35],"m":"inc","oa":9027,"o":"fill_ptr_hi"},{"a":9036,"l":"b_234C","t":"code","b":[173,66,35],"m":"lda","oa":9026,"o":"fill_ptr","x":[9031]},{"a":9039,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":9040,"t":"note","l":"fill_end_lo","c":"fill_memory's end address, low byte (a CMP operand).","note":"inside the item at $234F","x":[5298,6380,8875,8959,8986,9013]},{"a":9041,"t":"code","b":[208,238],"m":"bne","oa":9025,"o":"fill_memory"},{"a":9043,"t":"code","b":[173,67,35],"m":"lda","oa":9027,"o":"fill_ptr_hi"},{"a":9046,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":9047,"t":"note","l":"fill_end_hi","c":"fill_memory's end address, high byte (a CMP operand).","note":"inside the item at $2356","x":[5303,6385,8880,8964,8991,9018]},{"a":9048,"t":"code","b":[208,231],"m":"bne","oa":9025,"o":"fill_memory"},{"a":9050,"t":"code","b":[96],"m":"rts"},{"a":9051,"l":"set_sprite_x","c":"Sets sprite Y's x position to A times 2, putting the ninth bit into $D010.","t":"code","b":[141,129,35],"m":"sta","oa":9089,"o":"ssx_save_a"},{"a":9054,"t":"code","b":[140,130,35],"m":"sty","oa":9090,"o":"ssx_save_y"},{"a":9057,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9058,"t":"code","b":[72],"m":"pha"},{"a":9059,"t":"code","b":[8],"m":"php"},{"a":9060,"t":"code","b":[173,16,208],"m":"lda","o":"vic_sprite_x_msb"},{"a":9063,"t":"code","b":[57,131,35],"m":"and","oa":9091,"o":"sprite_bit_clear,y"},{"a":9066,"t":"code","b":[40],"m":"plp"},{"a":9067,"t":"code","b":[144,3],"m":"bcc","oa":9072,"o":"b_2370"},{"a":9069,"t":"code","b":[25,139,35],"m":"ora","oa":9099,"o":"sprite_bit_set,y"},{"a":9072,"l":"b_2370","t":"code","b":[141,16,208],"m":"sta","o":"vic_sprite_x_msb","x":[9067]},{"a":9075,"t":"code","b":[152],"m":"tya"},{"a":9076,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9077,"t":"code","b":[168],"m":"tay"},{"a":9078,"t":"code","b":[104],"m":"pla"},{"a":9079,"t":"code","b":[153,0,208],"m":"sta","o":"vic_sprite0_x,y"},{"a":9082,"t":"code","b":[173,129,35],"m":"lda","oa":9089,"o":"ssx_save_a"},{"a":9085,"t":"code","b":[172,130,35],"m":"ldy","oa":9090,"o":"ssx_save_y"},{"a":9088,"t":"code","b":[96],"m":"rts"},{"a":9089,"l":"ssx_save_a","c":"set_sprite_x's copy of A, restored on the way out.","t":"byte","b":[0],"x":[9051,9082]},{"a":9090,"l":"ssx_save_y","c":"set_sprite_x's copy of Y, restored on the way out.","t":"byte","b":[0],"x":[9054,9085]},{"a":9091,"l":"sprite_bit_clear","c":"Masks that clear one sprite's bit in $D010, the high bits of the sprites' X positions: FE FD FB F7 EF DF BF 7F for sprites 0 to 7.","t":"byte","b":[254,253,251,247,239,223,191,127],"x":[9063]},{"a":9099,"l":"sprite_bit_set","c":"Bits that set one sprite's bit in $D010: 01 02 04 08 10 20 40 80 for sprites 0 to 7.","t":"byte","b":[1,2,4,8,16,32,64,128],"x":[9069]},{"a":9107,"l":"print_list","c":"Prints a list of texts from the pointer in $10/$11, one byte at a time through print: 0 or $88 ends it; $80 waits 63 frames. With the entry at $2393 it draws with the 8-byte font, at $239A with the wide font.","t":"code","b":[169,128],"m":"lda","o":"#$80","x":[5048,5095,5317,5593,5712,5795]},{"a":9109,"t":"code","b":[141,180,4],"m":"sta","oa":1204,"o":"a_04B4"},{"a":9112,"t":"code","b":[208,5],"m":"bne","oa":9119,"o":"b_239F"},{"a":9114,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9116,"t":"code","b":[141,180,4],"m":"sta","oa":1204,"o":"a_04B4"},{"a":9119,"l":"b_239F","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[9112,9153,9177,9183]},{"a":9121,"t":"code","b":[177,16],"m":"lda","oa":16,"o":"(zpa_10),y"},{"a":9123,"t":"code","b":[72],"m":"pha"},{"a":9124,"t":"code","b":[165,16],"m":"lda","oa":16,"o":"zpa_10"},{"a":9126,"t":"code","b":[24],"m":"clc"},{"a":9127,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":9129,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"zpa_10"},{"a":9131,"t":"code","b":[165,17],"m":"lda","oa":17,"o":"zpa_11"},{"a":9133,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":9135,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":9137,"t":"code","b":[104],"m":"pla"},{"a":9138,"t":"code","b":[240,46],"m":"beq","oa":9186,"o":"r_23E2"},{"a":9140,"t":"code","b":[201,136],"m":"cmp","o":"#$88"},{"a":9142,"t":"code","b":[240,42],"m":"beq","oa":9186,"o":"r_23E2"},{"a":9144,"t":"code","b":[201,128],"m":"cmp","o":"#$80"},{"a":9146,"t":"code","b":[208,8],"m":"bne","oa":9156,"o":"b_23C4"},{"a":9148,"t":"code","b":[169,63],"m":"lda","o":"#$3F"},{"a":9150,"t":"code","b":[32,149,10],"m":"jsr","oa":2709,"o":"wait_frames"},{"a":9153,"t":"code","b":[76,159,35],"m":"jmp","oa":9119,"o":"b_239F"},{"a":9156,"l":"b_23C4","t":"code","b":[141,227,35],"m":"sta","oa":9187,"o":"one_char","x":[9146]},{"a":9159,"t":"code","b":[169,227],"m":"lda","o":"#$E3"},{"a":9161,"t":"code","b":[141,24,13],"m":"sta","oa":3352,"o":"print_ptr"},{"a":9164,"t":"code","b":[169,35],"m":"lda","o":"#$23"},{"a":9166,"t":"code","b":[141,25,13],"m":"sta","oa":3353,"o":"print_ptr_hi"},{"a":9169,"t":"code","b":[44,180,4],"m":"bit","oa":1204,"o":"a_04B4"},{"a":9172,"t":"code","b":[16,6],"m":"bpl","oa":9180,"o":"b_23DC"},{"a":9174,"t":"code","b":[32,0,13],"m":"jsr","oa":3328,"o":"print"},{"a":9177,"t":"code","b":[76,159,35],"m":"jmp","oa":9119,"o":"b_239F"},{"a":9180,"l":"b_23DC","t":"code","b":[32,13,13],"m":"jsr","oa":3341,"o":"print_wide","x":[9172]},{"a":9183,"t":"code","b":[76,159,35],"m":"jmp","oa":9119,"o":"b_239F"},{"a":9186,"l":"r_23E2","t":"code","b":[96],"m":"rts","x":[9138,9142]},{"a":9187,"l":"one_char","c":"A one-character string for print: print_list stores the character here and points print at it; the zero after it ends the string.","t":"byte","b":[0,0],"x":[5701,9156]},{"a":9189,"l":"add_score_digits","c":"Adds ten BCD digit pairs from $0495 into $049F and $04A9, carrying.","t":"code","b":[162,9],"m":"ldx","o":"#$09"},{"a":9191,"l":"b_23E7","t":"code","b":[189,149,4],"m":"lda","oa":1173,"o":"f_0495,x","x":[9226]},{"a":9194,"t":"code","b":[141,13,36],"m":"sta","oa":9229,"o":"score_pair"},{"a":9197,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9198,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9199,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9200,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9201,"t":"code","b":[157,159,4],"m":"sta","oa":1183,"o":"f_049F,x"},{"a":9204,"t":"code","b":[173,13,36],"m":"lda","oa":9229,"o":"score_pair"},{"a":9207,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":9209,"t":"code","b":[24],"m":"clc"},{"a":9210,"t":"code","b":[125,169,4],"m":"adc","oa":1193,"o":"f_04A9,x"},{"a":9213,"t":"code","b":[201,16],"m":"cmp","o":"#$10"},{"a":9215,"t":"code","b":[144,3],"m":"bcc","oa":9220,"o":"b_2404"},{"a":9217,"t":"code","b":[254,159,4],"m":"inc","oa":1183,"o":"f_049F,x"},{"a":9220,"l":"b_2404","t":"code","b":[41,15],"m":"and","o":"#$0F","x":[9215]},{"a":9222,"t":"code","b":[157,169,4],"m":"sta","oa":1193,"o":"f_04A9,x"},{"a":9225,"t":"code","b":[202],"m":"dex"},{"a":9226,"t":"code","b":[16,219],"m":"bpl","oa":9191,"o":"b_23E7"},{"a":9228,"t":"code","b":[96],"m":"rts"},{"a":9229,"l":"score_pair","c":"add_score_digits's copy of the digit pair being split.","t":"byte","b":[0],"x":[9194,9204]},{"a":9230,"l":"is_return","c":"Returns carry clear when the last key ($04B3) is RETURN ($0D).","t":"code","b":[173,179,4],"m":"lda","oa":1203,"o":"a_04B3","x":[5668,9265]},{"a":9233,"t":"code","b":[201,13],"m":"cmp","o":"#$0D"},{"a":9235,"t":"code","b":[240,2],"m":"beq","oa":9239,"o":"b_2417"},{"a":9237,"t":"code","b":[56],"m":"sec"},{"a":9238,"t":"code","b":[96],"m":"rts"},{"a":9239,"l":"b_2417","t":"code","b":[24],"m":"clc","x":[9235]},{"a":9240,"t":"code","b":[96],"m":"rts"},{"a":9241,"l":"next_key","c":"Waits a frame and takes the key in $0221 into $04B3 (0 when none), then marks the key used.","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[5665,9262]},{"a":9243,"t":"code","b":[32,149,10],"m":"jsr","oa":2709,"o":"wait_frames"},{"a":9246,"t":"code","b":[173,33,2],"m":"lda","oa":545,"o":"a_0221"},{"a":9249,"t":"code","b":[16,2],"m":"bpl","oa":9253,"o":"b_2425"},{"a":9251,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9253,"l":"b_2425","t":"code","b":[141,179,4],"m":"sta","oa":1203,"o":"a_04B3","x":[9249]},{"a":9256,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":9258,"t":"code","b":[141,33,2],"m":"sta","oa":545,"o":"a_0221"},{"a":9261,"t":"code","b":[96],"m":"rts"},{"a":9262,"l":"wait_return","c":"Waits for RETURN.","t":"code","b":[32,25,36],"m":"jsr","oa":9241,"o":"next_key","x":[4956,4997,9268]},{"a":9265,"t":"code","b":[32,14,36],"m":"jsr","oa":9230,"o":"is_return"},{"a":9268,"t":"code","b":[176,248],"m":"bcs","oa":9262,"o":"wait_return"},{"a":9270,"t":"code","b":[96],"m":"rts"},{"a":9271,"l":"start_music","c":"Starts a tune: the address of a list of three voice streams follows the JSR. Clears the player's state at $04B5-$0578, sets each voice's filter, copies the three stream pointers to $04B8/$04BB, starts CIA 1's timer A with a period of $80FF cycles and its interrupt, writes the SID once and returns past the address.","t":"code","b":[169,127],"m":"lda","o":"#$7F","x":[8799]},{"a":9273,"t":"code","b":[141,13,220],"m":"sta","o":"cia1_interrupt"},{"a":9276,"t":"code","b":[173,13,220],"m":"lda","o":"cia1_interrupt"},{"a":9279,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9281,"t":"code","b":[160,196],"m":"ldy","o":"#$C4"},{"a":9283,"l":"b_2443","t":"code","b":[153,180,4],"m":"sta","oa":1204,"o":"a_04B4,y","x":[9287]},{"a":9286,"t":"code","b":[136],"m":"dey"},{"a":9287,"t":"code","b":[208,250],"m":"bne","oa":9283,"o":"b_2443"},{"a":9289,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":9291,"t":"code","b":[141,99,5],"m":"sta","oa":1379,"o":"a_0563"},{"a":9294,"t":"code","b":[141,106,5],"m":"sta","oa":1386,"o":"a_056A"},{"a":9297,"t":"code","b":[141,113,5],"m":"sta","oa":1393,"o":"a_0571"},{"a":9300,"c":"start_music's song pointer is inline: the two bytes after the JSR give the address of a three-word header, one start address per voice, and the return address is moved past them.","t":"code","b":[104],"m":"pla"},{"a":9301,"t":"code","b":[133,20],"m":"sta","oa":20,"o":"zpa_14"},{"a":9303,"t":"code","b":[104],"m":"pla"},{"a":9304,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":9306,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":9308,"t":"code","b":[177,20],"m":"lda","oa":20,"o":"(zpa_14),y"},{"a":9310,"t":"code","b":[133,22],"m":"sta","oa":22,"o":"zpa_16"},{"a":9312,"t":"code","b":[200],"m":"iny"},{"a":9313,"t":"code","b":[177,20],"m":"lda","oa":20,"o":"(zpa_14),y"},{"a":9315,"t":"code","b":[133,23],"m":"sta","oa":23,"o":"zpa_17"},{"a":9317,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":9319,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":9321,"l":"b_2469","t":"code","b":[177,22],"m":"lda","oa":22,"o":"(zpa_16),y","x":[9336]},{"a":9323,"t":"code","b":[157,184,4],"m":"sta","oa":1208,"o":"f_04B8,x"},{"a":9326,"t":"code","b":[200],"m":"iny"},{"a":9327,"t":"code","b":[177,22],"m":"lda","oa":22,"o":"(zpa_16),y"},{"a":9329,"t":"code","b":[157,187,4],"m":"sta","oa":1211,"o":"f_04BB,x"},{"a":9332,"t":"code","b":[200],"m":"iny"},{"a":9333,"t":"code","b":[232],"m":"inx"},{"a":9334,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":9336,"t":"code","b":[144,239],"m":"bcc","oa":9321,"o":"b_2469"},{"a":9338,"c":"CIA 1 timer A is set to $80FF and started, with its interrupt on: music_tick runs from that interrupt, not from the raster.","t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":9340,"t":"code","b":[141,4,220],"m":"sta","o":"cia1_timer_a_lo"},{"a":9343,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":9345,"t":"code","b":[141,5,220],"m":"sta","o":"cia1_timer_a_hi"},{"a":9348,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":9350,"t":"code","b":[141,14,220],"m":"sta","o":"cia1_control_a"},{"a":9353,"t":"code","b":[169,129],"m":"lda","o":"#$81"},{"a":9355,"t":"code","b":[141,13,220],"m":"sta","o":"cia1_interrupt"},{"a":9358,"t":"code","b":[165,20],"m":"lda","oa":20,"o":"zpa_14"},{"a":9360,"t":"code","b":[24],"m":"clc"},{"a":9361,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":9363,"t":"code","b":[168],"m":"tay"},{"a":9364,"t":"code","b":[165,21],"m":"lda","oa":21,"o":"zpa_15"},{"a":9366,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":9368,"t":"code","b":[72],"m":"pha"},{"a":9369,"t":"code","b":[152],"m":"tya"},{"a":9370,"t":"code","b":[72],"m":"pha"},{"a":9371,"t":"code","b":[76,37,40],"m":"jmp","oa":10277,"o":"sid_write_music"},{"a":9374,"l":"music_tick","c":"The music player, run from CIA 1's timer interrupt. For each of the three voices that is playing ($04CA bit 7 clear): counts down the note's length ($04BE); at 0 reads the next byte of the voice's stream. A byte with bit 7 set is a command, dispatched through the tables at $332F/$3337 by bits 6-4; any other is a note: its pitch, added to the voice's transposition, comes from the frequency tables at $339A/$33FA, and the gate is opened; its length comes from $338E. Then writes the SID's registers from the copy at $0560.","t":"code","b":[141,237,36],"m":"sta","oa":9453,"o":"music_save_a","x":[2440,2686]},{"a":9377,"t":"code","b":[142,239,36],"m":"stx","oa":9455,"o":"music_save_x"},{"a":9380,"t":"code","b":[140,241,36],"m":"sty","oa":9457,"o":"music_save_y"},{"a":9383,"c":"$04B5 bit 7 set means the music is stopped (set by command $F6 and by reset_sound).","t":"code","b":[173,181,4],"m":"lda","oa":1205,"o":"a_04B5"},{"a":9386,"t":"code","b":[48,64],"m":"bmi","oa":9452,"o":"music_exit"},{"a":9388,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":9390,"l":"music_voice_loop","c":"Each of the three voices in turn (X = 0 to 2). A voice whose $04CA has bit 7 set has ended. Otherwise its countdown $04BE is decremented; at zero the voice reads command bytes until it reaches a note or a rest.","t":"code","b":[189,202,4],"m":"lda","oa":1226,"o":"f_04CA,x","x":[9447]},{"a":9393,"t":"code","b":[48,49],"m":"bmi","oa":9444,"o":"music_voice_next"},{"a":9395,"t":"code","b":[189,190,4],"m":"lda","oa":1214,"o":"f_04BE,x"},{"a":9398,"t":"code","b":[56],"m":"sec"},{"a":9399,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":9401,"t":"code","b":[144,8],"m":"bcc","oa":9411,"o":"music_next_byte"},{"a":9403,"t":"code","b":[240,6],"m":"beq","oa":9411,"o":"music_next_byte"},{"a":9405,"t":"code","b":[157,190,4],"m":"sta","oa":1214,"o":"f_04BE,x"},{"a":9408,"t":"code","b":[76,221,39],"m":"jmp","oa":10205,"o":"music_release"},{"a":9411,"l":"music_next_byte","c":"Reads the voice's next byte (music_byte). A byte of $80 or more is a command: bits 4 to 6 pick one of eight handlers from the address tables at $332F (low) and $3337 (high), patched into the JMP at $24E1. A byte under $80 is a note or a rest (music_note at $2762).","t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte","x":[9401,9403,9473,9490,9521,9660,9684,9762,9774,9855,9885,9902,9910,9936,9992,10013,10056,10079]},{"a":9414,"t":"code","b":[141,183,4],"m":"sta","oa":1207,"o":"a_04B7"},{"a":9417,"t":"code","b":[48,3],"m":"bmi","oa":9422,"o":"b_24CE"},{"a":9419,"t":"code","b":[76,98,39],"m":"jmp","oa":10082,"o":"music_note"},{"a":9422,"l":"b_24CE","t":"code","b":[74],"m":"lsr","o":"a","x":[9417]},{"a":9423,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9424,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9425,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9426,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":9428,"t":"code","b":[168],"m":"tay"},{"a":9429,"t":"code","b":[185,47,51],"m":"lda","oa":13103,"o":"music_cmd_lo,y"},{"a":9432,"t":"code","b":[141,226,36],"m":"sta","oa":9442,"o":"music_cmd_jmp_lo"},{"a":9435,"t":"code","b":[185,55,51],"m":"lda","oa":13111,"o":"music_cmd_hi,y"},{"a":9438,"t":"code","b":[141,227,36],"m":"sta","oa":9443,"o":"music_cmd_jmp_hi"},{"a":9441,"t":"code","b":[76,255,255],"m":"jmp","oa":65535,"o":"$FFFF"},{"a":9442,"t":"note","l":"music_cmd_jmp_lo","c":"The address of the music command's handler, low byte, patched from $332F into the JMP at $24E1.","note":"inside the item at $24E1","x":[9432]},{"a":9443,"t":"note","l":"music_cmd_jmp_hi","c":"The command handler's address, high byte, from $3337.","note":"inside the item at $24E1","x":[9438]},{"a":9444,"l":"music_voice_next","c":"Moves on to the next voice; after the third, copies the SID image to the chip (sid_write_music).","t":"code","b":[232],"m":"inx","x":[9393,9955,10232]},{"a":9445,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":9447,"t":"code","b":[144,197],"m":"bcc","oa":9390,"o":"music_voice_loop"},{"a":9449,"l":"j_24E9","t":"code","b":[32,37,40],"m":"jsr","oa":10277,"o":"sid_write_music","x":[9974]},{"a":9452,"l":"music_exit","c":"Restores A, X and Y: music_tick stored them into the operands of these three loads on entry ($24ED, $24EF, $24F1).","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[9386]},{"a":9453,"t":"note","l":"music_save_a","c":"music_tick's saved A, the operand of the LDA at $24EC.","note":"inside the item at $24EC","x":[9374]},{"a":9454,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":9455,"t":"note","l":"music_save_x","c":"music_tick's saved X, the operand of the LDX at $24EE.","note":"inside the item at $24EE","x":[9377]},{"a":9456,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":9457,"t":"note","l":"music_save_y","c":"music_tick's saved Y, the operand of the LDY at $24F0.","note":"inside the item at $24F0","x":[9380]},{"a":9458,"t":"code","b":[96],"m":"rts"},{"a":9459,"l":"mc_tempo","c":"Command $8x: the next byte is the new high byte of CIA 1's timer, so it sets the tempo; bit 4 of control register A forces the timer to reload at once.","t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":9462,"t":"code","b":[141,5,220],"m":"sta","o":"cia1_timer_a_hi"},{"a":9465,"t":"code","b":[173,14,220],"m":"lda","o":"cia1_control_a"},{"a":9468,"t":"code","b":[9,16],"m":"ora","o":"#$10"},{"a":9470,"t":"code","b":[141,14,220],"m":"sta","o":"cia1_control_a"},{"a":9473,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9476,"l":"mc_volume","c":"Command $9x: the low nibble is the master volume (the low nibble of $0578, the SID's $D418 image).","t":"code","b":[173,183,4],"m":"lda","oa":1207,"o":"a_04B7"},{"a":9479,"t":"code","b":[77,120,5],"m":"eor","oa":1400,"o":"a_0578"},{"a":9482,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":9484,"t":"code","b":[77,120,5],"m":"eor","oa":1400,"o":"a_0578"},{"a":9487,"t":"code","b":[141,120,5],"m":"sta","oa":1400,"o":"a_0578"},{"a":9490,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9493,"l":"mc_envelope","c":"Command $Ax: the next two bytes point at a pair of bytes, attack/decay then sustain/release, copied into this voice's registers in the SID image ($0565/$0566 plus the voice's offset from $3385).","t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":9496,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":9498,"t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":9501,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":9503,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":9505,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9507,"t":"code","b":[72],"m":"pha"},{"a":9508,"t":"code","b":[200],"m":"iny"},{"a":9509,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9511,"t":"code","b":[188,133,51],"m":"ldy","oa":13189,"o":"voice_reg,x"},{"a":9514,"t":"code","b":[153,102,5],"m":"sta","oa":1382,"o":"f_0566,y"},{"a":9517,"t":"code","b":[104],"m":"pla"},{"a":9518,"t":"code","b":[153,101,5],"m":"sta","oa":1381,"o":"f_0565,y"},{"a":9521,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9524,"l":"mc_repeat","c":"Command $Bn: opens a loop that plays n+1 times. Pushes four bytes on the voice's own stack (whose base comes from $337F/$3382): the position after the command, the current pitch and the count n. Command $F0 closes it. A stack deeper than $2D bytes ends the voice (music_voice_end).","t":"code","b":[189,127,51],"m":"lda","oa":13183,"o":"voice_stack_lo,x"},{"a":9527,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":9529,"t":"code","b":[189,130,51],"m":"lda","oa":13186,"o":"voice_stack_hi,x"},{"a":9532,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":9534,"t":"code","b":[188,205,4],"m":"ldy","oa":1229,"o":"f_04CD,x"},{"a":9537,"t":"code","b":[192,45],"m":"cpy","o":"#$2D"},{"a":9539,"t":"code","b":[144,3],"m":"bcc","oa":9544,"o":"b_2548"},{"a":9541,"t":"code","b":[76,211,38],"m":"jmp","oa":9939,"o":"music_voice_end"},{"a":9544,"l":"b_2548","t":"code","b":[189,184,4],"m":"lda","oa":1208,"o":"f_04B8,x","x":[9539]},{"a":9547,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9549,"t":"code","b":[200],"m":"iny"},{"a":9550,"t":"code","b":[189,187,4],"m":"lda","oa":1211,"o":"f_04BB,x"},{"a":9553,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9555,"t":"code","b":[200],"m":"iny"},{"a":9556,"t":"code","b":[189,193,4],"m":"lda","oa":1217,"o":"f_04C1,x"},{"a":9559,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9561,"t":"code","b":[200],"m":"iny"},{"a":9562,"t":"code","b":[173,183,4],"m":"lda","oa":1207,"o":"a_04B7"},{"a":9565,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":9567,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9569,"t":"code","b":[200],"m":"iny"},{"a":9570,"t":"code","b":[152],"m":"tya"},{"a":9571,"t":"code","b":[157,205,4],"m":"sta","oa":1229,"o":"f_04CD,x"},{"a":9574,"t":"code","b":[76,10,38],"m":"jmp","oa":9738,"o":"music_loop_back"},{"a":9577,"l":"mc_call","c":"Command $Cn lo hi t0 ... tn: plays the pattern at lo/hi n+1 times, the k-th time with the pitch moved by tk. Pushes six bytes: a pointer to the transpositions, the pitch to return to, the pattern's address and n. Command $F1 at the pattern's end plays it again with the next transposition, or returns past the list.","t":"code","b":[189,127,51],"m":"lda","oa":13183,"o":"voice_stack_lo,x"},{"a":9580,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":9582,"t":"code","b":[189,130,51],"m":"lda","oa":13186,"o":"voice_stack_hi,x"},{"a":9585,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":9587,"t":"code","b":[189,205,4],"m":"lda","oa":1229,"o":"f_04CD,x"},{"a":9590,"t":"code","b":[201,43],"m":"cmp","o":"#$2B"},{"a":9592,"t":"code","b":[144,3],"m":"bcc","oa":9597,"o":"b_257D"},{"a":9594,"t":"code","b":[76,211,38],"m":"jmp","oa":9939,"o":"music_voice_end"},{"a":9597,"l":"b_257D","t":"code","b":[24],"m":"clc","x":[9592]},{"a":9598,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":9600,"t":"code","b":[168],"m":"tay"},{"a":9601,"t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":9604,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9606,"t":"code","b":[200],"m":"iny"},{"a":9607,"t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":9610,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9612,"t":"code","b":[200],"m":"iny"},{"a":9613,"t":"code","b":[173,183,4],"m":"lda","oa":1207,"o":"a_04B7"},{"a":9616,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":9618,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9620,"t":"code","b":[200],"m":"iny"},{"a":9621,"t":"code","b":[152],"m":"tya"},{"a":9622,"t":"code","b":[157,205,4],"m":"sta","oa":1229,"o":"f_04CD,x"},{"a":9625,"t":"code","b":[56],"m":"sec"},{"a":9626,"t":"code","b":[233,6],"m":"sbc","o":"#$06"},{"a":9628,"t":"code","b":[168],"m":"tay"},{"a":9629,"t":"code","b":[189,184,4],"m":"lda","oa":1208,"o":"f_04B8,x"},{"a":9632,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9634,"t":"code","b":[200],"m":"iny"},{"a":9635,"t":"code","b":[189,187,4],"m":"lda","oa":1211,"o":"f_04BB,x"},{"a":9638,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9640,"t":"code","b":[200],"m":"iny"},{"a":9641,"t":"code","b":[189,193,4],"m":"lda","oa":1217,"o":"f_04C1,x"},{"a":9644,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9646,"t":"code","b":[76,79,38],"m":"jmp","oa":9807,"o":"music_call_again"},{"a":9649,"l":"mc_effect","c":"Command $Dn: sets this voice's frame effect to n+1 ($04C7), which effects_tick calls each frame through the tables at $335E/$336E: D0 a pitch drift, D1 the filter following voice 3's envelope, D2 both, D3 a slow fade-in of the volume, D4 and above nothing.","t":"code","b":[173,183,4],"m":"lda","oa":1207,"o":"a_04B7"},{"a":9652,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":9654,"t":"code","b":[157,199,4],"m":"sta","oa":1223,"o":"f_04C7,x"},{"a":9657,"t":"code","b":[254,199,4],"m":"inc","oa":1223,"o":"f_04C7,x"},{"a":9660,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9663,"l":"mc_wave","c":"Command $En: n becomes the high nibble of the voice's control register: the waveform (1 triangle, 2 sawtooth, 4 pulse, 8 noise).","t":"code","b":[173,183,4],"m":"lda","oa":1207,"o":"a_04B7"},{"a":9666,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9667,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9668,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9669,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9670,"t":"code","b":[188,133,51],"m":"ldy","oa":13189,"o":"voice_reg,x"},{"a":9673,"t":"code","b":[89,100,5],"m":"eor","oa":1380,"o":"f_0564,y"},{"a":9676,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":9678,"t":"code","b":[89,100,5],"m":"eor","oa":1380,"o":"f_0564,y"},{"a":9681,"t":"code","b":[153,100,5],"m":"sta","oa":1380,"o":"f_0564,y"},{"a":9684,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9687,"l":"mc_extended","c":"Command $Fn: picks one of sixteen handlers from the tables at $333F (low) and $334F (high), patched into the JMP at $25E9.","t":"code","b":[173,183,4],"m":"lda","oa":1207,"o":"a_04B7"},{"a":9690,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":9692,"t":"code","b":[168],"m":"tay"},{"a":9693,"t":"code","b":[185,63,51],"m":"lda","oa":13119,"o":"music_ext_lo,y"},{"a":9696,"t":"code","b":[141,234,37],"m":"sta","oa":9706,"o":"music_ext_jmp_lo"},{"a":9699,"t":"code","b":[185,79,51],"m":"lda","oa":13135,"o":"music_ext_hi,y"},{"a":9702,"t":"code","b":[141,235,37],"m":"sta","oa":9707,"o":"music_ext_jmp_hi"},{"a":9705,"t":"code","b":[76,255,255],"m":"jmp","oa":65535,"o":"$FFFF"},{"a":9706,"t":"note","l":"music_ext_jmp_lo","c":"The extended command's handler, low byte, from $333F.","note":"inside the item at $25E9","x":[9696]},{"a":9707,"t":"note","l":"music_ext_jmp_hi","c":"The extended command's handler, high byte, from $334F.","note":"inside the item at $25E9","x":[9702]},{"a":9708,"l":"mc_loop_end","c":"Command $F0: closes the loop opened by $Bn. Counts the loop down on the voice's stack; while the count stays at zero or above, the voice goes back to the position after the $Bn, otherwise the four bytes are dropped and play goes on.","t":"code","b":[189,127,51],"m":"lda","oa":13183,"o":"voice_stack_lo,x"},{"a":9711,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":9713,"t":"code","b":[189,130,51],"m":"lda","oa":13186,"o":"voice_stack_hi,x"},{"a":9716,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":9718,"t":"code","b":[188,205,4],"m":"ldy","oa":1229,"o":"f_04CD,x"},{"a":9721,"t":"code","b":[192,4],"m":"cpy","o":"#$04"},{"a":9723,"t":"code","b":[176,3],"m":"bcs","oa":9728,"o":"b_2600"},{"a":9725,"t":"code","b":[76,211,38],"m":"jmp","oa":9939,"o":"music_voice_end"},{"a":9728,"l":"b_2600","t":"code","b":[136],"m":"dey","x":[9723]},{"a":9729,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9731,"t":"code","b":[56],"m":"sec"},{"a":9732,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":9734,"t":"code","b":[48,29],"m":"bmi","oa":9765,"o":"music_loop_done"},{"a":9736,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9738,"l":"music_loop_back","c":"Reloads the position and pitch saved by $Bn from the top of the voice's stack.","t":"code","b":[189,205,4],"m":"lda","oa":1229,"o":"f_04CD,x","x":[9574]},{"a":9741,"t":"code","b":[56],"m":"sec"},{"a":9742,"t":"code","b":[233,4],"m":"sbc","o":"#$04"},{"a":9744,"t":"code","b":[168],"m":"tay"},{"a":9745,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9747,"t":"code","b":[157,184,4],"m":"sta","oa":1208,"o":"f_04B8,x"},{"a":9750,"t":"code","b":[200],"m":"iny"},{"a":9751,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9753,"t":"code","b":[157,187,4],"m":"sta","oa":1211,"o":"f_04BB,x"},{"a":9756,"t":"code","b":[200],"m":"iny"},{"a":9757,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9759,"t":"code","b":[157,193,4],"m":"sta","oa":1217,"o":"f_04C1,x"},{"a":9762,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9765,"l":"music_loop_done","c":"The loop is finished: drops its four bytes from the voice's stack.","t":"code","b":[189,205,4],"m":"lda","oa":1229,"o":"f_04CD,x","x":[9734]},{"a":9768,"t":"code","b":[56],"m":"sec"},{"a":9769,"t":"code","b":[233,4],"m":"sbc","o":"#$04"},{"a":9771,"t":"code","b":[157,205,4],"m":"sta","oa":1229,"o":"f_04CD,x"},{"a":9774,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9777,"l":"mc_return","c":"Command $F1: the end of a pattern played by $Cn. Counts down; while repeats remain, plays the pattern again with the next transposition (music_call_again), otherwise drops the six bytes and resumes after the transposition list with the pitch it had before.","t":"code","b":[189,127,51],"m":"lda","oa":13183,"o":"voice_stack_lo,x"},{"a":9780,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":9782,"t":"code","b":[189,130,51],"m":"lda","oa":13186,"o":"voice_stack_hi,x"},{"a":9785,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":9787,"t":"code","b":[188,205,4],"m":"ldy","oa":1229,"o":"f_04CD,x"},{"a":9790,"t":"code","b":[192,6],"m":"cpy","o":"#$06"},{"a":9792,"t":"code","b":[176,3],"m":"bcs","oa":9797,"o":"b_2645"},{"a":9794,"t":"code","b":[76,211,38],"m":"jmp","oa":9939,"o":"music_voice_end"},{"a":9797,"l":"b_2645","t":"code","b":[136],"m":"dey","x":[9792]},{"a":9798,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9800,"t":"code","b":[56],"m":"sec"},{"a":9801,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":9803,"t":"code","b":[48,53],"m":"bmi","oa":9858,"o":"music_call_done"},{"a":9805,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9807,"l":"music_call_again","c":"Reads the next transposition through the pointer saved by $Cn (the pointer is patched into the ADC at $266E and stepped on by one), adds it to the saved pitch and starts the pattern from its address.","t":"code","b":[189,205,4],"m":"lda","oa":1229,"o":"f_04CD,x","x":[9646]},{"a":9810,"t":"code","b":[56],"m":"sec"},{"a":9811,"t":"code","b":[233,6],"m":"sbc","o":"#$06"},{"a":9813,"t":"code","b":[168],"m":"tay"},{"a":9814,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9816,"t":"code","b":[141,111,38],"m":"sta","oa":9839,"o":"transpose_ptr_lo"},{"a":9819,"t":"code","b":[24],"m":"clc"},{"a":9820,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":9822,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9824,"t":"code","b":[200],"m":"iny"},{"a":9825,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9827,"t":"code","b":[141,112,38],"m":"sta","oa":9840,"o":"transpose_ptr_hi"},{"a":9830,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":9832,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":9834,"t":"code","b":[200],"m":"iny"},{"a":9835,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9837,"t":"code","b":[200],"m":"iny"},{"a":9838,"t":"code","b":[109,255,255],"m":"adc","oa":65535,"o":"$FFFF"},{"a":9839,"t":"note","l":"transpose_ptr_lo","c":"The pointer to the next transposition of a $Cn call, low byte, patched into the ADC at $266E.","note":"inside the item at $266E","x":[9816]},{"a":9840,"t":"note","l":"transpose_ptr_hi","c":"The pointer to the next transposition, high byte.","note":"inside the item at $266E","x":[9827]},{"a":9841,"t":"code","b":[157,193,4],"m":"sta","oa":1217,"o":"f_04C1,x"},{"a":9844,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9846,"t":"code","b":[157,184,4],"m":"sta","oa":1208,"o":"f_04B8,x"},{"a":9849,"t":"code","b":[200],"m":"iny"},{"a":9850,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9852,"t":"code","b":[157,187,4],"m":"sta","oa":1211,"o":"f_04BB,x"},{"a":9855,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9858,"l":"music_call_done","c":"Drops the six bytes of a finished $Cn and restores the position after its transposition list and the pitch from before it.","t":"code","b":[189,205,4],"m":"lda","oa":1229,"o":"f_04CD,x","x":[9803]},{"a":9861,"t":"code","b":[56],"m":"sec"},{"a":9862,"t":"code","b":[233,6],"m":"sbc","o":"#$06"},{"a":9864,"t":"code","b":[157,205,4],"m":"sta","oa":1229,"o":"f_04CD,x"},{"a":9867,"t":"code","b":[168],"m":"tay"},{"a":9868,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9870,"t":"code","b":[157,184,4],"m":"sta","oa":1208,"o":"f_04B8,x"},{"a":9873,"t":"code","b":[200],"m":"iny"},{"a":9874,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9876,"t":"code","b":[157,187,4],"m":"sta","oa":1211,"o":"f_04BB,x"},{"a":9879,"t":"code","b":[200],"m":"iny"},{"a":9880,"t":"code","b":[177,18],"m":"lda","oa":18,"o":"(zpa_12),y"},{"a":9882,"t":"code","b":[157,193,4],"m":"sta","oa":1217,"o":"f_04C1,x"},{"a":9885,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9888,"l":"mc_jump","c":"Command $F2: the next two bytes become the voice's position, low byte first; the songs use it to loop forever.","t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":9891,"t":"code","b":[72],"m":"pha"},{"a":9892,"t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":9895,"t":"code","b":[157,187,4],"m":"sta","oa":1211,"o":"f_04BB,x"},{"a":9898,"t":"code","b":[104],"m":"pla"},{"a":9899,"t":"code","b":[157,184,4],"m":"sta","oa":1208,"o":"f_04B8,x"},{"a":9902,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9905,"l":"mc_effect_off","c":"Command $F3: turns this voice's frame effect off. No song in the engine uses it.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9907,"t":"code","b":[157,199,4],"m":"sta","oa":1223,"o":"f_04C7,x"},{"a":9910,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9913,"l":"mc_machine_code","c":"Command $F4 lo hi: calls the machine code at lo/hi (patched into the JSR at $26CB) with Y = the voice's register offset, then restores X through the LDX at $26CE. The tunes call count_marker ($2A54) this way.","t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":9916,"t":"code","b":[141,204,38],"m":"sta","oa":9932,"o":"mc_code_lo"},{"a":9919,"t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":9922,"t":"code","b":[141,205,38],"m":"sta","oa":9933,"o":"mc_code_hi"},{"a":9925,"t":"code","b":[142,207,38],"m":"stx","oa":9935,"o":"mc_code_voice1"},{"a":9928,"t":"code","b":[188,133,51],"m":"ldy","oa":13189,"o":"voice_reg,x"},{"a":9931,"t":"code","b":[32,255,255],"m":"jsr","oa":65535,"o":"$FFFF"},{"a":9932,"t":"note","l":"mc_code_lo","c":"The machine code that command $F4 calls, low byte.","note":"inside the item at $26CB","x":[9916]},{"a":9933,"t":"note","l":"mc_code_hi","c":"The machine code that command $F4 calls, high byte.","note":"inside the item at $26CB","x":[9922]},{"a":9934,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":9935,"t":"note","l":"mc_code_voice1","c":"The voice number, saved into the LDX at $26CE while command $F4's routine runs.","note":"inside the item at $26CE","x":[9925]},{"a":9936,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9939,"l":"music_voice_end","c":"Command $F5, and the end of a voice whose stack overflows: sets bit 7 of $04CA so music_tick skips the voice, and clears its control register in the SID image.","t":"code","b":[189,202,4],"m":"lda","oa":1226,"o":"f_04CA,x","x":[9541,9594,9725,9794]},{"a":9942,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":9944,"t":"code","b":[157,202,4],"m":"sta","oa":1226,"o":"f_04CA,x"},{"a":9947,"t":"code","b":[188,133,51],"m":"ldy","oa":13189,"o":"voice_reg,x"},{"a":9950,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9952,"t":"code","b":[153,100,5],"m":"sta","oa":1380,"o":"f_0564,y"},{"a":9955,"t":"code","b":[76,228,36],"m":"jmp","oa":9444,"o":"music_voice_next"},{"a":9958,"l":"mc_stop_all","c":"Command $F6: clears the three control registers in the SID image and sets $04B5 to $FF, which stops the music.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9960,"t":"code","b":[141,100,5],"m":"sta","oa":1380,"o":"f_0564"},{"a":9963,"t":"code","b":[141,107,5],"m":"sta","oa":1387,"o":"a_056B"},{"a":9966,"t":"code","b":[141,114,5],"m":"sta","oa":1394,"o":"a_0572"},{"a":9969,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":9971,"t":"code","b":[141,181,4],"m":"sta","oa":1205,"o":"a_04B5"},{"a":9974,"t":"code","b":[76,233,36],"m":"jmp","oa":9449,"o":"j_24E9"},{"a":9977,"l":"mc_pulse","c":"Command $F7: the next two bytes are the voice's pulse width, low then high.","t":"code","b":[188,133,51],"m":"ldy","oa":13189,"o":"voice_reg,x"},{"a":9980,"t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":9983,"t":"code","b":[153,98,5],"m":"sta","oa":1378,"o":"f_0562,y"},{"a":9986,"t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":9989,"t":"code","b":[153,99,5],"m":"sta","oa":1379,"o":"a_0563,y"},{"a":9992,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":9995,"l":"mc_sync_ring","c":"Commands $F8 to $FB: bits 0 and 1 of the command become the voice's sync and ring-modulation bits (bits 1 and 2 of its control register).","t":"code","b":[188,133,51],"m":"ldy","oa":13189,"o":"voice_reg,x"},{"a":9998,"t":"code","b":[173,183,4],"m":"lda","oa":1207,"o":"a_04B7"},{"a":10001,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10002,"t":"code","b":[89,100,5],"m":"eor","oa":1380,"o":"f_0564,y"},{"a":10005,"t":"code","b":[41,6],"m":"and","o":"#$06"},{"a":10007,"t":"code","b":[89,100,5],"m":"eor","oa":1380,"o":"f_0564,y"},{"a":10010,"t":"code","b":[153,100,5],"m":"sta","oa":1380,"o":"f_0564,y"},{"a":10013,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":10016,"l":"mc_filter","c":"Command $FC r c: the low nibble of r is the filter's resonance and its high nibble the filter mode (written into the operand of the LDA at $2735 and merged into the high nibble of $0578); c is the cutoff's high byte.","t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":10019,"t":"code","b":[141,54,39],"m":"sta","oa":10038,"o":"mc_filter_mode"},{"a":10022,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10023,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10024,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10025,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10026,"t":"code","b":[77,119,5],"m":"eor","oa":1399,"o":"a_0577"},{"a":10029,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":10031,"t":"code","b":[77,119,5],"m":"eor","oa":1399,"o":"a_0577"},{"a":10034,"t":"code","b":[141,119,5],"m":"sta","oa":1399,"o":"a_0577"},{"a":10037,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":10038,"t":"note","l":"mc_filter_mode","c":"Command $FC's first byte, stored as this LDA's operand so that its high nibble, the filter mode, can be merged into $0578.","note":"inside the item at $2735","x":[10019]},{"a":10039,"t":"code","b":[77,120,5],"m":"eor","oa":1400,"o":"a_0578"},{"a":10042,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":10044,"t":"code","b":[77,120,5],"m":"eor","oa":1400,"o":"a_0578"},{"a":10047,"t":"code","b":[141,120,5],"m":"sta","oa":1400,"o":"a_0578"},{"a":10050,"t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":10053,"t":"code","b":[141,118,5],"m":"sta","oa":1398,"o":"a_0576"},{"a":10056,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":10059,"l":"mc_filter_route","c":"Commands $FE and $FF: $FF routes this voice through the filter (sets its bit from $3388 in $0577), $FE takes it out (clears it with the mask at $338B).","t":"code","b":[173,183,4],"m":"lda","oa":1207,"o":"a_04B7"},{"a":10062,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":10063,"t":"code","b":[173,119,5],"m":"lda","oa":1399,"o":"a_0577"},{"a":10066,"t":"code","b":[144,5],"m":"bcc","oa":10073,"o":"b_2759"},{"a":10068,"t":"code","b":[29,136,51],"m":"ora","oa":13192,"o":"voice_filter_on,x"},{"a":10071,"t":"code","b":[208,3],"m":"bne","oa":10076,"o":"b_275C"},{"a":10073,"l":"b_2759","t":"code","b":[61,139,51],"m":"and","oa":13195,"o":"voice_filter_off,x","x":[10066]},{"a":10076,"l":"b_275C","t":"code","b":[141,119,5],"m":"sta","oa":1399,"o":"a_0577","x":[10071]},{"a":10079,"t":"code","b":[76,195,36],"m":"jmp","oa":9411,"o":"music_next_byte"},{"a":10082,"l":"music_note","c":"A byte under $80. Bits 4 and 6 both set make a rest of the duration in the low nibble. Otherwise bit 5 ties the note to the next one (no release); with bit 6 set the low nibble picks a duration from $338E and the next byte is the step in semitones from the last note; with bit 6 clear the step is (byte AND $1F) - 16 and the duration stays as it was.","t":"code","b":[73,255],"m":"eor","o":"#$FF","x":[9419]},{"a":10084,"t":"code","b":[41,80],"m":"and","o":"#$50"},{"a":10086,"t":"code","b":[208,3],"m":"bne","oa":10091,"o":"b_276B"},{"a":10088,"t":"code","b":[76,190,39],"m":"jmp","oa":10174,"o":"music_rest"},{"a":10091,"l":"b_276B","t":"code","b":[173,183,4],"m":"lda","oa":1207,"o":"a_04B7","x":[10086]},{"a":10094,"t":"code","b":[93,202,4],"m":"eor","oa":1226,"o":"f_04CA,x"},{"a":10097,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":10099,"t":"code","b":[93,202,4],"m":"eor","oa":1226,"o":"f_04CA,x"},{"a":10102,"t":"code","b":[157,202,4],"m":"sta","oa":1226,"o":"f_04CA,x"},{"a":10105,"t":"code","b":[44,183,4],"m":"bit","oa":1207,"o":"a_04B7"},{"a":10108,"t":"code","b":[80,18],"m":"bvc","oa":10128,"o":"music_step"},{"a":10110,"t":"code","b":[173,183,4],"m":"lda","oa":1207,"o":"a_04B7"},{"a":10113,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":10115,"t":"code","b":[168],"m":"tay"},{"a":10116,"t":"code","b":[185,142,51],"m":"lda","oa":13198,"o":"note_lengths,y"},{"a":10119,"t":"code","b":[157,196,4],"m":"sta","oa":1220,"o":"f_04C4,x"},{"a":10122,"t":"code","b":[32,73,40],"m":"jsr","oa":10313,"o":"music_byte"},{"a":10125,"t":"code","b":[76,152,39],"m":"jmp","oa":10136,"o":"music_play_pitch"},{"a":10128,"l":"music_step","c":"The short form: the step is the byte's low five bits less 16, so -16 to +15 semitones.","t":"code","b":[173,183,4],"m":"lda","oa":1207,"o":"a_04B7","x":[10108]},{"a":10131,"t":"code","b":[41,31],"m":"and","o":"#$1F"},{"a":10133,"t":"code","b":[56],"m":"sec"},{"a":10134,"t":"code","b":[233,16],"m":"sbc","o":"#$10"},{"a":10136,"l":"music_play_pitch","c":"Adds the step to the voice's pitch $04C1, looks up the frequency in $339A (low) and $33FA (high) and turns the gate on.","t":"code","b":[24],"m":"clc","x":[10125]},{"a":10137,"t":"code","b":[125,193,4],"m":"adc","oa":1217,"o":"f_04C1,x"},{"a":10140,"t":"code","b":[157,193,4],"m":"sta","oa":1217,"o":"f_04C1,x"},{"a":10143,"t":"code","b":[168],"m":"tay"},{"a":10144,"t":"code","b":[185,154,51],"m":"lda","oa":13210,"o":"freq_lo,y"},{"a":10147,"t":"code","b":[72],"m":"pha"},{"a":10148,"t":"code","b":[185,250,51],"m":"lda","oa":13306,"o":"freq_hi,y"},{"a":10151,"t":"code","b":[188,133,51],"m":"ldy","oa":13189,"o":"voice_reg,x"},{"a":10154,"t":"code","b":[153,97,5],"m":"sta","oa":1377,"o":"f_0561,y"},{"a":10157,"t":"code","b":[104],"m":"pla"},{"a":10158,"t":"code","b":[153,96,5],"m":"sta","oa":1376,"o":"f_0560,y"},{"a":10161,"t":"code","b":[185,100,5],"m":"lda","oa":1380,"o":"f_0564,y"},{"a":10164,"t":"code","b":[9,1],"m":"ora","o":"#$01"},{"a":10166,"t":"code","b":[153,100,5],"m":"sta","oa":1380,"o":"f_0564,y"},{"a":10169,"t":"code","b":[189,196,4],"m":"lda","oa":1220,"o":"f_04C4,x"},{"a":10172,"t":"code","b":[208,28],"m":"bne","oa":10202,"o":"b_27DA"},{"a":10174,"l":"music_rest","c":"A rest: clears the tie bit, turns the gate off and sets the countdown from the duration table at $338E.","t":"code","b":[169,223],"m":"lda","o":"#$DF","x":[10088]},{"a":10176,"t":"code","b":[61,202,4],"m":"and","oa":1226,"o":"f_04CA,x"},{"a":10179,"t":"code","b":[157,202,4],"m":"sta","oa":1226,"o":"f_04CA,x"},{"a":10182,"t":"code","b":[188,133,51],"m":"ldy","oa":13189,"o":"voice_reg,x"},{"a":10185,"t":"code","b":[169,254],"m":"lda","o":"#$FE"},{"a":10187,"t":"code","b":[57,100,5],"m":"and","oa":1380,"o":"f_0564,y"},{"a":10190,"t":"code","b":[153,100,5],"m":"sta","oa":1380,"o":"f_0564,y"},{"a":10193,"t":"code","b":[173,183,4],"m":"lda","oa":1207,"o":"a_04B7"},{"a":10196,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":10198,"t":"code","b":[168],"m":"tay"},{"a":10199,"t":"code","b":[185,142,51],"m":"lda","oa":13198,"o":"note_lengths,y"},{"a":10202,"l":"b_27DA","t":"code","b":[157,190,4],"m":"sta","oa":1214,"o":"f_04BE,x","x":[10172]},{"a":10205,"l":"music_release","c":"Unless the note is tied, turns the gate off once the countdown reaches one, so each note is released a tick before the next starts.","t":"code","b":[189,202,4],"m":"lda","oa":1226,"o":"f_04CA,x","x":[9408]},{"a":10208,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":10210,"t":"code","b":[208,20],"m":"bne","oa":10232,"o":"b_27F8"},{"a":10212,"t":"code","b":[189,190,4],"m":"lda","oa":1214,"o":"f_04BE,x"},{"a":10215,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":10217,"t":"code","b":[144,2],"m":"bcc","oa":10221,"o":"b_27ED"},{"a":10219,"t":"code","b":[208,11],"m":"bne","oa":10232,"o":"b_27F8"},{"a":10221,"l":"b_27ED","t":"code","b":[188,133,51],"m":"ldy","oa":13189,"o":"voice_reg,x","x":[10217]},{"a":10224,"t":"code","b":[169,254],"m":"lda","o":"#$FE"},{"a":10226,"t":"code","b":[57,100,5],"m":"and","oa":1380,"o":"f_0564,y"},{"a":10229,"t":"code","b":[153,100,5],"m":"sta","oa":1380,"o":"f_0564,y"},{"a":10232,"l":"b_27F8","t":"code","b":[76,228,36],"m":"jmp","oa":9444,"o":"music_voice_next","x":[10210,10219]},{"a":10235,"l":"effects_tick","c":"Called from frame_tick. Unless the music is stopped, calls each voice's frame effect ($04C7, set by command $Dn): the handler comes from $335E/$336E and is patched into the JSR at $281A, with Y the voice's register offset; X is restored through the LDX at $281D.","t":"code","b":[173,181,4],"m":"lda","oa":1205,"o":"a_04B5","x":[2689]},{"a":10238,"t":"code","b":[208,36],"m":"bne","oa":10276,"o":"r_2824"},{"a":10240,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":10242,"l":"b_2802","t":"code","b":[189,199,4],"m":"lda","oa":1223,"o":"f_04C7,x","x":[10274]},{"a":10245,"t":"code","b":[240,24],"m":"beq","oa":10271,"o":"b_281F"},{"a":10247,"t":"code","b":[142,30,40],"m":"stx","oa":10270,"o":"fx_voice1"},{"a":10250,"t":"code","b":[168],"m":"tay"},{"a":10251,"t":"code","b":[185,94,51],"m":"lda","oa":13150,"o":"fx_lo,y"},{"a":10254,"t":"code","b":[141,27,40],"m":"sta","oa":10267,"o":"fx_handler_lo"},{"a":10257,"t":"code","b":[185,110,51],"m":"lda","oa":13166,"o":"fx_hi,y"},{"a":10260,"t":"code","b":[141,28,40],"m":"sta","oa":10268,"o":"fx_handler_hi"},{"a":10263,"t":"code","b":[188,133,51],"m":"ldy","oa":13189,"o":"voice_reg,x"},{"a":10266,"t":"code","b":[32,255,255],"m":"jsr","oa":65535,"o":"$FFFF"},{"a":10267,"t":"note","l":"fx_handler_lo","c":"The voice's frame effect handler, low byte, patched from $335E.","note":"inside the item at $281A","x":[10254]},{"a":10268,"t":"note","l":"fx_handler_hi","c":"The voice's frame effect handler, high byte, from $336E.","note":"inside the item at $281A","x":[10260]},{"a":10269,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":10270,"t":"note","l":"fx_voice1","c":"The voice number, saved into the LDX at $281D while its effect runs.","note":"inside the item at $281D","x":[10247]},{"a":10271,"l":"b_281F","t":"code","b":[232],"m":"inx","x":[10245]},{"a":10272,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":10274,"t":"code","b":[144,222],"m":"bcc","oa":10242,"o":"b_2802"},{"a":10276,"l":"r_2824","t":"code","b":[96],"m":"rts","x":[10238]},{"a":10277,"l":"sid_write_music","c":"Copies the music's SID image to the chip: the 21 voice registers from $0560-$0574, then resonance and routing ($0577), mode and volume ($0578) and the cutoff ($0575, $0576).","t":"code","b":[160,20],"m":"ldy","o":"#$14","x":[9371,9449]},{"a":10279,"l":"b_2827","t":"code","b":[185,96,5],"m":"lda","oa":1376,"o":"f_0560,y","x":[10286]},{"a":10282,"t":"code","b":[153,0,212],"m":"sta","o":"sid_v1_freq_lo,y"},{"a":10285,"t":"code","b":[136],"m":"dey"},{"a":10286,"t":"code","b":[16,247],"m":"bpl","oa":10279,"o":"b_2827"},{"a":10288,"t":"code","b":[173,119,5],"m":"lda","oa":1399,"o":"a_0577"},{"a":10291,"t":"code","b":[141,23,212],"m":"sta","o":"sid_filter_resonance"},{"a":10294,"t":"code","b":[173,120,5],"m":"lda","oa":1400,"o":"a_0578"},{"a":10297,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":10300,"t":"code","b":[173,117,5],"m":"lda","oa":1397,"o":"a_0575"},{"a":10303,"t":"code","b":[141,21,212],"m":"sta","o":"sid_filter_cutoff_lo"},{"a":10306,"t":"code","b":[173,118,5],"m":"lda","oa":1398,"o":"a_0576"},{"a":10309,"t":"code","b":[141,22,212],"m":"sta","o":"sid_filter_cutoff_hi"},{"a":10312,"t":"code","b":[96],"m":"rts"},{"a":10313,"l":"music_byte","c":"Returns the voice's next byte and steps its position on: the position at $04B8/$04BB is patched into the LDA at $285D.","t":"code","b":[189,184,4],"m":"lda","oa":1208,"o":"f_04B8,x","x":[9411,9459,9493,9498,9601,9607,9888,9892,9913,9919,9980,9986,10016,10050,10122]},{"a":10316,"t":"code","b":[141,94,40],"m":"sta","oa":10334,"o":"music_pos_lo"},{"a":10319,"t":"code","b":[189,187,4],"m":"lda","oa":1211,"o":"f_04BB,x"},{"a":10322,"t":"code","b":[141,95,40],"m":"sta","oa":10335,"o":"music_pos_hi"},{"a":10325,"t":"code","b":[254,184,4],"m":"inc","oa":1208,"o":"f_04B8,x"},{"a":10328,"t":"code","b":[208,3],"m":"bne","oa":10333,"o":"b_285D"},{"a":10330,"t":"code","b":[254,187,4],"m":"inc","oa":1211,"o":"f_04BB,x"},{"a":10333,"l":"b_285D","t":"code","b":[173,93,40],"m":"lda","oa":10333,"o":"b_285D","x":[10328,10333]},{"a":10334,"t":"note","l":"music_pos_lo","c":"The operand of music_byte's LDA, patched with the voice's position; the snapshot holds the last position read, $2A3E.","note":"inside the item at $285D","x":[10316]},{"a":10335,"t":"note","l":"music_pos_hi","c":"The voice's position, high byte, patched into music_byte's LDA.","note":"inside the item at $285D","x":[10322]},{"a":10336,"t":"code","b":[96],"m":"rts"},{"a":10337,"l":"fx_drift","c":"Frame effect 1 (command $D0): moves the voice's frequency by two each call, one way while the shared counter $057A is under $80 and the other way after; voices 1 and 3 move together and voice 2 the opposite way, from the steps at $289A (low) and $289D (high).","t":"code","b":[238,122,5],"m":"inc","oa":1402,"o":"a_057A","x":[10410]},{"a":10340,"t":"code","b":[48,26],"m":"bmi","oa":10368,"o":"b_2880"},{"a":10342,"t":"code","b":[185,96,5],"m":"lda","oa":1376,"o":"f_0560,y"},{"a":10345,"t":"code","b":[56],"m":"sec"},{"a":10346,"t":"code","b":[253,154,40],"m":"sbc","oa":10394,"o":"fx_drift_steps,x"},{"a":10349,"t":"code","b":[153,96,5],"m":"sta","oa":1376,"o":"f_0560,y"},{"a":10352,"t":"code","b":[153,0,212],"m":"sta","o":"sid_v1_freq_lo,y"},{"a":10355,"t":"code","b":[185,97,5],"m":"lda","oa":1377,"o":"f_0561,y"},{"a":10358,"t":"code","b":[253,157,40],"m":"sbc","oa":10397,"o":"fx_drift_steps_hi,x"},{"a":10361,"t":"code","b":[153,97,5],"m":"sta","oa":1377,"o":"f_0561,y"},{"a":10364,"t":"code","b":[153,1,212],"m":"sta","o":"sid_v1_freq_hi,y"},{"a":10367,"t":"code","b":[96],"m":"rts"},{"a":10368,"l":"b_2880","t":"code","b":[185,96,5],"m":"lda","oa":1376,"o":"f_0560,y","x":[10340]},{"a":10371,"t":"code","b":[24],"m":"clc"},{"a":10372,"t":"code","b":[125,154,40],"m":"adc","oa":10394,"o":"fx_drift_steps,x"},{"a":10375,"t":"code","b":[153,96,5],"m":"sta","oa":1376,"o":"f_0560,y"},{"a":10378,"t":"code","b":[153,0,212],"m":"sta","o":"sid_v1_freq_lo,y"},{"a":10381,"t":"code","b":[185,97,5],"m":"lda","oa":1377,"o":"f_0561,y"},{"a":10384,"t":"code","b":[125,157,40],"m":"adc","oa":10397,"o":"fx_drift_steps_hi,x"},{"a":10387,"t":"code","b":[153,97,5],"m":"sta","oa":1377,"o":"f_0561,y"},{"a":10390,"t":"code","b":[153,1,212],"m":"sta","o":"sid_v1_freq_hi,y"},{"a":10393,"t":"code","b":[96],"m":"rts"},{"a":10394,"l":"fx_drift_steps","c":"The steps fx_drift adds to each voice's frequency: low bytes 02 FE 02, then high bytes 00 FF 00 at $289D (+2, -2, +2).","t":"byte","b":[2,254,2],"x":[10346,10372]},{"a":10397,"l":"fx_drift_steps_hi","c":"fx_drift's high bytes: 00 FF 00.","t":"byte","b":[0,255,0],"x":[10358,10384]},{"a":10400,"l":"fx_filter_env3","c":"Frame effect 2 (command $D1): copies voice 3's envelope output ($D41C) into the filter cutoff's high byte, so the filter opens and closes with voice 3's notes.","t":"code","b":[173,28,212],"m":"lda","o":"sid_v3_envelope","x":[10413]},{"a":10403,"t":"code","b":[141,118,5],"m":"sta","oa":1398,"o":"a_0576"},{"a":10406,"t":"code","b":[141,22,212],"m":"sta","o":"sid_filter_cutoff_hi"},{"a":10409,"t":"code","b":[96],"m":"rts"},{"a":10410,"l":"fx_drift_filter","c":"Frame effect 3 (command $D2): runs fx_drift and then fx_filter_env3.","t":"code","b":[32,97,40],"m":"jsr","oa":10337,"o":"fx_drift"},{"a":10413,"t":"code","b":[32,160,40],"m":"jsr","oa":10400,"o":"fx_filter_env3"},{"a":10416,"t":"code","b":[96],"m":"rts"},{"a":10417,"l":"fx_fade_in","c":"Frame effect 4 (command $D3): every 30 calls (counted in the operand byte at $28CC) raises the master volume by one, until it reaches 14.","t":"code","b":[206,204,40],"m":"dec","oa":10444,"o":"fade_count"},{"a":10420,"t":"code","b":[208,23],"m":"bne","oa":10445,"o":"fade_exit"},{"a":10422,"t":"code","b":[169,30],"m":"lda","o":"#$1E"},{"a":10424,"t":"code","b":[141,204,40],"m":"sta","oa":10444,"o":"fade_count"},{"a":10427,"t":"code","b":[173,120,5],"m":"lda","oa":1400,"o":"a_0578"},{"a":10430,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":10432,"t":"code","b":[201,14],"m":"cmp","o":"#$0E"},{"a":10434,"t":"code","b":[240,9],"m":"beq","oa":10445,"o":"fade_exit"},{"a":10436,"t":"code","b":[238,120,5],"m":"inc","oa":1400,"o":"a_0578"},{"a":10439,"t":"code","b":[173,120,5],"m":"lda","oa":1400,"o":"a_0578"},{"a":10442,"t":"code","b":[208,1],"m":"bne","oa":10445,"o":"fade_exit"},{"a":10444,"l":"fade_count","c":"fx_fade_in's countdown of calls, kept in this byte.","t":"byte","b":[1],"x":[10417,10424]},{"a":10445,"l":"fade_exit","c":"fx_fade_in's exit. The second RTS, at $28CE, is never reached.","t":"code","b":[96],"m":"rts","x":[10420,10434,10442]},{"a":10446,"t":"code","b":[96],"m":"rts"},{"a":10447,"c":"Sixteen bytes no code reaches: no JSR, JMP or table names $28CF. They decode as AND #$0F, STA $0578, STA $D418, BNE, LDX #$01, JSR start_music and an RTS, a volume routine whose inline song pointer would be the RTS and the next byte; probably left over from an earlier version.","t":"byte","b":[41,15,141,120,5,141,24,212]},{"a":10455,"t":"byte","b":[208,5,162,1,32,55,36,96]},{"a":10463,"l":"briefing_tune","c":"The tune of the text screens, the briefings and the status update: its header, named by the JSR start_music at $225F, holds the start addresses of its three voices, $2992, $29C5 and $29E3.","t":"byte","b":[146,41,197,41,227,41]},{"a":10469,"l":"tune2_voice1","c":"The first voice of tune2, whose header is at $345A ($28E5, $2939, $2978). It opens with tempo $91, volume 0 and fade-in (D3), so it rises out of silence. The title screen plays it ($83D3), its credits and logo following the tune's markers (command $F4), and so does the ending after the Queen fight ($88E4). The voices are command and note bytes as music_tick reads them; patterns are called with $C0-$C3 and the voices loop with $F2.","t":"byte","b":[128,145,144,252,59,200,228,247]},{"a":10477,"t":"byte","b":[255,0,160,96,42,211,91,91]},{"a":10485,"t":"byte","b":[91,91,223,192,54,42,31,209]},{"a":10493,"t":"byte","b":[195,51,42,31,31,31,31,255]},{"a":10501,"t":"byte","b":[244,84,42,160,94,42,195,43]},{"a":10509,"t":"byte","b":[42,31,31,31,31,254,160,96]},{"a":10517,"t":"byte","b":[42,192,54,42,31,160,94,42]},{"a":10525,"t":"byte","b":[255,183,192,43,42,31,240,254]},{"a":10533,"t":"byte","b":[160,96,42,208,192,54,42,43]},{"a":10541,"t":"byte","b":[223,192,54,42,31,208,192,237]},{"a":10549,"t":"byte","b":[41,43,223,245]},{"a":10553,"l":"tune2_voice2","c":"The second voice of the tune at $345A.","t":"byte","b":[226,91,91,91,91,160,96,42]},{"a":10561,"t":"byte","b":[192,54,42,36,199,51,42,36]},{"a":10569,"t":"byte","b":[39,38,37,48,51,50,49,192]},{"a":10577,"t":"byte","b":[54,42,36,160,94,42,193,241]},{"a":10585,"t":"byte","b":[41,24,36,192,9,42,36,192]},{"a":10593,"t":"byte","b":[9,42,48,160,96,42,208,192]},{"a":10601,"t":"byte","b":[54,42,48,223,192,54,42,36]},{"a":10609,"t":"byte","b":[208,192,237,41,36,223,245]},{"a":10616,"l":"tune2_voice3","c":"The third voice of the tune at $345A.","t":"byte","b":[255,209,226,189,244,84,42,192]},{"a":10624,"t":"byte","b":[58,42,24,240,189,244,84,42]},{"a":10632,"t":"byte","b":[192,58,42,24,240,192,237,41]},{"a":10640,"t":"byte","b":[24,245]},{"a":10642,"l":"briefing_voice1","c":"The briefing tune's first voice: tempo $91, volume 13, then patterns called from $2A36 and $2A60.","t":"byte","b":[128,145,157,252,59,200,228,247]},{"a":10650,"t":"byte","b":[255,0,91,91,91,91,160,96]},{"a":10658,"t":"byte","b":[42,192,54,42,31,209,195,51]},{"a":10666,"t":"byte","b":[42,31,31,31,31,255,160,94]},{"a":10674,"t":"byte","b":[42,195,43,42,31,31,31,31]},{"a":10682,"t":"byte","b":[254,160,96,42,192,54,42,31]},{"a":10690,"t":"byte","b":[242,158,41]},{"a":10693,"l":"briefing_voice2","c":"The briefing tune's second voice.","t":"byte","b":[226,91,91,91,91,160,96,42]},{"a":10701,"t":"byte","b":[192,54,42,36,199,51,42,36]},{"a":10709,"t":"byte","b":[39,38,37,48,51,50,49,192]},{"a":10717,"t":"byte","b":[54,42,36,242,200,41]},{"a":10723,"l":"briefing_voice3","c":"The briefing tune's third voice, and from $29ED the patterns it shares with tune2, each ending with command $F1.","t":"byte","b":[255,209,226,192,58,42]},{"a":10729,"l":"shared_patterns_0","c":"The pattern bytes here are also the operand of music_call_again's ADC in the snapshot: the last transposition read.","t":"byte","b":[24,242,230,41,107,244,16,241]},{"a":10737,"t":"byte","b":[67,12,16,65,0,16,67,251]},{"a":10745,"t":"byte","b":[23,16,65,0,16,67,249,24]},{"a":10753,"t":"byte","b":[16,16,20,14,13,17,12,241]},{"a":10761,"t":"byte","b":[65,0,16,16,16,16,16,11]},{"a":10769,"t":"byte","b":[16,23,16,16,16,16,16,9]},{"a":10777,"t":"byte","b":[16,24,16,16,16,16,16,20]},{"a":10785,"t":"byte","b":[16,14,16,13,16,17,16,12]},{"a":10793,"l":"shared_patterns","c":"More of the patterns the two tunes call, each ending with command $F1.","t":"byte","b":[16,241,67,12,4,86,28,4]},{"a":10801,"t":"byte","b":[86,241,75,0,241,107,0,16]},{"a":10809,"t":"byte","b":[241,160,94,42,67]},{"a":10814,"l":"shared_patterns_2","c":"Pattern bytes that music_byte's operand points at in the snapshot.","t":"byte","b":[0,16,16,16,16,16,16,14]},{"a":10822,"t":"byte","b":[241,160,94,42,67,0,16,16]},{"a":10830,"t":"byte","b":[14,6,16,16,26,241]},{"a":10836,"l":"count_marker","c":"Called from the tunes by command $F4: counts in $057B how many times the tune has passed this point.","t":"code","b":[238,123,5],"m":"inc","oa":1403,"o":"a_057B"},{"a":10839,"t":"code","b":[96],"m":"rts"},{"a":10840,"l":"envelopes","c":"Pairs of attack/decay and sustain/release bytes that command $Ax points at, such as $2A5E (22 00) and $2A60 (09 09).","t":"byte","b":[112,0,8,0,34,0,9,9]},{"a":10848,"t":"byte","b":[11,9,137,0,219,0,12,0]},{"a":10856,"t":"byte","b":[144,0,54,0,13,0]},{"a":10862,"l":"clear_effects","c":"Clears the sound effects' 45 bytes of state at $057C-$05A8.","t":"code","b":[160,44],"m":"ldy","o":"#$2C","x":[2310]},{"a":10864,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10866,"l":"b_2A72","t":"code","b":[153,124,5],"m":"sta","oa":1404,"o":"f_057C,y","x":[10870]},{"a":10869,"t":"code","b":[136],"m":"dey"},{"a":10870,"t":"code","b":[16,250],"m":"bpl","oa":10866,"o":"b_2A72"},{"a":10872,"t":"code","b":[96],"m":"rts"},{"a":10873,"l":"start_effect","c":"Starts a sound effect. Its argument is inline: the two bytes after the JSR point at a 12-byte effect record, copied to $0596-$05A1 if no effect is playing ($0595) and the new one's priority (byte 11) is not lower than the one playing ($05A1). Silences the SID's three voices and returns past the two bytes.","t":"code","b":[104],"m":"pla"},{"a":10874,"t":"code","b":[133,24],"m":"sta","oa":24,"o":"zpa_18"},{"a":10876,"t":"code","b":[104],"m":"pla"},{"a":10877,"t":"code","b":[133,25],"m":"sta","oa":25,"o":"zpa_19"},{"a":10879,"t":"code","b":[173,149,5],"m":"lda","oa":1429,"o":"a_0595"},{"a":10882,"t":"code","b":[208,83],"m":"bne","oa":10967,"o":"b_2AD7"},{"a":10884,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":10886,"t":"code","b":[177,24],"m":"lda","oa":24,"o":"(zpa_18),y"},{"a":10888,"t":"code","b":[133,26],"m":"sta","oa":26,"o":"zpa_1A"},{"a":10890,"t":"code","b":[200],"m":"iny"},{"a":10891,"t":"code","b":[177,24],"m":"lda","oa":24,"o":"(zpa_18),y"},{"a":10893,"t":"code","b":[133,27],"m":"sta","oa":27,"o":"zpa_1B"},{"a":10895,"t":"code","b":[160,11],"m":"ldy","o":"#$0B"},{"a":10897,"t":"code","b":[177,26],"m":"lda","oa":26,"o":"(zpa_1A),y"},{"a":10899,"t":"code","b":[205,161,5],"m":"cmp","oa":1441,"o":"a_05A1"},{"a":10902,"t":"code","b":[144,63],"m":"bcc","oa":10967,"o":"b_2AD7"},{"a":10904,"l":"b_2A98","t":"code","b":[177,26],"m":"lda","oa":26,"o":"(zpa_1A),y","x":[10910]},{"a":10906,"t":"code","b":[153,150,5],"m":"sta","oa":1430,"o":"f_0596,y"},{"a":10909,"t":"code","b":[136],"m":"dey"},{"a":10910,"t":"code","b":[16,248],"m":"bpl","oa":10904,"o":"b_2A98"},{"a":10912,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":10914,"t":"code","b":[141,168,5],"m":"sta","oa":1448,"o":"a_05A8"},{"a":10917,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10919,"t":"code","b":[141,130,5],"m":"sta","oa":1410,"o":"a_0582"},{"a":10922,"t":"code","b":[141,137,5],"m":"sta","oa":1417,"o":"a_0589"},{"a":10925,"t":"code","b":[141,144,5],"m":"sta","oa":1424,"o":"a_0590"},{"a":10928,"t":"code","b":[141,6,212],"m":"sta","o":"sid_v1_sustain_release"},{"a":10931,"t":"code","b":[141,13,212],"m":"sta","o":"sid_v2_sustain_release"},{"a":10934,"t":"code","b":[141,20,212],"m":"sta","o":"sid_v3_sustain_release"},{"a":10937,"t":"code","b":[141,128,5],"m":"sta","oa":1408,"o":"a_0580"},{"a":10940,"t":"code","b":[141,135,5],"m":"sta","oa":1415,"o":"a_0587"},{"a":10943,"t":"code","b":[141,142,5],"m":"sta","oa":1422,"o":"a_058E"},{"a":10946,"t":"code","b":[141,4,212],"m":"sta","o":"sid_v1_control"},{"a":10949,"t":"code","b":[141,11,212],"m":"sta","o":"sid_v2_control"},{"a":10952,"t":"code","b":[141,18,212],"m":"sta","o":"sid_v3_control"},{"a":10955,"t":"code","b":[141,147,5],"m":"sta","oa":1427,"o":"a_0593"},{"a":10958,"t":"code","b":[141,165,5],"m":"sta","oa":1445,"o":"a_05A5"},{"a":10961,"t":"code","b":[141,166,5],"m":"sta","oa":1446,"o":"a_05A6"},{"a":10964,"t":"code","b":[141,167,5],"m":"sta","oa":1447,"o":"a_05A7"},{"a":10967,"l":"b_2AD7","t":"code","b":[165,24],"m":"lda","oa":24,"o":"zpa_18","x":[10882,10902]},{"a":10969,"t":"code","b":[24],"m":"clc"},{"a":10970,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":10972,"t":"code","b":[133,24],"m":"sta","oa":24,"o":"zpa_18"},{"a":10974,"t":"code","b":[144,2],"m":"bcc","oa":10978,"o":"b_2AE2"},{"a":10976,"t":"code","b":[230,25],"m":"inc","oa":25,"o":"zpa_19"},{"a":10978,"l":"b_2AE2","t":"code","b":[108,24,0],"m":"jmp","oa":24,"o":"(zpa_18)","x":[10974]},{"a":10981,"l":"silence_effects","c":"Stops any sound effect: clears its priority $05A1, its three control and sustain/release registers in the effect's image and on the chip.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2313,6527,11051,13811]},{"a":10983,"t":"code","b":[141,161,5],"m":"sta","oa":1441,"o":"a_05A1"},{"a":10986,"t":"code","b":[141,130,5],"m":"sta","oa":1410,"o":"a_0582"},{"a":10989,"t":"code","b":[141,137,5],"m":"sta","oa":1417,"o":"a_0589"},{"a":10992,"t":"code","b":[141,144,5],"m":"sta","oa":1424,"o":"a_0590"},{"a":10995,"t":"code","b":[141,128,5],"m":"sta","oa":1408,"o":"a_0580"},{"a":10998,"t":"code","b":[141,135,5],"m":"sta","oa":1415,"o":"a_0587"},{"a":11001,"t":"code","b":[141,142,5],"m":"sta","oa":1422,"o":"a_058E"},{"a":11004,"t":"code","b":[141,6,212],"m":"sta","o":"sid_v1_sustain_release"},{"a":11007,"t":"code","b":[141,13,212],"m":"sta","o":"sid_v2_sustain_release"},{"a":11010,"t":"code","b":[141,20,212],"m":"sta","o":"sid_v3_sustain_release"},{"a":11013,"t":"code","b":[141,4,212],"m":"sta","o":"sid_v1_control"},{"a":11016,"t":"code","b":[141,11,212],"m":"sta","o":"sid_v2_control"},{"a":11019,"t":"code","b":[141,18,212],"m":"sta","o":"sid_v3_control"},{"a":11022,"t":"code","b":[96],"m":"rts"},{"a":11023,"l":"effects_frame","c":"Called from frame_tick while an effect plays ($05A1 non-zero). For the first three frames waits, then jumps through the record's first word (its start). Then counts the effect's length ($05A0) down to silence_effects, calls the per-frame routine (record word $0598) and, for each voice whose timer ($05A5-$05A7) runs out, the voice routine from $059A, $059C or $059E, reloading the timer from $05A2-$05A4. Finally copies the effect's 25-byte SID image at $057C to the chip.","t":"code","b":[173,161,5],"m":"lda","oa":1441,"o":"a_05A1","x":[2692]},{"a":11026,"t":"code","b":[240,97],"m":"beq","oa":11125,"o":"r_2B75"},{"a":11028,"t":"code","b":[173,168,5],"m":"lda","oa":1448,"o":"a_05A8"},{"a":11031,"t":"code","b":[240,8],"m":"beq","oa":11041,"o":"b_2B21"},{"a":11033,"t":"code","b":[206,168,5],"m":"dec","oa":1448,"o":"a_05A8"},{"a":11036,"t":"code","b":[208,87],"m":"bne","oa":11125,"o":"r_2B75"},{"a":11038,"t":"code","b":[108,150,5],"m":"jmp","oa":1430,"o":"(f_0596)"},{"a":11041,"l":"b_2B21","t":"code","b":[173,160,5],"m":"lda","oa":1440,"o":"a_05A0","x":[11031]},{"a":11044,"t":"code","b":[240,8],"m":"beq","oa":11054,"o":"b_2B2E"},{"a":11046,"t":"code","b":[206,160,5],"m":"dec","oa":1440,"o":"a_05A0"},{"a":11049,"t":"code","b":[208,3],"m":"bne","oa":11054,"o":"b_2B2E"},{"a":11051,"t":"code","b":[76,229,42],"m":"jmp","oa":10981,"o":"silence_effects"},{"a":11054,"l":"b_2B2E","t":"code","b":[32,169,43],"m":"jsr","oa":11177,"o":"fx_call_frame","x":[11044,11049]},{"a":11057,"t":"code","b":[173,165,5],"m":"lda","oa":1445,"o":"a_05A5"},{"a":11060,"t":"code","b":[240,14],"m":"beq","oa":11076,"o":"b_2B44"},{"a":11062,"t":"code","b":[206,165,5],"m":"dec","oa":1445,"o":"a_05A5"},{"a":11065,"t":"code","b":[208,9],"m":"bne","oa":11076,"o":"b_2B44"},{"a":11067,"t":"code","b":[173,162,5],"m":"lda","oa":1442,"o":"a_05A2"},{"a":11070,"t":"code","b":[141,165,5],"m":"sta","oa":1445,"o":"a_05A5"},{"a":11073,"t":"code","b":[32,172,43],"m":"jsr","oa":11180,"o":"fx_call_voice1"},{"a":11076,"l":"b_2B44","t":"code","b":[173,166,5],"m":"lda","oa":1446,"o":"a_05A6","x":[11060,11065]},{"a":11079,"t":"code","b":[240,14],"m":"beq","oa":11095,"o":"b_2B57"},{"a":11081,"t":"code","b":[206,166,5],"m":"dec","oa":1446,"o":"a_05A6"},{"a":11084,"t":"code","b":[208,9],"m":"bne","oa":11095,"o":"b_2B57"},{"a":11086,"t":"code","b":[173,163,5],"m":"lda","oa":1443,"o":"a_05A3"},{"a":11089,"t":"code","b":[141,166,5],"m":"sta","oa":1446,"o":"a_05A6"},{"a":11092,"t":"code","b":[32,175,43],"m":"jsr","oa":11183,"o":"fx_call_voice2"},{"a":11095,"l":"b_2B57","t":"code","b":[173,167,5],"m":"lda","oa":1447,"o":"a_05A7","x":[11079,11084]},{"a":11098,"t":"code","b":[240,14],"m":"beq","oa":11114,"o":"b_2B6A"},{"a":11100,"t":"code","b":[206,167,5],"m":"dec","oa":1447,"o":"a_05A7"},{"a":11103,"t":"code","b":[208,9],"m":"bne","oa":11114,"o":"b_2B6A"},{"a":11105,"t":"code","b":[173,164,5],"m":"lda","oa":1444,"o":"a_05A4"},{"a":11108,"t":"code","b":[141,167,5],"m":"sta","oa":1447,"o":"a_05A7"},{"a":11111,"t":"code","b":[32,178,43],"m":"jsr","oa":11186,"o":"fx_call_voice3"},{"a":11114,"l":"b_2B6A","t":"code","b":[160,24],"m":"ldy","o":"#$18","x":[11098,11103]},{"a":11116,"l":"b_2B6C","t":"code","b":[185,124,5],"m":"lda","oa":1404,"o":"f_057C,y","x":[11123]},{"a":11119,"t":"code","b":[153,0,212],"m":"sta","o":"sid_v1_freq_lo,y"},{"a":11122,"t":"code","b":[136],"m":"dey"},{"a":11123,"t":"code","b":[16,247],"m":"bpl","oa":11116,"o":"b_2B6C"},{"a":11125,"l":"r_2B75","t":"code","b":[96],"m":"rts","x":[11026,11036]},{"a":11126,"l":"set_effect_voice","c":"An effect's routines call this with X = voice and an inline pointer to seven bytes: frequency, pulse width, control and envelope, copied into that voice's slot of the effect's SID image (the slot's last byte from $345F). Returns past the pointer.","t":"code","b":[104],"m":"pla","x":[13456,13462,13468,13532,13538,13544,13656,13684,13692,13753,13760,13767,13994,14037,14045,14105,14112,14119,14280,14287,14294,14453,14460,14467,14550,14557,14564,14645,14652,14659,14720,14727,14734,14787,14794,14847,14854,14940,14947,14954,15021,15028]},{"a":11127,"t":"code","b":[133,24],"m":"sta","oa":24,"o":"zpa_18"},{"a":11129,"t":"code","b":[104],"m":"pla"},{"a":11130,"t":"code","b":[133,25],"m":"sta","oa":25,"o":"zpa_19"},{"a":11132,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":11134,"t":"code","b":[177,24],"m":"lda","oa":24,"o":"(zpa_18),y"},{"a":11136,"t":"code","b":[133,26],"m":"sta","oa":26,"o":"zpa_1A"},{"a":11138,"t":"code","b":[200],"m":"iny"},{"a":11139,"t":"code","b":[177,24],"m":"lda","oa":24,"o":"(zpa_18),y"},{"a":11141,"t":"code","b":[133,27],"m":"sta","oa":27,"o":"zpa_1B"},{"a":11143,"t":"code","b":[142,154,43],"m":"stx","oa":11162,"o":"sev_save_x"},{"a":11146,"t":"code","b":[189,95,52],"m":"lda","oa":13407,"o":"tune2_end,x"},{"a":11149,"t":"code","b":[170],"m":"tax"},{"a":11150,"t":"code","b":[160,6],"m":"ldy","o":"#$06"},{"a":11152,"l":"b_2B90","t":"code","b":[177,26],"m":"lda","oa":26,"o":"(zpa_1A),y","x":[11159]},{"a":11154,"t":"code","b":[157,124,5],"m":"sta","oa":1404,"o":"f_057C,x"},{"a":11157,"t":"code","b":[202],"m":"dex"},{"a":11158,"t":"code","b":[136],"m":"dey"},{"a":11159,"t":"code","b":[16,247],"m":"bpl","oa":11152,"o":"b_2B90"},{"a":11161,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":11162,"t":"note","l":"sev_save_x","c":"set_effect_voice's saved X, the operand of the LDX at $2B99.","note":"inside the item at $2B99","x":[11143]},{"a":11163,"t":"code","b":[165,24],"m":"lda","oa":24,"o":"zpa_18"},{"a":11165,"t":"code","b":[24],"m":"clc"},{"a":11166,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":11168,"t":"code","b":[133,24],"m":"sta","oa":24,"o":"zpa_18"},{"a":11170,"t":"code","b":[144,2],"m":"bcc","oa":11174,"o":"b_2BA6"},{"a":11172,"t":"code","b":[230,25],"m":"inc","oa":25,"o":"zpa_19"},{"a":11174,"l":"b_2BA6","t":"code","b":[108,24,0],"m":"jmp","oa":24,"o":"(zpa_18)","x":[11170]},{"a":11177,"l":"fx_call_frame","c":"Jumps through the effect's per-frame routine at $0598.","t":"code","b":[108,152,5],"m":"jmp","oa":1432,"o":"(p_0598)","x":[11054]},{"a":11180,"l":"fx_call_voice1","c":"Jumps through the effect's voice-1 routine at $059A.","t":"code","b":[108,154,5],"m":"jmp","oa":1434,"o":"(p_059A)","x":[11073]},{"a":11183,"l":"fx_call_voice2","c":"Jumps through the effect's voice-2 routine at $059C.","t":"code","b":[108,156,5],"m":"jmp","oa":1436,"o":"(p_059C)","x":[11092]},{"a":11186,"l":"fx_call_voice3","c":"Jumps through the effect's voice-3 routine at $059E.","t":"code","b":[108,158,5],"m":"jmp","oa":1438,"o":"(p_059E)","x":[11111]},{"a":11189,"c":"Eight zero bytes nothing reads.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":11197,"l":"load_name","c":"The file name load_file passes to the loader, three characters: A, the stage's digit (patched into $2BBE) and an asterisk, so the first file whose name starts with those two loads.","t":"byte","b":[65]},{"a":11198,"l":"load_name_digit","c":"The file name's second character, the stage's digit from $3B53 (or 2 for A2), written by load_file.","t":"byte","b":[65,42],"x":[11254]},{"a":11200,"l":"load_stage","c":"Loads the stage's files: the file named \"A\" and the digit for the stage in $3B53 (load_file); for stages 3 and 6 the file A2 as well. For stages 0, 1 and 7, copies $C000-$C1FF to $4000-$41FF.","t":"code","b":[32,240,43],"m":"jsr","oa":11248,"o":"load_file_for_stage","x":[2182]},{"a":11203,"t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205"},{"a":11206,"t":"code","b":[240,22],"m":"beq","oa":11230,"o":"b_2BDE"},{"a":11208,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":11210,"t":"code","b":[240,18],"m":"beq","oa":11230,"o":"b_2BDE"},{"a":11212,"t":"code","b":[201,7],"m":"cmp","o":"#$07"},{"a":11214,"t":"code","b":[240,14],"m":"beq","oa":11230,"o":"b_2BDE"},{"a":11216,"t":"code","b":[201,3],"m":"cmp","o":"#$03"},{"a":11218,"t":"code","b":[240,5],"m":"beq","oa":11225,"o":"b_2BD9"},{"a":11220,"t":"code","b":[201,6],"m":"cmp","o":"#$06"},{"a":11222,"t":"code","b":[240,1],"m":"beq","oa":11225,"o":"b_2BD9"},{"a":11224,"t":"code","b":[96],"m":"rts"},{"a":11225,"l":"b_2BD9","t":"code","b":[169,50],"m":"lda","o":"#$32","x":[11218,11222]},{"a":11227,"t":"code","b":[76,246,43],"m":"jmp","oa":11254,"o":"load_file"},{"a":11230,"l":"b_2BDE","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[11206,11210,11214]},{"a":11232,"l":"b_2BE0","t":"code","b":[189,0,192],"m":"lda","oa":49152,"o":"stage_sprites,x","x":[11245]},{"a":11235,"t":"code","b":[157,0,64],"m":"sta","oa":16384,"o":"$4000,x"},{"a":11238,"t":"code","b":[189,0,193],"m":"lda","oa":49408,"o":"hand_outline_1,x"},{"a":11241,"t":"code","b":[157,0,65],"m":"sta","oa":16640,"o":"$4100,x"},{"a":11244,"t":"code","b":[232],"m":"inx"},{"a":11245,"t":"code","b":[208,241],"m":"bne","oa":11232,"o":"b_2BE0"},{"a":11247,"t":"code","b":[96],"m":"rts"},{"a":11248,"l":"load_file_for_stage","c":"Puts the stage's digit from $3B53 into the file name at $2BBD.","t":"code","b":[174,5,2],"m":"ldx","oa":517,"o":"a_0205","x":[11200]},{"a":11251,"t":"code","b":[189,83,59],"m":"lda","oa":15187,"o":"stage_files,x"},{"a":11254,"l":"load_file","c":"Loads the file whose name ends with the digit in A: sets the three-character name at $2BBD and calls the loader's routines at $C400 and $C200.","t":"code","b":[141,190,43],"m":"sta","oa":11198,"o":"load_name_digit","x":[11227]},{"a":11257,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":11259,"t":"code","b":[162,189],"m":"ldx","o":"#$BD"},{"a":11261,"t":"code","b":[160,43],"m":"ldy","o":"#$2B"},{"a":11263,"t":"code","b":[32,0,196],"m":"jsr","oa":50176,"o":"$C400"},{"a":11266,"t":"code","b":[32,0,194],"m":"jsr","oa":49664,"o":"$C200"},{"a":11269,"t":"code","b":[96],"m":"rts"},{"a":11270,"l":"trainer_patch","c":"The trainer's cheats. For each stage, when the matching flag at $C3F4-$C3FE (set in the trainer menu) is non-zero, pokes the loaded stage's code: stage 2 one flag, 3 one, 4 one, 5 two, 6 four and 8 two. Not part of Activision's game.","t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205","x":[2185]},{"a":11273,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":11275,"t":"code","b":[208,21],"m":"bne","oa":11298,"o":"b_2C22"},{"a":11277,"t":"code","b":[173,244,195],"m":"lda","oa":50164,"o":"$C3F4"},{"a":11280,"t":"code","b":[240,15],"m":"beq","oa":11297,"o":"r_2C21"},{"a":11282,"t":"code","b":[169,76],"m":"lda","o":"#$4C"},{"a":11284,"t":"code","b":[141,156,131],"m":"sta","oa":33692,"o":"$839C"},{"a":11287,"t":"code","b":[169,170],"m":"lda","o":"#$AA"},{"a":11289,"t":"code","b":[141,157,131],"m":"sta","oa":33693,"o":"$839D"},{"a":11292,"t":"code","b":[169,131],"m":"lda","o":"#$83"},{"a":11294,"t":"code","b":[141,158,131],"m":"sta","oa":33694,"o":"$839E"},{"a":11297,"l":"r_2C21","t":"code","b":[96],"m":"rts","x":[11280]},{"a":11298,"l":"b_2C22","t":"code","b":[201,3],"m":"cmp","o":"#$03","x":[11275]},{"a":11300,"t":"code","b":[208,16],"m":"bne","oa":11318,"o":"b_2C36"},{"a":11302,"t":"code","b":[173,245,195],"m":"lda","oa":50165,"o":"$C3F5"},{"a":11305,"t":"code","b":[240,10],"m":"beq","oa":11317,"o":"r_2C35"},{"a":11307,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":11309,"t":"code","b":[141,137,138],"m":"sta","oa":35465,"o":"$8A89"},{"a":11312,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11314,"t":"code","b":[141,102,143],"m":"sta","oa":36710,"o":"$8F66"},{"a":11317,"l":"r_2C35","t":"code","b":[96],"m":"rts","x":[11305]},{"a":11318,"l":"b_2C36","t":"code","b":[201,4],"m":"cmp","o":"#$04","x":[11300]},{"a":11320,"t":"code","b":[208,14],"m":"bne","oa":11336,"o":"b_2C48"},{"a":11322,"t":"code","b":[173,246,195],"m":"lda","oa":50166,"o":"$C3F6"},{"a":11325,"t":"code","b":[240,8],"m":"beq","oa":11335,"o":"r_2C47"},{"a":11327,"t":"code","b":[169,173],"m":"lda","o":"#$AD"},{"a":11329,"t":"code","b":[141,27,136],"m":"sta","oa":34843,"o":"$881B"},{"a":11332,"t":"code","b":[141,84,136],"m":"sta","oa":34900,"o":"$8854"},{"a":11335,"l":"r_2C47","t":"code","b":[96],"m":"rts","x":[11325]},{"a":11336,"l":"b_2C48","t":"code","b":[201,5],"m":"cmp","o":"#$05","x":[11320]},{"a":11338,"t":"code","b":[208,26],"m":"bne","oa":11366,"o":"b_2C66"},{"a":11340,"t":"code","b":[173,247,195],"m":"lda","oa":50167,"o":"$C3F7"},{"a":11343,"t":"code","b":[240,10],"m":"beq","oa":11355,"o":"b_2C5B"},{"a":11345,"t":"code","b":[169,173],"m":"lda","o":"#$AD"},{"a":11347,"t":"code","b":[141,120,129],"m":"sta","oa":33144,"o":"$8178"},{"a":11350,"t":"code","b":[169,189],"m":"lda","o":"#$BD"},{"a":11352,"t":"code","b":[141,142,142],"m":"sta","oa":36494,"o":"$8E8E"},{"a":11355,"l":"b_2C5B","t":"code","b":[173,248,195],"m":"lda","oa":50168,"o":"$C3F8","x":[11343]},{"a":11358,"t":"code","b":[240,5],"m":"beq","oa":11365,"o":"r_2C65"},{"a":11360,"t":"code","b":[169,96],"m":"lda","o":"#$60"},{"a":11362,"t":"code","b":[141,184,142],"m":"sta","oa":36536,"o":"$8EB8"},{"a":11365,"l":"r_2C65","t":"code","b":[96],"m":"rts","x":[11358]},{"a":11366,"l":"b_2C66","t":"code","b":[201,6],"m":"cmp","o":"#$06","x":[11338]},{"a":11368,"t":"code","b":[208,52],"m":"bne","oa":11422,"o":"b_2C9E"},{"a":11370,"t":"code","b":[173,249,195],"m":"lda","oa":50169,"o":"$C3F9"},{"a":11373,"t":"code","b":[240,5],"m":"beq","oa":11380,"o":"b_2C74"},{"a":11375,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11377,"t":"code","b":[141,153,146],"m":"sta","oa":37529,"o":"$9299"},{"a":11380,"l":"b_2C74","t":"code","b":[173,250,195],"m":"lda","oa":50170,"o":"$C3FA","x":[11373]},{"a":11383,"t":"code","b":[240,5],"m":"beq","oa":11390,"o":"b_2C7E"},{"a":11385,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11387,"t":"code","b":[141,152,135],"m":"sta","oa":34712,"o":"$8798"},{"a":11390,"l":"b_2C7E","t":"code","b":[173,251,195],"m":"lda","oa":50171,"o":"$C3FB","x":[11383]},{"a":11393,"t":"code","b":[240,11],"m":"beq","oa":11406,"o":"b_2C8E"},{"a":11395,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":11397,"t":"code","b":[141,69,144],"m":"sta","oa":36933,"o":"$9045"},{"a":11400,"t":"code","b":[141,154,145],"m":"sta","oa":37274,"o":"$919A"},{"a":11403,"t":"code","b":[141,222,145],"m":"sta","oa":37342,"o":"$91DE"},{"a":11406,"l":"b_2C8E","t":"code","b":[173,252,195],"m":"lda","oa":50172,"o":"$C3FC","x":[11393]},{"a":11409,"t":"code","b":[240,10],"m":"beq","oa":11421,"o":"r_2C9D"},{"a":11411,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11413,"t":"code","b":[141,100,139],"m":"sta","oa":35684,"o":"$8B64"},{"a":11416,"t":"code","b":[169,173],"m":"lda","o":"#$AD"},{"a":11418,"t":"code","b":[141,30,144],"m":"sta","oa":36894,"o":"$901E"},{"a":11421,"l":"r_2C9D","t":"code","b":[96],"m":"rts","x":[11409]},{"a":11422,"l":"b_2C9E","t":"code","b":[201,8],"m":"cmp","o":"#$08","x":[11368]},{"a":11424,"t":"code","b":[208,36],"m":"bne","oa":11462,"o":"r_2CC6"},{"a":11426,"t":"code","b":[173,253,195],"m":"lda","oa":50173,"o":"$C3FD"},{"a":11429,"t":"code","b":[240,11],"m":"beq","oa":11442,"o":"b_2CB2"},{"a":11431,"t":"code","b":[169,173],"m":"lda","o":"#$AD"},{"a":11433,"t":"code","b":[141,169,136],"m":"sta","oa":34985,"o":"$88A9"},{"a":11436,"t":"code","b":[141,172,136],"m":"sta","oa":34988,"o":"$88AC"},{"a":11439,"t":"code","b":[141,181,136],"m":"sta","oa":34997,"o":"$88B5"},{"a":11442,"l":"b_2CB2","t":"code","b":[173,254,195],"m":"lda","oa":50174,"o":"$C3FE","x":[11429]},{"a":11445,"t":"code","b":[240,15],"m":"beq","oa":11462,"o":"r_2CC6"},{"a":11447,"t":"code","b":[169,76],"m":"lda","o":"#$4C"},{"a":11449,"t":"code","b":[141,57,129],"m":"sta","oa":33081,"o":"$8139"},{"a":11452,"t":"code","b":[169,79],"m":"lda","o":"#$4F"},{"a":11454,"t":"code","b":[141,58,129],"m":"sta","oa":33082,"o":"$813A"},{"a":11457,"t":"code","b":[169,129],"m":"lda","o":"#$81"},{"a":11459,"t":"code","b":[141,59,129],"m":"sta","oa":33083,"o":"$813B"},{"a":11462,"l":"r_2CC6","t":"code","b":[96],"m":"rts","x":[11424,11445]},{"a":11463,"t":"gap","n":520},{"a":11983,"l":"frame_counter_init","c":"Nine starting values copied by install_vectors to $0208-$0210: the frame counters and clock ($0209 = $FF, $020A = 1, $020B = $FF, $020C = 1), then the idle counters and the pause flag at zero.","t":"byte","b":[0,255,1,255,1,0,0,0],"x":[2791]},{"a":11991,"t":"byte","b":[0]},{"a":11992,"l":"font_wide","c":"The small font draw_char_wide uses, characters $20-$7F (capitals, figures, punctuation and lower case), four bytes a character: each byte holds two rows of four pixels, high nibble first, and each nibble is widened into a multicolour bitmap byte by the table at $32D8.","t":"byte","b":[0,0,0,0,68,68,64,64]},{"a":12000,"t":"byte","b":[170,160,0,0,170,234,234,160]},{"a":12008,"t":"byte","b":[78,206,110,64,162,68,72,160]},{"a":12016,"t":"byte","b":[74,76,170,96,68,64,0,0]},{"a":12024,"t":"byte","b":[36,68,68,32,132,68,68,128]},{"a":12032,"t":"byte","b":[4,238,228,0,4,78,68,0]},{"a":12040,"t":"byte","b":[0,0,68,128,0,14,0,0]},{"a":12048,"t":"byte","b":[0,0,4,64,34,68,72,128]},{"a":12056,"t":"byte","b":[234,170,170,224,76,68,68,224]},{"a":12064,"t":"byte","b":[226,46,136,224,226,38,34,224]},{"a":12072,"t":"byte","b":[170,174,34,32,232,142,34,224]},{"a":12080,"t":"byte","b":[232,142,170,224,226,38,68,64]},{"a":12088,"t":"byte","b":[234,174,170,224,234,174,34,32]},{"a":12096,"t":"byte","b":[4,64,68,0,4,64,68,128]},{"a":12104,"t":"byte","b":[36,72,68,32,0,224,224,0]},{"a":12112,"t":"byte","b":[132,66,68,128,234,36,64,64]},{"a":12120,"t":"byte","b":[234,238,232,224,234,174,170,160]},{"a":12128,"t":"byte","b":[234,172,170,224,232,136,136,224]},{"a":12136,"t":"byte","b":[202,170,170,192,232,140,136,224]},{"a":12144,"t":"byte","b":[232,140,136,128,232,138,170,224]},{"a":12152,"t":"byte","b":[170,174,170,160,228,68,68,224]},{"a":12160,"t":"byte","b":[34,34,42,224,170,172,170,160]},{"a":12168,"t":"byte","b":[136,136,136,224,174,238,170,160]},{"a":12176,"t":"byte","b":[174,238,234,160,234,170,170,224]},{"a":12184,"t":"byte","b":[234,174,136,128,234,170,236,96]},{"a":12192,"t":"byte","b":[234,172,170,160,234,142,42,224]},{"a":12200,"t":"byte","b":[228,68,68,64,170,170,170,224]},{"a":12208,"t":"byte","b":[170,170,174,64,170,174,238,160]},{"a":12216,"t":"byte","b":[170,228,234,160,170,174,68,64]},{"a":12224,"t":"byte","b":[226,110,200,224,100,68,68,96]},{"a":12232,"t":"byte","b":[136,68,66,32,196,68,68,192]},{"a":12240,"t":"byte","b":[78,160,0,0,0,0,0,224]},{"a":12248,"t":"byte","b":[68,64,0,0,0,98,234,224]},{"a":12256,"t":"byte","b":[136,142,170,224,0,232,136,224]},{"a":12264,"t":"byte","b":[34,46,170,224,0,234,232,224]},{"a":12272,"t":"byte","b":[234,140,136,128,0,234,174,46]},{"a":12280,"t":"byte","b":[136,142,170,160,4,4,68,64]},{"a":12288,"t":"byte","b":[2,2,34,224,136,170,202,160]},{"a":12296,"t":"byte","b":[68,68,68,64,0,238,234,160]},{"a":12304,"t":"byte","b":[0,234,170,160,0,234,170,224]},{"a":12312,"t":"byte","b":[0,234,174,136,0,234,174,34]},{"a":12320,"t":"byte","b":[0,234,136,128,0,232,226,224]},{"a":12328,"t":"byte","b":[78,68,68,64,0,170,170,224]},{"a":12336,"t":"byte","b":[0,170,174,64,0,170,238,160]},{"a":12344,"t":"byte","b":[0,170,74,160,0,170,174,46]},{"a":12352,"t":"byte","b":[0,226,232,224,100,76,68,96]},{"a":12360,"t":"byte","b":[68,68,68,64,196,70,68,192]},{"a":12368,"t":"byte","b":[0,198,0,0,164,164,164,160]},{"a":12376,"l":"font8","c":"The 8-by-8 font draw_char uses for characters $20-$5F, eight bytes a character, one byte to a row.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":12384,"t":"byte","b":[24,24,24,24,0,0,24,0]},{"a":12392,"t":"byte","b":[102,102,102,0,0,0,0,0]},{"a":12400,"t":"byte","b":[102,102,255,102,255,102,102,0]},{"a":12408,"t":"byte","b":[24,62,96,60,6,124,24,0]},{"a":12416,"t":"byte","b":[98,102,12,24,48,102,70,0]},{"a":12424,"t":"byte","b":[60,102,60,56,103,102,63,0]},{"a":12432,"t":"byte","b":[6,12,24,0,0,0,0,0]},{"a":12440,"t":"byte","b":[12,24,48,48,48,24,12,0]},{"a":12448,"l":"font8_glyph_29","c":"The font's glyphs for $29 onward.","t":"byte","b":[48,24,12,12,12,24,48,0]},{"a":12456,"t":"byte","b":[0,102,60,255,60,102,0,0]},{"a":12464,"t":"byte","b":[0,24,24,126,24,24,0,0]},{"a":12472,"t":"byte","b":[0,0,0,0,0,24,24,48]},{"a":12480,"t":"byte","b":[0,0,0,126,0,0,0,0]},{"a":12488,"t":"byte","b":[0,0,0,0,0,24,24,0]},{"a":12496,"t":"byte","b":[0,3,6,12,24,48,96,0]},{"a":12504,"t":"byte","b":[60,126,110,118,102,126,60,0]},{"a":12512,"t":"byte","b":[24,56,56,24,24,126,126,0]},{"a":12520,"t":"byte","b":[60,126,102,12,56,126,126,0]},{"a":12528,"t":"byte","b":[124,126,6,28,6,126,124,0]},{"a":12536,"t":"byte","b":[14,30,54,102,127,127,6,0]},{"a":12544,"t":"byte","b":[126,126,96,124,6,126,124,0]},{"a":12552,"t":"byte","b":[62,126,96,124,102,126,60,0]},{"a":12560,"t":"byte","b":[126,126,14,28,56,48,48,0]},{"a":12568,"t":"byte","b":[60,126,102,60,102,126,60,0]},{"a":12576,"t":"byte","b":[60,126,102,62,6,126,124,0]},{"a":12584,"t":"byte","b":[0,0,24,0,0,24,0,0]},{"a":12592,"t":"byte","b":[0,0,24,0,0,24,24,48]},{"a":12600,"t":"byte","b":[14,24,48,96,48,24,14,0]},{"a":12608,"t":"byte","b":[0,0,126,0,126,0,0,0]},{"a":12616,"t":"byte","b":[112,24,12,6,12,24,112,0]},{"a":12624,"t":"byte","b":[60,102,6,12,24,0,24,0]},{"a":12632,"t":"byte","b":[120,204,220,220,192,196,120,0]},{"a":12640,"t":"byte","b":[48,120,204,252,252,204,204,0]},{"a":12648,"t":"byte","b":[248,252,204,248,204,252,248,0]},{"a":12656,"t":"byte","b":[120,252,204,192,204,252,120,0]},{"a":12664,"t":"byte","b":[240,248,204,204,204,248,240,0]},{"a":12672,"t":"byte","b":[252,252,192,240,192,252,252,0]},{"a":12680,"t":"byte","b":[252,252,192,240,240,192,192,0]},{"a":12688,"t":"byte","b":[120,252,204,192,220,204,120,0]},{"a":12696,"t":"byte","b":[204,204,252,252,204,204,204,0]},{"a":12704,"t":"byte","b":[252,252,48,48,48,252,252,0]},{"a":12712,"t":"byte","b":[12,12,12,204,204,252,120,0]},{"a":12720,"t":"byte","b":[204,204,248,240,248,204,204,0]},{"a":12728,"t":"byte","b":[192,192,192,192,192,252,252,0]},{"a":12736,"t":"byte","b":[204,252,252,252,204,204,204,0]},{"a":12744,"t":"byte","b":[204,204,236,252,252,220,204,0]},{"a":12752,"t":"byte","b":[120,252,204,204,204,252,120,0]},{"a":12760,"t":"byte","b":[248,252,204,252,248,192,192,0]},{"a":12768,"t":"byte","b":[120,252,204,204,252,120,28,0]},{"a":12776,"t":"byte","b":[248,252,204,248,252,204,204,0]},{"a":12784,"t":"byte","b":[124,236,224,120,28,220,248,0]},{"a":12792,"t":"byte","b":[252,252,48,48,48,48,48,0]},{"a":12800,"t":"byte","b":[204,204,204,204,204,252,120,0]},{"a":12808,"t":"byte","b":[204,204,204,204,252,120,48,0]},{"a":12816,"t":"byte","b":[204,204,204,252,252,252,204,0]},{"a":12824,"t":"byte","b":[204,204,252,120,252,204,204,0]},{"a":12832,"t":"byte","b":[204,204,252,120,48,48,48,0]},{"a":12840,"t":"byte","b":[252,252,24,48,96,252,252,0]},{"a":12848,"t":"byte","b":[60,48,48,48,48,48,60,0]},{"a":12856,"t":"byte","b":[12,18,48,124,48,98,252,0]},{"a":12864,"t":"byte","b":[60,12,12,12,12,12,60,0]},{"a":12872,"t":"byte","b":[0,24,60,126,24,24,24,24]},{"a":12880,"t":"byte","b":[0,0,0,0,0,0,0,127]},{"a":12888,"l":"key_rows","c":"The eight masks read_keys writes to CIA 1 port A to select each keyboard row: FE FD FB F7 EF DF BF 7F.","t":"byte","b":[254,253,251,247,239,223,191,127],"x":[2991]},{"a":12896,"l":"key_ignore","c":"For each row, the keys read_keys never reports as newly pressed (the shifts, CTRL, the Commodore key and other keys the game does not type), ORed into the held keys.","t":"byte","b":[132,128,0,0,0,0,89,166],"x":[3004]},{"a":12904,"l":"key_chars","c":"The character for each key, 64 bytes: the first eight are bit 0 of rows 0 to 7, then bit 1, and so on. Keys that type nothing are $78.","t":"byte","b":[127,51,53,55,57,43,120,49],"x":[3055]},{"a":12912,"t":"byte","b":[13,87,82,89,73,80,42,120]},{"a":12920,"t":"byte","b":[120,65,68,71,74,76,59,120]},{"a":12928,"t":"byte","b":[3,52,54,56,48,45,120,50]},{"a":12936,"t":"byte","b":[0,90,67,66,77,46,120,32]},{"a":12944,"t":"byte","b":[1,83,70,72,75,58,61,120]},{"a":12952,"t":"byte","b":[2,69,84,85,79,64,120,81]},{"a":12960,"t":"byte","b":[120,120,88,86,78,44,47,120]},{"a":12968,"l":"row_lo","c":"The low byte of 40 times the row, for rows 0 to 23: the offset of a text row's first character in the screen matrix (times 8 in the bitmap).","t":"byte","b":[0,40,80,120,160,200,240,24],"x":[3141]},{"a":12976,"t":"byte","b":[64,104,144,184,224,8,48,88]},{"a":12984,"t":"byte","b":[128,168,208,248,32,72,112,152]},{"a":12992,"l":"row_hi","c":"The high byte of 40 times the row, for rows 0 to 23.","t":"byte","b":[0,0,0,0,0,0,0,1],"x":[3148]},{"a":13000,"t":"byte","b":[1,1,1,1,1,2,2,2]},{"a":13008,"t":"byte","b":[2,2,2,2,3,3,3,3]},{"a":13016,"l":"nibble_wide","c":"For each four-pixel nibble of font_wide, the multicolour byte that draws it: a set pixel becomes the bit pair 01 and a clear one 10 ($AA for an empty row, $55 for a full one).","t":"byte","b":[170,169,166,165,154,153,150,149],"x":[3289,3304]},{"a":13024,"t":"byte","b":[106,105,102,101,90,89,86,85]},{"a":13032,"l":"marine_names","c":"The marines' names in ASCII with capitals and lower case, each ending in a zero: Hicks, Gorman, Vasquez, Hudson, Drake, Frost, Dietrich and Crowe, the order of the bits of $0204 from bit 0 (Hicks) to bit 7 (Crowe).","t":"byte","b":[72,105,99,107,115,0,71,111]},{"a":13040,"t":"byte","b":[114,109,97,110,0,86,97,115]},{"a":13048,"t":"byte","b":[113,117,101,122,0,72,117,100]},{"a":13056,"t":"byte","b":[115,111,110,0,68,114,97,107]},{"a":13064,"t":"byte","b":[101,0,70,114,111,115,116,0]},{"a":13072,"t":"byte","b":[68,105,101,116,114,105,99,104]},{"a":13080,"t":"byte","b":[0,67,114,111,119,101,0]},{"a":13087,"l":"marine_name_lo","c":"The low bytes of the eight names' addresses.","t":"byte","b":[232,238,245,253,4,10,16,25]},{"a":13095,"l":"marine_name_hi","c":"The high bytes of the eight names' addresses.","t":"byte","b":[50,50,50,50,51,51,51,51]},{"a":13103,"l":"music_cmd_lo","c":"Low bytes of the eight command handlers, for commands $80-$FF by bits 4 to 6: tempo, volume, envelope, repeat, call, effect, waveform, extended.","t":"byte","b":[243,4,21,52,105,177,191,215],"x":[9429]},{"a":13111,"l":"music_cmd_hi","c":"High bytes of the eight command handlers.","t":"byte","b":[36,37,37,37,37,37,37,37],"x":[9435]},{"a":13119,"l":"music_ext_lo","c":"Low bytes of the sixteen extended command handlers, $F0 to $FF.","t":"byte","b":[236,49,160,177,185,211,230,249],"x":[9693]},{"a":13127,"t":"byte","b":[11,11,11,11,32,195,75,75]},{"a":13135,"l":"music_ext_hi","c":"High bytes of the sixteen extended command handlers.","t":"byte","b":[37,38,38,38,38,38,38,38],"x":[9699]},{"a":13143,"t":"byte","b":[39,39,39,39,39,36,39]},{"a":13150,"l":"fx_lo","c":"Low bytes of the frame effects' handlers, from effect 1 at $335F: drift, filter from voice 3, both, fade-in, then RTS for the rest.","t":"byte","b":[39,97,160,170,177,206,206,206],"x":[10251]},{"a":13158,"t":"byte","b":[206,206,206,206,206,206,206,206]},{"a":13166,"l":"fx_hi","c":"High bytes of the frame effects' handlers.","t":"byte","b":[206,40,40,40,40,40,40,40],"x":[10257]},{"a":13174,"t":"byte","b":[40,40,40,40,40,40,40,40]},{"a":13182,"t":"byte","b":[40]},{"a":13183,"l":"voice_stack_lo","c":"The low bytes of each voice's stack for loops and calls: $04D0, $0500 and $0530.","t":"byte","b":[208,0,48],"x":[9524,9577,9708,9777]},{"a":13186,"l":"voice_stack_hi","c":"The high bytes of each voice's stack.","t":"byte","b":[4,5,5],"x":[9529,9582,9713,9782]},{"a":13189,"l":"voice_reg","c":"Each voice's offset among the SID's registers: 0, 7 and 14.","t":"byte","b":[0,7,14],"x":[9511,9670,9928,9947,9977,9995,10151,10182,10221,10263]},{"a":13192,"l":"voice_filter_on","c":"The bit that routes each voice through the filter: 01 02 04.","t":"byte","b":[1,2,4],"x":[10068]},{"a":13195,"l":"voice_filter_off","c":"The masks that take each voice out of the filter: FE FD FB.","t":"byte","b":[254,253,251],"x":[10073]},{"a":13198,"l":"note_lengths","c":"The note lengths in music ticks that a duration index picks: 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 36 and 48.","t":"byte","b":[2,3,4,6,8,9,12,16],"x":[10116,10199]},{"a":13206,"t":"byte","b":[18,24,36,48]},{"a":13210,"l":"freq_lo","c":"The low bytes of the SID frequency of each note, 96 notes in semitones.","t":"byte","b":[12,28,45,62,81,102,123,145],"x":[10144]},{"a":13218,"t":"byte","b":[169,195,221,250,24,56,90,125]},{"a":13226,"t":"byte","b":[163,204,246,35,83,134,187,244]},{"a":13234,"t":"byte","b":[48,112,180,251,71,152,237,71]},{"a":13242,"t":"byte","b":[167,12,119,233,97,225,104,247]},{"a":13250,"t":"byte","b":[143,48,218,143,78,24,239,210]},{"a":13258,"t":"byte","b":[195,195,209,239,31,96,181,30]},{"a":13266,"t":"byte","b":[156,49,223,165,135,134,162,223]},{"a":13274,"t":"byte","b":[62,193,107,60,57,99,190,75]},{"a":13282,"t":"byte","b":[15,12,69,191,125,131,214,121]},{"a":13290,"t":"byte","b":[115,199,124,151,30,24,139,126]},{"a":13298,"t":"byte","b":[250,6,172,243,230,143,248,46]},{"a":13306,"l":"freq_hi","c":"The high bytes of the SID frequency of each note.","t":"byte","b":[1,1,1,1,1,1,1,1],"x":[10148]},{"a":13314,"t":"byte","b":[1,1,1,1,2,2,2,2]},{"a":13322,"t":"byte","b":[2,2,2,3,3,3,3,3]},{"a":13330,"t":"byte","b":[4,4,4,4,5,5,5,6]},{"a":13338,"t":"byte","b":[6,7,7,7,8,8,9,9]},{"a":13346,"t":"byte","b":[10,11,11,12,13,14,14,15]},{"a":13354,"t":"byte","b":[16,17,18,19,21,22,23,25]},{"a":13362,"t":"byte","b":[26,28,29,31,33,35,37,39]},{"a":13370,"t":"byte","b":[42,44,47,50,53,56,59,63]},{"a":13378,"t":"byte","b":[67,71,75,79,84,89,94,100]},{"a":13386,"t":"byte","b":[106,112,119,126,134,142,150,159]},{"a":13394,"t":"byte","b":[168,179,189,200,212,225,238,253]},{"a":13402,"l":"tune2","c":"The header of tune2: its three voices start at $28E5, $2939 and $2978. Started by the title screen at $83D3 and by the ending after the Queen fight at $88E4.","t":"byte","b":[229,40,57,41,120]},{"a":13407,"l":"tune2_end","c":"The tune header's last byte ($29); set_effect_voice indexes the table from here with X = 1 to 3.","t":"byte","b":[41],"x":[11146]},{"a":13408,"l":"effect_slot_end","c":"For voices 1 to 3, the offset of the last of the voice's seven bytes in the effects' SID image at $057C: 6, 13 and 20.","t":"byte","b":[6,13,20]},{"a":13411,"l":"sfx_roar","c":"Sound effect record (start $3484, every frame $34A2, no voice routines, 200 frames, priority 20): three noise voices at different pitches through a resonant filter whose cutoff follows voice 3's envelope, the second and third drifting in pitch. Started by level 4 at $8173.","t":"byte","b":[132,52,162,52,238,52,238,52]},{"a":13419,"t":"byte","b":[238,52,200,20]},{"a":13423,"l":"sfx_roar_voice1","c":"The three voices' settings for sfx_roar, seven bytes each (frequency, pulse width, control, attack/decay, sustain/release): noise at $0861, $0430 and $08E1 with short decays.","t":"byte","b":[97,8,0,8,129,10,0],"x":[13459]},{"a":13430,"l":"sfx_roar_voice2","c":"Seven bytes of voice settings for sfx_roar: noise at frequency $0430, attack/decay $09, sustain/release $00.","t":"byte","b":[48,4,0,1,129,9,0],"x":[13465]},{"a":13437,"l":"sfx_roar_voice3","c":"Seven bytes of voice settings for sfx_roar: noise at frequency $08E1, attack/decay $08, sustain/release $00.","t":"byte","b":[225,8,0,1,129,8,0],"x":[13471]},{"a":13444,"c":"sfx_roar's start: filter mode low and band pass at volume 13 ($0594 = $3D), full resonance on voices 1 and 2 ($0593 = $F3), then the three voices.","t":"code","b":[169,61],"m":"lda","o":"#$3D"},{"a":13446,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":13449,"t":"code","b":[169,243],"m":"lda","o":"#$F3"},{"a":13451,"t":"code","b":[141,147,5],"m":"sta","oa":1427,"o":"a_0593"},{"a":13454,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":13456,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13459,"c":"set_effect_voice's inline pointer: the voice settings at $346F.","t":"byte","b":[111,52],"d":["sfx_roar_voice1"],"ta":[13423],"note":"split table: 1 lo/hi pointers"},{"a":13461,"c":"sfx_roar goes on after voice 1's settings pointer at $3493.","t":"code","b":[232],"m":"inx"},{"a":13462,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13465,"c":"set_effect_voice's inline pointer: the voice settings at $3476.","t":"byte","b":[118,52],"d":["sfx_roar_voice2"],"ta":[13430],"note":"split table: 1 lo/hi pointers"},{"a":13467,"c":"sfx_roar goes on after the next voice's settings pointer at $3499.","t":"code","b":[232],"m":"inx"},{"a":13468,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13471,"c":"set_effect_voice's inline pointer: the voice settings at $347D.","t":"byte","b":[125,52],"d":["sfx_roar_voice3"],"ta":[13437],"note":"split table: 1 lo/hi pointers"},{"a":13473,"c":"sfx_roar goes on after the next voice's settings pointer at $349F.","t":"code","b":[96],"m":"rts"},{"a":13474,"l":"sfx_roar_frame","c":"Each frame drifts the second and third voices (fx_drift_voice with X = 1 and 2) and lets the filter follow voice 3's envelope (fx_filter_follow).","t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":13476,"t":"code","b":[32,193,58],"m":"jsr","oa":15041,"o":"fx_drift_voice"},{"a":13479,"t":"code","b":[232],"m":"inx"},{"a":13480,"t":"code","b":[32,193,58],"m":"jsr","oa":15041,"o":"fx_drift_voice"},{"a":13483,"t":"code","b":[32,247,58],"m":"jsr","oa":15095,"o":"fx_filter_follow"},{"a":13486,"t":"code","b":[96],"m":"rts"},{"a":13487,"l":"sfx_burst","c":"Sound effect record (start $34D0, every frame $34EF, 10 frames, priority 30): three noise voices with a short decay whose pitches fall each frame. Started by levels 2 ($88A5) and 5 ($87A0).","t":"byte","b":[208,52,239,52,238,52,238,52]},{"a":13495,"t":"byte","b":[238,52,10,30]},{"a":13499,"l":"sfx_burst_voice1","c":"sfx_burst's three voices: noise at $10C3, $0861 and $0C8F.","t":"byte","b":[195,16,0,8,129,9,0],"x":[13535]},{"a":13506,"l":"sfx_burst_voice2","c":"Seven bytes of voice settings for sfx_burst: noise at frequency $0861, attack/decay $09, sustain/release $00.","t":"byte","b":[97,8,0,1,129,9,0],"x":[13541]},{"a":13513,"l":"sfx_burst_voice3","c":"Seven bytes of voice settings for sfx_burst: noise at frequency $0C8F, attack/decay $09, sustain/release $00.","t":"byte","b":[143,12,0,1,129,9,0],"x":[13547]},{"a":13520,"c":"sfx_burst's start: volume 13, full resonance with no voice routed through the filter ($0593 = $F0), then the voices.","t":"code","b":[169,61],"m":"lda","o":"#$3D"},{"a":13522,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":13525,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":13527,"t":"code","b":[141,147,5],"m":"sta","oa":1427,"o":"a_0593"},{"a":13530,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":13532,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13535,"c":"set_effect_voice's inline pointer: the voice settings at $34BB.","t":"byte","b":[187,52],"d":["sfx_burst_voice1"],"ta":[13499],"note":"split table: 1 lo/hi pointers"},{"a":13537,"c":"sfx_burst goes on after voice 1's settings pointer at $34DF.","t":"code","b":[232],"m":"inx"},{"a":13538,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13541,"c":"set_effect_voice's inline pointer: the voice settings at $34C2.","t":"byte","b":[194,52],"d":["sfx_burst_voice2"],"ta":[13506],"note":"split table: 1 lo/hi pointers"},{"a":13543,"c":"sfx_burst goes on after the next voice's settings pointer at $34E5.","t":"code","b":[232],"m":"inx"},{"a":13544,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13547,"c":"set_effect_voice's inline pointer: the voice settings at $34C9.","t":"byte","b":[201,52],"d":["sfx_burst_voice3"],"ta":[13513],"note":"split table: 1 lo/hi pointers"},{"a":13549,"c":"sfx_burst goes on after the next voice's settings pointer at $34EB.","t":"code","b":[96],"m":"rts"},{"a":13550,"l":"fx_none","c":"An RTS: the routine an effect record names when it needs nothing done.","t":"code","b":[96],"m":"rts"},{"a":13551,"l":"sfx_burst_frame","c":"Lets the filter follow voice 3's envelope and lowers voice 1's frequency by $177 and voices 2 and 3 by $FA each frame.","t":"code","b":[32,247,58],"m":"jsr","oa":15095,"o":"fx_filter_follow"},{"a":13554,"t":"code","b":[173,124,5],"m":"lda","oa":1404,"o":"f_057C"},{"a":13557,"t":"code","b":[56],"m":"sec"},{"a":13558,"t":"code","b":[233,119],"m":"sbc","o":"#$77"},{"a":13560,"t":"code","b":[141,124,5],"m":"sta","oa":1404,"o":"f_057C"},{"a":13563,"t":"code","b":[173,125,5],"m":"lda","oa":1405,"o":"a_057D"},{"a":13566,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":13568,"t":"code","b":[141,125,5],"m":"sta","oa":1405,"o":"a_057D"},{"a":13571,"t":"code","b":[173,131,5],"m":"lda","oa":1411,"o":"a_0583"},{"a":13574,"t":"code","b":[56],"m":"sec"},{"a":13575,"t":"code","b":[233,250],"m":"sbc","o":"#$FA"},{"a":13577,"t":"code","b":[141,131,5],"m":"sta","oa":1411,"o":"a_0583"},{"a":13580,"t":"code","b":[173,132,5],"m":"lda","oa":1412,"o":"a_0584"},{"a":13583,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":13585,"t":"code","b":[141,132,5],"m":"sta","oa":1412,"o":"a_0584"},{"a":13588,"t":"code","b":[173,138,5],"m":"lda","oa":1418,"o":"a_058A"},{"a":13591,"t":"code","b":[56],"m":"sec"},{"a":13592,"t":"code","b":[233,250],"m":"sbc","o":"#$FA"},{"a":13594,"t":"code","b":[141,138,5],"m":"sta","oa":1418,"o":"a_058A"},{"a":13597,"t":"code","b":[173,139,5],"m":"lda","oa":1419,"o":"a_058B"},{"a":13600,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":13602,"t":"code","b":[141,139,5],"m":"sta","oa":1419,"o":"a_058B"},{"a":13605,"t":"code","b":[96],"m":"rts"},{"a":13606,"l":"sfx_crash","c":"Sound effect record (start $3547, voice routines $3572 and $357A, 15 frames, priority 20): voice 1's noise starts at once and the two routines start voice 2's after three frames and voice 3's after four, each a short noise hit. Started by levels 2 ($861F) and 5 ($8509).","t":"byte","b":[71,53,238,52,114,53,122,53]},{"a":13614,"t":"byte","b":[238,52,15,20]},{"a":13618,"l":"sfx_crash_voice1","c":"sfx_crash's three voices: noise at $10C3, $2187 and $0861.","t":"byte","b":[195,16,0,8,129,6,0],"x":[13659]},{"a":13625,"l":"sfx_crash_voice2","c":"Seven bytes of voice settings for sfx_crash_v2: noise at frequency $2187, attack/decay $06, sustain/release $00.","t":"byte","b":[135,33,0,1,129,6,0],"x":[13687]},{"a":13632,"l":"sfx_crash_voice3","c":"Seven bytes of voice settings for sfx_crash_v3: noise at frequency $0861, attack/decay $06, sustain/release $00.","t":"byte","b":[97,8,0,1,129,6,0],"x":[13695]},{"a":13639,"c":"sfx_crash's start: voice 1, and the timers that start voices 2 and 3 ($05A5 = 3, $05A6 = 4).","t":"code","b":[169,101],"m":"lda","o":"#$65"},{"a":13641,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":13644,"t":"code","b":[169,242],"m":"lda","o":"#$F2"},{"a":13646,"t":"code","b":[141,147,5],"m":"sta","oa":1427,"o":"a_0593"},{"a":13649,"t":"code","b":[169,168],"m":"lda","o":"#$A8"},{"a":13651,"t":"code","b":[141,146,5],"m":"sta","oa":1426,"o":"a_0592"},{"a":13654,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":13656,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13659,"c":"set_effect_voice's inline pointer: the voice settings at $3532.","t":"byte","b":[50,53],"d":["sfx_crash_voice1"],"ta":[13618],"note":"split table: 1 lo/hi pointers"},{"a":13661,"c":"sfx_crash goes on after voice 1's settings pointer at $355B.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13663,"t":"code","b":[141,162,5],"m":"sta","oa":1442,"o":"a_05A2"},{"a":13666,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":13668,"t":"code","b":[141,165,5],"m":"sta","oa":1445,"o":"a_05A5"},{"a":13671,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13673,"t":"code","b":[141,163,5],"m":"sta","oa":1443,"o":"a_05A3"},{"a":13676,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":13678,"t":"code","b":[141,166,5],"m":"sta","oa":1446,"o":"a_05A6"},{"a":13681,"t":"code","b":[96],"m":"rts"},{"a":13682,"l":"sfx_crash_v2","c":"Starts sfx_crash's second voice.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":13684,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13687,"c":"set_effect_voice's inline pointer: the voice settings at $3539.","t":"byte","b":[57,53],"d":["sfx_crash_voice2"],"ta":[13625],"note":"split table: 1 lo/hi pointers"},{"a":13689,"c":"sfx_crash_v2 goes on after voice 2's settings pointer at $3577.","t":"code","b":[96],"m":"rts"},{"a":13690,"l":"sfx_crash_v3","c":"Starts sfx_crash's third voice.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":13692,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13695,"c":"set_effect_voice's inline pointer: the voice settings at $3540.","t":"byte","b":[64,53],"d":["sfx_crash_voice3"],"ta":[13632],"note":"split table: 1 lo/hi pointers"},{"a":13697,"c":"sfx_crash_v3 goes on after voice 3's settings pointer at $357F.","t":"code","b":[96],"m":"rts"},{"a":13698,"l":"sfx_alarm","c":"Sound effect record (start $35A3, every frame $363D, voice 1 $35E7, voice 2 $35F3, no length, priority 40): three ring-modulated triangle voices whose frequencies are set at random every frame, a warbling electronic noise; after 40 frames voice 1's routine releases the voices and after a random 16 to 47 frames voice 2's silences the effect. Started by levels 2, 3, 4 and 5 ($8CD0, $8593, $89FC, $8961, $9028) and five times in the Queen fight ($8100, $810A, $8139, $8228, $8498).","t":"byte","b":[163,53,61,54,231,53,243,53]},{"a":13706,"t":"byte","b":[238,52,0,40]},{"a":13710,"l":"sfx_alarm_voice1","c":"sfx_alarm's three voices: ring-modulated triangle at $2187, $2386 and $1FA5, full sustain.","t":"byte","b":[135,33,0,8,21,0,250],"x":[13756]},{"a":13717,"l":"sfx_alarm_voice2","c":"Seven bytes of voice settings for sfx_alarm: ring-modulated triangle at frequency $2386, attack/decay $00, sustain/release $FA.","t":"byte","b":[134,35,0,1,21,0,250],"x":[13763]},{"a":13724,"l":"sfx_alarm_voice3","c":"Seven bytes of voice settings for sfx_alarm: ring-modulated triangle at frequency $1FA5, attack/decay $00, sustain/release $FA.","t":"byte","b":[165,31,0,1,21,0,250],"x":[13770]},{"a":13731,"c":"sfx_alarm's start: the voices, then the timer for voice 2's routine (16 plus a random 0 to 31 frames) and for voice 1's (40 frames).","t":"code","b":[169,110],"m":"lda","o":"#$6E"},{"a":13733,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":13736,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":13738,"t":"code","b":[141,147,5],"m":"sta","oa":1427,"o":"a_0593"},{"a":13741,"t":"code","b":[169,168],"m":"lda","o":"#$A8"},{"a":13743,"t":"code","b":[141,146,5],"m":"sta","oa":1426,"o":"a_0592"},{"a":13746,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13748,"t":"code","b":[141,170,5],"m":"sta","oa":1450,"o":"a_05AA"},{"a":13751,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":13753,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13756,"c":"set_effect_voice's inline pointer: the voice settings at $358E.","t":"byte","b":[142,53],"d":["sfx_alarm_voice1"],"ta":[13710],"note":"split table: 1 lo/hi pointers"},{"a":13758,"c":"sfx_alarm goes on after voice 1's settings pointer at $35BC.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":13760,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13763,"c":"set_effect_voice's inline pointer: the voice settings at $3595.","t":"byte","b":[149,53],"d":["sfx_alarm_voice2"],"ta":[13717],"note":"split table: 1 lo/hi pointers"},{"a":13765,"c":"sfx_alarm goes on after voice 2's settings pointer at $35C3.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":13767,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13770,"c":"set_effect_voice's inline pointer: the voice settings at $359C.","t":"byte","b":[156,53],"d":["sfx_alarm_voice3"],"ta":[13724],"note":"split table: 1 lo/hi pointers"},{"a":13772,"c":"sfx_alarm goes on after voice 3's settings pointer at $35CA.","t":"code","b":[32,164,13],"m":"jsr","oa":3492,"o":"random"},{"a":13775,"t":"code","b":[41,31],"m":"and","o":"#$1F"},{"a":13777,"t":"code","b":[24],"m":"clc"},{"a":13778,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":13780,"t":"code","b":[141,166,5],"m":"sta","oa":1446,"o":"a_05A6"},{"a":13783,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13785,"t":"code","b":[141,163,5],"m":"sta","oa":1443,"o":"a_05A3"},{"a":13788,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13790,"t":"code","b":[141,162,5],"m":"sta","oa":1442,"o":"a_05A2"},{"a":13793,"t":"code","b":[169,40],"m":"lda","o":"#$28"},{"a":13795,"t":"code","b":[141,165,5],"m":"sta","oa":1445,"o":"a_05A5"},{"a":13798,"t":"code","b":[96],"m":"rts"},{"a":13799,"l":"fx_release_tri","c":"Releases all three voices: control $14, ring-modulated triangle with the gate off.","t":"code","b":[169,20],"m":"lda","o":"#$14"},{"a":13801,"t":"code","b":[141,128,5],"m":"sta","oa":1408,"o":"a_0580"},{"a":13804,"t":"code","b":[141,135,5],"m":"sta","oa":1415,"o":"a_0587"},{"a":13807,"t":"code","b":[141,142,5],"m":"sta","oa":1422,"o":"a_058E"},{"a":13810,"t":"code","b":[96],"m":"rts"},{"a":13811,"l":"fx_stop","c":"Ends the effect (silence_effects).","t":"code","b":[76,229,42],"m":"jmp","oa":10981,"o":"silence_effects"},{"a":13814,"l":"sfx_siren_frame","c":"Drifts all three voices and, until voice 3's routine has run ($05AC), raises voice 1's frequency by $C8 and voices 2 and 3 by $FA each frame.","t":"code","b":[32,50,54],"m":"jsr","oa":13874,"o":"fx_drift_all"},{"a":13817,"t":"code","b":[173,172,5],"m":"lda","oa":1452,"o":"a_05AC"},{"a":13820,"t":"code","b":[208,51],"m":"bne","oa":13873,"o":"r_3631"},{"a":13822,"t":"code","b":[173,124,5],"m":"lda","oa":1404,"o":"f_057C"},{"a":13825,"t":"code","b":[24],"m":"clc"},{"a":13826,"t":"code","b":[105,200],"m":"adc","o":"#$C8"},{"a":13828,"t":"code","b":[141,124,5],"m":"sta","oa":1404,"o":"f_057C"},{"a":13831,"t":"code","b":[173,125,5],"m":"lda","oa":1405,"o":"a_057D"},{"a":13834,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":13836,"t":"code","b":[141,125,5],"m":"sta","oa":1405,"o":"a_057D"},{"a":13839,"t":"code","b":[173,131,5],"m":"lda","oa":1411,"o":"a_0583"},{"a":13842,"t":"code","b":[24],"m":"clc"},{"a":13843,"t":"code","b":[105,250],"m":"adc","o":"#$FA"},{"a":13845,"t":"code","b":[141,131,5],"m":"sta","oa":1411,"o":"a_0583"},{"a":13848,"t":"code","b":[173,132,5],"m":"lda","oa":1412,"o":"a_0584"},{"a":13851,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":13853,"t":"code","b":[141,132,5],"m":"sta","oa":1412,"o":"a_0584"},{"a":13856,"t":"code","b":[173,138,5],"m":"lda","oa":1418,"o":"a_058A"},{"a":13859,"t":"code","b":[24],"m":"clc"},{"a":13860,"t":"code","b":[105,250],"m":"adc","o":"#$FA"},{"a":13862,"t":"code","b":[141,138,5],"m":"sta","oa":1418,"o":"a_058A"},{"a":13865,"t":"code","b":[173,139,5],"m":"lda","oa":1419,"o":"a_058B"},{"a":13868,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":13870,"t":"code","b":[141,139,5],"m":"sta","oa":1419,"o":"a_058B"},{"a":13873,"l":"r_3631","t":"code","b":[96],"m":"rts","x":[13820]},{"a":13874,"l":"fx_drift_all","c":"Drifts the frequency of all three voices (fx_drift_voice for X = 0 to 2).","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[13814,14960,15037]},{"a":13876,"l":"b_3634","t":"code","b":[32,193,58],"m":"jsr","oa":15041,"o":"fx_drift_voice","x":[13882]},{"a":13879,"t":"code","b":[232],"m":"inx"},{"a":13880,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":13882,"t":"code","b":[144,248],"m":"bcc","oa":13876,"o":"b_3634"},{"a":13884,"t":"code","b":[96],"m":"rts"},{"a":13885,"l":"fx_random_freq","c":"Gives voices 1 and 2 random frequencies (six calls of random).","t":"code","b":[32,164,13],"m":"jsr","oa":3492,"o":"random"},{"a":13888,"t":"code","b":[141,124,5],"m":"sta","oa":1404,"o":"f_057C"},{"a":13891,"t":"code","b":[32,164,13],"m":"jsr","oa":3492,"o":"random"},{"a":13894,"t":"code","b":[141,125,5],"m":"sta","oa":1405,"o":"a_057D"},{"a":13897,"t":"code","b":[32,164,13],"m":"jsr","oa":3492,"o":"random"},{"a":13900,"t":"code","b":[141,131,5],"m":"sta","oa":1411,"o":"a_0583"},{"a":13903,"t":"code","b":[32,164,13],"m":"jsr","oa":3492,"o":"random"},{"a":13906,"t":"code","b":[141,132,5],"m":"sta","oa":1412,"o":"a_0584"},{"a":13909,"t":"code","b":[32,164,13],"m":"jsr","oa":3492,"o":"random"},{"a":13912,"t":"code","b":[141,138,5],"m":"sta","oa":1418,"o":"a_058A"},{"a":13915,"t":"code","b":[32,164,13],"m":"jsr","oa":3492,"o":"random"},{"a":13918,"t":"code","b":[141,139,5],"m":"sta","oa":1419,"o":"a_058B"},{"a":13921,"t":"code","b":[96],"m":"rts"},{"a":13922,"l":"fx_random_volume","c":"Sets the effect's volume to a random level (the low nibble of $0594, from random XOR 7), keeping the filter mode, so the sound crackles.","t":"code","b":[173,148,5],"m":"lda","oa":1428,"o":"a_0594"},{"a":13925,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":13927,"t":"code","b":[141,173,5],"m":"sta","oa":1453,"o":"a_05AD"},{"a":13930,"t":"code","b":[32,164,13],"m":"jsr","oa":3492,"o":"random"},{"a":13933,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":13935,"t":"code","b":[73,7],"m":"eor","o":"#$07"},{"a":13937,"t":"code","b":[13,173,5],"m":"ora","oa":1453,"o":"a_05AD"},{"a":13940,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":13943,"t":"code","b":[96],"m":"rts"},{"a":13944,"l":"sfx_siren","c":"Sound effect record (start $3699, every frame $35F6, voices $36D3, $36DB and $36E3, no length, priority 20): three ring-modulated triangle voices with a slow attack, rising in pitch until voice 3's routine stops the rise after 32 frames. Started by the lift scene at $80AB, and as the power loader's hum in the Queen fight at $8215.","t":"byte","b":[153,54,246,53,211,54,219,54]},{"a":13952,"t":"byte","b":[227,54,0,20]},{"a":13956,"l":"sfx_siren_voice1","c":"sfx_siren's voices: ring-modulated triangle at $0430, $08E1 and $02CC, attack 9.","t":"byte","b":[48,4,0,8,21,144,240],"x":[13997]},{"a":13963,"l":"sfx_siren_voice2","c":"Seven bytes of voice settings for sfx_siren_v2: ring-modulated triangle at frequency $08E1, attack/decay $90, sustain/release $F0.","t":"byte","b":[225,8,0,1,21,144,240],"x":[14040,14115]},{"a":13970,"l":"sfx_siren_voice3","c":"Seven bytes of voice settings for sfx_siren_v3: ring-modulated triangle at frequency $02CC, attack/decay $90, sustain/release $F0.","t":"byte","b":[204,2,0,1,21,144,240],"x":[14048,14122]},{"a":13977,"c":"sfx_siren's start: voice 1, then voice 2 after 3 frames, voice 3 after 4 and the end of the rise after 32 ($05A5-$05A7).","t":"code","b":[169,108],"m":"lda","o":"#$6C"},{"a":13979,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":13982,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":13984,"t":"code","b":[141,147,5],"m":"sta","oa":1427,"o":"a_0593"},{"a":13987,"t":"code","b":[169,168],"m":"lda","o":"#$A8"},{"a":13989,"t":"code","b":[141,146,5],"m":"sta","oa":1426,"o":"a_0592"},{"a":13992,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":13994,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":13997,"c":"set_effect_voice's inline pointer: the voice settings at $3684.","t":"byte","b":[132,54],"d":["sfx_siren_voice1"],"ta":[13956],"note":"split table: 1 lo/hi pointers"},{"a":13999,"c":"sfx_siren goes on after voice 1's settings pointer at $36AD.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14001,"t":"code","b":[141,172,5],"m":"sta","oa":1452,"o":"a_05AC"},{"a":14004,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14006,"t":"code","b":[141,162,5],"m":"sta","oa":1442,"o":"a_05A2"},{"a":14009,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":14011,"t":"code","b":[141,165,5],"m":"sta","oa":1445,"o":"a_05A5"},{"a":14014,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14016,"t":"code","b":[141,163,5],"m":"sta","oa":1443,"o":"a_05A3"},{"a":14019,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":14021,"t":"code","b":[141,166,5],"m":"sta","oa":1446,"o":"a_05A6"},{"a":14024,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14026,"t":"code","b":[141,164,5],"m":"sta","oa":1444,"o":"a_05A4"},{"a":14029,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":14031,"t":"code","b":[141,167,5],"m":"sta","oa":1447,"o":"a_05A7"},{"a":14034,"t":"code","b":[96],"m":"rts"},{"a":14035,"l":"sfx_siren_v2","c":"Starts sfx_siren's second voice.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":14037,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14040,"c":"set_effect_voice's inline pointer: the voice settings at $368B.","t":"byte","b":[139,54],"d":["sfx_siren_voice2"],"ta":[13963],"note":"split table: 1 lo/hi pointers"},{"a":14042,"c":"sfx_siren_v2 goes on after voice 2's settings pointer at $36D8.","t":"code","b":[96],"m":"rts"},{"a":14043,"l":"sfx_siren_v3","c":"Starts sfx_siren's third voice.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":14045,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14048,"c":"set_effect_voice's inline pointer: the voice settings at $3692.","t":"byte","b":[146,54],"d":["sfx_siren_voice3"],"ta":[13970],"note":"split table: 1 lo/hi pointers"},{"a":14050,"c":"sfx_siren_v3 goes on after voice 3's settings pointer at $36E0.","t":"code","b":[96],"m":"rts"},{"a":14051,"l":"sfx_siren_stop","c":"Stops sfx_siren's rise ($05AC).","t":"code","b":[206,172,5],"m":"dec","oa":1452,"o":"a_05AC"},{"a":14054,"t":"code","b":[96],"m":"rts"},{"a":14055,"l":"sfx_falling","c":"Sound effect record (start $3708, every frame $373C, voice routines $3784 and $3792, no length, priority 20): three ring-modulated triangle voices falling in pitch by 3 a frame until voice 1's high byte reaches $1E, then quieter; after 120 frames the first routine pauses the fall and 120 frames later the second resumes it. Started by level 1 at $864E.","t":"byte","b":[8,55,60,55,132,55,146,55]},{"a":14063,"t":"byte","b":[238,52,0,20]},{"a":14067,"l":"sfx_falling_voice1","c":"sfx_falling's first voice: ring-modulated triangle at $2187 (voices 2 and 3 share sfx_siren's settings at $368B and $3692).","t":"byte","b":[135,33,0,8,21,0,240,134],"x":[14108]},{"a":14075,"t":"byte","b":[35,0,1,21,0,240,107,47]},{"a":14083,"t":"byte","b":[0,1,21,0,240]},{"a":14088,"c":"sfx_falling's start: the three voices and the timer for voice 1's routine (120 frames).","t":"code","b":[169,104],"m":"lda","o":"#$68"},{"a":14090,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":14093,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":14095,"t":"code","b":[141,147,5],"m":"sta","oa":1427,"o":"a_0593"},{"a":14098,"t":"code","b":[169,168],"m":"lda","o":"#$A8"},{"a":14100,"t":"code","b":[141,146,5],"m":"sta","oa":1426,"o":"a_0592"},{"a":14103,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":14105,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14108,"c":"set_effect_voice's inline pointer: the voice settings at $36F3.","t":"byte","b":[243,54],"d":["sfx_falling_voice1"],"ta":[14067],"note":"split table: 1 lo/hi pointers"},{"a":14110,"c":"sfx_falling goes on after voice 1's settings pointer at $371C.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":14112,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14115,"c":"set_effect_voice's inline pointer for sfx_falling's voice 2: sfx_siren's settings at $368B, shared.","t":"byte","b":[139,54],"d":["sfx_siren_voice2"],"ta":[13963],"note":"split table: 1 lo/hi pointers"},{"a":14117,"c":"sfx_falling goes on after voice 2's settings pointer at $3723.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":14119,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14122,"c":"set_effect_voice's inline pointer for sfx_falling's voice 3: sfx_siren's settings at $3692, shared.","t":"byte","b":[146,54],"d":["sfx_siren_voice3"],"ta":[13970],"note":"split table: 1 lo/hi pointers"},{"a":14124,"c":"sfx_falling goes on after voice 3's settings pointer at $372A.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14126,"t":"code","b":[141,162,5],"m":"sta","oa":1442,"o":"a_05A2"},{"a":14129,"t":"code","b":[169,120],"m":"lda","o":"#$78"},{"a":14131,"t":"code","b":[141,165,5],"m":"sta","oa":1445,"o":"a_05A5"},{"a":14134,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14136,"t":"code","b":[141,169,5],"m":"sta","oa":1449,"o":"a_05A9"},{"a":14139,"t":"code","b":[96],"m":"rts"},{"a":14140,"l":"sfx_falling_frame","c":"While $05A9 is zero, lowers all three voices by 3 a frame; when voice 1's high byte reaches $1E sets the volume to 4 and stops.","t":"code","b":[173,169,5],"m":"lda","oa":1449,"o":"a_05A9"},{"a":14143,"t":"code","b":[208,66],"m":"bne","oa":14211,"o":"r_3783"},{"a":14145,"t":"code","b":[173,124,5],"m":"lda","oa":1404,"o":"f_057C"},{"a":14148,"t":"code","b":[56],"m":"sec"},{"a":14149,"t":"code","b":[233,3],"m":"sbc","o":"#$03"},{"a":14151,"t":"code","b":[141,124,5],"m":"sta","oa":1404,"o":"f_057C"},{"a":14154,"t":"code","b":[173,125,5],"m":"lda","oa":1405,"o":"a_057D"},{"a":14157,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":14159,"t":"code","b":[141,125,5],"m":"sta","oa":1405,"o":"a_057D"},{"a":14162,"t":"code","b":[173,131,5],"m":"lda","oa":1411,"o":"a_0583"},{"a":14165,"t":"code","b":[56],"m":"sec"},{"a":14166,"t":"code","b":[233,3],"m":"sbc","o":"#$03"},{"a":14168,"t":"code","b":[141,131,5],"m":"sta","oa":1411,"o":"a_0583"},{"a":14171,"t":"code","b":[173,132,5],"m":"lda","oa":1412,"o":"a_0584"},{"a":14174,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":14176,"t":"code","b":[141,132,5],"m":"sta","oa":1412,"o":"a_0584"},{"a":14179,"t":"code","b":[173,138,5],"m":"lda","oa":1418,"o":"a_058A"},{"a":14182,"t":"code","b":[56],"m":"sec"},{"a":14183,"t":"code","b":[233,3],"m":"sbc","o":"#$03"},{"a":14185,"t":"code","b":[141,138,5],"m":"sta","oa":1418,"o":"a_058A"},{"a":14188,"t":"code","b":[173,139,5],"m":"lda","oa":1419,"o":"a_058B"},{"a":14191,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":14193,"t":"code","b":[141,139,5],"m":"sta","oa":1419,"o":"a_058B"},{"a":14196,"t":"code","b":[173,125,5],"m":"lda","oa":1405,"o":"a_057D"},{"a":14199,"t":"code","b":[201,30],"m":"cmp","o":"#$1E"},{"a":14201,"t":"code","b":[208,8],"m":"bne","oa":14211,"o":"r_3783"},{"a":14203,"t":"code","b":[206,169,5],"m":"dec","oa":1449,"o":"a_05A9"},{"a":14206,"t":"code","b":[169,52],"m":"lda","o":"#$34"},{"a":14208,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":14211,"l":"r_3783","t":"code","b":[96],"m":"rts","x":[14143,14201]},{"a":14212,"l":"sfx_falling_v1","c":"After 120 frames: decrements $05A9 and sets voice 2's timer to 120 frames.","t":"code","b":[206,169,5],"m":"dec","oa":1449,"o":"a_05A9"},{"a":14215,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14217,"t":"code","b":[141,163,5],"m":"sta","oa":1443,"o":"a_05A3"},{"a":14220,"t":"code","b":[169,120],"m":"lda","o":"#$78"},{"a":14222,"t":"code","b":[141,166,5],"m":"sta","oa":1446,"o":"a_05A6"},{"a":14225,"t":"code","b":[96],"m":"rts"},{"a":14226,"l":"sfx_falling_v2","c":"Increments $05A9.","t":"code","b":[238,169,5],"m":"inc","oa":1449,"o":"a_05A9"},{"a":14229,"t":"code","b":[96],"m":"rts"},{"a":14230,"l":"sfx_rising","c":"Sound effect record (start $37B7, every frame $37EB, voice 1 $382E, no length, priority 20): three ring-modulated triangle voices rising by 2 a frame from voice 1's routine on, until voice 1's high byte reaches $22. Started by level 1 at $8643.","t":"byte","b":[183,55,235,55,46,56,238,52]},{"a":14238,"t":"byte","b":[238,52,0,20]},{"a":14242,"l":"sfx_rising_voice1","c":"sfx_rising's voices: ring-modulated triangle at $1EB7, $0611 and $0026.","t":"byte","b":[183,30,0,8,21,0,240],"x":[14283]},{"a":14249,"l":"sfx_rising_voice2","c":"Seven bytes of voice settings for sfx_rising: ring-modulated triangle at frequency $0611, attack/decay $00, sustain/release $F0.","t":"byte","b":[17,6,0,1,21,0,240],"x":[14290]},{"a":14256,"l":"sfx_rising_voice3","c":"Seven bytes of voice settings for sfx_rising: ring-modulated triangle at frequency $0026, attack/decay $00, sustain/release $F0.","t":"byte","b":[38,0,0,1,21,0,240],"x":[14297]},{"a":14263,"c":"sfx_rising's start: volume 4, the three voices and voice 1's timer (120 frames).","t":"code","b":[169,52],"m":"lda","o":"#$34"},{"a":14265,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":14268,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":14270,"t":"code","b":[141,147,5],"m":"sta","oa":1427,"o":"a_0593"},{"a":14273,"t":"code","b":[169,168],"m":"lda","o":"#$A8"},{"a":14275,"t":"code","b":[141,146,5],"m":"sta","oa":1426,"o":"a_0592"},{"a":14278,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":14280,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14283,"c":"set_effect_voice's inline pointer: the voice settings at $37A2.","t":"byte","b":[162,55],"d":["sfx_rising_voice1"],"ta":[14242],"note":"split table: 1 lo/hi pointers"},{"a":14285,"c":"sfx_rising goes on after voice 1's settings pointer at $37CB.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":14287,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14290,"c":"set_effect_voice's inline pointer: the voice settings at $37A9.","t":"byte","b":[169,55],"d":["sfx_rising_voice2"],"ta":[14249],"note":"split table: 1 lo/hi pointers"},{"a":14292,"c":"sfx_rising goes on after voice 2's settings pointer at $37D2.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":14294,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14297,"c":"set_effect_voice's inline pointer: the voice settings at $37B0.","t":"byte","b":[176,55],"d":["sfx_rising_voice3"],"ta":[14256],"note":"split table: 1 lo/hi pointers"},{"a":14299,"c":"sfx_rising goes on after voice 3's settings pointer at $37D9.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14301,"t":"code","b":[141,162,5],"m":"sta","oa":1442,"o":"a_05A2"},{"a":14304,"t":"code","b":[169,120],"m":"lda","o":"#$78"},{"a":14306,"t":"code","b":[141,165,5],"m":"sta","oa":1445,"o":"a_05A5"},{"a":14309,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14311,"t":"code","b":[141,169,5],"m":"sta","oa":1449,"o":"a_05A9"},{"a":14314,"t":"code","b":[96],"m":"rts"},{"a":14315,"l":"sfx_rising_frame","c":"While $05A9 is non-zero, raises all three voices by 2 a frame; when voice 1's high byte reaches $22, stops.","t":"code","b":[173,169,5],"m":"lda","oa":1449,"o":"a_05A9"},{"a":14318,"t":"code","b":[240,61],"m":"beq","oa":14381,"o":"r_382D"},{"a":14320,"t":"code","b":[173,124,5],"m":"lda","oa":1404,"o":"f_057C"},{"a":14323,"t":"code","b":[24],"m":"clc"},{"a":14324,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":14326,"t":"code","b":[141,124,5],"m":"sta","oa":1404,"o":"f_057C"},{"a":14329,"t":"code","b":[173,125,5],"m":"lda","oa":1405,"o":"a_057D"},{"a":14332,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":14334,"t":"code","b":[141,125,5],"m":"sta","oa":1405,"o":"a_057D"},{"a":14337,"t":"code","b":[173,131,5],"m":"lda","oa":1411,"o":"a_0583"},{"a":14340,"t":"code","b":[24],"m":"clc"},{"a":14341,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":14343,"t":"code","b":[141,131,5],"m":"sta","oa":1411,"o":"a_0583"},{"a":14346,"t":"code","b":[173,132,5],"m":"lda","oa":1412,"o":"a_0584"},{"a":14349,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":14351,"t":"code","b":[141,132,5],"m":"sta","oa":1412,"o":"a_0584"},{"a":14354,"t":"code","b":[173,138,5],"m":"lda","oa":1418,"o":"a_058A"},{"a":14357,"t":"code","b":[24],"m":"clc"},{"a":14358,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":14360,"t":"code","b":[141,138,5],"m":"sta","oa":1418,"o":"a_058A"},{"a":14363,"t":"code","b":[173,139,5],"m":"lda","oa":1419,"o":"a_058B"},{"a":14366,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":14368,"t":"code","b":[141,139,5],"m":"sta","oa":1419,"o":"a_058B"},{"a":14371,"t":"code","b":[173,125,5],"m":"lda","oa":1405,"o":"a_057D"},{"a":14374,"t":"code","b":[201,34],"m":"cmp","o":"#$22"},{"a":14376,"t":"code","b":[208,3],"m":"bne","oa":14381,"o":"r_382D"},{"a":14378,"t":"code","b":[238,169,5],"m":"inc","oa":1449,"o":"a_05A9"},{"a":14381,"l":"r_382D","t":"code","b":[96],"m":"rts","x":[14318,14376]},{"a":14382,"l":"sfx_rising_v1","c":"After 120 frames: starts the rise and sets the volume to 8.","t":"code","b":[206,169,5],"m":"dec","oa":1449,"o":"a_05A9"},{"a":14385,"t":"code","b":[169,104],"m":"lda","o":"#$68"},{"a":14387,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":14390,"t":"code","b":[96],"m":"rts"},{"a":14391,"l":"sfx_hiss","c":"Sound effect record (start $3864, every frame $3662, no length, priority 20): low noise at a random volume every frame, a crackling hiss that lasts until another effect replaces it. Started by level 1 at $8634.","t":"byte","b":[100,56,98,54,238,52,238,52]},{"a":14399,"t":"byte","b":[238,52,0,20]},{"a":14403,"l":"sfx_hiss_short","c":"Sound effect record (start $3864, every frame $3662, voice 1 $3898, 75 frames, priority 50): the same crackling hiss, released after 40 frames. Started by level 5 at $9305.","t":"byte","b":[100,56,98,54,152,56,238,52]},{"a":14411,"t":"byte","b":[238,52,75,50]},{"a":14415,"l":"sfx_hiss_voice1","c":"The hiss's voices: noise at $010C, $011C and $02CC, full sustain.","t":"byte","b":[12,1,0,8,129,0,250],"x":[14456]},{"a":14422,"l":"sfx_hiss_voice2","c":"Seven bytes of voice settings for sfx_hiss_short: noise at frequency $011C, attack/decay $00, sustain/release $FA.","t":"byte","b":[28,1,0,1,129,0,250],"x":[14463]},{"a":14429,"l":"sfx_hiss_voice3","c":"Seven bytes of voice settings for sfx_hiss_short: noise at frequency $02CC, attack/decay $00, sustain/release $FA.","t":"byte","b":[204,2,0,1,129,0,250],"x":[14470]},{"a":14436,"c":"The hiss's start: volume 14 with the filter's low and band pass ($0594 = $3E), full resonance on all voices and the cutoff at $A8, then the voices and voice 1's timer (40 frames).","t":"code","b":[169,62],"m":"lda","o":"#$3E"},{"a":14438,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":14441,"t":"code","b":[169,247],"m":"lda","o":"#$F7"},{"a":14443,"t":"code","b":[141,147,5],"m":"sta","oa":1427,"o":"a_0593"},{"a":14446,"t":"code","b":[169,168],"m":"lda","o":"#$A8"},{"a":14448,"t":"code","b":[141,146,5],"m":"sta","oa":1426,"o":"a_0592"},{"a":14451,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":14453,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14456,"c":"set_effect_voice's inline pointer: the voice settings at $384F.","t":"byte","b":[79,56],"d":["sfx_hiss_voice1"],"ta":[14415],"note":"split table: 1 lo/hi pointers"},{"a":14458,"c":"sfx_hiss_short goes on after voice 1's settings pointer at $3878.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":14460,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14463,"c":"set_effect_voice's inline pointer: the voice settings at $3856.","t":"byte","b":[86,56],"d":["sfx_hiss_voice2"],"ta":[14422],"note":"split table: 1 lo/hi pointers"},{"a":14465,"c":"sfx_hiss_short goes on after voice 2's settings pointer at $387F.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":14467,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14470,"c":"set_effect_voice's inline pointer: the voice settings at $385D.","t":"byte","b":[93,56],"d":["sfx_hiss_voice3"],"ta":[14429],"note":"split table: 1 lo/hi pointers"},{"a":14472,"c":"sfx_hiss_short goes on after voice 3's settings pointer at $3886.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14474,"t":"code","b":[141,170,5],"m":"sta","oa":1450,"o":"a_05AA"},{"a":14477,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14479,"t":"code","b":[141,162,5],"m":"sta","oa":1442,"o":"a_05A2"},{"a":14482,"t":"code","b":[169,40],"m":"lda","o":"#$28"},{"a":14484,"t":"code","b":[141,165,5],"m":"sta","oa":1445,"o":"a_05A5"},{"a":14487,"t":"code","b":[96],"m":"rts"},{"a":14488,"l":"fx_release_noise","c":"Releases all three voices: control $80, noise with the gate off.","t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":14490,"t":"code","b":[141,128,5],"m":"sta","oa":1408,"o":"a_0580"},{"a":14493,"t":"code","b":[141,135,5],"m":"sta","oa":1415,"o":"a_0587"},{"a":14496,"t":"code","b":[141,142,5],"m":"sta","oa":1422,"o":"a_058E"},{"a":14499,"t":"code","b":[96],"m":"rts"},{"a":14500,"l":"sfx_engine","c":"Sound effect record (start $38C5, every frame $3ABA, 50 frames, priority 30): two ring-modulated triangles and a noise voice that drift in pitch, the filter following voice 3. Started by the lift scene at $8125 and by the Queen's cries at $822E.","t":"byte","b":[197,56,186,58,238,52,238,52]},{"a":14508,"t":"byte","b":[238,52,50,30]},{"a":14512,"l":"sfx_engine_voice1","c":"sfx_engine's voices: ring-modulated triangle at $0861 and $11C3, noise at $0218.","t":"byte","b":[97,8,0,8,21,9,0],"x":[14553]},{"a":14519,"l":"sfx_engine_voice2","c":"Seven bytes of voice settings for sfx_engine: ring-modulated triangle at frequency $11C3, attack/decay $09, sustain/release $00.","t":"byte","b":[195,17,0,1,21,9,0],"x":[14560]},{"a":14526,"l":"sfx_engine_voice3","c":"Seven bytes of voice settings for sfx_engine: noise at frequency $0218, attack/decay $09, sustain/release $00.","t":"byte","b":[24,2,0,1,129,9,0],"x":[14567]},{"a":14533,"c":"sfx_engine's start: volume 15, full resonance and cutoff $A8, then the voices.","t":"code","b":[169,63],"m":"lda","o":"#$3F"},{"a":14535,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":14538,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":14540,"t":"code","b":[141,147,5],"m":"sta","oa":1427,"o":"a_0593"},{"a":14543,"t":"code","b":[169,168],"m":"lda","o":"#$A8"},{"a":14545,"t":"code","b":[141,146,5],"m":"sta","oa":1426,"o":"a_0592"},{"a":14548,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":14550,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14553,"c":"set_effect_voice's inline pointer: the voice settings at $38B0.","t":"byte","b":[176,56],"d":["sfx_engine_voice1"],"ta":[14512],"note":"split table: 1 lo/hi pointers"},{"a":14555,"c":"sfx_engine goes on after voice 1's settings pointer at $38D9.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":14557,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14560,"c":"set_effect_voice's inline pointer: the voice settings at $38B7.","t":"byte","b":[183,56],"d":["sfx_engine_voice2"],"ta":[14519],"note":"split table: 1 lo/hi pointers"},{"a":14562,"c":"sfx_engine goes on after voice 2's settings pointer at $38E0.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":14564,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14567,"c":"set_effect_voice's inline pointer: the voice settings at $38BE.","t":"byte","b":[190,56],"d":["sfx_engine_voice3"],"ta":[14526],"note":"split table: 1 lo/hi pointers"},{"a":14569,"c":"sfx_engine goes on after voice 3's settings pointer at $38E7.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14571,"t":"code","b":[141,170,5],"m":"sta","oa":1450,"o":"a_05AA"},{"a":14574,"t":"code","b":[96],"m":"rts"},{"a":14575,"l":"sfx_blast","c":"Sound effect record (start $3910, voice 1 $3898, voices 2 and 3 $3924, no length, priority 50): three low noise voices with a long sustain that are released after 30 frames and started again after 90 and 150. Started by level 5 at $933A.","t":"byte","b":[16,57,238,52,152,56,36,57]},{"a":14583,"t":"byte","b":[36,57,0,50]},{"a":14587,"l":"sfx_blast_voice1","c":"sfx_blast's voices: noise at $0430, $011C and $0861.","t":"byte","b":[48,4,0,8,129,0,253],"x":[14648]},{"a":14594,"l":"sfx_blast_voice2","c":"Seven bytes of voice settings for sfx_blast_again: noise at frequency $011C, attack/decay $00, sustain/release $FC.","t":"byte","b":[28,1,0,1,129,0,252],"x":[14655]},{"a":14601,"l":"sfx_blast_voice3","c":"Seven bytes of voice settings for sfx_blast_again: noise at frequency $0861, attack/decay $00, sustain/release $FC.","t":"byte","b":[97,8,0,1,129,0,252],"x":[14662]},{"a":14608,"c":"sfx_blast's start: the timers for voice 2's routine (90 frames) and voice 3's (150), then falls into sfx_blast_again.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14610,"t":"code","b":[141,163,5],"m":"sta","oa":1443,"o":"a_05A3"},{"a":14613,"t":"code","b":[169,90],"m":"lda","o":"#$5A"},{"a":14615,"t":"code","b":[141,166,5],"m":"sta","oa":1446,"o":"a_05A6"},{"a":14618,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14620,"t":"code","b":[141,164,5],"m":"sta","oa":1444,"o":"a_05A4"},{"a":14623,"t":"code","b":[169,150],"m":"lda","o":"#$96"},{"a":14625,"t":"code","b":[141,167,5],"m":"sta","oa":1447,"o":"a_05A7"},{"a":14628,"l":"sfx_blast_again","c":"Sets the filter (volume 15, cutoff $B8), starts the three noise voices and voice 1's release timer (30 frames).","t":"code","b":[169,63],"m":"lda","o":"#$3F"},{"a":14630,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":14633,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":14635,"t":"code","b":[141,147,5],"m":"sta","oa":1427,"o":"a_0593"},{"a":14638,"t":"code","b":[169,184],"m":"lda","o":"#$B8"},{"a":14640,"t":"code","b":[141,146,5],"m":"sta","oa":1426,"o":"a_0592"},{"a":14643,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":14645,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14648,"c":"set_effect_voice's inline pointer: the voice settings at $38FB.","t":"byte","b":[251,56],"d":["sfx_blast_voice1"],"ta":[14587],"note":"split table: 1 lo/hi pointers"},{"a":14650,"c":"sfx_blast_again goes on after voice 1's settings pointer at $3938.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":14652,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14655,"c":"set_effect_voice's inline pointer: the voice settings at $3902.","t":"byte","b":[2,57],"d":["sfx_blast_voice2"],"ta":[14594],"note":"split table: 1 lo/hi pointers"},{"a":14657,"c":"sfx_blast_again goes on after voice 2's settings pointer at $393F.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":14659,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14662,"c":"set_effect_voice's inline pointer: the voice settings at $3909.","t":"byte","b":[9,57],"d":["sfx_blast_voice3"],"ta":[14601],"note":"split table: 1 lo/hi pointers"},{"a":14664,"c":"sfx_blast_again goes on after voice 3's settings pointer at $3946.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14666,"t":"code","b":[141,170,5],"m":"sta","oa":1450,"o":"a_05AA"},{"a":14669,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14671,"t":"code","b":[141,162,5],"m":"sta","oa":1442,"o":"a_05A2"},{"a":14674,"t":"code","b":[169,30],"m":"lda","o":"#$1E"},{"a":14676,"t":"code","b":[141,165,5],"m":"sta","oa":1445,"o":"a_05A5"},{"a":14679,"t":"code","b":[96],"m":"rts"},{"a":14680,"l":"sfx_chord","c":"Sound effect record (start $3979, no routines, 40 frames, priority 25): three sawtooth voices a little out of tune ($0861, $0852, $0870), a buzzing chord. Started by level 5 at $94DC and by stage 1, the briefing and equipment check, at $9062.","t":"byte","b":[121,57,238,52,238,52,238,52]},{"a":14688,"t":"byte","b":[238,52,40,25]},{"a":14692,"l":"sfx_chord_voice1","c":"sfx_chord's voices: sawtooth at $0861, $0852 and $0870.","t":"byte","b":[97,8,0,8,33,0,240],"x":[14723]},{"a":14699,"l":"sfx_chord_voice2","c":"Seven bytes of voice settings for sfx_chord: sawtooth at frequency $0852, attack/decay $00, sustain/release $F0.","t":"byte","b":[82,8,0,1,33,0,240],"x":[14730]},{"a":14706,"l":"sfx_chord_voice3","c":"Seven bytes of voice settings for sfx_chord: sawtooth at frequency $0870, attack/decay $00, sustain/release $F0.","t":"byte","b":[112,8,0,1,33,0,240],"x":[14737]},{"a":14713,"c":"sfx_chord's start: volume 12 with the filter's low and band pass, and the three voices.","t":"code","b":[169,60],"m":"lda","o":"#$3C"},{"a":14715,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":14718,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":14720,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14723,"c":"set_effect_voice's inline pointer: the voice settings at $3964.","t":"byte","b":[100,57],"d":["sfx_chord_voice1"],"ta":[14692],"note":"split table: 1 lo/hi pointers"},{"a":14725,"c":"sfx_chord goes on after voice 1's settings pointer at $3983.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":14727,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14730,"c":"set_effect_voice's inline pointer: the voice settings at $396B.","t":"byte","b":[107,57],"d":["sfx_chord_voice2"],"ta":[14699],"note":"split table: 1 lo/hi pointers"},{"a":14732,"c":"sfx_chord goes on after voice 2's settings pointer at $398A.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":14734,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14737,"c":"set_effect_voice's inline pointer: the voice settings at $3972.","t":"byte","b":[114,57],"d":["sfx_chord_voice3"],"ta":[14706],"note":"split table: 1 lo/hi pointers"},{"a":14739,"c":"sfx_chord goes on after voice 3's settings pointer at $3991.","t":"code","b":[96],"m":"rts"},{"a":14740,"l":"sfx_chord2","c":"Sound effect record (start $39B5, no routines, 20 frames, priority 20): three sawtooth voices at $0861, $0430 and $0444. Started by stage 1, the briefing and equipment check, at $9075.","t":"byte","b":[181,57,238,52,238,52,238,52]},{"a":14748,"t":"byte","b":[238,52,20,20]},{"a":14752,"l":"sfx_chord2_voice1","c":"sfx_chord2's voices.","t":"byte","b":[97,8,0,8,33,0,240],"x":[14783]},{"a":14759,"l":"sfx_chord2_voice2","c":"Seven bytes of voice settings for sfx_chord2: sawtooth at frequency $0430, attack/decay $00, sustain/release $F0.","t":"byte","b":[48,4,0,1,33,0,240],"x":[14790]},{"a":14766,"l":"sfx_chord2_voice3","c":"Seven bytes of voice settings for sfx_chord2: sawtooth at frequency $0444, attack/decay $00, sustain/release $F0.","t":"byte","b":[68,4,0,1,33,0,240],"x":[14797]},{"a":14773,"c":"sfx_chord2's start: volume 10 and the three voices.","t":"byte","b":[169,58,141,148,5,162,1,32]},{"a":14781,"t":"byte","b":[118,43]},{"a":14783,"c":"set_effect_voice's inline pointer: the voice settings at $39A0.","t":"byte","b":[160,57],"d":["sfx_chord2_voice1"],"ta":[14752],"note":"split table: 1 lo/hi pointers"},{"a":14785,"c":"sfx_chord2 goes on after voice 1's settings pointer at $39BF.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":14787,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14790,"c":"set_effect_voice's inline pointer: the voice settings at $39A7.","t":"byte","b":[167,57],"d":["sfx_chord2_voice2"],"ta":[14759],"note":"split table: 1 lo/hi pointers"},{"a":14792,"c":"sfx_chord2 goes on after voice 2's settings pointer at $39C6.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":14794,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14797,"c":"set_effect_voice's inline pointer: the voice settings at $39AE.","t":"byte","b":[174,57],"d":["sfx_chord2_voice3"],"ta":[14766],"note":"split table: 1 lo/hi pointers"},{"a":14799,"c":"sfx_chord2 goes on after voice 3's settings pointer at $39CD.","t":"code","b":[96],"m":"rts"},{"a":14800,"l":"sfx_drone","c":"Sound effect record (start $39F1, voice 1 $3A14, voice 2 $39F1, no length, priority 20): three sawtooth voices close together ($0323, $0332, $0314) with a slow attack, started again every 80 frames and released by voice 1's routine. Started by stage 1, the briefing and equipment check, at $88BD, $908E and $909F.","t":"byte","b":[241,57,238,52,20,58,241,57]},{"a":14808,"t":"byte","b":[238,52,0,20]},{"a":14812,"l":"sfx_drone_voice1","c":"sfx_drone's voices.","t":"byte","b":[35,3,0,8,33,171,11],"x":[14843]},{"a":14819,"l":"sfx_drone_voice2","c":"Seven bytes of voice settings for sfx_drone: sawtooth at frequency $0332, attack/decay $AB, sustain/release $0B.","t":"byte","b":[50,3,0,1,33,171,11],"x":[14850]},{"a":14826,"l":"sfx_drone_voice3","c":"Seven bytes of voice settings for sfx_drone: sawtooth at frequency $0314, attack/decay $AB, sustain/release $0B.","t":"byte","b":[20,3,0,1,33,171,11],"x":[14857]},{"a":14833,"c":"sfx_drone's start, and voice 2's routine: volume 10, the three voices, and voice 1's timer and its reload at 80 frames.","t":"byte","b":[169,58,141,148,5,162,1,32]},{"a":14841,"t":"byte","b":[118,43]},{"a":14843,"c":"set_effect_voice's inline pointer: the voice settings at $39DC.","t":"byte","b":[220,57],"d":["sfx_drone_voice1"],"ta":[14812],"note":"split table: 1 lo/hi pointers"},{"a":14845,"c":"sfx_drone goes on after voice 1's settings pointer at $39FB.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":14847,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14850,"c":"set_effect_voice's inline pointer: the voice settings at $39E3.","t":"byte","b":[227,57],"d":["sfx_drone_voice2"],"ta":[14819],"note":"split table: 1 lo/hi pointers"},{"a":14852,"c":"sfx_drone goes on after voice 2's settings pointer at $3A02.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":14854,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14857,"c":"set_effect_voice's inline pointer: the voice settings at $39EA.","t":"byte","b":[234,57],"d":["sfx_drone_voice3"],"ta":[14826],"note":"split table: 1 lo/hi pointers"},{"a":14859,"c":"sfx_drone goes on after voice 3's settings pointer at $3A09.","t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":14861,"t":"code","b":[141,162,5],"m":"sta","oa":1442,"o":"a_05A2"},{"a":14864,"t":"code","b":[141,165,5],"m":"sta","oa":1445,"o":"a_05A5"},{"a":14867,"t":"code","b":[96],"m":"rts"},{"a":14868,"l":"sfx_drone_release","c":"Releases the voices (control $20, sawtooth with the gate off) and restarts the drone after 3 frames.","t":"byte","b":[169,32,141,128,5,141,135,5]},{"a":14876,"t":"byte","b":[141,142,5,169,0,141,163,5]},{"a":14884,"t":"byte","b":[169,3,141,166,5,96]},{"a":14890,"l":"sfx_buzz","c":"Sound effect record (start $3A4B, every frame $3A70, 40 frames, priority 25): three low sawtooth voices ($02E0, $02CC, $02B8) drifting in pitch. Started by level 2 at $8BDB.","t":"byte","b":[75,58,112,58,238,52,238,52]},{"a":14898,"t":"byte","b":[238,52,40,25]},{"a":14902,"l":"sfx_buzz_voice1","c":"sfx_buzz's voices.","t":"byte","b":[224,2,0,8,33,40,0],"x":[14943]},{"a":14909,"l":"sfx_buzz_voice2","c":"Seven bytes of voice settings for sfx_buzz: sawtooth at frequency $02CC, attack/decay $28, sustain/release $00.","t":"byte","b":[204,2,0,1,33,40,0],"x":[14950]},{"a":14916,"l":"sfx_buzz_voice3","c":"Seven bytes of voice settings for sfx_buzz: sawtooth at frequency $02B8, attack/decay $28, sustain/release $00.","t":"byte","b":[184,2,0,1,33,40,0],"x":[14957]},{"a":14923,"c":"sfx_buzz's start: volume 14 with low and band pass, full resonance, cutoff $B0, then the voices.","t":"code","b":[169,62],"m":"lda","o":"#$3E"},{"a":14925,"t":"code","b":[141,148,5],"m":"sta","oa":1428,"o":"a_0594"},{"a":14928,"t":"code","b":[169,247],"m":"lda","o":"#$F7"},{"a":14930,"t":"code","b":[141,147,5],"m":"sta","oa":1427,"o":"a_0593"},{"a":14933,"t":"code","b":[169,176],"m":"lda","o":"#$B0"},{"a":14935,"t":"code","b":[141,146,5],"m":"sta","oa":1426,"o":"a_0592"},{"a":14938,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":14940,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14943,"c":"set_effect_voice's inline pointer: the voice settings at $3A36.","t":"byte","b":[54,58],"d":["sfx_buzz_voice1"],"ta":[14902],"note":"split table: 1 lo/hi pointers"},{"a":14945,"c":"sfx_buzz goes on after voice 1's settings pointer at $3A5F.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":14947,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14950,"c":"set_effect_voice's inline pointer: the voice settings at $3A3D.","t":"byte","b":[61,58],"d":["sfx_buzz_voice2"],"ta":[14909],"note":"split table: 1 lo/hi pointers"},{"a":14952,"c":"sfx_buzz goes on after voice 2's settings pointer at $3A66.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":14954,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":14957,"c":"set_effect_voice's inline pointer: the voice settings at $3A44.","t":"byte","b":[68,58],"d":["sfx_buzz_voice3"],"ta":[14916],"note":"split table: 1 lo/hi pointers"},{"a":14959,"c":"sfx_buzz goes on after voice 3's settings pointer at $3A6D.","t":"code","b":[96],"m":"rts"},{"a":14960,"l":"sfx_buzz_frame","c":"Drifts all three voices.","t":"code","b":[32,50,54],"m":"jsr","oa":13874,"o":"fx_drift_all"},{"a":14963,"t":"code","b":[96],"m":"rts"},{"a":14964,"l":"sfx_rumble","c":"Sound effect record (start $3A95, every frame $3ABA, 70 frames, priority 30): three noise voices at $0B44, $0B30 and $0B1C, drifting, with the filter following voice 3. No JSR start_effect names it in the engine or in any of the nine stage files' snapshots, and its address appears nowhere else in their memory.","t":"byte","b":[149,58,186,58,238,52,238,52]},{"a":14972,"t":"byte","b":[238,52,70,30]},{"a":14976,"l":"sfx_rumble_voice1","c":"sfx_rumble's voices.","t":"byte","b":[68,11,0,8,129,154,0],"x":[15017]},{"a":14983,"l":"sfx_rumble_voice2","c":"Seven bytes of voice settings for sfx_rumble: noise at frequency $0B30, attack/decay $9A, sustain/release $00.","t":"byte","b":[48,11,0,1,129,154,0],"x":[15024]},{"a":14990,"l":"sfx_rumble_voice3","c":"Seven bytes of voice settings for sfx_rumble: noise at frequency $0B1C, attack/decay $9A, sustain/release $00.","t":"byte","b":[28,11,0,1,129,154,0],"x":[15031]},{"a":14997,"c":"sfx_rumble's start: volume 14, full resonance, cutoff $B0, then the voices.","t":"byte","b":[169,62,141,148,5,169,247,141]},{"a":15005,"t":"byte","b":[147,5,169,176,141,146,5,162]},{"a":15013,"t":"byte","b":[1,32,118,43]},{"a":15017,"c":"set_effect_voice's inline pointer: the voice settings at $3A80.","t":"byte","b":[128,58],"d":["sfx_rumble_voice1"],"ta":[14976],"note":"split table: 1 lo/hi pointers"},{"a":15019,"c":"sfx_rumble goes on after voice 1's settings pointer at $3AA9.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":15021,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":15024,"c":"set_effect_voice's inline pointer: the voice settings at $3A87.","t":"byte","b":[135,58],"d":["sfx_rumble_voice2"],"ta":[14983],"note":"split table: 1 lo/hi pointers"},{"a":15026,"c":"sfx_rumble goes on after voice 2's settings pointer at $3AB0.","t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":15028,"t":"code","b":[32,118,43],"m":"jsr","oa":11126,"o":"set_effect_voice"},{"a":15031,"c":"set_effect_voice's inline pointer: the voice settings at $3A8E.","t":"byte","b":[142,58],"d":["sfx_rumble_voice3"],"ta":[14990],"note":"split table: 1 lo/hi pointers"},{"a":15033,"c":"sfx_rumble goes on after voice 3's settings pointer at $3AB7.","t":"code","b":[96],"m":"rts"},{"a":15034,"l":"fx_drift_filter_all","c":"Lets the filter follow voice 3's envelope, then drifts all three voices.","t":"code","b":[32,247,58],"m":"jsr","oa":15095,"o":"fx_filter_follow"},{"a":15037,"t":"code","b":[32,50,54],"m":"jsr","oa":13874,"o":"fx_drift_all"},{"a":15040,"t":"code","b":[96],"m":"rts"},{"a":15041,"l":"fx_drift_voice","c":"Drifts voice X's frequency by two, down while the shared counter $05AB is under $80 and up after (voice 2 the other way), like the music's fx_drift; Y is the voice's offset from $3AFE.","t":"code","b":[188,254,58],"m":"ldy","oa":15102,"o":"drift_voice_reg,x","x":[13476,13480,13876]},{"a":15044,"t":"code","b":[238,171,5],"m":"inc","oa":1451,"o":"a_05AB"},{"a":15047,"t":"code","b":[48,20],"m":"bmi","oa":15069,"o":"b_3ADD"},{"a":15049,"t":"code","b":[185,124,5],"m":"lda","oa":1404,"o":"f_057C,y"},{"a":15052,"t":"code","b":[56],"m":"sec"},{"a":15053,"t":"code","b":[253,241,58],"m":"sbc","oa":15089,"o":"drift_steps_lo,x"},{"a":15056,"t":"code","b":[153,124,5],"m":"sta","oa":1404,"o":"f_057C,y"},{"a":15059,"t":"code","b":[185,125,5],"m":"lda","oa":1405,"o":"a_057D,y"},{"a":15062,"t":"code","b":[253,244,58],"m":"sbc","oa":15092,"o":"drift_steps_hi,x"},{"a":15065,"t":"code","b":[153,125,5],"m":"sta","oa":1405,"o":"a_057D,y"},{"a":15068,"t":"code","b":[96],"m":"rts"},{"a":15069,"l":"b_3ADD","t":"code","b":[185,124,5],"m":"lda","oa":1404,"o":"f_057C,y","x":[15047]},{"a":15072,"t":"code","b":[24],"m":"clc"},{"a":15073,"t":"code","b":[125,241,58],"m":"adc","oa":15089,"o":"drift_steps_lo,x"},{"a":15076,"t":"code","b":[153,124,5],"m":"sta","oa":1404,"o":"f_057C,y"},{"a":15079,"t":"code","b":[185,125,5],"m":"lda","oa":1405,"o":"a_057D,y"},{"a":15082,"t":"code","b":[125,244,58],"m":"adc","oa":15092,"o":"drift_steps_hi,x"},{"a":15085,"t":"code","b":[153,125,5],"m":"sta","oa":1405,"o":"a_057D,y"},{"a":15088,"t":"code","b":[96],"m":"rts"},{"a":15089,"l":"drift_steps_lo","c":"fx_drift_voice's steps, low bytes 02 FE 02.","t":"byte","b":[2,254,2],"x":[15053,15073]},{"a":15092,"l":"drift_steps_hi","c":"fx_drift_voice's steps, high bytes 00 FF 00.","t":"byte","b":[0,255,0],"x":[15062,15082]},{"a":15095,"l":"fx_filter_follow","c":"Copies voice 3's envelope output ($D41C) into the effect's filter cutoff ($0592).","t":"code","b":[173,28,212],"m":"lda","o":"sid_v3_envelope","x":[13483,13551,15034]},{"a":15098,"t":"code","b":[141,146,5],"m":"sta","oa":1426,"o":"a_0592"},{"a":15101,"t":"code","b":[96],"m":"rts"},{"a":15102,"l":"drift_voice_reg","c":"The voices' register offsets for fx_drift_voice: 0, 7 and 14.","t":"byte","b":[0,7,14],"x":[15041]},{"a":15105,"l":"trainer_skip","c":"The trainer's skip key: with the flag at $C3FF set, the Commodore key ends the stage at once as if won (stage_complete, or stage_done on stage 7; on stage 8 it sets $0622). Not part of Activision's game.","t":"code","b":[173,255,195],"m":"lda","oa":50175,"o":"$C3FF","x":[2458]},{"a":15108,"t":"code","b":[240,23],"m":"beq","oa":15133,"o":"r_3B1D"},{"a":15110,"t":"code","b":[173,0,220],"m":"lda","o":"cia1_port_a"},{"a":15113,"t":"code","b":[141,25,59],"m":"sta","oa":15129,"o":"skip_save_port"},{"a":15116,"t":"code","b":[169,127],"m":"lda","o":"#$7F"},{"a":15118,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":15121,"t":"code","b":[173,1,220],"m":"lda","o":"cia1_port_b"},{"a":15124,"t":"code","b":[201,223],"m":"cmp","o":"#$DF"},{"a":15126,"t":"code","b":[240,6],"m":"beq","oa":15134,"o":"skip_pressed"},{"a":15128,"l":"j_3B18","t":"code","b":[169,169],"m":"lda","o":"#$A9","x":[15169]},{"a":15129,"t":"note","l":"skip_save_port","c":"The value of CIA 1 port A found on entry, kept in the operand of the LDA at $3B18 and put back on the way out.","note":"inside the item at $3B18","x":[15113]},{"a":15130,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":15133,"l":"r_3B1D","t":"code","b":[96],"m":"rts","x":[15108]},{"a":15134,"l":"skip_pressed","c":"The Commodore key is down (row 7 reads $DF): clears $0202. On stage 7 blanks the screen and the sprites and counts the stage as won (stage_done); on stage 8 sets $0622 to $80 for the ending's own code; on any other stage jumps to stage_complete, which shows the stage's code and moves on to the next stage, as if the level had been won.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[15126]},{"a":15136,"t":"code","b":[141,2,2],"m":"sta","oa":514,"o":"a_0202"},{"a":15139,"t":"code","b":[173,5,2],"m":"lda","oa":517,"o":"a_0205"},{"a":15142,"t":"code","b":[201,7],"m":"cmp","o":"#$07"},{"a":15144,"t":"code","b":[240,7],"m":"beq","oa":15153,"o":"b_3B31"},{"a":15146,"t":"code","b":[201,8],"m":"cmp","o":"#$08"},{"a":15148,"t":"code","b":[240,14],"m":"beq","oa":15164,"o":"b_3B3C"},{"a":15150,"t":"code","b":[76,156,8],"m":"jmp","oa":2204,"o":"stage_complete"},{"a":15153,"l":"b_3B31","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[15144]},{"a":15155,"t":"code","b":[141,117,4],"m":"sta","oa":1141,"o":"a_0475"},{"a":15158,"t":"code","b":[141,121,4],"m":"sta","oa":1145,"o":"a_0479"},{"a":15161,"t":"code","b":[76,177,8],"m":"jmp","oa":2225,"o":"stage_done"},{"a":15164,"l":"b_3B3C","t":"code","b":[169,128],"m":"lda","o":"#$80","x":[15148]},{"a":15166,"t":"code","b":[141,34,6],"m":"sta","oa":1570,"o":"a_0622"},{"a":15169,"t":"code","b":[76,24,59],"m":"jmp","oa":15128,"o":"j_3B18"},{"a":15172,"c":"The end of the game: LDA #$80, STA $0221, a loop until $0221 holds $8D (RETURN), and JMP stage_abort, which starts a new game. Nothing in the engine reaches it; the fight with the Queen jumps here (from $8A4E) after the ending, or at once for a player who skipped a stage.","t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":15174,"t":"code","b":[141,33,2],"m":"sta","oa":545,"o":"a_0221"},{"a":15177,"l":"b_3B49","t":"code","b":[173,33,2],"m":"lda","oa":545,"o":"a_0221","x":[15182]},{"a":15180,"t":"code","b":[201,141],"m":"cmp","o":"#$8D"},{"a":15182,"t":"code","b":[208,249],"m":"bne","oa":15177,"o":"b_3B49"},{"a":15184,"t":"code","b":[76,172,8],"m":"jmp","oa":2220,"o":"stage_abort"},{"a":15187,"l":"stage_files","c":"The digit of each stage's file, by stage 0 to 8: 9, 3, 5, 6, 7, 0, 4, 8 and 1, so stage 0 loads A9 and stage 8 loads A1.","t":"byte","b":[57,51,53,54,55,48,52,56],"x":[11251]},{"a":15195,"t":"byte","b":[49]},{"a":15196,"l":"copy_vic","c":"Writes the VIC-II register copy at $0464-$0492 to $D000-$D02E, all but $D020.","t":"code","b":[160,46],"m":"ldy","o":"#$2E","x":[4736]},{"a":15198,"l":"b_3B5E","t":"code","b":[192,32],"m":"cpy","o":"#$20","x":[15209]},{"a":15200,"t":"code","b":[240,6],"m":"beq","oa":15208,"o":"b_3B68"},{"a":15202,"t":"code","b":[185,100,4],"m":"lda","oa":1124,"o":"f_0464,y"},{"a":15205,"t":"code","b":[153,0,208],"m":"sta","o":"vic_sprite0_x,y"},{"a":15208,"l":"b_3B68","t":"code","b":[136],"m":"dey","x":[15200]},{"a":15209,"t":"code","b":[16,243],"m":"bpl","oa":15198,"o":"b_3B5E"},{"a":15211,"t":"code","b":[96],"m":"rts"},{"a":15212,"t":"gap","n":85},{"a":15297,"l":"restore_arm","c":"Points the NMI vector at nmi_restart ($0959) and rewrites restore_switch's opcode to STX, after resetting the sound. Called by nmi_restart before it restarts the stage.","t":"code","b":[32,3,9],"m":"jsr","oa":2307,"o":"reset_sound","x":[2404]},{"a":15300,"t":"code","b":[169,89],"m":"lda","o":"#$59"},{"a":15302,"t":"code","b":[141,250,255],"m":"sta","oa":65530,"o":"$FFFA"},{"a":15305,"t":"code","b":[169,9],"m":"lda","o":"#$09"},{"a":15307,"t":"code","b":[141,251,255],"m":"sta","oa":65531,"o":"$FFFB"},{"a":15310,"t":"code","b":[169,142],"m":"lda","o":"#$8E"},{"a":15312,"t":"code","b":[141,241,9],"m":"sta","oa":2545,"o":"restore_switch"},{"a":15315,"t":"code","b":[96],"m":"rts"},{"a":15316,"l":"any_key_down","c":"Returns Z set when no key in rows 0 and 1 is down.","t":"code","b":[162,7],"m":"ldx","o":"#$07","x":[2986]},{"a":15318,"t":"code","b":[141,2,220],"m":"sta","o":"cia1_ddr_a"},{"a":15321,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":15323,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":15326,"t":"code","b":[173,1,220],"m":"lda","o":"cia1_port_b"},{"a":15329,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":15331,"t":"code","b":[208,12],"m":"bne","oa":15345,"o":"r_3BF1"},{"a":15333,"t":"code","b":[169,253],"m":"lda","o":"#$FD"},{"a":15335,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":15338,"t":"code","b":[173,1,220],"m":"lda","o":"cia1_port_b"},{"a":15341,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":15343,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":15345,"l":"r_3BF1","t":"code","b":[96],"m":"rts","x":[15331]},{"a":15346,"l":"start_stage","c":"Arms the RESTORE handling (rewrites $09F1 to STX) and jumps into the stage through the vector at $8000.","t":"code","b":[169,142],"m":"lda","o":"#$8E","x":[2201]},{"a":15348,"t":"code","b":[141,241,9],"m":"sta","oa":2545,"o":"restore_switch"},{"a":15351,"t":"code","b":[108,0,128],"m":"jmp","oa":32768,"o":"($8000)"},{"a":15354,"l":"status_entry","c":"Arms the RESTORE handling and sets up the text screen (text_screen_setup).","t":"code","b":[169,142],"m":"lda","o":"#$8E","x":[4909]},{"a":15356,"t":"code","b":[141,241,9],"m":"sta","oa":2545,"o":"restore_switch"},{"a":15359,"t":"code","b":[76,47,34],"m":"jmp","oa":8751,"o":"text_screen_setup"},{"a":15362,"l":"briefing_entry","c":"Disarms the RESTORE handling (rewrites $09F1 to LDX) and sets up the text screen.","t":"code","b":[169,174],"m":"lda","o":"#$AE","x":[6351]},{"a":15364,"t":"code","b":[141,241,9],"m":"sta","oa":2545,"o":"restore_switch"},{"a":15367,"t":"code","b":[76,47,34],"m":"jmp","oa":8751,"o":"text_screen_setup"},{"a":15370,"l":"briefing_return","c":"Disarms the RESTORE handling and returns through show_briefing's second half.","t":"code","b":[169,174],"m":"lda","o":"#$AE","x":[4967,5000]},{"a":15372,"t":"code","b":[141,241,9],"m":"sta","oa":2545,"o":"restore_switch"},{"a":15375,"t":"code","b":[76,210,24],"m":"jmp","oa":6354,"o":"j_18D2"},{"a":15378,"t":"gap","n":33774},{"a":49152,"l":"stage_sprites","c":"Eight sprite shapes, 64 bytes each, that load_stage copies to $4000-$41FF for stages 0, 1 and 7: a bar two pixels wide and 21 high, then two multicolour shapes at $C040 and $C080.","t":"byte","b":[192,0,0,192,0,0,192,0],"x":[11232]},{"a":49160,"t":"byte","b":[0,192,0,0,192,0,0,192]},{"a":49168,"t":"byte","b":[0,0,192,0,0,192,0,0]},{"a":49176,"t":"byte","b":[192,0,0,192,0,0,192,0]},{"a":49184,"t":"byte","b":[0,192,0,0,192,0,0,192]},{"a":49192,"t":"byte","b":[0,0,192,0,0,192,0,0]},{"a":49200,"t":"byte","b":[192,0,0,192,0,0,192,0]},{"a":49208,"t":"byte","b":[0,192,0,0,192,0,0,0]},{"a":49216,"t":"byte","b":[11,85,86,10,213,86,2,181]},{"a":49224,"t":"byte","b":[86,0,165,86,0,37,86,0]},{"a":49232,"t":"byte","b":[37,94,0,37,94,0,37,90]},{"a":49240,"t":"byte","b":[0,37,88,0,165,88,0,181]},{"a":49248,"t":"byte","b":[120,0,181,120,0,149,104,2]},{"a":49256,"t":"byte","b":[149,224,2,213,160,10,87,128]},{"a":49264,"t":"byte","b":[11,94,128,45,234,0,39,168]},{"a":49272,"t":"byte","b":[0,42,128,0,40,0,0,0]},{"a":49280,"t":"byte","b":[149,85,224,149,87,160,149,94]},{"a":49288,"t":"byte","b":[128,149,90,0,149,88,0,181]},{"a":49296,"t":"byte","b":[88,0,181,88,0,165,88,0]},{"a":49304,"t":"byte","b":[37,88,0,37,90,0,45,94]},{"a":49312,"t":"byte","b":[0,45,94,0,41,86,0,11]},{"a":49320,"t":"byte","b":[86,128,10,87,128,2,213,160]},{"a":49328,"t":"byte","b":[2,181,224,0,171,120,0,42]},{"a":49336,"t":"byte","b":[216,0,2,168,0,0,40,0]},{"a":49344,"c":"Four more sprite shapes: a glove with a raised finger and its solid outline ($C0C0, $C100), the same glove a little lower and its outline ($C140, $C180), the pointer of the equipment identification screen before level 1.","t":"byte","b":[0,0,0,32,0,0,112,0]},{"a":49352,"t":"byte","b":[0,112,0,0,112,0,0,112]},{"a":49360,"t":"byte","b":[0,0,112,0,0,112,0,0]},{"a":49368,"t":"byte","b":[119,0,0,119,112,0,119,118]},{"a":49376,"t":"byte","b":[0,127,254,0,127,254,0,118]},{"a":49384,"t":"byte","b":[222,0,127,254,0,118,222,0]},{"a":49392,"t":"byte","b":[127,254,0,127,254,0,48,12]},{"a":49400,"t":"byte","b":[0,31,248,0,0,0,0,0]},{"a":49408,"l":"hand_outline_1","c":"The solid outline of the hand at $C0C0, a sprite shape.","t":"byte","b":[32,0,0,112,0,0,248,0],"x":[11238]},{"a":49416,"t":"byte","b":[0,248,0,0,248,0,0,248]},{"a":49424,"t":"byte","b":[0,0,248,0,0,255,128,0]},{"a":49432,"t":"byte","b":[255,248,0,255,254,0,255,255]},{"a":49440,"t":"byte","b":[0,255,255,0,255,255,0,255]},{"a":49448,"t":"byte","b":[255,0,255,255,0,255,255,0]},{"a":49456,"t":"byte","b":[255,255,0,255,255,0,127,254]},{"a":49464,"t":"byte","b":[0,63,252,0,31,248,0,0]},{"a":49472,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":49480,"t":"byte","b":[0,32,0,0,112,0,0,112]},{"a":49488,"t":"byte","b":[0,0,112,0,0,112,0,0]},{"a":49496,"t":"byte","b":[119,0,0,119,112,0,119,118]},{"a":49504,"t":"byte","b":[0,127,254,0,127,254,0,118]},{"a":49512,"t":"byte","b":[222,0,127,254,0,118,222,0]},{"a":49520,"t":"byte","b":[127,254,0,127,254,0,48,12]},{"a":49528,"t":"byte","b":[0,31,248,0,0,0,0,0]},{"a":49536,"t":"byte","b":[0,0,0,0,0,0,32,0]},{"a":49544,"t":"byte","b":[0,112,0,0,248,0,0,248]},{"a":49552,"t":"byte","b":[0,0,248,0,0,255,128,0]},{"a":49560,"t":"byte","b":[255,248,0,255,254,0,255,255]},{"a":49568,"t":"byte","b":[0,255,255,0,255,255,0,255]},{"a":49576,"t":"byte","b":[255,0,255,255,0,255,255,0]},{"a":49584,"t":"byte","b":[255,255,0,255,255,0,127,254]},{"a":49592,"t":"byte","b":[0,63,252,0,31,248,0,0]},{"a":49600,"c":"The last sprite shape: a round multicolour object with bands.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":49608,"t":"byte","b":[0,2,255,128,11,170,96,46]},{"a":49616,"t":"byte","b":[170,148,58,170,165,58,87,165]},{"a":49624,"t":"byte","b":[58,107,165,58,107,165,58,107]},{"a":49632,"t":"byte","b":[165,58,107,165,58,107,165,58]},{"a":49640,"t":"byte","b":[127,165,58,170,165,46,170,149]},{"a":49648,"t":"byte","b":[11,170,84,2,85,80,0,149]},{"a":49656,"t":"byte","b":[64,0,0,0,0,0,0,0]},{"a":49664,"t":"gap","n":15872,"x":[11266]}]}