{"schema":1,"platform":"c64","game":"boulder-dash","title":"Boulder Dash","build":"Re-packaged disk named C64.COM: one program, BOULDER DASH, 16,499 bytes, a BASIC stub and a copier ahead of the game; title screen \"(C)1984 First Star Software Inc.\"","symbols_sha256":"dbabc3d956069bfe7481dea77524d1c6d8f64cb5191c4fa77fad763ad841a017","snapshot":{"file":"work/play-cave-a.vsf","sha256":"170df7ae410346cd0bbede122072bf3ce597f18ccbef42036b887c4ece6b0c34"},"index":[{"a":20480,"n":"text_charset","k":"table","len":64,"c":true},{"a":20544,"n":"data_5040","k":"table","len":64,"c":true},{"a":20608,"n":"data_5080","k":"table","len":64,"c":true},{"a":20672,"n":"data_50C0","k":"table","len":64,"c":true},{"a":20736,"n":"charset_chars_20","k":"table","len":64,"c":true},{"a":20801,"n":"data_5141","k":"table","len":64,"c":true},{"a":20865,"n":"data_5181","k":"table","len":64,"c":true},{"a":20929,"n":"data_51C1","k":"table","len":63,"c":true},{"a":20992,"n":"charset_chars_40","k":"table","len":64,"c":true},{"a":21059,"n":"data_5243","k":"table","len":64,"c":true},{"a":21123,"n":"data_5283","k":"table","len":64,"c":true},{"a":21187,"n":"data_52C3","k":"table","len":61,"c":true},{"a":21248,"n":"charset_chars_60","k":"table","len":64,"c":true},{"a":21313,"n":"data_5341","k":"table","len":64,"c":true},{"a":21377,"n":"data_5381","k":"table","len":47,"c":true},{"a":21424,"n":"window_cell_offsets","k":"variable","len":1,"c":true},{"a":21425,"n":"window_offset_low","k":"variable","len":1,"c":true},{"a":21426,"n":"window_offset_high","k":"table","len":40,"c":true},{"a":21466,"n":"scroll_row_low","k":"variable","len":1,"c":true},{"a":21467,"n":"scroll_row_table","k":"table","len":43,"c":true},{"a":21510,"n":"amoeba_frames_top","k":"table","len":8,"c":true},{"a":21518,"n":"amoeba_frames_top_right","k":"table","len":64,"c":true},{"a":21582,"n":"data_544E","k":"table","len":56,"c":true},{"a":21638,"n":"amoeba_frames_bottom","k":"table","len":8,"c":true},{"a":21646,"n":"amoeba_frames_bottom_right","k":"table","len":64,"c":true},{"a":21715,"n":"data_54D3","k":"table","len":51,"c":true},{"a":21766,"n":"firefly_frames_top","k":"table","len":8,"c":true},{"a":21774,"n":"firefly_frames_top_right","k":"table","len":64,"c":true},{"a":21838,"n":"data_554E","k":"table","len":56,"c":true},{"a":21894,"n":"firefly_frames_bottom","k":"table","len":8,"c":true},{"a":21902,"n":"firefly_frames_bottom_right","k":"table","len":64,"c":true},{"a":21966,"n":"data_55CE","k":"table","len":56,"c":true},{"a":22022,"n":"diamond_frames_top","k":"table","len":8,"c":true},{"a":22030,"n":"diamond_frames_top_right","k":"table","len":64,"c":true},{"a":22094,"n":"data_564E","k":"table","len":56,"c":true},{"a":22150,"n":"diamond_frames_bottom","k":"table","len":8,"c":true},{"a":22158,"n":"diamond_frames_bottom_right","k":"table","len":64,"c":true},{"a":22222,"n":"data_56CE","k":"table","len":56,"c":true},{"a":22278,"n":"butterfly_frames_top","k":"table","len":8,"c":true},{"a":22286,"n":"butterfly_frames_top_right","k":"table","len":64,"c":true},{"a":22350,"n":"data_574E","k":"table","len":56,"c":true},{"a":22406,"n":"butterfly_frames_bottom","k":"table","len":8,"c":true},{"a":22414,"n":"butterfly_frames_bottom_right","k":"table","len":64,"c":true},{"a":22478,"n":"data_57CE","k":"table","len":54,"c":true},{"a":22532,"n":"cave_offsets_low","k":"variable","len":1,"c":true},{"a":22533,"n":"cave_offsets","k":"table","len":64,"c":true},{"a":22597,"n":"cave_01_data_22597","k":"table","len":26,"c":true},{"a":22623,"n":"cave_02_data_22623","k":"table","len":64,"c":true},{"a":22687,"n":"cave_02_data_22687","k":"table","len":25,"c":true},{"a":22712,"n":"cave_03_data_22712","k":"table","len":39,"c":true},{"a":22751,"n":"cave_04_data_22751","k":"table","len":64,"c":true},{"a":22815,"n":"cave_04_data_22815","k":"table","len":11,"c":true},{"a":22826,"n":"cave_05_data_22826","k":"table","len":64,"c":true},{"a":22890,"n":"cave_05_data_22890","k":"table","len":64,"c":true},{"a":22954,"n":"cave_05_data_22954","k":"table","len":7,"c":true},{"a":22961,"n":"cave_06_data_22961","k":"table","len":64,"c":true},{"a":23025,"n":"cave_06_data_23025","k":"table","len":64,"c":true},{"a":23089,"n":"cave_06_data_23089","k":"table","len":17,"c":true},{"a":23106,"n":"cave_07_data_23106","k":"table","len":64,"c":true},{"a":23170,"n":"cave_07_data_23170","k":"table","len":8,"c":true},{"a":23178,"n":"cave_08_data_23178","k":"table","len":64,"c":true},{"a":23242,"n":"cave_08_data_23242","k":"table","len":23,"c":true},{"a":23265,"n":"cave_09_data_23265","k":"table","len":64,"c":true},{"a":23329,"n":"cave_09_data_23329","k":"table","len":3,"c":true},{"a":23332,"n":"cave_10_data_23332","k":"table","len":64,"c":true},{"a":23396,"n":"cave_10_data_23396","k":"table","len":37,"c":true},{"a":23433,"n":"cave_11_data_23433","k":"table","len":64,"c":true},{"a":23497,"n":"cave_11_data_23497","k":"table","len":38,"c":true},{"a":23535,"n":"cave_12_data_23535","k":"table","len":64,"c":true},{"a":23599,"n":"cave_12_data_23599","k":"table","len":42,"c":true},{"a":23641,"n":"cave_13_data_23641","k":"table","len":62,"c":true},{"a":23703,"n":"cave_14_data_23703","k":"table","len":64,"c":true},{"a":23767,"n":"cave_14_data_23767","k":"table","len":26,"c":true},{"a":23793,"n":"cave_15_data_23793","k":"table","len":59,"c":true},{"a":23852,"n":"cave_16_data_23852","k":"table","len":64,"c":true},{"a":23916,"n":"cave_16_data_23916","k":"table","len":31,"c":true},{"a":23947,"n":"cave_17_data_23947","k":"table","len":60,"c":true},{"a":24007,"n":"cave_18_data_24007","k":"table","len":64,"c":true},{"a":24071,"n":"cave_18_data_24071","k":"table","len":22,"c":true},{"a":24093,"n":"cave_19_data_24093","k":"table","len":62,"c":true},{"a":24155,"n":"cave_20_data_24155","k":"table","len":64,"c":true},{"a":24219,"n":"cave_20_data_24219","k":"table","len":13,"c":true},{"a":24232,"n":"demo_script","k":"table","len":64,"c":true},{"a":24296,"n":"object_remap_table","k":"table","len":64,"c":true},{"a":24360,"n":"object_tile_table","k":"table","len":64,"c":true},{"a":24424,"n":"handler_table_low","k":"variable","len":1,"c":true},{"a":24425,"n":"handler_table","k":"table","len":64,"c":true},{"a":24489,"n":"data_5FA9","k":"table","len":63,"c":true},{"a":24552,"n":"title_tune_voice2","k":"variable","len":1,"c":true},{"a":24553,"n":"title_tune_voice1","k":"table","len":64,"c":true},{"a":24617,"n":"data_6029","k":"table","len":64,"c":true},{"a":24681,"n":"data_6069","k":"table","len":64,"c":true},{"a":24745,"n":"data_60A9","k":"table","len":63,"c":true},{"a":24808,"n":"tile_charset_1","k":"table","len":64,"c":true},{"a":24872,"n":"data_6128","k":"table","len":64,"c":true},{"a":24936,"n":"data_6168","k":"table","len":64,"c":true},{"a":25000,"n":"data_61A8","k":"table","len":64,"c":true},{"a":25064,"n":"tile_charset_2","k":"table","len":64,"c":true},{"a":25128,"n":"data_6228","k":"table","len":64,"c":true},{"a":25192,"n":"data_6268","k":"table","len":64,"c":true},{"a":25256,"n":"data_62A8","k":"table","len":64,"c":true},{"a":25320,"n":"tile_charset_3","k":"table","len":64,"c":true},{"a":25388,"n":"data_632C","k":"table","len":64,"c":true},{"a":25452,"n":"data_636C","k":"table","len":64,"c":true},{"a":25516,"n":"data_63AC","k":"table","len":60,"c":true},{"a":25576,"n":"rockford_frames_1a","k":"table","len":8,"c":true},{"a":25584,"n":"rockford_frames_1b","k":"table","len":64,"c":true},{"a":25649,"n":"data_6431","k":"table","len":55,"c":true},{"a":25704,"n":"rockford_frames_2a","k":"table","len":8,"c":true},{"a":25712,"n":"rockford_frames_2b","k":"table","len":64,"c":true},{"a":25776,"n":"data_64B0","k":"table","len":56,"c":true},{"a":25832,"n":"rockford_frames_3a","k":"table","len":8,"c":true},{"a":25840,"n":"rockford_frames_3b","k":"table","len":64,"c":true},{"a":25906,"n":"data_6532","k":"table","len":54,"c":true},{"a":25960,"n":"rockford_frames_4a","k":"table","len":8,"c":true},{"a":25968,"n":"rockford_frames_4b","k":"table","len":64,"c":true},{"a":26032,"n":"data_65B0","k":"table","len":56,"c":true},{"a":26088,"n":"rockford_frames_5a","k":"table","len":8,"c":true},{"a":26096,"n":"rockford_frames_5b","k":"table","len":64,"c":true},{"a":26162,"n":"data_6632","k":"table","len":54,"c":true},{"a":26216,"n":"rockford_frames_6a","k":"table","len":8,"c":true},{"a":26224,"n":"rockford_frames_6b","k":"table","len":64,"c":true},{"a":26288,"n":"data_66B0","k":"table","len":56,"c":true},{"a":26344,"n":"title_map_top","k":"table","len":16,"c":true},{"a":26360,"n":"title_map_rows","k":"table","len":64,"c":true},{"a":26424,"n":"data_6738","k":"table","len":64,"c":true},{"a":26488,"n":"data_6778","k":"table","len":64,"c":true},{"a":26552,"n":"data_67B8","k":"table","len":48,"c":true},{"a":26600,"n":"title_map_top_2","k":"table","len":16,"c":true},{"a":26616,"n":"title_map_rows_2","k":"table","len":64,"c":true},{"a":26680,"n":"data_6838","k":"table","len":64,"c":true},{"a":26744,"n":"data_6878","k":"table","len":64,"c":true},{"a":26808,"n":"data_68B8","k":"table","len":48,"c":true},{"a":26856,"n":"logo_row19_right","k":"table","len":64,"c":true},{"a":26921,"n":"data_6929","k":"table","len":64,"c":true},{"a":26985,"n":"data_6969","k":"table","len":63,"c":true},{"a":27048,"n":"logo_row20_right","k":"table","len":64,"c":true},{"a":27112,"n":"data_69E8","k":"table","len":64,"c":true},{"a":27176,"n":"data_6A28","k":"table","len":64,"c":true},{"a":27240,"n":"logo_row21_right","k":"table","len":64,"c":true},{"a":27304,"n":"data_6AA8","k":"table","len":128,"c":true},{"a":27432,"n":"logo_row22_right","k":"table","len":64,"c":true},{"a":27496,"n":"data_6B68","k":"table","len":128,"c":true},{"a":27624,"n":"logo_row23_left","k":"table","len":64,"c":true},{"a":27690,"n":"data_6C2A","k":"table","len":62,"c":true},{"a":27752,"n":"logo_row23_right","k":"table","len":64,"c":true},{"a":27816,"n":"data_6CA8","k":"table","len":128,"c":true},{"a":27944,"n":"logo_row24_left","k":"table","len":64,"c":true},{"a":28011,"n":"data_6D6B","k":"table","len":61,"c":true},{"a":28072,"n":"logo_row24_right","k":"table","len":64,"c":true},{"a":28137,"n":"data_6DE9","k":"table","len":64,"c":true},{"a":28201,"n":"data_6E29","k":"table","len":63,"c":true},{"a":28264,"n":"random_byte","k":"routine","len":19,"c":true},{"a":28283,"n":"fill_colour_ram","k":"routine","len":33,"c":true},{"a":28288,"n":"b_6E80","k":"branch","len":1,"c":false},{"a":28305,"n":"b_6E91","k":"branch","len":1,"c":false},{"a":28316,"n":"save_status_row","k":"routine","len":18,"c":true},{"a":28320,"n":"b_6EA0","k":"branch","len":1,"c":false},{"a":28334,"n":"draw_status_text","k":"routine","len":71,"c":true},{"a":28346,"n":"b_6EBA","k":"branch","len":1,"c":false},{"a":28349,"n":"b_6EBD","k":"branch","len":1,"c":false},{"a":28367,"n":"b_6ECF","k":"branch","len":1,"c":false},{"a":28370,"n":"b_6ED2","k":"branch","len":1,"c":false},{"a":28380,"n":"b_6EDC","k":"branch","len":1,"c":false},{"a":28388,"n":"b_6EE4","k":"branch","len":1,"c":false},{"a":28405,"n":"read_joystick_1","k":"routine","len":6,"c":true},{"a":28411,"n":"read_joystick_2","k":"routine","len":6,"c":true},{"a":28417,"n":"read_fire","k":"routine","len":2,"c":true},{"a":28419,"n":"read_fire_button","k":"routine","len":17,"c":true},{"a":28428,"n":"b_6F0C","k":"branch","len":1,"c":false},{"a":28431,"n":"b_6F0F","k":"branch","len":1,"c":false},{"a":28436,"n":"text_title_credit_1","k":"table","len":20,"c":true},{"a":28456,"n":"text_title_credit_2","k":"table","len":20,"c":true},{"a":28476,"n":"text_players_joystick","k":"table","len":20,"c":true},{"a":28496,"n":"text_player_labels","k":"table","len":20,"c":true},{"a":28516,"n":"text_score_last","k":"table","len":20,"c":true},{"a":28536,"n":"text_score_high","k":"table","len":40,"c":true},{"a":28576,"n":"text_status_template","k":"table","len":60,"c":true},{"a":28636,"n":"text_cave_level","k":"table","len":20,"c":true},{"a":28656,"n":"text_spacebar_resume","k":"table","len":20,"c":true},{"a":28676,"n":"text_press_button","k":"table","len":20,"c":true},{"a":28696,"n":"draw_tile","k":"routine","len":27,"c":true},{"a":28723,"n":"locate_neighbour_tile","k":"routine","len":27,"c":true},{"a":28726,"n":"b_7036","k":"branch","len":1,"c":false},{"a":28750,"n":"set_object","k":"routine","len":33,"c":true},{"a":28783,"n":"clear_cell_and_redraw","k":"routine","len":22,"c":true},{"a":28805,"n":"cave_random_step","k":"routine","len":41,"c":true},{"a":28846,"n":"explode_neighbour","k":"routine","len":12,"c":true},{"a":28857,"n":"r_70B9","k":"branch","len":1,"c":false},{"a":28858,"n":"explode_cell_below","k":"routine","len":50,"c":true},{"a":28908,"n":"exit_handler","k":"routine","len":14,"c":true},{"a":28919,"n":"b_70F7","k":"branch","len":1,"c":false},{"a":28922,"n":"explode_cell_here","k":"routine","len":47,"c":true},{"a":28969,"n":"explosion_sound","k":"routine","len":20,"c":true},{"a":28979,"n":"b_7133","k":"branch","len":1,"c":false},{"a":28989,"n":"sid_explosion_regs","k":"table","len":7,"c":true},{"a":28996,"n":"dir_cell_offsets","k":"table","len":4,"c":true},{"a":29000,"n":"dir_left_turn_offsets","k":"table","len":4,"c":true},{"a":29004,"n":"is_rockford_or_amoeba","k":"routine","len":13,"c":true},{"a":29016,"n":"r_7158","k":"branch","len":1,"c":false},{"a":29017,"n":"rockford_or_amoeba_adjacent","k":"routine","len":25,"c":true},{"a":29042,"n":"firefly_handler","k":"routine","len":78,"c":true},{"a":29057,"n":"b_7181","k":"branch","len":1,"c":false},{"a":29085,"n":"b_719D","k":"branch","len":1,"c":false},{"a":29105,"n":"b_71B1","k":"branch","len":1,"c":false},{"a":29120,"n":"diamond_sound","k":"routine","len":39,"c":true},{"a":29125,"n":"b_71C5","k":"branch","len":1,"c":false},{"a":29159,"n":"sid_thud_regs","k":"table","len":7,"c":true},{"a":29166,"n":"play_thud_sound","k":"routine","len":15,"c":true},{"a":29171,"n":"b_71F3","k":"branch","len":1,"c":false},{"a":29181,"n":"can_roll_off","k":"routine","len":23,"c":true},{"a":29189,"n":"b_7205","k":"branch","len":1,"c":false},{"a":29195,"n":"b_720B","k":"branch","len":1,"c":false},{"a":29201,"n":"b_7211","k":"branch","len":1,"c":false},{"a":29204,"n":"is_creature","k":"routine","len":49,"c":true},{"a":29226,"n":"b_722A","k":"branch","len":1,"c":false},{"a":29250,"n":"b_7242","k":"branch","len":1,"c":false},{"a":29253,"n":"butterfly_handler","k":"routine","len":78,"c":true},{"a":29268,"n":"b_7254","k":"branch","len":1,"c":false},{"a":29296,"n":"b_7270","k":"branch","len":1,"c":false},{"a":29316,"n":"b_7284","k":"branch","len":1,"c":false},{"a":29331,"n":"diamond_lands","k":"routine","len":10,"c":true},{"a":29341,"n":"falling_diamond_handler","k":"routine","len":130,"c":true},{"a":29355,"n":"b_72AB","k":"branch","len":1,"c":false},{"a":29367,"n":"b_72B7","k":"branch","len":1,"c":false},{"a":29382,"n":"b_72C6","k":"branch","len":1,"c":false},{"a":29388,"n":"b_72CC","k":"branch","len":1,"c":false},{"a":29420,"n":"b_72EC","k":"branch","len":1,"c":false},{"a":29440,"n":"b_7300","k":"branch","len":1,"c":false},{"a":29443,"n":"b_7303","k":"branch","len":1,"c":false},{"a":29457,"n":"b_7311","k":"branch","len":1,"c":false},{"a":29468,"n":"b_731C","k":"branch","len":1,"c":false},{"a":29471,"n":"diamond_handler","k":"routine","len":69,"c":true},{"a":29488,"n":"b_7330","k":"branch","len":1,"c":false},{"a":29517,"n":"b_734D","k":"branch","len":1,"c":false},{"a":29537,"n":"b_7361","k":"branch","len":1,"c":false},{"a":29540,"n":"neighbour_offsets","k":"table","len":4,"c":true},{"a":29544,"n":"amoeba_handler","k":"routine","len":105,"c":true},{"a":29562,"n":"b_737A","k":"branch","len":1,"c":false},{"a":29574,"n":"b_7386","k":"branch","len":1,"c":false},{"a":29584,"n":"b_7390","k":"branch","len":1,"c":false},{"a":29598,"n":"b_739E","k":"branch","len":1,"c":false},{"a":29610,"n":"b_73AA","k":"branch","len":1,"c":false},{"a":29631,"n":"b_73BF","k":"branch","len":1,"c":false},{"a":29637,"n":"b_73C5","k":"branch","len":1,"c":false},{"a":29646,"n":"b_73CE","k":"branch","len":1,"c":false},{"a":29649,"n":"add_life","k":"routine","len":13,"c":true},{"a":29661,"n":"r_73DD","k":"branch","len":1,"c":false},{"a":29662,"n":"check_bonus_life","k":"routine","len":23,"c":true},{"a":29671,"n":"b_73E7","k":"branch","len":1,"c":false},{"a":29684,"n":"r_73F4","k":"branch","len":1,"c":false},{"a":29685,"n":"add_to_score","k":"routine","len":35,"c":true},{"a":29696,"n":"b_7400","k":"branch","len":1,"c":false},{"a":29706,"n":"b_740A","k":"branch","len":1,"c":false},{"a":29720,"n":"sid_voice3_regs","k":"table","len":7,"c":true},{"a":29727,"n":"trigger_voice3_sound","k":"routine","len":5,"c":true},{"a":29732,"n":"low_time_check","k":"routine","len":57,"c":true},{"a":29749,"n":"b_7435","k":"branch","len":1,"c":false},{"a":29788,"n":"r_745C","k":"branch","len":1,"c":false},{"a":29789,"n":"time_down_one","k":"routine","len":27,"c":true},{"a":29792,"n":"b_7460","k":"branch","len":1,"c":false},{"a":29802,"n":"b_746A","k":"branch","len":1,"c":false},{"a":29816,"n":"second_tick","k":"routine","len":17,"c":true},{"a":29832,"n":"r_7488","k":"branch","len":1,"c":false},{"a":29833,"n":"intro_countdown","k":"routine","len":20,"c":true},{"a":29852,"n":"r_749C","k":"branch","len":1,"c":false},{"a":29853,"n":"redraw_status_line","k":"routine","len":12,"c":true},{"a":29865,"n":"frame_clock","k":"routine","len":28,"c":true},{"a":29889,"n":"b_74C1","k":"branch","len":1,"c":false},{"a":29892,"n":"r_74C4","k":"branch","len":1,"c":false},{"a":29893,"n":"count_diamond","k":"routine","len":23,"c":true},{"a":29896,"n":"b_74C8","k":"branch","len":1,"c":false},{"a":29905,"n":"b_74D1","k":"branch","len":1,"c":false},{"a":29916,"n":"show_needed","k":"routine","len":13,"c":true},{"a":29918,"n":"b_74DE","k":"branch","len":1,"c":false},{"a":29929,"n":"show_value","k":"routine","len":13,"c":true},{"a":29931,"n":"b_74EB","k":"branch","len":1,"c":false},{"a":29942,"n":"check_quota","k":"routine","len":44,"c":true},{"a":29960,"n":"b_7508","k":"branch","len":1,"c":false},{"a":29985,"n":"r_7521","k":"branch","len":1,"c":false},{"a":29986,"n":"sid_diamond_regs","k":"variable","len":2,"c":true},{"a":29988,"n":"diamond_sound_data","k":"table","len":5,"c":true},{"a":29993,"n":"pick_up_diamond","k":"routine","len":26,"c":true},{"a":29998,"n":"b_752E","k":"branch","len":1,"c":false},{"a":30019,"n":"push_succeeds","k":"routine","len":18,"c":true},{"a":30036,"n":"r_7554","k":"branch","len":1,"c":false},{"a":30037,"n":"try_enter_cell","k":"routine","len":84,"c":true},{"a":30053,"n":"b_7565","k":"branch","len":1,"c":false},{"a":30065,"n":"b_7571","k":"branch","len":1,"c":false},{"a":30072,"n":"b_7578","k":"branch","len":1,"c":false},{"a":30086,"n":"b_7586","k":"branch","len":1,"c":false},{"a":30103,"n":"b_7597","k":"branch","len":1,"c":false},{"a":30105,"n":"b_7599","k":"branch","len":1,"c":false},{"a":30118,"n":"b_75A6","k":"branch","len":1,"c":false},{"a":30120,"n":"r_75A8","k":"branch","len":1,"c":false},{"a":30121,"n":"move_into_cell","k":"routine","len":37,"c":true},{"a":30143,"n":"b_75BF","k":"branch","len":1,"c":false},{"a":30157,"n":"r_75CD","k":"branch","len":1,"c":false},{"a":30158,"n":"rockford_move","k":"routine","len":94,"c":true},{"a":30173,"n":"b_75DD","k":"branch","len":1,"c":false},{"a":30184,"n":"r_75E8","k":"branch","len":1,"c":false},{"a":30185,"n":"b_75E9","k":"branch","len":1,"c":false},{"a":30200,"n":"r_75F8","k":"branch","len":1,"c":false},{"a":30201,"n":"b_75F9","k":"branch","len":1,"c":false},{"a":30216,"n":"b_7608","k":"branch","len":1,"c":false},{"a":30231,"n":"r_7617","k":"branch","len":1,"c":false},{"a":30232,"n":"b_7618","k":"branch","len":1,"c":false},{"a":30251,"n":"r_762B","k":"branch","len":1,"c":false},{"a":30252,"n":"rockford_handler","k":"routine","len":35,"c":true},{"a":30261,"n":"b_7635","k":"branch","len":1,"c":false},{"a":30272,"n":"b_7640","k":"branch","len":1,"c":false},{"a":30275,"n":"b_7643","k":"branch","len":1,"c":false},{"a":30277,"n":"j_7645","k":"branch","len":1,"c":false},{"a":30287,"n":"explosion_next_table","k":"variable","len":1,"c":true},{"a":30288,"n":"explosion_next_codes","k":"table","len":19,"c":true},{"a":30307,"n":"arrival_next_table","k":"variable","len":1,"c":true},{"a":30308,"n":"arrival_next_codes","k":"variable","len":2,"c":true},{"a":30310,"n":"arrival_stage_codes","k":"table","len":5,"c":true},{"a":30315,"n":"explosion_handler","k":"routine","len":29,"c":true},{"a":30321,"n":"b_7671","k":"branch","len":1,"c":false},{"a":30329,"n":"b_7679","k":"branch","len":1,"c":false},{"a":30344,"n":"arrival_handler","k":"routine","len":33,"c":true},{"a":30354,"n":"b_7692","k":"branch","len":1,"c":false},{"a":30362,"n":"b_769A","k":"branch","len":1,"c":false},{"a":30374,"n":"b_76A6","k":"branch","len":1,"c":false},{"a":30377,"n":"draw_closed_exit_tile","k":"routine","len":24,"c":true},{"a":30401,"n":"flash_entrance","k":"routine","len":27,"c":true},{"a":30428,"n":"entrance_handler","k":"routine","len":28,"c":true},{"a":30450,"n":"b_76F2","k":"branch","len":1,"c":false},{"a":30453,"n":"b_76F5","k":"branch","len":1,"c":false},{"a":30456,"n":"boulder_handler","k":"routine","len":69,"c":true},{"a":30473,"n":"b_7709","k":"branch","len":1,"c":false},{"a":30502,"n":"b_7726","k":"branch","len":1,"c":false},{"a":30522,"n":"b_773A","k":"branch","len":1,"c":false},{"a":30525,"n":"set_boulder_rest","k":"routine","len":8,"c":true},{"a":30533,"n":"falling_boulder_handler","k":"routine","len":140,"c":true},{"a":30547,"n":"b_7753","k":"branch","len":1,"c":false},{"a":30559,"n":"b_775F","k":"branch","len":1,"c":false},{"a":30574,"n":"b_776E","k":"branch","len":1,"c":false},{"a":30584,"n":"b_7778","k":"branch","len":1,"c":false},{"a":30616,"n":"b_7798","k":"branch","len":1,"c":false},{"a":30636,"n":"b_77AC","k":"branch","len":1,"c":false},{"a":30642,"n":"b_77B2","k":"branch","len":1,"c":false},{"a":30656,"n":"b_77C0","k":"branch","len":1,"c":false},{"a":30667,"n":"b_77CB","k":"branch","len":1,"c":false},{"a":30673,"n":"clear_sparkle_table","k":"routine","len":27,"c":true},{"a":30700,"n":"sparkle_step","k":"routine","len":51,"c":true},{"a":30712,"n":"b_77F8","k":"branch","len":1,"c":false},{"a":30751,"n":"rotate_colour_table","k":"routine","len":20,"c":true},{"a":30756,"n":"b_7824","k":"branch","len":1,"c":false},{"a":30771,"n":"scroll_speed_rows","k":"variable","len":1,"c":true},{"a":30772,"n":"scroll_row_speed_a","k":"variable","len":1,"c":true},{"a":30773,"n":"scroll_row_speed_b","k":"table","len":10,"c":true},{"a":30783,"n":"scroll_speed_cols","k":"variable","len":1,"c":true},{"a":30784,"n":"scroll_col_speed_a","k":"variable","len":1,"c":true},{"a":30785,"n":"scroll_col_speed_hi","k":"table","len":10,"c":true},{"a":30795,"n":"update_window_position","k":"routine","len":8,"c":true},{"a":30803,"n":"set_window_column","k":"routine","len":18,"c":true},{"a":30813,"n":"b_785D","k":"branch","len":1,"c":false},{"a":30821,"n":"set_window_row","k":"routine","len":11,"c":true},{"a":30831,"n":"r_786F","k":"branch","len":1,"c":false},{"a":30832,"n":"scroll_x_table","k":"table","len":4,"c":true},{"a":30836,"n":"scroll_y_table","k":"table","len":4,"c":true},{"a":30840,"n":"scroll_vertical_step","k":"routine","len":121,"c":true},{"a":30855,"n":"b_7887","k":"branch","len":1,"c":false},{"a":30861,"n":"b_788D","k":"branch","len":1,"c":false},{"a":30915,"n":"b_78C3","k":"branch","len":1,"c":false},{"a":30938,"n":"b_78DA","k":"branch","len":1,"c":false},{"a":30956,"n":"b_78EC","k":"branch","len":1,"c":false},{"a":30961,"n":"scroll_horizontal_step","k":"routine","len":124,"c":true},{"a":30976,"n":"b_7900","k":"branch","len":1,"c":false},{"a":30982,"n":"b_7906","k":"branch","len":1,"c":false},{"a":31021,"n":"b_792D","k":"branch","len":1,"c":false},{"a":31039,"n":"b_793F","k":"branch","len":1,"c":false},{"a":31062,"n":"b_7956","k":"branch","len":1,"c":false},{"a":31080,"n":"b_7968","k":"branch","len":1,"c":false},{"a":31085,"n":"scroll_edge_stop","k":"routine","len":59,"c":true},{"a":31103,"n":"b_797F","k":"branch","len":1,"c":false},{"a":31115,"n":"b_798B","k":"branch","len":1,"c":false},{"a":31131,"n":"b_799B","k":"branch","len":1,"c":false},{"a":31143,"n":"r_79A7","k":"branch","len":1,"c":false},{"a":31144,"n":"scroll_vertical_speed","k":"routine","len":29,"c":true},{"a":31158,"n":"b_79B6","k":"branch","len":1,"c":false},{"a":31172,"n":"r_79C4","k":"branch","len":1,"c":false},{"a":31173,"n":"scroll_horizontal_speed","k":"routine","len":29,"c":true},{"a":31187,"n":"b_79D3","k":"branch","len":1,"c":false},{"a":31201,"n":"r_79E1","k":"branch","len":1,"c":false},{"a":31202,"n":"scroll_speed_tables","k":"routine","len":99,"c":true},{"a":31206,"n":"b_79E6","k":"branch","len":1,"c":false},{"a":31213,"n":"b_79ED","k":"branch","len":1,"c":false},{"a":31223,"n":"b_79F7","k":"branch","len":1,"c":false},{"a":31242,"n":"b_7A0A","k":"branch","len":1,"c":false},{"a":31255,"n":"b_7A17","k":"branch","len":1,"c":false},{"a":31262,"n":"b_7A1E","k":"branch","len":1,"c":false},{"a":31272,"n":"b_7A28","k":"branch","len":1,"c":false},{"a":31291,"n":"b_7A3B","k":"branch","len":1,"c":false},{"a":31301,"n":"scroll_update","k":"routine","len":25,"c":true},{"a":31310,"n":"b_7A4E","k":"branch","len":1,"c":false},{"a":31326,"n":"advance_map_pointer","k":"routine","len":7,"c":true},{"a":31332,"n":"r_7A64","k":"branch","len":1,"c":false},{"a":31333,"n":"set_row_pointer","k":"routine","len":14,"c":true},{"a":31337,"n":"b_7A69","k":"branch","len":1,"c":false},{"a":31347,"n":"fill_screen_buffer","k":"routine","len":30,"c":true},{"a":31349,"n":"b_7A75","k":"branch","len":1,"c":false},{"a":31363,"n":"b_7A83","k":"branch","len":1,"c":false},{"a":31377,"n":"scatter_cover","k":"routine","len":84,"c":true},{"a":31387,"n":"b_7A9B","k":"branch","len":1,"c":false},{"a":31410,"n":"b_7AB2","k":"branch","len":1,"c":false},{"a":31412,"n":"b_7AB4","k":"branch","len":1,"c":false},{"a":31424,"n":"b_7AC0","k":"branch","len":1,"c":false},{"a":31442,"n":"b_7AD2","k":"branch","len":1,"c":false},{"a":31461,"n":"buffer_edge_fill","k":"routine","len":19,"c":true},{"a":31465,"n":"b_7AE9","k":"branch","len":1,"c":false},{"a":31473,"n":"b_7AF1","k":"branch","len":1,"c":false},{"a":31480,"n":"reveal_random_cells","k":"routine","len":73,"c":true},{"a":31484,"n":"b_7AFC","k":"branch","len":1,"c":false},{"a":31491,"n":"b_7B03","k":"branch","len":1,"c":false},{"a":31553,"n":"intro_effects","k":"routine","len":85,"c":true},{"a":31598,"n":"b_7B6E","k":"branch","len":1,"c":false},{"a":31608,"n":"b_7B78","k":"branch","len":1,"c":false},{"a":31615,"n":"b_7B7F","k":"branch","len":1,"c":false},{"a":31632,"n":"b_7B90","k":"branch","len":1,"c":false},{"a":31638,"n":"draw_whole_cave","k":"routine","len":44,"c":true},{"a":31648,"n":"b_7BA0","k":"branch","len":1,"c":false},{"a":31652,"n":"b_7BA4","k":"branch","len":1,"c":false},{"a":31682,"n":"build_rockford_frame","k":"routine","len":159,"c":true},{"a":31723,"n":"b_7BEB","k":"branch","len":1,"c":false},{"a":31748,"n":"b_7C04","k":"branch","len":1,"c":false},{"a":31767,"n":"b_7C17","k":"branch","len":1,"c":false},{"a":31780,"n":"b_7C24","k":"branch","len":1,"c":false},{"a":31799,"n":"b_7C37","k":"branch","len":1,"c":false},{"a":31811,"n":"j_7C43","k":"branch","len":1,"c":false},{"a":31828,"n":"b_7C54","k":"branch","len":1,"c":false},{"a":31841,"n":"build_animation_frames","k":"routine","len":143,"c":true},{"a":31852,"n":"b_7C6C","k":"branch","len":1,"c":false},{"a":31858,"n":"b_7C72","k":"branch","len":1,"c":false},{"a":31914,"n":"b_7CAA","k":"branch","len":1,"c":false},{"a":31944,"n":"b_7CC8","k":"branch","len":1,"c":false},{"a":31974,"n":"b_7CE6","k":"branch","len":1,"c":false},{"a":31984,"n":"flash_screen","k":"routine","len":25,"c":true},{"a":32008,"n":"r_7D08","k":"branch","len":1,"c":false},{"a":32009,"n":"sound_update","k":"routine","len":277,"c":true},{"a":32019,"n":"b_7D13","k":"branch","len":1,"c":false},{"a":32032,"n":"b_7D20","k":"branch","len":1,"c":false},{"a":32045,"n":"b_7D2D","k":"branch","len":1,"c":false},{"a":32056,"n":"b_7D38","k":"branch","len":1,"c":false},{"a":32073,"n":"b_7D49","k":"branch","len":1,"c":false},{"a":32097,"n":"b_7D61","k":"branch","len":1,"c":false},{"a":32106,"n":"b_7D6A","k":"branch","len":1,"c":false},{"a":32140,"n":"b_7D8C","k":"branch","len":1,"c":false},{"a":32142,"n":"b_7D8E","k":"branch","len":1,"c":false},{"a":32165,"n":"b_7DA5","k":"branch","len":1,"c":false},{"a":32192,"n":"b_7DC0","k":"branch","len":1,"c":false},{"a":32202,"n":"b_7DCA","k":"branch","len":1,"c":false},{"a":32207,"n":"b_7DCF","k":"branch","len":1,"c":false},{"a":32215,"n":"b_7DD7","k":"branch","len":1,"c":false},{"a":32223,"n":"b_7DDF","k":"branch","len":1,"c":false},{"a":32229,"n":"b_7DE5","k":"branch","len":1,"c":false},{"a":32276,"n":"b_7E14","k":"branch","len":1,"c":false},{"a":32279,"n":"b_7E17","k":"branch","len":1,"c":false},{"a":32283,"n":"b_7E1B","k":"branch","len":1,"c":false},{"a":32286,"n":"restore_magic_wall_chars","k":"routine","len":21,"c":true},{"a":32288,"n":"b_7E20","k":"branch","len":1,"c":false},{"a":32307,"n":"magic_wall_tick","k":"routine","len":68,"c":true},{"a":32346,"n":"b_7E5A","k":"branch","len":1,"c":false},{"a":32353,"n":"b_7E61","k":"branch","len":1,"c":false},{"a":32375,"n":"magic_wall_animation","k":"routine","len":24,"c":true},{"a":32384,"n":"b_7E80","k":"branch","len":1,"c":false},{"a":32398,"n":"r_7E8E","k":"branch","len":1,"c":false},{"a":32399,"n":"animation_step","k":"routine","len":16,"c":true},{"a":32415,"n":"magic_wall_timer","k":"routine","len":36,"c":true},{"a":32450,"n":"r_7EC2","k":"branch","len":1,"c":false},{"a":32451,"n":"frame_update","k":"routine","len":45,"c":true},{"a":32456,"n":"b_7EC8","k":"branch","len":1,"c":false},{"a":32493,"n":"b_7EED","k":"branch","len":1,"c":false},{"a":32496,"n":"screen_copy_template","k":"routine","len":256,"c":true},{"a":32531,"n":"b_7F13","k":"branch","len":1,"c":false},{"a":32576,"n":"b_7F40","k":"branch","len":1,"c":false},{"a":32690,"n":"b_7FB2","k":"branch","len":1,"c":false},{"a":32735,"n":"b_7FDF","k":"branch","len":1,"c":false},{"a":32752,"n":"screen_copy_template_2","k":"routine","len":57,"c":true},{"a":32808,"n":"r_8028","k":"branch","len":1,"c":false},{"a":32809,"n":"build_cave_cell","k":"routine","len":26,"c":true},{"a":32816,"n":"b_8030","k":"branch","len":1,"c":false},{"a":32824,"n":"b_8038","k":"branch","len":1,"c":false},{"a":32835,"n":"build_random_cave","k":"routine","len":34,"c":true},{"a":32842,"n":"b_804A","k":"branch","len":1,"c":false},{"a":32846,"n":"b_804E","k":"branch","len":1,"c":false},{"a":32869,"n":"time_delay_table","k":"table","len":5,"c":true},{"a":32874,"n":"short_delay","k":"routine","len":13,"c":true},{"a":32878,"n":"b_806E","k":"branch","len":1,"c":false},{"a":32880,"n":"b_8070","k":"branch","len":1,"c":false},{"a":32886,"n":"r_8076","k":"branch","len":1,"c":false},{"a":32887,"n":"silence_voice_1","k":"routine","len":4,"c":true},{"a":32891,"n":"silence_voice_2","k":"routine","len":4,"c":true},{"a":32895,"n":"silence_voice_3","k":"routine","len":13,"c":true},{"a":32897,"n":"b_8081","k":"branch","len":1,"c":false},{"a":32908,"n":"silence_all","k":"routine","len":15,"c":true},{"a":32923,"n":"delay_short","k":"routine","len":9,"c":true},{"a":32925,"n":"b_809D","k":"branch","len":1,"c":false},{"a":32932,"n":"delay_long","k":"routine","len":13,"c":true},{"a":32945,"n":"delay_or_space","k":"routine","len":18,"c":true},{"a":32947,"n":"b_80B3","k":"branch","len":1,"c":false},{"a":32949,"n":"b_80B5","k":"branch","len":1,"c":false},{"a":32956,"n":"b_80BC","k":"branch","len":1,"c":false},{"a":32963,"n":"pause_screen","k":"routine","len":64,"c":true},{"a":32990,"n":"b_80DE","k":"branch","len":1,"c":false},{"a":33027,"n":"pause_and_restart_keys","k":"routine","len":56,"c":true},{"a":33051,"n":"b_811B","k":"branch","len":1,"c":false},{"a":33069,"n":"b_812D","k":"branch","len":1,"c":false},{"a":33082,"n":"r_813A","k":"branch","len":1,"c":false},{"a":33083,"n":"end_of_pass","k":"routine","len":32,"c":true},{"a":33095,"n":"b_8147","k":"branch","len":1,"c":false},{"a":33115,"n":"check_restart_fire","k":"routine","len":22,"c":true},{"a":33136,"n":"r_8170","k":"branch","len":1,"c":false},{"a":33137,"n":"update_pass","k":"routine","len":60,"c":true},{"a":33151,"n":"b_817F","k":"branch","len":1,"c":false},{"a":33166,"n":"b_818E","k":"branch","len":1,"c":false},{"a":33172,"n":"b_8194","k":"branch","len":1,"c":false},{"a":33176,"n":"b_8198","k":"branch","len":1,"c":false},{"a":33197,"n":"end_of_object","k":"routine","len":41,"c":true},{"a":33209,"n":"b_81B9","k":"branch","len":1,"c":false},{"a":33215,"n":"b_81BF","k":"branch","len":1,"c":false},{"a":33238,"n":"decimal_digit_weights","k":"table","len":3,"c":true},{"a":33241,"n":"binary_to_decimal","k":"routine","len":35,"c":true},{"a":33245,"n":"b_81DD","k":"branch","len":1,"c":false},{"a":33254,"n":"b_81E6","k":"branch","len":1,"c":false},{"a":33257,"n":"b_81E9","k":"branch","len":1,"c":false},{"a":33268,"n":"b_81F4","k":"branch","len":1,"c":false},{"a":33276,"n":"cave_loop_branch","k":"routine","len":2,"c":true},{"a":33277,"n":"r_81FD","k":"branch","len":1,"c":false},{"a":33278,"n":"cave_order_table","k":"table","len":40,"c":true},{"a":33318,"n":"load_cave_data","k":"routine","len":78,"c":true},{"a":33350,"n":"b_8246","k":"branch","len":1,"c":false},{"a":33360,"n":"b_8250","k":"branch","len":1,"c":false},{"a":33396,"n":"start_cave_variables","k":"routine","len":194,"c":true},{"a":33450,"n":"b_82AA","k":"branch","len":1,"c":false},{"a":33474,"n":"b_82C2","k":"branch","len":1,"c":false},{"a":33494,"n":"b_82D6","k":"branch","len":1,"c":false},{"a":33511,"n":"b_82E7","k":"branch","len":1,"c":false},{"a":33561,"n":"b_8319","k":"branch","len":1,"c":false},{"a":33569,"n":"b_8321","k":"branch","len":1,"c":false},{"a":33589,"n":"r_8335","k":"branch","len":1,"c":false},{"a":33590,"n":"show_game_over","k":"routine","len":15,"c":true},{"a":33605,"n":"wait_for_fire","k":"routine","len":33,"c":true},{"a":33607,"n":"b_8347","k":"branch","len":1,"c":false},{"a":33609,"n":"b_8349","k":"branch","len":1,"c":false},{"a":33620,"n":"b_8354","k":"branch","len":1,"c":false},{"a":33622,"n":"j_8356","k":"branch","len":1,"c":false},{"a":33631,"n":"b_835F","k":"branch","len":1,"c":false},{"a":33638,"n":"show_out_of_time","k":"routine","len":56,"c":true},{"a":33643,"n":"b_836B","k":"branch","len":1,"c":false},{"a":33689,"n":"b_8399","k":"branch","len":1,"c":false},{"a":33694,"n":"show_cave_name","k":"routine","len":40,"c":true},{"a":33722,"n":"b_83BA","k":"branch","len":1,"c":false},{"a":33733,"n":"r_83C5","k":"branch","len":1,"c":false},{"a":33734,"n":"end_of_cave","k":"routine","len":64,"c":true},{"a":33752,"n":"b_83D8","k":"branch","len":1,"c":false},{"a":33770,"n":"b_83EA","k":"branch","len":1,"c":false},{"a":33777,"n":"j_83F1","k":"branch","len":1,"c":false},{"a":33797,"n":"r_8405","k":"branch","len":1,"c":false},{"a":33798,"n":"row_address_table","k":"variable","len":1,"c":true},{"a":33799,"n":"row_address_table_rest","k":"table","len":47,"c":true},{"a":33846,"n":"row_pointer","k":"routine","len":20,"c":true},{"a":33866,"n":"plot_point","k":"routine","len":10,"c":true},{"a":33876,"n":"direction_steps","k":"variable","len":1,"c":true},{"a":33877,"n":"direction_steps_rest","k":"table","len":15,"c":true},{"a":33892,"n":"draw_line","k":"routine","len":39,"c":true},{"a":33906,"n":"j_8472","k":"branch","len":1,"c":false},{"a":33930,"n":"r_848A","k":"branch","len":1,"c":false},{"a":33931,"n":"draw_line_object","k":"routine","len":13,"c":true},{"a":33944,"n":"fill_rectangle","k":"routine","len":40,"c":true},{"a":33951,"n":"j_849F","k":"branch","len":1,"c":false},{"a":33957,"n":"j_84A5","k":"branch","len":1,"c":false},{"a":33967,"n":"b_84AF","k":"branch","len":1,"c":false},{"a":33983,"n":"r_84BF","k":"branch","len":1,"c":false},{"a":33984,"n":"draw_box","k":"routine","len":23,"c":true},{"a":34007,"n":"draw_frame","k":"routine","len":48,"c":true},{"a":34055,"n":"skip_to_next_object","k":"routine","len":6,"c":true},{"a":34061,"n":"skip_two_bytes","k":"routine","len":6,"c":true},{"a":34067,"n":"skip_record","k":"routine","len":5,"c":true},{"a":34072,"n":"build_cave_from_description","k":"routine","len":112,"c":true},{"a":34076,"n":"j_851C","k":"branch","len":1,"c":false},{"a":34103,"n":"b_8537","k":"branch","len":1,"c":false},{"a":34144,"n":"b_8560","k":"branch","len":1,"c":false},{"a":34157,"n":"b_856D","k":"branch","len":1,"c":false},{"a":34170,"n":"b_857A","k":"branch","len":1,"c":false},{"a":34180,"n":"j_8584","k":"branch","len":1,"c":false},{"a":34183,"n":"r_8587","k":"branch","len":1,"c":false},{"a":34184,"n":"show_players_status","k":"routine","len":31,"c":true},{"a":34214,"n":"r_85A6","k":"branch","len":1,"c":false},{"a":34215,"n":"draw_steel_border","k":"routine","len":24,"c":true},{"a":34239,"n":"build_menu_screen","k":"routine","len":267,"c":true},{"a":34242,"n":"b_85C2","k":"branch","len":1,"c":false},{"a":34258,"n":"b_85D2","k":"branch","len":1,"c":false},{"a":34277,"n":"b_85E5","k":"branch","len":1,"c":false},{"a":34304,"n":"b_8600","k":"branch","len":1,"c":false},{"a":34327,"n":"b_8617","k":"branch","len":1,"c":false},{"a":34350,"n":"b_862E","k":"branch","len":1,"c":false},{"a":34372,"n":"b_8644","k":"branch","len":1,"c":false},{"a":34376,"n":"b_8648","k":"branch","len":1,"c":false},{"a":34399,"n":"b_865F","k":"branch","len":1,"c":false},{"a":34422,"n":"b_8676","k":"branch","len":1,"c":false},{"a":34441,"n":"j_8689","k":"branch","len":1,"c":false},{"a":34445,"n":"b_868D","k":"branch","len":1,"c":false},{"a":34468,"n":"b_86A4","k":"branch","len":1,"c":false},{"a":34491,"n":"b_86BB","k":"branch","len":1,"c":false},{"a":34506,"n":"sid_note_table","k":"routine","len":1,"c":true},{"a":34507,"n":"sid_note_table_high","k":"routine","len":19,"c":true},{"a":34526,"n":"sid_note_words","k":"table","len":98,"c":true},{"a":34624,"n":"cave_animation_mask","k":"table","len":20,"c":true},{"a":34644,"n":"music_step","k":"routine","len":130,"c":true},{"a":34651,"n":"b_875B","k":"branch","len":1,"c":false},{"a":34725,"n":"b_87A5","k":"branch","len":1,"c":false},{"a":34773,"n":"r_87D5","k":"branch","len":1,"c":false},{"a":34774,"n":"build_colour_cycle","k":"routine","len":24,"c":true},{"a":34776,"n":"b_87D8","k":"branch","len":1,"c":false},{"a":34798,"n":"title_step","k":"routine","len":33,"c":true},{"a":34809,"n":"b_87F9","k":"branch","len":1,"c":false},{"a":34827,"n":"b_880B","k":"branch","len":1,"c":false},{"a":34830,"n":"r_880E","k":"branch","len":1,"c":false},{"a":34831,"n":"menu_keys","k":"routine","len":59,"c":true},{"a":34861,"n":"b_882D","k":"branch","len":1,"c":false},{"a":34869,"n":"b_8835","k":"branch","len":1,"c":false},{"a":34877,"n":"b_883D","k":"branch","len":1,"c":false},{"a":34883,"n":"b_8843","k":"branch","len":1,"c":false},{"a":34890,"n":"menu_cave_select","k":"routine","len":118,"c":true},{"a":34912,"n":"b_8860","k":"branch","len":1,"c":false},{"a":34924,"n":"b_886C","k":"branch","len":1,"c":false},{"a":34934,"n":"b_8876","k":"branch","len":1,"c":false},{"a":34951,"n":"b_8887","k":"branch","len":1,"c":false},{"a":34974,"n":"b_889E","k":"branch","len":1,"c":false},{"a":35004,"n":"b_88BC","k":"branch","len":1,"c":false},{"a":35008,"n":"menu_loop","k":"routine","len":108,"c":true},{"a":35031,"n":"b_88D7","k":"branch","len":1,"c":false},{"a":35035,"n":"b_88DB","k":"branch","len":1,"c":false},{"a":35084,"n":"b_890C","k":"branch","len":1,"c":false},{"a":35096,"n":"b_8918","k":"branch","len":1,"c":false},{"a":35111,"n":"b_8927","k":"branch","len":1,"c":false},{"a":35116,"n":"title_setup","k":"routine","len":107,"c":true},{"a":35118,"n":"b_892E","k":"branch","len":1,"c":false},{"a":35147,"n":"b_894B","k":"branch","len":1,"c":false},{"a":35180,"n":"b_896C","k":"branch","len":1,"c":false},{"a":35223,"n":"title_colours","k":"table","len":5,"c":true},{"a":35228,"n":"vic_split_title","k":"table","len":8,"c":true},{"a":35236,"n":"vic_split_play","k":"table","len":8,"c":true},{"a":35244,"n":"build_title_screen","k":"routine","len":96,"c":true},{"a":35255,"n":"b_89B7","k":"branch","len":1,"c":false},{"a":35263,"n":"b_89BF","k":"branch","len":1,"c":false},{"a":35274,"n":"b_89CA","k":"branch","len":1,"c":false},{"a":35296,"n":"b_89E0","k":"branch","len":1,"c":false},{"a":35309,"n":"b_89ED","k":"branch","len":1,"c":false},{"a":35340,"n":"raster_interrupt","k":"routine","len":143,"c":true},{"a":35358,"n":"b_8A1E","k":"branch","len":1,"c":false},{"a":35380,"n":"b_8A34","k":"branch","len":1,"c":false},{"a":35403,"n":"b_8A4B","k":"branch","len":1,"c":false},{"a":35405,"n":"b_8A4D","k":"branch","len":1,"c":false},{"a":35425,"n":"b_8A61","k":"branch","len":1,"c":false},{"a":35427,"n":"b_8A63","k":"branch","len":1,"c":false},{"a":35430,"n":"j_8A66","k":"branch","len":1,"c":false},{"a":35444,"n":"b_8A74","k":"branch","len":1,"c":false},{"a":35460,"n":"b_8A84","k":"branch","len":1,"c":false},{"a":35472,"n":"b_8A90","k":"branch","len":1,"c":false},{"a":35483,"n":"joystick_overrides_keys","k":"routine","len":30,"c":true},{"a":35512,"n":"r_8AB8","k":"branch","len":1,"c":false},{"a":35513,"n":"set_up_cave","k":"routine","len":36,"c":true},{"a":35549,"n":"new_game","k":"routine","len":40,"c":true},{"a":35557,"n":"b_8AE5","k":"branch","len":1,"c":false},{"a":35570,"n":"b_8AF2","k":"branch","len":1,"c":false},{"a":35581,"n":"b_8AFD","k":"branch","len":1,"c":false},{"a":35589,"n":"lose_life","k":"routine","len":90,"c":true},{"a":35597,"n":"b_8B0D","k":"branch","len":1,"c":false},{"a":35606,"n":"b_8B16","k":"branch","len":1,"c":false},{"a":35608,"n":"b_8B18","k":"branch","len":1,"c":false},{"a":35615,"n":"b_8B1F","k":"branch","len":1,"c":false},{"a":35632,"n":"b_8B30","k":"branch","len":1,"c":false},{"a":35638,"n":"b_8B36","k":"branch","len":1,"c":false},{"a":35644,"n":"b_8B3C","k":"branch","len":1,"c":false},{"a":35653,"n":"b_8B45","k":"branch","len":1,"c":false},{"a":35655,"n":"b_8B47","k":"branch","len":1,"c":false},{"a":35662,"n":"b_8B4E","k":"branch","len":1,"c":false},{"a":35678,"n":"r_8B5E","k":"branch","len":1,"c":false},{"a":35679,"n":"tally_blip","k":"routine","len":50,"c":true},{"a":35683,"n":"b_8B63","k":"branch","len":1,"c":false},{"a":35717,"n":"b_8B85","k":"branch","len":1,"c":false},{"a":35729,"n":"update_high_score","k":"routine","len":40,"c":true},{"a":35734,"n":"b_8B96","k":"branch","len":1,"c":false},{"a":35749,"n":"b_8BA5","k":"branch","len":1,"c":false},{"a":35760,"n":"b_8BB0","k":"branch","len":1,"c":false},{"a":35768,"n":"r_8BB8","k":"branch","len":1,"c":false},{"a":35769,"n":"format_score_lines","k":"routine","len":31,"c":true},{"a":35771,"n":"b_8BBB","k":"branch","len":1,"c":false},{"a":35800,"n":"next_cave","k":"routine","len":24,"c":true},{"a":35819,"n":"b_8BEB","k":"branch","len":1,"c":false},{"a":35821,"n":"b_8BED","k":"branch","len":1,"c":false},{"a":35824,"n":"time_bonus_tally","k":"routine","len":62,"c":true},{"a":35828,"n":"b_8BF4","k":"branch","len":1,"c":false},{"a":35858,"n":"b_8C12","k":"branch","len":1,"c":false},{"a":35873,"n":"b_8C21","k":"branch","len":1,"c":false},{"a":35886,"n":"end_player_turn","k":"routine","len":20,"c":true},{"a":35905,"n":"r_8C41","k":"branch","len":1,"c":false},{"a":35906,"n":"end_of_cave_actions","k":"routine","len":80,"c":true},{"a":35920,"n":"b_8C50","k":"branch","len":1,"c":false},{"a":35930,"n":"b_8C5A","k":"branch","len":1,"c":false},{"a":35933,"n":"j_8C5D","k":"branch","len":1,"c":false},{"a":35962,"n":"b_8C7A","k":"branch","len":1,"c":false},{"a":35981,"n":"b_8C8D","k":"branch","len":1,"c":false},{"a":35986,"n":"play_loop","k":"routine","len":24,"c":true},{"a":35999,"n":"b_8C9F","k":"branch","len":1,"c":false},{"a":36010,"n":"demo_play","k":"routine","len":75,"c":true},{"a":36018,"n":"j_8CB2","k":"branch","len":1,"c":false},{"a":36039,"n":"b_8CC7","k":"branch","len":1,"c":false},{"a":36049,"n":"b_8CD1","k":"branch","len":1,"c":false},{"a":36058,"n":"b_8CDA","k":"branch","len":1,"c":false},{"a":36070,"n":"b_8CE6","k":"branch","len":1,"c":false},{"a":36080,"n":"b_8CF0","k":"branch","len":1,"c":false},{"a":36085,"n":"init_score_lines","k":"routine","len":28,"c":true},{"a":36087,"n":"b_8CF7","k":"branch","len":1,"c":false},{"a":36113,"n":"init_graphics","k":"routine","len":187,"c":true},{"a":36115,"n":"b_8D13","k":"branch","len":1,"c":false},{"a":36168,"n":"b_8D48","k":"branch","len":1,"c":false},{"a":36237,"n":"b_8D8D","k":"branch","len":1,"c":false},{"a":36252,"n":"b_8D9C","k":"branch","len":1,"c":false},{"a":36272,"n":"b_8DB0","k":"branch","len":1,"c":false},{"a":36300,"n":"reset_game","k":"routine","len":108,"c":true},{"a":36363,"n":"b_8E0B","k":"branch","len":1,"c":false},{"a":36373,"n":"b_8E15","k":"branch","len":1,"c":false},{"a":36407,"n":"r_8E37","k":"branch","len":1,"c":false},{"a":36408,"n":"start_interrupts","k":"routine","len":49,"c":true},{"a":36419,"n":"b_8E43","k":"branch","len":1,"c":false},{"a":36457,"n":"program_entry","k":"routine","len":212,"c":true},{"a":36458,"n":"j_8E6A","k":"branch","len":1,"c":false},{"a":36540,"n":"b_8EBC","k":"branch","len":1,"c":false},{"a":36563,"n":"b_8ED3","k":"branch","len":1,"c":false},{"a":36576,"n":"b_8EE0","k":"branch","len":1,"c":false},{"a":36582,"n":"b_8EE6","k":"branch","len":1,"c":false},{"a":36604,"n":"b_8EFC","k":"branch","len":1,"c":false},{"a":36625,"n":"b_8F11","k":"branch","len":1,"c":false},{"a":36647,"n":"b_8F27","k":"branch","len":1,"c":false},{"a":36654,"n":"j_8F2E","k":"branch","len":1,"c":false},{"a":36657,"n":"j_8F31","k":"branch","len":1,"c":false},{"a":36661,"n":"b_8F35","k":"branch","len":1,"c":false},{"a":36669,"n":"leftover_bytes","k":"table","len":41,"c":true},{"a":36710,"n":"asm_symbol_table_scrap","k":"table","len":1024,"c":true}],"records":[{"a":0,"t":"gap","n":20480},{"a":0,"t":"note","l":"cpu_port_ddr","note":"outside the tracked image"},{"a":20480,"l":"text_charset","c":"the text character set, 8 bytes for a character and one byte for a pixel row: this chunk holds characters $00 to $07; the start-up copies $5000-$53FF to $2000 for the VIC chip","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[32576,32582,32588,32594,32600,32606,32612,32618,32624,32630,32636,32642,32648,32654,32735,32741,32747,32753,32759,32765,32771,32777,32783,32789,36115]},{"a":20488,"t":"byte","b":[85,85,85,85,85,85,85,85]},{"a":20496,"t":"byte","b":[170,170,170,170,170,170,170,170]},{"a":20504,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":20512,"t":"byte","b":[24,62,96,60,6,124,24,0]},{"a":20520,"t":"byte","b":[0,102,108,24,48,102,70,0]},{"a":20528,"t":"byte","b":[0,192,240,252,255,255,255,255]},{"a":20536,"t":"byte","b":[255,255,255,255,255,252,240,192]},{"a":20544,"l":"data_5040","c":"text character set from $5040: characters $08 to $0F (8 bytes each, up to 64 bytes), copied to $2040","t":"byte","b":[111,111,111,111,111,111,111,111]},{"a":20552,"t":"byte","b":[0,192,240,252,255,255,255,255]},{"a":20560,"t":"byte","b":[255,255,255,255,255,252,240,192]},{"a":20568,"t":"byte","b":[122,106,26,170,167,166,161,170]},{"a":20576,"t":"byte","b":[0,0,0,0,0,3,3,15]},{"a":20584,"t":"byte","b":[0,0,0,0,0,3,3,15]},{"a":20592,"t":"byte","b":[0,63,15,0,0,0,255,255]},{"a":20600,"t":"byte","b":[0,0,0,0,3,15,60,240]},{"a":20608,"l":"data_5080","c":"text character set from $5080: characters $10 to $17 (8 bytes each, up to 64 bytes), copied to $2080","t":"byte","b":[0,63,252,252,252,252,255,63]},{"a":20616,"t":"byte","b":[0,3,15,15,3,3,63,63]},{"a":20624,"t":"byte","b":[0,63,240,3,15,63,255,255]},{"a":20632,"t":"byte","b":[0,63,0,3,0,252,255,63]},{"a":20640,"t":"byte","b":[0,240,240,243,255,3,3,3]},{"a":20648,"t":"byte","b":[0,255,252,255,0,252,255,63]},{"a":20656,"t":"byte","b":[0,63,252,255,252,252,255,63]},{"a":20664,"t":"byte","b":[0,255,192,3,15,63,252,252]},{"a":20672,"l":"data_50C0","c":"text character set from $50C0: characters $18 to $1F (8 bytes each, up to 64 bytes), copied to $20C0","t":"byte","b":[0,63,252,63,252,252,255,63]},{"a":20680,"t":"byte","b":[0,63,252,252,63,3,15,63]},{"a":20688,"t":"byte","b":[0,0,3,3,0,3,3,0]},{"a":20696,"t":"byte","b":[0,0,3,3,0,3,3,15]},{"a":20704,"t":"byte","b":[255,0,255,0,255,0,255,0]},{"a":20712,"t":"byte","b":[111,106,106,110,110,110,110,111]},{"a":20720,"t":"byte","b":[255,187,186,250,251,251,251,255]},{"a":20728,"t":"byte","b":[255,251,235,171,187,251,251,255]},{"a":20736,"l":"charset_chars_20","c":"characters $20 to $27 of the text character set: the space ($20) and the left halves of the letters A to G ($21 to $27). The text draws each letter as two characters side by side, the code and the code plus $34 (draw_status_text, $6EE4-$6EEB), so A is $21 beside $55","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[36121]},{"a":20744,"t":"byte","b":[0,15,63,252,252,255,252,252]},{"a":20752,"t":"byte","b":[0,255,252,255,252,252,255,255]},{"a":20760,"t":"byte","b":[0,63,252,252,252,252,255,63]},{"a":20768,"t":"byte","b":[0,255,252,252,252,252,255,255]},{"a":20776,"t":"byte","b":[0,255,252,255,252,252,255,255]},{"a":20784,"t":"byte","b":[0,255,252,255,252,252,252,252]},{"a":20792,"t":"byte","b":[0,63,252,252,252,252,255,63]},{"a":20800,"t":"gap","n":1},{"a":20801,"l":"data_5141","c":"text character set from $5141 to $5180 (64 bytes), copied to $2141: character $28 from its second pixel row (its first row is at $5140), then characters $29 to $2F, then the first row of character $30 ($5180)","t":"byte","b":[252,252,255,252,252,252,252,0]},{"a":20809,"t":"byte","b":[63,15,15,15,15,63,63,0]},{"a":20817,"t":"byte","b":[0,0,0,0,252,63,15,0]},{"a":20825,"t":"byte","b":[252,252,255,255,252,252,252,0]},{"a":20833,"t":"byte","b":[252,252,252,252,252,255,255,0]},{"a":20841,"t":"byte","b":[240,252,255,243,240,240,240,0]},{"a":20849,"t":"byte","b":[252,255,255,255,255,252,252,0]},{"a":20857,"t":"byte","b":[63,240,240,240,240,255,63,0]},{"a":20865,"l":"data_5181","c":"text character set from $5181 to $51C0 (64 bytes), copied to $2181: character $30 from its second pixel row (its first row is at $5180), then characters $31 to $37, then the first row of character $38 ($51C0)","t":"byte","b":[255,252,252,255,255,252,252,0]},{"a":20873,"t":"byte","b":[15,252,252,252,252,63,15,0]},{"a":20881,"t":"byte","b":[255,252,252,255,255,252,252,0]},{"a":20889,"t":"byte","b":[63,252,63,0,0,255,255,0]},{"a":20897,"t":"byte","b":[255,15,15,15,15,15,15,0]},{"a":20905,"t":"byte","b":[252,252,252,252,252,255,255,0]},{"a":20913,"t":"byte","b":[252,252,252,252,255,63,15,0]},{"a":20921,"t":"byte","b":[240,240,243,255,255,252,240,0]},{"a":20929,"l":"data_51C1","c":"text character set from $51C1 to $51FF (63 bytes), copied to $21C1: character $38 from its second pixel row (its first row is at $51C0), then characters $39 to $3F","t":"byte","b":[252,252,15,15,252,252,252,0]},{"a":20937,"t":"byte","b":[240,240,63,15,15,15,15,0]},{"a":20945,"t":"byte","b":[255,3,15,63,252,255,255,0]},{"a":20953,"t":"byte","b":[0,3,3,3,3,3,0,0]},{"a":20961,"t":"byte","b":[3,12,63,192,63,12,3,0]},{"a":20969,"t":"byte","b":[15,3,3,3,3,3,15,0]},{"a":20977,"t":"byte","b":[12,15,51,51,15,3,15,0]},{"a":20985,"t":"byte","b":[0,0,0,0,0,255,0]},{"a":20992,"l":"charset_chars_40","c":"characters $40 to $47 of the text character set, which the start-up copies to $2200","t":"byte","b":[0,0,0,0,0,192,192,0],"x":[36127]},{"a":21000,"t":"byte","b":[0,0,0,0,0,192,192,0]},{"a":21008,"t":"byte","b":[63,255,255,63,63,63,255,255]},{"a":21016,"t":"byte","b":[0,12,60,240,192,0,0,0]},{"a":21024,"t":"byte","b":[0,240,60,60,60,60,252,240]},{"a":21032,"t":"byte","b":[0,192,192,192,192,192,252,252]},{"a":21040,"t":"byte","b":[0,240,252,240,192,0,252,252]},{"a":21048,"t":"byte","b":[0,252,240,192,240,60,252,240]},{"a":21056,"t":"gap","n":3},{"a":21059,"l":"data_5243","c":"text character set from $5243 to $5282 (64 bytes), copied to $2243: character $48 from its fourth pixel row (its first three rows are at $5240-$5242), then characters $49 to $4F, then the first three rows of character $50 ($5280-$5282)","t":"byte","b":[240,252,240,240,240,0,252,0]},{"a":21067,"t":"byte","b":[240,60,60,252,240,0,240,0]},{"a":21075,"t":"byte","b":[240,60,60,252,240,0,252,252]},{"a":21083,"t":"byte","b":[240,192,0,0,0,0,240,60]},{"a":21091,"t":"byte","b":[240,60,60,252,240,0,240,60]},{"a":21099,"t":"byte","b":[60,252,240,192,0,0,0,192]},{"a":21107,"t":"byte","b":[192,0,192,192,0,0,0,192]},{"a":21115,"t":"byte","b":[192,0,192,192,0,255,0,255]},{"a":21123,"l":"data_5283","c":"text character set from $5283 to $52C2 (64 bytes), copied to $2283: character $50 from its fourth pixel row (its first three rows are at $5280-$5282), then characters $51 to $57, then the first three rows of character $58 ($52C0-$52C2)","t":"byte","b":[0,255,0,255,0,255,204,204]},{"a":21131,"t":"byte","b":[252,252,252,252,255,255,207,204]},{"a":21139,"t":"byte","b":[204,207,207,207,255,255,207,207]},{"a":21147,"t":"byte","b":[207,207,207,207,255,0,0,0]},{"a":21155,"t":"byte","b":[0,0,0,0,0,0,192,240]},{"a":21163,"t":"byte","b":[60,60,252,60,60,0,240,60]},{"a":21171,"t":"byte","b":[240,60,60,252,240,0,240,60]},{"a":21179,"t":"byte","b":[0,0,60,252,240,0,192,240]},{"a":21187,"l":"data_52C3","c":"text character set from $52C3 to $52FF (61 bytes), copied to $22C3: character $58 from its fourth pixel row (its first three rows are at $52C0-$52C2), then characters $59 to $5F","t":"byte","b":[60,60,240,240,192,0,252,0]},{"a":21195,"t":"byte","b":[240,0,0,252,252,0,252,0]},{"a":21203,"t":"byte","b":[240,0,0,0,0,0,252,0]},{"a":21211,"t":"byte","b":[0,252,60,252,252,0,60,60]},{"a":21219,"t":"byte","b":[252,60,60,60,60,0,240,192]},{"a":21227,"t":"byte","b":[192,192,192,240,240,0,60,60]},{"a":21235,"t":"byte","b":[60,60,60,252,240,0,60,240]},{"a":21243,"t":"byte","b":[192,192,240,60,60]},{"a":21248,"l":"charset_chars_60","c":"characters $60 to $67 of the text character set, which the start-up copies to $2300","t":"byte","b":[0,0,0,0,0,0,252,252],"x":[36133]},{"a":21256,"t":"byte","b":[0,60,252,252,60,60,60,60]},{"a":21264,"t":"byte","b":[0,60,60,252,252,252,252,60]},{"a":21272,"t":"byte","b":[0,240,60,60,60,60,252,240]},{"a":21280,"t":"byte","b":[0,240,60,60,252,240,0,0]},{"a":21288,"t":"byte","b":[0,240,60,60,60,240,252,60]},{"a":21296,"t":"byte","b":[0,240,60,60,240,240,60,60]},{"a":21304,"t":"byte","b":[0,240,0,240,60,60,252,240]},{"a":21312,"t":"gap","n":1},{"a":21313,"l":"data_5341","c":"text character set from $5341 to $5380 (64 bytes), copied to $2341: character $68 from its second pixel row (its first row is at $5340), then characters $69 to $6F, then the first row of character $70 ($5380)","t":"byte","b":[252,192,192,192,192,192,192,0]},{"a":21321,"t":"byte","b":[60,60,60,60,60,252,252,0]},{"a":21329,"t":"byte","b":[60,60,60,60,252,240,192,0]},{"a":21337,"t":"byte","b":[60,60,60,252,252,252,60,0]},{"a":21345,"t":"byte","b":[60,60,240,240,60,60,60,0]},{"a":21353,"t":"byte","b":[60,60,240,192,192,192,192,0]},{"a":21361,"t":"byte","b":[252,240,192,0,0,252,252,0]},{"a":21369,"t":"byte","b":[240,192,192,192,192,192,240,0]},{"a":21377,"l":"data_5381","c":"text character set from $5381 to $53AF (47 bytes), copied to $2381: character $70 from its second pixel row (its first row is at $5380), then characters $71 to $75, the last character of the set","t":"byte","b":[0,192,240,12,240,192,0,0]},{"a":21385,"t":"byte","b":[0,192,192,192,192,192,0,0]},{"a":21393,"t":"byte","b":[48,240,204,204,240,192,240,0]},{"a":21401,"t":"byte","b":[0,0,0,0,0,255,0,0]},{"a":21409,"t":"byte","b":[0,60,15,255,15,60,0,0]},{"a":21417,"t":"byte","b":[0,60,240,255,240,60,0]},{"a":21424,"l":"window_cell_offsets","c":"fourteen three-byte records, searched by the routine at $7033: each starts with a cell offset (0 to 2, $27 to $2B, $50 to $52 and $78 to $7A, in the layout of the map) and goes on with the signed 16-bit distance added to the scroll buffer address for that cell","t":"byte","b":[0],"x":[28729]},{"a":21425,"l":"window_offset_low","c":"the low byte of each distance in the table at $53B0, read by the routine at $7033","t":"byte","b":[94],"x":[28737]},{"a":21426,"l":"window_offset_high","c":"the high byte of each distance in the table at $53B0 ($FF for the three cells in the row above the current cell at offset $29 and the two to its left, $00 for the current cell, the two to its right and the row below, $01 for the row two below), read by the routine at $7033","t":"byte","b":[255,1,96,255,2,98,255,40],"x":[28744]},{"a":21434,"t":"byte","b":[254,255,39,252,255,41,0,0]},{"a":21442,"t":"byte","b":[42,2,0,43,4,0,80,158]},{"a":21450,"t":"byte","b":[0,81,160,0,82,162,0,120]},{"a":21458,"t":"byte","b":[62,1,121,64,1,122,66,1]},{"a":21466,"l":"scroll_row_low","c":"the low byte of each of the 22 row addresses in the scroll buffer, a word for each map row, starting at $4003","t":"byte","b":[3],"x":[28762,30409,31349]},{"a":21467,"l":"scroll_row_table","c":"the 22 map rows' start addresses in the 80-by-44 character scroll buffer at $4000 (a map row is two character rows, so the step is $A0), read by the routines at $704E, $76C1 and $7A73","t":"byte","b":[64,163,64,67,65,227,65,131],"x":[28769,30416,31354]},{"a":21475,"t":"byte","b":[66,35,67,195,67,99,68,3]},{"a":21483,"t":"byte","b":[69,163,69,67,70,227,70,131]},{"a":21491,"t":"byte","b":[71,35,72,195,72,99,73,3]},{"a":21499,"t":"byte","b":[74,163,74,67,75,227,75,131]},{"a":21507,"t":"byte","b":[76,35,77]},{"a":21510,"l":"amoeba_frames_top","c":"the amoeba's frame table for the top row of its 2 by 2 tile: eight phases of 16 bytes, each phase holding 8 rows of the top-left character $40 (copied to $3200) and then 8 rows of the top-right character $41 ($3208); this first run is phase 0's top-left character","t":"byte","b":[255,255,191,47,47,47,191,255],"x":[31890]},{"a":21518,"l":"amoeba_frames_top_right","c":"the amoeba's top-right character $41 of phase 0, then phases 1, 2 and 3 of the top row table, then phase 4's top-left character ($5446-$544D); the routine at $7C61 reads the table at 16 times the phase number","t":"byte","b":[191,255,255,254,254,254,255,255],"x":[31896]},{"a":21526,"t":"byte","b":[255,255,191,47,47,47,191,255]},{"a":21534,"t":"byte","b":[191,255,255,254,254,254,255,255]},{"a":21542,"t":"byte","b":[254,255,255,191,47,191,255,255]},{"a":21550,"t":"byte","b":[47,191,254,248,232,248,254,255]},{"a":21558,"t":"byte","b":[254,255,255,191,47,191,255,255]},{"a":21566,"t":"byte","b":[47,191,254,248,232,248,254,255]},{"a":21574,"t":"byte","b":[248,254,255,255,191,255,255,255]},{"a":21582,"l":"data_544E","c":"later phases of the amoeba's top row frame table, bytes $544E-$5485: phase 4's top-right character, then phases 5, 6 and 7, 16 bytes a phase, 8 rows of the left character and then 8 rows of the right","t":"byte","b":[11,47,191,254,248,254,255,255]},{"a":21590,"t":"byte","b":[248,254,255,255,191,255,255,255]},{"a":21598,"t":"byte","b":[11,47,191,254,248,254,255,255]},{"a":21606,"t":"byte","b":[254,255,255,191,47,191,255,255]},{"a":21614,"t":"byte","b":[47,191,255,255,254,255,255,255]},{"a":21622,"t":"byte","b":[254,255,255,191,47,191,255,255]},{"a":21630,"t":"byte","b":[47,191,255,255,254,255,255,255]},{"a":21638,"l":"amoeba_frames_bottom","c":"the amoeba's frame table for the lower row of its tile: eight phases of 16 bytes, the lower-left character $50 ($3280) then the lower-right character $51 ($3288); this first run is phase 0's lower-left character","t":"byte","b":[255,191,47,47,47,191,255,255],"x":[31902]},{"a":21646,"l":"amoeba_frames_bottom_right","c":"the amoeba's lower-right character $51 of phase 0, then phases 1, 2 and 3 of the lower row table, then phase 4's lower-left character ($54C6-$54CD)","t":"byte","b":[255,254,248,248,248,254,255,255],"x":[31908]},{"a":21654,"t":"byte","b":[255,191,47,47,47,191,255,255]},{"a":21662,"t":"byte","b":[255,254,248,248,248,254,255,255]},{"a":21670,"t":"byte","b":[255,255,191,47,191,255,255,254]},{"a":21678,"t":"byte","b":[255,255,254,248,254,255,191,47]},{"a":21686,"t":"byte","b":[255,255,191,47,191,255,255,254]},{"a":21694,"t":"byte","b":[255,255,254,248,254,255,191,47]},{"a":21702,"t":"byte","b":[255,255,255,255,255,255,254,248]},{"a":21710,"t":"gap","n":5},{"a":21715,"l":"data_54D3","c":"later phases of the amoeba frame tables, bytes $54D3-$5505: 16 bytes a phase, 8 rows of the left character and then 8 rows of the right","t":"byte","b":[191,47,11,255,255,255,255,255]},{"a":21723,"t":"byte","b":[255,254,248,255,255,255,255,255]},{"a":21731,"t":"byte","b":[191,47,11,255,255,175,47,175]},{"a":21739,"t":"byte","b":[255,255,254,255,255,254,248,254]},{"a":21747,"t":"byte","b":[255,191,47,255,255,175,47,175]},{"a":21755,"t":"byte","b":[255,255,254,255,255,254,248,254]},{"a":21763,"t":"byte","b":[255,191,47]},{"a":21766,"l":"firefly_frames_top","c":"the firefly's frame table for the top row of its 2 by 2 tile: eight phases of 16 bytes, each phase holding 8 rows of the top-left character $64 (copied to $3320) and then 8 rows of the top-right character $65 ($3328); this first run is phase 0's top-left character","t":"byte","b":[170,170,128,128,138,138,139,139],"x":[31950]},{"a":21774,"l":"firefly_frames_top_right","c":"the firefly's top-right character $65 of phase 0, then phases 1, 2 and 3 of the top row table, then phase 4's top-left character ($5546-$554D); the routine at $7C61 reads the table at 16 times the phase number","t":"byte","b":[170,170,2,2,162,162,226,226],"x":[31956]},{"a":21782,"t":"byte","b":[170,170,128,128,138,138,139,139]},{"a":21790,"t":"byte","b":[170,170,2,2,162,162,226,226]},{"a":21798,"t":"byte","b":[0,0,42,42,47,47,46,46]},{"a":21806,"t":"byte","b":[0,0,168,168,248,248,184,184]},{"a":21814,"t":"byte","b":[0,0,42,42,47,47,46,46]},{"a":21822,"t":"byte","b":[0,0,168,168,248,248,184,184]},{"a":21830,"t":"byte","b":[170,170,191,191,186,186,184,184]},{"a":21838,"l":"data_554E","c":"later phases of the firefly frame tables, bytes $554E-$5585: 16 bytes a phase, 8 rows of the left character and then 8 rows of the right","t":"byte","b":[170,170,254,254,174,174,46,46]},{"a":21846,"t":"byte","b":[170,170,191,191,186,186,184,184]},{"a":21854,"t":"byte","b":[170,170,254,254,174,174,46,46]},{"a":21862,"t":"byte","b":[255,255,234,234,224,224,226,226]},{"a":21870,"t":"byte","b":[255,255,171,171,11,11,139,139]},{"a":21878,"t":"byte","b":[255,255,234,234,224,224,226,226]},{"a":21886,"t":"byte","b":[255,255,171,171,11,11,139,139]},{"a":21894,"l":"firefly_frames_bottom","c":"the firefly's frame table for the lower row of its tile: eight phases of 16 bytes, the lower-left character $74 ($33A0) then the lower-right character $75 ($33A8); this first run is phase 0's lower-left character","t":"byte","b":[139,139,138,138,128,128,170,170],"x":[31962]},{"a":21902,"l":"firefly_frames_bottom_right","c":"the firefly's lower-right character $75 of phase 0, then phases 1, 2 and 3 of the lower row table, then phase 4's lower-left character ($55C6-$55CD)","t":"byte","b":[226,226,162,162,2,2,170,170],"x":[31968]},{"a":21910,"t":"byte","b":[139,139,138,138,128,128,170,170]},{"a":21918,"t":"byte","b":[226,226,162,162,2,2,170,170]},{"a":21926,"t":"byte","b":[46,46,47,47,42,42,0,0]},{"a":21934,"t":"byte","b":[184,184,248,248,168,168,0,0]},{"a":21942,"t":"byte","b":[46,46,47,47,42,42,0,0]},{"a":21950,"t":"byte","b":[184,184,248,248,168,168,0,0]},{"a":21958,"t":"byte","b":[184,184,186,186,191,191,170,170]},{"a":21966,"l":"data_55CE","c":"later phases of the firefly's lower row frame table, bytes $55CE-$5605: phase 4's lower-right character, then phases 5, 6 and 7, 16 bytes a phase, 8 rows of the left character and then 8 rows of the right","t":"byte","b":[46,46,174,174,254,254,170,170]},{"a":21974,"t":"byte","b":[184,184,186,186,191,191,170,170]},{"a":21982,"t":"byte","b":[46,46,174,174,254,254,170,170]},{"a":21990,"t":"byte","b":[226,226,224,224,234,234,255,255]},{"a":21998,"t":"byte","b":[139,139,11,11,171,171,255,255]},{"a":22006,"t":"byte","b":[226,226,224,224,234,234,255,255]},{"a":22014,"t":"byte","b":[139,139,11,11,171,171,255,255]},{"a":22022,"l":"diamond_frames_top","c":"the diamond's frame table for the top row of its 2 by 2 tile: eight phases of 16 bytes, each phase holding 8 rows of the top-left character $48 (copied to $3240) and then 8 rows of the top-right character $49 ($3248); this first run is phase 0's top-left character","t":"byte","b":[2,1,11,7,42,21,128,64],"x":[31858]},{"a":22030,"l":"diamond_frames_top_right","c":"the diamond's top-right character $49 of phase 0, then phases 1, 2 and 3 of the top row table, then phase 4's top-left character ($5646-$564D); the routine at $7C61 reads the table at 16 times the phase number","t":"byte","b":[192,128,240,224,172,88,3,2],"x":[31864]},{"a":22038,"t":"byte","b":[2,1,11,6,37,16,128,85]},{"a":22046,"t":"byte","b":[192,128,240,160,92,8,3,86]},{"a":22054,"t":"byte","b":[2,1,10,5,32,16,149,106]},{"a":22062,"t":"byte","b":[192,128,176,96,12,8,87,170]},{"a":22070,"t":"byte","b":[2,1,9,4,32,21,170,127]},{"a":22078,"t":"byte","b":[192,128,112,32,12,88,171,254]},{"a":22086,"t":"byte","b":[2,1,8,4,37,26,191,127]},{"a":22094,"l":"data_564E","c":"later phases of the diamond frame tables, bytes $564E-$5685: 16 bytes a phase, 8 rows of the left character and then 8 rows of the right","t":"byte","b":[192,128,48,32,92,168,255,254]},{"a":22102,"t":"byte","b":[2,1,8,5,42,31,191,106]},{"a":22110,"t":"byte","b":[192,128,48,96,172,248,255,170]},{"a":22118,"t":"byte","b":[2,1,9,6,47,31,170,85]},{"a":22126,"t":"byte","b":[192,128,112,160,252,248,171,86]},{"a":22134,"t":"byte","b":[2,1,10,7,47,26,149,64]},{"a":22142,"t":"byte","b":[192,128,176,224,252,168,87,2]},{"a":22150,"l":"diamond_frames_bottom","c":"the diamond's frame table for the lower row of its tile: eight phases of 16 bytes, the lower-left character $58 ($32C0) then the lower-right character $59 ($32C8); this first run is phase 0's lower-left character","t":"byte","b":[149,106,47,31,10,5,1,1],"x":[31870]},{"a":22158,"l":"diamond_frames_bottom_right","c":"the diamond's lower-right character $59 of phase 0, then phases 1, 2 and 3 of the lower row table, then phase 4's lower-left character ($56C6-$56CD)","t":"byte","b":[87,170,252,248,176,96,128,64],"x":[31876]},{"a":22166,"t":"byte","b":[170,127,47,26,9,4,1,1]},{"a":22174,"t":"byte","b":[171,254,252,168,112,32,128,64]},{"a":22182,"t":"byte","b":[191,127,42,21,8,4,1,1]},{"a":22190,"t":"byte","b":[255,254,172,88,48,32,128,64]},{"a":22198,"t":"byte","b":[191,106,37,16,8,5,1,1]},{"a":22206,"t":"byte","b":[255,170,92,8,48,96,128,64]},{"a":22214,"t":"byte","b":[170,85,32,16,9,6,1,1]},{"a":22222,"l":"data_56CE","c":"later phases of the diamond frame tables, bytes $56CE-$5705: 16 bytes a phase, 8 rows of the left character and then 8 rows of the right","t":"byte","b":[171,86,12,8,112,160,128,64]},{"a":22230,"t":"byte","b":[149,64,32,21,10,7,1,1]},{"a":22238,"t":"byte","b":[87,2,12,88,176,224,128,64]},{"a":22246,"t":"byte","b":[128,64,37,26,11,7,1,1]},{"a":22254,"t":"byte","b":[3,2,92,168,240,224,128,64]},{"a":22262,"t":"byte","b":[128,85,42,31,11,6,1,1]},{"a":22270,"t":"byte","b":[3,86,172,248,240,160,128,64]},{"a":22278,"l":"butterfly_frames_top","c":"the butterfly's frame table for the top row of its 2 by 2 tile: eight phases of 16 bytes, each phase holding 8 rows of the top-left character $20 (copied to $3100) and then 8 rows of the top-right character $21 ($3108); this first run is phase 0's top-left character","t":"byte","b":[192,128,240,224,172,88,3,2],"x":[31920]},{"a":22286,"l":"butterfly_frames_top_right","c":"the butterfly's top-right character $21 of phase 0, then phases 1, 2 and 3 of the top row table, then phase 4's top-left character ($5746-$574D); the routine at $7C61 reads the table at 16 times the phase number","t":"byte","b":[2,1,11,7,42,21,128,64],"x":[31926]},{"a":22294,"t":"byte","b":[192,128,240,224,172,88,3,2]},{"a":22302,"t":"byte","b":[2,1,11,7,42,21,128,64]},{"a":22310,"t":"byte","b":[48,48,32,32,44,24,3,2]},{"a":22318,"t":"byte","b":[8,8,4,4,40,20,128,64]},{"a":22326,"t":"byte","b":[12,8,12,8,8,4,3,2]},{"a":22334,"t":"byte","b":[32,16,32,16,32,16,128,64]},{"a":22342,"t":"byte","b":[12,8,12,8,8,4,3,2]},{"a":22350,"l":"data_574E","c":"later phases of the butterfly frame tables, bytes $574E-$5785: 16 bytes a phase, 8 rows of the left character and then 8 rows of the right","t":"byte","b":[32,16,32,16,32,16,128,64]},{"a":22358,"t":"byte","b":[48,48,32,32,44,24,3,2]},{"a":22366,"t":"byte","b":[8,8,4,4,40,20,128,64]},{"a":22374,"t":"byte","b":[192,128,240,224,172,88,3,2]},{"a":22382,"t":"byte","b":[2,1,11,7,42,21,128,64]},{"a":22390,"t":"byte","b":[192,128,240,224,172,88,3,2]},{"a":22398,"t":"byte","b":[2,1,11,7,42,21,128,64]},{"a":22406,"l":"butterfly_frames_bottom","c":"the butterfly's frame table for the lower row of its tile: eight phases of 16 bytes, the lower-left character $30 ($3180) then the lower-right character $31 ($3188); this first run is phase 0's lower-left character","t":"byte","b":[87,170,252,248,176,96,128,64],"x":[31932]},{"a":22414,"l":"butterfly_frames_bottom_right","c":"the butterfly's lower-right character $31 of phase 0, then phases 1, 2 and 3 of the lower row table, then phase 4's lower-left character ($57C6-$57CD)","t":"byte","b":[149,106,47,31,10,5,1,1],"x":[31938]},{"a":22422,"t":"byte","b":[87,170,252,248,176,96,128,64]},{"a":22430,"t":"byte","b":[149,106,47,31,10,5,1,1]},{"a":22438,"t":"byte","b":[23,42,60,56,48,32,32,16]},{"a":22446,"t":"byte","b":[148,104,44,28,8,4,8,4]},{"a":22454,"t":"byte","b":[3,2,8,4,8,4,8,4]},{"a":22462,"t":"byte","b":[128,64,32,16,32,16,32,16]},{"a":22470,"t":"byte","b":[3,2,8,4,8,4,8,4]},{"a":22478,"l":"data_57CE","c":"later phases of the butterfly frame tables, bytes $57CE-$5803: 16 bytes a phase, 8 rows of the left character and then 8 rows of the right","t":"byte","b":[128,64,32,16,32,16,32,16]},{"a":22486,"t":"byte","b":[23,42,60,56,48,32,32,16]},{"a":22494,"t":"byte","b":[148,104,44,28,8,4,8,4]},{"a":22502,"t":"byte","b":[87,170,252,248,176,96,128,64]},{"a":22510,"t":"byte","b":[149,106,47,31,10,5,1,1]},{"a":22518,"t":"byte","b":[87,170,252,248,176,96,128,64]},{"a":22526,"t":"byte","b":[149,106,47,31,10,5]},{"a":22532,"l":"cave_offsets_low","c":"the first byte of the cave offset table as load_cave_data ($8226) indexes it: at $8238 and $823F it adds the word at $5804 plus twice the cave number to $582E to find the cave's description, so cave 1's word is at $5806; the cave number is 1 to 20 whenever the table is read (set_up_cave runs only when zpa_5D is not zero, $8EE6), so $5804-$5805 are never read as an offset: they are the last two pixel rows of the butterfly's phase 7 lower-right character, read by build_animation_frames at $7CC2","t":"byte","b":[1],"x":[33336]},{"a":22533,"l":"cave_offsets","c":"the high-byte base of the table of 16-bit offsets of the cave descriptions, relative to the start of the cave data at $582E: one word for each of the 20 caves (16 caves and 4 intermissions) at $5806-$582D, cave number n at $5804 plus 2n; $5805 itself is a butterfly frame byte (see $5804); the run then holds the first 23 bytes of cave A's description, $582E-$5844 (header bytes 0 to 22, copied to $2400)","t":"byte","b":[1,0,0,49,0,138,0,177],"x":[33343]},{"a":22541,"t":"byte","b":[0,252,0,131,1,20,2,92]},{"a":22549,"t":"byte","b":[2,179,2,246,2,91,3,193]},{"a":22557,"t":"byte","b":[3,43,4,105,4,195,4,254]},{"a":22565,"t":"byte","b":[4,93,5,153,5,239,5,45]},{"a":22573,"t":"byte","b":[6,1,20,10,15,10,11,12]},{"a":22581,"t":"byte","b":[13,14,12,12,12,12,12,150]},{"a":22589,"t":"byte","b":[110,70,40,30,8,11,9,212]},{"a":22597,"l":"cave_01_data_22597","c":"cave A, continued from offset $0017 in its description (copied to $2400 plus that offset): the rest of the 32-byte header, byte 23 ($20) at $5845, the four fill codes (00 10 14 00) at $5846-$5849 and the four thresholds (3C 32 09 00) at $584A-$584D; then all of cave A's object records from $584E (offset $20, copied to $2420), ending with the end byte $FF at $585E","t":"byte","b":[32,0,16,20,0,60,50,9]},{"a":22605,"t":"byte","b":[0,66,1,9,30,2,66,9]},{"a":22613,"t":"byte","b":[16,30,2,37,3,4,4,38]},{"a":22621,"t":"byte","b":[18,255]},{"a":22623,"l":"cave_02_data_22623","c":"cave B, from its first byte: the 32-byte header $585F-$587E (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $587F (copied to $2420), bytes $585F-$589E","t":"byte","b":[2,20,20,50,3,0,1,87]},{"a":22631,"t":"byte","b":[88,10,12,9,13,10,150,110]},{"a":22639,"t":"byte","b":[70,70,70,10,4,9,0,0]},{"a":22647,"t":"byte","b":[0,16,20,8,60,50,9,2]},{"a":22655,"t":"byte","b":[66,1,8,38,2,66,1,15]},{"a":22663,"t":"byte","b":[38,2,66,8,3,20,4,66]},{"a":22671,"t":"byte","b":[16,3,20,4,66,24,3,20]},{"a":22679,"t":"byte","b":[4,66,32,3,20,4,64,1]},{"a":22687,"l":"cave_02_data_22687","c":"cave B, continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $589F-$58B7","t":"byte","b":[5,38,2,64,1,11,38,2]},{"a":22695,"t":"byte","b":[64,1,18,38,2,64,20,3]},{"a":22703,"t":"byte","b":[20,4,37,18,21,4,18,22]},{"a":22711,"t":"byte","b":[255]},{"a":22712,"l":"cave_03_data_22712","c":"cave C, its whole description: the 32-byte header $58B8-$58D7 (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then all its object records from $58D8 (copied to $2420), the entrance (25 03 04) and the exit (04 27 14), ending with the end byte $FF at $58DE; cave D starts at $58DF","t":"byte","b":[3,0,15,0,0,50,54,52]},{"a":22720,"t":"byte","b":[55,24,23,24,23,21,150,100]},{"a":22728,"t":"byte","b":[90,80,70,9,8,9,4,0]},{"a":22736,"t":"byte","b":[2,16,20,0,100,50,9,0]},{"a":22744,"t":"byte","b":[37,3,4,4,39,20,255]},{"a":22751,"l":"cave_04_data_22751","c":"cave D, from its first byte: the 32-byte header $58DF-$58FE (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $58FF (copied to $2420), bytes $58DF-$591E","t":"byte","b":[4,20,5,20,0,110,112,115]},{"a":22759,"t":"byte","b":[119,36,36,36,36,36,120,100]},{"a":22767,"t":"byte","b":[80,60,50,4,8,9,0,0]},{"a":22775,"t":"byte","b":[16,0,0,0,20,0,0,0]},{"a":22783,"t":"byte","b":[37,1,3,4,38,22,129,8]},{"a":22791,"t":"byte","b":[10,4,4,0,48,10,11,129]},{"a":22799,"t":"byte","b":[16,10,4,4,0,48,18,11]},{"a":22807,"t":"byte","b":[129,24,10,4,4,0,48,26]},{"a":22815,"l":"cave_04_data_22815","c":"cave D, continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $591F-$5929","t":"byte","b":[11,129,32,10,4,4,0,48]},{"a":22823,"t":"byte","b":[34,11,255]},{"a":22826,"l":"cave_05_data_22826","c":"cave E, from its first byte: the 32-byte header $592A-$5949 (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $594A (copied to $2420), bytes $592A-$5969","t":"byte","b":[5,20,50,90,0,0,0,0]},{"a":22834,"t":"byte","b":[0,4,5,6,7,8,150,120]},{"a":22842,"t":"byte","b":[90,60,30,9,10,9,0,0]},{"a":22850,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":22858,"t":"byte","b":[37,1,3,4,39,22,128,8]},{"a":22866,"t":"byte","b":[10,3,3,0,128,16,10,3]},{"a":22874,"t":"byte","b":[3,0,128,24,10,3,3,0]},{"a":22882,"t":"byte","b":[128,32,10,3,3,0,20,9]},{"a":22890,"l":"cave_05_data_22890","c":"cave E, continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $596A-$59A9","t":"byte","b":[12,8,10,10,20,17,12,8]},{"a":22898,"t":"byte","b":[18,10,20,25,12,8,26,10]},{"a":22906,"t":"byte","b":[20,33,12,8,34,10,128,8]},{"a":22914,"t":"byte","b":[16,3,3,0,128,16,16,3]},{"a":22922,"t":"byte","b":[3,0,128,24,16,3,3,0]},{"a":22930,"t":"byte","b":[128,32,16,3,3,0,20,9]},{"a":22938,"t":"byte","b":[18,8,10,16,20,17,18,8]},{"a":22946,"t":"byte","b":[18,16,20,25,18,8,26,16]},{"a":22954,"l":"cave_05_data_22954","c":"cave E, continued from offset $0080 in its description (copied to $2400 plus that offset): object records, bytes $59AA-$59B0","t":"byte","b":[20,33,18,8,34,16,255]},{"a":22961,"l":"cave_06_data_22961","c":"cave F, from its first byte: the 32-byte header $59B1-$59D0 (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $59D1 (copied to $2420), bytes $59B1-$59F0","t":"byte","b":[6,20,40,60,0,20,21,22]},{"a":22969,"t":"byte","b":[23,4,6,7,8,8,150,120]},{"a":22977,"t":"byte","b":[100,90,80,14,10,9,0,0]},{"a":22985,"t":"byte","b":[16,0,0,0,50,0,0,0]},{"a":22993,"t":"byte","b":[130,1,3,10,4,0,130,1]},{"a":23001,"t":"byte","b":[6,10,4,0,130,1,9,10]},{"a":23009,"t":"byte","b":[4,0,130,1,12,10,4,0]},{"a":23017,"t":"byte","b":[65,10,3,13,4,20,3,5]},{"a":23025,"l":"cave_06_data_23025","c":"cave F, continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $59F1-$5A30","t":"byte","b":[8,4,5,20,3,8,8,4]},{"a":23033,"t":"byte","b":[8,20,3,11,8,4,11,20]},{"a":23041,"t":"byte","b":[3,14,8,4,14,130,29,3]},{"a":23049,"t":"byte","b":[10,4,0,130,29,6,10,4]},{"a":23057,"t":"byte","b":[0,130,29,9,10,4,0,130]},{"a":23065,"t":"byte","b":[29,12,10,4,0,65,29,3]},{"a":23073,"t":"byte","b":[13,4,20,36,5,8,35,5]},{"a":23081,"t":"byte","b":[20,36,8,8,35,8,20,36]},{"a":23089,"l":"cave_06_data_23089","c":"cave F, continued from offset $0080 in its description (copied to $2400 plus that offset): object records, bytes $5A31-$5A41","t":"byte","b":[11,8,35,11,20,36,14,8]},{"a":23097,"t":"byte","b":[35,14,37,3,20,4,38,20]},{"a":23105,"t":"byte","b":[255]},{"a":23106,"l":"cave_07_data_23106","c":"cave G, from its first byte: the 32-byte header $5A42-$5A61 (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $5A62 (copied to $2420), bytes $5A42-$5A81","t":"byte","b":[7,75,10,20,2,7,8,10]},{"a":23114,"t":"byte","b":[9,15,20,25,25,25,120,120]},{"a":23122,"t":"byte","b":[120,120,120,9,10,13,0,0]},{"a":23130,"t":"byte","b":[0,16,8,0,100,40,2,0]},{"a":23138,"t":"byte","b":[66,1,7,12,2,66,28,5]},{"a":23146,"t":"byte","b":[11,2,122,19,21,2,2,20]},{"a":23154,"t":"byte","b":[4,6,20,4,14,20,4,22]},{"a":23162,"t":"byte","b":[20,34,4,20,34,12,20,34]},{"a":23170,"l":"cave_07_data_23170","c":"cave G, continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $5A82-$5A89","t":"byte","b":[22,37,20,3,4,39,7,255]},{"a":23178,"l":"cave_08_data_23178","c":"cave H, from its first byte: the 32-byte header $5A8A-$5AA9 (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $5AAA (copied to $2420), bytes $5A8A-$5AC9","t":"byte","b":[8,20,10,20,1,3,4,5]},{"a":23186,"t":"byte","b":[6,10,15,20,20,20,120,110]},{"a":23194,"t":"byte","b":[100,90,80,2,14,9,0,0]},{"a":23202,"t":"byte","b":[0,16,8,0,90,50,2,0]},{"a":23210,"t":"byte","b":[20,4,6,20,34,4,20,34]},{"a":23218,"t":"byte","b":[12,4,0,5,37,20,3,66]},{"a":23226,"t":"byte","b":[1,7,12,2,66,1,15,12]},{"a":23234,"t":"byte","b":[2,66,28,5,11,2,66,28]},{"a":23242,"l":"cave_08_data_23242","c":"cave H, continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $5ACA-$5AE0","t":"byte","b":[13,11,2,67,14,17,8,2]},{"a":23250,"t":"byte","b":[20,12,16,0,14,18,20,19]},{"a":23258,"t":"byte","b":[18,65,14,15,8,2,255]},{"a":23265,"l":"cave_09_data_23265","c":"cave I, from its first byte: the 32-byte header $5AE1-$5B00 (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $5B01 (copied to $2420), bytes $5AE1-$5B20","t":"byte","b":[9,20,5,10,100,137,140,251]},{"a":23273,"t":"byte","b":[51,75,75,80,85,90,150,150]},{"a":23281,"t":"byte","b":[130,130,120,8,4,9,0,0]},{"a":23289,"t":"byte","b":[16,20,0,0,240,120,0,0]},{"a":23297,"t":"byte","b":[130,5,10,13,13,0,1,12]},{"a":23305,"t":"byte","b":[10,130,25,10,13,13,0,1]},{"a":23313,"t":"byte","b":[31,10,66,17,18,9,2,64]},{"a":23321,"t":"byte","b":[17,19,9,2,37,7,12,4]},{"a":23329,"l":"cave_09_data_23329","c":"cave I, continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $5B21-$5B23","t":"byte","b":[8,12,255]},{"a":23332,"l":"cave_10_data_23332","c":"cave J, from its first byte: the 32-byte header $5B24-$5B43 (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $5B44 (copied to $2420), bytes $5B24-$5B63","t":"byte","b":[10,20,25,60,0,0,0,0]},{"a":23340,"t":"byte","b":[0,12,12,12,12,12,150,130]},{"a":23348,"t":"byte","b":[120,110,100,6,8,9,0,0]},{"a":23356,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":23364,"t":"byte","b":[37,13,3,4,39,22,84,5]},{"a":23372,"t":"byte","b":[4,17,3,84,21,4,17,5]},{"a":23380,"t":"byte","b":[128,5,11,17,3,8,194,1]},{"a":23388,"t":"byte","b":[4,21,17,0,13,4,194,7]},{"a":23396,"l":"cave_10_data_23396","c":"cave J, continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $5B64-$5B88","t":"byte","b":[6,13,13,0,13,6,194,9]},{"a":23404,"t":"byte","b":[8,9,9,0,13,8,194,11]},{"a":23412,"t":"byte","b":[10,5,5,0,13,10,130,3]},{"a":23420,"t":"byte","b":[6,3,15,8,0,4,6,84]},{"a":23428,"t":"byte","b":[4,16,4,4,255]},{"a":23433,"l":"cave_11_data_23433","c":"cave K, from its first byte: the 32-byte header $5B89-$5BA8 (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $5BA9 (copied to $2420), bytes $5B89-$5BC8","t":"byte","b":[11,20,50,0,0,4,102,151]},{"a":23441,"t":"byte","b":[100,6,6,6,6,6,120,120]},{"a":23449,"t":"byte","b":[150,150,240,11,8,9,0,0]},{"a":23457,"t":"byte","b":[0,16,8,0,100,80,2,0]},{"a":23465,"t":"byte","b":[66,10,3,9,4,66,20,3]},{"a":23473,"t":"byte","b":[9,4,66,30,3,9,4,66]},{"a":23481,"t":"byte","b":[9,22,9,0,66,12,15,17]},{"a":23489,"t":"byte","b":[2,66,5,11,9,2,66,15]},{"a":23497,"l":"cave_11_data_23497","c":"cave K, continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $5BC9-$5BEE","t":"byte","b":[11,9,2,66,25,11,9,2]},{"a":23505,"t":"byte","b":[66,28,19,11,1,20,4,3]},{"a":23513,"t":"byte","b":[20,14,3,20,24,3,20,34]},{"a":23521,"t":"byte","b":[3,20,4,22,20,35,21,37]},{"a":23529,"t":"byte","b":[20,20,4,38,17,255]},{"a":23535,"l":"cave_12_data_23535","c":"cave L, from its first byte: the 32-byte header $5BEF-$5C0E (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $5C0F (copied to $2420), bytes $5BEF-$5C2E","t":"byte","b":[12,20,20,0,0,60,2,59]},{"a":23543,"t":"byte","b":[102,19,19,14,16,21,180,170]},{"a":23551,"t":"byte","b":[160,160,160,12,10,9,0,0]},{"a":23559,"t":"byte","b":[0,16,20,0,60,50,9,0]},{"a":23567,"t":"byte","b":[66,10,5,18,4,66,14,5]},{"a":23575,"t":"byte","b":[18,4,66,18,5,18,4,66]},{"a":23583,"t":"byte","b":[22,5,18,4,66,2,6,11]},{"a":23591,"t":"byte","b":[2,66,2,10,11,2,66,2]},{"a":23599,"l":"cave_12_data_23599","c":"cave L, continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $5C2F-$5C58","t":"byte","b":[14,15,2,66,2,18,11,2]},{"a":23607,"t":"byte","b":[129,30,4,4,4,0,8,32]},{"a":23615,"t":"byte","b":[5,129,30,9,4,4,0,8]},{"a":23623,"t":"byte","b":[32,10,129,30,14,4,4,0]},{"a":23631,"t":"byte","b":[8,32,15,37,3,20,4,39]},{"a":23639,"t":"byte","b":[22,255]},{"a":23641,"l":"cave_13_data_23641","c":"cave M, its whole description: the 32-byte header $5C59-$5C78 (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then all its object records from $5C79 (copied to $2420), ending with the end byte $FF at $5C96; cave N starts at $5C97","t":"byte","b":[13,140,5,8,0,1,2,3]},{"a":23649,"t":"byte","b":[4,50,55,60,70,80,160,155]},{"a":23657,"t":"byte","b":[150,145,140,6,8,13,0,0]},{"a":23665,"t":"byte","b":[16,0,0,0,40,0,0,0]},{"a":23673,"t":"byte","b":[37,18,3,4,10,3,58,20]},{"a":23681,"t":"byte","b":[3,66,5,18,30,2,112,5]},{"a":23689,"t":"byte","b":[19,30,2,80,5,20,30,2]},{"a":23697,"t":"byte","b":[193,5,21,30,2,255]},{"a":23703,"l":"cave_14_data_23703","c":"cave N, from its first byte: the 32-byte header $5C97-$5CB6 (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $5CB7 (copied to $2420), bytes $5C97-$5CD6","t":"byte","b":[14,20,10,20,0,0,0,0]},{"a":23711,"t":"byte","b":[0,30,35,40,42,45,150,145]},{"a":23719,"t":"byte","b":[140,135,130,12,8,9,0,0]},{"a":23727,"t":"byte","b":[16,0,0,0,0,0,0,0]},{"a":23735,"t":"byte","b":[129,10,10,13,13,0,112,11]},{"a":23743,"t":"byte","b":[11,12,3,193,12,10,3,13]},{"a":23751,"t":"byte","b":[193,16,10,3,13,193,20,10]},{"a":23759,"t":"byte","b":[3,13,80,22,8,12,2,72]},{"a":23767,"l":"cave_14_data_23767","c":"cave N, continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $5CD7-$5CF0","t":"byte","b":[22,7,12,2,193,23,6,3]},{"a":23775,"t":"byte","b":[4,193,27,6,3,4,193,31]},{"a":23783,"t":"byte","b":[6,3,4,37,3,3,4,39]},{"a":23791,"t":"byte","b":[20,255]},{"a":23793,"l":"cave_15_data_23793","c":"cave O, its whole description: the 32-byte header $5CF1-$5D10 (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then all its object records from $5D11 (copied to $2420), ending with the end byte $FF at $5D2B; cave P starts at $5D2C","t":"byte","b":[15,8,10,20,1,29,30,31]},{"a":23801,"t":"byte","b":[32,15,20,20,25,30,120,120]},{"a":23809,"t":"byte","b":[120,120,140,8,14,9,0,0]},{"a":23817,"t":"byte","b":[0,16,8,0,100,80,2,0]},{"a":23825,"t":"byte","b":[66,2,4,10,3,66,15,13]},{"a":23833,"t":"byte","b":[10,1,65,12,14,3,2,67]},{"a":23841,"t":"byte","b":[12,15,3,2,4,20,22,37]},{"a":23849,"t":"byte","b":[20,3,255]},{"a":23852,"l":"cave_16_data_23852","c":"cave P, from its first byte: the 32-byte header $5D2C-$5D4B (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $5D4C (copied to $2420), bytes $5D2C-$5D6B","t":"byte","b":[16,20,10,20,1,120,129,126]},{"a":23860,"t":"byte","b":[123,12,15,15,15,12,150,150]},{"a":23868,"t":"byte","b":[150,150,150,9,10,9,0,0]},{"a":23876,"t":"byte","b":[16,0,0,0,50,0,0,0]},{"a":23884,"t":"byte","b":[37,1,3,4,39,4,129,8]},{"a":23892,"t":"byte","b":[19,4,4,0,8,10,20,194]},{"a":23900,"t":"byte","b":[7,10,6,8,67,7,10,6]},{"a":23908,"t":"byte","b":[2,129,16,19,4,4,0,8]},{"a":23916,"l":"cave_16_data_23916","c":"cave P, continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $5D6C-$5D8A","t":"byte","b":[18,20,194,15,10,6,8,67]},{"a":23924,"t":"byte","b":[15,10,6,2,129,24,19,4]},{"a":23932,"t":"byte","b":[4,0,8,26,20,129,32,19]},{"a":23940,"t":"byte","b":[4,4,0,8,34,20,255]},{"a":23947,"l":"cave_17_data_23947","c":"bonus cave 1 (cave number 17), its whole description: the 32-byte header $5D8B-$5DAA (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then all its object records from $5DAB (copied to $2420), ending with the end byte $FF at $5DC6; bonus cave 2 starts at $5DC7","t":"byte","b":[17,20,30,0,10,11,12,13]},{"a":23955,"t":"byte","b":[14,6,6,6,6,6,10,10]},{"a":23963,"t":"byte","b":[10,10,10,14,2,9,0,0]},{"a":23971,"t":"byte","b":[0,20,0,0,255,9,0,0]},{"a":23979,"t":"byte","b":[135,0,2,40,22,7,135,0]},{"a":23987,"t":"byte","b":[2,20,12,0,50,10,12,16]},{"a":23995,"t":"byte","b":[10,4,1,10,5,37,3,5]},{"a":24003,"t":"byte","b":[4,18,12,255]},{"a":24007,"l":"cave_18_data_24007","c":"bonus cave 2 (cave number 18), from its first byte: the 32-byte header $5DC7-$5DE6 (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $5DE7 (copied to $2420), bytes $5DC7-$5E06","t":"byte","b":[18,20,10,0,10,11,12,13]},{"a":24015,"t":"byte","b":[14,16,16,16,16,16,15,15]},{"a":24023,"t":"byte","b":[15,15,15,6,15,9,0,0]},{"a":24031,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":24039,"t":"byte","b":[135,0,2,40,22,7,135,0]},{"a":24047,"t":"byte","b":[2,20,12,1,80,1,3,9]},{"a":24055,"t":"byte","b":[3,72,2,3,8,3,84,1]},{"a":24063,"t":"byte","b":[5,8,3,80,1,6,7,3]},{"a":24071,"l":"cave_18_data_24071","c":"bonus cave 2 (cave number 18), continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $5E07-$5E1C","t":"byte","b":[80,18,3,9,5,84,18,5]},{"a":24079,"t":"byte","b":[8,5,80,18,6,7,5,37]},{"a":24087,"t":"byte","b":[1,4,4,18,4,255]},{"a":24093,"l":"cave_19_data_24093","c":"bonus cave 3 (cave number 19), its whole description: the 32-byte header $5E1D-$5E3C (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then all its object records from $5E3D (copied to $2420), ending with the end byte $FF at $5E5A; bonus cave 4 starts at $5E5B","t":"byte","b":[19,4,10,0,10,11,12,13]},{"a":24101,"t":"byte","b":[14,14,14,14,14,14,20,20]},{"a":24109,"t":"byte","b":[20,20,20,6,8,9,0,0]},{"a":24117,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":24125,"t":"byte","b":[135,0,2,40,22,7,135,0]},{"a":24133,"t":"byte","b":[2,20,12,0,84,1,12,18]},{"a":24141,"t":"byte","b":[2,136,15,9,4,4,8,37]},{"a":24149,"t":"byte","b":[8,3,4,18,7,255]},{"a":24155,"l":"cave_20_data_24155","c":"bonus cave 4 (cave number 20), from its first byte: the 32-byte header $5E5B-$5E7A (seed, quota and time bytes for the five levels, colours, fill codes and thresholds; copied to $2400), then the first object records from $5E7B (copied to $2420), bytes $5E5B-$5E9A","t":"byte","b":[20,3,30,0,0,0,0,0]},{"a":24163,"t":"byte","b":[0,6,6,6,6,6,20,20]},{"a":24171,"t":"byte","b":[20,20,20,6,8,9,0,0]},{"a":24179,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":24187,"t":"byte","b":[135,0,2,40,22,7,135,0]},{"a":24195,"t":"byte","b":[2,20,12,1,208,11,3,3]},{"a":24203,"t":"byte","b":[2,128,11,7,3,6,0,67]},{"a":24211,"t":"byte","b":[11,6,3,2,67,11,10,3]},{"a":24219,"l":"cave_20_data_24219","c":"bonus cave 4 (cave number 20), continued from offset $0040 in its description (copied to $2400 plus that offset): object records, bytes $5E9B-$5EA7, ending with the end byte $FF at $5EA7","t":"byte","b":[2,80,8,7,3,3,37,3]},{"a":24227,"t":"byte","b":[3,4,9,10,255]},{"a":24232,"l":"demo_script","c":"the 64 bytes of the title screen's demonstration moves: each byte holds a direction in the low four bits and a repeat count in the high four, read by the routine at $8CAA","t":"byte","b":[255,255,30,119,45,151,79,45],"x":[36024]},{"a":24240,"t":"byte","b":[71,62,27,79,30,183,29,39]},{"a":24248,"t":"byte","b":[79,109,23,77,59,79,29,27]},{"a":24256,"t":"byte","b":[71,59,79,78,91,62,91,77]},{"a":24264,"t":"byte","b":[59,95,62,171,30,59,29,107]},{"a":24272,"t":"byte","b":[77,23,79,61,71,77,75,46]},{"a":24280,"t":"byte","b":[39,62,167,167,29,71,29,71]},{"a":24288,"t":"byte","b":[45,95,87,78,87,111,29,0]},{"a":24296,"l":"object_remap_table","c":"the end-of-object remap: for each of the 64 object codes the code to store when the update pass has finished with the cell, which turns the 'handled' codes back ($0C-$0F to $08-$0B, $11 to $10, $13 to $12, $15 to $14, $17 to $16, $34-$37 to $30-$33, $39 to $38, $3B to $3A); a zero entry leaves the cell alone; read at $81B2 during the update pass, not while the cave is built","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[33202]},{"a":24304,"t":"byte","b":[0,0,0,0,8,9,10,11]},{"a":24312,"t":"byte","b":[0,16,0,18,0,20,0,22]},{"a":24320,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":24328,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":24336,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":24344,"t":"byte","b":[0,0,0,0,48,49,50,51]},{"a":24352,"t":"byte","b":[0,56,0,58,0,0,0,0]},{"a":24360,"l":"object_tile_table","c":"the tile code drawn for each object code, 64 entries: $60 for space, $46 for dirt, $4E for the brick wall ($02), $4A for the steel wall ($07) and so on, read by draw_tile ($7018) at $701A when a cell is drawn","t":"byte","b":[96,70,78,34,46,98,46,74],"x":[28698]},{"a":24368,"t":"byte","b":[100,100,100,100,100,100,100,100]},{"a":24376,"t":"byte","b":[68,68,68,68,72,72,72,72]},{"a":24384,"t":"byte","b":[0,0,0,102,104,106,104,102]},{"a":24392,"t":"byte","b":[36,38,40,42,44,98,102,104]},{"a":24400,"t":"byte","b":[106,0,0,0,0,0,0,0]},{"a":24408,"t":"byte","b":[32,32,32,32,32,32,32,32]},{"a":24416,"t":"byte","b":[76,76,64,64,0,0,0,0]},{"a":24424,"l":"handler_table_low","c":"the low byte of the first handler address: the table of handler addresses for the 64 object codes starts here, as little-endian words, with zero for an object that has no handler","t":"byte","b":[0],"x":[33189]},{"a":24425,"l":"handler_table","c":"the high bytes and the rest of the handler addresses, as little-endian words indexed by twice the object code, read by update_pass ($8171) at $819E (high byte) and $81A5 (low byte); for example the word for object $04, the closed exit, is $70EC; a zero high byte means the object does nothing","t":"byte","b":[0,0,0,0,0,0,0,236],"x":[33182]},{"a":24433,"t":"byte","b":[112,220,118,0,0,0,0,114]},{"a":24441,"t":"byte","b":[113,114,113,114,113,114,113,0]},{"a":24449,"t":"byte","b":[0,0,0,0,0,0,0,248]},{"a":24457,"t":"byte","b":[118,0,0,69,119,0,0,31]},{"a":24465,"t":"byte","b":[115,0,0,157,114,0,0,0]},{"a":24473,"t":"byte","b":[0,0,0,0,0,107,118,107]},{"a":24481,"t":"byte","b":[118,107,118,107,118,107,118,107]},{"a":24489,"l":"data_5FA9","c":"the rest of the handler table, bytes $5FA9-$5FE7, up to the word for object $3F: addresses of the object handlers as little-endian words, zero for objects with none (the last handler is object $3A's, $7368, at $5FDC-$5FDD)","t":"byte","b":[118,107,118,107,118,107,118,107]},{"a":24497,"t":"byte","b":[118,220,118,136,118,136,118,136]},{"a":24505,"t":"byte","b":[118,0,0,0,0,0,0,0]},{"a":24513,"t":"byte","b":[0,0,0,0,0,0,0,69]},{"a":24521,"t":"byte","b":[114,69,114,69,114,69,114,0]},{"a":24529,"t":"byte","b":[0,0,0,0,0,0,0,44]},{"a":24537,"t":"byte","b":[118,0,0,104,115,0,0,0]},{"a":24545,"t":"byte","b":[0,0,0,0,0,0,0]},{"a":24552,"l":"title_tune_voice2","c":"the title music's note numbers, one byte for each step of voice 2; the routine at $8754 keeps a byte offset into the tune at $9800, moved on by two at each step so that it wraps after 128 steps, reads voice 2's note at $5FE8 plus the offset and voice 1's at the next byte, and doubles each note number to index the frequency table at $86CA; the same bytes are also copied with the tile characters to $3000","t":"byte","b":[22],"x":[34700,36139]},{"a":24553,"l":"title_tune_voice1","c":"the tune's note pairs continued, 64 bytes of the 256 the tune uses: voice 1's notes at the odd offsets ($5FE9, $5FEB, ...), read one byte after the voice 2 note by the routine at $8754, and voice 2's at the even ones ($5FEA, ...); these bytes are also part of the tile set, which the start-up copies from $5FE8-$63E7 to $3000-$33FF","t":"byte","b":[34,29,38,34,41,37,46,20],"x":[34683]},{"a":24561,"t":"byte","b":[36,31,39,32,41,39,48,18]},{"a":24569,"t":"byte","b":[42,18,44,30,46,18,49,32]},{"a":24577,"t":"byte","b":[44,51,55,33,45,49,53,22]},{"a":24585,"t":"byte","b":[34,22,46,22,29,22,36,20]},{"a":24593,"t":"byte","b":[32,20,48,20,36,20,32,22]},{"a":24601,"t":"byte","b":[34,22,46,22,29,22,36,30]},{"a":24609,"t":"byte","b":[42,30,58,30,46,30,42,20]},{"a":24617,"l":"data_6029","c":"the rest of the 256 bytes of the title tune, bytes $6029-$6068, which the music routine reads in pairs, and which are also copied to $3041 as character data","t":"byte","b":[32,20,44,20,27,20,34,28]},{"a":24625,"t":"byte","b":[40,28,56,28,44,28,40,17]},{"a":24633,"t":"byte","b":[29,41,45,17,31,41,46,15]},{"a":24641,"t":"byte","b":[39,15,39,22,51,22,39,22]},{"a":24649,"t":"byte","b":[46,22,46,22,46,22,46,34]},{"a":24657,"t":"byte","b":[46,34,46,22,46,22,46,20]},{"a":24665,"t":"byte","b":[46,20,46,20,46,20,46,32]},{"a":24673,"t":"byte","b":[46,32,46,20,46,20,46,22]},{"a":24681,"l":"data_6069","c":"the rest of the 256 bytes of the title tune, bytes $6069-$60A8, which the music routine reads in pairs, and which are also copied to $3081 as character data","t":"byte","b":[46,50,46,22,46,51,46,34]},{"a":24689,"t":"byte","b":[46,50,46,22,46,51,46,20]},{"a":24697,"t":"byte","b":[46,50,46,20,46,51,46,32]},{"a":24705,"t":"byte","b":[44,48,44,20,44,49,44,22]},{"a":24713,"t":"byte","b":[46,22,58,22,46,53,56,34]},{"a":24721,"t":"byte","b":[46,34,55,22,46,49,53,20]},{"a":24729,"t":"byte","b":[44,20,56,20,44,20,56,32]},{"a":24737,"t":"byte","b":[44,32,51,20,44,20,56,22]},{"a":24745,"l":"data_60A9","c":"the rest of the 256 bytes of the title tune, bytes $60A9-$60E7, which the music routine reads in pairs, and which are also copied to $30C1 as character data","t":"byte","b":[46,50,46,22,46,51,46,34]},{"a":24753,"t":"byte","b":[46,50,46,22,46,51,46,20]},{"a":24761,"t":"byte","b":[46,50,46,20,46,51,46,32]},{"a":24769,"t":"byte","b":[44,48,44,20,44,49,44,46]},{"a":24777,"t":"byte","b":[50,41,46,38,41,34,38,44]},{"a":24785,"t":"byte","b":[48,39,44,36,39,20,32,53]},{"a":24793,"t":"byte","b":[50,50,46,46,41,41,38,39]},{"a":24801,"t":"byte","b":[48,36,44,32,39,20,32]},{"a":24808,"l":"tile_charset_1","c":"the second 256 bytes of the tile character set, characters $20 to $3F, which the start-up copies to $3100","t":"byte","b":[0,60,96,60,6,6,60,0],"x":[36145]},{"a":24816,"t":"byte","b":[0,99,119,127,107,99,99,0]},{"a":24824,"t":"byte","b":[63,47,42,0,243,242,162,0]},{"a":24832,"t":"byte","b":[63,47,42,0,243,242,162,0]},{"a":24840,"t":"byte","b":[0,0,0,0,0,12,48,3]},{"a":24848,"t":"byte","b":[0,0,0,0,48,0,192,12]},{"a":24856,"t":"byte","b":[0,204,0,12,48,0,192,0]},{"a":24864,"t":"byte","b":[192,12,0,204,0,48,3,0]},{"a":24872,"l":"data_6128","c":"tile character set, bytes $6128-$6167: characters $28 to $2F, copied to $3140","t":"byte","b":[1,51,4,12,2,0,72,192]},{"a":24880,"t":"byte","b":[64,0,19,176,4,12,33,3]},{"a":24888,"t":"byte","b":[1,3,4,12,18,48,75,210]},{"a":24896,"t":"byte","b":[64,192,16,176,4,204,97,139]},{"a":24904,"t":"byte","b":[1,3,6,14,23,59,109,251]},{"a":24912,"t":"byte","b":[64,192,80,176,228,172,125,231]},{"a":24920,"t":"byte","b":[170,170,130,162,178,170,170,170]},{"a":24928,"t":"byte","b":[170,170,130,162,178,170,170,170]},{"a":24936,"l":"data_6168","c":"tile character set, bytes $6168-$61A7: characters $30 to $37, copied to $3180","t":"byte","b":[0,102,102,60,24,24,24,0]},{"a":24944,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":24952,"t":"byte","b":[63,47,42,0,243,242,162,0]},{"a":24960,"t":"byte","b":[63,47,42,0,243,242,162,0]},{"a":24968,"t":"byte","b":[0,12,48,3,0,0,0,0]},{"a":24976,"t":"byte","b":[192,0,48,192,0,0,0,0]},{"a":24984,"t":"byte","b":[0,192,0,48,3,192,12,0]},{"a":24992,"t":"byte","b":[0,12,0,195,0,12,0,0]},{"a":25000,"l":"data_61A8","c":"tile character set, bytes $61A8-$61E7: characters $38 to $3F, copied to $31C0","t":"byte","b":[64,200,0,50,4,12,49,3]},{"a":25008,"t":"byte","b":[2,3,40,12,96,3,128,192]},{"a":25016,"t":"byte","b":[67,200,20,50,7,12,1,3]},{"a":25024,"t":"byte","b":[22,131,56,140,32,112,128,192]},{"a":25032,"t":"byte","b":[107,237,27,57,7,14,1,3]},{"a":25040,"t":"byte","b":[182,215,120,156,224,112,128,192]},{"a":25048,"t":"byte","b":[170,170,130,162,178,170,170,170]},{"a":25056,"t":"byte","b":[170,170,130,162,178,170,170,170]},{"a":25064,"l":"tile_charset_2","c":"the third 256 bytes of the tile character set, characters $40 to $5F, which the start-up copies to $3200","t":"byte","b":[63,47,42,0,243,242,162,0],"x":[36151]},{"a":25072,"t":"byte","b":[63,47,42,0,243,242,162,0]},{"a":25080,"t":"byte","b":[0,8,10,34,34,10,2,10]},{"a":25088,"t":"byte","b":[0,32,160,136,136,160,128,160]},{"a":25096,"t":"byte","b":[15,59,222,182,169,154,165,170]},{"a":25104,"t":"byte","b":[192,112,252,127,191,155,175,155]},{"a":25112,"t":"byte","b":[4,80,25,81,69,36,150,69]},{"a":25120,"t":"byte","b":[17,65,24,81,69,100,133,88]},{"a":25128,"l":"data_6228","c":"tile character set, bytes $6228-$6267: characters $48 to $4F, copied to $3240","t":"byte","b":[1,3,4,12,16,48,64,192]},{"a":25136,"t":"byte","b":[64,192,16,48,4,12,1,3]},{"a":25144,"t":"byte","b":[170,170,130,162,178,170,170,170]},{"a":25152,"t":"byte","b":[170,170,130,162,178,170,170,170]},{"a":25160,"t":"byte","b":[240,63,251,251,255,60,15,10]},{"a":25168,"t":"byte","b":[15,252,239,239,255,60,48,160]},{"a":25176,"t":"byte","b":[63,47,42,0,243,242,162,0]},{"a":25184,"t":"byte","b":[63,47,42,0,243,242,162,0]},{"a":25192,"l":"data_6268","c":"tile character set, bytes $6268-$62A7: characters $50 to $57, copied to $3280","t":"byte","b":[0,0,0,0,10,10,11,11]},{"a":25200,"t":"byte","b":[0,0,48,3,49,24,32,210]},{"a":25208,"t":"byte","b":[35,50,3,2,7,4,4,60]},{"a":25216,"t":"byte","b":[200,140,192,128,208,16,16,60]},{"a":25224,"t":"byte","b":[138,162,138,162,168,42,8,2]},{"a":25232,"t":"byte","b":[169,153,170,170,168,168,96,128]},{"a":25240,"t":"byte","b":[21,97,100,37,68,80,70,16]},{"a":25248,"t":"byte","b":[149,88,145,25,68,81,16,68]},{"a":25256,"l":"data_62A8","c":"tile character set, bytes $62A8-$62E7: characters $58 to $5F, copied to $32C0","t":"byte","b":[64,192,16,48,4,12,1,3]},{"a":25264,"t":"byte","b":[2,3,8,12,32,48,128,192]},{"a":25272,"t":"byte","b":[170,170,130,162,178,170,170,170]},{"a":25280,"t":"byte","b":[170,170,130,162,178,170,170,170]},{"a":25288,"t":"byte","b":[90,74,10,63,60,48,240,0]},{"a":25296,"t":"byte","b":[164,161,164,252,60,12,12,15]},{"a":25304,"t":"byte","b":[63,47,42,0,243,242,162,0]},{"a":25312,"t":"byte","b":[63,47,42,0,243,242,162,0]},{"a":25320,"l":"tile_charset_3","c":"the last 256 bytes of the tile character set, characters $60 to $7F, which the start-up copies to $3300","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[36157]},{"a":25328,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":25336,"t":"byte","b":[170,128,128,128,128,128,128,128]},{"a":25344,"t":"byte","b":[170,2,2,2,2,2,2,2]},{"a":25352,"t":"byte","b":[255,239,234,192,243,243,163,3]},{"a":25360,"t":"byte","b":[63,63,58,48,255,254,174,12]},{"a":25368,"t":"byte","b":[0,0,0,0,0,12,48,3]},{"a":25376,"t":"byte","b":[0,0,0,0,48,0,192,12]},{"a":25384,"t":"gap","n":4},{"a":25388,"l":"data_632C","c":"tile character set, bytes $632C-$636B: characters $68 to $70, copied to $3344","t":"byte","b":[3,52,16,49,0,0,0,48]},{"a":25396,"t":"byte","b":[16,12,116,4,0,0,48,3]},{"a":25404,"t":"byte","b":[49,24,32,210,0,0,204,32]},{"a":25412,"t":"byte","b":[28,4,152,8,255,239,234,192]},{"a":25420,"t":"byte","b":[243,243,163,3,63,63,58,48]},{"a":25428,"t":"byte","b":[255,254,174,12,63,47,46,12]},{"a":25436,"t":"byte","b":[243,242,178,48,63,47,43,3]},{"a":25444,"t":"byte","b":[243,242,226,192,0,0,0,0]},{"a":25452,"l":"data_636C","c":"tile character set, bytes $636C-$63AB: characters $70 to $78, copied to $3384","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":25460,"t":"byte","b":[0,0,0,0,128,128,128,128]},{"a":25468,"t":"byte","b":[128,128,128,170,2,2,2,2]},{"a":25476,"t":"byte","b":[2,2,2,170,124,124,124,124]},{"a":25484,"t":"byte","b":[47,0,0,0,124,124,124,124]},{"a":25492,"t":"byte","b":[255,124,124,124,0,12,48,3]},{"a":25500,"t":"byte","b":[0,0,0,0,192,0,48,192]},{"a":25508,"t":"byte","b":[0,0,0,0,0,52,17,13]},{"a":25516,"l":"data_63AC","c":"tile character set, bytes $63AC-$63E7, the end of the set: character $78 from its fifth pixel row (its first four rows are at $63A8-$63AB, in the run before), then characters $79 to $7F, copied to $33C4-$33FF; from $63D6 on (the last two rows of $7D, then $7E and $7F) the bytes are zero","t":"byte","b":[12,0,0,0,112,64,16,76]},{"a":25524,"t":"byte","b":[192,0,0,0,0,216,34,6]},{"a":25532,"t":"byte","b":[196,3,48,0,80,76,16,68]},{"a":25540,"t":"byte","b":[76,192,0,0,170,170,130,162]},{"a":25548,"t":"byte","b":[178,170,170,170,0,240,0,0]},{"a":25556,"t":"byte","b":[0,15,0,0,0,0,0,0]},{"a":25564,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":25572,"t":"byte","b":[0,0,0,0]},{"a":25576,"l":"rockford_frames_1a","c":"frame set 1 of Rockford for the character at $3260: the frame number picks the 8 bytes, used while the flag zpa_BF is set","t":"byte","b":[0,8,10,42,34,10,2,10],"x":[31784]},{"a":25584,"l":"rockford_frames_1b","c":"frame set 1 of Rockford for the second character at $3268","t":"byte","b":[0,32,160,168,136,160,128,160],"x":[31790]},{"a":25592,"t":"byte","b":[0,8,10,42,42,10,2,10]},{"a":25600,"t":"byte","b":[0,32,160,168,168,160,128,160]},{"a":25608,"t":"byte","b":[0,8,10,42,42,10,2,10]},{"a":25616,"t":"byte","b":[0,32,160,168,168,160,128,160]},{"a":25624,"t":"byte","b":[0,8,10,42,34,10,2,10]},{"a":25632,"t":"byte","b":[0,32,160,168,136,160,128,160]},{"a":25640,"t":"byte","b":[0,8,10,34,34,10,2,10]},{"a":25648,"t":"gap","n":1},{"a":25649,"l":"data_6431","c":"the rest of the Rockford frame sets, bytes $6431-$6467: further pixel rows for the frames selected by the animation phase","t":"byte","b":[32,160,136,136,160,128,160,0]},{"a":25657,"t":"byte","b":[8,10,34,34,10,2,10,0]},{"a":25665,"t":"byte","b":[32,160,136,136,160,128,160,0]},{"a":25673,"t":"byte","b":[8,10,34,34,10,2,10,0]},{"a":25681,"t":"byte","b":[32,160,136,136,160,128,160,0]},{"a":25689,"t":"byte","b":[8,10,34,34,10,2,10,0]},{"a":25697,"t":"byte","b":[32,160,136,136,160,128,160]},{"a":25704,"l":"rockford_frames_2a","c":"frame set 2 of Rockford for the character at $32E0: used while the flag zpa_BE is set","t":"byte","b":[35,14,3,2,7,4,60,0],"x":[31815]},{"a":25712,"l":"rockford_frames_2b","c":"frame set 2 of Rockford for the second character at $32E8","t":"byte","b":[200,176,192,128,208,16,16,60],"x":[31821]},{"a":25720,"t":"byte","b":[35,14,3,2,7,4,60,0]},{"a":25728,"t":"byte","b":[200,176,192,128,208,16,16,60]},{"a":25736,"t":"byte","b":[35,14,3,2,7,4,60,0]},{"a":25744,"t":"byte","b":[200,176,192,128,208,16,16,60]},{"a":25752,"t":"byte","b":[35,14,3,2,7,4,60,0]},{"a":25760,"t":"byte","b":[200,176,192,128,208,16,16,60]},{"a":25768,"t":"byte","b":[35,14,3,2,7,4,4,60]},{"a":25776,"l":"data_64B0","c":"the rest of the Rockford frame sets, bytes $64B0-$64E7: further pixel rows for the frames selected by the animation phase","t":"byte","b":[200,176,192,128,208,16,16,60]},{"a":25784,"t":"byte","b":[35,14,3,2,7,4,4,60]},{"a":25792,"t":"byte","b":[200,176,192,128,208,16,16,60]},{"a":25800,"t":"byte","b":[35,14,3,2,7,4,4,60]},{"a":25808,"t":"byte","b":[200,176,192,128,208,16,16,60]},{"a":25816,"t":"byte","b":[35,14,3,2,7,4,4,60]},{"a":25824,"t":"byte","b":[200,176,192,128,208,16,16,60]},{"a":25832,"l":"rockford_frames_3a","c":"frame set 3 of Rockford for the character at $3260","t":"byte","b":[0,2,10,34,34,10,2,2],"x":[31723]},{"a":25840,"l":"rockford_frames_3b","c":"frame set 3 of Rockford for the second character at $3268","t":"byte","b":[0,128,160,160,160,160,128,128],"x":[31729]},{"a":25848,"t":"byte","b":[0,2,10,34,34,10,2,2]},{"a":25856,"t":"byte","b":[0,128,160,160,160,160,128,128]},{"a":25864,"t":"byte","b":[0,2,10,34,34,10,2,2]},{"a":25872,"t":"byte","b":[0,128,160,160,160,160,128,128]},{"a":25880,"t":"byte","b":[0,0,2,10,34,34,10,2]},{"a":25888,"t":"byte","b":[0,0,128,160,160,160,160,128]},{"a":25896,"t":"byte","b":[0,0,2,10,34,34,10,2]},{"a":25904,"t":"gap","n":2},{"a":25906,"l":"data_6532","c":"the rest of the Rockford frame sets, bytes $6532-$6567: further pixel rows for the frames selected by the animation phase","t":"byte","b":[128,160,160,160,160,128,0,0]},{"a":25914,"t":"byte","b":[2,10,34,34,10,2,0,0]},{"a":25922,"t":"byte","b":[128,160,160,160,160,128,0,2]},{"a":25930,"t":"byte","b":[10,34,34,10,2,2,0,128]},{"a":25938,"t":"byte","b":[160,160,160,160,128,128,0,2]},{"a":25946,"t":"byte","b":[10,34,34,10,2,2,0,128]},{"a":25954,"t":"byte","b":[160,160,160,160,128,128]},{"a":25960,"l":"rockford_frames_4a","c":"frame set 4 of Rockford for the character at $32E0","t":"byte","b":[3,14,3,2,7,16,16,240],"x":[31735]},{"a":25968,"l":"rockford_frames_4b","c":"frame set 4 of Rockford for the second character at $32E8","t":"byte","b":[192,128,192,128,212,3,3,0],"x":[31741]},{"a":25976,"t":"byte","b":[3,14,3,2,7,16,16,240]},{"a":25984,"t":"byte","b":[192,128,192,128,212,3,3,0]},{"a":25992,"t":"byte","b":[3,14,3,2,7,4,4,60]},{"a":26000,"t":"byte","b":[192,128,192,128,208,23,3,0]},{"a":26008,"t":"byte","b":[3,14,3,2,7,4,4,60]},{"a":26016,"t":"byte","b":[192,128,192,128,192,84,28,12]},{"a":26024,"t":"byte","b":[3,14,3,2,3,1,1,15]},{"a":26032,"l":"data_65B0","c":"the rest of the Rockford frame sets, bytes $65B0-$65E7: further pixel rows for the frames selected by the animation phase","t":"byte","b":[192,128,192,128,192,64,112,48]},{"a":26040,"t":"byte","b":[3,14,3,2,3,5,5,3]},{"a":26048,"t":"byte","b":[192,128,192,128,192,64,64,192]},{"a":26056,"t":"byte","b":[3,14,3,2,3,5,5,15]},{"a":26064,"t":"byte","b":[192,128,192,128,192,64,64,240]},{"a":26072,"t":"byte","b":[3,14,3,2,7,4,4,60]},{"a":26080,"t":"byte","b":[192,128,192,128,192,84,28,12]},{"a":26088,"l":"rockford_frames_5a","c":"frame set 5 of Rockford for the character at $3260","t":"byte","b":[0,2,10,10,10,10,2,2],"x":[31698]},{"a":26096,"l":"rockford_frames_5b","c":"frame set 5 of Rockford for the second character at $3268","t":"byte","b":[0,128,160,136,136,160,128,128],"x":[31704]},{"a":26104,"t":"byte","b":[0,2,10,10,10,10,2,2]},{"a":26112,"t":"byte","b":[0,128,160,136,136,160,128,128]},{"a":26120,"t":"byte","b":[0,2,10,10,10,10,2,2]},{"a":26128,"t":"byte","b":[0,128,160,136,136,160,128,128]},{"a":26136,"t":"byte","b":[0,0,2,10,10,10,10,2]},{"a":26144,"t":"byte","b":[0,0,128,160,136,136,160,128]},{"a":26152,"t":"byte","b":[0,0,2,10,10,10,10,2]},{"a":26160,"t":"gap","n":2},{"a":26162,"l":"data_6632","c":"the rest of the Rockford frame sets, bytes $6632-$6667: further pixel rows for the frames selected by the animation phase","t":"byte","b":[128,160,136,136,160,128,0,0]},{"a":26170,"t":"byte","b":[2,10,10,10,10,2,0,0]},{"a":26178,"t":"byte","b":[128,160,136,136,160,128,0,2]},{"a":26186,"t":"byte","b":[10,10,10,10,2,2,0,128]},{"a":26194,"t":"byte","b":[160,136,136,160,128,128,0,2]},{"a":26202,"t":"byte","b":[10,10,10,10,2,2,0,128]},{"a":26210,"t":"byte","b":[160,136,136,160,128,128]},{"a":26216,"l":"rockford_frames_6a","c":"frame set 6 of Rockford for the character at $32E0","t":"byte","b":[3,2,3,2,23,192,192,0],"x":[31710]},{"a":26224,"l":"rockford_frames_6b","c":"frame set 6 of Rockford for the second character at $32E8","t":"byte","b":[192,176,192,128,208,4,4,15],"x":[31716]},{"a":26232,"t":"byte","b":[3,2,3,2,23,192,192,0]},{"a":26240,"t":"byte","b":[192,176,192,128,208,4,4,15]},{"a":26248,"t":"byte","b":[3,2,3,2,7,213,192,0]},{"a":26256,"t":"byte","b":[192,176,192,128,208,16,16,60]},{"a":26264,"t":"byte","b":[3,2,3,2,3,21,52,48]},{"a":26272,"t":"byte","b":[192,176,192,128,208,16,16,60]},{"a":26280,"t":"byte","b":[3,2,3,2,3,1,13,12]},{"a":26288,"l":"data_66B0","c":"the rest of the Rockford frame sets, bytes $66B0-$66E7: further pixel rows for the frames selected by the animation phase","t":"byte","b":[192,176,192,128,192,64,64,240]},{"a":26296,"t":"byte","b":[3,2,3,2,3,1,1,3]},{"a":26304,"t":"byte","b":[192,176,192,128,192,80,80,192]},{"a":26312,"t":"byte","b":[3,2,3,2,3,1,1,15]},{"a":26320,"t":"byte","b":[192,176,192,128,192,80,80,240]},{"a":26328,"t":"byte","b":[3,2,3,2,3,21,52,48]},{"a":26336,"t":"byte","b":[192,176,192,128,208,16,16,60]},{"a":26344,"l":"title_map_top","c":"16 bytes of the title screen's big-letter template, copied to $0850-$085F by build_menu_screen ($85D2): text-set character codes for screen row 2, columns 0 to 15, the top of the B of BOULDER ($08, $03 and $09, block and corner characters); the rest of the row is zeroed at $85C2. At the title the VIC shows screen $0800 with the text set at $2000 ($D018 = $28), so the codes are shown directly; in play $0850 is where the cave map starts","t":"byte","b":[0,0,8,3,3,3,9,0],"x":[34258]},{"a":26352,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":26360,"l":"title_map_rows","c":"the title screen's big-letter template body (240 bytes), copied to $0878-$0967 by build_menu_screen ($85E5): text-set character codes for screen rows 3 to 8 that spell BOULDER in block letters (the B's top comes from $66E8), drawn with the block and corner characters $03 and $08-$0A; the VIC shows them directly at the title (screen $0800, text set at $2000, $D018 = $28), and in play the same memory holds the cave map","t":"byte","b":[0,0,8,3,0,0,8,0],"x":[34277]},{"a":26368,"t":"byte","b":[8,3,3,3,0,8,3,0]},{"a":26376,"t":"byte","b":[8,0,8,3,0,0,0,8]},{"a":26384,"t":"byte","b":[3,3,9,0,8,3,3,3]},{"a":26392,"t":"byte","b":[0,8,3,3,9,0,0,0]},{"a":26400,"t":"byte","b":[0,0,8,3,3,3,10,0]},{"a":26408,"t":"byte","b":[8,3,0,8,0,8,3,0]},{"a":26416,"t":"byte","b":[8,0,8,3,0,0,0,8]},{"a":26424,"l":"data_6738","c":"the rest of the BOULDER template, bytes $6738-$6777: text-set character codes that build_menu_screen ($85E5) copies to $08B8-$08F7, screen rows 4 to 6 of the title; the VIC shows them directly at the title (screen $0800, text set at $2000, $D018 = $28), and in play the same memory holds the cave map","t":"byte","b":[3,0,8,0,8,3,0,0]},{"a":26432,"t":"byte","b":[0,8,3,0,8,0,0,0]},{"a":26440,"t":"byte","b":[0,0,8,3,3,3,9,0]},{"a":26448,"t":"byte","b":[8,3,0,8,0,8,3,0]},{"a":26456,"t":"byte","b":[8,0,8,3,0,0,0,8]},{"a":26464,"t":"byte","b":[3,0,8,0,8,3,3,0]},{"a":26472,"t":"byte","b":[0,8,3,3,10,0,0,0]},{"a":26480,"t":"byte","b":[3,0,8,3,0,0,8,0]},{"a":26488,"l":"data_6778","c":"the rest of the BOULDER template, bytes $6778-$67B7: text-set character codes that build_menu_screen ($85E5) copies to $08F8-$0937, screen rows 6 and 7 of the title; the VIC shows them directly at the title (screen $0800, text set at $2000, $D018 = $28), and in play the same memory holds the cave map","t":"byte","b":[8,3,0,8,0,8,3,0]},{"a":26496,"t":"byte","b":[8,0,8,3,0,0,0,8]},{"a":26504,"t":"byte","b":[3,0,8,0,8,3,0,0]},{"a":26512,"t":"byte","b":[0,8,3,3,9,0,0,3]},{"a":26520,"t":"byte","b":[3,0,8,3,3,3,3,0]},{"a":26528,"t":"byte","b":[8,3,3,3,0,8,3,3]},{"a":26536,"t":"byte","b":[3,0,8,3,3,3,0,8]},{"a":26544,"t":"byte","b":[3,3,3,0,8,3,3,3]},{"a":26552,"l":"data_67B8","c":"the end of the BOULDER template, bytes $67B8-$67E7 (the last three are zero): text-set character codes that build_menu_screen ($85E5) copies to $0938-$0967, screen rows 7 and 8 of the title; the VIC shows them directly at the title (screen $0800, text set at $2000, $D018 = $28), and in play the same memory holds the cave map","t":"byte","b":[0,8,3,0,8,0,0,3]},{"a":26560,"t":"byte","b":[0,0,8,3,3,3,10,0]},{"a":26568,"t":"byte","b":[8,3,3,3,0,8,3,3]},{"a":26576,"t":"byte","b":[3,0,8,3,3,3,0,8]},{"a":26584,"t":"byte","b":[3,3,10,0,8,3,3,3]},{"a":26592,"t":"byte","b":[0,8,3,0,8,0,0,0]},{"a":26600,"l":"title_map_top_2","c":"16 bytes of the second title template, copied to $0990","t":"byte","b":[0,0,0,0,0,0,0,8],"x":[34264]},{"a":26608,"t":"byte","b":[3,3,3,9,0,0,0,0]},{"a":26616,"l":"title_map_rows_2","c":"the second title template body (240 bytes), copied to $09B8","t":"byte","b":[0,0,0,0,0,0,0,8],"x":[34283]},{"a":26624,"t":"byte","b":[3,0,0,8,0,0,8,3]},{"a":26632,"t":"byte","b":[9,0,8,3,3,3,0,8]},{"a":26640,"t":"byte","b":[3,0,0,8,0,29,30,31]},{"a":26648,"t":"byte","b":[0,0,0,0,0,0,0,3]},{"a":26656,"t":"byte","b":[3,0,0,0,0,0,0,8]},{"a":26664,"t":"byte","b":[3,0,0,8,0,8,3,0]},{"a":26672,"t":"byte","b":[8,0,8,3,0,0,0,8]},{"a":26680,"l":"data_6838","c":"the rest of the second big-letter template (DASH), bytes $6838-$6877: text-set character codes that build_menu_screen ($85EB) copies to $09F8-$0A37, screen rows 12 to 14 of the title; the VIC shows them directly at the title (screen $0800, text set at $2000, $D018 = $28), and in play the same memory holds the cave map","t":"byte","b":[3,0,0,8,0,0,0,0]},{"a":26688,"t":"byte","b":[0,0,0,0,0,0,0,3]},{"a":26696,"t":"byte","b":[3,0,0,0,0,0,0,8]},{"a":26704,"t":"byte","b":[3,0,0,8,0,8,3,3]},{"a":26712,"t":"byte","b":[3,0,8,3,3,3,0,8]},{"a":26720,"t":"byte","b":[3,3,3,3,0,0,0,0]},{"a":26728,"t":"byte","b":[0,0,0,0,0,0,0,3]},{"a":26736,"t":"byte","b":[3,0,0,0,0,0,0,8]},{"a":26744,"l":"data_6878","c":"the rest of the DASH template, bytes $6878-$68B7: text-set character codes that build_menu_screen ($85EB) copies to $0A38-$0A77, screen rows 14 and 15 of the title; the VIC shows them directly at the title (screen $0800, text set at $2000, $D018 = $28), and in play the same memory holds the cave map","t":"byte","b":[3,0,0,8,0,8,3,0]},{"a":26752,"t":"byte","b":[8,0,0,0,8,3,0,8]},{"a":26760,"t":"byte","b":[3,0,0,8,0,0,0,0]},{"a":26768,"t":"byte","b":[0,0,0,0,0,0,0,3]},{"a":26776,"t":"byte","b":[3,0,0,0,0,0,0,8]},{"a":26784,"t":"byte","b":[3,3,3,3,0,8,3,0]},{"a":26792,"t":"byte","b":[8,0,8,3,3,3,0,8]},{"a":26800,"t":"byte","b":[3,0,0,8,0,0,0,0]},{"a":26808,"l":"data_68B8","c":"the end of the DASH template, bytes $68B8-$68E7 (from $68DC on zero): text-set character codes that build_menu_screen ($85EB) copies to $0A78-$0AA7, screen rows 15 and 16 of the title; the VIC shows them directly at the title (screen $0800, text set at $2000, $D018 = $28), and in play the same memory holds the cave map","t":"byte","b":[0,0,0,0,0,0,0,3]},{"a":26816,"t":"byte","b":[0,0,0,0,0,0,0,8]},{"a":26824,"t":"byte","b":[3,3,3,10,0,8,3,0]},{"a":26832,"t":"byte","b":[8,0,8,3,3,3,0,8]},{"a":26840,"t":"byte","b":[3,0,0,8,0,0,0,0]},{"a":26848,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":26856,"l":"logo_row19_right","c":"the first of eight blocks of the First Star Software logo: init_graphics copies the 192 bytes $68E8-$69A7 to $3840-$38FF ($8D62), columns 16 to 39 of bitmap row 19 ($37C0-$38FF), after zeroing $37C0-$387F ($8D4A), so columns 0 to 15 stay blank. The VIC shows the bitmap at $2000 in multicolour in the bottom six character rows (19 to 24, $37C0-$3F3F) of the title screen while zpa_A3 is not zero: from raster line $CA the interrupt at $8A1E writes $D011 = $3B and $D018 = $28 from the table at $899C, and build_title_screen sets the colour bytes $0AF8-$0BE7 to $6E ($89B3). No instruction reads the copy; the VIC does","t":"byte","b":[0,0,0,0,0,0,255,63],"x":[36194]},{"a":26864,"t":"byte","b":[0,0,0,0,0,0,0,252]},{"a":26872,"t":"byte","b":[0,0,0,0,0,0,3,15]},{"a":26880,"t":"byte","b":[15,15,63,63,255,255,255,255]},{"a":26888,"t":"byte","b":[192,192,192,192,192,192,255,234]},{"a":26896,"t":"byte","b":[0,0,0,0,3,255,252,170]},{"a":26904,"t":"byte","b":[0,0,0,0,192,0,0,170]},{"a":26912,"t":"byte","b":[0,1,1,1,1,1,1,161]},{"a":26920,"t":"gap","n":1},{"a":26921,"l":"data_6929","c":"more of the first logo block ($68E8-$69A7): bytes $6929-$6968 land at $3881-$38C0, bitmap row 19 from the second byte of column 24 to the first byte of column 32; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[85,85,85,85,80,80,85,0]},{"a":26929,"t":"byte","b":[69,69,69,69,5,5,69,0]},{"a":26937,"t":"byte","b":[69,69,69,69,69,69,69,0]},{"a":26945,"t":"byte","b":[85,85,85,85,65,65,85,0]},{"a":26953,"t":"byte","b":[64,81,81,81,81,81,81,0]},{"a":26961,"t":"byte","b":[85,85,85,85,80,80,85,0]},{"a":26969,"t":"byte","b":[21,21,21,21,0,0,80,0]},{"a":26977,"t":"byte","b":[85,85,85,85,85,85,85,0]},{"a":26985,"l":"data_6969","c":"the end of the first logo block ($68E8-$69A7): bytes $6969-$69A7 land at $38C1-$38FF, bitmap row 19 from the second byte of column 32 to the end of column 39; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[81,81,81,81,1,0,0,0]},{"a":26993,"t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":27001,"t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":27009,"t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":27017,"t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":27025,"t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":27033,"t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":27041,"t":"byte","b":[85,85,85,85,85,0,0]},{"a":27048,"l":"logo_row20_right","c":"the second block of the logo: init_graphics copies the 192 bytes $69A8-$6A67 to $3980-$3A3F ($8D68), columns 16 to 39 of bitmap row 20 ($3900-$3A3F); $3900-$39BF is zeroed first ($8D4D), so columns 0 to 15 stay blank; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[15,3,0,0,0,0,0,0],"x":[36200]},{"a":27056,"t":"byte","b":[255,255,255,255,63,15,63,63]},{"a":27064,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":27072,"t":"byte","b":[255,254,250,250,250,250,250,250]},{"a":27080,"t":"byte","b":[170,170,170,170,170,170,170,170]},{"a":27088,"t":"byte","b":[170,170,170,170,128,0,0,0]},{"a":27096,"t":"byte","b":[170,170,170,170,0,0,0,0]},{"a":27104,"t":"byte","b":[161,161,161,161,1,1,1,1]},{"a":27112,"l":"data_69E8","c":"more of the second logo block ($69A8-$6A67): bytes $69E8-$6A27 land at $39C0-$39FF, columns 24 to 31 of bitmap row 20; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[85,85,85,80,80,80,80,80]},{"a":27120,"t":"byte","b":[69,69,69,5,5,5,5,5]},{"a":27128,"t":"byte","b":[69,69,69,69,69,69,69,69]},{"a":27136,"t":"byte","b":[85,85,85,69,69,69,69,69]},{"a":27144,"t":"byte","b":[81,81,81,0,0,81,81,81]},{"a":27152,"t":"byte","b":[85,85,85,0,0,85,85,85]},{"a":27160,"t":"byte","b":[84,84,84,84,84,84,84,84]},{"a":27168,"t":"byte","b":[85,85,85,85,85,85,85,85]},{"a":27176,"l":"data_6A28","c":"the end of the second logo block ($69A8-$6A67): bytes $6A28-$6A67 land at $3A00-$3A3F, columns 32 to 39 of bitmap row 20; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[42,42,42,42,42,0,0,0]},{"a":27184,"t":"byte","b":[170,170,170,170,170,0,0,0]},{"a":27192,"t":"byte","b":[170,170,170,170,170,0,0,0]},{"a":27200,"t":"byte","b":[170,170,170,170,170,0,0,0]},{"a":27208,"t":"byte","b":[170,170,170,170,170,0,0,0]},{"a":27216,"t":"byte","b":[170,170,170,170,170,0,0,0]},{"a":27224,"t":"byte","b":[170,170,170,170,170,0,0,0]},{"a":27232,"t":"byte","b":[170,170,170,170,170,0,0,0]},{"a":27240,"l":"logo_row21_right","c":"the third block of the logo: init_graphics copies the 192 bytes $6A68-$6B27 to $3AC0-$3B7F ($8D6E), columns 16 to 39 of bitmap row 21 ($3A40-$3B7F); $3A40-$3AFF is zeroed first ($8D50), so columns 0 to 15 stay blank; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[0,0,3,15,15,63,63,252],"x":[36206]},{"a":27248,"t":"byte","b":[255,255,255,255,253,245,197,5]},{"a":27256,"t":"byte","b":[255,255,243,85,85,85,85,85]},{"a":27264,"t":"byte","b":[254,254,255,85,85,85,85,85]},{"a":27272,"t":"byte","b":[170,170,170,170,42,42,74,74]},{"a":27280,"t":"byte","b":[0,128,128,162,160,168,168,170]},{"a":27288,"t":"byte","b":[0,0,0,170,170,170,42,42]},{"a":27296,"t":"byte","b":[1,1,0,170,170,170,170,170]},{"a":27304,"l":"data_6AA8","c":"the rest of the third logo block, bytes $6AA8-$6B27: they land at $3B00-$3B7F, columns 24 to 39 of bitmap row 21; the last 64 ($6AE8-$6B27, columns 32 to 39) are zero; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[80,80,0,170,170,170,170,170]},{"a":27312,"t":"byte","b":[5,5,0,130,138,138,138,138]},{"a":27320,"t":"byte","b":[69,69,0,170,170,170,170,170]},{"a":27328,"t":"byte","b":[69,65,0,170,170,170,170,170]},{"a":27336,"t":"byte","b":[81,81,0,130,162,162,162,162]},{"a":27344,"t":"byte","b":[85,85,0,170,170,170,170,170]},{"a":27352,"t":"byte","b":[84,64,0,170,170,170,170,170]},{"a":27360,"t":"byte","b":[85,85,0,160,168,170,170,170]},{"a":27368,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27376,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27384,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27392,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27400,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27408,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27416,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27424,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27432,"l":"logo_row22_right","c":"the fourth block of the logo: init_graphics copies the 192 bytes $6B28-$6BE7 to $3C00-$3CBF ($8D74), columns 16 to 39 of bitmap row 22 ($3B80-$3CBF); $3B80-$3C3F is zeroed first ($8D53), so columns 0 to 15 stay blank; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[240,0,0,0,0,0,0,0],"x":[36212]},{"a":27440,"t":"byte","b":[5,5,5,1,1,0,0,0]},{"a":27448,"t":"byte","b":[85,85,85,85,85,85,85,21]},{"a":27456,"t":"byte","b":[15,3,64,64,80,80,84,84]},{"a":27464,"t":"byte","b":[194,194,192,240,48,0,0,0]},{"a":27472,"t":"byte","b":[170,170,170,170,42,42,10,10]},{"a":27480,"t":"byte","b":[0,128,128,160,160,168,168,170]},{"a":27488,"t":"byte","b":[2,2,2,2,2,2,2,2]},{"a":27496,"l":"data_6B68","c":"the rest of the fourth logo block, bytes $6B68-$6BE7: they land at $3C40-$3CBF, columns 24 to 39 of bitmap row 22; the last 64 ($6BA8-$6BE7, columns 32 to 39) are zero; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[168,168,168,168,168,168,168,168]},{"a":27504,"t":"byte","b":[10,10,10,10,10,10,10,10]},{"a":27512,"t":"byte","b":[170,168,160,160,160,170,170,170]},{"a":27520,"t":"byte","b":[170,42,10,10,10,170,170,170]},{"a":27528,"t":"byte","b":[162,162,162,162,162,162,162,162]},{"a":27536,"t":"byte","b":[170,168,168,168,168,170,170,170]},{"a":27544,"t":"byte","b":[170,2,2,2,2,170,170,170]},{"a":27552,"t":"byte","b":[170,170,170,170,170,170,170,168]},{"a":27560,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27568,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27576,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27584,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27592,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27600,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27608,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27616,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27624,"l":"logo_row23_left","c":"the fifth block of the logo: init_graphics copies the 192 bytes $6BE8-$6CA7 to $3CC0-$3D7F ($8D56), columns 0 to 23 of bitmap row 23 ($3CC0-$3DFF). Its last 64 bytes ($6C68-$6CA7) are also the start of the sixth block, which writes the same values to $3D40-$3D7F, so row 23 is the 320 bytes $6BE8-$6D27 in order; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[0,0,170,170,170,170,170,170],"x":[36182]},{"a":27632,"t":"byte","b":[0,0,170,170,170,170,170,170]},{"a":27640,"t":"byte","b":[0,0,170,170,170,170,170,170]},{"a":27648,"t":"byte","b":[0,0,170,170,170,170,170,170]},{"a":27656,"t":"byte","b":[0,0,170,170,170,170,170,170]},{"a":27664,"t":"byte","b":[0,0,170,170,170,170,170,170]},{"a":27672,"t":"byte","b":[0,0,170,170,170,170,170,170]},{"a":27680,"t":"byte","b":[0,0,170,170,170,170,170,170]},{"a":27688,"t":"gap","n":2},{"a":27690,"l":"data_6C2A","c":"more of the fifth logo block ($6BE8-$6CA7): bytes $6C2A-$6C67 land at $3D02-$3D3F, bitmap row 23 from the third byte of column 8 to the end of column 15; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[170,170,170,170,170,170,0,0]},{"a":27698,"t":"byte","b":[170,170,170,170,170,170,0,0]},{"a":27706,"t":"byte","b":[170,170,170,170,170,170,0,0]},{"a":27714,"t":"byte","b":[170,170,170,170,170,170,0,0]},{"a":27722,"t":"byte","b":[170,170,170,170,170,170,0,0]},{"a":27730,"t":"byte","b":[170,170,170,170,170,170,0,0]},{"a":27738,"t":"byte","b":[170,170,170,170,170,170,0,0]},{"a":27746,"t":"byte","b":[170,170,170,170,170,170]},{"a":27752,"l":"logo_row23_right","c":"the sixth block of the logo: init_graphics copies the 192 bytes $6C68-$6D27 to $3D40-$3DFF ($8D7A), columns 16 to 39 of bitmap row 23; its first 64 bytes are also the end of the fifth block ($6BE8); part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[0,0,170,170,170,170,170,170],"x":[36218]},{"a":27760,"t":"byte","b":[0,0,170,170,170,170,170,170]},{"a":27768,"t":"byte","b":[21,5,165,169,169,170,170,170]},{"a":27776,"t":"byte","b":[85,85,85,85,85,85,85,149]},{"a":27784,"t":"byte","b":[0,0,106,106,90,90,86,86]},{"a":27792,"t":"byte","b":[2,2,170,170,170,170,170,170]},{"a":27800,"t":"byte","b":[170,170,170,170,170,170,170,168]},{"a":27808,"t":"byte","b":[2,130,130,130,130,130,2,2]},{"a":27816,"l":"data_6CA8","c":"the rest of the sixth logo block, bytes $6CA8-$6D27: they land at $3D80-$3DFF, columns 24 to 39 of bitmap row 23; the last 64 ($6CE8-$6D27, columns 32 to 39) are zero; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[168,168,168,168,168,168,168,168]},{"a":27824,"t":"byte","b":[10,10,10,10,10,10,10,10]},{"a":27832,"t":"byte","b":[170,170,170,160,160,160,160,160]},{"a":27840,"t":"byte","b":[170,170,170,10,10,10,10,0]},{"a":27848,"t":"byte","b":[162,162,162,162,162,162,162,0]},{"a":27856,"t":"byte","b":[170,170,170,168,168,168,168,0]},{"a":27864,"t":"byte","b":[170,170,170,42,42,42,42,42]},{"a":27872,"t":"byte","b":[128,128,128,170,170,170,170,170]},{"a":27880,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27888,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27896,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27904,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27912,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27920,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27928,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27936,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":27944,"l":"logo_row24_left","c":"the seventh block of the logo: init_graphics copies the 192 bytes $6D28-$6DE7 to $3E00-$3EBF ($8D5C), columns 0 to 23 of bitmap row 24 ($3E00-$3F3F), the bottom line of the logo. Its last 64 bytes ($6DA8-$6DE7) are also the start of the eighth block, which writes the same values to $3E80-$3EBF, so row 24 is the 320 bytes $6D28-$6E67 in order; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[0,0,0,85,85,85,85,85],"x":[36188]},{"a":27952,"t":"byte","b":[0,0,0,85,85,85,85,85]},{"a":27960,"t":"byte","b":[0,0,0,85,85,85,85,85]},{"a":27968,"t":"byte","b":[0,0,0,85,85,85,85,85]},{"a":27976,"t":"byte","b":[0,0,0,85,85,85,85,85]},{"a":27984,"t":"byte","b":[0,0,0,85,85,85,85,85]},{"a":27992,"t":"byte","b":[0,0,0,85,85,85,85,85]},{"a":28000,"t":"byte","b":[0,0,0,85,85,85,85,85]},{"a":28008,"t":"gap","n":3},{"a":28011,"l":"data_6D6B","c":"more of the seventh logo block ($6D28-$6DE7): bytes $6D6B-$6DA7 land at $3E43-$3E7F, bitmap row 24 from the fourth byte of column 8 to the end of column 15; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":28019,"t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":28027,"t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":28035,"t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":28043,"t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":28051,"t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":28059,"t":"byte","b":[85,85,85,85,85,0,0,0]},{"a":28067,"t":"byte","b":[85,85,85,85,85]},{"a":28072,"l":"logo_row24_right","c":"the eighth block of the logo: init_graphics copies the 192 bytes $6DA8-$6E67 to $3E80-$3F3F ($8D80), columns 16 to 39 of bitmap row 24, ending at the bitmap's last byte; its first 64 bytes are also the end of the seventh block ($6D28); part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[0,0,0,85,85,85,85,85],"x":[36224]},{"a":28080,"t":"byte","b":[0,0,0,85,85,85,85,85]},{"a":28088,"t":"byte","b":[0,0,0,85,85,85,85,85]},{"a":28096,"t":"byte","b":[21,5,5,85,85,85,85,85]},{"a":28104,"t":"byte","b":[84,84,84,84,80,80,64,64]},{"a":28112,"t":"byte","b":[0,21,16,16,16,16,21,21]},{"a":28120,"t":"byte","b":[0,69,68,68,69,69,68,68]},{"a":28128,"t":"byte","b":[0,81,0,0,64,64,0,0]},{"a":28136,"t":"gap","n":1},{"a":28137,"l":"data_6DE9","c":"more of the eighth logo block ($6DA8-$6E67): bytes $6DE9-$6E28 land at $3EC1-$3F00, bitmap row 24 from the second byte of column 24 to the first byte of column 32; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[81,65,65,65,65,65,64,0]},{"a":28145,"t":"byte","b":[1,17,17,17,85,85,68,0]},{"a":28153,"t":"byte","b":[21,16,16,21,21,16,16,0]},{"a":28161,"t":"byte","b":[69,68,68,69,69,68,68,0]},{"a":28169,"t":"byte","b":[81,17,17,81,81,65,81,0]},{"a":28177,"t":"byte","b":[84,0,0,80,0,84,84,10]},{"a":28185,"t":"byte","b":[0,68,68,69,69,68,68,170]},{"a":28193,"t":"byte","b":[0,69,69,68,68,68,69,0]},{"a":28201,"l":"data_6E29","c":"the end of the eighth logo block ($6DA8-$6E67): bytes $6E29-$6E67 land at $3F01-$3F3F, bitmap row 24 from the second byte of column 32 to the end of column 39, the last byte of the bitmap; part of the First Star Software logo the VIC shows on the title screen (see $68E8)","t":"byte","b":[0,0,0,0,0,0,16,0]},{"a":28209,"t":"byte","b":[32,160,130,130,130,160,32,0]},{"a":28217,"t":"byte","b":[0,168,128,128,128,168,0,0]},{"a":28225,"t":"byte","b":[128,162,32,32,32,160,130,0]},{"a":28233,"t":"byte","b":[130,130,130,130,128,128,162,0]},{"a":28241,"t":"byte","b":[162,34,34,162,34,34,162,0]},{"a":28249,"t":"byte","b":[162,34,34,162,32,32,160,0]},{"a":28257,"t":"byte","b":[0,0,32,160,32,32,32]},{"a":28264,"l":"random_byte","c":"returns a pseudo-random byte in A by mixing the low and high bytes of CIA1 timer A and CIA2 timers A and B, which count freely (program_entry starts the CIA2 timers at $8E8D-$8E92), so the value depends on when it is called; called by the amoeba (amoeba_handler, $7368), the boulder push (push_succeeds, $7543), Rockford's blink and foot-tap (build_rockford_frame, $7BC2), sparkle_step ($77EC), the cave's opening reveal (reveal_random_cells, $7AF8) and end-of-cave wipe (scatter_cover, $7A91), and the sounds (diamond_sound $71C0, intro_effects $7B41, sound_update $7D09, magic_wall_tick $7E33)","t":"code","b":[173,4,220],"m":"lda","x":[29139,29145,29610,30019,30712,30721,30730,30739,31424,31491,31581,31756,31767,32073,32318],"o":"cia1_timer_a_lo"},{"a":28267,"t":"code","b":[77,5,220],"m":"eor","o":"cia1_timer_a_hi"},{"a":28270,"t":"code","b":[77,4,221],"m":"eor","o":"cia2_timer_a_lo"},{"a":28273,"t":"code","b":[109,5,221],"m":"adc","o":"cia2_timer_a_hi"},{"a":28276,"t":"code","b":[77,6,221],"m":"eor","o":"cia2_timer_b_lo"},{"a":28279,"t":"code","b":[77,7,221],"m":"eor","o":"cia2_timer_b_hi"},{"a":28282,"t":"code","b":[96],"m":"rts"},{"a":28283,"l":"fill_colour_ram","c":"fills colour RAM $D800-$D827 with colour 9, then fills $D800+Y to $DBFF with the colour in A (page $D8 from offset Y, then the whole pages $D9 to $DB), leaving zpa_46/47 at $DC00; load_cave_data calls it with Y=$28 so the status row keeps colour 9, and build_title_screen with A=9, Y=0","t":"code","b":[72],"m":"pha","x":[33392,35287]},{"a":28284,"t":"code","b":[162,39],"m":"ldx","o":"#$27"},{"a":28286,"t":"code","b":[169,9],"m":"lda","o":"#$09"},{"a":28288,"l":"b_6E80","t":"code","b":[157,0,216],"m":"sta","x":[28292],"o":"colour_ram,x"},{"a":28291,"t":"code","b":[202],"m":"dex"},{"a":28292,"t":"code","b":[16,250],"m":"bpl","oa":28288,"o":"b_6E80"},{"a":28294,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":28296,"t":"code","b":[134,70],"m":"stx","oa":70,"o":"zpa_46"},{"a":28298,"t":"code","b":[162,216],"m":"ldx","o":"#$D8"},{"a":28300,"t":"code","b":[134,71],"m":"stx","oa":71,"o":"zpa_47"},{"a":28302,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":28304,"t":"code","b":[104],"m":"pla"},{"a":28305,"l":"b_6E91","t":"code","b":[145,70],"m":"sta","oa":70,"x":[28308,28313],"o":"(zpa_46),y"},{"a":28307,"t":"code","b":[200],"m":"iny"},{"a":28308,"t":"code","b":[208,251],"m":"bne","oa":28305,"o":"b_6E91"},{"a":28310,"t":"code","b":[230,71],"m":"inc","oa":71,"o":"zpa_47"},{"a":28312,"t":"code","b":[202],"m":"dex"},{"a":28313,"t":"code","b":[16,246],"m":"bpl","oa":28305,"o":"b_6E91"},{"a":28315,"t":"code","b":[96],"m":"rts"},{"a":28316,"l":"save_status_row","c":"copies every second byte of the 40-character status row at $0C00 (the 20 text codes, which draw_status_text writes as the pairs code, code+$34) into the save buffer at $9862-$9875","t":"code","b":[162,0],"m":"ldx","x":[32963,33643],"o":"#$00"},{"a":28318,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":28320,"l":"b_6EA0","t":"code","b":[189,0,12],"m":"lda","oa":3072,"x":[28331],"o":"f_0C00,x"},{"a":28323,"t":"code","b":[153,98,152],"m":"sta","oa":39010,"o":"f_9862,y"},{"a":28326,"t":"code","b":[232],"m":"inx"},{"a":28327,"t":"code","b":[232],"m":"inx"},{"a":28328,"t":"code","b":[200],"m":"iny"},{"a":28329,"t":"code","b":[192,20],"m":"cpy","o":"#$14"},{"a":28331,"t":"code","b":[208,243],"m":"bne","oa":28320,"o":"b_6EA0"},{"a":28333,"t":"code","b":[96],"m":"rts"},{"a":28334,"l":"draw_status_text","c":"draws the 20-code text line at (zpp_46) into the status row at $0C00 as pairs of characters (code, code+$34), turning code $01 into a space; also sets the colour of columns 2-5 and 14-17 to 7 or 1 depending on two of the line's codes","t":"code","b":[162,1],"m":"ldx","x":[29861,32974,33001,33598,33654,33668,33713,33730,35215],"o":"#$01"},{"a":28336,"t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":28338,"t":"code","b":[177,70],"m":"lda","oa":70,"o":"(zpa_46),y"},{"a":28340,"t":"code","b":[201,60],"m":"cmp","o":"#$3C"},{"a":28342,"t":"code","b":[208,2],"m":"bne","oa":28346,"o":"b_6EBA"},{"a":28344,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":28346,"l":"b_6EBA","t":"code","b":[138],"m":"txa","x":[28342]},{"a":28347,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":28349,"l":"b_6EBD","t":"code","b":[157,14,216],"m":"sta","x":[28353],"o":"$D80E,x"},{"a":28352,"t":"code","b":[202],"m":"dex"},{"a":28353,"t":"code","b":[16,250],"m":"bpl","oa":28349,"o":"b_6EBD"},{"a":28355,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":28357,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":28359,"t":"code","b":[177,70],"m":"lda","oa":70,"o":"(zpa_46),y"},{"a":28361,"t":"code","b":[201,25],"m":"cmp","o":"#$19"},{"a":28363,"t":"code","b":[16,2],"m":"bpl","oa":28367,"o":"b_6ECF"},{"a":28365,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":28367,"l":"b_6ECF","t":"code","b":[138],"m":"txa","x":[28363]},{"a":28368,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":28370,"l":"b_6ED2","t":"code","b":[157,2,216],"m":"sta","x":[28374],"o":"$D802,x"},{"a":28373,"t":"code","b":[202],"m":"dex"},{"a":28374,"t":"code","b":[16,250],"m":"bpl","oa":28370,"o":"b_6ED2"},{"a":28376,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":28378,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":28380,"l":"b_6EDC","t":"code","b":[177,70],"m":"lda","oa":70,"x":[28402],"o":"(zpa_46),y"},{"a":28382,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":28384,"t":"code","b":[208,2],"m":"bne","oa":28388,"o":"b_6EE4"},{"a":28386,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":28388,"l":"b_6EE4","t":"code","b":[157,0,12],"m":"sta","oa":3072,"x":[28384],"o":"f_0C00,x"},{"a":28391,"t":"code","b":[232],"m":"inx"},{"a":28392,"t":"code","b":[24],"m":"clc"},{"a":28393,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":28395,"t":"code","b":[157,0,12],"m":"sta","oa":3072,"o":"f_0C00,x"},{"a":28398,"t":"code","b":[232],"m":"inx"},{"a":28399,"t":"code","b":[200],"m":"iny"},{"a":28400,"t":"code","b":[192,20],"m":"cpy","o":"#$14"},{"a":28402,"t":"code","b":[208,232],"m":"bne","oa":28380,"o":"b_6EDC"},{"a":28404,"t":"code","b":[96],"m":"rts"},{"a":28405,"l":"read_joystick_1","c":"returns the four direction bits of joystick port 1 ($DC01) in A, low bits, 0 = pressed","t":"code","b":[173,1,220],"m":"lda","x":[30272,34890,34934,34951],"o":"cia1_port_b"},{"a":28408,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":28410,"t":"code","b":[96],"m":"rts"},{"a":28411,"l":"read_joystick_2","c":"returns the four direction bits of joystick port 2 ($DC00) in A, low bits, 0 = pressed","t":"code","b":[173,0,220],"m":"lda","x":[30267],"o":"cia1_port_a"},{"a":28414,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":28416,"t":"code","b":[96],"m":"rts"},{"a":28417,"l":"read_fire","c":"reads the fire button into zpa_B8 (bit 4, 0 = pressed), from port 2 when the second-joystick flag zpa_A4 and the player flag are both set and otherwise port 1; entered at $6F03 with the mask already in A","t":"code","b":[165,157],"m":"lda","oa":157,"x":[30128,33115],"o":"zpa_9D"},{"a":28419,"l":"read_fire_button","c":"ANDs the value in A, the player number (zpa_9D from read_fire at $6F01; zpa_9D or its opposite from wait_for_fire at $8356), with the second-joystick flag zpa_A4; when the result is non-zero reads port A at $DC00 (joystick port 2), otherwise, or when $DC00 reads zero, port B at $DC01 (port 1); then keeps bit 4, the fire button (0 = pressed), in zpa_B8. $891C and $8CD1 call $6F0C to read port 1 alone","t":"code","b":[37,164],"m":"and","oa":164,"x":[33622],"o":"zpa_A4"},{"a":28421,"t":"code","b":[240,5],"m":"beq","oa":28428,"o":"b_6F0C"},{"a":28423,"t":"code","b":[173,0,220],"m":"lda","o":"cia1_port_a"},{"a":28426,"t":"code","b":[208,3],"m":"bne","oa":28431,"o":"b_6F0F"},{"a":28428,"l":"b_6F0C","t":"code","b":[173,1,220],"m":"lda","x":[28421,35100,36049],"o":"cia1_port_b"},{"a":28431,"l":"b_6F0F","t":"code","b":[41,16],"m":"and","x":[28426],"o":"#$10"},{"a":28433,"t":"code","b":[133,184],"m":"sta","oa":184,"o":"zpa_B8"},{"a":28435,"t":"code","b":[96],"m":"rts"},{"a":28436,"l":"text_title_credit_1","c":"screen codes of the title screen line BY PETER LIEPA, 20 codes in the game's own alphabet (code + $20 is the ASCII letter, $20 is a space, $10-$19 are the digits)","t":"byte","b":[32,32,34,57,32,48,37,52],"x":[34304]},{"a":28444,"t":"byte","b":[37,50,32,44,41,37,48,33]},{"a":28452,"t":"byte","b":[32,32,32,32]},{"a":28456,"l":"text_title_credit_2","c":"screen codes of the line WITH CHRIS GREY","t":"byte","b":[32,32,55,41,52,40,32,35],"x":[34327]},{"a":28464,"t":"byte","b":[40,50,41,51,32,39,50,37]},{"a":28472,"t":"byte","b":[57,32,32,32]},{"a":28476,"l":"text_players_joystick","c":"screen codes of the menu line 1 PLAYER 1 JOYSTICK; the digits are rewritten by the F3 key","t":"byte","b":[17,32,48,44,33,57,37,50],"x":[34468]},{"a":28484,"t":"byte","b":[32,32,17,32,42,47,57,51]},{"a":28492,"t":"byte","b":[52,41,35,43]},{"a":28496,"l":"text_player_labels","c":"screen codes of the line PLYR 1 ... PLYR 2 used for the two-player score line","t":"byte","b":[32,48,44,57,50,32,17,32],"x":[34376]},{"a":28504,"t":"byte","b":[32,32,32,32,32,48,44,57]},{"a":28512,"t":"byte","b":[50,32,18,32]},{"a":28516,"l":"text_score_last","c":"screen codes of the line 000000 LAST 000000","t":"byte","b":[32,16,16,16,16,16,16,32],"x":[36087]},{"a":28524,"t":"byte","b":[44,33,51,52,32,16,16,16]},{"a":28532,"t":"byte","b":[16,16,16,32]},{"a":28536,"l":"text_score_high","c":"screen codes of the line 000000 HIGH 000000 followed by G A M E / O V E R (spaced capitals)","t":"byte","b":[32,16,16,16,16,16,16,32],"x":[36093]},{"a":28544,"t":"byte","b":[40,41,39,40,32,16,16,16]},{"a":28552,"t":"byte","b":[16,16,16,32,32,39,32,33]},{"a":28560,"t":"byte","b":[32,45,32,37,32,32,32,47]},{"a":28568,"t":"byte","b":[32,54,32,37,32,50,32,32]},{"a":28576,"l":"text_status_template","c":"screen codes of the in-game status line PLAYER 1, 3 MEN A/0 (player, men, cave and level; code $0D draws a comma, as $0C does), then the OUT OF TIME ($6FB4) and BONUS LIFE ($6FC8) messages","t":"byte","b":[48,44,33,57,37,50,32,17],"x":[36563]},{"a":28584,"t":"byte","b":[13,32,19,32,45,37,46,32]},{"a":28592,"t":"byte","b":[33,15,16,32,32,32,32,32]},{"a":28600,"t":"byte","b":[47,53,52,32,47,38,32,52]},{"a":28608,"t":"byte","b":[41,45,37,32,32,32,32,32]},{"a":28616,"t":"byte","b":[32,34,32,47,32,46,32,53]},{"a":28624,"t":"byte","b":[32,51,32,32,44,32,41,32]},{"a":28632,"t":"byte","b":[38,32,37,32]},{"a":28636,"l":"text_cave_level","c":"screen codes of the menu line CAVE: A LEVEL: 1","t":"byte","b":[32,35,33,54,37,26,32,33],"x":[34445]},{"a":28644,"t":"byte","b":[32,32,44,37,54,37,44,26]},{"a":28652,"t":"byte","b":[32,17,32,32]},{"a":28656,"l":"text_spacebar_resume","c":"screen codes SPACEBAR TO RESUME shown while the game is paused","t":"byte","b":[32,51,48,33,35,37,34,33]},{"a":28664,"t":"byte","b":[50,32,52,47,32,50,37,51]},{"a":28672,"t":"byte","b":[53,45,37,32]},{"a":28676,"l":"text_press_button","c":"screen codes PRESS BUTTON TO PLAY","t":"byte","b":[48,50,37,51,51,32,34,53],"x":[34350]},{"a":28684,"t":"byte","b":[52,52,47,46,32,52,47,32]},{"a":28692,"t":"byte","b":[48,44,33,57]},{"a":28696,"l":"draw_tile","c":"draws the 2x2 character tile of the object in zpa_8A (loaded into X at $7018; X on entry is not used) at (zpp_36): the first character is object_tile_table[object], then +1 beside it, and +$10, +$11 on the next character row (offset $50); the 40-tile cave is drawn as 80 characters wide","t":"code","b":[166,138],"m":"ldx","oa":138,"x":[28777,28799],"o":"zpa_8A"},{"a":28698,"t":"code","b":[189,40,95],"m":"lda","oa":24360,"o":"object_tile_table,x"},{"a":28701,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":28703,"t":"code","b":[145,54],"m":"sta","oa":54,"o":"(zpp_36),y"},{"a":28705,"t":"code","b":[24],"m":"clc"},{"a":28706,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":28708,"t":"code","b":[200],"m":"iny"},{"a":28709,"t":"code","b":[145,54],"m":"sta","oa":54,"o":"(zpp_36),y"},{"a":28711,"t":"code","b":[105,15],"m":"adc","o":"#$0F"},{"a":28713,"t":"code","b":[160,80],"m":"ldy","o":"#$50"},{"a":28715,"t":"code","b":[145,54],"m":"sta","oa":54,"o":"(zpp_36),y"},{"a":28717,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":28719,"t":"code","b":[200],"m":"iny"},{"a":28720,"t":"code","b":[145,54],"m":"sta","oa":54,"o":"(zpp_36),y"},{"a":28722,"t":"code","b":[96],"m":"rts"},{"a":28723,"l":"locate_neighbour_tile","c":"finds the 3-byte entry at $53B0 whose first byte equals Y (the map-neighbour offset) and adds its 16-bit screen offset to the base in zpa_34/35, leaving the tile's character address in zpp_36","t":"code","b":[162,253],"m":"ldx","x":[28774,30421],"o":"#$FD"},{"a":28725,"t":"code","b":[152],"m":"tya"},{"a":28726,"l":"b_7036","t":"code","b":[232],"m":"inx","x":[28732]},{"a":28727,"t":"code","b":[232],"m":"inx"},{"a":28728,"t":"code","b":[232],"m":"inx"},{"a":28729,"t":"code","b":[221,176,83],"m":"cmp","oa":21424,"o":"window_cell_offsets,x"},{"a":28732,"t":"code","b":[208,248],"m":"bne","oa":28726,"o":"b_7036"},{"a":28734,"t":"code","b":[24],"m":"clc"},{"a":28735,"t":"code","b":[165,52],"m":"lda","oa":52,"o":"zpa_34"},{"a":28737,"t":"code","b":[125,177,83],"m":"adc","oa":21425,"o":"window_offset_low,x"},{"a":28740,"t":"code","b":[133,54],"m":"sta","oa":54,"o":"zpp_36"},{"a":28742,"t":"code","b":[165,53],"m":"lda","oa":53,"o":"zpa_35"},{"a":28744,"t":"code","b":[125,178,83],"m":"adc","oa":21426,"o":"window_offset_high,x"},{"a":28747,"t":"code","b":[133,55],"m":"sta","oa":55,"o":"zpa_37"},{"a":28749,"t":"code","b":[96],"m":"rts"},{"a":28750,"l":"set_object","c":"stores the object code in A at the map cell (zpp_32),Y and draws its 2x2 tile at the matching place in the 80-character-wide scroll buffer (base from the row zpa_92 and column zpa_91, neighbour offset from Y); returns A unchanged","t":"code","b":[133,138],"m":"sta","oa":138,"x":[28854,28916,29079,29099,29290,29310,29335,29349,29379,29414,29434,29479,29511,29531,29556,29568,29643,30033,30135,30145,30152,30338,30371,30440,30464,30496,30516,30529,30541,30571,30578,30610,30630,31524,31656],"o":"zpa_8A"},{"a":28752,"t":"code","b":[145,50],"m":"sta","oa":50,"o":"(zpp_32),y"},{"a":28754,"t":"code","b":[165,146],"m":"lda","oa":146,"o":"zpa_92"},{"a":28756,"t":"code","b":[10],"m":"asl","o":"a"},{"a":28757,"t":"code","b":[170],"m":"tax"},{"a":28758,"t":"code","b":[165,145],"m":"lda","oa":145,"o":"zpa_91"},{"a":28760,"t":"code","b":[10],"m":"asl","o":"a"},{"a":28761,"t":"code","b":[24],"m":"clc"},{"a":28762,"t":"code","b":[125,218,83],"m":"adc","oa":21466,"o":"scroll_row_low,x"},{"a":28765,"t":"code","b":[133,52],"m":"sta","oa":52,"o":"zpa_34"},{"a":28767,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":28769,"t":"code","b":[125,219,83],"m":"adc","oa":21467,"o":"scroll_row_table,x"},{"a":28772,"t":"code","b":[133,53],"m":"sta","oa":53,"o":"zpa_35"},{"a":28774,"t":"code","b":[32,51,112],"m":"jsr","oa":28723,"o":"locate_neighbour_tile"},{"a":28777,"t":"code","b":[32,24,112],"m":"jsr","oa":28696,"o":"draw_tile"},{"a":28780,"t":"code","b":[165,138],"m":"lda","oa":138,"o":"zpa_8A"},{"a":28782,"t":"code","b":[96],"m":"rts"},{"a":28783,"l":"clear_cell_and_redraw","c":"writes object 0 (space) into the cell at (zpp_32),Y=$29 and redraws it, then continues at the end-of-object handler $81AD","t":"code","b":[169,0],"m":"lda","x":[29082,29102,29293,29313,29352,29385,29417,29437,29485,29514,29534,30470,30499,30519,30544,30613,30633],"o":"#$00"},{"a":28785,"t":"code","b":[133,138],"m":"sta","oa":138,"o":"zpa_8A"},{"a":28787,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":28789,"t":"code","b":[145,50],"m":"sta","oa":50,"o":"(zpp_32),y"},{"a":28791,"t":"code","b":[165,52],"m":"lda","oa":52,"o":"zpa_34"},{"a":28793,"t":"code","b":[133,54],"m":"sta","oa":54,"o":"zpp_36"},{"a":28795,"t":"code","b":[165,53],"m":"lda","oa":53,"o":"zpa_35"},{"a":28797,"t":"code","b":[133,55],"m":"sta","oa":55,"o":"zpa_37"},{"a":28799,"t":"code","b":[32,24,112],"m":"jsr","oa":28696,"o":"draw_tile"},{"a":28802,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":28805,"l":"cave_random_step","c":"one step of the 16-bit random generator in zpa_3E/3F that scatters objects when a cave is first built (build_cave_cell, $8029): zpa_3E gains its own bit 0 as bit 7 and $13, and zpa_3F gains its own bit 0 as bit 7 and the old zpa_3E halved, each addition taking the carry of the one before; returns the new zpa_3F in A","t":"code","b":[165,63],"m":"lda","oa":63,"x":[32811],"o":"zpa_3F"},{"a":28807,"t":"code","b":[106],"m":"ror","o":"a"},{"a":28808,"t":"code","b":[106],"m":"ror","o":"a"},{"a":28809,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":28811,"t":"code","b":[141,4,152],"m":"sta","oa":38916,"o":"a_9804"},{"a":28814,"t":"code","b":[165,62],"m":"lda","oa":62,"o":"zpa_3E"},{"a":28816,"t":"code","b":[106],"m":"ror","o":"a"},{"a":28817,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":28819,"t":"code","b":[141,5,152],"m":"sta","oa":38917,"o":"a_9805"},{"a":28822,"t":"code","b":[165,62],"m":"lda","oa":62,"o":"zpa_3E"},{"a":28824,"t":"code","b":[106],"m":"ror","o":"a"},{"a":28825,"t":"code","b":[106],"m":"ror","o":"a"},{"a":28826,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":28828,"t":"code","b":[24],"m":"clc"},{"a":28829,"t":"code","b":[101,62],"m":"adc","oa":62,"o":"zpa_3E"},{"a":28831,"t":"code","b":[105,19],"m":"adc","o":"#$13"},{"a":28833,"t":"code","b":[133,62],"m":"sta","oa":62,"o":"zpa_3E"},{"a":28835,"t":"code","b":[165,63],"m":"lda","oa":63,"o":"zpa_3F"},{"a":28837,"t":"code","b":[109,4,152],"m":"adc","oa":38916,"o":"a_9804"},{"a":28840,"t":"code","b":[109,5,152],"m":"adc","oa":38917,"o":"a_9805"},{"a":28843,"t":"code","b":[133,63],"m":"sta","oa":63,"o":"zpa_3F"},{"a":28845,"t":"code","b":[96],"m":"rts"},{"a":28846,"l":"explode_neighbour","c":"if the neighbouring cell at (zpp_32),Y is not steel wall (object 7) stores the explosion object from zpa_89 there","t":"code","b":[177,50],"m":"lda","oa":50,"x":[28860,28865,28872,28877,28882,28887,28892,28897,28902,28924,28929,28934,28939,28944,28951,28956,28961,28966],"o":"(zpp_32),y"},{"a":28848,"t":"code","b":[201,7],"m":"cmp","o":"#$07"},{"a":28850,"t":"code","b":[240,5],"m":"beq","oa":28857,"o":"r_70B9"},{"a":28852,"t":"code","b":[165,137],"m":"lda","oa":137,"o":"zpa_89"},{"a":28854,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":28857,"l":"r_70B9","t":"code","b":[96],"m":"rts","x":[28850]},{"a":28858,"l":"explode_cell_below","c":"turns the 3x3 block of map cells centred on the cell below the current one into explosion objects (zpa_89, one less after the middle cell of the current row, because later cells of the pass will be stepped once more in the same pass), skipping steel wall; then plays the explosion sound; used when a falling rock or diamond lands on a creature or on Rockford","t":"code","b":[160,40],"m":"ldy","x":[29451,29462,30650,30661],"o":"#$28"},{"a":28860,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28863,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":28865,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28868,"t":"code","b":[198,137],"m":"dec","oa":137,"o":"zpa_89"},{"a":28870,"t":"code","b":[160,42],"m":"ldy","o":"#$2A"},{"a":28872,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28875,"t":"code","b":[160,80],"m":"ldy","o":"#$50"},{"a":28877,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28880,"t":"code","b":[160,81],"m":"ldy","o":"#$51"},{"a":28882,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28885,"t":"code","b":[160,82],"m":"ldy","o":"#$52"},{"a":28887,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28890,"t":"code","b":[160,120],"m":"ldy","o":"#$78"},{"a":28892,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28895,"t":"code","b":[160,121],"m":"ldy","o":"#$79"},{"a":28897,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28900,"t":"code","b":[160,122],"m":"ldy","o":"#$7A"},{"a":28902,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28905,"t":"code","b":[76,41,113],"m":"jmp","oa":28969,"o":"explosion_sound"},{"a":28908,"l":"exit_handler","c":"handler for object $04, the closed exit, which looks like steel wall; once the quota flag zpa_90 is set it replaces the exit with object $05, the open flashing exit","t":"code","b":[165,144],"m":"lda","oa":144,"o":"zpa_90"},{"a":28910,"t":"code","b":[240,7],"m":"beq","oa":28919,"o":"b_70F7"},{"a":28912,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":28914,"t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":28916,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":28919,"l":"b_70F7","t":"code","b":[76,173,129],"m":"jmp","oa":33197,"x":[28910],"o":"end_of_object"},{"a":28922,"l":"explode_cell_here","c":"turns the 3x3 block of map cells centred on the current cell into explosion objects (zpa_89 for the cells before the centre in scan order and for the centre, one less after it), skipping steel wall; falls into the explosion sound at $7129","t":"code","b":[160,0],"m":"ldy","x":[29051,29262],"o":"#$00"},{"a":28924,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28927,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":28929,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28932,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":28934,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28937,"t":"code","b":[160,40],"m":"ldy","o":"#$28"},{"a":28939,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28942,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":28944,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28947,"t":"code","b":[198,137],"m":"dec","oa":137,"o":"zpa_89"},{"a":28949,"t":"code","b":[160,42],"m":"ldy","o":"#$2A"},{"a":28951,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28954,"t":"code","b":[160,80],"m":"ldy","o":"#$50"},{"a":28956,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28959,"t":"code","b":[160,81],"m":"ldy","o":"#$51"},{"a":28961,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28964,"t":"code","b":[160,82],"m":"ldy","o":"#$52"},{"a":28966,"t":"code","b":[32,174,112],"m":"jsr","oa":28846,"o":"explode_neighbour"},{"a":28969,"l":"explosion_sound","c":"sets the sound lockout a_9811 to $50, silences voice 2 and loads the seven SID voice 2 registers from the table at $713D, a noise burst","t":"code","b":[169,80],"m":"lda","x":[28905],"o":"#$50"},{"a":28971,"t":"code","b":[141,17,152],"m":"sta","oa":38929,"o":"a_9811"},{"a":28974,"t":"code","b":[32,123,128],"m":"jsr","oa":32891,"o":"silence_voice_2"},{"a":28977,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":28979,"l":"b_7133","t":"code","b":[189,61,113],"m":"lda","oa":28989,"x":[28986],"o":"sid_explosion_regs,x"},{"a":28982,"t":"code","b":[157,7,212],"m":"sta","o":"sid_v2_freq_lo,x"},{"a":28985,"t":"code","b":[202],"m":"dex"},{"a":28986,"t":"code","b":[16,247],"m":"bpl","oa":28979,"o":"b_7133"},{"a":28988,"t":"code","b":[96],"m":"rts"},{"a":28989,"l":"sid_explosion_regs","c":"SID voice 2 settings for the explosion: frequency $1432, pulse width $000F, control $81 (noise, gate on), attack/decay $1B, sustain/release $00","t":"byte","b":[50,20,15,0,129,27,0],"x":[28979]},{"a":28996,"l":"dir_cell_offsets","c":"offsets from the map pointer of the neighbour cell in each of four directions, 0 = left, 1 = up, 2 = right, 3 = down; the pointer sits at the top-left of the 3x3 block, so the current cell is at offset $29","t":"byte","b":[40,1,42,81],"x":[29085,29096,29275]},{"a":29000,"l":"dir_left_turn_offsets","c":"offsets of the neighbour cell one turn anticlockwise (to the left of the way it faces) from each of the four directions","t":"byte","b":[81,40,1,42],"x":[29064,29296,29307]},{"a":29004,"l":"is_rockford_or_amoeba","c":"leaves X unchanged unless the cell at (zpp_32),Y holds object $38-$3A, that is Rockford ($38, or $39 once moved this pass) or the amoeba ($3A, amoeba_handler $7368), then sets X to 0","t":"code","b":[177,50],"m":"lda","oa":50,"x":[29021,29026,29031,29036],"o":"(zpp_32),y"},{"a":29006,"t":"code","b":[201,56],"m":"cmp","o":"#$38"},{"a":29008,"t":"code","b":[144,6],"m":"bcc","oa":29016,"o":"r_7158"},{"a":29010,"t":"code","b":[201,59],"m":"cmp","o":"#$3B"},{"a":29012,"t":"code","b":[176,2],"m":"bcs","oa":29016,"o":"r_7158"},{"a":29014,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":29016,"l":"r_7158","t":"code","b":[96],"m":"rts","x":[29008,29012]},{"a":29017,"l":"rockford_or_amoeba_adjacent","c":"tests the four neighbouring cells (offsets $01, $28, $2A, $51) with is_rockford_or_amoeba and returns with Z set (X=0) if one holds an object $38-$3A, Rockford or the amoeba","t":"code","b":[162,1],"m":"ldx","x":[29042,29253],"o":"#$01"},{"a":29019,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":29021,"t":"code","b":[32,76,113],"m":"jsr","oa":29004,"o":"is_rockford_or_amoeba"},{"a":29024,"t":"code","b":[160,40],"m":"ldy","o":"#$28"},{"a":29026,"t":"code","b":[32,76,113],"m":"jsr","oa":29004,"o":"is_rockford_or_amoeba"},{"a":29029,"t":"code","b":[160,42],"m":"ldy","o":"#$2A"},{"a":29031,"t":"code","b":[32,76,113],"m":"jsr","oa":29004,"o":"is_rockford_or_amoeba"},{"a":29034,"t":"code","b":[160,81],"m":"ldy","o":"#$51"},{"a":29036,"t":"code","b":[32,76,113],"m":"jsr","oa":29004,"o":"is_rockford_or_amoeba"},{"a":29039,"t":"code","b":[224,0],"m":"cpx","o":"#$00"},{"a":29041,"t":"code","b":[96],"m":"rts"},{"a":29042,"l":"firefly_handler","c":"handler for objects $08-$0B, a firefly facing left, up, right or down; explodes (object $1C, and $1B in the cells the pass has yet to reach) when Rockford or the amoeba is in a neighbouring cell (rockford_or_amoeba_adjacent, $7159), otherwise moves into the empty cell on its left-hand side and turns that way, else moves straight on, else turns clockwise in place; the cell it enters gets the matching object $0C-$0F, which the end-of-object remap turns back to $08-$0B","t":"code","b":[32,89,113],"m":"jsr","oa":29017,"o":"rockford_or_amoeba_adjacent"},{"a":29045,"t":"code","b":[208,10],"m":"bne","oa":29057,"o":"b_7181"},{"a":29047,"t":"code","b":[169,28],"m":"lda","o":"#$1C"},{"a":29049,"t":"code","b":[133,137],"m":"sta","oa":137,"o":"zpa_89"},{"a":29051,"t":"code","b":[32,250,112],"m":"jsr","oa":28922,"o":"explode_cell_here"},{"a":29054,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":29057,"l":"b_7181","t":"code","b":[160,41],"m":"ldy","x":[29045],"o":"#$29"},{"a":29059,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29061,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":29063,"t":"code","b":[170],"m":"tax"},{"a":29064,"t":"code","b":[188,72,113],"m":"ldy","oa":29000,"o":"dir_left_turn_offsets,x"},{"a":29067,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29069,"t":"code","b":[208,14],"m":"bne","oa":29085,"o":"b_719D"},{"a":29071,"t":"code","b":[24],"m":"clc"},{"a":29072,"t":"code","b":[138],"m":"txa"},{"a":29073,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":29075,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":29077,"t":"code","b":[105,12],"m":"adc","o":"#$0C"},{"a":29079,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29082,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":29085,"l":"b_719D","t":"code","b":[188,68,113],"m":"ldy","oa":28996,"x":[29069],"o":"dir_cell_offsets,x"},{"a":29088,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29090,"t":"code","b":[208,13],"m":"bne","oa":29105,"o":"b_71B1"},{"a":29092,"t":"code","b":[24],"m":"clc"},{"a":29093,"t":"code","b":[138],"m":"txa"},{"a":29094,"t":"code","b":[105,12],"m":"adc","o":"#$0C"},{"a":29096,"t":"code","b":[188,68,113],"m":"ldy","oa":28996,"o":"dir_cell_offsets,x"},{"a":29099,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29102,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":29105,"l":"b_71B1","t":"code","b":[24],"m":"clc","x":[29090]},{"a":29106,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":29108,"t":"code","b":[138],"m":"txa"},{"a":29109,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":29111,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":29113,"t":"code","b":[105,12],"m":"adc","o":"#$0C"},{"a":29115,"t":"code","b":[145,50],"m":"sta","oa":50,"o":"(zpp_32),y"},{"a":29117,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":29120,"l":"diamond_sound","c":"counts a sound request in a_980D and builds a diamond note for voice 1 in the buffer at $987D: a random pitch (low byte random, high byte $86 to $BE), the four bytes at diamond_sound_data and sustain/release $A0; played when a diamond starts to fall ($732A), when a falling diamond meets something below it ($72CC) and when a falling boulder goes into the magic wall ($7775)","t":"code","b":[238,13,152],"m":"inc","oa":38925,"x":[29388,29482,30581],"o":"a_980D"},{"a":29123,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":29125,"l":"b_71C5","t":"code","b":[189,36,117],"m":"lda","oa":29988,"x":[29132],"o":"diamond_sound_data,x"},{"a":29128,"t":"code","b":[157,127,152],"m":"sta","oa":39039,"o":"f_987F,x"},{"a":29131,"t":"code","b":[202],"m":"dex"},{"a":29132,"t":"code","b":[16,247],"m":"bpl","oa":29125,"o":"b_71C5"},{"a":29134,"t":"code","b":[169,160],"m":"lda","o":"#$A0"},{"a":29136,"t":"code","b":[141,131,152],"m":"sta","oa":39043,"o":"a_9883"},{"a":29139,"t":"code","b":[32,104,110],"m":"jsr","oa":28264,"o":"random_byte"},{"a":29142,"t":"code","b":[141,125,152],"m":"sta","oa":39037,"o":"a_987D"},{"a":29145,"t":"code","b":[32,104,110],"m":"jsr","oa":28264,"o":"random_byte"},{"a":29148,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":29150,"t":"code","b":[10],"m":"asl","o":"a"},{"a":29151,"t":"code","b":[10],"m":"asl","o":"a"},{"a":29152,"t":"code","b":[10],"m":"asl","o":"a"},{"a":29153,"t":"code","b":[105,134],"m":"adc","o":"#$86"},{"a":29155,"t":"code","b":[141,126,152],"m":"sta","oa":39038,"o":"a_987E"},{"a":29158,"t":"code","b":[96],"m":"rts"},{"a":29159,"l":"sid_thud_regs","c":"voice 1 register values for the rock thud: noise, frequency $0932, pulse width $0007, control $81, attack/decay $00, sustain/release $F0","t":"byte","b":[50,9,7,0,129,0,240],"x":[29171]},{"a":29166,"l":"play_thud_sound","c":"counts a sound request in a_980D and copies the seven thud register values from sid_thud_regs into the voice 1 buffer at $987D","t":"code","b":[238,13,152],"m":"inc","oa":38925,"x":[29382,30028,30467,30584],"o":"a_980D"},{"a":29169,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":29171,"l":"b_71F3","t":"code","b":[189,231,113],"m":"lda","oa":29159,"x":[29178],"o":"sid_thud_regs,x"},{"a":29174,"t":"code","b":[157,125,152],"m":"sta","oa":39037,"o":"a_987D,x"},{"a":29177,"t":"code","b":[202],"m":"dex"},{"a":29178,"t":"code","b":[16,247],"m":"bpl","oa":29171,"o":"b_71F3"},{"a":29180,"t":"code","b":[96],"m":"rts"},{"a":29181,"l":"can_roll_off","c":"returns X=1 when the object in A is a boulder ($10), a diamond ($14) or a brick wall ($02), the things a rock can roll off sideways, and X=0 for anything else; it ends with CPX #$01 ($7211), so Z is set when X=1 and clear when X=0, and its callers ($72D6, $7337, $7710, $7782) branch with BNE past the roll when X=0","t":"code","b":[162,0],"m":"ldx","x":[29395,29492,30477,30591],"o":"#$00"},{"a":29183,"t":"code","b":[201,16],"m":"cmp","o":"#$10"},{"a":29185,"t":"code","b":[208,2],"m":"bne","oa":29189,"o":"b_7205"},{"a":29187,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":29189,"l":"b_7205","t":"code","b":[201,20],"m":"cmp","x":[29185],"o":"#$14"},{"a":29191,"t":"code","b":[208,2],"m":"bne","oa":29195,"o":"b_720B"},{"a":29193,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":29195,"l":"b_720B","t":"code","b":[201,2],"m":"cmp","x":[29191],"o":"#$02"},{"a":29197,"t":"code","b":[208,2],"m":"bne","oa":29201,"o":"b_7211"},{"a":29199,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":29201,"l":"b_7211","t":"code","b":[224,1],"m":"cpx","x":[29197],"o":"#$01"},{"a":29203,"t":"code","b":[96],"m":"rts"},{"a":29204,"l":"is_creature","c":"sets Z and puts the explosion start code in zpa_89 when the cell at (zpp_32),Y holds an unmoved firefly ($08-$0B, code $1C) or butterfly ($30-$33, code $21); otherwise Z is clear","t":"code","b":[162,1],"m":"ldx","x":[29457,30656],"o":"#$01"},{"a":29206,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29208,"t":"code","b":[41,51],"m":"and","o":"#$33"},{"a":29210,"t":"code","b":[209,50],"m":"cmp","oa":50,"o":"(zpp_32),y"},{"a":29212,"t":"code","b":[208,12],"m":"bne","oa":29226,"o":"b_722A"},{"a":29214,"t":"code","b":[9,48],"m":"ora","o":"#$30"},{"a":29216,"t":"code","b":[209,50],"m":"cmp","oa":50,"o":"(zpp_32),y"},{"a":29218,"t":"code","b":[208,6],"m":"bne","oa":29226,"o":"b_722A"},{"a":29220,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":29222,"t":"code","b":[169,33],"m":"lda","o":"#$21"},{"a":29224,"t":"code","b":[133,137],"m":"sta","oa":137,"o":"zpa_89"},{"a":29226,"l":"b_722A","t":"code","b":[224,0],"m":"cpx","x":[29212,29218],"o":"#$00"},{"a":29228,"t":"code","b":[240,20],"m":"beq","oa":29250,"o":"b_7242"},{"a":29230,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":29232,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29234,"t":"code","b":[41,11],"m":"and","o":"#$0B"},{"a":29236,"t":"code","b":[209,50],"m":"cmp","oa":50,"o":"(zpp_32),y"},{"a":29238,"t":"code","b":[208,10],"m":"bne","oa":29250,"o":"b_7242"},{"a":29240,"t":"code","b":[41,8],"m":"and","o":"#$08"},{"a":29242,"t":"code","b":[240,6],"m":"beq","oa":29250,"o":"b_7242"},{"a":29244,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":29246,"t":"code","b":[169,28],"m":"lda","o":"#$1C"},{"a":29248,"t":"code","b":[133,137],"m":"sta","oa":137,"o":"zpa_89"},{"a":29250,"l":"b_7242","t":"code","b":[224,0],"m":"cpx","x":[29228,29238,29242],"o":"#$00"},{"a":29252,"t":"code","b":[96],"m":"rts"},{"a":29253,"l":"butterfly_handler","c":"handler for objects $30-$33, a butterfly; explodes into diamonds (code $21, and $20 in the cells the pass has yet to reach) when Rockford or the amoeba is in a neighbouring cell, otherwise moves into the neighbour cell in its direction if that is empty and turns clockwise, else sidesteps into the cell one turn anticlockwise keeping its direction, else turns anticlockwise in place ($7288 adds 3 to the direction); the cell it enters gets the moved object $34-$37","t":"code","b":[32,89,113],"m":"jsr","oa":29017,"o":"rockford_or_amoeba_adjacent"},{"a":29256,"t":"code","b":[208,10],"m":"bne","oa":29268,"o":"b_7254"},{"a":29258,"t":"code","b":[169,33],"m":"lda","o":"#$21"},{"a":29260,"t":"code","b":[133,137],"m":"sta","oa":137,"o":"zpa_89"},{"a":29262,"t":"code","b":[32,250,112],"m":"jsr","oa":28922,"o":"explode_cell_here"},{"a":29265,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":29268,"l":"b_7254","t":"code","b":[160,41],"m":"ldy","x":[29256],"o":"#$29"},{"a":29270,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29272,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":29274,"t":"code","b":[170],"m":"tax"},{"a":29275,"t":"code","b":[188,68,113],"m":"ldy","oa":28996,"o":"dir_cell_offsets,x"},{"a":29278,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29280,"t":"code","b":[208,14],"m":"bne","oa":29296,"o":"b_7270"},{"a":29282,"t":"code","b":[24],"m":"clc"},{"a":29283,"t":"code","b":[138],"m":"txa"},{"a":29284,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":29286,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":29288,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":29290,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29293,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":29296,"l":"b_7270","t":"code","b":[188,72,113],"m":"ldy","oa":29000,"x":[29280],"o":"dir_left_turn_offsets,x"},{"a":29299,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29301,"t":"code","b":[208,13],"m":"bne","oa":29316,"o":"b_7284"},{"a":29303,"t":"code","b":[24],"m":"clc"},{"a":29304,"t":"code","b":[138],"m":"txa"},{"a":29305,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":29307,"t":"code","b":[188,72,113],"m":"ldy","oa":29000,"o":"dir_left_turn_offsets,x"},{"a":29310,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29313,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":29316,"l":"b_7284","t":"code","b":[24],"m":"clc","x":[29301]},{"a":29317,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":29319,"t":"code","b":[138],"m":"txa"},{"a":29320,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":29322,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":29324,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":29326,"t":"code","b":[145,50],"m":"sta","oa":50,"o":"(zpp_32),y"},{"a":29328,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":29331,"l":"diamond_lands","c":"stores object $15, a diamond at rest that has been handled this pass, in the current cell and ends the handler","t":"code","b":[160,41],"m":"ldy","x":[29440,29468],"o":"#$29"},{"a":29333,"t":"code","b":[169,21],"m":"lda","o":"#$15"},{"a":29335,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29338,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":29341,"l":"falling_diamond_handler","c":"handler for object $16, a falling diamond; moves down as $17 while the cell below is empty; on the magic wall (object 3, active) it comes out two cells lower as a falling boulder ($13); lands on Rockford or a creature as an explosion centred below; otherwise rolls off a boulder, diamond or brick wall into an empty side cell whose cell below is empty too, or stays as $15","t":"code","b":[160,81],"m":"ldy","o":"#$51"},{"a":29343,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29345,"t":"code","b":[208,8],"m":"bne","oa":29355,"o":"b_72AB"},{"a":29347,"t":"code","b":[169,23],"m":"lda","o":"#$17"},{"a":29349,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29352,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":29355,"l":"b_72AB","t":"code","b":[201,3],"m":"cmp","x":[29345],"o":"#$03"},{"a":29357,"t":"code","b":[208,29],"m":"bne","oa":29388,"o":"b_72CC"},{"a":29359,"t":"code","b":[165,141],"m":"lda","oa":141,"o":"zpa_8D"},{"a":29361,"t":"code","b":[208,4],"m":"bne","oa":29367,"o":"b_72B7"},{"a":29363,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":29365,"t":"code","b":[133,141],"m":"sta","oa":141,"o":"zpa_8D"},{"a":29367,"l":"b_72B7","t":"code","b":[201,1],"m":"cmp","x":[29361],"o":"#$01"},{"a":29369,"t":"code","b":[208,11],"m":"bne","oa":29382,"o":"b_72C6"},{"a":29371,"t":"code","b":[160,121],"m":"ldy","o":"#$79"},{"a":29373,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29375,"t":"code","b":[208,5],"m":"bne","oa":29382,"o":"b_72C6"},{"a":29377,"t":"code","b":[169,19],"m":"lda","o":"#$13"},{"a":29379,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29382,"l":"b_72C6","t":"code","b":[32,238,113],"m":"jsr","oa":29166,"x":[29369,29375],"o":"play_thud_sound"},{"a":29385,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":29388,"l":"b_72CC","t":"code","b":[32,192,113],"m":"jsr","oa":29120,"x":[29357],"o":"diamond_sound"},{"a":29391,"t":"code","b":[160,81],"m":"ldy","o":"#$51"},{"a":29393,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29395,"t":"code","b":[32,253,113],"m":"jsr","oa":29181,"o":"can_roll_off"},{"a":29398,"t":"code","b":[208,43],"m":"bne","oa":29443,"o":"b_7303"},{"a":29400,"t":"code","b":[160,80],"m":"ldy","o":"#$50"},{"a":29402,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29404,"t":"code","b":[208,14],"m":"bne","oa":29420,"o":"b_72EC"},{"a":29406,"t":"code","b":[160,40],"m":"ldy","o":"#$28"},{"a":29408,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29410,"t":"code","b":[208,8],"m":"bne","oa":29420,"o":"b_72EC"},{"a":29412,"t":"code","b":[169,23],"m":"lda","o":"#$17"},{"a":29414,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29417,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":29420,"l":"b_72EC","t":"code","b":[160,82],"m":"ldy","x":[29404,29410],"o":"#$52"},{"a":29422,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29424,"t":"code","b":[208,14],"m":"bne","oa":29440,"o":"b_7300"},{"a":29426,"t":"code","b":[160,42],"m":"ldy","o":"#$2A"},{"a":29428,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29430,"t":"code","b":[208,8],"m":"bne","oa":29440,"o":"b_7300"},{"a":29432,"t":"code","b":[169,23],"m":"lda","o":"#$17"},{"a":29434,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29437,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":29440,"l":"b_7300","t":"code","b":[76,147,114],"m":"jmp","oa":29331,"x":[29424,29430],"o":"diamond_lands"},{"a":29443,"l":"b_7303","t":"code","b":[201,56],"m":"cmp","x":[29398],"o":"#$38"},{"a":29445,"t":"code","b":[208,10],"m":"bne","oa":29457,"o":"b_7311"},{"a":29447,"t":"code","b":[169,28],"m":"lda","o":"#$1C"},{"a":29449,"t":"code","b":[133,137],"m":"sta","oa":137,"o":"zpa_89"},{"a":29451,"t":"code","b":[32,186,112],"m":"jsr","oa":28858,"o":"explode_cell_below"},{"a":29454,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":29457,"l":"b_7311","t":"code","b":[32,20,114],"m":"jsr","oa":29204,"x":[29445],"o":"is_creature"},{"a":29460,"t":"code","b":[208,6],"m":"bne","oa":29468,"o":"b_731C"},{"a":29462,"t":"code","b":[32,186,112],"m":"jsr","oa":28858,"o":"explode_cell_below"},{"a":29465,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":29468,"l":"b_731C","t":"code","b":[76,147,114],"m":"jmp","oa":29331,"x":[29460],"o":"diamond_lands"},{"a":29471,"l":"diamond_handler","c":"handler for object $14, a diamond at rest; starts falling (object $17 in the cell below, with the diamond sound) when that cell is empty, rolls into the empty cell to its left or right, when the cell below that one is empty too, if it rests on a boulder, a diamond or a brick wall ($02, not steel or magic wall), otherwise stays","t":"code","b":[160,81],"m":"ldy","o":"#$51"},{"a":29473,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29475,"t":"code","b":[208,11],"m":"bne","oa":29488,"o":"b_7330"},{"a":29477,"t":"code","b":[169,23],"m":"lda","o":"#$17"},{"a":29479,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29482,"t":"code","b":[32,192,113],"m":"jsr","oa":29120,"o":"diamond_sound"},{"a":29485,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":29488,"l":"b_7330","t":"code","b":[160,81],"m":"ldy","x":[29475],"o":"#$51"},{"a":29490,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29492,"t":"code","b":[32,253,113],"m":"jsr","oa":29181,"o":"can_roll_off"},{"a":29495,"t":"code","b":[208,40],"m":"bne","oa":29537,"o":"b_7361"},{"a":29497,"t":"code","b":[160,80],"m":"ldy","o":"#$50"},{"a":29499,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29501,"t":"code","b":[208,14],"m":"bne","oa":29517,"o":"b_734D"},{"a":29503,"t":"code","b":[160,40],"m":"ldy","o":"#$28"},{"a":29505,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29507,"t":"code","b":[208,8],"m":"bne","oa":29517,"o":"b_734D"},{"a":29509,"t":"code","b":[169,23],"m":"lda","o":"#$17"},{"a":29511,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29514,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":29517,"l":"b_734D","t":"code","b":[160,82],"m":"ldy","x":[29501,29507],"o":"#$52"},{"a":29519,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29521,"t":"code","b":[208,14],"m":"bne","oa":29537,"o":"b_7361"},{"a":29523,"t":"code","b":[160,42],"m":"ldy","o":"#$2A"},{"a":29525,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29527,"t":"code","b":[208,8],"m":"bne","oa":29537,"o":"b_7361"},{"a":29529,"t":"code","b":[169,23],"m":"lda","o":"#$17"},{"a":29531,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29534,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":29537,"l":"b_7361","t":"code","b":[76,173,129],"m":"jmp","oa":33197,"x":[29495,29521,29527],"o":"end_of_object"},{"a":29540,"l":"neighbour_offsets","c":"the four cell offsets 1 (up), $28 (left), $2A (right), $51 (down) around the current cell, read by amoeba_handler both when it looks for room in all four ($7392) and when it picks a random direction to grow ($73B4)","t":"byte","b":[1,40,42,81],"x":[29586,29620]},{"a":29544,"l":"amoeba_handler","c":"handler for object $3A, the amoeba ($3B, an amoeba cell grown this pass, has no handler and the remap at $5EE8 turns it back to $3A); counts itself in a_9802; once the count of the previous pass (a_9803) reached 200 it turns to a boulder, when it had no room to grow (zpa_8C cleared by end_of_pass) it turns to a diamond; otherwise looks for an empty or dirt neighbour while zpf_42 is still clear this pass, setting it when one is found, and when a random byte ANDed with the rate mask zpa_9A is below 4 grows as $3B into the neighbour that value picks, if it is empty or dirt","t":"code","b":[238,2,152],"m":"inc","oa":38914,"o":"a_9802"},{"a":29547,"t":"code","b":[173,3,152],"m":"lda","oa":38915,"o":"a_9803"},{"a":29550,"t":"code","b":[201,200],"m":"cmp","o":"#$C8"},{"a":29552,"t":"code","b":[144,8],"m":"bcc","oa":29562,"o":"b_737A"},{"a":29554,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":29556,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29559,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":29562,"l":"b_737A","t":"code","b":[165,140],"m":"lda","oa":140,"x":[29552],"o":"zpa_8C"},{"a":29564,"t":"code","b":[208,8],"m":"bne","oa":29574,"o":"b_7386"},{"a":29566,"t":"code","b":[169,20],"m":"lda","o":"#$14"},{"a":29568,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29571,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":29574,"l":"b_7386","t":"code","b":[165,66],"m":"lda","oa":66,"x":[29564],"o":"zpf_42"},{"a":29576,"t":"code","b":[208,32],"m":"bne","oa":29610,"o":"b_73AA"},{"a":29578,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":29580,"t":"code","b":[133,70],"m":"sta","oa":70,"o":"zpa_46"},{"a":29582,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":29584,"l":"b_7390","t":"code","b":[164,70],"m":"ldy","oa":70,"x":[29600],"o":"zpa_46"},{"a":29586,"t":"code","b":[185,100,115],"m":"lda","oa":29540,"o":"neighbour_offsets,y"},{"a":29589,"t":"code","b":[168],"m":"tay"},{"a":29590,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29592,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":29594,"t":"code","b":[176,2],"m":"bcs","oa":29598,"o":"b_739E"},{"a":29596,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":29598,"l":"b_739E","t":"code","b":[198,70],"m":"dec","oa":70,"x":[29594],"o":"zpa_46"},{"a":29600,"t":"code","b":[16,238],"m":"bpl","oa":29584,"o":"b_7390"},{"a":29602,"t":"code","b":[224,0],"m":"cpx","o":"#$00"},{"a":29604,"t":"code","b":[208,4],"m":"bne","oa":29610,"o":"b_73AA"},{"a":29606,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":29608,"t":"code","b":[133,66],"m":"sta","oa":66,"o":"zpf_42"},{"a":29610,"l":"b_73AA","t":"code","b":[32,104,110],"m":"jsr","oa":28264,"x":[29576,29604],"o":"random_byte"},{"a":29613,"t":"code","b":[37,154],"m":"and","oa":154,"o":"zpa_9A"},{"a":29615,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":29617,"t":"code","b":[176,27],"m":"bcs","oa":29646,"o":"b_73CE"},{"a":29619,"t":"code","b":[170],"m":"tax"},{"a":29620,"t":"code","b":[188,100,115],"m":"ldy","oa":29540,"o":"neighbour_offsets,x"},{"a":29623,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":29625,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":29627,"t":"code","b":[208,2],"m":"bne","oa":29631,"o":"b_73BF"},{"a":29629,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":29631,"l":"b_73BF","t":"code","b":[201,1],"m":"cmp","x":[29627],"o":"#$01"},{"a":29633,"t":"code","b":[208,2],"m":"bne","oa":29637,"o":"b_73C5"},{"a":29635,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":29637,"l":"b_73C5","t":"code","b":[224,0],"m":"cpx","x":[29633],"o":"#$00"},{"a":29639,"t":"code","b":[208,5],"m":"bne","oa":29646,"o":"b_73CE"},{"a":29641,"t":"code","b":[169,59],"m":"lda","o":"#$3B"},{"a":29643,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":29646,"l":"b_73CE","t":"code","b":[76,173,129],"m":"jmp","oa":33197,"x":[29617,29639],"o":"end_of_object"},{"a":29649,"l":"add_life","c":"adds one man to zpa_5C (never above 9) and starts the glisten effect by setting zpa_A8 to $80","t":"code","b":[165,92],"m":"lda","oa":92,"x":[29668,29681,33716],"o":"zpa_5C"},{"a":29651,"t":"code","b":[201,9],"m":"cmp","o":"#$09"},{"a":29653,"t":"code","b":[240,6],"m":"beq","oa":29661,"o":"r_73DD"},{"a":29655,"t":"code","b":[230,92],"m":"inc","oa":92,"o":"zpa_5C"},{"a":29657,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":29659,"t":"code","b":[133,168],"m":"sta","oa":168,"o":"zpa_A8"},{"a":29661,"l":"r_73DD","t":"code","b":[96],"m":"rts","x":[29653]},{"a":29662,"l":"check_bonus_life","c":"compares the thousands and hundreds digits of the score with their values before the add (zpa_A9, zpa_AA) and calls add_life when the score has crossed a multiple of 500","t":"code","b":[165,169],"m":"lda","oa":169,"x":[29716],"o":"zpa_A9"},{"a":29664,"t":"code","b":[197,97],"m":"cmp","oa":97,"o":"zpa_61"},{"a":29666,"t":"code","b":[240,3],"m":"beq","oa":29671,"o":"b_73E7"},{"a":29668,"t":"code","b":[32,209,115],"m":"jsr","oa":29649,"o":"add_life"},{"a":29671,"l":"b_73E7","t":"code","b":[165,170],"m":"lda","oa":170,"x":[29666],"o":"zpa_AA"},{"a":29673,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":29675,"t":"code","b":[208,7],"m":"bne","oa":29684,"o":"r_73F4"},{"a":29677,"t":"code","b":[197,98],"m":"cmp","oa":98,"o":"zpa_62"},{"a":29679,"t":"code","b":[240,3],"m":"beq","oa":29684,"o":"r_73F4"},{"a":29681,"t":"code","b":[32,209,115],"m":"jsr","oa":29649,"o":"add_life"},{"a":29684,"l":"r_73F4","t":"code","b":[96],"m":"rts","x":[29675,29679]},{"a":29685,"l":"add_to_score","c":"saves the thousands and hundreds digits of the score, adds the six decimal digits at zpf_4E to the score digits at zpf_5F, writes them as characters to the status line at $9848 and checks for the bonus life","t":"code","b":[165,97],"m":"lda","oa":97,"x":[30007,35865],"o":"zpa_61"},{"a":29687,"t":"code","b":[133,169],"m":"sta","oa":169,"o":"zpa_A9"},{"a":29689,"t":"code","b":[165,98],"m":"lda","oa":98,"o":"zpa_62"},{"a":29691,"t":"code","b":[133,170],"m":"sta","oa":170,"o":"zpa_AA"},{"a":29693,"t":"code","b":[162,5],"m":"ldx","o":"#$05"},{"a":29695,"t":"code","b":[24],"m":"clc"},{"a":29696,"l":"b_7400","t":"code","b":[181,95],"m":"lda","oa":95,"x":[29714],"o":"zpf_5F,x"},{"a":29698,"t":"code","b":[117,78],"m":"adc","oa":78,"o":"zpf_4E,x"},{"a":29700,"t":"code","b":[201,10],"m":"cmp","o":"#$0A"},{"a":29702,"t":"code","b":[144,2],"m":"bcc","oa":29706,"o":"b_740A"},{"a":29704,"t":"code","b":[233,10],"m":"sbc","o":"#$0A"},{"a":29706,"l":"b_740A","t":"code","b":[149,95],"m":"sta","oa":95,"x":[29702],"o":"zpf_5F,x"},{"a":29708,"t":"code","b":[9,16],"m":"ora","o":"#$10"},{"a":29710,"t":"code","b":[157,72,152],"m":"sta","oa":38984,"o":"f_9848,x"},{"a":29713,"t":"code","b":[202],"m":"dex"},{"a":29714,"t":"code","b":[16,236],"m":"bpl","oa":29696,"o":"b_7400"},{"a":29716,"t":"code","b":[32,222,115],"m":"jsr","oa":29662,"o":"check_bonus_life"},{"a":29719,"t":"code","b":[96],"m":"rts"},{"a":29720,"l":"sid_voice3_regs","c":"voice 3 register values ($D40E-$D414) for the effect sound_update plays for $21 frames while zpa_D8 is set, that is when the intro countdown ends ($748D) and when the quota is met ($751A): frequency $2F32, pulse width $0000, control $81 (noise, gate on), attack/decay $19, sustain/release $01","t":"byte","b":[50,47,0,0,129,25,1],"x":[32032]},{"a":29727,"l":"trigger_voice3_sound","c":"sets zpa_D8, which makes the sound routine play the voice 3 effect for $21 frames","t":"code","b":[169,1],"m":"lda","x":[29837,29978],"o":"#$01"},{"a":29729,"t":"code","b":[133,216],"m":"sta","oa":216,"o":"zpa_D8"},{"a":29731,"t":"code","b":[96],"m":"rts"},{"a":29732,"l":"low_time_check","c":"when the first two time digits are zero and the last is not, beeps on voice 2 with a pitch that rises as the last digit falls (high byte $27 minus the digit) and sets bit 7 of a_980D, which stops the step and dig notes in sound_update; the beep is skipped while the sound lockout a_9811 is not zero. When all three are zero sets zpa_97 to 2, the state that ends play_loop ($8C95); zpa_97 is also set to 2 at the open exit (try_enter_cell, $757E), by RUN/STOP after the intro ($812B), by check_restart_fire ($816E) and by title_setup ($8994). time_bonus_tally calls this routine too ($8C0C) and stops counting the time into the score when it sets zpa_97","t":"code","b":[165,171],"m":"lda","oa":171,"x":[29812,35852],"o":"zpa_AB"},{"a":29734,"t":"code","b":[208,52],"m":"bne","oa":29788,"o":"r_745C"},{"a":29736,"t":"code","b":[165,172],"m":"lda","oa":172,"o":"zpa_AC"},{"a":29738,"t":"code","b":[208,48],"m":"bne","oa":29788,"o":"r_745C"},{"a":29740,"t":"code","b":[165,173],"m":"lda","oa":173,"o":"zpa_AD"},{"a":29742,"t":"code","b":[208,5],"m":"bne","oa":29749,"o":"b_7435"},{"a":29744,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":29746,"t":"code","b":[133,151],"m":"sta","oa":151,"o":"zpa_97"},{"a":29748,"t":"code","b":[96],"m":"rts"},{"a":29749,"l":"b_7435","t":"code","b":[173,17,152],"m":"lda","oa":38929,"x":[29742,35873],"o":"a_9811"},{"a":29752,"t":"code","b":[208,34],"m":"bne","oa":29788,"o":"r_745C"},{"a":29754,"t":"code","b":[32,123,128],"m":"jsr","oa":32891,"o":"silence_voice_2"},{"a":29757,"t":"code","b":[169,10],"m":"lda","o":"#$0A"},{"a":29759,"t":"code","b":[141,12,212],"m":"sta","o":"sid_v2_attack_decay"},{"a":29762,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":29764,"t":"code","b":[141,13,212],"m":"sta","o":"sid_v2_sustain_release"},{"a":29767,"t":"code","b":[169,39],"m":"lda","o":"#$27"},{"a":29769,"t":"code","b":[56],"m":"sec"},{"a":29770,"t":"code","b":[229,173],"m":"sbc","oa":173,"o":"zpa_AD"},{"a":29772,"t":"code","b":[141,8,212],"m":"sta","o":"sid_v2_freq_hi"},{"a":29775,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":29777,"t":"code","b":[141,11,212],"m":"sta","o":"sid_v2_control"},{"a":29780,"t":"code","b":[173,13,152],"m":"lda","oa":38925,"o":"a_980D"},{"a":29783,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":29785,"t":"code","b":[141,13,152],"m":"sta","oa":38925,"o":"a_980D"},{"a":29788,"l":"r_745C","t":"code","b":[96],"m":"rts","x":[29734,29738,29752]},{"a":29789,"l":"time_down_one","c":"subtracts one from the three-digit decimal time left in zpa_AB-AD, writes the digits to the status line at $9844 and runs the low-time check","t":"code","b":[162,2],"m":"ldx","x":[29816,35862],"o":"#$02"},{"a":29791,"t":"code","b":[24],"m":"clc"},{"a":29792,"l":"b_7460","t":"code","b":[181,171],"m":"lda","oa":171,"x":[29810],"o":"zpa_AB,x"},{"a":29794,"t":"code","b":[105,9],"m":"adc","o":"#$09"},{"a":29796,"t":"code","b":[201,10],"m":"cmp","o":"#$0A"},{"a":29798,"t":"code","b":[144,2],"m":"bcc","oa":29802,"o":"b_746A"},{"a":29800,"t":"code","b":[233,10],"m":"sbc","o":"#$0A"},{"a":29802,"l":"b_746A","t":"code","b":[149,171],"m":"sta","oa":171,"x":[29798],"o":"zpa_AB,x"},{"a":29804,"t":"code","b":[9,16],"m":"ora","o":"#$10"},{"a":29806,"t":"code","b":[157,68,152],"m":"sta","oa":38980,"o":"f_9844,x"},{"a":29809,"t":"code","b":[202],"m":"dex"},{"a":29810,"t":"code","b":[16,236],"m":"bpl","oa":29792,"o":"b_7460"},{"a":29812,"t":"code","b":[32,36,116],"m":"jsr","oa":29732,"o":"low_time_check"},{"a":29815,"t":"code","b":[96],"m":"rts"},{"a":29816,"l":"second_tick","c":"once a second runs time_down_one, adds one to the seconds counter zpa_AF and sets the amoeba growth mask zpa_9A to $0F when the counter equals the cave header byte at $2401","t":"code","b":[32,93,116],"m":"jsr","oa":29789,"x":[29885],"o":"time_down_one"},{"a":29819,"t":"code","b":[230,175],"m":"inc","oa":175,"o":"zpa_AF"},{"a":29821,"t":"code","b":[165,175],"m":"lda","oa":175,"o":"zpa_AF"},{"a":29823,"t":"code","b":[205,1,36],"m":"cmp","oa":9217,"o":"a_2401"},{"a":29826,"t":"code","b":[208,4],"m":"bne","oa":29832,"o":"r_7488"},{"a":29828,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":29830,"t":"code","b":[133,154],"m":"sta","oa":154,"o":"zpa_9A"},{"a":29832,"l":"r_7488","t":"code","b":[96],"m":"rts","x":[29826]},{"a":29833,"l":"intro_countdown","c":"counts down the start-of-cave delay zpa_95 each second; at zero plays the voice 3 effect, ends the intro (zpa_93 = 0) and starts play (zpa_94 = 1)","t":"code","b":[198,149],"m":"dec","oa":149,"x":[29889],"o":"zpa_95"},{"a":29835,"t":"code","b":[208,15],"m":"bne","oa":29852,"o":"r_749C"},{"a":29837,"t":"code","b":[32,31,116],"m":"jsr","oa":29727,"o":"trigger_voice3_sound"},{"a":29840,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":29842,"t":"code","b":[133,147],"m":"sta","oa":147,"o":"zpa_93"},{"a":29844,"t":"code","b":[133,251],"m":"sta","oa":251,"o":"zpa_FB"},{"a":29846,"t":"code","b":[133,252],"m":"sta","oa":252,"o":"zpa_FC"},{"a":29848,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":29850,"t":"code","b":[133,148],"m":"sta","oa":148,"o":"zpa_94"},{"a":29852,"l":"r_749C","t":"code","b":[96],"m":"rts","x":[29835]},{"a":29853,"l":"redraw_status_line","c":"draws the status line from the buffer at $983A","t":"code","b":[169,58],"m":"lda","x":[31849],"o":"#$3A"},{"a":29855,"t":"code","b":[133,70],"m":"sta","oa":70,"o":"zpa_46"},{"a":29857,"t":"code","b":[169,152],"m":"lda","o":"#$98"},{"a":29859,"t":"code","b":[133,71],"m":"sta","oa":71,"o":"zpa_47"},{"a":29861,"t":"code","b":[32,174,110],"m":"jsr","oa":28334,"o":"draw_status_text"},{"a":29864,"t":"code","b":[96],"m":"rts"},{"a":29865,"l":"frame_clock","c":"counts frames in zpa_AE; once every 60 frames, unless paused, runs the second tick or the intro countdown","t":"code","b":[230,174],"m":"inc","oa":174,"x":[32465],"o":"zpa_AE"},{"a":29867,"t":"code","b":[165,174],"m":"lda","oa":174,"o":"zpa_AE"},{"a":29869,"t":"code","b":[201,60],"m":"cmp","o":"#$3C"},{"a":29871,"t":"code","b":[208,19],"m":"bne","oa":29892,"o":"r_74C4"},{"a":29873,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":29875,"t":"code","b":[133,174],"m":"sta","oa":174,"o":"zpa_AE"},{"a":29877,"t":"code","b":[165,155],"m":"lda","oa":155,"o":"zpa_9B"},{"a":29879,"t":"code","b":[208,11],"m":"bne","oa":29892,"o":"r_74C4"},{"a":29881,"t":"code","b":[165,147],"m":"lda","oa":147,"o":"zpa_93"},{"a":29883,"t":"code","b":[208,4],"m":"bne","oa":29889,"o":"b_74C1"},{"a":29885,"t":"code","b":[32,120,116],"m":"jsr","oa":29816,"o":"second_tick"},{"a":29888,"t":"code","b":[96],"m":"rts"},{"a":29889,"l":"b_74C1","t":"code","b":[32,137,116],"m":"jsr","oa":29833,"x":[29883],"o":"intro_countdown"},{"a":29892,"l":"r_74C4","t":"code","b":[96],"m":"rts","x":[29871,29879]},{"a":29893,"l":"count_diamond","c":"adds one to the two-digit decimal diamonds-collected counter at zpf_B0 and writes the digits to $9841","t":"code","b":[162,1],"m":"ldx","x":[30010],"o":"#$01"},{"a":29895,"t":"code","b":[24],"m":"clc"},{"a":29896,"l":"b_74C8","t":"code","b":[138],"m":"txa","x":[29913]},{"a":29897,"t":"code","b":[117,176],"m":"adc","oa":176,"o":"zpf_B0,x"},{"a":29899,"t":"code","b":[201,10],"m":"cmp","o":"#$0A"},{"a":29901,"t":"code","b":[144,2],"m":"bcc","oa":29905,"o":"b_74D1"},{"a":29903,"t":"code","b":[233,10],"m":"sbc","o":"#$0A"},{"a":29905,"l":"b_74D1","t":"code","b":[149,176],"m":"sta","oa":176,"x":[29901],"o":"zpf_B0,x"},{"a":29907,"t":"code","b":[9,16],"m":"ora","o":"#$10"},{"a":29909,"t":"code","b":[157,65,152],"m":"sta","oa":38977,"o":"f_9841,x"},{"a":29912,"t":"code","b":[202],"m":"dex"},{"a":29913,"t":"code","b":[16,237],"m":"bpl","oa":29896,"o":"b_74C8"},{"a":29915,"t":"code","b":[96],"m":"rts"},{"a":29916,"l":"show_needed","c":"writes the two digits of zpf_B2, the diamonds needed, to $983B as characters","t":"code","b":[162,1],"m":"ldx","x":[33481],"o":"#$01"},{"a":29918,"l":"b_74DE","t":"code","b":[181,178],"m":"lda","oa":178,"x":[29926],"o":"zpf_B2,x"},{"a":29920,"t":"code","b":[9,16],"m":"ora","o":"#$10"},{"a":29922,"t":"code","b":[157,59,152],"m":"sta","oa":38971,"o":"f_983B,x"},{"a":29925,"t":"code","b":[202],"m":"dex"},{"a":29926,"t":"code","b":[16,246],"m":"bpl","oa":29918,"o":"b_74DE"},{"a":29928,"t":"code","b":[96],"m":"rts"},{"a":29929,"l":"show_value","c":"writes the digits of zpf_52, the value of a diamond, to $983E as characters","t":"code","b":[162,1],"m":"ldx","x":[29967,33518],"o":"#$01"},{"a":29931,"l":"b_74EB","t":"code","b":[181,82],"m":"lda","oa":82,"x":[29939],"o":"zpf_52,x"},{"a":29933,"t":"code","b":[9,16],"m":"ora","o":"#$10"},{"a":29935,"t":"code","b":[157,62,152],"m":"sta","oa":38974,"o":"f_983E,x"},{"a":29938,"t":"code","b":[202],"m":"dex"},{"a":29939,"t":"code","b":[16,246],"m":"bpl","oa":29931,"o":"b_74EB"},{"a":29941,"t":"code","b":[96],"m":"rts"},{"a":29942,"l":"check_quota","c":"when diamonds collected equals diamonds needed sets the quota flag zpa_90, makes the later-diamond value (zpf_B4) the one in use, writes the status line, starts the voice 3 effect and sets the white flash zpa_A5 to 6","t":"code","b":[165,176],"m":"lda","oa":176,"x":[30013],"o":"zpf_B0"},{"a":29944,"t":"code","b":[197,178],"m":"cmp","oa":178,"o":"zpf_B2"},{"a":29946,"t":"code","b":[208,37],"m":"bne","oa":29985,"o":"r_7521"},{"a":29948,"t":"code","b":[165,177],"m":"lda","oa":177,"o":"zpa_B1"},{"a":29950,"t":"code","b":[197,179],"m":"cmp","oa":179,"o":"zpa_B3"},{"a":29952,"t":"code","b":[208,31],"m":"bne","oa":29985,"o":"r_7521"},{"a":29954,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":29956,"t":"code","b":[133,144],"m":"sta","oa":144,"o":"zpa_90"},{"a":29958,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":29960,"l":"b_7508","t":"code","b":[181,180],"m":"lda","oa":180,"x":[29965],"o":"zpf_B4,x"},{"a":29962,"t":"code","b":[149,81],"m":"sta","oa":81,"o":"zpf_51,x"},{"a":29964,"t":"code","b":[202],"m":"dex"},{"a":29965,"t":"code","b":[16,249],"m":"bpl","oa":29960,"o":"b_7508"},{"a":29967,"t":"code","b":[32,233,116],"m":"jsr","oa":29929,"o":"show_value"},{"a":29970,"t":"code","b":[169,60],"m":"lda","o":"#$3C"},{"a":29972,"t":"code","b":[141,59,152],"m":"sta","oa":38971,"o":"f_983B"},{"a":29975,"t":"code","b":[141,60,152],"m":"sta","oa":38972,"o":"a_983C"},{"a":29978,"t":"code","b":[32,31,116],"m":"jsr","oa":29727,"o":"trigger_voice3_sound"},{"a":29981,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":29983,"t":"code","b":[133,165],"m":"sta","oa":165,"o":"zpa_A5"},{"a":29985,"l":"r_7521","t":"code","b":[96],"m":"rts","x":[29946,29952]},{"a":29986,"l":"sid_diamond_regs","c":"voice 1 register values for the diamond pickup chime: frequency $1478, pulse width $0007, control $11, attack/decay $00, sustain/release $F0","t":"byte","b":[120,20],"x":[29998]},{"a":29988,"l":"diamond_sound_data","c":"five bytes ($07, $00, $11, $00, $F0) for voice 1 sounds: diamond_sound ($71C0, its copy loop at $71C5) uses the first four (pulse width $0007, control $11, attack/decay $00) in the note it plays when a diamond starts to fall, lands, or a boulder goes into the magic wall, and pick_up_diamond reads all five through the register table at $7522, as the last five of the pick-up chime's seven values","t":"byte","b":[7,0,17,0,240],"x":[29125]},{"a":29993,"l":"pick_up_diamond","c":"copies the chime values into the voice 1 buffer, adds the diamond's value to the score, counts it and checks the quota, then counts the move in zpa_B7","t":"code","b":[238,13,152],"m":"inc","oa":38925,"x":[30069],"o":"a_980D"},{"a":29996,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":29998,"l":"b_752E","t":"code","b":[189,34,117],"m":"lda","oa":29986,"x":[30005],"o":"sid_diamond_regs,x"},{"a":30001,"t":"code","b":[157,125,152],"m":"sta","oa":39037,"o":"a_987D,x"},{"a":30004,"t":"code","b":[202],"m":"dex"},{"a":30005,"t":"code","b":[16,247],"m":"bpl","oa":29998,"o":"b_752E"},{"a":30007,"t":"code","b":[32,245,115],"m":"jsr","oa":29685,"o":"add_to_score"},{"a":30010,"t":"code","b":[32,197,116],"m":"jsr","oa":29893,"o":"count_diamond"},{"a":30013,"t":"code","b":[32,246,116],"m":"jsr","oa":29942,"o":"check_quota"},{"a":30016,"t":"code","b":[230,183],"m":"inc","oa":183,"o":"zpa_B7"},{"a":30018,"t":"code","b":[96],"m":"rts"},{"a":30019,"l":"push_succeeds","c":"on one call in four counts the move in zpa_B7, plays the thud and stores object $11, a boulder handled this pass, in the cell beyond; this is the chance that Rockford manages to push a boulder","t":"code","b":[32,104,110],"m":"jsr","oa":28264,"x":[30100,30115],"o":"random_byte"},{"a":30022,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":30024,"t":"code","b":[208,10],"m":"bne","oa":30036,"o":"r_7554"},{"a":30026,"t":"code","b":[230,183],"m":"inc","oa":183,"o":"zpa_B7"},{"a":30028,"t":"code","b":[32,238,113],"m":"jsr","oa":29166,"o":"play_thud_sound"},{"a":30031,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":30033,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30036,"l":"r_7554","t":"code","b":[96],"m":"rts","x":[30024]},{"a":30037,"l":"try_enter_cell","c":"examines the cell at (zpp_32),Y that Rockford wants to enter: space sets the walk sound ($35 in a_9808) and counts the move, dirt sets the dig sound ($A5) and counts the move, a diamond is picked up, the open exit sets zpa_97 to 2 and zpa_9F to 1 and counts the move, a boulder ($10) on a move left or right is pushed when the cell beyond is empty, on one try in four (push_succeeds, $7543); leaves zpa_B7 non-zero when the move succeeds","t":"code","b":[169,0],"m":"lda","x":[30121],"o":"#$00"},{"a":30039,"t":"code","b":[133,183],"m":"sta","oa":183,"o":"zpa_B7"},{"a":30041,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30043,"t":"code","b":[208,8],"m":"bne","oa":30053,"o":"b_7565"},{"a":30045,"t":"code","b":[230,183],"m":"inc","oa":183,"o":"zpa_B7"},{"a":30047,"t":"code","b":[169,53],"m":"lda","o":"#$35"},{"a":30049,"t":"code","b":[141,8,152],"m":"sta","oa":38920,"o":"a_9808"},{"a":30052,"t":"code","b":[96],"m":"rts"},{"a":30053,"l":"b_7565","t":"code","b":[201,1],"m":"cmp","x":[30043],"o":"#$01"},{"a":30055,"t":"code","b":[208,8],"m":"bne","oa":30065,"o":"b_7571"},{"a":30057,"t":"code","b":[230,183],"m":"inc","oa":183,"o":"zpa_B7"},{"a":30059,"t":"code","b":[169,165],"m":"lda","o":"#$A5"},{"a":30061,"t":"code","b":[141,8,152],"m":"sta","oa":38920,"o":"a_9808"},{"a":30064,"t":"code","b":[96],"m":"rts"},{"a":30065,"l":"b_7571","t":"code","b":[201,20],"m":"cmp","x":[30055],"o":"#$14"},{"a":30067,"t":"code","b":[208,3],"m":"bne","oa":30072,"o":"b_7578"},{"a":30069,"t":"code","b":[76,41,117],"m":"jmp","oa":29993,"o":"pick_up_diamond"},{"a":30072,"l":"b_7578","t":"code","b":[201,5],"m":"cmp","x":[30067],"o":"#$05"},{"a":30074,"t":"code","b":[208,10],"m":"bne","oa":30086,"o":"b_7586"},{"a":30076,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":30078,"t":"code","b":[133,151],"m":"sta","oa":151,"o":"zpa_97"},{"a":30080,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":30082,"t":"code","b":[133,159],"m":"sta","oa":159,"o":"zpa_9F"},{"a":30084,"t":"code","b":[230,183],"m":"inc","oa":183,"o":"zpa_B7"},{"a":30086,"l":"b_7586","t":"code","b":[201,16],"m":"cmp","x":[30074],"o":"#$10"},{"a":30088,"t":"code","b":[208,30],"m":"bne","oa":30120,"o":"r_75A8"},{"a":30090,"t":"code","b":[192,40],"m":"cpy","o":"#$28"},{"a":30092,"t":"code","b":[208,11],"m":"bne","oa":30105,"o":"b_7599"},{"a":30094,"t":"code","b":[160,39],"m":"ldy","o":"#$27"},{"a":30096,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30098,"t":"code","b":[208,3],"m":"bne","oa":30103,"o":"b_7597"},{"a":30100,"t":"code","b":[32,67,117],"m":"jsr","oa":30019,"o":"push_succeeds"},{"a":30103,"l":"b_7597","t":"code","b":[160,40],"m":"ldy","x":[30098],"o":"#$28"},{"a":30105,"l":"b_7599","t":"code","b":[192,42],"m":"cpy","x":[30092],"o":"#$2A"},{"a":30107,"t":"code","b":[208,11],"m":"bne","oa":30120,"o":"r_75A8"},{"a":30109,"t":"code","b":[160,43],"m":"ldy","o":"#$2B"},{"a":30111,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30113,"t":"code","b":[208,3],"m":"bne","oa":30118,"o":"b_75A6"},{"a":30115,"t":"code","b":[32,67,117],"m":"jsr","oa":30019,"o":"push_succeeds"},{"a":30118,"l":"b_75A6","t":"code","b":[160,42],"m":"ldy","x":[30113],"o":"#$2A"},{"a":30120,"l":"r_75A8","t":"code","b":[96],"m":"rts","x":[30088,30107]},{"a":30121,"l":"move_into_cell","c":"runs try_enter_cell; on success with the fire button not pressed puts Rockford ($39) in the new cell and space in the old one; with fire pressed only the new cell is cleared (the object is taken without moving)","t":"code","b":[32,85,117],"m":"jsr","oa":30037,"x":[30175,30191,30222,30242],"o":"try_enter_cell"},{"a":30124,"t":"code","b":[165,183],"m":"lda","oa":183,"o":"zpa_B7"},{"a":30126,"t":"code","b":[240,29],"m":"beq","oa":30157,"o":"r_75CD"},{"a":30128,"t":"code","b":[32,1,111],"m":"jsr","oa":28417,"o":"read_fire"},{"a":30131,"t":"code","b":[208,10],"m":"bne","oa":30143,"o":"b_75BF"},{"a":30133,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":30135,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30138,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":30140,"t":"code","b":[133,183],"m":"sta","oa":183,"o":"zpa_B7"},{"a":30142,"t":"code","b":[96],"m":"rts"},{"a":30143,"l":"b_75BF","t":"code","b":[169,57],"m":"lda","x":[30131],"o":"#$39"},{"a":30145,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30148,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":30150,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":30152,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30155,"t":"code","b":[230,183],"m":"inc","oa":183,"o":"zpa_B7"},{"a":30157,"l":"r_75CD","t":"code","b":[96],"m":"rts","x":[30126]},{"a":30158,"l":"rockford_move","c":"moves Rockford one cell for the joystick bits in A (down $0D, up $0E, right below 8, left 8 to $0B) and updates his column zpa_44 or row zpa_45 when the move succeeds; a move down is refused while he is at window row 6 (zpa_E5) and the view is scrolling up (speed high byte zpa_EE not zero), and a move right while he is at window column 8 (zpa_E6) and the view is scrolling left (zpa_EA not zero); zpa_98 records the way he faces (0 right, 1 left)","t":"code","b":[201,13],"m":"cmp","x":[30277],"o":"#$0D"},{"a":30160,"t":"code","b":[208,23],"m":"bne","oa":30185,"o":"b_75E9"},{"a":30162,"t":"code","b":[165,229],"m":"lda","oa":229,"o":"zpa_E5"},{"a":30164,"t":"code","b":[201,6],"m":"cmp","o":"#$06"},{"a":30166,"t":"code","b":[208,5],"m":"bne","oa":30173,"o":"b_75DD"},{"a":30168,"t":"code","b":[165,238],"m":"lda","oa":238,"o":"zpa_EE"},{"a":30170,"t":"code","b":[240,1],"m":"beq","oa":30173,"o":"b_75DD"},{"a":30172,"t":"code","b":[96],"m":"rts"},{"a":30173,"l":"b_75DD","t":"code","b":[160,81],"m":"ldy","x":[30166,30170],"o":"#$51"},{"a":30175,"t":"code","b":[32,169,117],"m":"jsr","oa":30121,"o":"move_into_cell"},{"a":30178,"t":"code","b":[165,183],"m":"lda","oa":183,"o":"zpa_B7"},{"a":30180,"t":"code","b":[240,2],"m":"beq","oa":30184,"o":"r_75E8"},{"a":30182,"t":"code","b":[230,69],"m":"inc","oa":69,"o":"zpa_45"},{"a":30184,"l":"r_75E8","t":"code","b":[96],"m":"rts","x":[30180]},{"a":30185,"l":"b_75E9","t":"code","b":[201,14],"m":"cmp","x":[30160],"o":"#$0E"},{"a":30187,"t":"code","b":[208,12],"m":"bne","oa":30201,"o":"b_75F9"},{"a":30189,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":30191,"t":"code","b":[32,169,117],"m":"jsr","oa":30121,"o":"move_into_cell"},{"a":30194,"t":"code","b":[165,183],"m":"lda","oa":183,"o":"zpa_B7"},{"a":30196,"t":"code","b":[240,2],"m":"beq","oa":30200,"o":"r_75F8"},{"a":30198,"t":"code","b":[198,69],"m":"dec","oa":69,"o":"zpa_45"},{"a":30200,"l":"r_75F8","t":"code","b":[96],"m":"rts","x":[30196]},{"a":30201,"l":"b_75F9","t":"code","b":[201,8],"m":"cmp","x":[30187],"o":"#$08"},{"a":30203,"t":"code","b":[176,27],"m":"bcs","oa":30232,"o":"b_7618"},{"a":30205,"t":"code","b":[165,230],"m":"lda","oa":230,"o":"zpa_E6"},{"a":30207,"t":"code","b":[201,8],"m":"cmp","o":"#$08"},{"a":30209,"t":"code","b":[208,5],"m":"bne","oa":30216,"o":"b_7608"},{"a":30211,"t":"code","b":[165,234],"m":"lda","oa":234,"o":"zpa_EA"},{"a":30213,"t":"code","b":[240,1],"m":"beq","oa":30216,"o":"b_7608"},{"a":30215,"t":"code","b":[96],"m":"rts"},{"a":30216,"l":"b_7608","t":"code","b":[169,0],"m":"lda","x":[30209,30213],"o":"#$00"},{"a":30218,"t":"code","b":[133,152],"m":"sta","oa":152,"o":"zpa_98"},{"a":30220,"t":"code","b":[160,42],"m":"ldy","o":"#$2A"},{"a":30222,"t":"code","b":[32,169,117],"m":"jsr","oa":30121,"o":"move_into_cell"},{"a":30225,"t":"code","b":[165,183],"m":"lda","oa":183,"o":"zpa_B7"},{"a":30227,"t":"code","b":[240,2],"m":"beq","oa":30231,"o":"r_7617"},{"a":30229,"t":"code","b":[230,68],"m":"inc","oa":68,"o":"zpa_44"},{"a":30231,"l":"r_7617","t":"code","b":[96],"m":"rts","x":[30227]},{"a":30232,"l":"b_7618","t":"code","b":[201,12],"m":"cmp","x":[30203],"o":"#$0C"},{"a":30234,"t":"code","b":[176,15],"m":"bcs","oa":30251,"o":"r_762B"},{"a":30236,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":30238,"t":"code","b":[133,152],"m":"sta","oa":152,"o":"zpa_98"},{"a":30240,"t":"code","b":[160,40],"m":"ldy","o":"#$28"},{"a":30242,"t":"code","b":[32,169,117],"m":"jsr","oa":30121,"o":"move_into_cell"},{"a":30245,"t":"code","b":[165,183],"m":"lda","oa":183,"o":"zpa_B7"},{"a":30247,"t":"code","b":[240,2],"m":"beq","oa":30251,"o":"r_762B"},{"a":30249,"t":"code","b":[198,68],"m":"dec","oa":68,"o":"zpa_44"},{"a":30251,"l":"r_762B","t":"code","b":[96],"m":"rts","x":[30234,30247]},{"a":30252,"l":"rockford_handler","c":"handler for object $38, Rockford ($39, Rockford moved this pass, has no handler and the remap at $5EE8 turns it back to $38); takes the joystick bits from the demo script (zpa_8B, set by demo_play at $8CBF) when zpa_A2 is set, otherwise from joystick 1 or, for player 2 with two joysticks, joystick 2, then calls rockford_move and clears zpa_96, the count of passes since Rockford was last handled","t":"code","b":[165,162],"m":"lda","oa":162,"o":"zpa_A2"},{"a":30254,"t":"code","b":[240,5],"m":"beq","oa":30261,"o":"b_7635"},{"a":30256,"t":"code","b":[165,139],"m":"lda","oa":139,"o":"zpa_8B"},{"a":30258,"t":"code","b":[76,69,118],"m":"jmp","oa":30277,"o":"j_7645"},{"a":30261,"l":"b_7635","t":"code","b":[165,164],"m":"lda","oa":164,"x":[30254],"o":"zpa_A4"},{"a":30263,"t":"code","b":[37,157],"m":"and","oa":157,"o":"zpa_9D"},{"a":30265,"t":"code","b":[240,5],"m":"beq","oa":30272,"o":"b_7640"},{"a":30267,"t":"code","b":[32,251,110],"m":"jsr","oa":28411,"o":"read_joystick_2"},{"a":30270,"t":"code","b":[208,3],"m":"bne","oa":30275,"o":"b_7643"},{"a":30272,"l":"b_7640","t":"code","b":[32,245,110],"m":"jsr","oa":28405,"x":[30265],"o":"read_joystick_1"},{"a":30275,"l":"b_7643","t":"code","b":[133,139],"m":"sta","oa":139,"x":[30270],"o":"zpa_8B"},{"a":30277,"l":"j_7645","t":"code","b":[32,206,117],"m":"jsr","oa":30158,"x":[30258],"o":"rockford_move"},{"a":30280,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":30282,"t":"code","b":[133,150],"m":"sta","oa":150,"o":"zpa_96"},{"a":30284,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":30287,"l":"explosion_next_table","c":"pairs of (current, next) explosion codes: $1F becomes space, $1E to $1F, $1D to $1E, $1C to $1D, $1B to $1C; $24 becomes a diamond ($14), $23 to $24, $22 to $23, $21 to $22, $20 to $21","t":"byte","b":[31],"x":[30321]},{"a":30288,"l":"explosion_next_codes","c":"the next-code column of the explosion table that starts at $764F, read by LDX $7650,Y at $7676 beside the current codes read by CMP $764F,Y: its 19 bytes are $00, the next code of the $1F at $764F, then nine (current, next) pairs $1E $1F, $1D $1E, $1C $1D, $1B $1C, $24 $14, $23 $24, $22 $23, $21 $22, $20 $21, so each stage turns into the next and the last into a space or a diamond","t":"byte","b":[0,30,31,29,30,28,29,27],"x":[30326]},{"a":30296,"t":"byte","b":[28,36,20,35,36,34,35,33]},{"a":30304,"t":"byte","b":[34,32,33]},{"a":30307,"l":"arrival_next_table","c":"pairs of (current, next) codes for Rockford's arrival: $28 becomes Rockford ($38), $27 to $28, $26 to $27, $25 to $26","t":"byte","b":[40],"x":[30354]},{"a":30308,"l":"arrival_next_codes","c":"the next-code column of the arrival table that starts at $7663, read by LDX $7664,Y at $7697 beside the current codes read by CMP $7663,Y: these two bytes are $38, what stage $28 becomes (Rockford), and $27, the current code of the second pair; the rest of the table is at $7666. Stages $25 to $28 each turn into the next and $28 into Rockford","t":"byte","b":[56,39],"x":[30359]},{"a":30310,"l":"arrival_stage_codes","c":"the rest of the arrival table at $7663: $28, what stage $27 becomes, then the pairs ($26, $27) and ($25, $26), so the stages count up from $25 to $28 and $28 becomes Rockford","t":"byte","b":[40,38,39,37,38]},{"a":30315,"l":"explosion_handler","c":"handler for objects $1B-$24; looks up the next code in the table at $764F and stores it, so the $1B-$1F explosion (started by a firefly, or by a boulder or diamond landing on Rockford) fades to space and the $20-$24 one (started by a butterfly) ends as a diamond","t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":30317,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30319,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":30321,"l":"b_7671","t":"code","b":[217,79,118],"m":"cmp","oa":30287,"x":[30333],"o":"explosion_next_table,y"},{"a":30324,"t":"code","b":[208,3],"m":"bne","oa":30329,"o":"b_7679"},{"a":30326,"t":"code","b":[190,80,118],"m":"ldx","oa":30288,"o":"explosion_next_codes,y"},{"a":30329,"l":"b_7679","t":"code","b":[200],"m":"iny","x":[30324]},{"a":30330,"t":"code","b":[200],"m":"iny"},{"a":30331,"t":"code","b":[192,20],"m":"cpy","o":"#$14"},{"a":30333,"t":"code","b":[208,242],"m":"bne","oa":30321,"o":"b_7671"},{"a":30335,"t":"code","b":[138],"m":"txa"},{"a":30336,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":30338,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30341,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":30344,"l":"arrival_handler","c":"handler for objects $26-$28; once the intro delay zpa_95 has run out steps the arrival sequence to the next code in the table at $7663","t":"code","b":[165,149],"m":"lda","oa":149,"x":[30447],"o":"zpa_95"},{"a":30346,"t":"code","b":[208,26],"m":"bne","oa":30374,"o":"b_76A6"},{"a":30348,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":30350,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30352,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":30354,"l":"b_7692","t":"code","b":[217,99,118],"m":"cmp","oa":30307,"x":[30366],"o":"arrival_next_table,y"},{"a":30357,"t":"code","b":[208,3],"m":"bne","oa":30362,"o":"b_769A"},{"a":30359,"t":"code","b":[190,100,118],"m":"ldx","oa":30308,"o":"arrival_next_codes,y"},{"a":30362,"l":"b_769A","t":"code","b":[200],"m":"iny","x":[30357]},{"a":30363,"t":"code","b":[200],"m":"iny"},{"a":30364,"t":"code","b":[192,8],"m":"cpy","o":"#$08"},{"a":30366,"t":"code","b":[208,242],"m":"bne","oa":30354,"o":"b_7692"},{"a":30368,"t":"code","b":[138],"m":"txa"},{"a":30369,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":30371,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30374,"l":"b_76A6","t":"code","b":[76,173,129],"m":"jmp","oa":33197,"x":[30346],"o":"end_of_object"},{"a":30377,"l":"draw_closed_exit_tile","c":"draws tile $2E (characters $2E, $2F, $3E, $3F) at the tile position in zpp_36; it is the tile of object $04, the closed exit, and its characters are byte for byte the steel wall's ($4A), so the cell shows as steel wall; flash_entrance uses it to make the entrance ($25) and the open exit ($05) flash","t":"code","b":[169,46],"m":"lda","x":[30424],"o":"#$2E"},{"a":30379,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":30381,"t":"code","b":[145,54],"m":"sta","oa":54,"o":"(zpp_36),y"},{"a":30383,"t":"code","b":[24],"m":"clc"},{"a":30384,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":30386,"t":"code","b":[200],"m":"iny"},{"a":30387,"t":"code","b":[145,54],"m":"sta","oa":54,"o":"(zpp_36),y"},{"a":30389,"t":"code","b":[105,15],"m":"adc","o":"#$0F"},{"a":30391,"t":"code","b":[160,80],"m":"ldy","o":"#$50"},{"a":30393,"t":"code","b":[145,54],"m":"sta","oa":54,"o":"(zpp_36),y"},{"a":30395,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":30397,"t":"code","b":[200],"m":"iny"},{"a":30398,"t":"code","b":[145,54],"m":"sta","oa":54,"o":"(zpp_36),y"},{"a":30400,"t":"code","b":[96],"m":"rts"},{"a":30401,"l":"flash_entrance","c":"works out the screen position of the current cell and draws tile $2E there, the closed exit's steel-wall look (draw_closed_exit_tile, $76A9)","t":"code","b":[165,146],"m":"lda","oa":146,"x":[30450],"o":"zpa_92"},{"a":30403,"t":"code","b":[10],"m":"asl","o":"a"},{"a":30404,"t":"code","b":[170],"m":"tax"},{"a":30405,"t":"code","b":[165,145],"m":"lda","oa":145,"o":"zpa_91"},{"a":30407,"t":"code","b":[10],"m":"asl","o":"a"},{"a":30408,"t":"code","b":[24],"m":"clc"},{"a":30409,"t":"code","b":[125,218,83],"m":"adc","oa":21466,"o":"scroll_row_low,x"},{"a":30412,"t":"code","b":[133,52],"m":"sta","oa":52,"o":"zpa_34"},{"a":30414,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":30416,"t":"code","b":[125,219,83],"m":"adc","oa":21467,"o":"scroll_row_table,x"},{"a":30419,"t":"code","b":[133,53],"m":"sta","oa":53,"o":"zpa_35"},{"a":30421,"t":"code","b":[32,51,112],"m":"jsr","oa":28723,"o":"locate_neighbour_tile"},{"a":30424,"t":"code","b":[32,169,118],"m":"jsr","oa":30377,"o":"draw_closed_exit_tile"},{"a":30427,"t":"code","b":[96],"m":"rts"},{"a":30428,"l":"entrance_handler","c":"handler for objects $05 (the open exit) and $25 (the entrance); counts its calls in zpa_B9, and on odd counts draws tile $2E, the closed exit's steel-wall look, over the cell (flash_entrance), on even counts redraws the cell's own tile and, when the object is $25, jumps to arrival_handler, which starts the arrival sequence once the intro delay has ended","t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":30430,"t":"code","b":[230,185],"m":"inc","oa":185,"o":"zpa_B9"},{"a":30432,"t":"code","b":[165,185],"m":"lda","oa":185,"o":"zpa_B9"},{"a":30434,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":30436,"t":"code","b":[208,12],"m":"bne","oa":30450,"o":"b_76F2"},{"a":30438,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30440,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30443,"t":"code","b":[201,37],"m":"cmp","o":"#$25"},{"a":30445,"t":"code","b":[208,6],"m":"bne","oa":30453,"o":"b_76F5"},{"a":30447,"t":"code","b":[76,136,118],"m":"jmp","oa":30344,"o":"arrival_handler"},{"a":30450,"l":"b_76F2","t":"code","b":[32,193,118],"m":"jsr","oa":30401,"x":[30436],"o":"flash_entrance"},{"a":30453,"l":"b_76F5","t":"code","b":[76,173,129],"m":"jmp","oa":33197,"x":[30445],"o":"end_of_object"},{"a":30456,"l":"boulder_handler","c":"handler for object $10, a boulder at rest; starts falling (object $13 in the cell below, with the thud) when that cell is empty; otherwise, when it rests on a boulder, a diamond or a brick wall ($02), rolls left, or failing that right, into an empty cell whose cell below is empty too","t":"code","b":[160,81],"m":"ldy","o":"#$51"},{"a":30458,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30460,"t":"code","b":[208,11],"m":"bne","oa":30473,"o":"b_7709"},{"a":30462,"t":"code","b":[169,19],"m":"lda","o":"#$13"},{"a":30464,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30467,"t":"code","b":[32,238,113],"m":"jsr","oa":29166,"o":"play_thud_sound"},{"a":30470,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":30473,"l":"b_7709","t":"code","b":[160,81],"m":"ldy","x":[30460],"o":"#$51"},{"a":30475,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30477,"t":"code","b":[32,253,113],"m":"jsr","oa":29181,"o":"can_roll_off"},{"a":30480,"t":"code","b":[208,40],"m":"bne","oa":30522,"o":"b_773A"},{"a":30482,"t":"code","b":[160,80],"m":"ldy","o":"#$50"},{"a":30484,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30486,"t":"code","b":[208,14],"m":"bne","oa":30502,"o":"b_7726"},{"a":30488,"t":"code","b":[160,40],"m":"ldy","o":"#$28"},{"a":30490,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30492,"t":"code","b":[208,8],"m":"bne","oa":30502,"o":"b_7726"},{"a":30494,"t":"code","b":[169,19],"m":"lda","o":"#$13"},{"a":30496,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30499,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":30502,"l":"b_7726","t":"code","b":[160,82],"m":"ldy","x":[30486,30492],"o":"#$52"},{"a":30504,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30506,"t":"code","b":[208,14],"m":"bne","oa":30522,"o":"b_773A"},{"a":30508,"t":"code","b":[160,42],"m":"ldy","o":"#$2A"},{"a":30510,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30512,"t":"code","b":[208,8],"m":"bne","oa":30522,"o":"b_773A"},{"a":30514,"t":"code","b":[169,19],"m":"lda","o":"#$13"},{"a":30516,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30519,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":30522,"l":"b_773A","t":"code","b":[76,173,129],"m":"jmp","oa":33197,"x":[30480,30506,30512],"o":"end_of_object"},{"a":30525,"l":"set_boulder_rest","c":"stores object $11, a boulder at rest that has been handled, in the current cell","t":"code","b":[160,41],"m":"ldy","x":[30636,30667],"o":"#$29"},{"a":30527,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":30529,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30532,"t":"code","b":[96],"m":"rts"},{"a":30533,"l":"falling_boulder_handler","c":"handler for object $12, a falling boulder; keeps falling through empty space, lands on Rockford or a creature as an explosion centred below, turns a diamond-making magic wall pass into a diamond ($17) two cells lower, otherwise rolls off or comes to rest as $11","t":"code","b":[160,81],"m":"ldy","o":"#$51"},{"a":30535,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30537,"t":"code","b":[208,8],"m":"bne","oa":30547,"o":"b_7753"},{"a":30539,"t":"code","b":[169,19],"m":"lda","o":"#$13"},{"a":30541,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30544,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":30547,"l":"b_7753","t":"code","b":[201,3],"m":"cmp","x":[30537],"o":"#$03"},{"a":30549,"t":"code","b":[208,33],"m":"bne","oa":30584,"o":"b_7778"},{"a":30551,"t":"code","b":[165,141],"m":"lda","oa":141,"o":"zpa_8D"},{"a":30553,"t":"code","b":[208,4],"m":"bne","oa":30559,"o":"b_775F"},{"a":30555,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":30557,"t":"code","b":[133,141],"m":"sta","oa":141,"o":"zpa_8D"},{"a":30559,"l":"b_775F","t":"code","b":[201,1],"m":"cmp","x":[30553],"o":"#$01"},{"a":30561,"t":"code","b":[208,11],"m":"bne","oa":30574,"o":"b_776E"},{"a":30563,"t":"code","b":[160,121],"m":"ldy","o":"#$79"},{"a":30565,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30567,"t":"code","b":[208,5],"m":"bne","oa":30574,"o":"b_776E"},{"a":30569,"t":"code","b":[169,23],"m":"lda","o":"#$17"},{"a":30571,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30574,"l":"b_776E","t":"code","b":[169,0],"m":"lda","x":[30561,30567],"o":"#$00"},{"a":30576,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":30578,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30581,"t":"code","b":[76,192,113],"m":"jmp","oa":29120,"o":"diamond_sound"},{"a":30584,"l":"b_7778","t":"code","b":[32,238,113],"m":"jsr","oa":29166,"x":[30549],"o":"play_thud_sound"},{"a":30587,"t":"code","b":[160,81],"m":"ldy","o":"#$51"},{"a":30589,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30591,"t":"code","b":[32,253,113],"m":"jsr","oa":29181,"o":"can_roll_off"},{"a":30594,"t":"code","b":[208,46],"m":"bne","oa":30642,"o":"b_77B2"},{"a":30596,"t":"code","b":[160,80],"m":"ldy","o":"#$50"},{"a":30598,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30600,"t":"code","b":[208,14],"m":"bne","oa":30616,"o":"b_7798"},{"a":30602,"t":"code","b":[160,40],"m":"ldy","o":"#$28"},{"a":30604,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30606,"t":"code","b":[208,8],"m":"bne","oa":30616,"o":"b_7798"},{"a":30608,"t":"code","b":[169,19],"m":"lda","o":"#$13"},{"a":30610,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30613,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":30616,"l":"b_7798","t":"code","b":[160,82],"m":"ldy","x":[30600,30606],"o":"#$52"},{"a":30618,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30620,"t":"code","b":[208,14],"m":"bne","oa":30636,"o":"b_77AC"},{"a":30622,"t":"code","b":[160,42],"m":"ldy","o":"#$2A"},{"a":30624,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":30626,"t":"code","b":[208,8],"m":"bne","oa":30636,"o":"b_77AC"},{"a":30628,"t":"code","b":[169,19],"m":"lda","o":"#$13"},{"a":30630,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":30633,"t":"code","b":[76,111,112],"m":"jmp","oa":28783,"o":"clear_cell_and_redraw"},{"a":30636,"l":"b_77AC","t":"code","b":[32,61,119],"m":"jsr","oa":30525,"x":[30620,30626],"o":"set_boulder_rest"},{"a":30639,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":30642,"l":"b_77B2","t":"code","b":[201,56],"m":"cmp","x":[30594],"o":"#$38"},{"a":30644,"t":"code","b":[208,10],"m":"bne","oa":30656,"o":"b_77C0"},{"a":30646,"t":"code","b":[169,28],"m":"lda","o":"#$1C"},{"a":30648,"t":"code","b":[133,137],"m":"sta","oa":137,"o":"zpa_89"},{"a":30650,"t":"code","b":[32,186,112],"m":"jsr","oa":28858,"o":"explode_cell_below"},{"a":30653,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":30656,"l":"b_77C0","t":"code","b":[32,20,114],"m":"jsr","oa":29204,"x":[30644],"o":"is_creature"},{"a":30659,"t":"code","b":[208,6],"m":"bne","oa":30667,"o":"b_77CB"},{"a":30661,"t":"code","b":[32,186,112],"m":"jsr","oa":28858,"o":"explode_cell_below"},{"a":30664,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":30667,"l":"b_77CB","t":"code","b":[32,61,119],"m":"jsr","oa":30525,"x":[30659],"o":"set_boulder_rest"},{"a":30670,"t":"code","b":[76,173,129],"m":"jmp","oa":33197,"o":"end_of_object"},{"a":30673,"l":"clear_sparkle_table","c":"writes zero to the eight sparkle bytes at $3300, $3304, $3308, $330C, $3380, $3384, $3388, $338C","t":"code","b":[169,0],"m":"lda","x":[30706,36394],"o":"#$00"},{"a":30675,"t":"code","b":[141,0,51],"m":"sta","oa":13056,"o":"a_3300"},{"a":30678,"t":"code","b":[141,4,51],"m":"sta","oa":13060,"o":"a_3304"},{"a":30681,"t":"code","b":[141,8,51],"m":"sta","oa":13064,"o":"a_3308"},{"a":30684,"t":"code","b":[141,12,51],"m":"sta","oa":13068,"o":"a_330C"},{"a":30687,"t":"code","b":[141,128,51],"m":"sta","oa":13184,"o":"a_3380"},{"a":30690,"t":"code","b":[141,132,51],"m":"sta","oa":13188,"o":"a_3384"},{"a":30693,"t":"code","b":[141,136,51],"m":"sta","oa":13192,"o":"a_3388"},{"a":30696,"t":"code","b":[141,140,51],"m":"sta","oa":13196,"o":"a_338C"},{"a":30699,"t":"code","b":[96],"m":"rts"},{"a":30700,"l":"sparkle_step","c":"while the glisten counter zpa_A8 runs (its caller skips it at zero), fills the eight sparkle bytes at $3300-$338C, pixel rows 0 and 4 of characters $60, $61, $70 and $71, with random values (clearing them on the last step); those characters are the tile of object $00, so every empty cell shimmers","t":"code","b":[165,168],"m":"lda","oa":168,"x":[32805],"o":"zpa_A8"},{"a":30702,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":30704,"t":"code","b":[208,6],"m":"bne","oa":30712,"o":"b_77F8"},{"a":30706,"t":"code","b":[32,209,119],"m":"jsr","oa":30673,"o":"clear_sparkle_table"},{"a":30709,"t":"code","b":[198,168],"m":"dec","oa":168,"o":"zpa_A8"},{"a":30711,"t":"code","b":[96],"m":"rts"},{"a":30712,"l":"b_77F8","t":"code","b":[32,104,110],"m":"jsr","oa":28264,"x":[30704],"o":"random_byte"},{"a":30715,"t":"code","b":[141,0,51],"m":"sta","oa":13056,"o":"a_3300"},{"a":30718,"t":"code","b":[141,12,51],"m":"sta","oa":13068,"o":"a_330C"},{"a":30721,"t":"code","b":[32,104,110],"m":"jsr","oa":28264,"o":"random_byte"},{"a":30724,"t":"code","b":[141,132,51],"m":"sta","oa":13188,"o":"a_3384"},{"a":30727,"t":"code","b":[141,136,51],"m":"sta","oa":13192,"o":"a_3388"},{"a":30730,"t":"code","b":[32,104,110],"m":"jsr","oa":28264,"o":"random_byte"},{"a":30733,"t":"code","b":[141,4,51],"m":"sta","oa":13060,"o":"a_3304"},{"a":30736,"t":"code","b":[141,8,51],"m":"sta","oa":13064,"o":"a_3308"},{"a":30739,"t":"code","b":[32,104,110],"m":"jsr","oa":28264,"o":"random_byte"},{"a":30742,"t":"code","b":[141,128,51],"m":"sta","oa":13184,"o":"a_3380"},{"a":30745,"t":"code","b":[141,140,51],"m":"sta","oa":13196,"o":"a_338C"},{"a":30748,"t":"code","b":[198,168],"m":"dec","oa":168,"o":"zpa_A8"},{"a":30750,"t":"code","b":[96],"m":"rts"},{"a":30751,"l":"rotate_colour_table","c":"rotates the eight bytes at $2000 up by one, wrapping the first to the last","t":"code","b":[172,0,32],"m":"ldy","oa":8192,"x":[34821],"o":"a_2000"},{"a":30754,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":30756,"l":"b_7824","t":"code","b":[189,1,32],"m":"lda","oa":8193,"x":[30765],"o":"f_2001,x"},{"a":30759,"t":"code","b":[157,0,32],"m":"sta","oa":8192,"o":"a_2000,x"},{"a":30762,"t":"code","b":[232],"m":"inx"},{"a":30763,"t":"code","b":[224,7],"m":"cpx","o":"#$07"},{"a":30765,"t":"code","b":[208,245],"m":"bne","oa":30756,"o":"b_7824"},{"a":30767,"t":"code","b":[140,7,32],"m":"sty","oa":8199,"o":"a_2007"},{"a":30770,"t":"code","b":[96],"m":"rts"},{"a":30771,"l":"scroll_speed_rows","c":"vertical scroll speed table, three bytes per entry: Rockford's window row, then the speed","t":"byte","b":[3],"x":[31208,31237]},{"a":30772,"l":"scroll_row_speed_a","c":"$C0, the low byte of the first scroll speed constant for the rows","t":"byte","b":[192],"x":[31213]},{"a":30773,"l":"scroll_row_speed_b","c":"$FF, the high byte of the same constant, so the value is -64 as a 16-bit number","t":"byte","b":[255,7,0,0,8,0,0,12],"x":[31218]},{"a":30781,"t":"byte","b":[64,0]},{"a":30783,"l":"scroll_speed_cols","c":"horizontal scroll speed table, three bytes per entry: Rockford's window column, then the speed","t":"byte","b":[3],"x":[31257,31286]},{"a":30784,"l":"scroll_col_speed_a","c":"$C0, the low byte of the first scroll speed constant for the columns","t":"byte","b":[192],"x":[31262]},{"a":30785,"l":"scroll_col_speed_hi","c":"$FF, the upper half of the column constant that pairs with the $C0 at $7840 (the two make -64)","t":"byte","b":[255,9,0,0,10,0,0,16],"x":[31267]},{"a":30793,"t":"byte","b":[64,0]},{"a":30795,"l":"update_window_position","c":"when both horizontal phases zpa_E1 and zpa_E2 are zero recomputes Rockford's column within the window (zpa_E6), then when both vertical phases are zero his row (zpa_E5), from his map column zpa_44 and row zpa_45 and the scroll positions zpa_E8 and zpa_EC","t":"code","b":[165,225],"m":"lda","oa":225,"x":[31310],"o":"zpa_E1"},{"a":30797,"t":"code","b":[208,14],"m":"bne","oa":30813,"o":"b_785D"},{"a":30799,"t":"code","b":[165,226],"m":"lda","oa":226,"o":"zpa_E2"},{"a":30801,"t":"code","b":[208,10],"m":"bne","oa":30813,"o":"b_785D"},{"a":30803,"l":"set_window_column","c":"second entry of the scroll-window routine, called by scroll_horizontal_step at $7949: sets Rockford's window column zpa_E6 to his map column zpa_44 minus half the horizontal scroll position zpa_E8 (characters, two to a cell), then, only when no vertical step is under way (zpa_E3 and zpa_E4 are zero), falls through to set_window_row","t":"code","b":[165,232],"m":"lda","oa":232,"x":[31049],"o":"zpa_E8"},{"a":30805,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":30806,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":30808,"t":"code","b":[56],"m":"sec"},{"a":30809,"t":"code","b":[101,68],"m":"adc","oa":68,"o":"zpa_44"},{"a":30811,"t":"code","b":[133,230],"m":"sta","oa":230,"o":"zpa_E6"},{"a":30813,"l":"b_785D","t":"code","b":[165,227],"m":"lda","oa":227,"x":[30797,30801],"o":"zpa_E3"},{"a":30815,"t":"code","b":[208,14],"m":"bne","oa":30831,"o":"r_786F"},{"a":30817,"t":"code","b":[165,228],"m":"lda","oa":228,"o":"zpa_E4"},{"a":30819,"t":"code","b":[208,10],"m":"bne","oa":30831,"o":"r_786F"},{"a":30821,"l":"set_window_row","c":"sets Rockford's window row zpa_E5 to his map row zpa_45 minus half the vertical scroll position zpa_EC (character rows, two to a cell); called by scroll_vertical_step at $78CD","t":"code","b":[165,236],"m":"lda","oa":236,"x":[30925],"o":"zpa_EC"},{"a":30823,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":30824,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":30826,"t":"code","b":[56],"m":"sec"},{"a":30827,"t":"code","b":[101,69],"m":"adc","oa":69,"o":"zpa_45"},{"a":30829,"t":"code","b":[133,229],"m":"sta","oa":229,"o":"zpa_E5"},{"a":30831,"l":"r_786F","t":"code","b":[96],"m":"rts","x":[30815,30819]},{"a":30832,"l":"scroll_x_table","c":"the four VIC control register 2 values $15, $13, $11, $17 for the horizontal fine scroll phases","t":"byte","b":[21,19,17,23],"x":[31006]},{"a":30836,"l":"scroll_y_table","c":"the four VIC control register 1 values $17, $15, $13, $11 for the vertical fine scroll phases","t":"byte","b":[23,21,19,17],"x":[30887]},{"a":30840,"l":"scroll_vertical_step","c":"one vertical scroll step: when aligned (zpa_E3 and zpa_E4 zero) returns at once on odd zpa_C2 frames, and with the speed low byte zpa_ED at $C0 (going up) moves the screen base zpa_D6/D7 up one character row ($50 characters of the 80-wide buffer) and sets zpa_E4 to 3, leaving the position as it is. Otherwise adds the vertical speed zpa_ED/EE to the 16-bit scroll position zpa_EB/EC, takes the fine phase zpa_E3 from bits 7 and 6 of the low byte zpa_EB and writes the matching vertical scroll value to zpa_54. Going down the base moves down a row when the phase goes from 0 to 1; going up, on the step the phase comes back to 0 it recomputes the window row (set_window_row) and, unless zpa_EC is zero or that row is 7, moves the base up a row at once and sets zpa_E4 to 3; otherwise zpa_E4 keeps the new phase","t":"code","b":[165,227],"m":"lda","oa":227,"x":[31322],"o":"zpa_E3"},{"a":30842,"t":"code","b":[208,17],"m":"bne","oa":30861,"o":"b_788D"},{"a":30844,"t":"code","b":[165,228],"m":"lda","oa":228,"o":"zpa_E4"},{"a":30846,"t":"code","b":[208,13],"m":"bne","oa":30861,"o":"b_788D"},{"a":30848,"t":"code","b":[165,194],"m":"lda","oa":194,"o":"zpa_C2"},{"a":30850,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":30852,"t":"code","b":[240,1],"m":"beq","oa":30855,"o":"b_7887"},{"a":30854,"t":"code","b":[96],"m":"rts"},{"a":30855,"l":"b_7887","t":"code","b":[165,237],"m":"lda","oa":237,"x":[30852],"o":"zpa_ED"},{"a":30857,"t":"code","b":[201,192],"m":"cmp","o":"#$C0"},{"a":30859,"t":"code","b":[240,77],"m":"beq","oa":30938,"o":"b_78DA"},{"a":30861,"l":"b_788D","t":"code","b":[165,235],"m":"lda","oa":235,"x":[30842,30846],"o":"zpa_EB"},{"a":30863,"t":"code","b":[24],"m":"clc"},{"a":30864,"t":"code","b":[101,237],"m":"adc","oa":237,"o":"zpa_ED"},{"a":30866,"t":"code","b":[133,235],"m":"sta","oa":235,"o":"zpa_EB"},{"a":30868,"t":"code","b":[165,236],"m":"lda","oa":236,"o":"zpa_EC"},{"a":30870,"t":"code","b":[101,238],"m":"adc","oa":238,"o":"zpa_EE"},{"a":30872,"t":"code","b":[133,236],"m":"sta","oa":236,"o":"zpa_EC"},{"a":30874,"t":"code","b":[165,235],"m":"lda","oa":235,"o":"zpa_EB"},{"a":30876,"t":"code","b":[24],"m":"clc"},{"a":30877,"t":"code","b":[42],"m":"rol","o":"a"},{"a":30878,"t":"code","b":[42],"m":"rol","o":"a"},{"a":30879,"t":"code","b":[42],"m":"rol","o":"a"},{"a":30880,"t":"code","b":[42],"m":"rol","o":"a"},{"a":30881,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":30883,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":30884,"t":"code","b":[133,227],"m":"sta","oa":227,"o":"zpa_E3"},{"a":30886,"t":"code","b":[170],"m":"tax"},{"a":30887,"t":"code","b":[189,116,120],"m":"lda","oa":30836,"o":"scroll_y_table,x"},{"a":30890,"t":"code","b":[133,84],"m":"sta","oa":84,"o":"zpa_54"},{"a":30892,"t":"code","b":[165,227],"m":"lda","oa":227,"o":"zpa_E3"},{"a":30894,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":30896,"t":"code","b":[208,17],"m":"bne","oa":30915,"o":"b_78C3"},{"a":30898,"t":"code","b":[165,228],"m":"lda","oa":228,"o":"zpa_E4"},{"a":30900,"t":"code","b":[208,13],"m":"bne","oa":30915,"o":"b_78C3"},{"a":30902,"t":"code","b":[165,214],"m":"lda","oa":214,"o":"zpa_D6"},{"a":30904,"t":"code","b":[24],"m":"clc"},{"a":30905,"t":"code","b":[105,80],"m":"adc","o":"#$50"},{"a":30907,"t":"code","b":[133,214],"m":"sta","oa":214,"o":"zpa_D6"},{"a":30909,"t":"code","b":[165,215],"m":"lda","oa":215,"o":"zpa_D7"},{"a":30911,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":30913,"t":"code","b":[133,215],"m":"sta","oa":215,"o":"zpa_D7"},{"a":30915,"l":"b_78C3","t":"code","b":[165,227],"m":"lda","oa":227,"x":[30896,30900],"o":"zpa_E3"},{"a":30917,"t":"code","b":[208,37],"m":"bne","oa":30956,"o":"b_78EC"},{"a":30919,"t":"code","b":[165,228],"m":"lda","oa":228,"o":"zpa_E4"},{"a":30921,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":30923,"t":"code","b":[208,31],"m":"bne","oa":30956,"o":"b_78EC"},{"a":30925,"t":"code","b":[32,101,120],"m":"jsr","oa":30821,"o":"set_window_row"},{"a":30928,"t":"code","b":[165,236],"m":"lda","oa":236,"o":"zpa_EC"},{"a":30930,"t":"code","b":[240,24],"m":"beq","oa":30956,"o":"b_78EC"},{"a":30932,"t":"code","b":[165,229],"m":"lda","oa":229,"o":"zpa_E5"},{"a":30934,"t":"code","b":[201,7],"m":"cmp","o":"#$07"},{"a":30936,"t":"code","b":[240,18],"m":"beq","oa":30956,"o":"b_78EC"},{"a":30938,"l":"b_78DA","t":"code","b":[165,214],"m":"lda","oa":214,"x":[30859],"o":"zpa_D6"},{"a":30940,"t":"code","b":[56],"m":"sec"},{"a":30941,"t":"code","b":[233,80],"m":"sbc","o":"#$50"},{"a":30943,"t":"code","b":[133,214],"m":"sta","oa":214,"o":"zpa_D6"},{"a":30945,"t":"code","b":[165,215],"m":"lda","oa":215,"o":"zpa_D7"},{"a":30947,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":30949,"t":"code","b":[133,215],"m":"sta","oa":215,"o":"zpa_D7"},{"a":30951,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":30953,"t":"code","b":[133,228],"m":"sta","oa":228,"o":"zpa_E4"},{"a":30955,"t":"code","b":[96],"m":"rts"},{"a":30956,"l":"b_78EC","t":"code","b":[165,227],"m":"lda","oa":227,"x":[30917,30923,30930,30936],"o":"zpa_E3"},{"a":30958,"t":"code","b":[133,228],"m":"sta","oa":228,"o":"zpa_E4"},{"a":30960,"t":"code","b":[96],"m":"rts"},{"a":30961,"l":"scroll_horizontal_step","c":"the horizontal scroll step, built like scroll_vertical_step: speed zpa_E9/EA, position zpa_E7/E8, phase zpa_E1 (bits 7 and 6 of zpa_E7) with the previous phase in zpa_E2, VIC scroll value from scroll_x_table into zpa_56 (ORed with the 40-column bit $08 when the intro delay zpa_95 has ended and the cave number zpa_5D is $11 or more; scroll_update does not call this routine in an intermission after the intro). The screen base zpa_D6/D7 moves one character right when the phase goes from 0 to 1, and one left at once from rest when the speed low byte is $C0, and while the scroll continues on the step the phase comes back to 0, unless zpa_E8 is zero or the window column (set_window_column) is 9","t":"code","b":[165,225],"m":"lda","oa":225,"x":[31319],"o":"zpa_E1"},{"a":30963,"t":"code","b":[208,17],"m":"bne","oa":30982,"o":"b_7906"},{"a":30965,"t":"code","b":[165,226],"m":"lda","oa":226,"o":"zpa_E2"},{"a":30967,"t":"code","b":[208,13],"m":"bne","oa":30982,"o":"b_7906"},{"a":30969,"t":"code","b":[165,194],"m":"lda","oa":194,"o":"zpa_C2"},{"a":30971,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":30973,"t":"code","b":[240,1],"m":"beq","oa":30976,"o":"b_7900"},{"a":30975,"t":"code","b":[96],"m":"rts"},{"a":30976,"l":"b_7900","t":"code","b":[165,233],"m":"lda","oa":233,"x":[30973],"o":"zpa_E9"},{"a":30978,"t":"code","b":[201,192],"m":"cmp","o":"#$C0"},{"a":30980,"t":"code","b":[240,80],"m":"beq","oa":31062,"o":"b_7956"},{"a":30982,"l":"b_7906","t":"code","b":[165,231],"m":"lda","oa":231,"x":[30963,30967],"o":"zpa_E7"},{"a":30984,"t":"code","b":[24],"m":"clc"},{"a":30985,"t":"code","b":[101,233],"m":"adc","oa":233,"o":"zpa_E9"},{"a":30987,"t":"code","b":[133,231],"m":"sta","oa":231,"o":"zpa_E7"},{"a":30989,"t":"code","b":[165,232],"m":"lda","oa":232,"o":"zpa_E8"},{"a":30991,"t":"code","b":[101,234],"m":"adc","oa":234,"o":"zpa_EA"},{"a":30993,"t":"code","b":[133,232],"m":"sta","oa":232,"o":"zpa_E8"},{"a":30995,"t":"code","b":[165,231],"m":"lda","oa":231,"o":"zpa_E7"},{"a":30997,"t":"code","b":[24],"m":"clc"},{"a":30998,"t":"code","b":[42],"m":"rol","o":"a"},{"a":30999,"t":"code","b":[42],"m":"rol","o":"a"},{"a":31000,"t":"code","b":[42],"m":"rol","o":"a"},{"a":31001,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":31003,"t":"code","b":[133,225],"m":"sta","oa":225,"o":"zpa_E1"},{"a":31005,"t":"code","b":[170],"m":"tax"},{"a":31006,"t":"code","b":[189,112,120],"m":"lda","oa":30832,"o":"scroll_x_table,x"},{"a":31009,"t":"code","b":[166,149],"m":"ldx","oa":149,"o":"zpa_95"},{"a":31011,"t":"code","b":[208,8],"m":"bne","oa":31021,"o":"b_792D"},{"a":31013,"t":"code","b":[166,93],"m":"ldx","oa":93,"o":"zpa_5D"},{"a":31015,"t":"code","b":[224,17],"m":"cpx","o":"#$11"},{"a":31017,"t":"code","b":[144,2],"m":"bcc","oa":31021,"o":"b_792D"},{"a":31019,"t":"code","b":[9,8],"m":"ora","o":"#$08"},{"a":31021,"l":"b_792D","t":"code","b":[133,86],"m":"sta","oa":86,"x":[31011,31017],"o":"zpa_56"},{"a":31023,"t":"code","b":[165,225],"m":"lda","oa":225,"o":"zpa_E1"},{"a":31025,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":31027,"t":"code","b":[208,10],"m":"bne","oa":31039,"o":"b_793F"},{"a":31029,"t":"code","b":[165,226],"m":"lda","oa":226,"o":"zpa_E2"},{"a":31031,"t":"code","b":[208,6],"m":"bne","oa":31039,"o":"b_793F"},{"a":31033,"t":"code","b":[230,214],"m":"inc","oa":214,"o":"zpa_D6"},{"a":31035,"t":"code","b":[208,2],"m":"bne","oa":31039,"o":"b_793F"},{"a":31037,"t":"code","b":[230,215],"m":"inc","oa":215,"o":"zpa_D7"},{"a":31039,"l":"b_793F","t":"code","b":[165,225],"m":"lda","oa":225,"x":[31027,31031,31035],"o":"zpa_E1"},{"a":31041,"t":"code","b":[208,37],"m":"bne","oa":31080,"o":"b_7968"},{"a":31043,"t":"code","b":[165,226],"m":"lda","oa":226,"o":"zpa_E2"},{"a":31045,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":31047,"t":"code","b":[208,31],"m":"bne","oa":31080,"o":"b_7968"},{"a":31049,"t":"code","b":[32,83,120],"m":"jsr","oa":30803,"o":"set_window_column"},{"a":31052,"t":"code","b":[165,232],"m":"lda","oa":232,"o":"zpa_E8"},{"a":31054,"t":"code","b":[240,24],"m":"beq","oa":31080,"o":"b_7968"},{"a":31056,"t":"code","b":[165,230],"m":"lda","oa":230,"o":"zpa_E6"},{"a":31058,"t":"code","b":[201,9],"m":"cmp","o":"#$09"},{"a":31060,"t":"code","b":[240,18],"m":"beq","oa":31080,"o":"b_7968"},{"a":31062,"l":"b_7956","t":"code","b":[165,214],"m":"lda","oa":214,"x":[30980],"o":"zpa_D6"},{"a":31064,"t":"code","b":[56],"m":"sec"},{"a":31065,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":31067,"t":"code","b":[133,214],"m":"sta","oa":214,"o":"zpa_D6"},{"a":31069,"t":"code","b":[165,215],"m":"lda","oa":215,"o":"zpa_D7"},{"a":31071,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":31073,"t":"code","b":[133,215],"m":"sta","oa":215,"o":"zpa_D7"},{"a":31075,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":31077,"t":"code","b":[133,226],"m":"sta","oa":226,"o":"zpa_E2"},{"a":31079,"t":"code","b":[96],"m":"rts"},{"a":31080,"l":"b_7968","t":"code","b":[165,225],"m":"lda","oa":225,"x":[31041,31047,31054,31060],"o":"zpa_E1"},{"a":31082,"t":"code","b":[133,226],"m":"sta","oa":226,"o":"zpa_E2"},{"a":31084,"t":"code","b":[96],"m":"rts"},{"a":31085,"l":"scroll_edge_stop","c":"sets the scroll speeds to zero when the position reaches the cave's left or top edge, or $15 (vertical) or $2A (horizontal) in the high byte at the right or bottom edge","t":"code","b":[162,0],"m":"ldx","x":[31316],"o":"#$00"},{"a":31087,"t":"code","b":[165,235],"m":"lda","oa":235,"o":"zpa_EB"},{"a":31089,"t":"code","b":[208,24],"m":"bne","oa":31115,"o":"b_798B"},{"a":31091,"t":"code","b":[165,236],"m":"lda","oa":236,"o":"zpa_EC"},{"a":31093,"t":"code","b":[208,8],"m":"bne","oa":31103,"o":"b_797F"},{"a":31095,"t":"code","b":[164,238],"m":"ldy","oa":238,"o":"zpa_EE"},{"a":31097,"t":"code","b":[240,4],"m":"beq","oa":31103,"o":"b_797F"},{"a":31099,"t":"code","b":[134,237],"m":"stx","oa":237,"o":"zpa_ED"},{"a":31101,"t":"code","b":[134,238],"m":"stx","oa":238,"o":"zpa_EE"},{"a":31103,"l":"b_797F","t":"code","b":[201,21],"m":"cmp","x":[31093,31097],"o":"#$15"},{"a":31105,"t":"code","b":[208,8],"m":"bne","oa":31115,"o":"b_798B"},{"a":31107,"t":"code","b":[164,238],"m":"ldy","oa":238,"o":"zpa_EE"},{"a":31109,"t":"code","b":[208,4],"m":"bne","oa":31115,"o":"b_798B"},{"a":31111,"t":"code","b":[134,237],"m":"stx","oa":237,"o":"zpa_ED"},{"a":31113,"t":"code","b":[134,238],"m":"stx","oa":238,"o":"zpa_EE"},{"a":31115,"l":"b_798B","t":"code","b":[165,231],"m":"lda","oa":231,"x":[31089,31105,31109],"o":"zpa_E7"},{"a":31117,"t":"code","b":[208,24],"m":"bne","oa":31143,"o":"r_79A7"},{"a":31119,"t":"code","b":[165,232],"m":"lda","oa":232,"o":"zpa_E8"},{"a":31121,"t":"code","b":[208,8],"m":"bne","oa":31131,"o":"b_799B"},{"a":31123,"t":"code","b":[164,234],"m":"ldy","oa":234,"o":"zpa_EA"},{"a":31125,"t":"code","b":[240,4],"m":"beq","oa":31131,"o":"b_799B"},{"a":31127,"t":"code","b":[134,233],"m":"stx","oa":233,"o":"zpa_E9"},{"a":31129,"t":"code","b":[134,234],"m":"stx","oa":234,"o":"zpa_EA"},{"a":31131,"l":"b_799B","t":"code","b":[201,42],"m":"cmp","x":[31121,31125],"o":"#$2A"},{"a":31133,"t":"code","b":[208,8],"m":"bne","oa":31143,"o":"r_79A7"},{"a":31135,"t":"code","b":[164,234],"m":"ldy","oa":234,"o":"zpa_EA"},{"a":31137,"t":"code","b":[208,4],"m":"bne","oa":31143,"o":"r_79A7"},{"a":31139,"t":"code","b":[134,233],"m":"stx","oa":233,"o":"zpa_E9"},{"a":31141,"t":"code","b":[134,234],"m":"stx","oa":234,"o":"zpa_EA"},{"a":31143,"l":"r_79A7","t":"code","b":[96],"m":"rts","x":[31117,31133,31137]},{"a":31144,"l":"scroll_vertical_speed","c":"sets the vertical speed to +$0040 when Rockford's window row zpa_E5 is $0B or more and to -$0040 when it is below 5","t":"code","b":[165,229],"m":"lda","oa":229,"x":[31248],"o":"zpa_E5"},{"a":31146,"t":"code","b":[201,11],"m":"cmp","o":"#$0B"},{"a":31148,"t":"code","b":[48,8],"m":"bmi","oa":31158,"o":"b_79B6"},{"a":31150,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":31152,"t":"code","b":[133,237],"m":"sta","oa":237,"o":"zpa_ED"},{"a":31154,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":31156,"t":"code","b":[133,238],"m":"sta","oa":238,"o":"zpa_EE"},{"a":31158,"l":"b_79B6","t":"code","b":[165,229],"m":"lda","oa":229,"x":[31148],"o":"zpa_E5"},{"a":31160,"t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":31162,"t":"code","b":[16,8],"m":"bpl","oa":31172,"o":"r_79C4"},{"a":31164,"t":"code","b":[169,192],"m":"lda","o":"#$C0"},{"a":31166,"t":"code","b":[133,237],"m":"sta","oa":237,"o":"zpa_ED"},{"a":31168,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":31170,"t":"code","b":[133,238],"m":"sta","oa":238,"o":"zpa_EE"},{"a":31172,"l":"r_79C4","t":"code","b":[96],"m":"rts","x":[31162]},{"a":31173,"l":"scroll_horizontal_speed","c":"sets the horizontal speed to +$0040 when Rockford's window column zpa_E6 is $11 or more and to -$0040 when it is below 3","t":"code","b":[165,230],"m":"lda","oa":230,"x":[31297],"o":"zpa_E6"},{"a":31175,"t":"code","b":[201,17],"m":"cmp","o":"#$11"},{"a":31177,"t":"code","b":[48,8],"m":"bmi","oa":31187,"o":"b_79D3"},{"a":31179,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":31181,"t":"code","b":[133,233],"m":"sta","oa":233,"o":"zpa_E9"},{"a":31183,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":31185,"t":"code","b":[133,234],"m":"sta","oa":234,"o":"zpa_EA"},{"a":31187,"l":"b_79D3","t":"code","b":[165,230],"m":"lda","oa":230,"x":[31177],"o":"zpa_E6"},{"a":31189,"t":"code","b":[201,3],"m":"cmp","o":"#$03"},{"a":31191,"t":"code","b":[16,8],"m":"bpl","oa":31201,"o":"r_79E1"},{"a":31193,"t":"code","b":[169,192],"m":"lda","o":"#$C0"},{"a":31195,"t":"code","b":[133,233],"m":"sta","oa":233,"o":"zpa_E9"},{"a":31197,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":31199,"t":"code","b":[133,234],"m":"sta","oa":234,"o":"zpa_EA"},{"a":31201,"l":"r_79E1","t":"code","b":[96],"m":"rts","x":[31191]},{"a":31202,"l":"scroll_speed_tables","c":"looks up the scroll speeds in the vertical table at $7833 (row, speed low, speed high) and the horizontal table at $783F by Rockford's window row and column, and calls the two edge speed routines","t":"code","b":[160,9],"m":"ldy","x":[31313],"o":"#$09"},{"a":31204,"t":"code","b":[162,4],"m":"ldx","o":"#$04"},{"a":31206,"l":"b_79E6","t":"code","b":[165,229],"m":"lda","oa":229,"x":[31246],"o":"zpa_E5"},{"a":31208,"t":"code","b":[217,51,120],"m":"cmp","oa":30771,"o":"scroll_speed_rows,y"},{"a":31211,"t":"code","b":[208,10],"m":"bne","oa":31223,"o":"b_79F7"},{"a":31213,"l":"b_79ED","t":"code","b":[185,52,120],"m":"lda","oa":30772,"x":[31240],"o":"scroll_row_speed_a,y"},{"a":31216,"t":"code","b":[133,237],"m":"sta","oa":237,"o":"zpa_ED"},{"a":31218,"t":"code","b":[185,53,120],"m":"lda","oa":30773,"o":"scroll_row_speed_b,y"},{"a":31221,"t":"code","b":[133,238],"m":"sta","oa":238,"o":"zpa_EE"},{"a":31223,"l":"b_79F7","t":"code","b":[165,236],"m":"lda","oa":236,"x":[31211],"o":"zpa_EC"},{"a":31225,"t":"code","b":[240,15],"m":"beq","oa":31242,"o":"b_7A0A"},{"a":31227,"t":"code","b":[165,237],"m":"lda","oa":237,"o":"zpa_ED"},{"a":31229,"t":"code","b":[208,11],"m":"bne","oa":31242,"o":"b_7A0A"},{"a":31231,"t":"code","b":[165,149],"m":"lda","oa":149,"o":"zpa_95"},{"a":31233,"t":"code","b":[240,7],"m":"beq","oa":31242,"o":"b_7A0A"},{"a":31235,"t":"code","b":[165,229],"m":"lda","oa":229,"o":"zpa_E5"},{"a":31237,"t":"code","b":[217,51,120],"m":"cmp","oa":30771,"o":"scroll_speed_rows,y"},{"a":31240,"t":"code","b":[144,227],"m":"bcc","oa":31213,"o":"b_79ED"},{"a":31242,"l":"b_7A0A","t":"code","b":[136],"m":"dey","x":[31225,31229,31233]},{"a":31243,"t":"code","b":[136],"m":"dey"},{"a":31244,"t":"code","b":[136],"m":"dey"},{"a":31245,"t":"code","b":[202],"m":"dex"},{"a":31246,"t":"code","b":[208,214],"m":"bne","oa":31206,"o":"b_79E6"},{"a":31248,"t":"code","b":[32,168,121],"m":"jsr","oa":31144,"o":"scroll_vertical_speed"},{"a":31251,"t":"code","b":[160,9],"m":"ldy","o":"#$09"},{"a":31253,"t":"code","b":[162,4],"m":"ldx","o":"#$04"},{"a":31255,"l":"b_7A17","t":"code","b":[165,230],"m":"lda","oa":230,"x":[31295],"o":"zpa_E6"},{"a":31257,"t":"code","b":[217,63,120],"m":"cmp","oa":30783,"o":"scroll_speed_cols,y"},{"a":31260,"t":"code","b":[208,10],"m":"bne","oa":31272,"o":"b_7A28"},{"a":31262,"l":"b_7A1E","t":"code","b":[185,64,120],"m":"lda","oa":30784,"x":[31289],"o":"scroll_col_speed_a,y"},{"a":31265,"t":"code","b":[133,233],"m":"sta","oa":233,"o":"zpa_E9"},{"a":31267,"t":"code","b":[185,65,120],"m":"lda","oa":30785,"o":"scroll_col_speed_hi,y"},{"a":31270,"t":"code","b":[133,234],"m":"sta","oa":234,"o":"zpa_EA"},{"a":31272,"l":"b_7A28","t":"code","b":[165,232],"m":"lda","oa":232,"x":[31260],"o":"zpa_E8"},{"a":31274,"t":"code","b":[240,15],"m":"beq","oa":31291,"o":"b_7A3B"},{"a":31276,"t":"code","b":[165,233],"m":"lda","oa":233,"o":"zpa_E9"},{"a":31278,"t":"code","b":[208,11],"m":"bne","oa":31291,"o":"b_7A3B"},{"a":31280,"t":"code","b":[165,149],"m":"lda","oa":149,"o":"zpa_95"},{"a":31282,"t":"code","b":[240,7],"m":"beq","oa":31291,"o":"b_7A3B"},{"a":31284,"t":"code","b":[165,230],"m":"lda","oa":230,"o":"zpa_E6"},{"a":31286,"t":"code","b":[217,63,120],"m":"cmp","oa":30783,"o":"scroll_speed_cols,y"},{"a":31289,"t":"code","b":[144,227],"m":"bcc","oa":31262,"o":"b_7A1E"},{"a":31291,"l":"b_7A3B","t":"code","b":[136],"m":"dey","x":[31274,31278,31282]},{"a":31292,"t":"code","b":[136],"m":"dey"},{"a":31293,"t":"code","b":[136],"m":"dey"},{"a":31294,"t":"code","b":[202],"m":"dex"},{"a":31295,"t":"code","b":[208,214],"m":"bne","oa":31255,"o":"b_7A17"},{"a":31297,"t":"code","b":[32,197,121],"m":"jsr","oa":31173,"o":"scroll_horizontal_speed"},{"a":31300,"t":"code","b":[96],"m":"rts"},{"a":31301,"l":"scroll_update","c":"unless the cave is an intermission (zpa_A6, its cave_order_table flag) and the intro delay zpa_95 has ended, updates Rockford's window position, the scroll speeds and edge stops, and takes the horizontal and vertical steps; so the view of an intermission stops scrolling when play starts","t":"code","b":[165,166],"m":"lda","oa":166,"x":[32473],"o":"zpa_A6"},{"a":31303,"t":"code","b":[240,5],"m":"beq","oa":31310,"o":"b_7A4E"},{"a":31305,"t":"code","b":[165,149],"m":"lda","oa":149,"o":"zpa_95"},{"a":31307,"t":"code","b":[208,1],"m":"bne","oa":31310,"o":"b_7A4E"},{"a":31309,"t":"code","b":[96],"m":"rts"},{"a":31310,"l":"b_7A4E","t":"code","b":[32,75,120],"m":"jsr","oa":30795,"x":[31303,31307],"o":"update_window_position"},{"a":31313,"t":"code","b":[32,226,121],"m":"jsr","oa":31202,"o":"scroll_speed_tables"},{"a":31316,"t":"code","b":[32,109,121],"m":"jsr","oa":31085,"o":"scroll_edge_stop"},{"a":31319,"t":"code","b":[32,241,120],"m":"jsr","oa":30961,"o":"scroll_horizontal_step"},{"a":31322,"t":"code","b":[32,120,120],"m":"jsr","oa":30840,"o":"scroll_vertical_step"},{"a":31325,"t":"code","b":[96],"m":"rts"},{"a":31326,"l":"advance_map_pointer","c":"adds one to the map pointer zpp_32/33","t":"code","b":[230,50],"m":"inc","oa":50,"x":[31659,32849],"o":"zpp_32"},{"a":31328,"t":"code","b":[208,2],"m":"bne","oa":31332,"o":"r_7A64"},{"a":31330,"t":"code","b":[230,51],"m":"inc","oa":51,"o":"zpa_33"},{"a":31332,"l":"r_7A64","t":"code","b":[96],"m":"rts","x":[31328]},{"a":31333,"l":"set_row_pointer","c":"sets the map pointer zpp_32/33 to $0827, or $084F when Z is clear; the cell the update pass handles is at pointer + $29","t":"code","b":[240,2],"m":"beq","oa":31337,"x":[31488,31645,32839,33155],"o":"b_7A69"},{"a":31335,"t":"code","b":[169,40],"m":"lda","o":"#$28"},{"a":31337,"l":"b_7A69","t":"code","b":[24],"m":"clc","x":[31333]},{"a":31338,"t":"code","b":[105,39],"m":"adc","o":"#$27"},{"a":31340,"t":"code","b":[133,50],"m":"sta","oa":50,"o":"zpp_32"},{"a":31342,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":31344,"t":"code","b":[133,51],"m":"sta","oa":51,"o":"zpa_33"},{"a":31346,"t":"code","b":[96],"m":"rts"},{"a":31347,"l":"fill_screen_buffer","c":"fills the 22 pairs of rows of the 80-character-wide scroll buffer, 160 characters per entry of the row table at $53DA, with character $7C","t":"code","b":[162,0],"m":"ldx","x":[33787,36413],"o":"#$00"},{"a":31349,"l":"b_7A75","t":"code","b":[189,218,83],"m":"lda","oa":21466,"x":[31374],"o":"scroll_row_low,x"},{"a":31352,"t":"code","b":[133,52],"m":"sta","oa":52,"o":"zpa_34"},{"a":31354,"t":"code","b":[189,219,83],"m":"lda","oa":21467,"o":"scroll_row_table,x"},{"a":31357,"t":"code","b":[133,53],"m":"sta","oa":53,"o":"zpa_35"},{"a":31359,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":31361,"t":"code","b":[169,124],"m":"lda","o":"#$7C"},{"a":31363,"l":"b_7A83","t":"code","b":[145,52],"m":"sta","oa":52,"x":[31368],"o":"(zpa_34),y"},{"a":31365,"t":"code","b":[200],"m":"iny"},{"a":31366,"t":"code","b":[192,160],"m":"cpy","o":"#$A0"},{"a":31368,"t":"code","b":[208,249],"m":"bne","oa":31363,"o":"b_7A83"},{"a":31370,"t":"code","b":[232],"m":"inx"},{"a":31371,"t":"code","b":[232],"m":"inx"},{"a":31372,"t":"code","b":[224,44],"m":"cpx","o":"#$2C"},{"a":31374,"t":"code","b":[208,229],"m":"bne","oa":31349,"o":"b_7A75"},{"a":31376,"t":"code","b":[96],"m":"rts"},{"a":31377,"l":"scatter_cover","c":"sets up 24 row pointers at $02-$31, $50 apart, from the screen base zpa_D6/D7, then in 48 rounds puts the character $7C in one random column, 0 to $2A, of each of those 24 character rows, the part of the scroll buffer from the screen base; used to wipe the cave away at the end (end_of_cave, $83F8, before fill_screen_buffer covers the whole buffer)","t":"code","b":[165,214],"m":"lda","oa":214,"x":[33784],"o":"zpa_D6"},{"a":31379,"t":"code","b":[133,2],"m":"sta","oa":2,"o":"zpp_02"},{"a":31381,"t":"code","b":[165,215],"m":"lda","oa":215,"o":"zpa_D7"},{"a":31383,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"zpa_03"},{"a":31385,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":31387,"l":"b_7A9B","t":"code","b":[181,2],"m":"lda","oa":2,"x":[31404],"o":"zpp_02,x"},{"a":31389,"t":"code","b":[24],"m":"clc"},{"a":31390,"t":"code","b":[105,80],"m":"adc","o":"#$50"},{"a":31392,"t":"code","b":[149,4],"m":"sta","oa":4,"o":"zpp_04,x"},{"a":31394,"t":"code","b":[181,3],"m":"lda","oa":3,"o":"zpa_03,x"},{"a":31396,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":31398,"t":"code","b":[149,5],"m":"sta","oa":5,"o":"zpp_05,x"},{"a":31400,"t":"code","b":[232],"m":"inx"},{"a":31401,"t":"code","b":[232],"m":"inx"},{"a":31402,"t":"code","b":[224,46],"m":"cpx","o":"#$2E"},{"a":31404,"t":"code","b":[208,237],"m":"bne","oa":31387,"o":"b_7A9B"},{"a":31406,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":31408,"t":"code","b":[133,145],"m":"sta","oa":145,"o":"zpa_91"},{"a":31410,"l":"b_7AB2","t":"code","b":[162,0],"m":"ldx","x":[31458],"o":"#$00"},{"a":31412,"l":"b_7AB4","t":"code","b":[169,0],"m":"lda","x":[31450],"o":"#$00"},{"a":31414,"t":"code","b":[133,186],"m":"sta","oa":186,"o":"zpa_BA"},{"a":31416,"t":"code","b":[181,2],"m":"lda","oa":2,"o":"zpp_02,x"},{"a":31418,"t":"code","b":[133,54],"m":"sta","oa":54,"o":"zpp_36"},{"a":31420,"t":"code","b":[181,3],"m":"lda","oa":3,"o":"zpa_03,x"},{"a":31422,"t":"code","b":[133,55],"m":"sta","oa":55,"o":"zpa_37"},{"a":31424,"l":"b_7AC0","t":"code","b":[32,104,110],"m":"jsr","oa":28264,"x":[31431],"o":"random_byte"},{"a":31427,"t":"code","b":[41,63],"m":"and","o":"#$3F"},{"a":31429,"t":"code","b":[201,43],"m":"cmp","o":"#$2B"},{"a":31431,"t":"code","b":[176,247],"m":"bcs","oa":31424,"o":"b_7AC0"},{"a":31433,"t":"code","b":[168],"m":"tay"},{"a":31434,"t":"code","b":[230,186],"m":"inc","oa":186,"o":"zpa_BA"},{"a":31436,"t":"code","b":[208,4],"m":"bne","oa":31442,"o":"b_7AD2"},{"a":31438,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":31440,"t":"code","b":[145,54],"m":"sta","oa":54,"o":"(zpp_36),y"},{"a":31442,"l":"b_7AD2","t":"code","b":[169,124],"m":"lda","x":[31436],"o":"#$7C"},{"a":31444,"t":"code","b":[145,54],"m":"sta","oa":54,"o":"(zpp_36),y"},{"a":31446,"t":"code","b":[232],"m":"inx"},{"a":31447,"t":"code","b":[232],"m":"inx"},{"a":31448,"t":"code","b":[224,48],"m":"cpx","o":"#$30"},{"a":31450,"t":"code","b":[208,216],"m":"bne","oa":31412,"o":"b_7AB4"},{"a":31452,"t":"code","b":[230,145],"m":"inc","oa":145,"o":"zpa_91"},{"a":31454,"t":"code","b":[165,145],"m":"lda","oa":145,"o":"zpa_91"},{"a":31456,"t":"code","b":[201,48],"m":"cmp","o":"#$30"},{"a":31458,"t":"code","b":[208,206],"m":"bne","oa":31410,"o":"b_7AB2"},{"a":31460,"t":"code","b":[96],"m":"rts"},{"a":31461,"l":"buffer_edge_fill","c":"writes $4A into the 259 bytes at $4DC3-$4EC2 and $4000-$4002, the edges of the scroll buffer","t":"code","b":[162,0],"m":"ldx","x":[31678],"o":"#$00"},{"a":31463,"t":"code","b":[169,74],"m":"lda","o":"#$4A"},{"a":31465,"l":"b_7AE9","t":"code","b":[157,195,77],"m":"sta","oa":19907,"x":[31469],"o":"f_4DC3,x"},{"a":31468,"t":"code","b":[202],"m":"dex"},{"a":31469,"t":"code","b":[208,250],"m":"bne","oa":31465,"o":"b_7AE9"},{"a":31471,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":31473,"l":"b_7AF1","t":"code","b":[157,0,64],"m":"sta","oa":16384,"x":[31477],"o":"f_4000,x"},{"a":31476,"t":"code","b":[202],"m":"dex"},{"a":31477,"t":"code","b":[16,250],"m":"bpl","oa":31473,"o":"b_7AF1"},{"a":31479,"t":"code","b":[96],"m":"rts"},{"a":31480,"l":"reveal_random_cells","c":"draws the cave onto the covered screen by picking a random column in each of the 22 rows and drawing that cell, $45 passes; the opening reveal of a cave","t":"code","b":[169,69],"m":"lda","x":[31638],"o":"#$45"},{"a":31482,"t":"code","b":[133,187],"m":"sta","oa":187,"o":"zpa_BB"},{"a":31484,"l":"b_7AFC","t":"code","b":[169,0],"m":"lda","x":[31550],"o":"#$00"},{"a":31486,"t":"code","b":[133,146],"m":"sta","oa":146,"o":"zpa_92"},{"a":31488,"t":"code","b":[32,101,122],"m":"jsr","oa":31333,"o":"set_row_pointer"},{"a":31491,"l":"b_7B03","t":"code","b":[32,104,110],"m":"jsr","oa":28264,"x":[31501,31546],"o":"random_byte"},{"a":31494,"t":"code","b":[133,145],"m":"sta","oa":145,"o":"zpa_91"},{"a":31496,"t":"code","b":[169,39],"m":"lda","o":"#$27"},{"a":31498,"t":"code","b":[56],"m":"sec"},{"a":31499,"t":"code","b":[229,145],"m":"sbc","oa":145,"o":"zpa_91"},{"a":31501,"t":"code","b":[144,244],"m":"bcc","oa":31491,"o":"b_7B03"},{"a":31503,"t":"code","b":[133,188],"m":"sta","oa":188,"o":"zpa_BC"},{"a":31505,"t":"code","b":[230,188],"m":"inc","oa":188,"o":"zpa_BC"},{"a":31507,"t":"code","b":[165,50],"m":"lda","oa":50,"o":"zpp_32"},{"a":31509,"t":"code","b":[24],"m":"clc"},{"a":31510,"t":"code","b":[101,145],"m":"adc","oa":145,"o":"zpa_91"},{"a":31512,"t":"code","b":[133,50],"m":"sta","oa":50,"o":"zpp_32"},{"a":31514,"t":"code","b":[165,51],"m":"lda","oa":51,"o":"zpa_33"},{"a":31516,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":31518,"t":"code","b":[133,51],"m":"sta","oa":51,"o":"zpa_33"},{"a":31520,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":31522,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":31524,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":31527,"t":"code","b":[165,50],"m":"lda","oa":50,"o":"zpp_32"},{"a":31529,"t":"code","b":[24],"m":"clc"},{"a":31530,"t":"code","b":[101,188],"m":"adc","oa":188,"o":"zpa_BC"},{"a":31532,"t":"code","b":[133,50],"m":"sta","oa":50,"o":"zpp_32"},{"a":31534,"t":"code","b":[165,51],"m":"lda","oa":51,"o":"zpa_33"},{"a":31536,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":31538,"t":"code","b":[133,51],"m":"sta","oa":51,"o":"zpa_33"},{"a":31540,"t":"code","b":[230,146],"m":"inc","oa":146,"o":"zpa_92"},{"a":31542,"t":"code","b":[165,146],"m":"lda","oa":146,"o":"zpa_92"},{"a":31544,"t":"code","b":[201,22],"m":"cmp","o":"#$16"},{"a":31546,"t":"code","b":[208,199],"m":"bne","oa":31491,"o":"b_7B03"},{"a":31548,"t":"code","b":[198,187],"m":"dec","oa":187,"o":"zpa_BB"},{"a":31550,"t":"code","b":[208,188],"m":"bne","oa":31484,"o":"b_7AFC"},{"a":31552,"t":"code","b":[96],"m":"rts"},{"a":31553,"l":"intro_effects","c":"while the intro flag zpa_BD is set plays a random tick on voice 2 one frame in three (a counter at a_980B runs 1, 2, 3: the tick starts on 1 and the gate closes on 3) and, every frame, rotates the eight bytes at $33E0 so the cover character animates","t":"code","b":[165,189],"m":"lda","oa":189,"x":[32459],"o":"zpa_BD"},{"a":31555,"t":"code","b":[240,75],"m":"beq","oa":31632,"o":"b_7B90"},{"a":31557,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":31559,"t":"code","b":[141,13,152],"m":"sta","oa":38925,"o":"a_980D"},{"a":31562,"t":"code","b":[238,11,152],"m":"inc","oa":38923,"o":"a_980B"},{"a":31565,"t":"code","b":[173,11,152],"m":"lda","oa":38923,"o":"a_980B"},{"a":31568,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":31570,"t":"code","b":[240,36],"m":"beq","oa":31608,"o":"b_7B78"},{"a":31572,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":31574,"t":"code","b":[208,22],"m":"bne","oa":31598,"o":"b_7B6E"},{"a":31576,"t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":31578,"t":"code","b":[141,12,212],"m":"sta","o":"sid_v2_attack_decay"},{"a":31581,"t":"code","b":[32,104,110],"m":"jsr","oa":28264,"o":"random_byte"},{"a":31584,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":31586,"t":"code","b":[105,100],"m":"adc","o":"#$64"},{"a":31588,"t":"code","b":[141,8,212],"m":"sta","o":"sid_v2_freq_hi"},{"a":31591,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":31593,"t":"code","b":[141,11,212],"m":"sta","o":"sid_v2_control"},{"a":31596,"t":"code","b":[208,10],"m":"bne","oa":31608,"o":"b_7B78"},{"a":31598,"l":"b_7B6E","t":"code","b":[162,0],"m":"ldx","x":[31574],"o":"#$00"},{"a":31600,"t":"code","b":[142,11,152],"m":"stx","oa":38923,"o":"a_980B"},{"a":31603,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":31605,"t":"code","b":[141,11,212],"m":"sta","o":"sid_v2_control"},{"a":31608,"l":"b_7B78","t":"code","b":[173,224,51],"m":"lda","oa":13280,"x":[31570,31596],"o":"a_33E0"},{"a":31611,"t":"code","b":[133,74],"m":"sta","oa":74,"o":"zpa_4A"},{"a":31613,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":31615,"l":"b_7B7F","t":"code","b":[189,225,51],"m":"lda","oa":13281,"x":[31624],"o":"f_33E1,x"},{"a":31618,"t":"code","b":[157,224,51],"m":"sta","oa":13280,"o":"a_33E0,x"},{"a":31621,"t":"code","b":[232],"m":"inx"},{"a":31622,"t":"code","b":[224,7],"m":"cpx","o":"#$07"},{"a":31624,"t":"code","b":[208,245],"m":"bne","oa":31615,"o":"b_7B7F"},{"a":31626,"t":"code","b":[165,74],"m":"lda","oa":74,"o":"zpa_4A"},{"a":31628,"t":"code","b":[141,231,51],"m":"sta","oa":13287,"o":"a_33E7"},{"a":31631,"t":"code","b":[96],"m":"rts"},{"a":31632,"l":"b_7B90","t":"code","b":[169,0],"m":"lda","x":[31555],"o":"#$00"},{"a":31634,"t":"code","b":[141,11,152],"m":"sta","oa":38923,"o":"a_980B"},{"a":31637,"t":"code","b":[96],"m":"rts"},{"a":31638,"l":"draw_whole_cave","c":"calls the random reveal, then draws every cell of the cave in order into the scroll buffer and fills the buffer edges","t":"code","b":[32,248,122],"m":"jsr","oa":31480,"x":[35538],"o":"reveal_random_cells"},{"a":31641,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":31643,"t":"code","b":[133,146],"m":"sta","oa":146,"o":"zpa_92"},{"a":31645,"t":"code","b":[32,101,122],"m":"jsr","oa":31333,"o":"set_row_pointer"},{"a":31648,"l":"b_7BA0","t":"code","b":[169,0],"m":"lda","x":[31676],"o":"#$00"},{"a":31650,"t":"code","b":[133,145],"m":"sta","oa":145,"o":"zpa_91"},{"a":31652,"l":"b_7BA4","t":"code","b":[160,41],"m":"ldy","x":[31668],"o":"#$29"},{"a":31654,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":31656,"t":"code","b":[32,78,112],"m":"jsr","oa":28750,"o":"set_object"},{"a":31659,"t":"code","b":[32,94,122],"m":"jsr","oa":31326,"o":"advance_map_pointer"},{"a":31662,"t":"code","b":[230,145],"m":"inc","oa":145,"o":"zpa_91"},{"a":31664,"t":"code","b":[165,145],"m":"lda","oa":145,"o":"zpa_91"},{"a":31666,"t":"code","b":[201,40],"m":"cmp","o":"#$28"},{"a":31668,"t":"code","b":[208,238],"m":"bne","oa":31652,"o":"b_7BA4"},{"a":31670,"t":"code","b":[230,146],"m":"inc","oa":146,"o":"zpa_92"},{"a":31672,"t":"code","b":[165,146],"m":"lda","oa":146,"o":"zpa_92"},{"a":31674,"t":"code","b":[201,22],"m":"cmp","o":"#$16"},{"a":31676,"t":"code","b":[208,226],"m":"bne","oa":31648,"o":"b_7BA0"},{"a":31678,"t":"code","b":[32,229,122],"m":"jsr","oa":31461,"o":"buffer_edge_fill"},{"a":31681,"t":"code","b":[96],"m":"rts"},{"a":31682,"l":"build_rockford_frame","c":"builds one pixel row Y of Rockford's tile for the current phase, X being 16 times the phase plus Y: the head characters $4C and $4D ($3260, $3268) and the feet $5C and $5D ($32E0, $32E8). Moving (zpa_8B not $0F) it clears zpa_BE and zpa_BF and copies from $64E8/$64F0 and $6568/$6570 when facing left (zpa_98 not zero), or $65E8/$65F0 and $6668/$6670 when facing right. Standing still (zpa_8B = $0F) the head comes from the blink table $63E8/$63F0 while zpa_BF is set, else from characters $42 and $43, and the feet from the tap table $6468/$6470 while zpa_BE is set, else from $52 and $53; when X is 0, once per cycle of eight phases, zpa_BF is set with one chance in four and zpa_BE toggled with one chance in sixteen","t":"code","b":[165,139],"m":"lda","oa":139,"x":[31974],"o":"zpa_8B"},{"a":31684,"t":"code","b":[201,15],"m":"cmp","o":"#$0F"},{"a":31686,"t":"code","b":[240,60],"m":"beq","oa":31748,"o":"b_7C04"},{"a":31688,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":31690,"t":"code","b":[133,190],"m":"sta","oa":190,"o":"zpa_BE"},{"a":31692,"t":"code","b":[133,191],"m":"sta","oa":191,"o":"zpa_BF"},{"a":31694,"t":"code","b":[165,152],"m":"lda","oa":152,"o":"zpa_98"},{"a":31696,"t":"code","b":[208,25],"m":"bne","oa":31723,"o":"b_7BEB"},{"a":31698,"t":"code","b":[189,232,101],"m":"lda","oa":26088,"o":"rockford_frames_5a,x"},{"a":31701,"t":"code","b":[153,96,50],"m":"sta","oa":12896,"o":"f_3260,y"},{"a":31704,"t":"code","b":[189,240,101],"m":"lda","oa":26096,"o":"rockford_frames_5b,x"},{"a":31707,"t":"code","b":[153,104,50],"m":"sta","oa":12904,"o":"f_3268,y"},{"a":31710,"t":"code","b":[189,104,102],"m":"lda","oa":26216,"o":"rockford_frames_6a,x"},{"a":31713,"t":"code","b":[153,224,50],"m":"sta","oa":13024,"o":"f_32E0,y"},{"a":31716,"t":"code","b":[189,112,102],"m":"lda","oa":26224,"o":"rockford_frames_6b,x"},{"a":31719,"t":"code","b":[153,232,50],"m":"sta","oa":13032,"o":"f_32E8,y"},{"a":31722,"t":"code","b":[96],"m":"rts"},{"a":31723,"l":"b_7BEB","t":"code","b":[189,232,100],"m":"lda","oa":25832,"x":[31696],"o":"rockford_frames_3a,x"},{"a":31726,"t":"code","b":[153,96,50],"m":"sta","oa":12896,"o":"f_3260,y"},{"a":31729,"t":"code","b":[189,240,100],"m":"lda","oa":25840,"o":"rockford_frames_3b,x"},{"a":31732,"t":"code","b":[153,104,50],"m":"sta","oa":12904,"o":"f_3268,y"},{"a":31735,"t":"code","b":[189,104,101],"m":"lda","oa":25960,"o":"rockford_frames_4a,x"},{"a":31738,"t":"code","b":[153,224,50],"m":"sta","oa":13024,"o":"f_32E0,y"},{"a":31741,"t":"code","b":[189,112,101],"m":"lda","oa":25968,"o":"rockford_frames_4b,x"},{"a":31744,"t":"code","b":[153,232,50],"m":"sta","oa":13032,"o":"f_32E8,y"},{"a":31747,"t":"code","b":[96],"m":"rts"},{"a":31748,"l":"b_7C04","t":"code","b":[224,0],"m":"cpx","x":[31686],"o":"#$00"},{"a":31750,"t":"code","b":[208,28],"m":"bne","oa":31780,"o":"b_7C24"},{"a":31752,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":31754,"t":"code","b":[133,191],"m":"sta","oa":191,"o":"zpa_BF"},{"a":31756,"t":"code","b":[32,104,110],"m":"jsr","oa":28264,"o":"random_byte"},{"a":31759,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":31761,"t":"code","b":[208,4],"m":"bne","oa":31767,"o":"b_7C17"},{"a":31763,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":31765,"t":"code","b":[133,191],"m":"sta","oa":191,"o":"zpa_BF"},{"a":31767,"l":"b_7C17","t":"code","b":[32,104,110],"m":"jsr","oa":28264,"x":[31761],"o":"random_byte"},{"a":31770,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":31772,"t":"code","b":[208,6],"m":"bne","oa":31780,"o":"b_7C24"},{"a":31774,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":31776,"t":"code","b":[69,190],"m":"eor","oa":190,"o":"zpa_BE"},{"a":31778,"t":"code","b":[133,190],"m":"sta","oa":190,"o":"zpa_BE"},{"a":31780,"l":"b_7C24","t":"code","b":[165,191],"m":"lda","oa":191,"x":[31750,31772],"o":"zpa_BF"},{"a":31782,"t":"code","b":[240,15],"m":"beq","oa":31799,"o":"b_7C37"},{"a":31784,"t":"code","b":[189,232,99],"m":"lda","oa":25576,"o":"rockford_frames_1a,x"},{"a":31787,"t":"code","b":[153,96,50],"m":"sta","oa":12896,"o":"f_3260,y"},{"a":31790,"t":"code","b":[189,240,99],"m":"lda","oa":25584,"o":"rockford_frames_1b,x"},{"a":31793,"t":"code","b":[153,104,50],"m":"sta","oa":12904,"o":"f_3268,y"},{"a":31796,"t":"code","b":[76,67,124],"m":"jmp","oa":31811,"o":"j_7C43"},{"a":31799,"l":"b_7C37","t":"code","b":[185,16,50],"m":"lda","oa":12816,"x":[31782],"o":"f_3210,y"},{"a":31802,"t":"code","b":[153,96,50],"m":"sta","oa":12896,"o":"f_3260,y"},{"a":31805,"t":"code","b":[185,24,50],"m":"lda","oa":12824,"o":"f_3218,y"},{"a":31808,"t":"code","b":[153,104,50],"m":"sta","oa":12904,"o":"f_3268,y"},{"a":31811,"l":"j_7C43","t":"code","b":[165,190],"m":"lda","oa":190,"x":[31796],"o":"zpa_BE"},{"a":31813,"t":"code","b":[240,13],"m":"beq","oa":31828,"o":"b_7C54"},{"a":31815,"t":"code","b":[189,104,100],"m":"lda","oa":25704,"o":"rockford_frames_2a,x"},{"a":31818,"t":"code","b":[153,224,50],"m":"sta","oa":13024,"o":"f_32E0,y"},{"a":31821,"t":"code","b":[189,112,100],"m":"lda","oa":25712,"o":"rockford_frames_2b,x"},{"a":31824,"t":"code","b":[153,232,50],"m":"sta","oa":13032,"o":"f_32E8,y"},{"a":31827,"t":"code","b":[96],"m":"rts"},{"a":31828,"l":"b_7C54","t":"code","b":[185,144,50],"m":"lda","oa":12944,"x":[31813],"o":"f_3290,y"},{"a":31831,"t":"code","b":[153,224,50],"m":"sta","oa":13024,"o":"f_32E0,y"},{"a":31834,"t":"code","b":[185,152,50],"m":"lda","oa":12952,"o":"f_3298,y"},{"a":31837,"t":"code","b":[153,232,50],"m":"sta","oa":13032,"o":"f_32E8,y"},{"a":31840,"t":"code","b":[96],"m":"rts"},{"a":31841,"l":"build_animation_frames","c":"builds the animated characters of the current phase zpa_C0 into the character set: the diamond (char $48 at $3240) and Rockford always, and the firefly (bit 0 of the mask zpf_FF, char $64 at $3320), butterfly (bit 1, char $20 at $3100) and amoeba (bit 2, char $40 at $3200) sets only when the cave uses them","t":"code","b":[165,149],"m":"lda","oa":149,"x":[32408],"o":"zpa_95"},{"a":31843,"t":"code","b":[208,7],"m":"bne","oa":31852,"o":"b_7C6C"},{"a":31845,"t":"code","b":[165,148],"m":"lda","oa":148,"o":"zpa_94"},{"a":31847,"t":"code","b":[240,3],"m":"beq","oa":31852,"o":"b_7C6C"},{"a":31849,"t":"code","b":[32,157,116],"m":"jsr","oa":29853,"o":"redraw_status_line"},{"a":31852,"l":"b_7C6C","t":"code","b":[165,192],"m":"lda","oa":192,"x":[31843,31847],"o":"zpa_C0"},{"a":31854,"t":"code","b":[10],"m":"asl","o":"a"},{"a":31855,"t":"code","b":[170],"m":"tax"},{"a":31856,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":31858,"l":"b_7C72","t":"code","b":[189,6,86],"m":"lda","oa":22022,"x":[31981],"o":"diamond_frames_top,x"},{"a":31861,"t":"code","b":[153,64,50],"m":"sta","oa":12864,"o":"f_3240,y"},{"a":31864,"t":"code","b":[189,14,86],"m":"lda","oa":22030,"o":"diamond_frames_top_right,x"},{"a":31867,"t":"code","b":[153,72,50],"m":"sta","oa":12872,"o":"f_3248,y"},{"a":31870,"t":"code","b":[189,134,86],"m":"lda","oa":22150,"o":"diamond_frames_bottom,x"},{"a":31873,"t":"code","b":[153,192,50],"m":"sta","oa":12992,"o":"f_32C0,y"},{"a":31876,"t":"code","b":[189,142,86],"m":"lda","oa":22158,"o":"diamond_frames_bottom_right,x"},{"a":31879,"t":"code","b":[153,200,50],"m":"sta","oa":13000,"o":"f_32C8,y"},{"a":31882,"t":"code","b":[165,255],"m":"lda","oa":255,"o":"zpf_FF"},{"a":31884,"t":"code","b":[240,88],"m":"beq","oa":31974,"o":"b_7CE6"},{"a":31886,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":31888,"t":"code","b":[144,24],"m":"bcc","oa":31914,"o":"b_7CAA"},{"a":31890,"t":"code","b":[189,6,84],"m":"lda","oa":21510,"o":"amoeba_frames_top,x"},{"a":31893,"t":"code","b":[153,0,50],"m":"sta","oa":12800,"o":"f_3200,y"},{"a":31896,"t":"code","b":[189,14,84],"m":"lda","oa":21518,"o":"amoeba_frames_top_right,x"},{"a":31899,"t":"code","b":[153,8,50],"m":"sta","oa":12808,"o":"f_3208,y"},{"a":31902,"t":"code","b":[189,134,84],"m":"lda","oa":21638,"o":"amoeba_frames_bottom,x"},{"a":31905,"t":"code","b":[153,128,50],"m":"sta","oa":12928,"o":"f_3280,y"},{"a":31908,"t":"code","b":[189,142,84],"m":"lda","oa":21646,"o":"amoeba_frames_bottom_right,x"},{"a":31911,"t":"code","b":[153,136,50],"m":"sta","oa":12936,"o":"f_3288,y"},{"a":31914,"l":"b_7CAA","t":"code","b":[165,255],"m":"lda","oa":255,"x":[31888],"o":"zpf_FF"},{"a":31916,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":31918,"t":"code","b":[240,24],"m":"beq","oa":31944,"o":"b_7CC8"},{"a":31920,"t":"code","b":[189,6,87],"m":"lda","oa":22278,"o":"butterfly_frames_top,x"},{"a":31923,"t":"code","b":[153,0,49],"m":"sta","oa":12544,"o":"f_3100,y"},{"a":31926,"t":"code","b":[189,14,87],"m":"lda","oa":22286,"o":"butterfly_frames_top_right,x"},{"a":31929,"t":"code","b":[153,8,49],"m":"sta","oa":12552,"o":"f_3108,y"},{"a":31932,"t":"code","b":[189,134,87],"m":"lda","oa":22406,"o":"butterfly_frames_bottom,x"},{"a":31935,"t":"code","b":[153,128,49],"m":"sta","oa":12672,"o":"f_3180,y"},{"a":31938,"t":"code","b":[189,142,87],"m":"lda","oa":22414,"o":"butterfly_frames_bottom_right,x"},{"a":31941,"t":"code","b":[153,136,49],"m":"sta","oa":12680,"o":"f_3188,y"},{"a":31944,"l":"b_7CC8","t":"code","b":[165,255],"m":"lda","oa":255,"x":[31918],"o":"zpf_FF"},{"a":31946,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":31948,"t":"code","b":[240,24],"m":"beq","oa":31974,"o":"b_7CE6"},{"a":31950,"t":"code","b":[189,6,85],"m":"lda","oa":21766,"o":"firefly_frames_top,x"},{"a":31953,"t":"code","b":[153,32,51],"m":"sta","oa":13088,"o":"f_3320,y"},{"a":31956,"t":"code","b":[189,14,85],"m":"lda","oa":21774,"o":"firefly_frames_top_right,x"},{"a":31959,"t":"code","b":[153,40,51],"m":"sta","oa":13096,"o":"f_3328,y"},{"a":31962,"t":"code","b":[189,134,85],"m":"lda","oa":21894,"o":"firefly_frames_bottom,x"},{"a":31965,"t":"code","b":[153,160,51],"m":"sta","oa":13216,"o":"f_33A0,y"},{"a":31968,"t":"code","b":[189,142,85],"m":"lda","oa":21902,"o":"firefly_frames_bottom_right,x"},{"a":31971,"t":"code","b":[153,168,51],"m":"sta","oa":13224,"o":"f_33A8,y"},{"a":31974,"l":"b_7CE6","t":"code","b":[32,194,123],"m":"jsr","oa":31682,"x":[31884,31948],"o":"build_rockford_frame"},{"a":31977,"t":"code","b":[232],"m":"inx"},{"a":31978,"t":"code","b":[200],"m":"iny"},{"a":31979,"t":"code","b":[192,8],"m":"cpy","o":"#$08"},{"a":31981,"t":"code","b":[208,131],"m":"bne","oa":31858,"o":"b_7C72"},{"a":31983,"t":"code","b":[96],"m":"rts"},{"a":31984,"l":"flash_screen","c":"while the flash counter zpa_A5 runs turns the background and border colours white, and black when it ends","t":"code","b":[165,165],"m":"lda","oa":165,"x":[32456],"o":"zpa_A5"},{"a":31986,"t":"code","b":[240,20],"m":"beq","oa":32008,"o":"r_7D08"},{"a":31988,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":31990,"t":"code","b":[141,33,208],"m":"sta","o":"vic_background0"},{"a":31993,"t":"code","b":[141,32,208],"m":"sta","o":"vic_border"},{"a":31996,"t":"code","b":[198,165],"m":"dec","oa":165,"o":"zpa_A5"},{"a":31998,"t":"code","b":[208,8],"m":"bne","oa":32008,"o":"r_7D08"},{"a":32000,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32002,"t":"code","b":[141,33,208],"m":"sta","o":"vic_background0"},{"a":32005,"t":"code","b":[141,32,208],"m":"sta","o":"vic_border"},{"a":32008,"l":"r_7D08","t":"code","b":[96],"m":"rts","x":[31986,31998]},{"a":32009,"l":"sound_update","c":"once a frame sets the SID volume to 15 and, unless paused (zpa_9B), plays what the game asked for: on voice 3 the effect from sid_voice3_regs for $21 frames while zpa_D8 is set (the end of the intro countdown and the quota), otherwise the amoeba hum while play is on and the amoeba found room in the last pass (zpa_43), else silence unless the magic wall is active; on voice 1, on frames where a_980F AND a_9878 is zero, the sound buffered at $987D when a_980D counts a request, or else its sustain level halved until it is zero; then, outside the intro (zpa_BD), counts the lockout a_9811 down and plays the step and dig notes from a_9808 on voice 2, but not while a_980D bit 7 (set by the low-time beep) or a_9811 is set ($7DD7-$7DE4)","t":"code","b":[169,15],"m":"lda","x":[32468],"o":"#$0F"},{"a":32011,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":32014,"t":"code","b":[165,155],"m":"lda","oa":155,"o":"zpa_9B"},{"a":32016,"t":"code","b":[240,1],"m":"beq","oa":32019,"o":"b_7D13"},{"a":32018,"t":"code","b":[96],"m":"rts"},{"a":32019,"l":"b_7D13","t":"code","b":[165,216],"m":"lda","oa":216,"x":[32016],"o":"zpa_D8"},{"a":32021,"t":"code","b":[240,33],"m":"beq","oa":32056,"o":"b_7D38"},{"a":32023,"t":"code","b":[165,217],"m":"lda","oa":217,"o":"zpa_D9"},{"a":32025,"t":"code","b":[208,18],"m":"bne","oa":32045,"o":"b_7D2D"},{"a":32027,"t":"code","b":[32,127,128],"m":"jsr","oa":32895,"o":"silence_voice_3"},{"a":32030,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":32032,"l":"b_7D20","t":"code","b":[189,24,116],"m":"lda","oa":29720,"x":[32039],"o":"sid_voice3_regs,x"},{"a":32035,"t":"code","b":[157,14,212],"m":"sta","o":"sid_v3_freq_lo,x"},{"a":32038,"t":"code","b":[202],"m":"dex"},{"a":32039,"t":"code","b":[16,247],"m":"bpl","oa":32032,"o":"b_7D20"},{"a":32041,"t":"code","b":[169,33],"m":"lda","o":"#$21"},{"a":32043,"t":"code","b":[133,217],"m":"sta","oa":217,"o":"zpa_D9"},{"a":32045,"l":"b_7D2D","t":"code","b":[198,217],"m":"dec","oa":217,"x":[32025],"o":"zpa_D9"},{"a":32047,"t":"code","b":[208,7],"m":"bne","oa":32056,"o":"b_7D38"},{"a":32049,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32051,"t":"code","b":[133,216],"m":"sta","oa":216,"o":"zpa_D8"},{"a":32053,"t":"code","b":[32,127,128],"m":"jsr","oa":32895,"o":"silence_voice_3"},{"a":32056,"l":"b_7D38","t":"code","b":[165,217],"m":"lda","oa":217,"x":[32021,32047],"o":"zpa_D9"},{"a":32058,"t":"code","b":[208,46],"m":"bne","oa":32106,"o":"b_7D6A"},{"a":32060,"t":"code","b":[165,148],"m":"lda","oa":148,"o":"zpa_94"},{"a":32062,"t":"code","b":[240,33],"m":"beq","oa":32097,"o":"b_7D61"},{"a":32064,"t":"code","b":[165,67],"m":"lda","oa":67,"o":"zpa_43"},{"a":32066,"t":"code","b":[240,29],"m":"beq","oa":32097,"o":"b_7D61"},{"a":32068,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":32070,"t":"code","b":[141,18,212],"m":"sta","o":"sid_v3_control"},{"a":32073,"l":"b_7D49","t":"code","b":[32,104,110],"m":"jsr","oa":28264,"x":[32080],"o":"random_byte"},{"a":32076,"t":"code","b":[41,31],"m":"and","o":"#$1F"},{"a":32078,"t":"code","b":[201,8],"m":"cmp","o":"#$08"},{"a":32080,"t":"code","b":[144,247],"m":"bcc","oa":32073,"o":"b_7D49"},{"a":32082,"t":"code","b":[141,15,212],"m":"sta","o":"sid_v3_freq_hi"},{"a":32085,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":32087,"t":"code","b":[141,19,212],"m":"sta","o":"sid_v3_attack_decay"},{"a":32090,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":32092,"t":"code","b":[141,18,212],"m":"sta","o":"sid_v3_control"},{"a":32095,"t":"code","b":[208,9],"m":"bne","oa":32106,"o":"b_7D6A"},{"a":32097,"l":"b_7D61","t":"code","b":[165,141],"m":"lda","oa":141,"x":[32062,32066],"o":"zpa_8D"},{"a":32099,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":32101,"t":"code","b":[240,3],"m":"beq","oa":32106,"o":"b_7D6A"},{"a":32103,"t":"code","b":[32,127,128],"m":"jsr","oa":32895,"o":"silence_voice_3"},{"a":32106,"l":"b_7D6A","t":"code","b":[238,15,152],"m":"inc","oa":38927,"x":[32058,32095,32101],"o":"a_980F"},{"a":32109,"t":"code","b":[173,15,152],"m":"lda","oa":38927,"o":"a_980F"},{"a":32112,"t":"code","b":[45,120,152],"m":"and","oa":39032,"o":"a_9878"},{"a":32115,"t":"code","b":[208,85],"m":"bne","oa":32202,"o":"b_7DCA"},{"a":32117,"t":"code","b":[173,13,152],"m":"lda","oa":38925,"o":"a_980D"},{"a":32120,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":32122,"t":"code","b":[240,41],"m":"beq","oa":32165,"o":"b_7DA5"},{"a":32124,"t":"code","b":[174,122,152],"m":"ldx","oa":39034,"o":"a_987A"},{"a":32127,"t":"code","b":[202],"m":"dex"},{"a":32128,"t":"code","b":[142,4,212],"m":"stx","o":"sid_v1_control"},{"a":32131,"t":"code","b":[224,128],"m":"cpx","o":"#$80"},{"a":32133,"t":"code","b":[208,5],"m":"bne","oa":32140,"o":"b_7D8C"},{"a":32135,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":32137,"t":"code","b":[141,4,212],"m":"sta","o":"sid_v1_control"},{"a":32140,"l":"b_7D8C","t":"code","b":[162,6],"m":"ldx","x":[32133],"o":"#$06"},{"a":32142,"l":"b_7D8E","t":"code","b":[189,125,152],"m":"lda","oa":39037,"x":[32152],"o":"a_987D,x"},{"a":32145,"t":"code","b":[157,118,152],"m":"sta","oa":39030,"o":"f_9876,x"},{"a":32148,"t":"code","b":[157,0,212],"m":"sta","o":"sid_v1_freq_lo,x"},{"a":32151,"t":"code","b":[202],"m":"dex"},{"a":32152,"t":"code","b":[16,244],"m":"bpl","oa":32142,"o":"b_7D8E"},{"a":32154,"t":"code","b":[173,13,152],"m":"lda","oa":38925,"o":"a_980D"},{"a":32157,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":32159,"t":"code","b":[141,13,152],"m":"sta","oa":38925,"o":"a_980D"},{"a":32162,"t":"code","b":[76,202,125],"m":"jmp","oa":32202,"o":"b_7DCA"},{"a":32165,"l":"b_7DA5","t":"code","b":[78,124,152],"m":"lsr","oa":39036,"x":[32122],"o":"a_987C"},{"a":32168,"t":"code","b":[173,124,152],"m":"lda","oa":39036,"o":"a_987C"},{"a":32171,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":32173,"t":"code","b":[141,124,152],"m":"sta","oa":39036,"o":"a_987C"},{"a":32176,"t":"code","b":[141,6,212],"m":"sta","o":"sid_v1_sustain_release"},{"a":32179,"t":"code","b":[240,11],"m":"beq","oa":32192,"o":"b_7DC0"},{"a":32181,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":32183,"t":"code","b":[176,17],"m":"bcs","oa":32202,"o":"b_7DCA"},{"a":32185,"t":"code","b":[174,122,152],"m":"ldx","oa":39034,"o":"a_987A"},{"a":32188,"t":"code","b":[224,17],"m":"cpx","o":"#$11"},{"a":32190,"t":"code","b":[208,10],"m":"bne","oa":32202,"o":"b_7DCA"},{"a":32192,"l":"b_7DC0","t":"code","b":[162,8],"m":"ldx","x":[32179],"o":"#$08"},{"a":32194,"t":"code","b":[142,4,212],"m":"stx","o":"sid_v1_control"},{"a":32197,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32199,"t":"code","b":[141,124,152],"m":"sta","oa":39036,"o":"a_987C"},{"a":32202,"l":"b_7DCA","t":"code","b":[165,189],"m":"lda","oa":189,"x":[32115,32162,32183,32190],"o":"zpa_BD"},{"a":32204,"t":"code","b":[240,1],"m":"beq","oa":32207,"o":"b_7DCF"},{"a":32206,"t":"code","b":[96],"m":"rts"},{"a":32207,"l":"b_7DCF","t":"code","b":[173,17,152],"m":"lda","oa":38929,"x":[32204],"o":"a_9811"},{"a":32210,"t":"code","b":[240,3],"m":"beq","oa":32215,"o":"b_7DD7"},{"a":32212,"t":"code","b":[206,17,152],"m":"dec","oa":38929,"o":"a_9811"},{"a":32215,"l":"b_7DD7","t":"code","b":[173,13,152],"m":"lda","oa":38925,"x":[32210],"o":"a_980D"},{"a":32218,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":32220,"t":"code","b":[240,1],"m":"beq","oa":32223,"o":"b_7DDF"},{"a":32222,"t":"code","b":[96],"m":"rts"},{"a":32223,"l":"b_7DDF","t":"code","b":[173,17,152],"m":"lda","oa":38929,"x":[32220],"o":"a_9811"},{"a":32226,"t":"code","b":[240,1],"m":"beq","oa":32229,"o":"b_7DE5"},{"a":32228,"t":"code","b":[96],"m":"rts"},{"a":32229,"l":"b_7DE5","t":"code","b":[173,9,152],"m":"lda","oa":38921,"x":[32226],"o":"a_9809"},{"a":32232,"t":"code","b":[208,45],"m":"bne","oa":32279,"o":"b_7E17"},{"a":32234,"t":"code","b":[172,8,152],"m":"ldy","oa":38920,"o":"a_9808"},{"a":32237,"t":"code","b":[240,44],"m":"beq","oa":32283,"o":"b_7E1B"},{"a":32239,"t":"code","b":[32,123,128],"m":"jsr","oa":32891,"o":"silence_voice_2"},{"a":32242,"t":"code","b":[140,8,212],"m":"sty","o":"sid_v2_freq_hi"},{"a":32245,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32247,"t":"code","b":[141,8,152],"m":"sta","oa":38920,"o":"a_9808"},{"a":32250,"t":"code","b":[169,192],"m":"lda","o":"#$C0"},{"a":32252,"t":"code","b":[141,13,212],"m":"sta","o":"sid_v2_sustain_release"},{"a":32255,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":32257,"t":"code","b":[141,12,212],"m":"sta","o":"sid_v2_attack_decay"},{"a":32260,"t":"code","b":[169,129],"m":"lda","o":"#$81"},{"a":32262,"t":"code","b":[141,11,212],"m":"sta","o":"sid_v2_control"},{"a":32265,"t":"code","b":[173,10,152],"m":"lda","oa":38922,"o":"a_980A"},{"a":32268,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":32270,"t":"code","b":[240,4],"m":"beq","oa":32276,"o":"b_7E14"},{"a":32272,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":32273,"t":"code","b":[141,10,152],"m":"sta","oa":38922,"o":"a_980A"},{"a":32276,"l":"b_7E14","t":"code","b":[141,9,152],"m":"sta","oa":38921,"x":[32270],"o":"a_9809"},{"a":32279,"l":"b_7E17","t":"code","b":[206,9,152],"m":"dec","oa":38921,"x":[32232],"o":"a_9809"},{"a":32282,"t":"code","b":[96],"m":"rts"},{"a":32283,"l":"b_7E1B","t":"code","b":[76,123,128],"m":"jmp","oa":32891,"x":[32237],"o":"silence_voice_2"},{"a":32286,"l":"restore_magic_wall_chars","c":"copies the eight bytes of character $4E, the brick wall's, from $3270 into the magic wall's four characters $22, $23, $32 and $33 ($3110, $3118, $3190, $3198), so the magic wall looks like brick: at the start of a cave ($8294) and when the wall runs out ($7E84)","t":"code","b":[162,7],"m":"ldx","x":[32388,33428],"o":"#$07"},{"a":32288,"l":"b_7E20","t":"code","b":[189,112,50],"m":"lda","oa":12912,"x":[32304],"o":"f_3270,x"},{"a":32291,"t":"code","b":[157,16,49],"m":"sta","oa":12560,"o":"f_3110,x"},{"a":32294,"t":"code","b":[157,24,49],"m":"sta","oa":12568,"o":"f_3118,x"},{"a":32297,"t":"code","b":[157,144,49],"m":"sta","oa":12688,"o":"f_3190,x"},{"a":32300,"t":"code","b":[157,152,49],"m":"sta","oa":12696,"o":"f_3198,x"},{"a":32303,"t":"code","b":[202],"m":"dex"},{"a":32304,"t":"code","b":[16,238],"m":"bpl","oa":32288,"o":"b_7E20"},{"a":32306,"t":"code","b":[96],"m":"rts"},{"a":32307,"l":"magic_wall_tick","c":"while the magic wall is active plays a random note on voice 3 on alternate frames and copies eight bytes from $3360 plus (zpa_C0 AND $1F), one of four frames at $3360-$337F, into each of the magic wall's four characters $22, $23, $32 and $33 ($3110, $3118, $3190, $3198), animating the wall","t":"code","b":[165,194],"m":"lda","oa":194,"x":[32381],"o":"zpa_C2"},{"a":32309,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":32311,"t":"code","b":[240,33],"m":"beq","oa":32346,"o":"b_7E5A"},{"a":32313,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":32315,"t":"code","b":[141,18,212],"m":"sta","o":"sid_v3_control"},{"a":32318,"t":"code","b":[32,104,110],"m":"jsr","oa":28264,"o":"random_byte"},{"a":32321,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":32323,"t":"code","b":[10],"m":"asl","o":"a"},{"a":32324,"t":"code","b":[10],"m":"asl","o":"a"},{"a":32325,"t":"code","b":[10],"m":"asl","o":"a"},{"a":32326,"t":"code","b":[105,134],"m":"adc","o":"#$86"},{"a":32328,"t":"code","b":[141,15,212],"m":"sta","o":"sid_v3_freq_hi"},{"a":32331,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32333,"t":"code","b":[141,19,212],"m":"sta","o":"sid_v3_attack_decay"},{"a":32336,"t":"code","b":[169,160],"m":"lda","o":"#$A0"},{"a":32338,"t":"code","b":[141,20,212],"m":"sta","o":"sid_v3_sustain_release"},{"a":32341,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":32343,"t":"code","b":[141,18,212],"m":"sta","o":"sid_v3_control"},{"a":32346,"l":"b_7E5A","t":"code","b":[165,192],"m":"lda","oa":192,"x":[32311],"o":"zpa_C0"},{"a":32348,"t":"code","b":[41,31],"m":"and","o":"#$1F"},{"a":32350,"t":"code","b":[170],"m":"tax"},{"a":32351,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":32353,"l":"b_7E61","t":"code","b":[189,96,51],"m":"lda","oa":13152,"x":[32372],"o":"f_3360,x"},{"a":32356,"t":"code","b":[153,16,49],"m":"sta","oa":12560,"o":"f_3110,y"},{"a":32359,"t":"code","b":[153,24,49],"m":"sta","oa":12568,"o":"f_3118,y"},{"a":32362,"t":"code","b":[153,144,49],"m":"sta","oa":12688,"o":"f_3190,y"},{"a":32365,"t":"code","b":[153,152,49],"m":"sta","oa":12696,"o":"f_3198,y"},{"a":32368,"t":"code","b":[232],"m":"inx"},{"a":32369,"t":"code","b":[200],"m":"iny"},{"a":32370,"t":"code","b":[192,8],"m":"cpy","o":"#$08"},{"a":32372,"t":"code","b":[208,235],"m":"bne","oa":32353,"o":"b_7E61"},{"a":32374,"t":"code","b":[96],"m":"rts"},{"a":32375,"l":"magic_wall_animation","c":"runs the magic wall animation while it is active (zpa_8D = 1) and ends it at state 2","t":"code","b":[165,141],"m":"lda","oa":141,"x":[32411],"o":"zpa_8D"},{"a":32377,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":32379,"t":"code","b":[208,3],"m":"bne","oa":32384,"o":"b_7E80"},{"a":32381,"t":"code","b":[76,51,126],"m":"jmp","oa":32307,"o":"magic_wall_tick"},{"a":32384,"l":"b_7E80","t":"code","b":[201,2],"m":"cmp","x":[32379],"o":"#$02"},{"a":32386,"t":"code","b":[208,10],"m":"bne","oa":32398,"o":"r_7E8E"},{"a":32388,"t":"code","b":[32,30,126],"m":"jsr","oa":32286,"o":"restore_magic_wall_chars"},{"a":32391,"t":"code","b":[32,127,128],"m":"jsr","oa":32895,"o":"silence_voice_3"},{"a":32394,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":32396,"t":"code","b":[133,141],"m":"sta","oa":141,"o":"zpa_8D"},{"a":32398,"l":"r_7E8E","t":"code","b":[96],"m":"rts","x":[32386]},{"a":32399,"l":"animation_step","c":"advances the animation phase zpa_C0 by 8 modulo $40, builds the new frames and runs the magic wall animation","t":"code","b":[165,192],"m":"lda","oa":192,"x":[32798],"o":"zpa_C0"},{"a":32401,"t":"code","b":[24],"m":"clc"},{"a":32402,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":32404,"t":"code","b":[41,63],"m":"and","o":"#$3F"},{"a":32406,"t":"code","b":[133,192],"m":"sta","oa":192,"o":"zpa_C0"},{"a":32408,"t":"code","b":[32,97,124],"m":"jsr","oa":31841,"o":"build_animation_frames"},{"a":32411,"t":"code","b":[32,119,126],"m":"jsr","oa":32375,"o":"magic_wall_animation"},{"a":32414,"t":"code","b":[96],"m":"rts"},{"a":32415,"l":"magic_wall_timer","c":"counts frames in zpa_8E and, every 60 ($3C), seconds in zpa_8F while (zpa_9B EOR 1) AND zpa_8D is 1 ($7E9F-$7EA5): the magic wall is active (zpa_8D = 1) and zpa_9B is 0 or 2. So the count stops while zpa_9B is 1, at the start of a pause ($8110) and at the end of a cave ($8C44), but goes on while pause_screen holds zpa_9B at 2 ($80D7) for the rest of a pause. When the seconds equal the cave header byte at $2401 sets zpa_8D to 2, the wall expired","t":"code","b":[165,155],"m":"lda","oa":155,"x":[32462],"o":"zpa_9B"},{"a":32417,"t":"code","b":[73,1],"m":"eor","o":"#$01"},{"a":32419,"t":"code","b":[37,141],"m":"and","oa":141,"o":"zpa_8D"},{"a":32421,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":32423,"t":"code","b":[208,25],"m":"bne","oa":32450,"o":"r_7EC2"},{"a":32425,"t":"code","b":[230,142],"m":"inc","oa":142,"o":"zpa_8E"},{"a":32427,"t":"code","b":[165,142],"m":"lda","oa":142,"o":"zpa_8E"},{"a":32429,"t":"code","b":[201,60],"m":"cmp","o":"#$3C"},{"a":32431,"t":"code","b":[208,17],"m":"bne","oa":32450,"o":"r_7EC2"},{"a":32433,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32435,"t":"code","b":[133,142],"m":"sta","oa":142,"o":"zpa_8E"},{"a":32437,"t":"code","b":[230,143],"m":"inc","oa":143,"o":"zpa_8F"},{"a":32439,"t":"code","b":[165,143],"m":"lda","oa":143,"o":"zpa_8F"},{"a":32441,"t":"code","b":[205,1,36],"m":"cmp","oa":9217,"o":"a_2401"},{"a":32444,"t":"code","b":[208,4],"m":"bne","oa":32450,"o":"r_7EC2"},{"a":32446,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":32448,"t":"code","b":[133,141],"m":"sta","oa":141,"o":"zpa_8D"},{"a":32450,"l":"r_7EC2","t":"code","b":[96],"m":"rts","x":[32423,32431,32444]},{"a":32451,"l":"frame_update","c":"the once-per-frame job started from the interrupt when zpa_A7 is zero: flash, intro effects, magic wall timer, clock, sound, scrolling, then on every second frame the screen copy routine, on the others it swaps the double-buffer flag","t":"code","b":[165,167],"m":"lda","oa":167,"x":[35469],"o":"zpa_A7"},{"a":32453,"t":"code","b":[240,1],"m":"beq","oa":32456,"o":"b_7EC8"},{"a":32455,"t":"code","b":[96],"m":"rts"},{"a":32456,"l":"b_7EC8","t":"code","b":[32,240,124],"m":"jsr","oa":31984,"x":[32453],"o":"flash_screen"},{"a":32459,"t":"code","b":[32,65,123],"m":"jsr","oa":31553,"o":"intro_effects"},{"a":32462,"t":"code","b":[32,159,126],"m":"jsr","oa":32415,"o":"magic_wall_timer"},{"a":32465,"t":"code","b":[32,169,116],"m":"jsr","oa":29865,"o":"frame_clock"},{"a":32468,"t":"code","b":[32,9,125],"m":"jsr","oa":32009,"o":"sound_update"},{"a":32471,"t":"code","b":[230,194],"m":"inc","oa":194,"o":"zpa_C2"},{"a":32473,"t":"code","b":[32,69,122],"m":"jsr","oa":31301,"o":"scroll_update"},{"a":32476,"t":"code","b":[165,194],"m":"lda","oa":194,"o":"zpa_C2"},{"a":32478,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":32480,"t":"code","b":[208,11],"m":"bne","oa":32493,"o":"b_7EED"},{"a":32482,"t":"code","b":[173,7,152],"m":"lda","oa":38919,"o":"a_9807"},{"a":32485,"t":"code","b":[133,88],"m":"sta","oa":88,"o":"zpa_58"},{"a":32487,"t":"code","b":[73,128],"m":"eor","o":"#$80"},{"a":32489,"t":"code","b":[141,7,152],"m":"sta","oa":38919,"o":"a_9807"},{"a":32492,"t":"code","b":[96],"m":"rts"},{"a":32493,"l":"b_7EED","t":"code","b":[76,0,158],"m":"jmp","oa":40448,"x":[32480],"o":"screen_copy_routine"},{"a":32496,"l":"screen_copy_template","c":"256 bytes of code that are copied to $9E00 at start and run from there: they work out the scroll buffer and screen addresses for the current screen base zpa_D6/D7 and copy rows of the scroll buffer into the screen; the unrolled loads show $5000 and $0C50 because the real operands are patched in at $9E00","t":"code","b":[165,214],"m":"lda","oa":214,"o":"zpa_D6"},{"a":32498,"t":"code","b":[24],"m":"clc"},{"a":32499,"t":"code","b":[105,32],"m":"adc","o":"#$20"},{"a":32501,"t":"code","b":[141,81,158],"m":"sta","oa":40529,"o":"a_9E51"},{"a":32504,"t":"code","b":[165,215],"m":"lda","oa":215,"o":"zpa_D7"},{"a":32506,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":32508,"t":"code","b":[141,82,158],"m":"sta","oa":40530,"o":"a_9E52"},{"a":32511,"t":"code","b":[173,7,152],"m":"lda","oa":38919,"o":"a_9807"},{"a":32514,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":32515,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":32516,"t":"code","b":[73,3],"m":"eor","o":"#$03"},{"a":32518,"t":"code","b":[24],"m":"clc"},{"a":32519,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":32521,"t":"code","b":[141,85,158],"m":"sta","oa":40533,"o":"a_9E55"},{"a":32524,"t":"code","b":[169,184],"m":"lda","o":"#$B8"},{"a":32526,"t":"code","b":[141,84,158],"m":"sta","oa":40532,"o":"a_9E54"},{"a":32529,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":32531,"l":"b_7F13","t":"code","b":[189,81,158],"m":"lda","oa":40529,"x":[32572],"o":"a_9E51,x"},{"a":32534,"t":"code","b":[24],"m":"clc"},{"a":32535,"t":"code","b":[105,80],"m":"adc","o":"#$50"},{"a":32537,"t":"code","b":[157,87,158],"m":"sta","oa":40535,"o":"f_9E57,x"},{"a":32540,"t":"code","b":[189,82,158],"m":"lda","oa":40530,"o":"a_9E52,x"},{"a":32543,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":32545,"t":"code","b":[157,88,158],"m":"sta","oa":40536,"o":"f_9E58,x"},{"a":32548,"t":"code","b":[189,84,158],"m":"lda","oa":40532,"o":"a_9E54,x"},{"a":32551,"t":"code","b":[24],"m":"clc"},{"a":32552,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":32554,"t":"code","b":[157,90,158],"m":"sta","oa":40538,"o":"f_9E5A,x"},{"a":32557,"t":"code","b":[189,85,158],"m":"lda","oa":40533,"o":"a_9E55,x"},{"a":32560,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":32562,"t":"code","b":[157,91,158],"m":"sta","oa":40539,"o":"f_9E5B,x"},{"a":32565,"t":"code","b":[138],"m":"txa"},{"a":32566,"t":"code","b":[24],"m":"clc"},{"a":32567,"t":"code","b":[105,6],"m":"adc","o":"#$06"},{"a":32569,"t":"code","b":[170],"m":"tax"},{"a":32570,"t":"code","b":[224,78],"m":"cpx","o":"#$4E"},{"a":32572,"t":"code","b":[144,213],"m":"bcc","oa":32531,"o":"b_7F13"},{"a":32574,"t":"code","b":[162,39],"m":"ldx","o":"#$27"},{"a":32576,"l":"b_7F40","t":"code","b":[189,0,80],"m":"lda","oa":20480,"x":[32661],"o":"text_charset,x"},{"a":32579,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32582,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32585,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32588,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32591,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32594,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32597,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32600,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32603,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32606,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32609,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32612,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32615,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32618,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32621,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32624,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32627,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32630,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32633,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32636,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32639,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32642,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32645,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32648,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32651,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32654,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32657,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32660,"t":"code","b":[202],"m":"dex"},{"a":32661,"t":"code","b":[16,169],"m":"bpl","oa":32576,"o":"b_7F40"},{"a":32663,"t":"code","b":[173,7,152],"m":"lda","oa":38919,"o":"a_9807"},{"a":32666,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":32667,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":32668,"t":"code","b":[73,3],"m":"eor","o":"#$03"},{"a":32670,"t":"code","b":[141,244,158],"m":"sta","oa":40692,"o":"a_9EF4"},{"a":32673,"t":"code","b":[169,40],"m":"lda","o":"#$28"},{"a":32675,"t":"code","b":[141,243,158],"m":"sta","oa":40691,"o":"a_9EF3"},{"a":32678,"t":"code","b":[165,214],"m":"lda","oa":214,"o":"zpa_D6"},{"a":32680,"t":"code","b":[141,240,158],"m":"sta","oa":40688,"o":"a_9EF0"},{"a":32683,"t":"code","b":[165,215],"m":"lda","oa":215,"o":"zpa_D7"},{"a":32685,"t":"code","b":[141,241,158],"m":"sta","oa":40689,"o":"a_9EF1"},{"a":32688,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":32690,"l":"b_7FB2","t":"code","b":[189,240,158],"m":"lda","oa":40688,"x":[32731],"o":"a_9EF0,x"},{"a":32693,"t":"code","b":[24],"m":"clc"},{"a":32694,"t":"code","b":[105,80],"m":"adc","o":"#$50"},{"a":32696,"t":"code","b":[157,246,158],"m":"sta","oa":40694,"o":"f_9EF6,x"},{"a":32699,"t":"code","b":[189,241,158],"m":"lda","oa":40689,"o":"a_9EF1,x"},{"a":32702,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":32704,"t":"code","b":[157,247,158],"m":"sta","oa":40695,"o":"f_9EF7,x"},{"a":32707,"t":"code","b":[189,243,158],"m":"lda","oa":40691,"o":"a_9EF3,x"},{"a":32710,"t":"code","b":[24],"m":"clc"},{"a":32711,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":32713,"t":"code","b":[157,249,158],"m":"sta","oa":40697,"o":"f_9EF9,x"},{"a":32716,"t":"code","b":[189,244,158],"m":"lda","oa":40692,"o":"a_9EF4,x"},{"a":32719,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":32721,"t":"code","b":[157,250,158],"m":"sta","oa":40698,"o":"f_9EFA,x"},{"a":32724,"t":"code","b":[138],"m":"txa"},{"a":32725,"t":"code","b":[24],"m":"clc"},{"a":32726,"t":"code","b":[105,6],"m":"adc","o":"#$06"},{"a":32728,"t":"code","b":[170],"m":"tax"},{"a":32729,"t":"code","b":[224,54],"m":"cpx","o":"#$36"},{"a":32731,"t":"code","b":[144,213],"m":"bcc","oa":32690,"o":"b_7FB2"},{"a":32733,"t":"code","b":[162,39],"m":"ldx","o":"#$27"},{"a":32735,"l":"b_7FDF","t":"code","b":[189,0,80],"m":"lda","oa":20480,"x":[32796],"o":"text_charset,x"},{"a":32738,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32741,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32744,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32747,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32750,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32752,"t":"note","l":"screen_copy_template_2","c":"the second 256-byte block of code copied to $9F00: the remainder of the screen copy routine, ending with a call to animation_step and to sparkle_step while the glisten counter runs","note":"inside the item at $7FEE"},{"a":32753,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32756,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32759,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32762,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32765,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32768,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32771,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32774,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32777,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32780,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32783,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32786,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32789,"t":"code","b":[189,0,80],"m":"lda","oa":20480,"o":"text_charset,x"},{"a":32792,"t":"code","b":[157,80,12],"m":"sta","oa":3152,"o":"f_0C50,x"},{"a":32795,"t":"code","b":[202],"m":"dex"},{"a":32796,"t":"code","b":[16,193],"m":"bpl","oa":32735,"o":"b_7FDF"},{"a":32798,"t":"code","b":[32,143,126],"m":"jsr","oa":32399,"o":"animation_step"},{"a":32801,"t":"code","b":[165,168],"m":"lda","oa":168,"o":"zpa_A8"},{"a":32803,"t":"code","b":[240,3],"m":"beq","oa":32808,"o":"r_8028"},{"a":32805,"t":"code","b":[32,236,119],"m":"jsr","oa":30700,"o":"sparkle_step"},{"a":32808,"l":"r_8028","t":"code","b":[96],"m":"rts","x":[32803]},{"a":32809,"l":"build_cave_cell","c":"makes one random cell of the starting cave: takes a random byte from the generator in zpa_3E/3F (cave_random_step), and stores in the cell at offset $29 from zpp_32 the code at $2418+Y for the last Y of 0 to 3 whose threshold at $241C+Y is above that byte, else dirt (1). The codes and thresholds are header bytes 24-27 and 28-31: space, boulder and diamond in most caves, but also fireflies ($08, caves 2, 7, 8, 11 and 15) and brick wall ($02, cave 3)","t":"code","b":[162,1],"m":"ldx","x":[32846],"o":"#$01"},{"a":32811,"t":"code","b":[32,133,112],"m":"jsr","oa":28805,"o":"cave_random_step"},{"a":32814,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":32816,"l":"b_8030","t":"code","b":[217,28,36],"m":"cmp","oa":9244,"x":[32827],"o":"f_241C,y"},{"a":32819,"t":"code","b":[176,3],"m":"bcs","oa":32824,"o":"b_8038"},{"a":32821,"t":"code","b":[190,24,36],"m":"ldx","oa":9240,"o":"f_2418,y"},{"a":32824,"l":"b_8038","t":"code","b":[200],"m":"iny","x":[32819]},{"a":32825,"t":"code","b":[192,4],"m":"cpy","o":"#$04"},{"a":32827,"t":"code","b":[208,243],"m":"bne","oa":32816,"o":"b_8030"},{"a":32829,"t":"code","b":[138],"m":"txa"},{"a":32830,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":32832,"t":"code","b":[145,50],"m":"sta","oa":50,"o":"(zpp_32),y"},{"a":32834,"t":"code","b":[96],"m":"rts"},{"a":32835,"l":"build_random_cave","c":"fills the cave's rows 1 to 21 (21 rows of 40; row 0 is left alone) with build_cave_cell","t":"code","b":[169,1],"m":"lda","x":[35516],"o":"#$01"},{"a":32837,"t":"code","b":[133,146],"m":"sta","oa":146,"o":"zpa_92"},{"a":32839,"t":"code","b":[32,101,122],"m":"jsr","oa":31333,"o":"set_row_pointer"},{"a":32842,"l":"b_804A","t":"code","b":[169,0],"m":"lda","x":[32866],"o":"#$00"},{"a":32844,"t":"code","b":[133,145],"m":"sta","oa":145,"o":"zpa_91"},{"a":32846,"l":"b_804E","t":"code","b":[32,41,128],"m":"jsr","oa":32809,"x":[32858],"o":"build_cave_cell"},{"a":32849,"t":"code","b":[32,94,122],"m":"jsr","oa":31326,"o":"advance_map_pointer"},{"a":32852,"t":"code","b":[230,145],"m":"inc","oa":145,"o":"zpa_91"},{"a":32854,"t":"code","b":[165,145],"m":"lda","oa":145,"o":"zpa_91"},{"a":32856,"t":"code","b":[201,40],"m":"cmp","o":"#$28"},{"a":32858,"t":"code","b":[208,242],"m":"bne","oa":32846,"o":"b_804E"},{"a":32860,"t":"code","b":[230,146],"m":"inc","oa":146,"o":"zpa_92"},{"a":32862,"t":"code","b":[165,146],"m":"lda","oa":146,"o":"zpa_92"},{"a":32864,"t":"code","b":[201,22],"m":"cmp","o":"#$16"},{"a":32866,"t":"code","b":[208,230],"m":"bne","oa":32842,"o":"b_804A"},{"a":32868,"t":"code","b":[96],"m":"rts"},{"a":32869,"l":"time_delay_table","c":"per-level delay counts loaded into zpa_9C, 12, 6, 3, 1 and 0","t":"byte","b":[12,6,3,1,0],"x":[33433]},{"a":32874,"l":"short_delay","c":"busy-waits for zpa_9C times a short loop; used to slow a pass on the easy levels","t":"code","b":[164,156],"m":"ldy","oa":156,"x":[33223],"o":"zpa_9C"},{"a":32876,"t":"code","b":[240,8],"m":"beq","oa":32886,"o":"r_8076"},{"a":32878,"l":"b_806E","t":"code","b":[162,16],"m":"ldx","x":[32884],"o":"#$10"},{"a":32880,"l":"b_8070","t":"code","b":[202],"m":"dex","x":[32881]},{"a":32881,"t":"code","b":[208,253],"m":"bne","oa":32880,"o":"b_8070"},{"a":32883,"t":"code","b":[136],"m":"dey"},{"a":32884,"t":"code","b":[208,248],"m":"bne","oa":32878,"o":"b_806E"},{"a":32886,"l":"r_8076","t":"code","b":[96],"m":"rts","x":[32876]},{"a":32887,"l":"silence_voice_1","c":"writes 8 and then 0 to the control register of SID voice 1 ($D404), so the gate closes","t":"code","b":[162,4],"m":"ldx","x":[32908],"o":"#$04"},{"a":32889,"t":"code","b":[208,6],"m":"bne","oa":32897,"o":"b_8081"},{"a":32891,"l":"silence_voice_2","c":"the same for voice 2 ($D40B)","t":"code","b":[162,11],"m":"ldx","x":[28974,29754,32239,32283,32911],"o":"#$0B"},{"a":32893,"t":"code","b":[208,2],"m":"bne","oa":32897,"o":"b_8081"},{"a":32895,"l":"silence_voice_3","c":"the same for voice 3 ($D412)","t":"code","b":[162,18],"m":"ldx","x":[32027,32053,32103,32391,32914],"o":"#$12"},{"a":32897,"l":"b_8081","t":"code","b":[169,8],"m":"lda","x":[32889,32893],"o":"#$08"},{"a":32899,"t":"code","b":[157,0,212],"m":"sta","o":"sid_v1_freq_lo,x"},{"a":32902,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32904,"t":"code","b":[157,0,212],"m":"sta","o":"sid_v1_freq_lo,x"},{"a":32907,"t":"code","b":[96],"m":"rts"},{"a":32908,"l":"silence_all","c":"silences the three voices (silence_voice_1 to silence_voice_3) and writes $4F to $D418: master volume 15 in the low nibble, $4 in the filter bits of the high nibble","t":"code","b":[32,119,128],"m":"jsr","oa":32887,"x":[33037,33781,35166,35545,35855,35879,35993,36070,36300],"o":"silence_voice_1"},{"a":32911,"t":"code","b":[32,123,128],"m":"jsr","oa":32891,"o":"silence_voice_2"},{"a":32914,"t":"code","b":[32,127,128],"m":"jsr","oa":32895,"o":"silence_voice_3"},{"a":32917,"t":"code","b":[169,79],"m":"lda","o":"#$4F"},{"a":32919,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":32922,"t":"code","b":[96],"m":"rts"},{"a":32923,"l":"delay_short","c":"a busy loop of about 128 passes of 256 for timing pauses","t":"code","b":[160,128],"m":"ldy","x":[32932,32935,32938,32941,32985,33019,35004],"o":"#$80"},{"a":32925,"l":"b_809D","t":"code","b":[202],"m":"dex","x":[32926,32929]},{"a":32926,"t":"code","b":[208,253],"m":"bne","oa":32925,"o":"b_809D"},{"a":32928,"t":"code","b":[136],"m":"dey"},{"a":32929,"t":"code","b":[208,250],"m":"bne","oa":32925,"o":"b_809D"},{"a":32931,"t":"code","b":[96],"m":"rts"},{"a":32932,"l":"delay_long","c":"four times delay_short","t":"code","b":[32,155,128],"m":"jsr","oa":32923,"x":[33601,33794,34880,35876],"o":"delay_short"},{"a":32935,"t":"code","b":[32,155,128],"m":"jsr","oa":32923,"o":"delay_short"},{"a":32938,"t":"code","b":[32,155,128],"m":"jsr","oa":32923,"o":"delay_short"},{"a":32941,"t":"code","b":[32,155,128],"m":"jsr","oa":32923,"o":"delay_short"},{"a":32944,"t":"code","b":[96],"m":"rts"},{"a":32945,"l":"delay_or_space","c":"waits $90 passes of a 256-step loop that tests the key flag zpa_FC, about 480,000 cycles, and returns at once when zpa_FC is $EF, the SPACE key (row 7, column 4); pause_screen's delay between flashes, so that SPACE ends the pause without waiting","t":"code","b":[160,144],"m":"ldy","x":[32990,33004,33007,33010],"o":"#$90"},{"a":32947,"l":"b_80B3","t":"code","b":[162,0],"m":"ldx","x":[32960],"o":"#$00"},{"a":32949,"l":"b_80B5","t":"code","b":[165,252],"m":"lda","oa":252,"x":[32957],"o":"zpa_FC"},{"a":32951,"t":"code","b":[201,239],"m":"cmp","o":"#$EF"},{"a":32953,"t":"code","b":[208,1],"m":"bne","oa":32956,"o":"b_80BC"},{"a":32955,"t":"code","b":[96],"m":"rts"},{"a":32956,"l":"b_80BC","t":"code","b":[202],"m":"dex","x":[32953]},{"a":32957,"t":"code","b":[208,246],"m":"bne","oa":32949,"o":"b_80B5"},{"a":32959,"t":"code","b":[136],"m":"dey"},{"a":32960,"t":"code","b":[208,241],"m":"bne","oa":32947,"o":"b_80B3"},{"a":32962,"t":"code","b":[96],"m":"rts"},{"a":32963,"l":"pause_screen","c":"shows the pause text on the status line and flashes it until the space-bar flag zpa_FC says to carry on","t":"code","b":[32,156,110],"m":"jsr","oa":28316,"x":[33017,33042],"o":"save_status_row"},{"a":32966,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":32968,"t":"code","b":[133,70],"m":"sta","oa":70,"o":"zpa_46"},{"a":32970,"t":"code","b":[169,111],"m":"lda","o":"#$6F"},{"a":32972,"t":"code","b":[133,71],"m":"sta","oa":71,"o":"zpa_47"},{"a":32974,"t":"code","b":[32,174,110],"m":"jsr","oa":28334,"o":"draw_status_text"},{"a":32977,"t":"code","b":[165,155],"m":"lda","oa":155,"o":"zpa_9B"},{"a":32979,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":32981,"t":"code","b":[208,7],"m":"bne","oa":32990,"o":"b_80DE"},{"a":32983,"t":"code","b":[230,155],"m":"inc","oa":155,"o":"zpa_9B"},{"a":32985,"t":"code","b":[32,155,128],"m":"jsr","oa":32923,"o":"delay_short"},{"a":32988,"t":"code","b":[133,252],"m":"sta","oa":252,"o":"zpa_FC"},{"a":32990,"l":"b_80DE","t":"code","b":[32,177,128],"m":"jsr","oa":32945,"x":[32981],"o":"delay_or_space"},{"a":32993,"t":"code","b":[169,98],"m":"lda","o":"#$62"},{"a":32995,"t":"code","b":[133,70],"m":"sta","oa":70,"o":"zpa_46"},{"a":32997,"t":"code","b":[169,152],"m":"lda","o":"#$98"},{"a":32999,"t":"code","b":[133,71],"m":"sta","oa":71,"o":"zpa_47"},{"a":33001,"t":"code","b":[32,174,110],"m":"jsr","oa":28334,"o":"draw_status_text"},{"a":33004,"t":"code","b":[32,177,128],"m":"jsr","oa":32945,"o":"delay_or_space"},{"a":33007,"t":"code","b":[32,177,128],"m":"jsr","oa":32945,"o":"delay_or_space"},{"a":33010,"t":"code","b":[32,177,128],"m":"jsr","oa":32945,"o":"delay_or_space"},{"a":33013,"t":"code","b":[165,252],"m":"lda","oa":252,"o":"zpa_FC"},{"a":33015,"t":"code","b":[201,239],"m":"cmp","o":"#$EF"},{"a":33017,"t":"code","b":[208,200],"m":"bne","oa":32963,"o":"pause_screen"},{"a":33019,"t":"code","b":[32,155,128],"m":"jsr","oa":32923,"o":"delay_short"},{"a":33022,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33024,"t":"code","b":[133,252],"m":"sta","oa":252,"o":"zpa_FC"},{"a":33026,"t":"code","b":[96],"m":"rts"},{"a":33027,"l":"pause_and_restart_keys","c":"handles the keyboard flags at the end of each update pass ($81D2), so a pass that a boulder landing on the magic wall cuts short ($7775) skips it: SPACE ($EF in zpa_FC) stops play (zpa_94 = 0), silences the sound, sets the pause flag zpa_9B and runs pause_screen, then clears zpa_9B and sets zpa_94 back to 1; RUN/STOP ($7F in zpa_FC), once the intro countdown zpa_95 has reached zero, stops play and sets zpa_97 to 2, ending the cave; then clears zpa_FC; F1 ($EF in zpa_FB) restarts the whole program at $8E6A","t":"code","b":[165,252],"m":"lda","oa":252,"x":[33234],"o":"zpa_FC"},{"a":33029,"t":"code","b":[201,239],"m":"cmp","o":"#$EF"},{"a":33031,"t":"code","b":[208,18],"m":"bne","oa":33051,"o":"b_811B"},{"a":33033,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":33035,"t":"code","b":[134,148],"m":"stx","oa":148,"o":"zpa_94"},{"a":33037,"t":"code","b":[32,140,128],"m":"jsr","oa":32908,"o":"silence_all"},{"a":33040,"t":"code","b":[230,155],"m":"inc","oa":155,"o":"zpa_9B"},{"a":33042,"t":"code","b":[32,195,128],"m":"jsr","oa":32963,"o":"pause_screen"},{"a":33045,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33047,"t":"code","b":[133,155],"m":"sta","oa":155,"o":"zpa_9B"},{"a":33049,"t":"code","b":[230,148],"m":"inc","oa":148,"o":"zpa_94"},{"a":33051,"l":"b_811B","t":"code","b":[165,252],"m":"lda","oa":252,"x":[33031],"o":"zpa_FC"},{"a":33053,"t":"code","b":[201,127],"m":"cmp","o":"#$7F"},{"a":33055,"t":"code","b":[208,12],"m":"bne","oa":33069,"o":"b_812D"},{"a":33057,"t":"code","b":[165,149],"m":"lda","oa":149,"o":"zpa_95"},{"a":33059,"t":"code","b":[208,8],"m":"bne","oa":33069,"o":"b_812D"},{"a":33061,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33063,"t":"code","b":[133,148],"m":"sta","oa":148,"o":"zpa_94"},{"a":33065,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":33067,"t":"code","b":[133,151],"m":"sta","oa":151,"o":"zpa_97"},{"a":33069,"l":"b_812D","t":"code","b":[169,0],"m":"lda","x":[33055,33059],"o":"#$00"},{"a":33071,"t":"code","b":[133,252],"m":"sta","oa":252,"o":"zpa_FC"},{"a":33073,"t":"code","b":[165,251],"m":"lda","oa":251,"o":"zpa_FB"},{"a":33075,"t":"code","b":[201,239],"m":"cmp","o":"#$EF"},{"a":33077,"t":"code","b":[208,3],"m":"bne","oa":33082,"o":"r_813A"},{"a":33079,"t":"code","b":[76,106,142],"m":"jmp","oa":36458,"o":"j_8E6A"},{"a":33082,"l":"r_813A","t":"code","b":[96],"m":"rts","x":[33077]},{"a":33083,"l":"end_of_pass","c":"after the update pass records whether the amoeba found room to grow (zpf_42 into zpa_43), clearing the growth flag zpa_8C when it had room before and none now, and copies the amoeba count a_9802 to a_9803","t":"code","b":[165,66],"m":"lda","oa":66,"x":[33169],"o":"zpf_42"},{"a":33085,"t":"code","b":[208,8],"m":"bne","oa":33095,"o":"b_8147"},{"a":33087,"t":"code","b":[165,67],"m":"lda","oa":67,"o":"zpa_43"},{"a":33089,"t":"code","b":[240,4],"m":"beq","oa":33095,"o":"b_8147"},{"a":33091,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33093,"t":"code","b":[133,140],"m":"sta","oa":140,"o":"zpa_8C"},{"a":33095,"l":"b_8147","t":"code","b":[165,66],"m":"lda","oa":66,"x":[33085,33089],"o":"zpf_42"},{"a":33097,"t":"code","b":[133,67],"m":"sta","oa":67,"o":"zpa_43"},{"a":33099,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33101,"t":"code","b":[133,66],"m":"sta","oa":66,"o":"zpf_42"},{"a":33103,"t":"code","b":[173,2,152],"m":"lda","oa":38914,"o":"a_9802"},{"a":33106,"t":"code","b":[141,3,152],"m":"sta","oa":38915,"o":"a_9803"},{"a":33109,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33111,"t":"code","b":[141,2,152],"m":"sta","oa":38914,"o":"a_9802"},{"a":33114,"t":"code","b":[96],"m":"rts"},{"a":33115,"l":"check_restart_fire","c":"runs read_fire; when zpa_96 is $10, so no Rockford has been handled for 16 passes (update_pass counts it up to $10 at $8186-$818C, rockford_handler clears it at $7648), the fire button is pressed (zpa_B8 = 0) and the seconds counter zpa_AF (second_tick, $747B) is not zero, sets zpa_97 to 2 and so ends the cave: once Rockford is gone, fire moves on","t":"code","b":[32,1,111],"m":"jsr","oa":28417,"x":[33166],"o":"read_fire"},{"a":33118,"t":"code","b":[165,150],"m":"lda","oa":150,"o":"zpa_96"},{"a":33120,"t":"code","b":[201,16],"m":"cmp","o":"#$10"},{"a":33122,"t":"code","b":[208,12],"m":"bne","oa":33136,"o":"r_8170"},{"a":33124,"t":"code","b":[165,184],"m":"lda","oa":184,"o":"zpa_B8"},{"a":33126,"t":"code","b":[208,8],"m":"bne","oa":33136,"o":"r_8170"},{"a":33128,"t":"code","b":[165,175],"m":"lda","oa":175,"o":"zpa_AF"},{"a":33130,"t":"code","b":[240,4],"m":"beq","oa":33136,"o":"r_8170"},{"a":33132,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":33134,"t":"code","b":[133,151],"m":"sta","oa":151,"o":"zpa_97"},{"a":33136,"l":"r_8170","t":"code","b":[96],"m":"rts","x":[33122,33126,33130]},{"a":33137,"l":"update_pass","c":"one pass over the cave, run again and again by play_loop ($8C92) and once per script step by demo_play ($8CDE): counts zpa_96 up to $10, runs check_restart_fire and end_of_pass, then walks every column of rows 1 to 21 (rows 1 to 14 in caves 17 to 20, zpp_02 at $8171-$817D) with the handled cell at offset $29 from zpp_32; looks the cell's object up in the table of handlers at $5F68 and jumps to the handler when its high byte is not zero; the handlers end at end_of_object ($81AD), which applies the remap table at $5EE8 to the cell at offset 0 from zpp_32, one row up and one column left of the handled cell, so the 'handled' object codes are turned back one row and one column behind the scan, and goes on to the next cell","t":"code","b":[169,22],"m":"lda","x":[35986,36062],"o":"#$16"},{"a":33139,"t":"code","b":[133,2],"m":"sta","oa":2,"o":"zpp_02"},{"a":33141,"t":"code","b":[165,93],"m":"lda","oa":93,"o":"zpa_5D"},{"a":33143,"t":"code","b":[201,17],"m":"cmp","o":"#$11"},{"a":33145,"t":"code","b":[144,4],"m":"bcc","oa":33151,"o":"b_817F"},{"a":33147,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":33149,"t":"code","b":[133,2],"m":"sta","oa":2,"o":"zpp_02"},{"a":33151,"l":"b_817F","t":"code","b":[169,1],"m":"lda","x":[33145],"o":"#$01"},{"a":33153,"t":"code","b":[133,146],"m":"sta","oa":146,"o":"zpa_92"},{"a":33155,"t":"code","b":[32,101,122],"m":"jsr","oa":31333,"o":"set_row_pointer"},{"a":33158,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":33160,"t":"code","b":[197,150],"m":"cmp","oa":150,"o":"zpa_96"},{"a":33162,"t":"code","b":[240,2],"m":"beq","oa":33166,"o":"b_818E"},{"a":33164,"t":"code","b":[230,150],"m":"inc","oa":150,"o":"zpa_96"},{"a":33166,"l":"b_818E","t":"code","b":[32,91,129],"m":"jsr","oa":33115,"x":[33162],"o":"check_restart_fire"},{"a":33169,"t":"code","b":[32,59,129],"m":"jsr","oa":33083,"o":"end_of_pass"},{"a":33172,"l":"b_8194","t":"code","b":[169,0],"m":"lda","x":[33232],"o":"#$00"},{"a":33174,"t":"code","b":[133,145],"m":"sta","oa":145,"o":"zpa_91"},{"a":33176,"l":"b_8198","t":"code","b":[160,41],"m":"ldy","x":[33221],"o":"#$29"},{"a":33178,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":33180,"t":"code","b":[10],"m":"asl","o":"a"},{"a":33181,"t":"code","b":[170],"m":"tax"},{"a":33182,"t":"code","b":[189,105,95],"m":"lda","oa":24425,"o":"handler_table,x"},{"a":33185,"t":"code","b":[240,10],"m":"beq","oa":33197,"o":"end_of_object"},{"a":33187,"t":"code","b":[133,57],"m":"sta","oa":57,"o":"zpa_39"},{"a":33189,"t":"code","b":[189,104,95],"m":"lda","oa":24424,"o":"handler_table_low,x"},{"a":33192,"t":"code","b":[133,56],"m":"sta","oa":56,"o":"zpa_38"},{"a":33194,"t":"code","b":[108,56,0],"m":"jmp","oa":56,"o":"(zpa_38)"},{"a":33197,"l":"end_of_object","c":"applies the remap table at $5EE8 to the cell at offset 0 from zpp_32 (Y = 0), one row up and one column left of the handled cell at offset $29, so the 'handled' codes are turned back one row and one column behind the scan, after it has passed them; then advances zpp_32 to the next cell and column and, after each row, delays on the easy levels (short_delay); after the last row runs pause_and_restart_keys","t":"code","b":[160,0],"m":"ldy","x":[28802,28919,29054,29117,29265,29328,29338,29454,29465,29537,29559,29571,29646,30284,30341,30374,30453,30522,30639,30653,30664,30670,33185],"o":"#$00"},{"a":33199,"t":"code","b":[177,50],"m":"lda","oa":50,"o":"(zpp_32),y"},{"a":33201,"t":"code","b":[170],"m":"tax"},{"a":33202,"t":"code","b":[189,232,94],"m":"lda","oa":24296,"o":"object_remap_table,x"},{"a":33205,"t":"code","b":[240,2],"m":"beq","oa":33209,"o":"b_81B9"},{"a":33207,"t":"code","b":[145,50],"m":"sta","oa":50,"o":"(zpp_32),y"},{"a":33209,"l":"b_81B9","t":"code","b":[230,50],"m":"inc","oa":50,"x":[33205],"o":"zpp_32"},{"a":33211,"t":"code","b":[208,2],"m":"bne","oa":33215,"o":"b_81BF"},{"a":33213,"t":"code","b":[230,51],"m":"inc","oa":51,"o":"zpa_33"},{"a":33215,"l":"b_81BF","t":"code","b":[230,145],"m":"inc","oa":145,"x":[33211],"o":"zpa_91"},{"a":33217,"t":"code","b":[165,145],"m":"lda","oa":145,"o":"zpa_91"},{"a":33219,"t":"code","b":[201,40],"m":"cmp","o":"#$28"},{"a":33221,"t":"code","b":[208,209],"m":"bne","oa":33176,"o":"b_8198"},{"a":33223,"t":"code","b":[32,106,128],"m":"jsr","oa":32874,"o":"short_delay"},{"a":33226,"t":"code","b":[230,146],"m":"inc","oa":146,"o":"zpa_92"},{"a":33228,"t":"code","b":[165,146],"m":"lda","oa":146,"o":"zpa_92"},{"a":33230,"t":"code","b":[197,2],"m":"cmp","oa":2,"o":"zpp_02"},{"a":33232,"t":"code","b":[208,194],"m":"bne","oa":33172,"o":"b_8194"},{"a":33234,"t":"code","b":[32,3,129],"m":"jsr","oa":33027,"o":"pause_and_restart_keys"},{"a":33237,"t":"code","b":[96],"m":"rts"},{"a":33238,"l":"decimal_digit_weights","c":"the weights 0, 0, 1 added by the decimal conversion","t":"byte","b":[0,0,1],"x":[33259]},{"a":33241,"l":"binary_to_decimal","c":"converts the count in zpa_C6 into three decimal digits in zpf_C3-C5 by adding the weights at $81D6 with carry, counting zpa_C6 down","t":"code","b":[162,2],"m":"ldx","x":[33445,33469,33489,33506],"o":"#$02"},{"a":33243,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33245,"l":"b_81DD","t":"code","b":[149,195],"m":"sta","oa":195,"x":[33248],"o":"zpf_C3,x"},{"a":33247,"t":"code","b":[202],"m":"dex"},{"a":33248,"t":"code","b":[16,251],"m":"bpl","oa":33245,"o":"b_81DD"},{"a":33250,"t":"code","b":[165,198],"m":"lda","oa":198,"o":"zpa_C6"},{"a":33252,"t":"code","b":[240,23],"m":"beq","oa":33277,"o":"r_81FD"},{"a":33254,"l":"b_81E6","t":"code","b":[162,2],"m":"ldx","x":[33275],"o":"#$02"},{"a":33256,"t":"code","b":[24],"m":"clc"},{"a":33257,"l":"b_81E9","t":"code","b":[181,195],"m":"lda","oa":195,"x":[33271],"o":"zpf_C3,x"},{"a":33259,"t":"code","b":[125,214,129],"m":"adc","oa":33238,"o":"decimal_digit_weights,x"},{"a":33262,"t":"code","b":[201,10],"m":"cmp","o":"#$0A"},{"a":33264,"t":"code","b":[144,2],"m":"bcc","oa":33268,"o":"b_81F4"},{"a":33266,"t":"code","b":[233,10],"m":"sbc","o":"#$0A"},{"a":33268,"l":"b_81F4","t":"code","b":[149,195],"m":"sta","oa":195,"x":[33264],"o":"zpf_C3,x"},{"a":33270,"t":"code","b":[202],"m":"dex"},{"a":33271,"t":"code","b":[16,240],"m":"bpl","oa":33257,"o":"b_81E9"},{"a":33273,"t":"code","b":[198,198],"m":"dec","oa":198,"o":"zpa_C6"},{"a":33275,"t":"code","b":[208,233],"m":"bne","oa":33254,"o":"b_81E6"},{"a":33276,"t":"note","l":"cave_loop_branch","c":"the operand ($E9) of the branch at $81FB in binary_to_decimal, which repeats the decimal conversion loop at $81E6 until the count in zpa_C6 reaches zero; two bytes before the cave order table at $81FE, with the RTS at $81FD between. next_cave reads the table through this address ($8BDC, LDA $81FC,X with X twice the cave number), so cave 1's next cave is at $81FE; load_cave_data ($8230) and show_cave_name ($83A2) read the second byte of each entry through $81FD the same way","note":"inside the item at $81FB","x":[35804]},{"a":33277,"l":"r_81FD","t":"code","b":[96],"m":"rts","x":[33252,33328,33698]},{"a":33278,"l":"cave_order_table","c":"two bytes per cave number, 1 to 20 ($81FE-$8225): the cave that follows it (read by next_cave through $81FC plus twice the cave number) and a flag that is 1 when the cave itself is an intermission, caves 17 to 20 (read through $81FD plus twice the cave number by load_cave_data and show_cave_name). The order is A, B, C, D, then intermission 17, E to H, 18, I to L, 19, M to P, 20; the value $15 after cave 20 ends a round: next_cave goes back to cave 1 and raises the level, unless it is level 5 already","t":"byte","b":[2,0,3,0,4,0,17,0]},{"a":33286,"t":"byte","b":[6,0,7,0,8,0,18,0]},{"a":33294,"t":"byte","b":[10,0,11,0,12,0,19,0]},{"a":33302,"t":"byte","b":[14,0,15,0,16,0,20,0]},{"a":33310,"t":"byte","b":[5,1,9,1,13,1,21,1]},{"a":33318,"l":"load_cave_data","c":"when the cave number zpa_5D has changed copies the $F0-byte description of the cave (at $582E plus the offset in the table at $5804) into $2400, then takes the random seed for the level, sets the two multicolour registers from $2413/$2414 and fills colour RAM from $2415","t":"code","b":[165,93],"m":"lda","oa":93,"x":[35513],"o":"zpa_5D"},{"a":33320,"t":"code","b":[197,153],"m":"cmp","oa":153,"o":"zpa_99"},{"a":33322,"t":"code","b":[240,36],"m":"beq","oa":33360,"o":"b_8250"},{"a":33324,"t":"code","b":[133,153],"m":"sta","oa":153,"o":"zpa_99"},{"a":33326,"t":"code","b":[10],"m":"asl","o":"a"},{"a":33327,"t":"code","b":[170],"m":"tax"},{"a":33328,"t":"code","b":[189,253,129],"m":"lda","oa":33277,"o":"r_81FD,x"},{"a":33331,"t":"code","b":[133,166],"m":"sta","oa":166,"o":"zpa_A6"},{"a":33333,"t":"code","b":[24],"m":"clc"},{"a":33334,"t":"code","b":[169,46],"m":"lda","o":"#$2E"},{"a":33336,"t":"code","b":[125,4,88],"m":"adc","oa":22532,"o":"cave_offsets_low,x"},{"a":33339,"t":"code","b":[133,60],"m":"sta","oa":60,"o":"zpa_3C"},{"a":33341,"t":"code","b":[169,88],"m":"lda","o":"#$58"},{"a":33343,"t":"code","b":[125,5,88],"m":"adc","oa":22533,"o":"cave_offsets,x"},{"a":33346,"t":"code","b":[133,61],"m":"sta","oa":61,"o":"zpa_3D"},{"a":33348,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":33350,"l":"b_8246","t":"code","b":[177,60],"m":"lda","oa":60,"x":[33358],"o":"(zpa_3C),y"},{"a":33352,"t":"code","b":[153,0,36],"m":"sta","oa":9216,"o":"f_2400,y"},{"a":33355,"t":"code","b":[200],"m":"iny"},{"a":33356,"t":"code","b":[192,240],"m":"cpy","o":"#$F0"},{"a":33358,"t":"code","b":[208,246],"m":"bne","oa":33350,"o":"b_8246"},{"a":33360,"l":"b_8250","t":"code","b":[166,94],"m":"ldx","oa":94,"x":[33322],"o":"zpa_5E"},{"a":33362,"t":"code","b":[189,4,36],"m":"lda","oa":9220,"o":"f_2404,x"},{"a":33365,"t":"code","b":[133,62],"m":"sta","oa":62,"o":"zpa_3E"},{"a":33367,"t":"code","b":[133,64],"m":"sta","oa":64,"o":"zpa_40"},{"a":33369,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33371,"t":"code","b":[133,63],"m":"sta","oa":63,"o":"zpa_3F"},{"a":33373,"t":"code","b":[133,65],"m":"sta","oa":65,"o":"zpa_41"},{"a":33375,"t":"code","b":[173,19,36],"m":"lda","oa":9235,"o":"a_2413"},{"a":33378,"t":"code","b":[141,34,208],"m":"sta","o":"vic_background1"},{"a":33381,"t":"code","b":[173,20,36],"m":"lda","oa":9236,"o":"a_2414"},{"a":33384,"t":"code","b":[141,35,208],"m":"sta","o":"vic_background2"},{"a":33387,"t":"code","b":[160,40],"m":"ldy","o":"#$28"},{"a":33389,"t":"code","b":[173,21,36],"m":"lda","oa":9237,"o":"a_2415"},{"a":33392,"t":"code","b":[32,123,110],"m":"jsr","oa":28283,"o":"fill_colour_ram"},{"a":33395,"t":"code","b":[96],"m":"rts"},{"a":33396,"l":"start_cave_variables","c":"clears the cave's play variables (among them the magic wall state and its frame and second counts zpa_8D-zpa_8F, the quota flag zpa_90, the seconds zpa_AF and frames zpa_AE, zpa_96, zpa_97 and the pause flag zpa_9B) and restores the magic wall characters; sets the delay for the level, the time ($240E+level) in zpa_C7 and the three time digits, the diamonds needed ($2409+level), the two values of a diamond ($2402 before the quota, $2403 after), clears the diamond count, sets zpa_8C and the intro flag zpa_93 to 1 and the intro delay zpa_95 (4; 6 for two players on one joystick; one more in cave 2); sets the amoeba rate zpa_9A to $7F and the object mask zpf_FF to 7, then for caves 1 to 16 from the table at $8740, indexed by the cave number minus one","t":"code","b":[169,0],"m":"lda","x":[35525],"o":"#$00"},{"a":33398,"t":"code","b":[133,66],"m":"sta","oa":66,"o":"zpf_42"},{"a":33400,"t":"code","b":[133,67],"m":"sta","oa":67,"o":"zpa_43"},{"a":33402,"t":"code","b":[133,150],"m":"sta","oa":150,"o":"zpa_96"},{"a":33404,"t":"code","b":[133,151],"m":"sta","oa":151,"o":"zpa_97"},{"a":33406,"t":"code","b":[133,141],"m":"sta","oa":141,"o":"zpa_8D"},{"a":33408,"t":"code","b":[133,142],"m":"sta","oa":142,"o":"zpa_8E"},{"a":33410,"t":"code","b":[133,143],"m":"sta","oa":143,"o":"zpa_8F"},{"a":33412,"t":"code","b":[133,144],"m":"sta","oa":144,"o":"zpa_90"},{"a":33414,"t":"code","b":[141,2,152],"m":"sta","oa":38914,"o":"a_9802"},{"a":33417,"t":"code","b":[133,175],"m":"sta","oa":175,"o":"zpa_AF"},{"a":33419,"t":"code","b":[133,174],"m":"sta","oa":174,"o":"zpa_AE"},{"a":33421,"t":"code","b":[133,159],"m":"sta","oa":159,"o":"zpa_9F"},{"a":33423,"t":"code","b":[133,155],"m":"sta","oa":155,"o":"zpa_9B"},{"a":33425,"t":"code","b":[141,120,152],"m":"sta","oa":39032,"o":"a_9878"},{"a":33428,"t":"code","b":[32,30,126],"m":"jsr","oa":32286,"o":"restore_magic_wall_chars"},{"a":33431,"t":"code","b":[166,94],"m":"ldx","oa":94,"o":"zpa_5E"},{"a":33433,"t":"code","b":[189,101,128],"m":"lda","oa":32869,"o":"time_delay_table,x"},{"a":33436,"t":"code","b":[133,156],"m":"sta","oa":156,"o":"zpa_9C"},{"a":33438,"t":"code","b":[189,14,36],"m":"lda","oa":9230,"o":"f_240E,x"},{"a":33441,"t":"code","b":[133,199],"m":"sta","oa":199,"o":"zpa_C7"},{"a":33443,"t":"code","b":[133,198],"m":"sta","oa":198,"o":"zpa_C6"},{"a":33445,"t":"code","b":[32,217,129],"m":"jsr","oa":33241,"o":"binary_to_decimal"},{"a":33448,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":33450,"l":"b_82AA","t":"code","b":[181,195],"m":"lda","oa":195,"x":[33460],"o":"zpf_C3,x"},{"a":33452,"t":"code","b":[149,171],"m":"sta","oa":171,"o":"zpa_AB,x"},{"a":33454,"t":"code","b":[9,16],"m":"ora","o":"#$10"},{"a":33456,"t":"code","b":[157,68,152],"m":"sta","oa":38980,"o":"f_9844,x"},{"a":33459,"t":"code","b":[202],"m":"dex"},{"a":33460,"t":"code","b":[16,244],"m":"bpl","oa":33450,"o":"b_82AA"},{"a":33462,"t":"code","b":[166,94],"m":"ldx","oa":94,"o":"zpa_5E"},{"a":33464,"t":"code","b":[189,9,36],"m":"lda","oa":9225,"o":"f_2409,x"},{"a":33467,"t":"code","b":[133,198],"m":"sta","oa":198,"o":"zpa_C6"},{"a":33469,"t":"code","b":[32,217,129],"m":"jsr","oa":33241,"o":"binary_to_decimal"},{"a":33472,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":33474,"l":"b_82C2","t":"code","b":[181,196],"m":"lda","oa":196,"x":[33479],"o":"zpf_C4,x"},{"a":33476,"t":"code","b":[149,178],"m":"sta","oa":178,"o":"zpf_B2,x"},{"a":33478,"t":"code","b":[202],"m":"dex"},{"a":33479,"t":"code","b":[16,249],"m":"bpl","oa":33474,"o":"b_82C2"},{"a":33481,"t":"code","b":[32,220,116],"m":"jsr","oa":29916,"o":"show_needed"},{"a":33484,"t":"code","b":[173,2,36],"m":"lda","oa":9218,"o":"a_2402"},{"a":33487,"t":"code","b":[133,198],"m":"sta","oa":198,"o":"zpa_C6"},{"a":33489,"t":"code","b":[32,217,129],"m":"jsr","oa":33241,"o":"binary_to_decimal"},{"a":33492,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":33494,"l":"b_82D6","t":"code","b":[181,195],"m":"lda","oa":195,"x":[33499],"o":"zpf_C3,x"},{"a":33496,"t":"code","b":[149,81],"m":"sta","oa":81,"o":"zpf_51,x"},{"a":33498,"t":"code","b":[202],"m":"dex"},{"a":33499,"t":"code","b":[16,249],"m":"bpl","oa":33494,"o":"b_82D6"},{"a":33501,"t":"code","b":[173,3,36],"m":"lda","oa":9219,"o":"a_2403"},{"a":33504,"t":"code","b":[133,198],"m":"sta","oa":198,"o":"zpa_C6"},{"a":33506,"t":"code","b":[32,217,129],"m":"jsr","oa":33241,"o":"binary_to_decimal"},{"a":33509,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":33511,"l":"b_82E7","t":"code","b":[181,195],"m":"lda","oa":195,"x":[33516],"o":"zpf_C3,x"},{"a":33513,"t":"code","b":[149,180],"m":"sta","oa":180,"o":"zpf_B4,x"},{"a":33515,"t":"code","b":[202],"m":"dex"},{"a":33516,"t":"code","b":[16,249],"m":"bpl","oa":33511,"o":"b_82E7"},{"a":33518,"t":"code","b":[32,233,116],"m":"jsr","oa":29929,"o":"show_value"},{"a":33521,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33523,"t":"code","b":[133,176],"m":"sta","oa":176,"o":"zpf_B0"},{"a":33525,"t":"code","b":[133,177],"m":"sta","oa":177,"o":"zpa_B1"},{"a":33527,"t":"code","b":[9,16],"m":"ora","o":"#$10"},{"a":33529,"t":"code","b":[141,65,152],"m":"sta","oa":38977,"o":"f_9841"},{"a":33532,"t":"code","b":[141,66,152],"m":"sta","oa":38978,"o":"a_9842"},{"a":33535,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":33537,"t":"code","b":[133,140],"m":"sta","oa":140,"o":"zpa_8C"},{"a":33539,"t":"code","b":[133,147],"m":"sta","oa":147,"o":"zpa_93"},{"a":33541,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":33543,"t":"code","b":[133,149],"m":"sta","oa":149,"o":"zpa_95"},{"a":33545,"t":"code","b":[165,159],"m":"lda","oa":159,"o":"zpa_9F"},{"a":33547,"t":"code","b":[208,12],"m":"bne","oa":33561,"o":"b_8319"},{"a":33549,"t":"code","b":[165,164],"m":"lda","oa":164,"o":"zpa_A4"},{"a":33551,"t":"code","b":[73,1],"m":"eor","o":"#$01"},{"a":33553,"t":"code","b":[37,158],"m":"and","oa":158,"o":"zpa_9E"},{"a":33555,"t":"code","b":[240,4],"m":"beq","oa":33561,"o":"b_8319"},{"a":33557,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":33559,"t":"code","b":[133,149],"m":"sta","oa":149,"o":"zpa_95"},{"a":33561,"l":"b_8319","t":"code","b":[165,93],"m":"lda","oa":93,"x":[33547,33555],"o":"zpa_5D"},{"a":33563,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":33565,"t":"code","b":[208,2],"m":"bne","oa":33569,"o":"b_8321"},{"a":33567,"t":"code","b":[230,149],"m":"inc","oa":149,"o":"zpa_95"},{"a":33569,"l":"b_8321","t":"code","b":[169,127],"m":"lda","x":[33565],"o":"#$7F"},{"a":33571,"t":"code","b":[133,154],"m":"sta","oa":154,"o":"zpa_9A"},{"a":33573,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":33575,"t":"code","b":[133,255],"m":"sta","oa":255,"o":"zpf_FF"},{"a":33577,"t":"code","b":[166,93],"m":"ldx","oa":93,"o":"zpa_5D"},{"a":33579,"t":"code","b":[224,17],"m":"cpx","o":"#$11"},{"a":33581,"t":"code","b":[176,6],"m":"bcs","oa":33589,"o":"r_8335"},{"a":33583,"t":"code","b":[202],"m":"dex"},{"a":33584,"t":"code","b":[189,64,135],"m":"lda","oa":34624,"o":"cave_animation_mask,x"},{"a":33587,"t":"code","b":[133,255],"m":"sta","oa":255,"o":"zpf_FF"},{"a":33589,"l":"r_8335","t":"code","b":[96],"m":"rts","x":[33581]},{"a":33590,"l":"show_game_over","c":"draws the GAME OVER line at $6F8C and waits","t":"code","b":[169,140],"m":"lda","x":[33760],"o":"#$8C"},{"a":33592,"t":"code","b":[133,70],"m":"sta","oa":70,"o":"zpa_46"},{"a":33594,"t":"code","b":[169,111],"m":"lda","o":"#$6F"},{"a":33596,"t":"code","b":[133,71],"m":"sta","oa":71,"o":"zpa_47"},{"a":33598,"t":"code","b":[32,174,110],"m":"jsr","oa":28334,"o":"draw_status_text"},{"a":33601,"t":"code","b":[32,164,128],"m":"jsr","oa":32932,"o":"delay_long"},{"a":33604,"t":"code","b":[96],"m":"rts"},{"a":33605,"l":"wait_for_fire","c":"waits $75 x $80 passes of a loop that reads the fire button with read_fire_button ($6F03), about 720,000 cycles without the interrupt's share, and returns early when fire is pressed. It reads the fire bit only, not the keyboard; the port is joystick 1 unless the two-joystick flag zpa_A4 is set and the player value is 1: zpa_9D after an intermission (zpa_A6 set), its opposite otherwise","t":"code","b":[160,117],"m":"ldy","x":[33657,33671,33674,33677],"o":"#$75"},{"a":33607,"l":"b_8347","t":"code","b":[162,128],"m":"ldx","x":[33635],"o":"#$80"},{"a":33609,"l":"b_8349","t":"code","b":[165,166],"m":"lda","oa":166,"x":[33632],"o":"zpa_A6"},{"a":33611,"t":"code","b":[208,7],"m":"bne","oa":33620,"o":"b_8354"},{"a":33613,"t":"code","b":[165,157],"m":"lda","oa":157,"o":"zpa_9D"},{"a":33615,"t":"code","b":[73,1],"m":"eor","o":"#$01"},{"a":33617,"t":"code","b":[76,86,131],"m":"jmp","oa":33622,"o":"j_8356"},{"a":33620,"l":"b_8354","t":"code","b":[165,157],"m":"lda","oa":157,"x":[33611],"o":"zpa_9D"},{"a":33622,"l":"j_8356","t":"code","b":[32,3,111],"m":"jsr","oa":28419,"x":[33617],"o":"read_fire_button"},{"a":33625,"t":"code","b":[208,4],"m":"bne","oa":33631,"o":"b_835F"},{"a":33627,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":33629,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":33631,"l":"b_835F","t":"code","b":[202],"m":"dex","x":[33625]},{"a":33632,"t":"code","b":[208,231],"m":"bne","oa":33609,"o":"b_8349"},{"a":33634,"t":"code","b":[136],"m":"dey"},{"a":33635,"t":"code","b":[208,226],"m":"bne","oa":33607,"o":"b_8347"},{"a":33637,"t":"code","b":[96],"m":"rts"},{"a":33638,"l":"show_out_of_time","c":"flashes OUT OF TIME on the status row: draws the 20 codes at $6FB4 (four spaces and OUT OF TIME, from text_status_template), waits once with wait_for_fire, draws the status row saved at $9862 and waits three times more; repeats until a round ends with the fire button pressed (zpa_B8 = 0) or for 20 rounds (a_9806), after which it clears zpa_B8 itself. end_of_cave calls it when the time has run out ($83C6-$83D5)","t":"code","b":[169,20],"m":"lda","x":[33749],"o":"#$14"},{"a":33640,"t":"code","b":[141,6,152],"m":"sta","oa":38918,"o":"a_9806"},{"a":33643,"l":"b_836B","t":"code","b":[32,156,110],"m":"jsr","oa":28316,"x":[33691],"o":"save_status_row"},{"a":33646,"t":"code","b":[169,180],"m":"lda","o":"#$B4"},{"a":33648,"t":"code","b":[133,70],"m":"sta","oa":70,"o":"zpa_46"},{"a":33650,"t":"code","b":[169,111],"m":"lda","o":"#$6F"},{"a":33652,"t":"code","b":[133,71],"m":"sta","oa":71,"o":"zpa_47"},{"a":33654,"t":"code","b":[32,174,110],"m":"jsr","oa":28334,"o":"draw_status_text"},{"a":33657,"t":"code","b":[32,69,131],"m":"jsr","oa":33605,"o":"wait_for_fire"},{"a":33660,"t":"code","b":[169,98],"m":"lda","o":"#$62"},{"a":33662,"t":"code","b":[133,70],"m":"sta","oa":70,"o":"zpa_46"},{"a":33664,"t":"code","b":[169,152],"m":"lda","o":"#$98"},{"a":33666,"t":"code","b":[133,71],"m":"sta","oa":71,"o":"zpa_47"},{"a":33668,"t":"code","b":[32,174,110],"m":"jsr","oa":28334,"o":"draw_status_text"},{"a":33671,"t":"code","b":[32,69,131],"m":"jsr","oa":33605,"o":"wait_for_fire"},{"a":33674,"t":"code","b":[32,69,131],"m":"jsr","oa":33605,"o":"wait_for_fire"},{"a":33677,"t":"code","b":[32,69,131],"m":"jsr","oa":33605,"o":"wait_for_fire"},{"a":33680,"t":"code","b":[206,6,152],"m":"dec","oa":38918,"o":"a_9806"},{"a":33683,"t":"code","b":[208,4],"m":"bne","oa":33689,"o":"b_8399"},{"a":33685,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33687,"t":"code","b":[133,184],"m":"sta","oa":184,"o":"zpa_B8"},{"a":33689,"l":"b_8399","t":"code","b":[165,184],"m":"lda","oa":184,"x":[33683],"o":"zpa_B8"},{"a":33691,"t":"code","b":[208,206],"m":"bne","oa":33643,"o":"b_836B"},{"a":33693,"t":"code","b":[96],"m":"rts"},{"a":33694,"l":"show_cave_name","c":"before the next cave reads that cave's intermission flag from the order table ($81FD plus twice zpa_5D) into zpa_A6; for an intermission draws BONUS LIFE ($6FC8) on the status row and runs add_life, which gives a man more and the glisten effect unless the player already has nine ($73D3); otherwise draws the status line from $984E (player, men, cave and level)","t":"code","b":[165,93],"m":"lda","oa":93,"x":[33774],"o":"zpa_5D"},{"a":33696,"t":"code","b":[10],"m":"asl","o":"a"},{"a":33697,"t":"code","b":[170],"m":"tax"},{"a":33698,"t":"code","b":[189,253,129],"m":"lda","oa":33277,"o":"r_81FD,x"},{"a":33701,"t":"code","b":[133,166],"m":"sta","oa":166,"o":"zpa_A6"},{"a":33703,"t":"code","b":[240,17],"m":"beq","oa":33722,"o":"b_83BA"},{"a":33705,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":33707,"t":"code","b":[133,70],"m":"sta","oa":70,"o":"zpa_46"},{"a":33709,"t":"code","b":[169,111],"m":"lda","o":"#$6F"},{"a":33711,"t":"code","b":[133,71],"m":"sta","oa":71,"o":"zpa_47"},{"a":33713,"t":"code","b":[32,174,110],"m":"jsr","oa":28334,"o":"draw_status_text"},{"a":33716,"t":"code","b":[32,209,115],"m":"jsr","oa":29649,"o":"add_life"},{"a":33719,"t":"code","b":[76,197,131],"m":"jmp","oa":33733,"o":"r_83C5"},{"a":33722,"l":"b_83BA","t":"code","b":[169,78],"m":"lda","x":[33703],"o":"#$4E"},{"a":33724,"t":"code","b":[133,70],"m":"sta","oa":70,"o":"zpa_46"},{"a":33726,"t":"code","b":[169,152],"m":"lda","o":"#$98"},{"a":33728,"t":"code","b":[133,71],"m":"sta","oa":71,"o":"zpa_47"},{"a":33730,"t":"code","b":[32,174,110],"m":"jsr","oa":28334,"o":"draw_status_text"},{"a":33733,"l":"r_83C5","t":"code","b":[96],"m":"rts","x":[33719]},{"a":33734,"l":"end_of_cave","c":"after a cave or the demonstration: when the seconds gone zpa_AF equal the cave's time zpa_C7, the time has run out, stops play (zpa_94 = 0), stores $10 at $0C18 and runs show_out_of_time, which flashes OUT OF TIME until fire or for 20 rounds; then, when the game is over (zpa_A0), stops play, shows GAME OVER and sets the magic wall state zpa_8D to 2 (magic_wall_animation then restores the wall's characters and silences voice 3, $7E80-$7E8C), otherwise, unless the cave number zpa_5D is 0, runs show_cave_name for the next cave; then sets zpa_BD, silences the sound, wipes the cave with scatter_cover and fill_screen_buffer, and after a game over waits with delay_long","t":"code","b":[165,175],"m":"lda","oa":175,"x":[36654],"o":"zpa_AF"},{"a":33736,"t":"code","b":[197,199],"m":"cmp","oa":199,"o":"zpa_C7"},{"a":33738,"t":"code","b":[208,12],"m":"bne","oa":33752,"o":"b_83D8"},{"a":33740,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33742,"t":"code","b":[133,148],"m":"sta","oa":148,"o":"zpa_94"},{"a":33744,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":33746,"t":"code","b":[141,24,12],"m":"sta","oa":3096,"o":"a_0C18"},{"a":33749,"t":"code","b":[32,102,131],"m":"jsr","oa":33638,"o":"show_out_of_time"},{"a":33752,"l":"b_83D8","t":"code","b":[165,160],"m":"lda","oa":160,"x":[33738],"o":"zpa_A0"},{"a":33754,"t":"code","b":[240,14],"m":"beq","oa":33770,"o":"b_83EA"},{"a":33756,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33758,"t":"code","b":[133,148],"m":"sta","oa":148,"o":"zpa_94"},{"a":33760,"t":"code","b":[32,54,131],"m":"jsr","oa":33590,"o":"show_game_over"},{"a":33763,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":33765,"t":"code","b":[133,141],"m":"sta","oa":141,"o":"zpa_8D"},{"a":33767,"t":"code","b":[76,241,131],"m":"jmp","oa":33777,"o":"j_83F1"},{"a":33770,"l":"b_83EA","t":"code","b":[165,93],"m":"lda","oa":93,"x":[33754],"o":"zpa_5D"},{"a":33772,"t":"code","b":[240,3],"m":"beq","oa":33777,"o":"j_83F1"},{"a":33774,"t":"code","b":[32,158,131],"m":"jsr","oa":33694,"o":"show_cave_name"},{"a":33777,"l":"j_83F1","t":"code","b":[169,1],"m":"lda","x":[33767,33772],"o":"#$01"},{"a":33779,"t":"code","b":[133,189],"m":"sta","oa":189,"o":"zpa_BD"},{"a":33781,"t":"code","b":[32,140,128],"m":"jsr","oa":32908,"o":"silence_all"},{"a":33784,"t":"code","b":[32,145,122],"m":"jsr","oa":31377,"o":"scatter_cover"},{"a":33787,"t":"code","b":[32,115,122],"m":"jsr","oa":31347,"o":"fill_screen_buffer"},{"a":33790,"t":"code","b":[165,160],"m":"lda","oa":160,"o":"zpa_A0"},{"a":33792,"t":"code","b":[240,3],"m":"beq","oa":33797,"o":"r_8405"},{"a":33794,"t":"code","b":[32,164,128],"m":"jsr","oa":32932,"o":"delay_long"},{"a":33797,"l":"r_8405","t":"code","b":[96],"m":"rts","x":[33792]},{"a":33798,"l":"row_address_table","c":"the map-screen row start addresses, $0800 plus $28 per row, 24 entries, words from $0800 to $0B98","t":"byte","b":[0],"x":[33851]},{"a":33799,"l":"row_address_table_rest","c":"the high bytes of row_address_table: row_pointer ($8436) reads the low byte at $8406 and the high byte here at $8407, each plus twice the row, from 24 little-endian words $0800 to $0B98 in steps of $28; a cave description's row y gives $0800 + 40y, so y = 2 is the map's first row at $0850","t":"byte","b":[8,40,8,80,8,120,8,160],"x":[33858]},{"a":33807,"t":"byte","b":[8,200,8,240,8,24,9,64]},{"a":33815,"t":"byte","b":[9,104,9,144,9,184,9,224]},{"a":33823,"t":"byte","b":[9,8,10,48,10,88,10,128]},{"a":33831,"t":"byte","b":[10,168,10,208,10,248,10,32]},{"a":33839,"t":"byte","b":[11,72,11,112,11,152,11]},{"a":33846,"l":"row_pointer","c":"turns the row zpa_DC and column zpa_DB of a cave-description object into the address zpa_3A/3B in the map","t":"code","b":[165,220],"m":"lda","oa":220,"x":[33866,33931,33944,34007],"o":"zpa_DC"},{"a":33848,"t":"code","b":[10],"m":"asl","o":"a"},{"a":33849,"t":"code","b":[168],"m":"tay"},{"a":33850,"t":"code","b":[24],"m":"clc"},{"a":33851,"t":"code","b":[185,6,132],"m":"lda","oa":33798,"o":"row_address_table,y"},{"a":33854,"t":"code","b":[101,219],"m":"adc","oa":219,"o":"zpa_DB"},{"a":33856,"t":"code","b":[133,58],"m":"sta","oa":58,"o":"zpa_3A"},{"a":33858,"t":"code","b":[185,7,132],"m":"lda","oa":33799,"o":"row_address_table_rest,y"},{"a":33861,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":33863,"t":"code","b":[133,59],"m":"sta","oa":59,"o":"zpa_3B"},{"a":33865,"t":"code","b":[96],"m":"rts"},{"a":33866,"l":"plot_point","c":"stores the object in zpa_DA in the map cell addressed by the row and column of the current cave description object","t":"code","b":[32,54,132],"m":"jsr","oa":33846,"x":[34138],"o":"row_pointer"},{"a":33869,"t":"code","b":[165,218],"m":"lda","oa":218,"o":"zpa_DA"},{"a":33871,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":33873,"t":"code","b":[145,58],"m":"sta","oa":58,"o":"(zpa_3A),y"},{"a":33875,"t":"code","b":[96],"m":"rts"},{"a":33876,"l":"direction_steps","c":"the 16-bit steps for the eight directions of cave-description lines","t":"byte","b":[216],"x":[33896]},{"a":33877,"l":"direction_steps_rest","c":"the rest of the eight direction steps, 16-bit words such as -1, 1, -40 and 40 for the neighbours of a map cell, read by the line routine at $8464","t":"byte","b":[255,217,255,1,0,41,0,40],"x":[33901]},{"a":33885,"t":"byte","b":[0,39,0,255,255,215,255]},{"a":33892,"l":"draw_line","c":"stores the object zpa_DA in zpa_C8 cells along the direction in A starting at the cell addressed by zpa_3A/3B","t":"code","b":[160,0],"m":"ldy","x":[33940,34018,34029,34040,34051],"o":"#$00"},{"a":33894,"t":"code","b":[10],"m":"asl","o":"a"},{"a":33895,"t":"code","b":[170],"m":"tax"},{"a":33896,"t":"code","b":[189,84,132],"m":"lda","oa":33876,"o":"direction_steps,x"},{"a":33899,"t":"code","b":[133,201],"m":"sta","oa":201,"o":"zpa_C9"},{"a":33901,"t":"code","b":[189,85,132],"m":"lda","oa":33877,"o":"direction_steps_rest,x"},{"a":33904,"t":"code","b":[133,202],"m":"sta","oa":202,"o":"zpa_CA"},{"a":33906,"l":"j_8472","t":"code","b":[198,200],"m":"dec","oa":200,"x":[33927],"o":"zpa_C8"},{"a":33908,"t":"code","b":[48,20],"m":"bmi","oa":33930,"o":"r_848A"},{"a":33910,"t":"code","b":[165,218],"m":"lda","oa":218,"o":"zpa_DA"},{"a":33912,"t":"code","b":[145,58],"m":"sta","oa":58,"o":"(zpa_3A),y"},{"a":33914,"t":"code","b":[24],"m":"clc"},{"a":33915,"t":"code","b":[165,58],"m":"lda","oa":58,"o":"zpa_3A"},{"a":33917,"t":"code","b":[101,201],"m":"adc","oa":201,"o":"zpa_C9"},{"a":33919,"t":"code","b":[133,58],"m":"sta","oa":58,"o":"zpa_3A"},{"a":33921,"t":"code","b":[165,59],"m":"lda","oa":59,"o":"zpa_3B"},{"a":33923,"t":"code","b":[101,202],"m":"adc","oa":202,"o":"zpa_CA"},{"a":33925,"t":"code","b":[133,59],"m":"sta","oa":59,"o":"zpa_3B"},{"a":33927,"t":"code","b":[76,114,132],"m":"jmp","oa":33906,"o":"j_8472"},{"a":33930,"l":"r_848A","t":"code","b":[96],"m":"rts","x":[33908]},{"a":33931,"l":"draw_line_object","c":"draws a line object of the cave description: a start cell, a length and a direction","t":"code","b":[32,54,132],"m":"jsr","oa":33846,"x":[34151],"o":"row_pointer"},{"a":33934,"t":"code","b":[165,221],"m":"lda","oa":221,"o":"zpa_DD"},{"a":33936,"t":"code","b":[133,200],"m":"sta","oa":200,"o":"zpa_C8"},{"a":33938,"t":"code","b":[165,223],"m":"lda","oa":223,"o":"zpa_DF"},{"a":33940,"t":"code","b":[32,100,132],"m":"jsr","oa":33892,"o":"draw_line"},{"a":33943,"t":"code","b":[96],"m":"rts"},{"a":33944,"l":"fill_rectangle","c":"fills a rectangle of width zpa_DD and height zpa_DF with object zpa_DA","t":"code","b":[32,54,132],"m":"jsr","oa":33846,"x":[33984,34003],"o":"row_pointer"},{"a":33947,"t":"code","b":[165,223],"m":"lda","oa":223,"o":"zpa_DF"},{"a":33949,"t":"code","b":[133,200],"m":"sta","oa":200,"o":"zpa_C8"},{"a":33951,"l":"j_849F","t":"code","b":[198,200],"m":"dec","oa":200,"x":[33980],"o":"zpa_C8"},{"a":33953,"t":"code","b":[48,28],"m":"bmi","oa":33983,"o":"r_84BF"},{"a":33955,"t":"code","b":[164,221],"m":"ldy","oa":221,"o":"zpa_DD"},{"a":33957,"l":"j_84A5","t":"code","b":[136],"m":"dey","x":[33964]},{"a":33958,"t":"code","b":[48,7],"m":"bmi","oa":33967,"o":"b_84AF"},{"a":33960,"t":"code","b":[165,218],"m":"lda","oa":218,"o":"zpa_DA"},{"a":33962,"t":"code","b":[145,58],"m":"sta","oa":58,"o":"(zpa_3A),y"},{"a":33964,"t":"code","b":[76,165,132],"m":"jmp","oa":33957,"o":"j_84A5"},{"a":33967,"l":"b_84AF","t":"code","b":[24],"m":"clc","x":[33958]},{"a":33968,"t":"code","b":[165,58],"m":"lda","oa":58,"o":"zpa_3A"},{"a":33970,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":33972,"t":"code","b":[133,58],"m":"sta","oa":58,"o":"zpa_3A"},{"a":33974,"t":"code","b":[165,59],"m":"lda","oa":59,"o":"zpa_3B"},{"a":33976,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":33978,"t":"code","b":[133,59],"m":"sta","oa":59,"o":"zpa_3B"},{"a":33980,"t":"code","b":[76,159,132],"m":"jmp","oa":33951,"o":"j_849F"},{"a":33983,"l":"r_84BF","t":"code","b":[96],"m":"rts","x":[33953]},{"a":33984,"l":"draw_box","c":"draws the filled rectangle, then the object zpa_E0 inside it","t":"code","b":[32,152,132],"m":"jsr","oa":33944,"x":[34164],"o":"fill_rectangle"},{"a":33987,"t":"code","b":[165,224],"m":"lda","oa":224,"o":"zpa_E0"},{"a":33989,"t":"code","b":[133,218],"m":"sta","oa":218,"o":"zpa_DA"},{"a":33991,"t":"code","b":[230,219],"m":"inc","oa":219,"o":"zpa_DB"},{"a":33993,"t":"code","b":[230,220],"m":"inc","oa":220,"o":"zpa_DC"},{"a":33995,"t":"code","b":[198,221],"m":"dec","oa":221,"o":"zpa_DD"},{"a":33997,"t":"code","b":[198,221],"m":"dec","oa":221,"o":"zpa_DD"},{"a":33999,"t":"code","b":[198,223],"m":"dec","oa":223,"o":"zpa_DF"},{"a":34001,"t":"code","b":[198,223],"m":"dec","oa":223,"o":"zpa_DF"},{"a":34003,"t":"code","b":[32,152,132],"m":"jsr","oa":33944,"o":"fill_rectangle"},{"a":34006,"t":"code","b":[96],"m":"rts"},{"a":34007,"l":"draw_frame","c":"draws the four sides of a rectangle with object zpa_DA","t":"code","b":[32,54,132],"m":"jsr","oa":33846,"x":[34177,34235,34518],"o":"row_pointer"},{"a":34010,"t":"code","b":[165,221],"m":"lda","oa":221,"o":"zpa_DD"},{"a":34012,"t":"code","b":[133,200],"m":"sta","oa":200,"o":"zpa_C8"},{"a":34014,"t":"code","b":[198,200],"m":"dec","oa":200,"o":"zpa_C8"},{"a":34016,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":34018,"t":"code","b":[32,100,132],"m":"jsr","oa":33892,"o":"draw_line"},{"a":34021,"t":"code","b":[165,223],"m":"lda","oa":223,"o":"zpa_DF"},{"a":34023,"t":"code","b":[133,200],"m":"sta","oa":200,"o":"zpa_C8"},{"a":34025,"t":"code","b":[198,200],"m":"dec","oa":200,"o":"zpa_C8"},{"a":34027,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":34029,"t":"code","b":[32,100,132],"m":"jsr","oa":33892,"o":"draw_line"},{"a":34032,"t":"code","b":[165,221],"m":"lda","oa":221,"o":"zpa_DD"},{"a":34034,"t":"code","b":[133,200],"m":"sta","oa":200,"o":"zpa_C8"},{"a":34036,"t":"code","b":[198,200],"m":"dec","oa":200,"o":"zpa_C8"},{"a":34038,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":34040,"t":"code","b":[32,100,132],"m":"jsr","oa":33892,"o":"draw_line"},{"a":34043,"t":"code","b":[165,223],"m":"lda","oa":223,"o":"zpa_DF"},{"a":34045,"t":"code","b":[133,200],"m":"sta","oa":200,"o":"zpa_C8"},{"a":34047,"t":"code","b":[198,200],"m":"dec","oa":200,"o":"zpa_C8"},{"a":34049,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":34051,"t":"code","b":[32,100,132],"m":"jsr","oa":33892,"o":"draw_line"},{"a":34054,"t":"code","b":[96],"m":"rts"},{"a":34055,"l":"skip_to_next_object","c":"advances Y over the bytes of the current cave description object","t":"code","b":[200],"m":"iny","x":[34063,34135]},{"a":34056,"t":"code","b":[200],"m":"iny"},{"a":34057,"t":"code","b":[200],"m":"iny"},{"a":34058,"t":"code","b":[132,203],"m":"sty","oa":203,"o":"zpa_CB"},{"a":34060,"t":"code","b":[96],"m":"rts"},{"a":34061,"l":"skip_two_bytes","c":"adds two to the byte index in Y and runs the routine at $8507 that adds three more and stores it in zpa_CB, so one cave-object record is stepped over","t":"code","b":[200],"m":"iny","x":[34068,34148,34174]},{"a":34062,"t":"code","b":[200],"m":"iny"},{"a":34063,"t":"code","b":[32,7,133],"m":"jsr","oa":34055,"o":"skip_to_next_object"},{"a":34066,"t":"code","b":[96],"m":"rts"},{"a":34067,"l":"skip_record","c":"adds one to Y and then steps over the rest of the record through the routine at $850D","t":"code","b":[200],"m":"iny","x":[34161]},{"a":34068,"t":"code","b":[32,13,133],"m":"jsr","oa":34061,"o":"skip_two_bytes"},{"a":34071,"t":"code","b":[96],"m":"rts"},{"a":34072,"l":"build_cave_from_description","c":"walks the cave description list from $2420: each record starts with a code (top two bits: 00 single point, 40 line, 80 filled rectangle with an inner fill, C0 outline rectangle; low six bits the object); stops at the end byte $FF; for object $25 (the entrance) it also records Rockford's column zpa_44 and row zpa_45","t":"code","b":[160,0],"m":"ldy","x":[35522],"o":"#$00"},{"a":34074,"t":"code","b":[132,203],"m":"sty","oa":203,"o":"zpa_CB"},{"a":34076,"l":"j_851C","t":"code","b":[164,203],"m":"ldy","oa":203,"x":[34180],"o":"zpa_CB"},{"a":34078,"t":"code","b":[185,32,36],"m":"lda","oa":9248,"o":"f_2420,y"},{"a":34081,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":34083,"t":"code","b":[240,98],"m":"beq","oa":34183,"o":"r_8587"},{"a":34085,"t":"code","b":[41,63],"m":"and","o":"#$3F"},{"a":34087,"t":"code","b":[133,218],"m":"sta","oa":218,"o":"zpa_DA"},{"a":34089,"t":"code","b":[201,37],"m":"cmp","o":"#$25"},{"a":34091,"t":"code","b":[208,10],"m":"bne","oa":34103,"o":"b_8537"},{"a":34093,"t":"code","b":[185,33,36],"m":"lda","oa":9249,"o":"f_2421,y"},{"a":34096,"t":"code","b":[133,68],"m":"sta","oa":68,"o":"zpa_44"},{"a":34098,"t":"code","b":[185,34,36],"m":"lda","oa":9250,"o":"f_2422,y"},{"a":34101,"t":"code","b":[133,69],"m":"sta","oa":69,"o":"zpa_45"},{"a":34103,"l":"b_8537","t":"code","b":[185,33,36],"m":"lda","oa":9249,"x":[34091],"o":"f_2421,y"},{"a":34106,"t":"code","b":[133,219],"m":"sta","oa":219,"o":"zpa_DB"},{"a":34108,"t":"code","b":[185,34,36],"m":"lda","oa":9250,"o":"f_2422,y"},{"a":34111,"t":"code","b":[133,220],"m":"sta","oa":220,"o":"zpa_DC"},{"a":34113,"t":"code","b":[185,35,36],"m":"lda","oa":9251,"o":"f_2423,y"},{"a":34116,"t":"code","b":[133,221],"m":"sta","oa":221,"o":"zpa_DD"},{"a":34118,"t":"code","b":[185,36,36],"m":"lda","oa":9252,"o":"f_2424,y"},{"a":34121,"t":"code","b":[133,223],"m":"sta","oa":223,"o":"zpa_DF"},{"a":34123,"t":"code","b":[185,37,36],"m":"lda","oa":9253,"o":"f_2425,y"},{"a":34126,"t":"code","b":[133,224],"m":"sta","oa":224,"o":"zpa_E0"},{"a":34128,"t":"code","b":[185,32,36],"m":"lda","oa":9248,"o":"f_2420,y"},{"a":34131,"t":"code","b":[41,192],"m":"and","o":"#$C0"},{"a":34133,"t":"code","b":[208,9],"m":"bne","oa":34144,"o":"b_8560"},{"a":34135,"t":"code","b":[32,7,133],"m":"jsr","oa":34055,"o":"skip_to_next_object"},{"a":34138,"t":"code","b":[32,74,132],"m":"jsr","oa":33866,"o":"plot_point"},{"a":34141,"t":"code","b":[76,132,133],"m":"jmp","oa":34180,"o":"j_8584"},{"a":34144,"l":"b_8560","t":"code","b":[201,64],"m":"cmp","x":[34133],"o":"#$40"},{"a":34146,"t":"code","b":[208,9],"m":"bne","oa":34157,"o":"b_856D"},{"a":34148,"t":"code","b":[32,13,133],"m":"jsr","oa":34061,"o":"skip_two_bytes"},{"a":34151,"t":"code","b":[32,139,132],"m":"jsr","oa":33931,"o":"draw_line_object"},{"a":34154,"t":"code","b":[76,132,133],"m":"jmp","oa":34180,"o":"j_8584"},{"a":34157,"l":"b_856D","t":"code","b":[201,128],"m":"cmp","x":[34146],"o":"#$80"},{"a":34159,"t":"code","b":[208,9],"m":"bne","oa":34170,"o":"b_857A"},{"a":34161,"t":"code","b":[32,19,133],"m":"jsr","oa":34067,"o":"skip_record"},{"a":34164,"t":"code","b":[32,192,132],"m":"jsr","oa":33984,"o":"draw_box"},{"a":34167,"t":"code","b":[76,132,133],"m":"jmp","oa":34180,"o":"j_8584"},{"a":34170,"l":"b_857A","t":"code","b":[201,192],"m":"cmp","x":[34159],"o":"#$C0"},{"a":34172,"t":"code","b":[208,6],"m":"bne","oa":34180,"o":"j_8584"},{"a":34174,"t":"code","b":[32,13,133],"m":"jsr","oa":34061,"o":"skip_two_bytes"},{"a":34177,"t":"code","b":[32,215,132],"m":"jsr","oa":34007,"o":"draw_frame"},{"a":34180,"l":"j_8584","t":"code","b":[76,28,133],"m":"jmp","oa":34076,"x":[34141,34154,34167,34172],"o":"j_851C"},{"a":34183,"l":"r_8587","t":"code","b":[96],"m":"rts","x":[34083]},{"a":34184,"l":"show_players_status","c":"unless the logo flag zpa_A3 is set, writes the two digits of the title's menu line 1 PLAYER 1 JOYSTICK (row 22 of the title screen at $0800): the number of players, zpa_9E + 1, at $0B70/$0B71, and the number of joysticks, zpa_A4 + 1, at $0B84/$0B85, each as the pair code, code + $34","t":"code","b":[165,163],"m":"lda","oa":163,"x":[34497,34877,34887],"o":"zpa_A3"},{"a":34186,"t":"code","b":[208,26],"m":"bne","oa":34214,"o":"r_85A6"},{"a":34188,"t":"code","b":[165,158],"m":"lda","oa":158,"o":"zpa_9E"},{"a":34190,"t":"code","b":[24],"m":"clc"},{"a":34191,"t":"code","b":[105,17],"m":"adc","o":"#$11"},{"a":34193,"t":"code","b":[141,112,11],"m":"sta","oa":2928,"o":"a_0B70"},{"a":34196,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":34198,"t":"code","b":[141,113,11],"m":"sta","oa":2929,"o":"a_0B71"},{"a":34201,"t":"code","b":[165,164],"m":"lda","oa":164,"o":"zpa_A4"},{"a":34203,"t":"code","b":[24],"m":"clc"},{"a":34204,"t":"code","b":[105,17],"m":"adc","o":"#$11"},{"a":34206,"t":"code","b":[141,132,11],"m":"sta","oa":2948,"o":"a_0B84"},{"a":34209,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":34211,"t":"code","b":[141,133,11],"m":"sta","oa":2949,"o":"a_0B85"},{"a":34214,"l":"r_85A6","t":"code","b":[96],"m":"rts","x":[34186]},{"a":34215,"l":"draw_steel_border","c":"draws a steel wall ($07) frame around the 40 by 22 cave","t":"code","b":[169,7],"m":"lda","x":[35519],"o":"#$07"},{"a":34217,"t":"code","b":[133,218],"m":"sta","oa":218,"o":"zpa_DA"},{"a":34219,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":34221,"t":"code","b":[133,219],"m":"sta","oa":219,"o":"zpa_DB"},{"a":34223,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":34225,"t":"code","b":[133,220],"m":"sta","oa":220,"o":"zpa_DC"},{"a":34227,"t":"code","b":[169,40],"m":"lda","o":"#$28"},{"a":34229,"t":"code","b":[133,221],"m":"sta","oa":221,"o":"zpa_DD"},{"a":34231,"t":"code","b":[169,22],"m":"lda","o":"#$16"},{"a":34233,"t":"code","b":[133,223],"m":"sta","oa":223,"o":"zpa_DF"},{"a":34235,"t":"code","b":[32,215,132],"m":"jsr","oa":34007,"o":"draw_frame"},{"a":34238,"t":"code","b":[96],"m":"rts"},{"a":34239,"l":"build_menu_screen","c":"builds the title and menu screen into the map at $0828 and the lines of text at $0AF8-$0B98 from the tables at $6F14-$7004 (on one path the lines at $0B20 and $0B48 instead come from the score buffers at $9812 and $9826) and the map part from the title templates at $66E8-$68E7","t":"code","b":[162,0],"m":"ldx","x":[35028,35244],"o":"#$00"},{"a":34241,"t":"code","b":[138],"m":"txa"},{"a":34242,"l":"b_85C2","t":"code","b":[157,40,8],"m":"sta","oa":2088,"x":[34254],"o":"f_0828,x"},{"a":34245,"t":"code","b":[157,104,9],"m":"sta","oa":2408,"o":"f_0968,x"},{"a":34248,"t":"code","b":[157,168,10],"m":"sta","oa":2728,"o":"f_0AA8,x"},{"a":34251,"t":"code","b":[232],"m":"inx"},{"a":34252,"t":"code","b":[224,80],"m":"cpx","o":"#$50"},{"a":34254,"t":"code","b":[208,242],"m":"bne","oa":34242,"o":"b_85C2"},{"a":34256,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":34258,"l":"b_85D2","t":"code","b":[189,232,102],"m":"lda","oa":26344,"x":[34273],"o":"title_map_top,x"},{"a":34261,"t":"code","b":[157,80,8],"m":"sta","oa":2128,"o":"f_0850,x"},{"a":34264,"t":"code","b":[189,232,103],"m":"lda","oa":26600,"o":"title_map_top_2,x"},{"a":34267,"t":"code","b":[157,144,9],"m":"sta","oa":2448,"o":"f_0990,x"},{"a":34270,"t":"code","b":[232],"m":"inx"},{"a":34271,"t":"code","b":[224,16],"m":"cpx","o":"#$10"},{"a":34273,"t":"code","b":[208,239],"m":"bne","oa":34258,"o":"b_85D2"},{"a":34275,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":34277,"l":"b_85E5","t":"code","b":[189,248,102],"m":"lda","oa":26360,"x":[34292],"o":"title_map_rows,x"},{"a":34280,"t":"code","b":[157,120,8],"m":"sta","oa":2168,"o":"f_0878,x"},{"a":34283,"t":"code","b":[189,248,103],"m":"lda","oa":26616,"o":"title_map_rows_2,x"},{"a":34286,"t":"code","b":[157,184,9],"m":"sta","oa":2488,"o":"f_09B8,x"},{"a":34289,"t":"code","b":[232],"m":"inx"},{"a":34290,"t":"code","b":[224,240],"m":"cpx","o":"#$F0"},{"a":34292,"t":"code","b":[208,239],"m":"bne","oa":34277,"o":"b_85E5"},{"a":34294,"t":"code","b":[165,204],"m":"lda","oa":204,"o":"zpa_CC"},{"a":34296,"t":"code","b":[5,162],"m":"ora","oa":162,"o":"zpa_A2"},{"a":34298,"t":"code","b":[240,72],"m":"beq","oa":34372,"o":"b_8644"},{"a":34300,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":34302,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":34304,"l":"b_8600","t":"code","b":[185,20,111],"m":"lda","oa":28436,"x":[34321],"o":"text_title_credit_1,y"},{"a":34307,"t":"code","b":[157,248,10],"m":"sta","oa":2808,"o":"f_0AF8,x"},{"a":34310,"t":"code","b":[232],"m":"inx"},{"a":34311,"t":"code","b":[24],"m":"clc"},{"a":34312,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":34314,"t":"code","b":[157,248,10],"m":"sta","oa":2808,"o":"f_0AF8,x"},{"a":34317,"t":"code","b":[232],"m":"inx"},{"a":34318,"t":"code","b":[200],"m":"iny"},{"a":34319,"t":"code","b":[192,20],"m":"cpy","o":"#$14"},{"a":34321,"t":"code","b":[208,237],"m":"bne","oa":34304,"o":"b_8600"},{"a":34323,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":34325,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":34327,"l":"b_8617","t":"code","b":[185,40,111],"m":"lda","oa":28456,"x":[34344],"o":"text_title_credit_2,y"},{"a":34330,"t":"code","b":[157,32,11],"m":"sta","oa":2848,"o":"f_0B20,x"},{"a":34333,"t":"code","b":[232],"m":"inx"},{"a":34334,"t":"code","b":[24],"m":"clc"},{"a":34335,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":34337,"t":"code","b":[157,32,11],"m":"sta","oa":2848,"o":"f_0B20,x"},{"a":34340,"t":"code","b":[232],"m":"inx"},{"a":34341,"t":"code","b":[200],"m":"iny"},{"a":34342,"t":"code","b":[192,20],"m":"cpy","o":"#$14"},{"a":34344,"t":"code","b":[208,237],"m":"bne","oa":34327,"o":"b_8617"},{"a":34346,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":34348,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":34350,"l":"b_862E","t":"code","b":[185,4,112],"m":"lda","oa":28676,"x":[34367],"o":"text_press_button,y"},{"a":34353,"t":"code","b":[157,72,11],"m":"sta","oa":2888,"o":"f_0B48,x"},{"a":34356,"t":"code","b":[232],"m":"inx"},{"a":34357,"t":"code","b":[24],"m":"clc"},{"a":34358,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":34360,"t":"code","b":[157,72,11],"m":"sta","oa":2888,"o":"f_0B48,x"},{"a":34363,"t":"code","b":[232],"m":"inx"},{"a":34364,"t":"code","b":[200],"m":"iny"},{"a":34365,"t":"code","b":[192,20],"m":"cpy","o":"#$14"},{"a":34367,"t":"code","b":[208,237],"m":"bne","oa":34350,"o":"b_862E"},{"a":34369,"t":"code","b":[76,137,134],"m":"jmp","oa":34441,"o":"j_8689"},{"a":34372,"l":"b_8644","t":"code","b":[162,0],"m":"ldx","x":[34298],"o":"#$00"},{"a":34374,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":34376,"l":"b_8648","t":"code","b":[185,80,111],"m":"lda","oa":28496,"x":[34393],"o":"text_player_labels,y"},{"a":34379,"t":"code","b":[157,248,10],"m":"sta","oa":2808,"o":"f_0AF8,x"},{"a":34382,"t":"code","b":[232],"m":"inx"},{"a":34383,"t":"code","b":[24],"m":"clc"},{"a":34384,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":34386,"t":"code","b":[157,248,10],"m":"sta","oa":2808,"o":"f_0AF8,x"},{"a":34389,"t":"code","b":[232],"m":"inx"},{"a":34390,"t":"code","b":[200],"m":"iny"},{"a":34391,"t":"code","b":[192,20],"m":"cpy","o":"#$14"},{"a":34393,"t":"code","b":[208,237],"m":"bne","oa":34376,"o":"b_8648"},{"a":34395,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":34397,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":34399,"l":"b_865F","t":"code","b":[185,18,152],"m":"lda","oa":38930,"x":[34416],"o":"f_9812,y"},{"a":34402,"t":"code","b":[157,32,11],"m":"sta","oa":2848,"o":"f_0B20,x"},{"a":34405,"t":"code","b":[232],"m":"inx"},{"a":34406,"t":"code","b":[24],"m":"clc"},{"a":34407,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":34409,"t":"code","b":[157,32,11],"m":"sta","oa":2848,"o":"f_0B20,x"},{"a":34412,"t":"code","b":[232],"m":"inx"},{"a":34413,"t":"code","b":[200],"m":"iny"},{"a":34414,"t":"code","b":[192,20],"m":"cpy","o":"#$14"},{"a":34416,"t":"code","b":[208,237],"m":"bne","oa":34399,"o":"b_865F"},{"a":34418,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":34420,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":34422,"l":"b_8676","t":"code","b":[185,38,152],"m":"lda","oa":38950,"x":[34439],"o":"f_9826,y"},{"a":34425,"t":"code","b":[157,72,11],"m":"sta","oa":2888,"o":"f_0B48,x"},{"a":34428,"t":"code","b":[232],"m":"inx"},{"a":34429,"t":"code","b":[24],"m":"clc"},{"a":34430,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":34432,"t":"code","b":[157,72,11],"m":"sta","oa":2888,"o":"f_0B48,x"},{"a":34435,"t":"code","b":[232],"m":"inx"},{"a":34436,"t":"code","b":[200],"m":"iny"},{"a":34437,"t":"code","b":[192,20],"m":"cpy","o":"#$14"},{"a":34439,"t":"code","b":[208,237],"m":"bne","oa":34422,"o":"b_8676"},{"a":34441,"l":"j_8689","t":"code","b":[162,0],"m":"ldx","x":[34369],"o":"#$00"},{"a":34443,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":34445,"l":"b_868D","t":"code","b":[185,220,111],"m":"lda","oa":28636,"x":[34462],"o":"text_cave_level,y"},{"a":34448,"t":"code","b":[157,152,11],"m":"sta","oa":2968,"o":"f_0B98,x"},{"a":34451,"t":"code","b":[232],"m":"inx"},{"a":34452,"t":"code","b":[24],"m":"clc"},{"a":34453,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":34455,"t":"code","b":[157,152,11],"m":"sta","oa":2968,"o":"f_0B98,x"},{"a":34458,"t":"code","b":[232],"m":"inx"},{"a":34459,"t":"code","b":[200],"m":"iny"},{"a":34460,"t":"code","b":[192,20],"m":"cpy","o":"#$14"},{"a":34462,"t":"code","b":[208,237],"m":"bne","oa":34445,"o":"b_868D"},{"a":34464,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":34466,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":34468,"l":"b_86A4","t":"code","b":[185,60,111],"m":"lda","oa":28476,"x":[34485],"o":"text_players_joystick,y"},{"a":34471,"t":"code","b":[157,112,11],"m":"sta","oa":2928,"o":"a_0B70,x"},{"a":34474,"t":"code","b":[232],"m":"inx"},{"a":34475,"t":"code","b":[24],"m":"clc"},{"a":34476,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":34478,"t":"code","b":[157,112,11],"m":"sta","oa":2928,"o":"a_0B70,x"},{"a":34481,"t":"code","b":[232],"m":"inx"},{"a":34482,"t":"code","b":[200],"m":"iny"},{"a":34483,"t":"code","b":[192,20],"m":"cpy","o":"#$14"},{"a":34485,"t":"code","b":[208,237],"m":"bne","oa":34468,"o":"b_86A4"},{"a":34487,"t":"code","b":[162,39],"m":"ldx","o":"#$27"},{"a":34489,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":34491,"l":"b_86BB","t":"code","b":[157,192,11],"m":"sta","oa":3008,"x":[34495],"o":"f_0BC0,x"},{"a":34494,"t":"code","b":[202],"m":"dex"},{"a":34495,"t":"code","b":[16,250],"m":"bpl","oa":34491,"o":"b_86BB"},{"a":34497,"t":"code","b":[32,136,133],"m":"jsr","oa":34184,"o":"show_players_status"},{"a":34500,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":34502,"t":"code","b":[133,218],"m":"sta","oa":218,"o":"zpa_DA"},{"a":34504,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":34506,"l":"sid_note_table","c":"the table of SID frequency words the title music reads: music_step takes the low byte at $86CA and the high byte at $86CB, each plus twice the note number ($8780-$8789, $8791-$879A). Notes 0-9 would fall on the last instructions of build_menu_screen at $86CA-$86DD, but the tune uses notes 15 to 58 only; notes 10 to 58 are the 49 words at $86DE-$873F, rising from $02DC to $2DC0","t":"code","b":[133,219],"m":"sta","oa":219,"x":[34688,34705],"o":"zpa_DB"},{"a":34507,"t":"note","l":"sid_note_table_high","c":"the high byte of each frequency word in the table at $86CA, read at the same index as the low byte","note":"inside the item at $86CA","x":[34694,34711]},{"a":34508,"t":"code","b":[133,220],"m":"sta","oa":220,"o":"zpa_DC"},{"a":34510,"t":"code","b":[169,40],"m":"lda","o":"#$28"},{"a":34512,"t":"code","b":[133,221],"m":"sta","oa":221,"o":"zpa_DD"},{"a":34514,"t":"code","b":[169,19],"m":"lda","o":"#$13"},{"a":34516,"t":"code","b":[133,223],"m":"sta","oa":223,"o":"zpa_DF"},{"a":34518,"t":"code","b":[32,215,132],"m":"jsr","oa":34007,"o":"draw_frame"},{"a":34521,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":34523,"t":"code","b":[133,204],"m":"sta","oa":204,"o":"zpa_CC"},{"a":34525,"t":"code","b":[96],"m":"rts"},{"a":34526,"l":"sid_note_words","c":"the SID frequency words of notes 10 to 58 of the note table that starts at $86CA: 49 little-endian words rising from $02DC to $2DC0, which music_step reads through $86CA and $86CB plus twice the note number ($8780-$879A); the title tune uses notes 15 to 58. The cave offsets are elsewhere, the 20 words at $5806-$582D","t":"byte","b":[220,2,10,3,58,3,108,3]},{"a":34534,"t":"byte","b":[160,3,210,3,18,4,76,4]},{"a":34542,"t":"byte","b":[146,4,214,4,32,5,110,5]},{"a":34550,"t":"byte","b":[184,5,20,6,116,6,216,6]},{"a":34558,"t":"byte","b":[64,7,164,7,36,8,152,8]},{"a":34566,"t":"byte","b":[36,9,172,9,64,10,220,10]},{"a":34574,"t":"byte","b":[112,11,40,12,232,12,176,13]},{"a":34582,"t":"byte","b":[128,14,72,15,72,16,48,17]},{"a":34590,"t":"byte","b":[72,18,88,19,128,20,184,21]},{"a":34598,"t":"byte","b":[224,22,80,24,208,25,96,27]},{"a":34606,"t":"byte","b":[0,29,144,30,144,32,96,34]},{"a":34614,"t":"byte","b":[144,36,176,38,0,41,112,43]},{"a":34622,"t":"byte","b":[192,45]},{"a":34624,"l":"cave_animation_mask","c":"one byte for each of caves 1 to 16, loaded into zpf_FF by start_cave_variables from $8740 + the cave number - 1 ($8329-$8333); caves 17 to 20 keep the mask 7, so the last four bytes ($8750-$8753) are never read. Bit 0 the cave has fireflies, bit 1 butterflies, bit 2 (a value of 4 or more) the amoeba: build_animation_frames, every second frame, rebuilds only those creatures' animated characters","t":"byte","b":[0,1,0,2,1,1,5,1],"x":[33584]},{"a":34632,"t":"byte","b":[0,1,1,1,6,3,1,1]},{"a":34640,"t":"byte","b":[2,1,1,1]},{"a":34644,"l":"music_step","c":"works on every other call, when zpa_C1 is odd (title_step calls it twice a frame). When a_980C is $A0 it gates voices 1 and 2 off, sets voice 2's envelope to $A8/$A8 and plays the next pair of the title tune: voice 1's note from $5FE9 and voice 2's from $5FE8 plus a_9800, which steps by two, looked up in the note table at $86CA; a_9801 counts the tune's passes when a_9800 wraps. On every working call it sets voice 1's sustain from a_980C (11, 11, 10, 9, 8, 7, 6, 5 for $A0 to $A7), gates both voices on with $11, and steps a_980C from $A0 to $A7 and round (ADC #1, AND #$A7), so a new pair starts once every eight working calls, eight frames. With the demo flag zpa_A2 set, when a_9801 reaches 2 sets b_CD, which ends menu_loop and starts the demonstration","t":"code","b":[165,193],"m":"lda","oa":193,"x":[34827],"o":"zpa_C1"},{"a":34646,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":34648,"t":"code","b":[208,1],"m":"bne","oa":34651,"o":"b_875B"},{"a":34650,"t":"code","b":[96],"m":"rts"},{"a":34651,"l":"b_875B","t":"code","b":[173,12,152],"m":"lda","oa":38924,"x":[34648],"o":"a_980C"},{"a":34654,"t":"code","b":[201,160],"m":"cmp","o":"#$A0"},{"a":34656,"t":"code","b":[208,67],"m":"bne","oa":34725,"o":"b_87A5"},{"a":34658,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":34660,"t":"code","b":[141,4,212],"m":"sta","o":"sid_v1_control"},{"a":34663,"t":"code","b":[141,11,212],"m":"sta","o":"sid_v2_control"},{"a":34666,"t":"code","b":[169,168],"m":"lda","o":"#$A8"},{"a":34668,"t":"code","b":[141,12,212],"m":"sta","o":"sid_v2_attack_decay"},{"a":34671,"t":"code","b":[141,13,212],"m":"sta","o":"sid_v2_sustain_release"},{"a":34674,"t":"code","b":[174,0,152],"m":"ldx","oa":38912,"o":"a_9800"},{"a":34677,"t":"code","b":[238,0,152],"m":"inc","oa":38912,"o":"a_9800"},{"a":34680,"t":"code","b":[238,0,152],"m":"inc","oa":38912,"o":"a_9800"},{"a":34683,"t":"code","b":[189,233,95],"m":"lda","oa":24553,"o":"title_tune_voice1,x"},{"a":34686,"t":"code","b":[10],"m":"asl","o":"a"},{"a":34687,"t":"code","b":[168],"m":"tay"},{"a":34688,"t":"code","b":[185,202,134],"m":"lda","oa":34506,"o":"sid_note_table,y"},{"a":34691,"t":"code","b":[141,0,212],"m":"sta","o":"sid_v1_freq_lo"},{"a":34694,"t":"code","b":[185,203,134],"m":"lda","oa":34507,"o":"sid_note_table_high,y"},{"a":34697,"t":"code","b":[141,1,212],"m":"sta","o":"sid_v1_freq_hi"},{"a":34700,"t":"code","b":[189,232,95],"m":"lda","oa":24552,"o":"title_tune_voice2,x"},{"a":34703,"t":"code","b":[10],"m":"asl","o":"a"},{"a":34704,"t":"code","b":[168],"m":"tay"},{"a":34705,"t":"code","b":[185,202,134],"m":"lda","oa":34506,"o":"sid_note_table,y"},{"a":34708,"t":"code","b":[141,7,212],"m":"sta","o":"sid_v2_freq_lo"},{"a":34711,"t":"code","b":[185,203,134],"m":"lda","oa":34507,"o":"sid_note_table_high,y"},{"a":34714,"t":"code","b":[141,8,212],"m":"sta","o":"sid_v2_freq_hi"},{"a":34717,"t":"code","b":[173,0,152],"m":"lda","oa":38912,"o":"a_9800"},{"a":34720,"t":"code","b":[208,3],"m":"bne","oa":34725,"o":"b_87A5"},{"a":34722,"t":"code","b":[238,1,152],"m":"inc","oa":38913,"o":"a_9801"},{"a":34725,"l":"b_87A5","t":"code","b":[173,12,152],"m":"lda","oa":38924,"x":[34656,34720],"o":"a_980C"},{"a":34728,"t":"code","b":[73,7],"m":"eor","o":"#$07"},{"a":34730,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":34732,"t":"code","b":[10],"m":"asl","o":"a"},{"a":34733,"t":"code","b":[10],"m":"asl","o":"a"},{"a":34734,"t":"code","b":[10],"m":"asl","o":"a"},{"a":34735,"t":"code","b":[10],"m":"asl","o":"a"},{"a":34736,"t":"code","b":[141,6,212],"m":"sta","o":"sid_v1_sustain_release"},{"a":34739,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":34741,"t":"code","b":[141,4,212],"m":"sta","o":"sid_v1_control"},{"a":34744,"t":"code","b":[141,11,212],"m":"sta","o":"sid_v2_control"},{"a":34747,"t":"code","b":[173,12,152],"m":"lda","oa":38924,"o":"a_980C"},{"a":34750,"t":"code","b":[24],"m":"clc"},{"a":34751,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":34753,"t":"code","b":[41,167],"m":"and","o":"#$A7"},{"a":34755,"t":"code","b":[141,12,152],"m":"sta","oa":38924,"o":"a_980C"},{"a":34758,"t":"code","b":[165,162],"m":"lda","oa":162,"o":"zpa_A2"},{"a":34760,"t":"code","b":[240,11],"m":"beq","oa":34773,"o":"r_87D5"},{"a":34762,"t":"code","b":[173,1,152],"m":"lda","oa":38913,"o":"a_9801"},{"a":34765,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":34767,"t":"code","b":[208,4],"m":"bne","oa":34773,"o":"r_87D5"},{"a":34769,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":34771,"t":"code","b":[133,205],"m":"sta","oa":205,"o":"b_CD"},{"a":34773,"l":"r_87D5","t":"code","b":[96],"m":"rts","x":[34760,34767]},{"a":34774,"l":"build_colour_cycle","c":"ORs the eight bytes at $2030 and $2038 with $2000 into $2048 and $2050, building the cycling colour characters","t":"code","b":[162,7],"m":"ldx","x":[34824],"o":"#$07"},{"a":34776,"l":"b_87D8","t":"code","b":[189,48,32],"m":"lda","oa":8240,"x":[34795],"o":"f_2030,x"},{"a":34779,"t":"code","b":[29,0,32],"m":"ora","oa":8192,"o":"a_2000,x"},{"a":34782,"t":"code","b":[157,72,32],"m":"sta","oa":8264,"o":"f_2048,x"},{"a":34785,"t":"code","b":[189,56,32],"m":"lda","oa":8248,"o":"f_2038,x"},{"a":34788,"t":"code","b":[29,0,32],"m":"ora","oa":8192,"o":"a_2000,x"},{"a":34791,"t":"code","b":[157,80,32],"m":"sta","oa":8272,"o":"f_2050,x"},{"a":34794,"t":"code","b":[202],"m":"dex"},{"a":34795,"t":"code","b":[16,235],"m":"bpl","oa":34776,"o":"b_87D8"},{"a":34797,"t":"code","b":[96],"m":"rts"},{"a":34798,"l":"title_step","c":"the title's step, run by the raster interrupt on each of its two interrupts a frame (lines $28 and $CA) while zpa_CE is 1: the first call after build_title_screen clears zpa_CF only sets zpa_CF to 1; after that counts zpa_C1 1, 2, 3, 0, and when it wraps (every fourth call, every second frame) rotates the colour table and rebuilds the colour characters; calls music_step on every call, which works when zpa_C1 is odd","t":"code","b":[165,207],"m":"lda","oa":207,"x":[35457],"o":"zpa_CF"},{"a":34800,"t":"code","b":[208,7],"m":"bne","oa":34809,"o":"b_87F9"},{"a":34802,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":34804,"t":"code","b":[133,207],"m":"sta","oa":207,"o":"zpa_CF"},{"a":34806,"t":"code","b":[76,14,136],"m":"jmp","oa":34830,"o":"r_880E"},{"a":34809,"l":"b_87F9","t":"code","b":[230,193],"m":"inc","oa":193,"x":[34800],"o":"zpa_C1"},{"a":34811,"t":"code","b":[165,193],"m":"lda","oa":193,"o":"zpa_C1"},{"a":34813,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":34815,"t":"code","b":[144,10],"m":"bcc","oa":34827,"o":"b_880B"},{"a":34817,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":34819,"t":"code","b":[133,193],"m":"sta","oa":193,"o":"zpa_C1"},{"a":34821,"t":"code","b":[32,31,120],"m":"jsr","oa":30751,"o":"rotate_colour_table"},{"a":34824,"t":"code","b":[32,214,135],"m":"jsr","oa":34774,"o":"build_colour_cycle"},{"a":34827,"l":"b_880B","t":"code","b":[32,84,135],"m":"jsr","oa":34644,"x":[34815],"o":"music_step"},{"a":34830,"l":"r_880E","t":"code","b":[96],"m":"rts","x":[34806]},{"a":34831,"l":"menu_keys","c":"decodes the F3 key at the title (zpa_FB = $DF): cycles zpa_D0 through one player, two players with one joystick and two players with two joysticks, updates the player and joystick flags zpa_9E and zpa_A4 and redraws the menu line","t":"code","b":[165,251],"m":"lda","oa":251,"x":[35008],"o":"zpa_FB"},{"a":34833,"t":"code","b":[201,223],"m":"cmp","o":"#$DF"},{"a":34835,"t":"code","b":[208,46],"m":"bne","oa":34883,"o":"b_8843"},{"a":34837,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":34839,"t":"code","b":[141,1,152],"m":"sta","oa":38913,"o":"a_9801"},{"a":34842,"t":"code","b":[230,208],"m":"inc","oa":208,"o":"zpa_D0"},{"a":34844,"t":"code","b":[165,208],"m":"lda","oa":208,"o":"zpa_D0"},{"a":34846,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":34848,"t":"code","b":[208,11],"m":"bne","oa":34861,"o":"b_882D"},{"a":34850,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":34852,"t":"code","b":[134,208],"m":"stx","oa":208,"o":"zpa_D0"},{"a":34854,"t":"code","b":[202],"m":"dex"},{"a":34855,"t":"code","b":[134,158],"m":"stx","oa":158,"o":"zpa_9E"},{"a":34857,"t":"code","b":[134,164],"m":"stx","oa":164,"o":"zpa_A4"},{"a":34859,"t":"code","b":[240,16],"m":"beq","oa":34877,"o":"b_883D"},{"a":34861,"l":"b_882D","t":"code","b":[165,208],"m":"lda","oa":208,"x":[34848],"o":"zpa_D0"},{"a":34863,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":34865,"t":"code","b":[208,2],"m":"bne","oa":34869,"o":"b_8835"},{"a":34867,"t":"code","b":[230,158],"m":"inc","oa":158,"o":"zpa_9E"},{"a":34869,"l":"b_8835","t":"code","b":[165,208],"m":"lda","oa":208,"x":[34865],"o":"zpa_D0"},{"a":34871,"t":"code","b":[201,3],"m":"cmp","o":"#$03"},{"a":34873,"t":"code","b":[208,2],"m":"bne","oa":34877,"o":"b_883D"},{"a":34875,"t":"code","b":[230,164],"m":"inc","oa":164,"o":"zpa_A4"},{"a":34877,"l":"b_883D","t":"code","b":[32,136,133],"m":"jsr","oa":34184,"x":[34859,34873],"o":"show_players_status"},{"a":34880,"t":"code","b":[32,164,128],"m":"jsr","oa":32932,"o":"delay_long"},{"a":34883,"l":"b_8843","t":"code","b":[169,0],"m":"lda","x":[34835],"o":"#$00"},{"a":34885,"t":"code","b":[133,251],"m":"sta","oa":251,"o":"zpa_FB"},{"a":34887,"t":"code","b":[76,136,133],"m":"jmp","oa":34184,"o":"show_players_status"},{"a":34890,"l":"menu_cave_select","c":"at the title reads joystick 1: down and up lower and raise the level zpa_5E within 0 to 4 (shown as 1 to 5: the digit is zpa_5E + $11), and moving up to level 4 sets the cave back to A ($886C-$8874); left steps the cave zpa_5D down by four while it is 5 or more, and right steps it up by four while it is below $0D and only at levels 1 to 3 ($888E-$8892), so the caves offered are A, E, I and M, and at levels 4 and 5 only A. Any direction clears the demo timer a_9801. Unless the logo flag zpa_A3 is set, redraws the cave letter at $0BA6 and the level digit at $0BBA on the menu line; then waits with delay_short","t":"code","b":[32,245,110],"m":"jsr","oa":28405,"x":[35011],"o":"read_joystick_1"},{"a":34893,"t":"code","b":[201,15],"m":"cmp","o":"#$0F"},{"a":34895,"t":"code","b":[240,107],"m":"beq","oa":35004,"o":"b_88BC"},{"a":34897,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":34899,"t":"code","b":[142,1,152],"m":"stx","oa":38913,"o":"a_9801"},{"a":34902,"t":"code","b":[201,13],"m":"cmp","o":"#$0D"},{"a":34904,"t":"code","b":[208,6],"m":"bne","oa":34912,"o":"b_8860"},{"a":34906,"t":"code","b":[166,94],"m":"ldx","oa":94,"o":"zpa_5E"},{"a":34908,"t":"code","b":[240,2],"m":"beq","oa":34912,"o":"b_8860"},{"a":34910,"t":"code","b":[198,94],"m":"dec","oa":94,"o":"zpa_5E"},{"a":34912,"l":"b_8860","t":"code","b":[201,14],"m":"cmp","x":[34904,34908],"o":"#$0E"},{"a":34914,"t":"code","b":[208,18],"m":"bne","oa":34934,"o":"b_8876"},{"a":34916,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":34918,"t":"code","b":[197,94],"m":"cmp","oa":94,"o":"zpa_5E"},{"a":34920,"t":"code","b":[240,2],"m":"beq","oa":34924,"o":"b_886C"},{"a":34922,"t":"code","b":[230,94],"m":"inc","oa":94,"o":"zpa_5E"},{"a":34924,"l":"b_886C","t":"code","b":[165,94],"m":"lda","oa":94,"x":[34920],"o":"zpa_5E"},{"a":34926,"t":"code","b":[201,3],"m":"cmp","o":"#$03"},{"a":34928,"t":"code","b":[208,4],"m":"bne","oa":34934,"o":"b_8876"},{"a":34930,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":34932,"t":"code","b":[133,93],"m":"sta","oa":93,"o":"zpa_5D"},{"a":34934,"l":"b_8876","t":"code","b":[32,245,110],"m":"jsr","oa":28405,"x":[34914,34928],"o":"read_joystick_1"},{"a":34937,"t":"code","b":[201,11],"m":"cmp","o":"#$0B"},{"a":34939,"t":"code","b":[208,10],"m":"bne","oa":34951,"o":"b_8887"},{"a":34941,"t":"code","b":[165,93],"m":"lda","oa":93,"o":"zpa_5D"},{"a":34943,"t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":34945,"t":"code","b":[144,4],"m":"bcc","oa":34951,"o":"b_8887"},{"a":34947,"t":"code","b":[233,4],"m":"sbc","o":"#$04"},{"a":34949,"t":"code","b":[133,93],"m":"sta","oa":93,"o":"zpa_5D"},{"a":34951,"l":"b_8887","t":"code","b":[32,245,110],"m":"jsr","oa":28405,"x":[34939,34945],"o":"read_joystick_1"},{"a":34954,"t":"code","b":[201,7],"m":"cmp","o":"#$07"},{"a":34956,"t":"code","b":[208,16],"m":"bne","oa":34974,"o":"b_889E"},{"a":34958,"t":"code","b":[165,94],"m":"lda","oa":94,"o":"zpa_5E"},{"a":34960,"t":"code","b":[201,3],"m":"cmp","o":"#$03"},{"a":34962,"t":"code","b":[176,10],"m":"bcs","oa":34974,"o":"b_889E"},{"a":34964,"t":"code","b":[165,93],"m":"lda","oa":93,"o":"zpa_5D"},{"a":34966,"t":"code","b":[201,13],"m":"cmp","o":"#$0D"},{"a":34968,"t":"code","b":[176,4],"m":"bcs","oa":34974,"o":"b_889E"},{"a":34970,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":34972,"t":"code","b":[133,93],"m":"sta","oa":93,"o":"zpa_5D"},{"a":34974,"l":"b_889E","t":"code","b":[165,163],"m":"lda","oa":163,"x":[34956,34962,34968],"o":"zpa_A3"},{"a":34976,"t":"code","b":[208,26],"m":"bne","oa":35004,"o":"b_88BC"},{"a":34978,"t":"code","b":[165,94],"m":"lda","oa":94,"o":"zpa_5E"},{"a":34980,"t":"code","b":[24],"m":"clc"},{"a":34981,"t":"code","b":[105,17],"m":"adc","o":"#$11"},{"a":34983,"t":"code","b":[141,186,11],"m":"sta","oa":3002,"o":"a_0BBA"},{"a":34986,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":34988,"t":"code","b":[141,187,11],"m":"sta","oa":3003,"o":"a_0BBB"},{"a":34991,"t":"code","b":[165,93],"m":"lda","oa":93,"o":"zpa_5D"},{"a":34993,"t":"code","b":[24],"m":"clc"},{"a":34994,"t":"code","b":[105,32],"m":"adc","o":"#$20"},{"a":34996,"t":"code","b":[141,166,11],"m":"sta","oa":2982,"o":"a_0BA6"},{"a":34999,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":35001,"t":"code","b":[141,167,11],"m":"sta","oa":2983,"o":"a_0BA7"},{"a":35004,"l":"b_88BC","t":"code","b":[32,155,128],"m":"jsr","oa":32923,"x":[34895,34976],"o":"delay_short"},{"a":35007,"t":"code","b":[96],"m":"rts"},{"a":35008,"l":"menu_loop","c":"the title menu loop: each time round runs menu_keys (F3) and menu_cave_select (joystick 1). While the logo flag zpa_A3 is set it waits for F1 ($EF in zpa_FB), which sets zpa_CC, rebuilds the screen with the credit lines and clears zpa_A3 ($8916); once zpa_A3 is clear it colours and redraws the menu digits and reads the fire button on port 1 ($6F0C), which clears the demo flag zpa_A2 and sets b_CD. Loops until b_CD is set: by fire, to play, or by music_step after two passes of the tune with zpa_A2 still set, to the demonstration","t":"code","b":[32,15,136],"m":"jsr","oa":34831,"x":[35113,35135],"o":"menu_keys"},{"a":35011,"t":"code","b":[32,74,136],"m":"jsr","oa":34890,"o":"menu_cave_select"},{"a":35014,"t":"code","b":[165,163],"m":"lda","oa":163,"o":"zpa_A3"},{"a":35016,"t":"code","b":[240,13],"m":"beq","oa":35031,"o":"b_88D7"},{"a":35018,"t":"code","b":[165,251],"m":"lda","oa":251,"o":"zpa_FB"},{"a":35020,"t":"code","b":[201,239],"m":"cmp","o":"#$EF"},{"a":35022,"t":"code","b":[208,72],"m":"bne","oa":35096,"o":"b_8918"},{"a":35024,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":35026,"t":"code","b":[133,204],"m":"sta","oa":204,"o":"zpa_CC"},{"a":35028,"t":"code","b":[32,191,133],"m":"jsr","oa":34239,"o":"build_menu_screen"},{"a":35031,"l":"b_88D7","t":"code","b":[169,14],"m":"lda","x":[35016],"o":"#$0E"},{"a":35033,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":35035,"l":"b_88DB","t":"code","b":[157,112,219],"m":"sta","x":[35048],"o":"$DB70,x"},{"a":35038,"t":"code","b":[157,132,219],"m":"sta","o":"$DB84,x"},{"a":35041,"t":"code","b":[157,166,219],"m":"sta","o":"$DBA6,x"},{"a":35044,"t":"code","b":[157,186,219],"m":"sta","o":"$DBBA,x"},{"a":35047,"t":"code","b":[202],"m":"dex"},{"a":35048,"t":"code","b":[16,241],"m":"bpl","oa":35035,"o":"b_88DB"},{"a":35050,"t":"code","b":[165,94],"m":"lda","oa":94,"o":"zpa_5E"},{"a":35052,"t":"code","b":[24],"m":"clc"},{"a":35053,"t":"code","b":[105,17],"m":"adc","o":"#$11"},{"a":35055,"t":"code","b":[141,186,11],"m":"sta","oa":3002,"o":"a_0BBA"},{"a":35058,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":35060,"t":"code","b":[141,187,11],"m":"sta","oa":3003,"o":"a_0BBB"},{"a":35063,"t":"code","b":[165,93],"m":"lda","oa":93,"o":"zpa_5D"},{"a":35065,"t":"code","b":[24],"m":"clc"},{"a":35066,"t":"code","b":[105,32],"m":"adc","o":"#$20"},{"a":35068,"t":"code","b":[141,166,11],"m":"sta","oa":2982,"o":"a_0BA6"},{"a":35071,"t":"code","b":[105,52],"m":"adc","o":"#$34"},{"a":35073,"t":"code","b":[141,167,11],"m":"sta","oa":2983,"o":"a_0BA7"},{"a":35076,"t":"code","b":[165,158],"m":"lda","oa":158,"o":"zpa_9E"},{"a":35078,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":35080,"t":"code","b":[208,2],"m":"bne","oa":35084,"o":"b_890C"},{"a":35082,"t":"code","b":[230,158],"m":"inc","oa":158,"o":"zpa_9E"},{"a":35084,"l":"b_890C","t":"code","b":[165,158],"m":"lda","oa":158,"x":[35080],"o":"zpa_9E"},{"a":35086,"t":"code","b":[24],"m":"clc"},{"a":35087,"t":"code","b":[105,17],"m":"adc","o":"#$11"},{"a":35089,"t":"code","b":[141,112,11],"m":"sta","oa":2928,"o":"a_0B70"},{"a":35092,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":35094,"t":"code","b":[133,163],"m":"sta","oa":163,"o":"zpa_A3"},{"a":35096,"l":"b_8918","t":"code","b":[165,163],"m":"lda","oa":163,"x":[35022],"o":"zpa_A3"},{"a":35098,"t":"code","b":[208,11],"m":"bne","oa":35111,"o":"b_8927"},{"a":35100,"t":"code","b":[32,12,111],"m":"jsr","oa":28428,"o":"b_6F0C"},{"a":35103,"t":"code","b":[208,6],"m":"bne","oa":35111,"o":"b_8927"},{"a":35105,"t":"code","b":[133,162],"m":"sta","oa":162,"o":"zpa_A2"},{"a":35107,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":35109,"t":"code","b":[133,205],"m":"sta","oa":205,"o":"b_CD"},{"a":35111,"l":"b_8927","t":"code","b":[165,205],"m":"lda","oa":205,"x":[35098,35103],"o":"b_CD"},{"a":35113,"t":"code","b":[240,149],"m":"beq","oa":35008,"o":"menu_loop"},{"a":35115,"t":"code","b":[96],"m":"rts"},{"a":35116,"l":"title_setup","c":"copies the eight bytes of character $0B at $2058 into character 0 at $2000 (the pattern rotate_colour_table turns), sets cave 1 and the demo flag zpa_A2, and runs menu_loop, which returns when b_CD is set; then sets zpa_BD and zpa_C2, loads the VIC table for the demonstration and play from $89A4 into zpa_54-5B and sets zpa_CE to 0, play mode, so the interrupt runs frame_update from now on; clears zpa_C1 and the key flags zpa_FB and zpa_FC and silences the sound; with the demo flag still set takes level 1 and cave 1; writes the men digit (3), the cave letter and the level digit into the status line at $984E, sets zpa_95 to $13 and clears zpa_94, draws the status line on the status row and sets zpa_97 to 2","t":"code","b":[162,0],"m":"ldx","x":[36597],"o":"#$00"},{"a":35118,"l":"b_892E","t":"code","b":[189,88,32],"m":"lda","oa":8280,"x":[35127],"o":"f_2058,x"},{"a":35121,"t":"code","b":[157,0,32],"m":"sta","oa":8192,"o":"a_2000,x"},{"a":35124,"t":"code","b":[232],"m":"inx"},{"a":35125,"t":"code","b":[224,8],"m":"cpx","o":"#$08"},{"a":35127,"t":"code","b":[208,245],"m":"bne","oa":35118,"o":"b_892E"},{"a":35129,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":35131,"t":"code","b":[133,93],"m":"sta","oa":93,"o":"zpa_5D"},{"a":35133,"t":"code","b":[133,162],"m":"sta","oa":162,"o":"zpa_A2"},{"a":35135,"t":"code","b":[32,192,136],"m":"jsr","oa":35008,"o":"menu_loop"},{"a":35138,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":35140,"t":"code","b":[133,189],"m":"sta","oa":189,"o":"zpa_BD"},{"a":35142,"t":"code","b":[133,194],"m":"sta","oa":194,"o":"zpa_C2"},{"a":35144,"t":"code","b":[120],"m":"sei"},{"a":35145,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":35147,"l":"b_894B","t":"code","b":[189,164,137],"m":"lda","oa":35236,"x":[35153],"o":"vic_split_play,x"},{"a":35150,"t":"code","b":[149,84],"m":"sta","oa":84,"o":"zpa_54,x"},{"a":35152,"t":"code","b":[202],"m":"dex"},{"a":35153,"t":"code","b":[16,248],"m":"bpl","oa":35147,"o":"b_894B"},{"a":35155,"t":"code","b":[88],"m":"cli"},{"a":35156,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":35158,"t":"code","b":[133,206],"m":"sta","oa":206,"o":"zpa_CE"},{"a":35160,"t":"code","b":[133,193],"m":"sta","oa":193,"o":"zpa_C1"},{"a":35162,"t":"code","b":[133,251],"m":"sta","oa":251,"o":"zpa_FB"},{"a":35164,"t":"code","b":[133,252],"m":"sta","oa":252,"o":"zpa_FC"},{"a":35166,"t":"code","b":[32,140,128],"m":"jsr","oa":32908,"o":"silence_all"},{"a":35169,"t":"code","b":[165,162],"m":"lda","oa":162,"o":"zpa_A2"},{"a":35171,"t":"code","b":[240,7],"m":"beq","oa":35180,"o":"b_896C"},{"a":35173,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":35175,"t":"code","b":[134,94],"m":"stx","oa":94,"o":"zpa_5E"},{"a":35177,"t":"code","b":[232],"m":"inx"},{"a":35178,"t":"code","b":[134,93],"m":"stx","oa":93,"o":"zpa_5D"},{"a":35180,"l":"b_896C","t":"code","b":[169,19],"m":"lda","x":[35171],"o":"#$13"},{"a":35182,"t":"code","b":[141,88,152],"m":"sta","oa":39000,"o":"a_9858"},{"a":35185,"t":"code","b":[133,149],"m":"sta","oa":149,"o":"zpa_95"},{"a":35187,"t":"code","b":[165,93],"m":"lda","oa":93,"o":"zpa_5D"},{"a":35189,"t":"code","b":[24],"m":"clc"},{"a":35190,"t":"code","b":[105,32],"m":"adc","o":"#$20"},{"a":35192,"t":"code","b":[141,94,152],"m":"sta","oa":39006,"o":"a_985E"},{"a":35195,"t":"code","b":[165,94],"m":"lda","oa":94,"o":"zpa_5E"},{"a":35197,"t":"code","b":[24],"m":"clc"},{"a":35198,"t":"code","b":[105,17],"m":"adc","o":"#$11"},{"a":35200,"t":"code","b":[141,96,152],"m":"sta","oa":39008,"o":"a_9860"},{"a":35203,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":35205,"t":"code","b":[133,148],"m":"sta","oa":148,"o":"zpa_94"},{"a":35207,"t":"code","b":[169,78],"m":"lda","o":"#$4E"},{"a":35209,"t":"code","b":[133,70],"m":"sta","oa":70,"o":"zpa_46"},{"a":35211,"t":"code","b":[169,152],"m":"lda","o":"#$98"},{"a":35213,"t":"code","b":[133,71],"m":"sta","oa":71,"o":"zpa_47"},{"a":35215,"t":"code","b":[32,174,110],"m":"jsr","oa":28334,"o":"draw_status_text"},{"a":35218,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":35220,"t":"code","b":[133,151],"m":"sta","oa":151,"o":"zpa_97"},{"a":35222,"t":"code","b":[96],"m":"rts"},{"a":35223,"l":"title_colours","c":"the border, background and extra background colours for the title screen, written to $D020-$D024","t":"byte","b":[0,0,6,14,9],"x":[35274]},{"a":35228,"l":"vic_split_title","c":"the eight bytes start_interrupts loads into zpa_54-5B ($8E43) for the title screens, before build_title_screen and menu_loop: for each of the two raster regions a $D011, a $D016 and a $D018 value and the line of the next interrupt. The interrupt at line $28 sets text on the screen at $0800 with the text set at $2000 ($1B, $18, $28) and asks for line $CA; the one at $CA sets multicolour bitmap mode ($3B) with the bitmap at $2000, which shows the logo in its last six rows ($37C0-$3F3F), and asks for line $28. While zpa_A3 is 0 the interrupt puts $1B in zpa_54, so the lower region stays text and the logo is not shown ($8A6C-$8A72)","t":"byte","b":[59,27,24,24,40,40,40,202],"x":[36419]},{"a":35236,"l":"vic_split_play","c":"the eight bytes title_setup loads into zpa_54-5B ($894B), after menu_loop and before it sets zpa_CE to 0, for the demonstration and play: the interrupt at line $28 shows the status row from the screen at $0C00 with the text set at $2000 ($D011 $1B, $D016 $18, $D018 $38) and asks for line $3B; the one at $3B shows the cave in multicolour, 38 columns, from the screen at $0C00 with the tile set at $3000 ($D011 $10, $D016 $10, $D018 $3C) and asks for line $28. In play the scroll steps rewrite zpa_54 and zpa_56 ($78AA, $792D) and frame_update zpa_58 ($7EE5), switching the cave between the screens at $0C00 and $2C00","t":"byte","b":[16,27,16,24,60,56,40,59],"x":[35147]},{"a":35244,"l":"build_title_screen","c":"builds the title screen with build_menu_screen; while the logo flag zpa_A3 is set fills $0AF8-$0BE7, the screen cells under the logo, with $6E; clears b_CD; sets $D018 to $28 (screen $0800, text set $2000) and $D020-$D024 from title_colours; fills colour RAM with colour 9 and then $DB01-$DBFF with colour 1 (the same loop also stores 1 in $DC00); clears zpa_CF and sets zpa_CE to 1, title mode; waits until the interrupt's title_step sets zpa_CF, then clears the music and sound state ($9800, $9801, $9808, $9809, $980B, $980E, $980F, $9811)","t":"code","b":[32,191,133],"m":"jsr","oa":34239,"x":[36594],"o":"build_menu_screen"},{"a":35247,"t":"code","b":[165,163],"m":"lda","oa":163,"o":"zpa_A3"},{"a":35249,"t":"code","b":[240,12],"m":"beq","oa":35263,"o":"b_89BF"},{"a":35251,"t":"code","b":[169,110],"m":"lda","o":"#$6E"},{"a":35253,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":35255,"l":"b_89B7","t":"code","b":[153,248,10],"m":"sta","oa":2808,"x":[35261],"o":"f_0AF8,y"},{"a":35258,"t":"code","b":[200],"m":"iny"},{"a":35259,"t":"code","b":[192,240],"m":"cpy","o":"#$F0"},{"a":35261,"t":"code","b":[208,248],"m":"bne","oa":35255,"o":"b_89B7"},{"a":35263,"l":"b_89BF","t":"code","b":[169,0],"m":"lda","x":[35249],"o":"#$00"},{"a":35265,"t":"code","b":[133,205],"m":"sta","oa":205,"o":"b_CD"},{"a":35267,"t":"code","b":[169,40],"m":"lda","o":"#$28"},{"a":35269,"t":"code","b":[141,24,208],"m":"sta","o":"vic_memory"},{"a":35272,"t":"code","b":[162,4],"m":"ldx","o":"#$04"},{"a":35274,"l":"b_89CA","t":"code","b":[189,151,137],"m":"lda","oa":35223,"x":[35281],"o":"title_colours,x"},{"a":35277,"t":"code","b":[157,32,208],"m":"sta","o":"vic_border,x"},{"a":35280,"t":"code","b":[202],"m":"dex"},{"a":35281,"t":"code","b":[16,247],"m":"bpl","oa":35274,"o":"b_89CA"},{"a":35283,"t":"code","b":[169,9],"m":"lda","o":"#$09"},{"a":35285,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":35287,"t":"code","b":[32,123,110],"m":"jsr","oa":28283,"o":"fill_colour_ram"},{"a":35290,"t":"code","b":[230,70],"m":"inc","oa":70,"o":"zpa_46"},{"a":35292,"t":"code","b":[198,71],"m":"dec","oa":71,"o":"zpa_47"},{"a":35294,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":35296,"l":"b_89E0","t":"code","b":[145,70],"m":"sta","oa":70,"x":[35299],"o":"(zpa_46),y"},{"a":35298,"t":"code","b":[200],"m":"iny"},{"a":35299,"t":"code","b":[208,251],"m":"bne","oa":35296,"o":"b_89E0"},{"a":35301,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":35303,"t":"code","b":[133,207],"m":"sta","oa":207,"o":"zpa_CF"},{"a":35305,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":35307,"t":"code","b":[133,206],"m":"sta","oa":206,"o":"zpa_CE"},{"a":35309,"l":"b_89ED","t":"code","b":[165,207],"m":"lda","oa":207,"x":[35311],"o":"zpa_CF"},{"a":35311,"t":"code","b":[240,252],"m":"beq","oa":35309,"o":"b_89ED"},{"a":35313,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":35315,"t":"code","b":[141,0,152],"m":"sta","oa":38912,"o":"a_9800"},{"a":35318,"t":"code","b":[141,1,152],"m":"sta","oa":38913,"o":"a_9801"},{"a":35321,"t":"code","b":[141,11,152],"m":"sta","oa":38923,"o":"a_980B"},{"a":35324,"t":"code","b":[141,14,152],"m":"sta","oa":38926,"o":"a_980E"},{"a":35327,"t":"code","b":[141,15,152],"m":"sta","oa":38927,"o":"a_980F"},{"a":35330,"t":"code","b":[141,9,152],"m":"sta","oa":38921,"o":"a_9809"},{"a":35333,"t":"code","b":[141,8,152],"m":"sta","oa":38920,"o":"a_9808"},{"a":35336,"t":"code","b":[141,17,152],"m":"sta","oa":38929,"o":"a_9811"},{"a":35339,"t":"code","b":[96],"m":"rts"},{"a":35340,"l":"raster_interrupt","c":"the game's interrupt: alternates between the two screen regions by writing the VIC registers from the tables at zpa_54-5B, scans the keyboard rows for F1, F3, SPACE and RUN/STOP with a two-read debounce into zpa_FB-FE, then at the title runs title_step and in play runs frame_update","t":"code","b":[173,25,208],"m":"lda","o":"vic_irq_status"},{"a":35343,"t":"code","b":[141,25,208],"m":"sta","o":"vic_irq_status"},{"a":35346,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":35348,"t":"code","b":[240,30],"m":"beq","oa":35380,"o":"b_8A34"},{"a":35350,"t":"code","b":[198,167],"m":"dec","oa":167,"o":"zpa_A7"},{"a":35352,"t":"code","b":[16,4],"m":"bpl","oa":35358,"o":"b_8A1E"},{"a":35354,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":35356,"t":"code","b":[133,167],"m":"sta","oa":167,"o":"zpa_A7"},{"a":35358,"l":"b_8A1E","t":"code","b":[166,167],"m":"ldx","oa":167,"x":[35352],"o":"zpa_A7"},{"a":35360,"t":"code","b":[181,84],"m":"lda","oa":84,"o":"zpa_54,x"},{"a":35362,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":35365,"t":"code","b":[181,86],"m":"lda","oa":86,"o":"zpa_56,x"},{"a":35367,"t":"code","b":[141,22,208],"m":"sta","o":"vic_control2"},{"a":35370,"t":"code","b":[181,88],"m":"lda","oa":88,"o":"zpa_58,x"},{"a":35372,"t":"code","b":[141,24,208],"m":"sta","o":"vic_memory"},{"a":35375,"t":"code","b":[181,90],"m":"lda","oa":90,"o":"zpf_5A,x"},{"a":35377,"t":"code","b":[141,18,208],"m":"sta","o":"vic_raster"},{"a":35380,"l":"b_8A34","t":"code","b":[32,155,138],"m":"jsr","oa":35483,"x":[35348],"o":"joystick_overrides_keys"},{"a":35383,"t":"code","b":[169,254],"m":"lda","o":"#$FE"},{"a":35385,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":35388,"t":"code","b":[173,1,220],"m":"lda","o":"cia1_port_b"},{"a":35391,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":35393,"t":"code","b":[240,10],"m":"beq","oa":35405,"o":"b_8A4D"},{"a":35395,"t":"code","b":[197,253],"m":"cmp","oa":253,"o":"zpa_FD"},{"a":35397,"t":"code","b":[208,4],"m":"bne","oa":35403,"o":"b_8A4B"},{"a":35399,"t":"code","b":[133,251],"m":"sta","oa":251,"o":"zpa_FB"},{"a":35401,"t":"code","b":[240,2],"m":"beq","oa":35405,"o":"b_8A4D"},{"a":35403,"l":"b_8A4B","t":"code","b":[133,253],"m":"sta","oa":253,"x":[35397],"o":"zpa_FD"},{"a":35405,"l":"b_8A4D","t":"code","b":[169,127],"m":"lda","x":[35393,35401],"o":"#$7F"},{"a":35407,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":35410,"t":"code","b":[173,1,220],"m":"lda","o":"cia1_port_b"},{"a":35413,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":35415,"t":"code","b":[240,10],"m":"beq","oa":35427,"o":"b_8A63"},{"a":35417,"t":"code","b":[197,254],"m":"cmp","oa":254,"o":"zpa_FE"},{"a":35419,"t":"code","b":[208,4],"m":"bne","oa":35425,"o":"b_8A61"},{"a":35421,"t":"code","b":[133,252],"m":"sta","oa":252,"o":"zpa_FC"},{"a":35423,"t":"code","b":[240,2],"m":"beq","oa":35427,"o":"b_8A63"},{"a":35425,"l":"b_8A61","t":"code","b":[133,254],"m":"sta","oa":254,"x":[35419],"o":"zpa_FE"},{"a":35427,"l":"b_8A63","t":"code","b":[32,155,138],"m":"jsr","oa":35483,"x":[35415,35423],"o":"joystick_overrides_keys"},{"a":35430,"l":"j_8A66","t":"code","b":[165,206],"m":"lda","oa":206,"x":[35509],"o":"zpa_CE"},{"a":35432,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":35434,"t":"code","b":[208,24],"m":"bne","oa":35460,"o":"b_8A84"},{"a":35436,"t":"code","b":[165,163],"m":"lda","oa":163,"o":"zpa_A3"},{"a":35438,"t":"code","b":[208,4],"m":"bne","oa":35444,"o":"b_8A74"},{"a":35440,"t":"code","b":[169,27],"m":"lda","o":"#$1B"},{"a":35442,"t":"code","b":[133,84],"m":"sta","oa":84,"o":"zpa_54"},{"a":35444,"l":"b_8A74","t":"code","b":[169,0],"m":"lda","x":[35438],"o":"#$00"},{"a":35446,"t":"code","b":[141,21,208],"m":"sta","o":"vic_sprite_enable"},{"a":35449,"t":"code","b":[169,24],"m":"lda","o":"#$18"},{"a":35451,"t":"code","b":[133,86],"m":"sta","oa":86,"o":"zpa_56"},{"a":35453,"t":"code","b":[169,40],"m":"lda","o":"#$28"},{"a":35455,"t":"code","b":[133,88],"m":"sta","oa":88,"o":"zpa_58"},{"a":35457,"t":"code","b":[32,238,135],"m":"jsr","oa":34798,"o":"title_step"},{"a":35460,"l":"b_8A84","t":"code","b":[165,206],"m":"lda","oa":206,"x":[35434],"o":"zpa_CE"},{"a":35462,"t":"code","b":[208,8],"m":"bne","oa":35472,"o":"b_8A90"},{"a":35464,"t":"code","b":[169,127],"m":"lda","o":"#$7F"},{"a":35466,"t":"code","b":[141,21,208],"m":"sta","o":"vic_sprite_enable"},{"a":35469,"t":"code","b":[32,195,126],"m":"jsr","oa":32451,"o":"frame_update"},{"a":35472,"l":"b_8A90","t":"code","b":[169,0],"m":"lda","x":[35462],"o":"#$00"},{"a":35474,"t":"code","b":[141,27,208],"m":"sta","o":"vic_sprite_priority"},{"a":35477,"t":"code","b":[104],"m":"pla"},{"a":35478,"t":"code","b":[168],"m":"tay"},{"a":35479,"t":"code","b":[104],"m":"pla"},{"a":35480,"t":"code","b":[170],"m":"tax"},{"a":35481,"t":"code","b":[104],"m":"pla"},{"a":35482,"t":"code","b":[64],"m":"rti"},{"a":35483,"l":"joystick_overrides_keys","c":"if joystick 1 is moved or fired clears the debounced key flags and skips the keyboard handling in this interrupt","t":"code","b":[169,255],"m":"lda","x":[35380,35427],"o":"#$FF"},{"a":35485,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":35488,"t":"code","b":[173,1,220],"m":"lda","o":"cia1_port_b"},{"a":35491,"t":"code","b":[41,31],"m":"and","o":"#$1F"},{"a":35493,"t":"code","b":[201,31],"m":"cmp","o":"#$1F"},{"a":35495,"t":"code","b":[240,15],"m":"beq","oa":35512,"o":"r_8AB8"},{"a":35497,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":35499,"t":"code","b":[133,251],"m":"sta","oa":251,"o":"zpa_FB"},{"a":35501,"t":"code","b":[133,252],"m":"sta","oa":252,"o":"zpa_FC"},{"a":35503,"t":"code","b":[133,253],"m":"sta","oa":253,"o":"zpa_FD"},{"a":35505,"t":"code","b":[133,254],"m":"sta","oa":254,"o":"zpa_FE"},{"a":35507,"t":"code","b":[104],"m":"pla"},{"a":35508,"t":"code","b":[104],"m":"pla"},{"a":35509,"t":"code","b":[76,102,138],"m":"jmp","oa":35430,"o":"j_8A66"},{"a":35512,"l":"r_8AB8","t":"code","b":[96],"m":"rts","x":[35495]},{"a":35513,"l":"set_up_cave","c":"loads the cave description, fills the cave with random objects, draws the steel border, builds the cave from its description, sets the play variables, zeroes the scroll speeds and draws the whole cave","t":"code","b":[32,38,130],"m":"jsr","oa":33318,"x":[36625],"o":"load_cave_data"},{"a":35516,"t":"code","b":[32,67,128],"m":"jsr","oa":32835,"o":"build_random_cave"},{"a":35519,"t":"code","b":[32,167,133],"m":"jsr","oa":34215,"o":"draw_steel_border"},{"a":35522,"t":"code","b":[32,24,133],"m":"jsr","oa":34072,"o":"build_cave_from_description"},{"a":35525,"t":"code","b":[32,116,130],"m":"jsr","oa":33396,"o":"start_cave_variables"},{"a":35528,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":35530,"t":"code","b":[133,237],"m":"sta","oa":237,"o":"zpa_ED"},{"a":35532,"t":"code","b":[133,238],"m":"sta","oa":238,"o":"zpa_EE"},{"a":35534,"t":"code","b":[133,233],"m":"sta","oa":233,"o":"zpa_E9"},{"a":35536,"t":"code","b":[133,234],"m":"sta","oa":234,"o":"zpa_EA"},{"a":35538,"t":"code","b":[32,150,123],"m":"jsr","oa":31638,"o":"draw_whole_cave"},{"a":35541,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":35543,"t":"code","b":[133,189],"m":"sta","oa":189,"o":"zpa_BD"},{"a":35545,"t":"code","b":[32,140,128],"m":"jsr","oa":32908,"o":"silence_all"},{"a":35548,"t":"code","b":[96],"m":"rts"},{"a":35549,"l":"new_game","c":"starts a game: player 1 (zpa_9D = 0), clears the game-over flag zpa_A0, the six score digits zpf_5F-64 and the six digits to add zpf_4E-53, sets three men in zpa_5C, copies the first nine bytes of the player block (men, cave, level and score, zpa_5C-64) into both save areas, zpf_6B and zpf_7A, and takes player 1's high-score digits from zpf_74-79 into zpf_65-6A","t":"code","b":[169,0],"m":"lda","x":[36619],"o":"#$00"},{"a":35551,"t":"code","b":[133,157],"m":"sta","oa":157,"o":"zpa_9D"},{"a":35553,"t":"code","b":[133,160],"m":"sta","oa":160,"o":"zpa_A0"},{"a":35555,"t":"code","b":[162,5],"m":"ldx","o":"#$05"},{"a":35557,"l":"b_8AE5","t":"code","b":[149,95],"m":"sta","oa":95,"x":[35562],"o":"zpf_5F,x"},{"a":35559,"t":"code","b":[149,78],"m":"sta","oa":78,"o":"zpf_4E,x"},{"a":35561,"t":"code","b":[202],"m":"dex"},{"a":35562,"t":"code","b":[16,249],"m":"bpl","oa":35557,"o":"b_8AE5"},{"a":35564,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":35566,"t":"code","b":[133,92],"m":"sta","oa":92,"o":"zpa_5C"},{"a":35568,"t":"code","b":[162,8],"m":"ldx","o":"#$08"},{"a":35570,"l":"b_8AF2","t":"code","b":[181,92],"m":"lda","oa":92,"x":[35577],"o":"zpa_5C,x"},{"a":35572,"t":"code","b":[149,107],"m":"sta","oa":107,"o":"zpf_6B,x"},{"a":35574,"t":"code","b":[149,122],"m":"sta","oa":122,"o":"zpf_7A,x"},{"a":35576,"t":"code","b":[202],"m":"dex"},{"a":35577,"t":"code","b":[16,247],"m":"bpl","oa":35570,"o":"b_8AF2"},{"a":35579,"t":"code","b":[162,5],"m":"ldx","o":"#$05"},{"a":35581,"l":"b_8AFD","t":"code","b":[181,116],"m":"lda","oa":116,"x":[35586],"o":"zpf_74,x"},{"a":35583,"t":"code","b":[149,101],"m":"sta","oa":101,"o":"zpf_65,x"},{"a":35585,"t":"code","b":[202],"m":"dex"},{"a":35586,"t":"code","b":[16,249],"m":"bpl","oa":35581,"o":"b_8AFD"},{"a":35588,"t":"code","b":[96],"m":"rts"},{"a":35589,"l":"lose_life","c":"takes a man from the current player, saves that player's state and, in a two-player game, switches to the other player when they still have men; sets the game-over flag zpa_A0 when nobody has any left","t":"code","b":[198,92],"m":"dec","oa":92,"x":[35889],"o":"zpa_5C"},{"a":35591,"t":"code","b":[165,157],"m":"lda","oa":157,"o":"zpa_9D"},{"a":35593,"t":"code","b":[208,11],"m":"bne","oa":35606,"o":"b_8B16"},{"a":35595,"t":"code","b":[162,14],"m":"ldx","o":"#$0E"},{"a":35597,"l":"b_8B0D","t":"code","b":[181,92],"m":"lda","oa":92,"x":[35602],"o":"zpa_5C,x"},{"a":35599,"t":"code","b":[149,107],"m":"sta","oa":107,"o":"zpf_6B,x"},{"a":35601,"t":"code","b":[202],"m":"dex"},{"a":35602,"t":"code","b":[16,249],"m":"bpl","oa":35597,"o":"b_8B0D"},{"a":35604,"t":"code","b":[48,9],"m":"bmi","oa":35615,"o":"b_8B1F"},{"a":35606,"l":"b_8B16","t":"code","b":[162,14],"m":"ldx","x":[35593],"o":"#$0E"},{"a":35608,"l":"b_8B18","t":"code","b":[181,92],"m":"lda","oa":92,"x":[35613],"o":"zpa_5C,x"},{"a":35610,"t":"code","b":[149,122],"m":"sta","oa":122,"o":"zpf_7A,x"},{"a":35612,"t":"code","b":[202],"m":"dex"},{"a":35613,"t":"code","b":[16,249],"m":"bpl","oa":35608,"o":"b_8B18"},{"a":35615,"l":"b_8B1F","t":"code","b":[165,158],"m":"lda","oa":158,"x":[35604],"o":"zpa_9E"},{"a":35617,"t":"code","b":[240,19],"m":"beq","oa":35638,"o":"b_8B36"},{"a":35619,"t":"code","b":[165,157],"m":"lda","oa":157,"o":"zpa_9D"},{"a":35621,"t":"code","b":[208,9],"m":"bne","oa":35632,"o":"b_8B30"},{"a":35623,"t":"code","b":[165,122],"m":"lda","oa":122,"o":"zpf_7A"},{"a":35625,"t":"code","b":[240,11],"m":"beq","oa":35638,"o":"b_8B36"},{"a":35627,"t":"code","b":[230,157],"m":"inc","oa":157,"o":"zpa_9D"},{"a":35629,"t":"code","b":[76,54,139],"m":"jmp","oa":35638,"o":"b_8B36"},{"a":35632,"l":"b_8B30","t":"code","b":[165,107],"m":"lda","oa":107,"x":[35621],"o":"zpf_6B"},{"a":35634,"t":"code","b":[240,2],"m":"beq","oa":35638,"o":"b_8B36"},{"a":35636,"t":"code","b":[198,157],"m":"dec","oa":157,"o":"zpa_9D"},{"a":35638,"l":"b_8B36","t":"code","b":[165,157],"m":"lda","oa":157,"x":[35617,35625,35629,35634],"o":"zpa_9D"},{"a":35640,"t":"code","b":[208,11],"m":"bne","oa":35653,"o":"b_8B45"},{"a":35642,"t":"code","b":[162,14],"m":"ldx","o":"#$0E"},{"a":35644,"l":"b_8B3C","t":"code","b":[181,107],"m":"lda","oa":107,"x":[35649],"o":"zpf_6B,x"},{"a":35646,"t":"code","b":[149,92],"m":"sta","oa":92,"o":"zpa_5C,x"},{"a":35648,"t":"code","b":[202],"m":"dex"},{"a":35649,"t":"code","b":[16,249],"m":"bpl","oa":35644,"o":"b_8B3C"},{"a":35651,"t":"code","b":[48,9],"m":"bmi","oa":35662,"o":"b_8B4E"},{"a":35653,"l":"b_8B45","t":"code","b":[162,14],"m":"ldx","x":[35640],"o":"#$0E"},{"a":35655,"l":"b_8B47","t":"code","b":[181,122],"m":"lda","oa":122,"x":[35660],"o":"zpf_7A,x"},{"a":35657,"t":"code","b":[149,92],"m":"sta","oa":92,"o":"zpa_5C,x"},{"a":35659,"t":"code","b":[202],"m":"dex"},{"a":35660,"t":"code","b":[16,249],"m":"bpl","oa":35655,"o":"b_8B47"},{"a":35662,"l":"b_8B4E","t":"code","b":[165,92],"m":"lda","oa":92,"x":[35651],"o":"zpa_5C"},{"a":35664,"t":"code","b":[208,12],"m":"bne","oa":35678,"o":"r_8B5E"},{"a":35666,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":35668,"t":"code","b":[133,160],"m":"sta","oa":160,"o":"zpa_A0"},{"a":35670,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":35672,"t":"code","b":[133,92],"m":"sta","oa":92,"o":"zpa_5C"},{"a":35674,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":35676,"t":"code","b":[133,157],"m":"sta","oa":157,"o":"zpa_9D"},{"a":35678,"l":"r_8B5E","t":"code","b":[96],"m":"rts","x":[35664]},{"a":35679,"l":"tally_blip","c":"plays one rising run of notes on voice 3 for the end-of-cave bonus count","t":"code","b":[198,3],"m":"dec","oa":3,"x":[35868],"o":"zpa_03"},{"a":35681,"t":"code","b":[162,15],"m":"ldx","o":"#$0F"},{"a":35683,"l":"b_8B63","t":"code","b":[169,16],"m":"lda","x":[35721],"o":"#$10"},{"a":35685,"t":"code","b":[141,18,212],"m":"sta","o":"sid_v3_control"},{"a":35688,"t":"code","b":[134,2],"m":"stx","oa":2,"o":"zpp_02"},{"a":35690,"t":"code","b":[6,2],"m":"asl","oa":2,"o":"zpp_02"},{"a":35692,"t":"code","b":[165,3],"m":"lda","oa":3,"o":"zpa_03"},{"a":35694,"t":"code","b":[56],"m":"sec"},{"a":35695,"t":"code","b":[229,2],"m":"sbc","oa":2,"o":"zpp_02"},{"a":35697,"t":"code","b":[141,15,212],"m":"sta","o":"sid_v3_freq_hi"},{"a":35700,"t":"code","b":[169,160],"m":"lda","o":"#$A0"},{"a":35702,"t":"code","b":[141,20,212],"m":"sta","o":"sid_v3_sustain_release"},{"a":35705,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":35707,"t":"code","b":[141,19,212],"m":"sta","o":"sid_v3_attack_decay"},{"a":35710,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":35712,"t":"code","b":[141,18,212],"m":"sta","o":"sid_v3_control"},{"a":35715,"t":"code","b":[160,192],"m":"ldy","o":"#$C0"},{"a":35717,"l":"b_8B85","t":"code","b":[136],"m":"dey","x":[35718]},{"a":35718,"t":"code","b":[208,253],"m":"bne","oa":35717,"o":"b_8B85"},{"a":35720,"t":"code","b":[202],"m":"dex"},{"a":35721,"t":"code","b":[208,216],"m":"bne","oa":35683,"o":"b_8B63"},{"a":35723,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":35725,"t":"code","b":[141,18,212],"m":"sta","o":"sid_v3_control"},{"a":35728,"t":"code","b":[96],"m":"rts"},{"a":35729,"l":"update_high_score","c":"compares the six score digits with the high score digits and, when the score is higher, copies it over the high score","t":"code","b":[169,0],"m":"lda","x":[35886],"o":"#$00"},{"a":35731,"t":"code","b":[170],"m":"tax"},{"a":35732,"t":"code","b":[133,161],"m":"sta","oa":161,"o":"zpa_A1"},{"a":35734,"l":"b_8B96","t":"code","b":[181,101],"m":"lda","oa":101,"x":[35752],"o":"zpf_65,x"},{"a":35736,"t":"code","b":[221,72,152],"m":"cmp","oa":38984,"o":"f_9848,x"},{"a":35739,"t":"code","b":[240,8],"m":"beq","oa":35749,"o":"b_8BA5"},{"a":35741,"t":"code","b":[162,5],"m":"ldx","o":"#$05"},{"a":35743,"t":"code","b":[176,4],"m":"bcs","oa":35749,"o":"b_8BA5"},{"a":35745,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":35747,"t":"code","b":[133,161],"m":"sta","oa":161,"o":"zpa_A1"},{"a":35749,"l":"b_8BA5","t":"code","b":[232],"m":"inx","x":[35739,35743]},{"a":35750,"t":"code","b":[224,6],"m":"cpx","o":"#$06"},{"a":35752,"t":"code","b":[208,236],"m":"bne","oa":35734,"o":"b_8B96"},{"a":35754,"t":"code","b":[165,161],"m":"lda","oa":161,"o":"zpa_A1"},{"a":35756,"t":"code","b":[240,10],"m":"beq","oa":35768,"o":"r_8BB8"},{"a":35758,"t":"code","b":[162,5],"m":"ldx","o":"#$05"},{"a":35760,"l":"b_8BB0","t":"code","b":[189,72,152],"m":"lda","oa":38984,"x":[35766],"o":"f_9848,x"},{"a":35763,"t":"code","b":[149,101],"m":"sta","oa":101,"o":"zpf_65,x"},{"a":35765,"t":"code","b":[202],"m":"dex"},{"a":35766,"t":"code","b":[16,248],"m":"bpl","oa":35760,"o":"b_8BB0"},{"a":35768,"l":"r_8BB8","t":"code","b":[96],"m":"rts","x":[35756]},{"a":35769,"l":"format_score_lines","c":"writes the two players' last scores and the high scores into the score lines at $9813-$9833 as characters","t":"code","b":[162,5],"m":"ldx","x":[35902],"o":"#$05"},{"a":35771,"l":"b_8BBB","t":"code","b":[181,116],"m":"lda","oa":116,"x":[35797],"o":"zpf_74,x"},{"a":35773,"t":"code","b":[157,39,152],"m":"sta","oa":38951,"o":"f_9827,x"},{"a":35776,"t":"code","b":[181,131],"m":"lda","oa":131,"o":"zpf_83,x"},{"a":35778,"t":"code","b":[157,51,152],"m":"sta","oa":38963,"o":"f_9833,x"},{"a":35781,"t":"code","b":[181,110],"m":"lda","oa":110,"o":"zpf_6E,x"},{"a":35783,"t":"code","b":[24],"m":"clc"},{"a":35784,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":35786,"t":"code","b":[157,19,152],"m":"sta","oa":38931,"o":"f_9813,x"},{"a":35789,"t":"code","b":[181,125],"m":"lda","oa":125,"o":"zpf_7D,x"},{"a":35791,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":35793,"t":"code","b":[157,31,152],"m":"sta","oa":38943,"o":"f_981F,x"},{"a":35796,"t":"code","b":[202],"m":"dex"},{"a":35797,"t":"code","b":[16,228],"m":"bpl","oa":35771,"o":"b_8BBB"},{"a":35799,"t":"code","b":[96],"m":"rts"},{"a":35800,"l":"next_cave","c":"takes the next cave number from the order table at $81FE; at the end of a round ($15) goes back to cave A and raises the level, up to level 5","t":"code","b":[165,93],"m":"lda","oa":93,"x":[35882,35924],"o":"zpa_5D"},{"a":35802,"t":"code","b":[10],"m":"asl","o":"a"},{"a":35803,"t":"code","b":[170],"m":"tax"},{"a":35804,"t":"code","b":[189,252,129],"m":"lda","oa":33276,"o":"cave_loop_branch,x"},{"a":35807,"t":"code","b":[201,21],"m":"cmp","o":"#$15"},{"a":35809,"t":"code","b":[208,10],"m":"bne","oa":35821,"o":"b_8BED"},{"a":35811,"t":"code","b":[165,94],"m":"lda","oa":94,"o":"zpa_5E"},{"a":35813,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":35815,"t":"code","b":[240,2],"m":"beq","oa":35819,"o":"b_8BEB"},{"a":35817,"t":"code","b":[230,94],"m":"inc","oa":94,"o":"zpa_5E"},{"a":35819,"l":"b_8BEB","t":"code","b":[169,1],"m":"lda","x":[35815],"o":"#$01"},{"a":35821,"l":"b_8BED","t":"code","b":[133,93],"m":"sta","oa":93,"x":[35809],"o":"zpa_5D"},{"a":35823,"t":"code","b":[96],"m":"rts"},{"a":35824,"l":"time_bonus_tally","c":"counts the time left into the score one second at a time: each second adds zpa_5E + 1 points, the level as the game shows it (1 to 5), with a blip (tally_blip), until low_time_check sets zpa_97 at a time of 000; then goes on to the next cave","t":"code","b":[162,0],"m":"ldx","x":[35914],"o":"#$00"},{"a":35826,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":35828,"l":"b_8BF4","t":"code","b":[149,78],"m":"sta","oa":78,"x":[35833],"o":"zpf_4E,x"},{"a":35830,"t":"code","b":[232],"m":"inx"},{"a":35831,"t":"code","b":[224,6],"m":"cpx","o":"#$06"},{"a":35833,"t":"code","b":[208,249],"m":"bne","oa":35828,"o":"b_8BF4"},{"a":35835,"t":"code","b":[165,94],"m":"lda","oa":94,"o":"zpa_5E"},{"a":35837,"t":"code","b":[24],"m":"clc"},{"a":35838,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":35840,"t":"code","b":[133,83],"m":"sta","oa":83,"o":"zpa_53"},{"a":35842,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":35844,"t":"code","b":[133,151],"m":"sta","oa":151,"o":"zpa_97"},{"a":35846,"t":"code","b":[133,2],"m":"sta","oa":2,"o":"zpp_02"},{"a":35848,"t":"code","b":[169,208],"m":"lda","o":"#$D0"},{"a":35850,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"zpa_03"},{"a":35852,"t":"code","b":[32,36,116],"m":"jsr","oa":29732,"o":"low_time_check"},{"a":35855,"t":"code","b":[32,140,128],"m":"jsr","oa":32908,"o":"silence_all"},{"a":35858,"l":"b_8C12","t":"code","b":[165,151],"m":"lda","oa":151,"x":[35871],"o":"zpa_97"},{"a":35860,"t":"code","b":[208,11],"m":"bne","oa":35873,"o":"b_8C21"},{"a":35862,"t":"code","b":[32,93,116],"m":"jsr","oa":29789,"o":"time_down_one"},{"a":35865,"t":"code","b":[32,245,115],"m":"jsr","oa":29685,"o":"add_to_score"},{"a":35868,"t":"code","b":[32,95,139],"m":"jsr","oa":35679,"o":"tally_blip"},{"a":35871,"t":"code","b":[208,241],"m":"bne","oa":35858,"o":"b_8C12"},{"a":35873,"l":"b_8C21","t":"code","b":[32,53,116],"m":"jsr","oa":29749,"x":[35860],"o":"b_7435"},{"a":35876,"t":"code","b":[32,164,128],"m":"jsr","oa":32932,"o":"delay_long"},{"a":35879,"t":"code","b":[32,140,128],"m":"jsr","oa":32908,"o":"silence_all"},{"a":35882,"t":"code","b":[32,216,139],"m":"jsr","oa":35800,"o":"next_cave"},{"a":35885,"t":"code","b":[96],"m":"rts"},{"a":35886,"l":"end_player_turn","c":"updates the player's high score, then runs lose_life, which takes a man and in a two-player game may switch player; when the game is over (zpa_A0) sets the cave and level to 0, so program_entry shows the title next, and writes the score lines with format_score_lines","t":"code","b":[32,145,139],"m":"jsr","oa":35729,"x":[35930],"o":"update_high_score"},{"a":35889,"t":"code","b":[32,5,139],"m":"jsr","oa":35589,"o":"lose_life"},{"a":35892,"t":"code","b":[165,160],"m":"lda","oa":160,"o":"zpa_A0"},{"a":35894,"t":"code","b":[240,9],"m":"beq","oa":35905,"o":"r_8C41"},{"a":35896,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":35898,"t":"code","b":[133,93],"m":"sta","oa":93,"o":"zpa_5D"},{"a":35900,"t":"code","b":[133,94],"m":"sta","oa":94,"o":"zpa_5E"},{"a":35902,"t":"code","b":[32,185,139],"m":"jsr","oa":35769,"o":"format_score_lines"},{"a":35905,"l":"r_8C41","t":"code","b":[96],"m":"rts","x":[35894]},{"a":35906,"l":"end_of_cave_actions","c":"holds play (zpa_9B = 1, which stops the clock, the sound and the magic wall count); after a finished cave (zpa_9F) runs time_bonus_tally, which moves to the next cave, after an intermission (zpa_A6) goes to the next cave, otherwise runs end_player_turn; then, outside the demonstration (zpa_A2 = 0), rewrites the status line's characters for the player ($9855), the men ($9858, with E or A at $985B for MEN or MAN), the cave ($985E) and the level ($9860); clears zpa_94","t":"code","b":[162,1],"m":"ldx","x":[35996,36077],"o":"#$01"},{"a":35908,"t":"code","b":[134,155],"m":"stx","oa":155,"o":"zpa_9B"},{"a":35910,"t":"code","b":[165,159],"m":"lda","oa":159,"o":"zpa_9F"},{"a":35912,"t":"code","b":[240,6],"m":"beq","oa":35920,"o":"b_8C50"},{"a":35914,"t":"code","b":[32,240,139],"m":"jsr","oa":35824,"o":"time_bonus_tally"},{"a":35917,"t":"code","b":[76,93,140],"m":"jmp","oa":35933,"o":"j_8C5D"},{"a":35920,"l":"b_8C50","t":"code","b":[165,166],"m":"lda","oa":166,"x":[35912],"o":"zpa_A6"},{"a":35922,"t":"code","b":[240,6],"m":"beq","oa":35930,"o":"b_8C5A"},{"a":35924,"t":"code","b":[32,216,139],"m":"jsr","oa":35800,"o":"next_cave"},{"a":35927,"t":"code","b":[76,93,140],"m":"jmp","oa":35933,"o":"j_8C5D"},{"a":35930,"l":"b_8C5A","t":"code","b":[32,46,140],"m":"jsr","oa":35886,"x":[35922],"o":"end_player_turn"},{"a":35933,"l":"j_8C5D","t":"code","b":[165,162],"m":"lda","oa":162,"x":[35917,35927],"o":"zpa_A2"},{"a":35935,"t":"code","b":[208,44],"m":"bne","oa":35981,"o":"b_8C8D"},{"a":35937,"t":"code","b":[165,157],"m":"lda","oa":157,"o":"zpa_9D"},{"a":35939,"t":"code","b":[24],"m":"clc"},{"a":35940,"t":"code","b":[105,17],"m":"adc","o":"#$11"},{"a":35942,"t":"code","b":[141,85,152],"m":"sta","oa":38997,"o":"a_9855"},{"a":35945,"t":"code","b":[165,92],"m":"lda","oa":92,"o":"zpa_5C"},{"a":35947,"t":"code","b":[24],"m":"clc"},{"a":35948,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":35950,"t":"code","b":[141,88,152],"m":"sta","oa":39000,"o":"a_9858"},{"a":35953,"t":"code","b":[170],"m":"tax"},{"a":35954,"t":"code","b":[169,37],"m":"lda","o":"#$25"},{"a":35956,"t":"code","b":[224,17],"m":"cpx","o":"#$11"},{"a":35958,"t":"code","b":[208,2],"m":"bne","oa":35962,"o":"b_8C7A"},{"a":35960,"t":"code","b":[169,33],"m":"lda","o":"#$21"},{"a":35962,"l":"b_8C7A","t":"code","b":[141,91,152],"m":"sta","oa":39003,"x":[35958],"o":"a_985B"},{"a":35965,"t":"code","b":[165,93],"m":"lda","oa":93,"o":"zpa_5D"},{"a":35967,"t":"code","b":[24],"m":"clc"},{"a":35968,"t":"code","b":[105,32],"m":"adc","o":"#$20"},{"a":35970,"t":"code","b":[141,94,152],"m":"sta","oa":39006,"o":"a_985E"},{"a":35973,"t":"code","b":[165,94],"m":"lda","oa":94,"o":"zpa_5E"},{"a":35975,"t":"code","b":[24],"m":"clc"},{"a":35976,"t":"code","b":[105,17],"m":"adc","o":"#$11"},{"a":35978,"t":"code","b":[141,96,152],"m":"sta","oa":39008,"o":"a_9860"},{"a":35981,"l":"b_8C8D","t":"code","b":[169,0],"m":"lda","x":[35935],"o":"#$00"},{"a":35983,"t":"code","b":[133,148],"m":"sta","oa":148,"o":"zpa_94"},{"a":35985,"t":"code","b":[96],"m":"rts"},{"a":35986,"l":"play_loop","c":"the cave's main loop: runs update_pass again and again until a cave-ending state is set in zpa_97, then silences the sound, runs the end-of-cave actions and waits for the glisten effect to finish","t":"code","b":[32,113,129],"m":"jsr","oa":33137,"x":[35991,36647],"o":"update_pass"},{"a":35989,"t":"code","b":[165,151],"m":"lda","oa":151,"o":"zpa_97"},{"a":35991,"t":"code","b":[240,249],"m":"beq","oa":35986,"o":"play_loop"},{"a":35993,"t":"code","b":[32,140,128],"m":"jsr","oa":32908,"o":"silence_all"},{"a":35996,"t":"code","b":[32,66,140],"m":"jsr","oa":35906,"o":"end_of_cave_actions"},{"a":35999,"l":"b_8C9F","t":"code","b":[165,168],"m":"lda","oa":168,"x":[36001],"o":"zpa_A8"},{"a":36001,"t":"code","b":[208,252],"m":"bne","oa":35999,"o":"b_8C9F"},{"a":36003,"t":"code","b":[141,8,152],"m":"sta","oa":38920,"o":"a_9808"},{"a":36006,"t":"code","b":[141,17,152],"m":"sta","oa":38929,"o":"a_9811"},{"a":36009,"t":"code","b":[96],"m":"rts"},{"a":36010,"l":"demo_play","c":"plays the demonstration: reads the move script at $5EA8 a byte at a time, the joystick bits in the low four bits (into zpa_8B, which rockford_handler takes while zpa_A2 is set) and a repeat count in the high four bits, and runs one update pass per repeat; ends at a byte whose low four bits are zero (the $00 at $5EE7 ends the script) or when the fire button on port 1 is pressed ($6F0C); then silences the sound, runs end_of_cave_actions if Rockford reached the exit (zpa_9F), and sets the cave number zpa_5D to 0","t":"code","b":[169,0],"m":"lda","x":[36637],"o":"#$00"},{"a":36012,"t":"code","b":[133,211],"m":"sta","oa":211,"o":"zpa_D3"},{"a":36014,"t":"code","b":[133,212],"m":"sta","oa":212,"o":"zpa_D4"},{"a":36016,"t":"code","b":[133,210],"m":"sta","oa":210,"o":"zpa_D2"},{"a":36018,"l":"j_8CB2","t":"code","b":[165,210],"m":"lda","oa":210,"x":[36067],"o":"zpa_D2"},{"a":36020,"t":"code","b":[208,27],"m":"bne","oa":36049,"o":"b_8CD1"},{"a":36022,"t":"code","b":[166,211],"m":"ldx","oa":211,"o":"zpa_D3"},{"a":36024,"t":"code","b":[189,168,94],"m":"lda","oa":24232,"o":"demo_script,x"},{"a":36027,"t":"code","b":[133,210],"m":"sta","oa":210,"o":"zpa_D2"},{"a":36029,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":36031,"t":"code","b":[133,139],"m":"sta","oa":139,"o":"zpa_8B"},{"a":36033,"t":"code","b":[208,4],"m":"bne","oa":36039,"o":"b_8CC7"},{"a":36035,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":36037,"t":"code","b":[133,212],"m":"sta","oa":212,"o":"zpa_D4"},{"a":36039,"l":"b_8CC7","t":"code","b":[70,210],"m":"lsr","oa":210,"x":[36033],"o":"zpa_D2"},{"a":36041,"t":"code","b":[70,210],"m":"lsr","oa":210,"o":"zpa_D2"},{"a":36043,"t":"code","b":[70,210],"m":"lsr","oa":210,"o":"zpa_D2"},{"a":36045,"t":"code","b":[70,210],"m":"lsr","oa":210,"o":"zpa_D2"},{"a":36047,"t":"code","b":[230,211],"m":"inc","oa":211,"o":"zpa_D3"},{"a":36049,"l":"b_8CD1","t":"code","b":[32,12,111],"m":"jsr","oa":28428,"x":[36020],"o":"b_6F0C"},{"a":36052,"t":"code","b":[208,4],"m":"bne","oa":36058,"o":"b_8CDA"},{"a":36054,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":36056,"t":"code","b":[133,212],"m":"sta","oa":212,"o":"zpa_D4"},{"a":36058,"l":"b_8CDA","t":"code","b":[165,212],"m":"lda","oa":212,"x":[36052],"o":"zpa_D4"},{"a":36060,"t":"code","b":[208,8],"m":"bne","oa":36070,"o":"b_8CE6"},{"a":36062,"t":"code","b":[32,113,129],"m":"jsr","oa":33137,"o":"update_pass"},{"a":36065,"t":"code","b":[198,210],"m":"dec","oa":210,"o":"zpa_D2"},{"a":36067,"t":"code","b":[76,178,140],"m":"jmp","oa":36018,"o":"j_8CB2"},{"a":36070,"l":"b_8CE6","t":"code","b":[32,140,128],"m":"jsr","oa":32908,"x":[36060],"o":"silence_all"},{"a":36073,"t":"code","b":[165,159],"m":"lda","oa":159,"o":"zpa_9F"},{"a":36075,"t":"code","b":[240,3],"m":"beq","oa":36080,"o":"b_8CF0"},{"a":36077,"t":"code","b":[32,66,140],"m":"jsr","oa":35906,"o":"end_of_cave_actions"},{"a":36080,"l":"b_8CF0","t":"code","b":[169,0],"m":"lda","x":[36075],"o":"#$00"},{"a":36082,"t":"code","b":[133,93],"m":"sta","oa":93,"o":"zpa_5D"},{"a":36084,"t":"code","b":[96],"m":"rts"},{"a":36085,"l":"init_score_lines","c":"copies the LAST and HIGH score text lines from $6F64 and $6F78 into $9812 and $9826, blanks the line at $983A and sets $983D to $3C","t":"code","b":[162,19],"m":"ldx","x":[36401],"o":"#$13"},{"a":36087,"l":"b_8CF7","t":"code","b":[189,100,111],"m":"lda","oa":28516,"x":[36105],"o":"text_score_last,x"},{"a":36090,"t":"code","b":[157,18,152],"m":"sta","oa":38930,"o":"f_9812,x"},{"a":36093,"t":"code","b":[189,120,111],"m":"lda","oa":28536,"o":"text_score_high,x"},{"a":36096,"t":"code","b":[157,38,152],"m":"sta","oa":38950,"o":"f_9826,x"},{"a":36099,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":36101,"t":"code","b":[157,58,152],"m":"sta","oa":38970,"o":"f_983A,x"},{"a":36104,"t":"code","b":[202],"m":"dex"},{"a":36105,"t":"code","b":[16,236],"m":"bpl","oa":36087,"o":"b_8CF7"},{"a":36107,"t":"code","b":[169,60],"m":"lda","o":"#$3C"},{"a":36109,"t":"code","b":[141,61,152],"m":"sta","oa":38973,"o":"a_983D"},{"a":36112,"t":"code","b":[96],"m":"rts"},{"a":36113,"l":"init_graphics","c":"copies the graphics from where the program file holds them to where the VIC reads them: $5000-$53FF to $2000-$23FF (the text set and the two tables after it) and $5FE8-$63E7 to $3000-$33FF (the tile set); then from $8D46 zeroes the left 16 cells of bitmap rows 19 to 22 and copies the eight logo blocks $68E8-$6E67 into $37C0-$3F3F, the last six character rows of the bitmap at $2000 (the right 24 cells of rows 19 to 22 from $68E8, $69A8, $6A68 and $6B28, rows 23 and 24 whole from $6BE8 and $6D28); stores $FF in $3770-$3797 and 0 in $3798-$37BF, so sprite block $DE ($3780-$37BF) is eight solid lines and then empty; sets the sprite pointers of both screens ($0FF8, $2FF8) to $DE and the sprite colours to black, and puts sprites 0 to 6 side by side at y $3A, x from $17 in steps of $30, doubled in width: a black band across the screen","t":"code","b":[162,0],"m":"ldx","x":[36404],"o":"#$00"},{"a":36115,"l":"b_8D13","t":"code","b":[189,0,80],"m":"lda","oa":20480,"x":[36164],"o":"text_charset,x"},{"a":36118,"t":"code","b":[157,0,32],"m":"sta","oa":8192,"o":"a_2000,x"},{"a":36121,"t":"code","b":[189,0,81],"m":"lda","oa":20736,"o":"charset_chars_20,x"},{"a":36124,"t":"code","b":[157,0,33],"m":"sta","oa":8448,"o":"f_2100,x"},{"a":36127,"t":"code","b":[189,0,82],"m":"lda","oa":20992,"o":"charset_chars_40,x"},{"a":36130,"t":"code","b":[157,0,34],"m":"sta","oa":8704,"o":"f_2200,x"},{"a":36133,"t":"code","b":[189,0,83],"m":"lda","oa":21248,"o":"charset_chars_60,x"},{"a":36136,"t":"code","b":[157,0,35],"m":"sta","oa":8960,"o":"f_2300,x"},{"a":36139,"t":"code","b":[189,232,95],"m":"lda","oa":24552,"o":"title_tune_voice2,x"},{"a":36142,"t":"code","b":[157,0,48],"m":"sta","oa":12288,"o":"f_3000,x"},{"a":36145,"t":"code","b":[189,232,96],"m":"lda","oa":24808,"o":"tile_charset_1,x"},{"a":36148,"t":"code","b":[157,0,49],"m":"sta","oa":12544,"o":"f_3100,x"},{"a":36151,"t":"code","b":[189,232,97],"m":"lda","oa":25064,"o":"tile_charset_2,x"},{"a":36154,"t":"code","b":[157,0,50],"m":"sta","oa":12800,"o":"f_3200,x"},{"a":36157,"t":"code","b":[189,232,98],"m":"lda","oa":25320,"o":"tile_charset_3,x"},{"a":36160,"t":"code","b":[157,0,51],"m":"sta","oa":13056,"o":"a_3300,x"},{"a":36163,"t":"code","b":[232],"m":"inx"},{"a":36164,"t":"code","b":[208,205],"m":"bne","oa":36115,"o":"b_8D13"},{"a":36166,"t":"code","b":[162,191],"m":"ldx","o":"#$BF"},{"a":36168,"l":"b_8D48","t":"code","b":[169,0],"m":"lda","x":[36233],"o":"#$00"},{"a":36170,"t":"code","b":[157,192,55],"m":"sta","oa":14272,"o":"f_37C0,x"},{"a":36173,"t":"code","b":[157,0,57],"m":"sta","oa":14592,"o":"f_3900,x"},{"a":36176,"t":"code","b":[157,64,58],"m":"sta","oa":14912,"o":"f_3A40,x"},{"a":36179,"t":"code","b":[157,128,59],"m":"sta","oa":15232,"o":"f_3B80,x"},{"a":36182,"t":"code","b":[189,232,107],"m":"lda","oa":27624,"o":"logo_row23_left,x"},{"a":36185,"t":"code","b":[157,192,60],"m":"sta","oa":15552,"o":"f_3CC0,x"},{"a":36188,"t":"code","b":[189,40,109],"m":"lda","oa":27944,"o":"logo_row24_left,x"},{"a":36191,"t":"code","b":[157,0,62],"m":"sta","oa":15872,"o":"f_3E00,x"},{"a":36194,"t":"code","b":[189,232,104],"m":"lda","oa":26856,"o":"logo_row19_right,x"},{"a":36197,"t":"code","b":[157,64,56],"m":"sta","oa":14400,"o":"f_3840,x"},{"a":36200,"t":"code","b":[189,168,105],"m":"lda","oa":27048,"o":"logo_row20_right,x"},{"a":36203,"t":"code","b":[157,128,57],"m":"sta","oa":14720,"o":"f_3980,x"},{"a":36206,"t":"code","b":[189,104,106],"m":"lda","oa":27240,"o":"logo_row21_right,x"},{"a":36209,"t":"code","b":[157,192,58],"m":"sta","oa":15040,"o":"f_3AC0,x"},{"a":36212,"t":"code","b":[189,40,107],"m":"lda","oa":27432,"o":"logo_row22_right,x"},{"a":36215,"t":"code","b":[157,0,60],"m":"sta","oa":15360,"o":"f_3C00,x"},{"a":36218,"t":"code","b":[189,104,108],"m":"lda","oa":27752,"o":"logo_row23_right,x"},{"a":36221,"t":"code","b":[157,64,61],"m":"sta","oa":15680,"o":"f_3D40,x"},{"a":36224,"t":"code","b":[189,168,109],"m":"lda","oa":28072,"o":"logo_row24_right,x"},{"a":36227,"t":"code","b":[157,128,62],"m":"sta","oa":16000,"o":"f_3E80,x"},{"a":36230,"t":"code","b":[202],"m":"dex"},{"a":36231,"t":"code","b":[224,255],"m":"cpx","o":"#$FF"},{"a":36233,"t":"code","b":[208,189],"m":"bne","oa":36168,"o":"b_8D48"},{"a":36235,"t":"code","b":[162,39],"m":"ldx","o":"#$27"},{"a":36237,"l":"b_8D8D","t":"code","b":[169,255],"m":"lda","x":[36248],"o":"#$FF"},{"a":36239,"t":"code","b":[157,112,55],"m":"sta","oa":14192,"o":"f_3770,x"},{"a":36242,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":36244,"t":"code","b":[157,152,55],"m":"sta","oa":14232,"o":"f_3798,x"},{"a":36247,"t":"code","b":[202],"m":"dex"},{"a":36248,"t":"code","b":[16,243],"m":"bpl","oa":36237,"o":"b_8D8D"},{"a":36250,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":36252,"l":"b_8D9C","t":"code","b":[169,222],"m":"lda","x":[36266],"o":"#$DE"},{"a":36254,"t":"code","b":[157,248,15],"m":"sta","oa":4088,"o":"f_0FF8,x"},{"a":36257,"t":"code","b":[157,248,47],"m":"sta","oa":12280,"o":"f_2FF8,x"},{"a":36260,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":36262,"t":"code","b":[157,39,208],"m":"sta","o":"vic_sprite0_colour,x"},{"a":36265,"t":"code","b":[202],"m":"dex"},{"a":36266,"t":"code","b":[16,240],"m":"bpl","oa":36252,"o":"b_8D9C"},{"a":36268,"t":"code","b":[160,12],"m":"ldy","o":"#$0C"},{"a":36270,"t":"code","b":[169,55],"m":"lda","o":"#$37"},{"a":36272,"l":"b_8DB0","t":"code","b":[153,0,208],"m":"sta","x":[36287],"o":"vic_sprite0_x,y"},{"a":36275,"t":"code","b":[170],"m":"tax"},{"a":36276,"t":"code","b":[169,58],"m":"lda","o":"#$3A"},{"a":36278,"t":"code","b":[153,1,208],"m":"sta","o":"vic_sprite0_y,y"},{"a":36281,"t":"code","b":[138],"m":"txa"},{"a":36282,"t":"code","b":[56],"m":"sec"},{"a":36283,"t":"code","b":[233,48],"m":"sbc","o":"#$30"},{"a":36285,"t":"code","b":[136],"m":"dey"},{"a":36286,"t":"code","b":[136],"m":"dey"},{"a":36287,"t":"code","b":[16,239],"m":"bpl","oa":36272,"o":"b_8DB0"},{"a":36289,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":36291,"t":"code","b":[141,29,208],"m":"sta","o":"vic_sprite_expand_x"},{"a":36294,"t":"code","b":[169,96],"m":"lda","o":"#$60"},{"a":36296,"t":"code","b":[141,16,208],"m":"sta","o":"vic_sprite_x_msb"},{"a":36299,"t":"code","b":[96],"m":"rts"},{"a":36300,"l":"reset_game","c":"silences the sound and resets the key flags, scroll phases and positions, the cave and level (0), the animation phase, the flash and sound flags; sets zpa_CE to $FF and the logo flag zpa_A3, the demo flag zpa_A2 and zpa_CC to 1; the first time through (zpa_D5 not zero, cleared at $8E22) also blacks the border and background colours ($D020-$D024), sets the high-score digits zpf_65, zpf_74 and zpf_83 to the character 0, one player and one joystick (zpa_9E, zpa_A4, zpa_D0 = 1), clears zpa_A8 and the sparkle bytes, and runs init_score_lines and init_graphics","t":"code","b":[32,140,128],"m":"jsr","oa":32908,"x":[36517],"o":"silence_all"},{"a":36303,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":36305,"t":"code","b":[134,153],"m":"stx","oa":153,"o":"zpa_99"},{"a":36307,"t":"code","b":[134,206],"m":"stx","oa":206,"o":"zpa_CE"},{"a":36309,"t":"code","b":[134,251],"m":"stx","oa":251,"o":"zpa_FB"},{"a":36311,"t":"code","b":[134,252],"m":"stx","oa":252,"o":"zpa_FC"},{"a":36313,"t":"code","b":[134,253],"m":"stx","oa":253,"o":"zpa_FD"},{"a":36315,"t":"code","b":[134,254],"m":"stx","oa":254,"o":"zpa_FE"},{"a":36317,"t":"code","b":[232],"m":"inx"},{"a":36318,"t":"code","b":[134,231],"m":"stx","oa":231,"o":"zpa_E7"},{"a":36320,"t":"code","b":[134,232],"m":"stx","oa":232,"o":"zpa_E8"},{"a":36322,"t":"code","b":[134,235],"m":"stx","oa":235,"o":"zpa_EB"},{"a":36324,"t":"code","b":[134,236],"m":"stx","oa":236,"o":"zpa_EC"},{"a":36326,"t":"code","b":[134,165],"m":"stx","oa":165,"o":"zpa_A5"},{"a":36328,"t":"code","b":[134,93],"m":"stx","oa":93,"o":"zpa_5D"},{"a":36330,"t":"code","b":[134,94],"m":"stx","oa":94,"o":"zpa_5E"},{"a":36332,"t":"code","b":[134,192],"m":"stx","oa":192,"o":"zpa_C0"},{"a":36334,"t":"code","b":[134,193],"m":"stx","oa":193,"o":"zpa_C1"},{"a":36336,"t":"code","b":[134,227],"m":"stx","oa":227,"o":"zpa_E3"},{"a":36338,"t":"code","b":[134,228],"m":"stx","oa":228,"o":"zpa_E4"},{"a":36340,"t":"code","b":[134,225],"m":"stx","oa":225,"o":"zpa_E1"},{"a":36342,"t":"code","b":[134,226],"m":"stx","oa":226,"o":"zpa_E2"},{"a":36344,"t":"code","b":[134,216],"m":"stx","oa":216,"o":"zpa_D8"},{"a":36346,"t":"code","b":[134,217],"m":"stx","oa":217,"o":"zpa_D9"},{"a":36348,"t":"code","b":[232],"m":"inx"},{"a":36349,"t":"code","b":[134,204],"m":"stx","oa":204,"o":"zpa_CC"},{"a":36351,"t":"code","b":[134,162],"m":"stx","oa":162,"o":"zpa_A2"},{"a":36353,"t":"code","b":[134,163],"m":"stx","oa":163,"o":"zpa_A3"},{"a":36355,"t":"code","b":[165,213],"m":"lda","oa":213,"o":"zpa_D5"},{"a":36357,"t":"code","b":[240,48],"m":"beq","oa":36407,"o":"r_8E37"},{"a":36359,"t":"code","b":[162,4],"m":"ldx","o":"#$04"},{"a":36361,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":36363,"l":"b_8E0B","t":"code","b":[157,32,208],"m":"sta","x":[36367],"o":"vic_border,x"},{"a":36366,"t":"code","b":[202],"m":"dex"},{"a":36367,"t":"code","b":[16,250],"m":"bpl","oa":36363,"o":"b_8E0B"},{"a":36369,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":36371,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":36373,"l":"b_8E15","t":"code","b":[149,116],"m":"sta","oa":116,"x":[36382],"o":"zpf_74,x"},{"a":36375,"t":"code","b":[149,131],"m":"sta","oa":131,"o":"zpf_83,x"},{"a":36377,"t":"code","b":[149,101],"m":"sta","oa":101,"o":"zpf_65,x"},{"a":36379,"t":"code","b":[232],"m":"inx"},{"a":36380,"t":"code","b":[224,6],"m":"cpx","o":"#$06"},{"a":36382,"t":"code","b":[208,245],"m":"bne","oa":36373,"o":"b_8E15"},{"a":36384,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":36386,"t":"code","b":[133,213],"m":"sta","oa":213,"o":"zpa_D5"},{"a":36388,"t":"code","b":[133,164],"m":"sta","oa":164,"o":"zpa_A4"},{"a":36390,"t":"code","b":[133,158],"m":"sta","oa":158,"o":"zpa_9E"},{"a":36392,"t":"code","b":[133,168],"m":"sta","oa":168,"o":"zpa_A8"},{"a":36394,"t":"code","b":[32,209,119],"m":"jsr","oa":30673,"o":"clear_sparkle_table"},{"a":36397,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":36399,"t":"code","b":[133,208],"m":"sta","oa":208,"o":"zpa_D0"},{"a":36401,"t":"code","b":[32,245,140],"m":"jsr","oa":36085,"o":"init_score_lines"},{"a":36404,"t":"code","b":[32,17,141],"m":"jsr","oa":36113,"o":"init_graphics"},{"a":36407,"l":"r_8E37","t":"code","b":[96],"m":"rts","x":[36357]},{"a":36408,"l":"start_interrupts","c":"sets the screen buffer, loads the VIC table from $899C, switches on the raster interrupt at line $28 and points the interrupt vector at $8A0C","t":"code","b":[169,60],"m":"lda","x":[36591],"o":"#$3C"},{"a":36410,"t":"code","b":[141,7,152],"m":"sta","oa":38919,"o":"a_9807"},{"a":36413,"t":"code","b":[32,115,122],"m":"jsr","oa":31347,"o":"fill_screen_buffer"},{"a":36416,"t":"code","b":[120],"m":"sei"},{"a":36417,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":36419,"l":"b_8E43","t":"code","b":[189,156,137],"m":"lda","oa":35228,"x":[36425],"o":"vic_split_title,x"},{"a":36422,"t":"code","b":[149,84],"m":"sta","oa":84,"o":"zpa_54,x"},{"a":36424,"t":"code","b":[202],"m":"dex"},{"a":36425,"t":"code","b":[16,248],"m":"bpl","oa":36419,"o":"b_8E43"},{"a":36427,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":36429,"t":"code","b":[142,26,208],"m":"stx","o":"vic_irq_enable"},{"a":36432,"t":"code","b":[232],"m":"inx"},{"a":36433,"t":"code","b":[134,167],"m":"stx","oa":167,"o":"zpa_A7"},{"a":36435,"t":"code","b":[169,40],"m":"lda","o":"#$28"},{"a":36437,"t":"code","b":[141,18,208],"m":"sta","o":"vic_raster"},{"a":36440,"t":"code","b":[169,24],"m":"lda","o":"#$18"},{"a":36442,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":36445,"t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":36447,"t":"code","b":[141,20,3],"m":"sta","oa":788,"o":"a_0314"},{"a":36450,"t":"code","b":[169,138],"m":"lda","o":"#$8A"},{"a":36452,"t":"code","b":[141,21,3],"m":"sta","oa":789,"o":"a_0315"},{"a":36455,"t":"code","b":[88],"m":"cli"},{"a":36456,"t":"code","b":[96],"m":"rts"},{"a":36457,"l":"program_entry","c":"the program's real start, the target of the loader's jump and also of the RESTORE key's NMI vector: sets up the CIA timers that feed the random generator, the NMI vector, the banking, copies the two screen-copy templates from $7EF0 and $7FF0 to $9E00 and $9F00, loads the status line template and runs the title and game loop: with no cave chosen the title screen, otherwise sets up the cave, plays it (or the demo) and ends it","t":"code","b":[88],"m":"cli"},{"a":36458,"l":"j_8E6A","t":"code","b":[162,255],"m":"ldx","x":[33079],"o":"#$FF"},{"a":36460,"t":"code","b":[154],"m":"txs"},{"a":36461,"t":"code","b":[169,127],"m":"lda","o":"#$7F"},{"a":36463,"t":"code","b":[141,13,220],"m":"sta","o":"cia1_interrupt"},{"a":36466,"t":"code","b":[141,13,221],"m":"sta","o":"cia2_interrupt"},{"a":36469,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":36471,"t":"code","b":[141,4,220],"m":"sta","o":"cia1_timer_a_lo"},{"a":36474,"t":"code","b":[141,5,220],"m":"sta","o":"cia1_timer_a_hi"},{"a":36477,"t":"code","b":[169,160],"m":"lda","o":"#$A0"},{"a":36479,"t":"code","b":[141,4,221],"m":"sta","o":"cia2_timer_a_lo"},{"a":36482,"t":"code","b":[141,5,221],"m":"sta","o":"cia2_timer_a_hi"},{"a":36485,"t":"code","b":[169,104],"m":"lda","o":"#$68"},{"a":36487,"t":"code","b":[141,6,221],"m":"sta","o":"cia2_timer_b_lo"},{"a":36490,"t":"code","b":[141,7,221],"m":"sta","o":"cia2_timer_b_hi"},{"a":36493,"t":"code","b":[169,23],"m":"lda","o":"#$17"},{"a":36495,"t":"code","b":[141,14,221],"m":"sta","o":"cia2_control_a"},{"a":36498,"t":"code","b":[141,15,221],"m":"sta","o":"cia2_control_b"},{"a":36501,"t":"code","b":[120],"m":"sei"},{"a":36502,"t":"code","b":[169,105],"m":"lda","o":"#$69"},{"a":36504,"t":"code","b":[141,24,3],"m":"sta","oa":792,"o":"a_0318"},{"a":36507,"t":"code","b":[169,142],"m":"lda","o":"#$8E"},{"a":36509,"t":"code","b":[141,25,3],"m":"sta","oa":793,"o":"a_0319"},{"a":36512,"t":"code","b":[88],"m":"cli"},{"a":36513,"t":"code","b":[169,54],"m":"lda","o":"#$36"},{"a":36515,"t":"code","b":[133,1],"m":"sta","oa":1,"o":"zpp_01"},{"a":36517,"t":"code","b":[32,204,141],"m":"jsr","oa":36300,"o":"reset_game"},{"a":36520,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":36522,"t":"code","b":[141,10,152],"m":"sta","oa":38922,"o":"a_980A"},{"a":36525,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":36527,"t":"code","b":[162,240],"m":"ldx","o":"#$F0"},{"a":36529,"t":"code","b":[134,2],"m":"stx","oa":2,"o":"zpp_02"},{"a":36531,"t":"code","b":[134,4],"m":"stx","oa":4,"o":"zpp_04"},{"a":36533,"t":"code","b":[162,126],"m":"ldx","o":"#$7E"},{"a":36535,"t":"code","b":[134,3],"m":"stx","oa":3,"o":"zpa_03"},{"a":36537,"t":"code","b":[232],"m":"inx"},{"a":36538,"t":"code","b":[134,5],"m":"stx","oa":5,"o":"zpp_05"},{"a":36540,"l":"b_8EBC","t":"code","b":[177,2],"m":"lda","oa":2,"x":[36551],"o":"(zpp_02),y"},{"a":36542,"t":"code","b":[153,0,158],"m":"sta","oa":40448,"o":"screen_copy_routine,y"},{"a":36545,"t":"code","b":[177,4],"m":"lda","oa":4,"o":"(zpp_04),y"},{"a":36547,"t":"code","b":[153,0,159],"m":"sta","oa":40704,"o":"screen_copy_routine_2,y"},{"a":36550,"t":"code","b":[200],"m":"iny"},{"a":36551,"t":"code","b":[208,243],"m":"bne","oa":36540,"o":"b_8EBC"},{"a":36553,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":36555,"t":"code","b":[133,214],"m":"sta","oa":214,"o":"zpa_D6"},{"a":36557,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":36559,"t":"code","b":[133,215],"m":"sta","oa":215,"o":"zpa_D7"},{"a":36561,"t":"code","b":[162,19],"m":"ldx","o":"#$13"},{"a":36563,"l":"b_8ED3","t":"code","b":[189,160,111],"m":"lda","oa":28576,"x":[36570],"o":"text_status_template,x"},{"a":36566,"t":"code","b":[157,78,152],"m":"sta","oa":38990,"o":"f_984E,x"},{"a":36569,"t":"code","b":[202],"m":"dex"},{"a":36570,"t":"code","b":[16,247],"m":"bpl","oa":36563,"o":"b_8ED3"},{"a":36572,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":36574,"t":"code","b":[162,5],"m":"ldx","o":"#$05"},{"a":36576,"l":"b_8EE0","t":"code","b":[157,72,152],"m":"sta","oa":38984,"x":[36580],"o":"f_9848,x"},{"a":36579,"t":"code","b":[202],"m":"dex"},{"a":36580,"t":"code","b":[16,250],"m":"bpl","oa":36576,"o":"b_8EE0"},{"a":36582,"l":"b_8EE6","t":"code","b":[165,93],"m":"lda","oa":93,"x":[36667],"o":"zpa_5D"},{"a":36584,"t":"code","b":[208,39],"m":"bne","oa":36625,"o":"b_8F11"},{"a":36586,"t":"code","b":[169,160],"m":"lda","o":"#$A0"},{"a":36588,"t":"code","b":[141,12,152],"m":"sta","oa":38924,"o":"a_980C"},{"a":36591,"t":"code","b":[32,56,142],"m":"jsr","oa":36408,"o":"start_interrupts"},{"a":36594,"t":"code","b":[32,172,137],"m":"jsr","oa":35244,"o":"build_title_screen"},{"a":36597,"t":"code","b":[32,44,137],"m":"jsr","oa":35116,"o":"title_setup"},{"a":36600,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":36602,"t":"code","b":[169,124],"m":"lda","o":"#$7C"},{"a":36604,"l":"b_8EFC","t":"code","b":[157,80,12],"m":"sta","oa":3152,"x":[36617],"o":"f_0C50,x"},{"a":36607,"t":"code","b":[157,0,13],"m":"sta","oa":3328,"o":"f_0D00,x"},{"a":36610,"t":"code","b":[157,0,14],"m":"sta","oa":3584,"o":"f_0E00,x"},{"a":36613,"t":"code","b":[157,248,14],"m":"sta","oa":3832,"o":"f_0EF8,x"},{"a":36616,"t":"code","b":[232],"m":"inx"},{"a":36617,"t":"code","b":[208,241],"m":"bne","oa":36604,"o":"b_8EFC"},{"a":36619,"t":"code","b":[32,221,138],"m":"jsr","oa":35549,"o":"new_game"},{"a":36622,"t":"code","b":[76,49,143],"m":"jmp","oa":36657,"o":"j_8F31"},{"a":36625,"l":"b_8F11","t":"code","b":[32,185,138],"m":"jsr","oa":35513,"x":[36584],"o":"set_up_cave"},{"a":36628,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":36630,"t":"code","b":[141,124,152],"m":"sta","oa":39036,"o":"a_987C"},{"a":36633,"t":"code","b":[165,162],"m":"lda","oa":162,"o":"zpa_A2"},{"a":36635,"t":"code","b":[240,10],"m":"beq","oa":36647,"o":"b_8F27"},{"a":36637,"t":"code","b":[32,170,140],"m":"jsr","oa":36010,"o":"demo_play"},{"a":36640,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":36642,"t":"code","b":[133,163],"m":"sta","oa":163,"o":"zpa_A3"},{"a":36644,"t":"code","b":[76,46,143],"m":"jmp","oa":36654,"o":"j_8F2E"},{"a":36647,"l":"b_8F27","t":"code","b":[32,146,140],"m":"jsr","oa":35986,"x":[36635],"o":"play_loop"},{"a":36650,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":36652,"t":"code","b":[133,66],"m":"sta","oa":66,"o":"zpf_42"},{"a":36654,"l":"j_8F2E","t":"code","b":[32,198,131],"m":"jsr","oa":33734,"x":[36644],"o":"end_of_cave"},{"a":36657,"l":"j_8F31","t":"code","b":[162,7],"m":"ldx","x":[36622],"o":"#$07"},{"a":36659,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":36661,"l":"b_8F35","t":"code","b":[157,0,32],"m":"sta","oa":8192,"x":[36665],"o":"a_2000,x"},{"a":36664,"t":"code","b":[202],"m":"dex"},{"a":36665,"t":"code","b":[16,250],"m":"bpl","oa":36661,"o":"b_8F35"},{"a":36667,"t":"code","b":[48,169],"m":"bmi","oa":36582,"o":"b_8EE6"},{"a":36669,"l":"leftover_bytes","c":"41 bytes that nothing refers to, after the program's last instruction (the BMI at $8F3B): part of an assembler's symbol table left in memory when the program was saved, in 12-byte entries, each a six-character ASCII name, $A8 $00, the label's value as a little-endian word and two flag bytes. $8F3D-$8F41 are the end of an entry whose value is $8A63 (b_8A63); then come 'KEY1  ' = $8A66 at $8F42 (j_8A66), ':SK3A ' = $8A74 at $8F4E (b_8A74) and ':SK4  ' = $8A84 at $8F5A (b_8A84), all places in raster_interrupt, the programmer's own names for them. The table runs on through asm_symbol_table_scrap at $8F66","t":"byte","b":[0,99,138,133,0,75,69,89]},{"a":36677,"t":"byte","b":[49,32,32,168,0,102,138,0]},{"a":36685,"t":"byte","b":[0,58,83,75,51,65,32,168]},{"a":36693,"t":"byte","b":[0,116,138,133,0,58,83,75]},{"a":36701,"t":"byte","b":[52,32,32,168,0,132,138,133]},{"a":36709,"t":"byte","b":[0]},{"a":36710,"l":"asm_symbol_table_scrap","c":"1,024 bytes that nothing refers to. To $8FFF they are entries of an assembler's symbol table left in memory when the program was saved, 12 bytes each: a six-character ASCII name (local labels begin with ':'), $A8 $00, the label's value as a little-endian word and two flag bytes. From here: ':EXIT ' = $8A90 (b_8A90, the end of the raster interrupt), 'KEY   ' = $8A9B (joystick_overrides_keys), ':SK1  ' = $8AB8, 'SETUP0' = $8AB9 (set_up_cave), 'GMINIT' = $8ADD (new_game), ':LOOP1' = $8AE5, ':LOOP3' = $8AF2, ':LOOP5' = $8AFD, 'NXTPLY' = $8B05 (lose_life), ':LOOP1' = $8B0D, ':SK1  ' = $8B16, ':LOOP2' = $8B18 and ':SK2  ' at $8FF6, whose value bytes read $1F $FF: the programmer's own names. From $9000, past the end of the copier's block, the bytes repeat four $00 and four $FF, the pattern RAM holds at power-on","t":"byte","b":[58,69,88,73,84,32,168,0]},{"a":36718,"t":"byte","b":[144,138,133,0,75,69,89,32]},{"a":36726,"t":"byte","b":[32,32,168,0,155,138,0,0]},{"a":36734,"t":"byte","b":[58,83,75,49,32,32,168,0]},{"a":36742,"t":"byte","b":[184,138,134,0,83,69,84,85]},{"a":36750,"t":"byte","b":[80,48,168,0,185,138,0,0]},{"a":36758,"t":"byte","b":[71,77,73,78,73,84,168,0]},{"a":36766,"t":"byte","b":[221,138,0,0,58,76,79,79]},{"a":36774,"t":"byte","b":[80,49,168,0,229,138,136,0]},{"a":36782,"t":"byte","b":[58,76,79,79,80,51,168,0]},{"a":36790,"t":"byte","b":[242,138,136,0,58,76,79,79]},{"a":36798,"t":"byte","b":[80,53,168,0,253,138,136,0]},{"a":36806,"t":"byte","b":[78,88,84,80,76,89,168,0]},{"a":36814,"t":"byte","b":[5,139,0,0,58,76,79,79]},{"a":36822,"t":"byte","b":[80,49,168,0,13,139,137,0]},{"a":36830,"t":"byte","b":[58,83,75,49,32,32,168,0]},{"a":36838,"t":"byte","b":[22,139,137,0,58,76,79,79]},{"a":36846,"t":"byte","b":[80,50,168,0,24,139,137,0]},{"a":36854,"t":"byte","b":[58,83,75,50,32,32,168,0]},{"a":36862,"t":"byte","b":[31,255,0,0,255,255,255,255]},{"a":36870,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36878,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36886,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36894,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36902,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36910,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36918,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36926,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36934,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36942,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36950,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36958,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36966,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36974,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36982,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36990,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":36998,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37006,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37014,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37022,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37030,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37038,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37046,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37054,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37062,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37070,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37078,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37086,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37094,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37102,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37110,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37118,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37126,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37134,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37142,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37150,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37158,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37166,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37174,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37182,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37190,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37198,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37206,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37214,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37222,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37230,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37238,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37246,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37254,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37262,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37270,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37278,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37286,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37294,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37302,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37310,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37318,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37326,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37334,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37342,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37350,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37358,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37366,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37374,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37382,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37390,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37398,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37406,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37414,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37422,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37430,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37438,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37446,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37454,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37462,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37470,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37478,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37486,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37494,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37502,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37510,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37518,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37526,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37534,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37542,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37550,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37558,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37566,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37574,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37582,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37590,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37598,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37606,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37614,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37622,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37630,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37638,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37646,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37654,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37662,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37670,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37678,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37686,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37694,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37702,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37710,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37718,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37726,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":37734,"t":"gap","n":27802},{"a":40448,"t":"note","l":"screen_copy_routine","c":"the copy of the code at $7EF0, patched at run time: works out the scroll buffer and screen addresses for the current screen base and copies rows of the buffer into the screen","note":"outside the tracked image","x":[32493,36542]},{"a":40704,"t":"note","l":"screen_copy_routine_2","c":"the copy of the code at $7FF0: the rest of the screen copy, ending with animation_step and the sparkle step","note":"outside the tracked image","x":[36547]}]}