{"schema":1,"platform":"c16","game":"cuthbert-in-the-cooler","title":"Cuthbert in the Cooler","build":"Contributor-supplied packed PRG, SYS4109; engine entry $1100; original release identity unknown","symbols_sha256":"1d73d79191be7f4819426f673aae18eb8a1ffd470bf5351d323b800bca6b3af4","snapshot":{"file":"work/entry.p4emu","sha256":"59ee6f83cee05f546bd3b7cc1c1cfc609493c926bd9975936e9c008fec03b9e4"},"index":[{"a":4352,"n":"start_game","k":"routine","len":48,"c":true},{"a":4400,"n":"new_game","k":"routine","len":40,"c":true},{"a":4440,"n":"start_level","k":"routine","len":26,"c":true},{"a":4466,"n":"game_loop","k":"routine","len":27,"c":true},{"a":4493,"n":"game_over","k":"routine","len":90,"c":true},{"a":4506,"n":"b_119A","k":"branch","len":1,"c":false},{"a":4521,"n":"b_11A9","k":"branch","len":1,"c":false},{"a":4523,"n":"b_11AB","k":"branch","len":1,"c":false},{"a":4532,"n":"b_11B4","k":"branch","len":1,"c":false},{"a":4536,"n":"b_11B8","k":"branch","len":1,"c":false},{"a":4542,"n":"b_11BE","k":"branch","len":1,"c":false},{"a":4564,"n":"b_11D4","k":"branch","len":1,"c":false},{"a":4583,"n":"pace_loop","k":"routine","len":23,"c":true},{"a":4585,"n":"b_11E9","k":"branch","len":1,"c":false},{"a":4606,"n":"unused_return","k":"routine","len":1,"c":true},{"a":4607,"n":"fade_in","k":"routine","len":5,"c":true},{"a":4612,"n":"fade_out","k":"routine","len":8,"c":true},{"a":4620,"n":"fade_colours","k":"routine","len":63,"c":true},{"a":4626,"n":"b_1212","k":"branch","len":1,"c":false},{"a":4628,"n":"b_1214","k":"branch","len":1,"c":false},{"a":4668,"n":"b_123C","k":"branch","len":1,"c":false},{"a":4683,"n":"clear_screen","k":"routine","len":20,"c":true},{"a":4687,"n":"b_124F","k":"branch","len":1,"c":false},{"a":4703,"n":"print_inline","k":"routine","len":31,"c":true},{"a":4711,"n":"j_1267","k":"branch","len":1,"c":false},{"a":4717,"n":"b_126D","k":"branch","len":1,"c":false},{"a":4727,"n":"b_1277","k":"branch","len":1,"c":false},{"a":4734,"n":"print_char","k":"routine","len":79,"c":true},{"a":4751,"n":"b_128F","k":"branch","len":1,"c":false},{"a":4754,"n":"b_1292","k":"branch","len":1,"c":false},{"a":4763,"n":"b_129B","k":"branch","len":1,"c":false},{"a":4773,"n":"j_12A5","k":"branch","len":1,"c":false},{"a":4808,"n":"b_12C8","k":"branch","len":1,"c":false},{"a":4810,"n":"b_12CA","k":"branch","len":1,"c":false},{"a":4813,"n":"draw_scores","k":"routine","len":16,"c":true},{"a":4829,"n":"high_score","k":"table","len":7,"c":true},{"a":4836,"n":"draw_score","k":"routine","len":14,"c":true},{"a":4850,"n":"score_digits","k":"table","len":7,"c":true},{"a":4857,"n":"draw_score_return","k":"routine","len":1,"c":true},{"a":4858,"n":"add_hundreds","k":"routine","len":5,"c":true},{"a":4863,"n":"add_tens","k":"routine","len":2,"c":true},{"a":4865,"n":"add_score_digits","k":"routine","len":34,"c":true},{"a":4872,"n":"j_1308","k":"branch","len":1,"c":false},{"a":4893,"n":"b_131D","k":"branch","len":1,"c":false},{"a":4899,"n":"delay_long","k":"routine","len":9,"c":true},{"a":4908,"n":"delay_busy","k":"routine","len":13,"c":true},{"a":4912,"n":"b_1330","k":"branch","len":1,"c":false},{"a":4921,"n":"poll_inputs","k":"routine","len":42,"c":true},{"a":4933,"n":"b_1345","k":"branch","len":1,"c":false},{"a":4942,"n":"b_134E","k":"branch","len":1,"c":false},{"a":4944,"n":"b_1350","k":"branch","len":1,"c":false},{"a":4963,"n":"scan_key","k":"routine","len":10,"c":true},{"a":4973,"n":"keyboard_rows","k":"table","len":5,"c":true},{"a":4978,"n":"keyboard_masks","k":"table","len":5,"c":true},{"a":4983,"n":"joystick_fire_mask","k":"variable","len":1,"c":true},{"a":4984,"n":"poll_joystick","k":"routine","len":48,"c":true},{"a":5011,"n":"b_1393","k":"branch","len":1,"c":false},{"a":5016,"n":"b_1398","k":"branch","len":1,"c":false},{"a":5021,"n":"b_139D","k":"branch","len":1,"c":false},{"a":5026,"n":"b_13A2","k":"branch","len":1,"c":false},{"a":5031,"n":"r_13A7","k":"branch","len":1,"c":false},{"a":5032,"n":"blank_line","k":"routine","len":10,"c":true},{"a":5042,"n":"advance_print_row","k":"routine","len":12,"c":true},{"a":5053,"n":"r_13BD","k":"branch","len":1,"c":false},{"a":5054,"n":"set_print_pointer","k":"routine","len":9,"c":true},{"a":5063,"n":"silence_sound","k":"routine","len":21,"c":true},{"a":5084,"n":"enable_walk_tone","k":"routine","len":9,"c":true},{"a":5093,"n":"disable_walk_tone","k":"routine","len":9,"c":true},{"a":5102,"n":"enable_noise","k":"routine","len":9,"c":true},{"a":5111,"n":"disable_noise","k":"routine","len":9,"c":true},{"a":5120,"n":"set_voice1_pitch","k":"routine","len":14,"c":true},{"a":5134,"n":"set_voice2_pitch","k":"routine","len":14,"c":true},{"a":5148,"n":"build_level","k":"routine","len":32,"c":true},{"a":5180,"n":"reset_player","k":"routine","len":30,"c":true},{"a":5210,"n":"move_player","k":"routine","len":197,"c":true},{"a":5234,"n":"b_1472","k":"branch","len":1,"c":false},{"a":5237,"n":"b_1475","k":"branch","len":1,"c":false},{"a":5253,"n":"b_1485","k":"branch","len":1,"c":false},{"a":5273,"n":"b_1499","k":"branch","len":1,"c":false},{"a":5292,"n":"b_14AC","k":"branch","len":1,"c":false},{"a":5304,"n":"b_14B8","k":"branch","len":1,"c":false},{"a":5307,"n":"b_14BB","k":"branch","len":1,"c":false},{"a":5322,"n":"b_14CA","k":"branch","len":1,"c":false},{"a":5325,"n":"b_14CD","k":"branch","len":1,"c":false},{"a":5341,"n":"b_14DD","k":"branch","len":1,"c":false},{"a":5361,"n":"b_14F1","k":"branch","len":1,"c":false},{"a":5369,"n":"b_14F9","k":"branch","len":1,"c":false},{"a":5375,"n":"b_14FF","k":"branch","len":1,"c":false},{"a":5389,"n":"b_150D","k":"branch","len":1,"c":false},{"a":5392,"n":"b_1510","k":"branch","len":1,"c":false},{"a":5395,"n":"b_1513","k":"branch","len":1,"c":false},{"a":5407,"n":"complete_level","k":"routine","len":65,"c":true},{"a":5425,"n":"b_1531","k":"branch","len":1,"c":false},{"a":5431,"n":"b_1537","k":"branch","len":1,"c":false},{"a":5469,"n":"b_155D","k":"branch","len":1,"c":false},{"a":5472,"n":"move_up","k":"routine","len":16,"c":true},{"a":5488,"n":"step_up","k":"routine","len":62,"c":true},{"a":5519,"n":"b_158F","k":"branch","len":1,"c":false},{"a":5533,"n":"b_159D","k":"branch","len":1,"c":false},{"a":5547,"n":"b_15AB","k":"branch","len":1,"c":false},{"a":5550,"n":"move_down","k":"routine","len":20,"c":true},{"a":5570,"n":"step_down","k":"routine","len":63,"c":true},{"a":5605,"n":"b_15E5","k":"branch","len":1,"c":false},{"a":5613,"n":"b_15ED","k":"branch","len":1,"c":false},{"a":5619,"n":"b_15F3","k":"branch","len":1,"c":false},{"a":5633,"n":"redraw_player","k":"routine","len":4,"c":true},{"a":5637,"n":"erase_player","k":"routine","len":10,"c":true},{"a":5647,"n":"erase_player_cells","k":"table","len":6,"c":true},{"a":5653,"n":"erase_player_if_tall","k":"routine","len":7,"c":true},{"a":5660,"n":"erase_player_extra_row","k":"table","len":4,"c":true},{"a":5664,"n":"erase_player_return","k":"routine","len":1,"c":true},{"a":5665,"n":"draw_player","k":"routine","len":14,"c":true},{"a":5679,"n":"player_cells","k":"table","len":6,"c":true},{"a":5685,"n":"draw_player_if_tall","k":"routine","len":7,"c":true},{"a":5692,"n":"player_extra_row","k":"table","len":4,"c":true},{"a":5696,"n":"copy_player_frame","k":"routine","len":68,"c":true},{"a":5735,"n":"b_1667","k":"branch","len":1,"c":false},{"a":5736,"n":"b_1668","k":"branch","len":1,"c":false},{"a":5753,"n":"b_1679","k":"branch","len":1,"c":false},{"a":5755,"n":"b_167B","k":"branch","len":1,"c":false},{"a":5764,"n":"set_print_pointer_ay","k":"routine","len":5,"c":true},{"a":5769,"n":"draw_wall","k":"routine","len":6,"c":true},{"a":5775,"n":"wall_cells","k":"table","len":6,"c":true},{"a":5781,"n":"advance_map_cell","k":"routine","len":13,"c":true},{"a":5791,"n":"b_169F","k":"branch","len":1,"c":false},{"a":5794,"n":"draw_map_bit","k":"routine","len":13,"c":true},{"a":5804,"n":"b_16AC","k":"branch","len":1,"c":false},{"a":5807,"n":"floor_cells","k":"table","len":6,"c":true},{"a":5813,"n":"map_floor_advance","k":"routine","len":5,"c":true},{"a":5816,"n":"j_16B8","k":"branch","len":1,"c":false},{"a":5818,"n":"draw_six_map_cells","k":"routine","len":48,"c":true},{"a":5840,"n":"b_16D0","k":"branch","len":1,"c":false},{"a":5863,"n":"b_16E7","k":"branch","len":1,"c":false},{"a":5866,"n":"draw_maze","k":"routine","len":25,"c":true},{"a":5881,"n":"b_16F9","k":"branch","len":1,"c":false},{"a":5891,"n":"draw_maze_row","k":"routine","len":37,"c":true},{"a":5922,"n":"b_1722","k":"branch","len":1,"c":false},{"a":5928,"n":"draw_border","k":"routine","len":109,"c":true},{"a":5937,"n":"b_1731","k":"branch","len":1,"c":false},{"a":5956,"n":"b_1744","k":"branch","len":1,"c":false},{"a":5975,"n":"b_1757","k":"branch","len":1,"c":false},{"a":5991,"n":"b_1767","k":"branch","len":1,"c":false},{"a":6005,"n":"b_1775","k":"branch","len":1,"c":false},{"a":6021,"n":"b_1785","k":"branch","len":1,"c":false},{"a":6037,"n":"sample_player_neighbours","k":"routine","len":53,"c":true},{"a":6052,"n":"b_17A4","k":"branch","len":1,"c":false},{"a":6090,"n":"sample_neighbour","k":"routine","len":12,"c":true},{"a":6098,"n":"b_17D2","k":"branch","len":1,"c":false},{"a":6102,"n":"draw_maze_packet","k":"routine","len":89,"c":true},{"a":6111,"n":"b_17DF","k":"branch","len":1,"c":false},{"a":6165,"n":"b_1815","k":"branch","len":1,"c":false},{"a":6179,"n":"b_1823","k":"branch","len":1,"c":false},{"a":6188,"n":"b_182C","k":"branch","len":1,"c":false},{"a":6191,"n":"pickup_cells","k":"table","len":6,"c":true},{"a":6197,"n":"restore_packet_cursor","k":"routine","len":9,"c":true},{"a":6206,"n":"pickup_glyphs","k":"table","len":8,"c":true},{"a":6214,"n":"pickup_offsets","k":"table","len":14,"c":true},{"a":6228,"n":"pickup_colours","k":"table","len":4,"c":true},{"a":6232,"n":"select_maze","k":"routine","len":39,"c":true},{"a":6253,"n":"b_186D","k":"branch","len":1,"c":false},{"a":6270,"n":"r_187E","k":"branch","len":1,"c":false},{"a":6271,"n":"collect_object","k":"routine","len":85,"c":true},{"a":6280,"n":"b_1888","k":"branch","len":1,"c":false},{"a":6290,"n":"b_1892","k":"branch","len":1,"c":false},{"a":6293,"n":"r_1895","k":"branch","len":1,"c":false},{"a":6294,"n":"b_1896","k":"branch","len":1,"c":false},{"a":6321,"n":"b_18B1","k":"branch","len":1,"c":false},{"a":6328,"n":"b_18B8","k":"branch","len":1,"c":false},{"a":6342,"n":"b_18C6","k":"branch","len":1,"c":false},{"a":6356,"n":"neighbour_offsets","k":"table","len":8,"c":true},{"a":6364,"n":"pickup_quadrant_offsets","k":"table","len":4,"c":true},{"a":6368,"n":"pickup_values","k":"table","len":5,"c":true},{"a":6373,"n":"erase_tile","k":"routine","len":3,"c":true},{"a":6376,"n":"erase_tile_cells","k":"table","len":6,"c":true},{"a":6382,"n":"erase_tile_return","k":"routine","len":1,"c":true},{"a":6383,"n":"draw_level_number","k":"routine","len":75,"c":true},{"a":6393,"n":"b_18F9","k":"branch","len":1,"c":false},{"a":6404,"n":"b_1904","k":"branch","len":1,"c":false},{"a":6415,"n":"b_190F","k":"branch","len":1,"c":false},{"a":6455,"n":"b_1937","k":"branch","len":1,"c":false},{"a":6458,"n":"level_digits","k":"table","len":4,"c":true},{"a":6462,"n":"draw_level_return","k":"routine","len":1,"c":true},{"a":6463,"n":"select_wall_colour","k":"routine","len":15,"c":true},{"a":6478,"n":"wall_colours","k":"table","len":4,"c":true},{"a":6482,"n":"check_extra_life","k":"routine","len":25,"c":true},{"a":6503,"n":"b_1967","k":"branch","len":1,"c":false},{"a":6506,"n":"r_196A","k":"branch","len":1,"c":false},{"a":6507,"n":"reset_bonus","k":"routine","len":8,"c":true},{"a":6515,"n":"tick_bonus","k":"routine","len":12,"c":true},{"a":6527,"n":"draw_bonus","k":"routine","len":14,"c":true},{"a":6541,"n":"bonus_label","k":"table","len":8,"c":true},{"a":6549,"n":"draw_bonus_segments","k":"routine","len":11,"c":true},{"a":6553,"n":"j_1999","k":"branch","len":1,"c":false},{"a":6560,"n":"bonus_end","k":"variable","len":2,"c":true},{"a":6562,"n":"bonus_return","k":"routine","len":4,"c":true},{"a":6563,"n":"b_19A3","k":"branch","len":1,"c":false},{"a":6566,"n":"bonus_segment","k":"variable","len":2,"c":true},{"a":6568,"n":"bonus_repeat","k":"routine","len":3,"c":true},{"a":6571,"n":"player_death","k":"routine","len":99,"c":true},{"a":6584,"n":"b_19B8","k":"branch","len":1,"c":false},{"a":6598,"n":"b_19C6","k":"branch","len":1,"c":false},{"a":6603,"n":"b_19CB","k":"branch","len":1,"c":false},{"a":6625,"n":"b_19E1","k":"branch","len":1,"c":false},{"a":6636,"n":"b_19EC","k":"branch","len":1,"c":false},{"a":6661,"n":"b_1A05","k":"branch","len":1,"c":false},{"a":6670,"n":"draw_lives","k":"routine","len":14,"c":true},{"a":6684,"n":"lives_icon","k":"table","len":3,"c":true},{"a":6687,"n":"draw_life_character","k":"routine","len":7,"c":true},{"a":6694,"n":"lives_character","k":"variable","len":2,"c":true},{"a":6696,"n":"draw_lives_return","k":"routine","len":1,"c":true},{"a":6697,"n":"check_player_contact","k":"routine","len":7,"c":true},{"a":6704,"n":"check_contact_pair","k":"routine","len":4,"c":true},{"a":6708,"n":"check_contact_cell","k":"routine","len":15,"c":true},{"a":6718,"n":"r_1A3E","k":"branch","len":1,"c":false},{"a":6719,"n":"b_1A3F","k":"branch","len":1,"c":false},{"a":6722,"n":"r_1A42","k":"branch","len":1,"c":false},{"a":6723,"n":"try_lay_bomb","k":"routine","len":39,"c":true},{"a":6762,"n":"update_bomb","k":"routine","len":32,"c":true},{"a":6794,"n":"bomb_erase_cells","k":"table","len":6,"c":true},{"a":6800,"n":"finish_explosion","k":"routine","len":10,"c":true},{"a":6806,"n":"r_1A96","k":"branch","len":1,"c":false},{"a":6807,"n":"b_1A97","k":"branch","len":1,"c":false},{"a":6810,"n":"explosion_cells","k":"table","len":6,"c":true},{"a":6816,"n":"advance_explosion","k":"routine","len":47,"c":true},{"a":6851,"n":"b_1AC3","k":"branch","len":1,"c":false},{"a":6863,"n":"bomb_phase_divider","k":"variable","len":1,"c":true},{"a":6864,"n":"draw_idle_bomb","k":"routine","len":8,"c":true},{"a":6872,"n":"bomb_blink_a","k":"table","len":6,"c":true},{"a":6878,"n":"idle_bomb_after_a","k":"routine","len":6,"c":true},{"a":6881,"n":"b_1AE1","k":"branch","len":1,"c":false},{"a":6884,"n":"bomb_blink_b","k":"table","len":6,"c":true},{"a":6890,"n":"test_bomb_detonation","k":"routine","len":28,"c":true},{"a":6896,"n":"r_1AF0","k":"branch","len":1,"c":false},{"a":6897,"n":"b_1AF1","k":"branch","len":1,"c":false},{"a":6918,"n":"erase_bomb","k":"routine","len":12,"c":true},{"a":6930,"n":"erase_bomb_cells","k":"table","len":6,"c":true},{"a":6936,"n":"clear_bomb","k":"routine","len":5,"c":true},{"a":6941,"n":"erase_enemies","k":"routine","len":12,"c":true},{"a":6943,"n":"b_1B1F","k":"branch","len":1,"c":false},{"a":6950,"n":"b_1B26","k":"branch","len":1,"c":false},{"a":6953,"n":"initialise_enemies","k":"routine","len":99,"c":true},{"a":6957,"n":"b_1B2D","k":"branch","len":1,"c":false},{"a":6973,"n":"b_1B3D","k":"branch","len":1,"c":false},{"a":7012,"n":"b_1B64","k":"branch","len":1,"c":false},{"a":7036,"n":"b_1B7C","k":"branch","len":1,"c":false},{"a":7046,"n":"b_1B86","k":"branch","len":1,"c":false},{"a":7052,"n":"enemy_count_limits","k":"table","len":11,"c":true},{"a":7063,"n":"enemy_shapes","k":"table","len":8,"c":true},{"a":7071,"n":"enemy_colours","k":"table","len":8,"c":true},{"a":7079,"n":"enemy_spawn_tables","k":"table","len":20,"c":true},{"a":7099,"n":"spawns_1","k":"table","len":14,"c":true},{"a":7113,"n":"spawns_2","k":"table","len":14,"c":true},{"a":7127,"n":"spawns_3","k":"table","len":14,"c":true},{"a":7141,"n":"spawns_7","k":"table","len":14,"c":true},{"a":7155,"n":"spawns_4","k":"table","len":14,"c":true},{"a":7169,"n":"spawns_5","k":"table","len":14,"c":true},{"a":7183,"n":"spawns_6","k":"table","len":14,"c":true},{"a":7197,"n":"spawns_9","k":"table","len":14,"c":true},{"a":7211,"n":"spawns_0","k":"table","len":14,"c":true},{"a":7225,"n":"spawns_8","k":"table","len":14,"c":true},{"a":7239,"n":"update_enemies","k":"routine","len":16,"c":true},{"a":7241,"n":"b_1C49","k":"branch","len":1,"c":false},{"a":7251,"n":"b_1C53","k":"branch","len":1,"c":false},{"a":7255,"n":"retained_enemy_byte","k":"variable","len":1,"c":true},{"a":7256,"n":"set_enemy_print","k":"routine","len":17,"c":true},{"a":7273,"n":"erase_enemy","k":"routine","len":8,"c":true},{"a":7281,"n":"erase_enemy_cells","k":"table","len":6,"c":true},{"a":7287,"n":"erase_enemy_extension","k":"routine","len":21,"c":true},{"a":7308,"n":"erase_enemy_wide","k":"table","len":8,"c":true},{"a":7316,"n":"erase_enemy_wide_return","k":"routine","len":6,"c":true},{"a":7319,"n":"b_1C97","k":"branch","len":1,"c":false},{"a":7322,"n":"erase_enemy_tall","k":"table","len":9,"c":true},{"a":7331,"n":"erase_enemy_tall_return","k":"routine","len":3,"c":true},{"a":7333,"n":"r_1CA5","k":"branch","len":1,"c":false},{"a":7334,"n":"draw_enemy","k":"routine","len":206,"c":true},{"a":7415,"n":"b_1CF7","k":"branch","len":1,"c":false},{"a":7432,"n":"b_1D08","k":"branch","len":1,"c":false},{"a":7434,"n":"b_1D0A","k":"branch","len":1,"c":false},{"a":7446,"n":"b_1D16","k":"branch","len":1,"c":false},{"a":7485,"n":"b_1D3D","k":"branch","len":1,"c":false},{"a":7497,"n":"b_1D49","k":"branch","len":1,"c":false},{"a":7499,"n":"b_1D4B","k":"branch","len":1,"c":false},{"a":7501,"n":"b_1D4D","k":"branch","len":1,"c":false},{"a":7525,"n":"b_1D65","k":"branch","len":1,"c":false},{"a":7527,"n":"b_1D67","k":"branch","len":1,"c":false},{"a":7540,"n":"enemy_cells","k":"table","len":6,"c":true},{"a":7546,"n":"draw_enemy_extension","k":"routine","len":17,"c":true},{"a":7563,"n":"enemy_wide_cells","k":"table","len":8,"c":true},{"a":7571,"n":"draw_enemy_wide_return","k":"routine","len":6,"c":true},{"a":7573,"n":"r_1D95","k":"branch","len":1,"c":false},{"a":7574,"n":"b_1D96","k":"branch","len":1,"c":false},{"a":7577,"n":"enemy_tall_cells","k":"table","len":9,"c":true},{"a":7586,"n":"draw_enemy_tall_return","k":"routine","len":3,"c":true},{"a":7589,"n":"shift_enemy_lower_halves","k":"routine","len":19,"c":true},{"a":7591,"n":"b_1DA7","k":"branch","len":1,"c":false},{"a":7608,"n":"shift_enemy_upper_halves","k":"routine","len":19,"c":true},{"a":7610,"n":"b_1DBA","k":"branch","len":1,"c":false},{"a":7627,"n":"enemy_anim_phase","k":"variable","len":1,"c":true},{"a":7628,"n":"update_enemy","k":"routine","len":152,"c":true},{"a":7652,"n":"b_1DE4","k":"branch","len":1,"c":false},{"a":7664,"n":"b_1DF0","k":"branch","len":1,"c":false},{"a":7668,"n":"b_1DF4","k":"branch","len":1,"c":false},{"a":7678,"n":"b_1DFE","k":"branch","len":1,"c":false},{"a":7690,"n":"b_1E0A","k":"branch","len":1,"c":false},{"a":7707,"n":"b_1E1B","k":"branch","len":1,"c":false},{"a":7728,"n":"b_1E30","k":"branch","len":1,"c":false},{"a":7750,"n":"b_1E46","k":"branch","len":1,"c":false},{"a":7772,"n":"b_1E5C","k":"branch","len":1,"c":false},{"a":7776,"n":"b_1E60","k":"branch","len":1,"c":false},{"a":7780,"n":"choose_enemy_direction","k":"routine","len":131,"c":true},{"a":7792,"n":"b_1E70","k":"branch","len":1,"c":false},{"a":7804,"n":"j_1E7C","k":"branch","len":1,"c":false},{"a":7823,"n":"b_1E8F","k":"branch","len":1,"c":false},{"a":7840,"n":"b_1EA0","k":"branch","len":1,"c":false},{"a":7845,"n":"b_1EA5","k":"branch","len":1,"c":false},{"a":7850,"n":"b_1EAA","k":"branch","len":1,"c":false},{"a":7852,"n":"j_1EAC","k":"branch","len":1,"c":false},{"a":7879,"n":"r_1EC7","k":"branch","len":1,"c":false},{"a":7880,"n":"b_1EC8","k":"branch","len":1,"c":false},{"a":7892,"n":"b_1ED4","k":"branch","len":1,"c":false},{"a":7895,"n":"j_1ED7","k":"branch","len":1,"c":false},{"a":7911,"n":"test_enemy_cell","k":"routine","len":13,"c":true},{"a":7923,"n":"r_1EF3","k":"branch","len":1,"c":false},{"a":7924,"n":"select_enemy_glyphs","k":"routine","len":23,"c":true},{"a":7946,"n":"r_1F0A","k":"branch","len":1,"c":false},{"a":7947,"n":"check_enemy_explosion","k":"routine","len":31,"c":true},{"a":7978,"n":"check_enemy_fire_cell","k":"routine","len":31,"c":true},{"a":8008,"n":"r_1F48","k":"branch","len":1,"c":false},{"a":8009,"n":"draw_bomb_inventory","k":"routine","len":10,"c":true},{"a":8019,"n":"bomb_inventory_blank","k":"table","len":22,"c":true},{"a":8041,"n":"draw_bomb_icons","k":"routine","len":29,"c":true},{"a":8060,"n":"b_1F7C","k":"branch","len":1,"c":false},{"a":8062,"n":"j_1F7E","k":"branch","len":1,"c":false},{"a":8067,"n":"b_1F83","k":"branch","len":1,"c":false},{"a":8070,"n":"bomb_inventory_icon","k":"table","len":6,"c":true},{"a":8076,"n":"advance_bomb_icon","k":"routine","len":14,"c":true},{"a":8090,"n":"update_sound","k":"routine","len":112,"c":true},{"a":8108,"n":"b_1FAC","k":"branch","len":1,"c":false},{"a":8122,"n":"b_1FBA","k":"branch","len":1,"c":false},{"a":8142,"n":"b_1FCE","k":"branch","len":1,"c":false},{"a":8145,"n":"j_1FD1","k":"branch","len":1,"c":false},{"a":8159,"n":"b_1FDF","k":"branch","len":1,"c":false},{"a":8174,"n":"b_1FEE","k":"branch","len":1,"c":false},{"a":8190,"n":"b_1FFE","k":"branch","len":1,"c":false},{"a":8201,"n":"r_2009","k":"branch","len":1,"c":false},{"a":8202,"n":"bomb_sound_active","k":"variable","len":1,"c":true},{"a":8203,"n":"walk_sound_alternator","k":"variable","len":1,"c":true},{"a":8204,"n":"explosion_sound_left","k":"variable","len":1,"c":true},{"a":8205,"n":"sound_previous_x","k":"variable","len":1,"c":true},{"a":8206,"n":"sound_previous_y","k":"variable","len":1,"c":true},{"a":8207,"n":"maze_base","k":"variable","len":2,"c":true},{"a":8209,"n":"maze_1","k":"table","len":24,"c":true},{"a":8233,"n":"maze_2","k":"table","len":24,"c":true},{"a":8257,"n":"maze_3","k":"table","len":24,"c":true},{"a":8281,"n":"maze_4","k":"table","len":24,"c":true},{"a":8305,"n":"maze_5","k":"table","len":24,"c":true},{"a":8329,"n":"maze_6","k":"table","len":24,"c":true},{"a":8353,"n":"maze_7","k":"table","len":24,"c":true},{"a":8377,"n":"maze_8","k":"table","len":24,"c":true},{"a":8401,"n":"maze_9","k":"table","len":24,"c":true},{"a":8425,"n":"maze_0","k":"table","len":24,"c":true},{"a":13056,"n":"horizontal_player_ptr","k":"variable","len":2,"c":true},{"a":13058,"n":"vertical_player_ptr","k":"variable","len":2,"c":true},{"a":13060,"n":"explosion_frames_ptr","k":"variable","len":2,"c":true},{"a":13062,"n":"enemy_bank_a_ptr","k":"variable","len":2,"c":true},{"a":13064,"n":"enemy_bank_b_ptr","k":"variable","len":2,"c":true},{"a":13066,"n":"player_horizontal_frames","k":"table","len":256,"c":true},{"a":13322,"n":"player_vertical_frames","k":"table","len":384,"c":true},{"a":13706,"n":"explosion_frames","k":"table","len":128,"c":true},{"a":13834,"n":"enemy_frame_bank_a","k":"table","len":160,"c":true},{"a":13994,"n":"enemy_frame_bank_b","k":"table","len":160,"c":true},{"a":14154,"n":"retained_graphics_tail","k":"table","len":24,"c":true},{"a":14336,"n":"static_charset","k":"table","len":840,"c":true}],"records":[{"a":0,"t":"gap","n":4352},{"a":3,"t":"note","l":"scratch_ptr","c":"Shared low/high pointer used for glyph sources, collision reads and sound-frequency high bits; the caller determines its meaning.","note":"outside the tracked image","x":[5128,5142,5699,5719,5739,5744,5755,6046,6090,6586,6603,6612,6625,6630,6831,6851,7001,7012,7017,7407,7418,7423,7434,7817,7873,7886,7911,7953,7978,8097,8124,8161]},{"a":5,"t":"note","l":"scratch_ptr2","c":"Shared low/high pointer used while rotating death glyphs and building enemy glyph destinations.","note":"outside the tracked image","x":[6551,6553,6588,6596,6600,6605,6614,6619,7530,7940]},{"a":7,"t":"note","l":"row_groups_left","c":"Scratch count of map packets left in the current row; saved across the map-packet renderer.","note":"outside the tracked image","x":[5893,5904]},{"a":8,"t":"note","l":"loop_scratch","c":"Saved map index and border-drawing counter; the attract loop also uses this byte as its timeout.","note":"outside the tracked image","x":[4562,4564,5891,5902,5907,5925,5937,5942,5956,5961,5975,5991,6005,6021]},{"a":9,"t":"note","l":"inline_return","c":"Low/high address removed from the stack by print_inline; advances through the argument up to its zero terminator.","note":"outside the tracked image","x":[4704,4711,4717,4730]},{"a":11,"t":"note","l":"colour_ptr","c":"Low/high pointer formed by subtracting $0400 from the screen-character pointer, to write the matching TED attribute.","note":"outside the tracked image","x":[4779,4790]},{"a":13,"t":"note","l":"print_ptr","c":"Low/high base of the current character row; print_char writes through it with print_column as Y.","note":"outside the tracked image","x":[4742,4751,4775,4777,4799,4808,5042,5047,5056,5783,5828,5835,5853,5912,5980,5985,6010,6015,6122,6173,6182,7258,8076]},{"a":15,"t":"note","l":"print_column","c":"Character column within the row pointed to by print_ptr; wraps at forty columns.","note":"outside the tracked image","x":[4740,4773,4810,5040,5060,7266]},{"a":16,"t":"note","l":"print_colour","c":"TED attribute copied to each character written by print_char.","note":"outside the tracked image","x":[4788,4824,4845,5674,6159,6422,6473,6529,6679,6689,6773,6783,7270,8050]},{"a":17,"t":"note","l":"input_up","c":"Zero means up is pressed; nonzero means released. poll_inputs combines joystick 1 and RUN/STOP here.","note":"outside the tracked image","x":[4953,4956,4988,5014,5227,5395]},{"a":18,"t":"note","l":"input_down","c":"Zero means down is pressed; poll_inputs combines joystick 1 and the COMMODORE key here.","note":"outside the tracked image","x":[4990,5019,5315,5550]},{"a":19,"t":"note","l":"input_right","c":"Zero means right is pressed; keyboard colon and joystick 1 feed this flag.","note":"outside the tracked image","x":[4994,5029,5219]},{"a":20,"t":"note","l":"input_left","c":"Zero means left is pressed; keyboard L and joystick 1 feed this flag.","note":"outside the tracked image","x":[4992,5024,5307]},{"a":21,"t":"note","l":"input_fire","c":"Zero means fire or SPACE is pressed. The loop processes the previous scan's value for the bomb before scanning movement inputs.","note":"outside the tracked image","x":[4576,4986,5009,5177,6727,6897]},{"a":22,"t":"note","l":"saved_actor","c":"Scratch copy of X, preserving the enemy slot or delay-loop index across drawing and scoring calls.","note":"outside the tracked image","x":[4585,4587,7276,7287,7316,7331,7337,7535,7546,7571,7586,7628,7662,7995,8002]},{"a":24,"t":"note","l":"delay_inner","c":"Eight-bit inner delay counter. delay_busy lets it wrap through zero, so the first interval depends on the value already here.","note":"outside the tracked image","x":[4912]},{"a":25,"t":"note","l":"delay_outer","c":"Outer busy-wait count, written from A by delay_busy before its increment/decrement loop.","note":"outside the tracked image","x":[4673,4908,4910,4916]},{"a":26,"t":"note","l":"player_x","c":"Horizontal position in half-character steps, initialised to 36 at the exit; used for walking sound as well as movement.","note":"outside the tracked image","x":[5194,5253,5341,5494,5498,5574,5578,8145,8180]},{"a":27,"t":"note","l":"player_y","c":"Vertical position in half-character steps relative to the starting exit, initialised to zero.","note":"outside the tracked image","x":[5186,5399,5488,5580,8152,8190]},{"a":28,"t":"note","l":"player_screen","c":"Low/high address of the player's top-left screen character. Starts at $0CDA and changes by one character or one forty-character row.","note":"outside the tracked image","x":[5202,5267,5351,5353,5508,5513,5594,5599,5639,5667,6041,6313,6708,6745]},{"a":30,"t":"note","l":"player_half_x","c":"Horizontal half-step, zero or one. Right movement tests its two neighbours when this is one and skips the test at zero; left movement tests at zero and skips at one.","note":"outside the tracked image","x":[5182,5237,5255,5257,5265,5325,5343,5349,5492,5572]},{"a":31,"t":"note","l":"player_half_y","c":"Vertical half-step, zero or one. An odd half-step extends the drawn player into a third character row.","note":"outside the tracked image","x":[5184,5223,5311,5472,5500,5506,5554,5582,5584,5592,5653,5685,6271]},{"a":32,"t":"note","l":"player_frame","c":"Walking-frame selector: 0-3 right, 4-7 left, 8-11 down and 12-15 up, updated by the corresponding movement branch.","note":"outside the tracked image","x":[5190,5273,5282,5290,5292,5294,5302,5361,5375,5377,5379,5387,5519,5533,5535,5537,5545,5605,5619,5621,5623,5631,5710,5730]},{"a":33,"t":"note","l":"player_frame_stride","c":"Source stride used by draw_player: $20 bytes for horizontal frames and $30 for vertical frames.","note":"outside the tracked image","x":[5708,5728,5742]},{"a":34,"t":"note","l":"player_neighbours","c":"Eight sampled surrounding character codes, in up, right, down and left pairs. sample_neighbour substitutes a space for codes at least $60.","note":"outside the tracked image","x":[5476,6098,6280,6296,6329]},{"a":42,"t":"note","l":"pickup_hundreds","c":"Number of hundreds to add for the collected object, taken from pickup_values by its character group.","note":"outside the tracked image","x":[6307,6350]},{"a":44,"t":"note","l":"maze_ptr","c":"Low/high address of the selected twenty-four-byte maze packet stream.","note":"outside the tracked image","x":[5897,6235,6256,6261]},{"a":46,"t":"note","l":"level_number","c":"Eight-bit level number; incremented on an allowed exit and converted to three character digits by draw_level_number.","note":"outside the tracked image","x":[4426,4549,5407,6391,6465,6966]},{"a":47,"t":"note","l":"objects_left","c":"Count of object-bearing map packets, incremented when a packet is drawn and decremented when its object is collected.","note":"outside the tracked image","x":[5403,5875,6117,6345]},{"a":48,"t":"note","l":"fade_steps","c":"Four luminance adjustments remain at the beginning of fade_colours.","note":"outside the tracked image","x":[4624,4678]},{"a":49,"t":"note","l":"fade_delta","c":"Attribute increment $10 for fade_in or $F0 for fade_out, added modulo 256 to every maze attribute.","note":"outside the tracked image","x":[4620,4632,4641,4650,4663]},{"a":54,"t":"note","l":"bonus_divider","c":"Counts down from 100 between bonus-segment decrements; reset_bonus starts it at one for an immediate first decrement.","note":"outside the tracked image","x":[6513,6515,6521]},{"a":55,"t":"note","l":"bonus_segments","c":"Bonus bar length, initialised to 21. Going below zero invokes player_death; finishing the maze converts the remaining segments to points.","note":"outside the tracked image","x":[5425,6509,6523,6549]},{"a":68,"t":"note","l":"enemy_screen_lo","c":"Seven enemy top-left screen-address low bytes; initialise_enemies fills them from the layout's spawn table.","note":"outside the tracked image","x":[7014,7256,7698,7715,7717,7736,7741,7758,7763,7812,7951]},{"a":76,"t":"note","l":"enemy_screen_hi","c":"Seven enemy top-left screen-address high bytes paired with enemy_screen_lo.","note":"outside the tracked image","x":[7019,7260,7702,7723,7745,7767,7808,7955]},{"a":84,"t":"note","l":"enemy_direction","c":"Seven enemy state bytes: negative is inactive; 0 right, 1 down, 2 left and 3 up. Larger nonnegative values leave the enemy stationary for that update until choose_enemy_direction masks or replaces the state.","note":"outside the tracked image","x":[4589,6943,6957,7046,7241,7300,7456,7555,7690,7787,7801,7806,7823,7993]},{"a":92,"t":"note","l":"enemy_half_step","c":"Six independent zero/one movement phases at $5C-$61, used for half-character shifts and deciding when to move a screen pointer. The allocated seventh index aliases enemy_colour at $62; that slot stays inactive in normal play.","note":"outside the tracked image","x":[6985,7292,7452,7551,7671,7678,7680,7688,7694,7711,7732,7754,7774]},{"a":98,"t":"note","l":"enemy_colour","c":"Seven TED attributes, set from the level modulo eight by initialise_enemies.","note":"outside the tracked image","x":[6981,7268]},{"a":106,"t":"note","l":"enemy_shape","c":"Seven shape selectors, set to 1-4 from the level modulo eight. draw_enemy uses shape minus one to select a thirty-two-byte source frame; select_enemy_glyphs computes the destination from the slot index.","note":"outside the tracked image","x":[6976,7296,7413,7664,7947]},{"a":114,"t":"note","l":"draw_scratch","c":"Scratch byte shared by map-object decoding, enemy glyph arithmetic and bomb-icon counting.","note":"outside the tracked image","x":[6112,6125,6161,7341,7344,7930,7933,8060,8062]},{"a":115,"t":"note","l":"enemy_frame_ptr","c":"Low/high pointer to one of the two enemy-animation source banks; update_enemy selects it when its shared animation divider expires.","note":"outside the tracked image","x":[7405,7655]},{"a":117,"t":"note","l":"enemy_anim_divider","c":"Shared enemy animation countdown, decremented once for each active slot updated and reloaded with 21 at zero.","note":"outside the tracked image","x":[6964,7630,7636]},{"a":119,"t":"note","l":"cleared_sound_byte","c":"Cleared by silence_sound along with the bomb sound flags. Its further purpose is unknown.","note":"outside the tracked image","x":[5071]},{"a":120,"t":"note","l":"death_scratch","c":"Written with $30 before player_death rotates the top glyph page; the loop itself uses X as its counter.","note":"outside the tracked image","x":[6582]},{"a":123,"t":"note","l":"bombs_left","c":"Undeployed bombs. Starts at three; laying a bomb decrements it and completing a level increments it up to nine.","note":"outside the tracked image","x":[4419,5415,5417,5423,6723,6731,8052]},{"a":124,"t":"note","l":"bomb_screen","c":"Low/high address of the deployed bomb. A zero high byte means no bomb is active; update_bomb clears it after the explosion sequence.","note":"outside the tracked image","x":[6747,6766,6922]},{"a":126,"t":"note","l":"explosion_phase","c":"Zero for an undetonated bomb; detonation sets one, updates copy successive thirty-two-byte fire frames, and phase five erases the bomb.","note":"outside the tracked image","x":[6755,6777,6785,6802,6826,6838,6913]},{"a":127,"t":"note","l":"bomb_rearm_delay","c":"Six-loop delay installed when a bomb is laid. A later pressed fire flag can detonate it after the delay reaches zero.","note":"outside the tracked image","x":[6751,6890,6894]},{"a":128,"t":"note","l":"bomb_blink","c":"Incremented by update_bomb; its low bit chooses one of the two undetonated bomb drawings.","note":"outside the tracked image","x":[6775,6864]},{"a":4352,"l":"start_game","c":"Disable CPU interrupts, silence sound, select the RAM character set at $3800 and multicolour text, set shared colours, then enter new_game.","t":"code","b":[120],"m":"sei"},{"a":4353,"t":"code","b":[32,199,19],"m":"jsr","oa":5063,"o":"silence_sound"},{"a":4356,"t":"code","b":[173,18,255],"m":"lda","o":"ted_bitmap_voice1_hi"},{"a":4359,"t":"code","b":[41,251],"m":"and","o":"#$FB"},{"a":4361,"t":"code","b":[141,18,255],"m":"sta","o":"ted_bitmap_voice1_hi"},{"a":4364,"t":"code","b":[173,19,255],"m":"lda","o":"ted_charset"},{"a":4367,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":4369,"t":"code","b":[9,56],"m":"ora","o":"#$38"},{"a":4371,"t":"code","b":[141,19,255],"m":"sta","o":"ted_charset"},{"a":4374,"t":"code","b":[173,7,255],"m":"lda","o":"ted_control2"},{"a":4377,"t":"code","b":[9,144],"m":"ora","o":"#$90"},{"a":4379,"t":"code","b":[141,7,255],"m":"sta","o":"ted_control2"},{"a":4382,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4384,"t":"code","b":[141,21,255],"m":"sta","o":"ted_background"},{"a":4387,"t":"code","b":[169,97],"m":"lda","o":"#$61"},{"a":4389,"t":"code","b":[141,22,255],"m":"sta","o":"ted_colour1"},{"a":4392,"t":"code","b":[169,38],"m":"lda","o":"#$26"},{"a":4394,"t":"code","b":[141,23,255],"m":"sta","o":"ted_colour2"},{"a":4397,"t":"code","b":[32,75,18],"m":"jsr","oa":4683,"o":"clear_screen"},{"a":4400,"l":"new_game","c":"Reset the animation phase, displayed spare-life digit to ASCII 4, inventory to three bombs and level to one; clear the screen and draw the initial score and life panel.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[4580]},{"a":4402,"t":"code","b":[133,50],"m":"sta","oa":50,"o":"zpa_32"},{"a":4404,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":4406,"t":"code","b":[141,203,29],"m":"sta","oa":7627,"o":"enemy_anim_phase"},{"a":4409,"t":"code","b":[32,199,19],"m":"jsr","oa":5063,"o":"silence_sound"},{"a":4412,"t":"code","b":[169,52],"m":"lda","o":"#$34"},{"a":4414,"t":"code","b":[141,38,26],"m":"sta","oa":6694,"o":"lives_character"},{"a":4417,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":4419,"t":"code","b":[133,123],"m":"sta","oa":123,"o":"bombs_left"},{"a":4421,"t":"code","b":[32,75,18],"m":"jsr","oa":4683,"o":"clear_screen"},{"a":4424,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":4426,"t":"code","b":[133,46],"m":"sta","oa":46,"o":"level_number"},{"a":4428,"t":"code","b":[32,60,20],"m":"jsr","oa":5180,"o":"reset_player"},{"a":4431,"t":"code","b":[32,205,18],"m":"jsr","oa":4813,"o":"draw_scores"},{"a":4434,"t":"code","b":[32,107,25],"m":"jsr","oa":6507,"o":"reset_bonus"},{"a":4437,"t":"code","b":[32,14,26],"m":"jsr","oa":6670,"o":"draw_lives"},{"a":4440,"l":"start_level","c":"Reset the stack, bonus and sound, build the maze and enemies, fade its colours in, place the player at the exit and enter the gameplay loop.","t":"code","b":[162,254],"m":"ldx","o":"#$FE","x":[5469]},{"a":4442,"t":"code","b":[154],"m":"txs"},{"a":4443,"t":"code","b":[32,107,25],"m":"jsr","oa":6507,"o":"reset_bonus"},{"a":4446,"t":"code","b":[32,199,19],"m":"jsr","oa":5063,"o":"silence_sound"},{"a":4449,"t":"code","b":[32,28,20],"m":"jsr","oa":5148,"o":"build_level"},{"a":4452,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":4454,"t":"code","b":[32,35,19],"m":"jsr","oa":4899,"o":"delay_long"},{"a":4457,"t":"code","b":[32,255,17],"m":"jsr","oa":4607,"o":"fade_in"},{"a":4460,"t":"code","b":[32,254,17],"m":"jsr","oa":4606,"o":"unused_return"},{"a":4463,"t":"code","b":[32,60,20],"m":"jsr","oa":5180,"o":"reset_player"},{"a":4466,"l":"game_loop","c":"Sample nearby cells, update the bomb, update enemies, poll and move the player, collect an object, tick the bonus, service sound and busy-wait before repeating.","t":"code","b":[32,149,23],"m":"jsr","oa":6037,"o":"sample_player_neighbours","x":[4490]},{"a":4469,"t":"code","b":[32,106,26],"m":"jsr","oa":6762,"o":"update_bomb"},{"a":4472,"t":"code","b":[32,71,28],"m":"jsr","oa":7239,"o":"update_enemies"},{"a":4475,"t":"code","b":[32,90,20],"m":"jsr","oa":5210,"o":"move_player"},{"a":4478,"t":"code","b":[32,127,24],"m":"jsr","oa":6271,"o":"collect_object"},{"a":4481,"t":"code","b":[32,115,25],"m":"jsr","oa":6515,"o":"tick_bonus"},{"a":4484,"t":"code","b":[32,154,31],"m":"jsr","oa":8090,"o":"update_sound"},{"a":4487,"t":"code","b":[32,231,17],"m":"jsr","oa":4583,"o":"pace_loop"},{"a":4490,"t":"code","b":[76,114,17],"m":"jmp","oa":4466,"o":"game_loop"},{"a":4493,"l":"game_over","c":"Erase the player, silence sound and delay. Compare the five most significant score digits with the high score and copy all six digits when they qualify. Clear the score and show timer-selected nonzero-level mazes until fire starts a new game.","t":"code","b":[32,5,22],"m":"jsr","oa":5637,"o":"erase_player","x":[6658]},{"a":4496,"t":"code","b":[32,199,19],"m":"jsr","oa":5063,"o":"silence_sound"},{"a":4499,"t":"code","b":[160,15],"m":"ldy","o":"#$0F"},{"a":4501,"t":"code","b":[32,35,19],"m":"jsr","oa":4899,"o":"delay_long"},{"a":4504,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":4506,"l":"b_119A","t":"code","b":[189,242,18],"m":"lda","oa":4850,"o":"score_digits,x","x":[4519]},{"a":4509,"t":"code","b":[221,221,18],"m":"cmp","oa":4829,"o":"high_score,x"},{"a":4512,"t":"code","b":[144,18],"m":"bcc","oa":4532,"o":"b_11B4"},{"a":4514,"t":"code","b":[208,5],"m":"bne","oa":4521,"o":"b_11A9"},{"a":4516,"t":"code","b":[232],"m":"inx"},{"a":4517,"t":"code","b":[224,5],"m":"cpx","o":"#$05"},{"a":4519,"t":"code","b":[208,241],"m":"bne","oa":4506,"o":"b_119A"},{"a":4521,"l":"b_11A9","t":"code","b":[162,5],"m":"ldx","o":"#$05","x":[4514]},{"a":4523,"l":"b_11AB","t":"code","b":[189,242,18],"m":"lda","oa":4850,"o":"score_digits,x","x":[4530]},{"a":4526,"t":"code","b":[157,221,18],"m":"sta","oa":4829,"o":"high_score,x"},{"a":4529,"t":"code","b":[202],"m":"dex"},{"a":4530,"t":"code","b":[16,247],"m":"bpl","oa":4523,"o":"b_11AB"},{"a":4532,"l":"b_11B4","t":"code","b":[162,5],"m":"ldx","o":"#$05","x":[4512]},{"a":4534,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":4536,"l":"b_11B8","t":"code","b":[157,242,18],"m":"sta","oa":4850,"o":"score_digits,x","x":[4540]},{"a":4539,"t":"code","b":[202],"m":"dex"},{"a":4540,"t":"code","b":[16,250],"m":"bpl","oa":4536,"o":"b_11B8"},{"a":4542,"l":"b_11BE","t":"code","b":[173,2,255],"m":"lda","o":"ted_timer2_lo","x":[4547,4566]},{"a":4545,"t":"code","b":[41,255],"m":"and","o":"#$FF"},{"a":4547,"t":"code","b":[240,249],"m":"beq","oa":4542,"o":"b_11BE"},{"a":4549,"t":"code","b":[133,46],"m":"sta","oa":46,"o":"level_number"},{"a":4551,"t":"code","b":[32,28,20],"m":"jsr","oa":5148,"o":"build_level"},{"a":4554,"t":"code","b":[32,255,17],"m":"jsr","oa":4607,"o":"fade_in"},{"a":4557,"t":"code","b":[32,60,20],"m":"jsr","oa":5180,"o":"reset_player"},{"a":4560,"t":"code","b":[169,250],"m":"lda","o":"#$FA"},{"a":4562,"t":"code","b":[133,8],"m":"sta","oa":8,"o":"loop_scratch"},{"a":4564,"l":"b_11D4","t":"code","b":[198,8],"m":"dec","oa":8,"o":"loop_scratch","x":[4578]},{"a":4566,"t":"code","b":[240,230],"m":"beq","oa":4542,"o":"b_11BE"},{"a":4568,"t":"code","b":[32,57,19],"m":"jsr","oa":4921,"o":"poll_inputs"},{"a":4571,"t":"code","b":[169,10],"m":"lda","o":"#$0A"},{"a":4573,"t":"code","b":[32,44,19],"m":"jsr","oa":4908,"o":"delay_busy"},{"a":4576,"t":"code","b":[165,21],"m":"lda","oa":21,"o":"input_fire"},{"a":4578,"t":"code","b":[208,240],"m":"bne","oa":4564,"o":"b_11D4"},{"a":4580,"t":"code","b":[76,48,17],"m":"jmp","oa":4400,"o":"new_game"},{"a":4583,"l":"pace_loop","c":"Five iterations over enemy_direction read a byte whose value is then discarded; two calls to delay_busy with A=1 pace each iteration. This is a busy delay rather than a raster wait.","t":"code","b":[162,4],"m":"ldx","o":"#$04","x":[4487]},{"a":4585,"l":"b_11E9","t":"code","b":[134,22],"m":"stx","oa":22,"o":"saved_actor","x":[4603]},{"a":4587,"t":"code","b":[166,22],"m":"ldx","oa":22,"o":"saved_actor"},{"a":4589,"t":"code","b":[181,84],"m":"lda","oa":84,"o":"enemy_direction,x"},{"a":4591,"t":"code","b":[234],"m":"nop"},{"a":4592,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":4594,"t":"code","b":[32,44,19],"m":"jsr","oa":4908,"o":"delay_busy"},{"a":4597,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":4599,"t":"code","b":[32,44,19],"m":"jsr","oa":4908,"o":"delay_busy"},{"a":4602,"t":"code","b":[202],"m":"dex"},{"a":4603,"t":"code","b":[16,236],"m":"bpl","oa":4585,"o":"b_11E9"},{"a":4605,"t":"code","b":[96],"m":"rts"},{"a":4606,"l":"unused_return","c":"A single RTS called during start_level; it preserves the call's normal return without changing game state.","t":"code","b":[96],"m":"rts","x":[4460]},{"a":4607,"l":"fade_in","c":"Select a $10 attribute increment and enter the shared four-step maze fade.","t":"code","b":[169,16],"m":"lda","o":"#$10","x":[4457,4554]},{"a":4609,"t":"code","b":[76,12,18],"m":"jmp","oa":4620,"o":"fade_colours"},{"a":4612,"l":"fade_out","c":"Erase a deployed bomb and the enemies, select a $F0 attribute increment and enter fade_colours.","t":"code","b":[32,6,27],"m":"jsr","oa":6918,"o":"erase_bomb","x":[5412]},{"a":4615,"t":"code","b":[32,29,27],"m":"jsr","oa":6941,"o":"erase_enemies"},{"a":4618,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":4620,"l":"fade_colours","c":"Add fade_delta to 824 attributes at $08C8-$0BFF in four passes, with a busy wait after each pass. This includes the 800 maze attributes and 24 trailing bytes beyond the visible screen; the top score panel is outside the range.","t":"code","b":[133,49],"m":"sta","oa":49,"o":"fade_delta","x":[4609]},{"a":4622,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":4624,"t":"code","b":[133,48],"m":"sta","oa":48,"o":"fade_steps"},{"a":4626,"l":"b_1212","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[4680]},{"a":4628,"l":"b_1214","t":"code","b":[189,200,8],"m":"lda","oa":2248,"o":"f_08C8,x","x":[4669]},{"a":4631,"t":"code","b":[24],"m":"clc"},{"a":4632,"t":"code","b":[101,49],"m":"adc","oa":49,"o":"fade_delta"},{"a":4634,"t":"code","b":[157,200,8],"m":"sta","oa":2248,"o":"f_08C8,x"},{"a":4637,"t":"code","b":[189,200,9],"m":"lda","oa":2504,"o":"f_09C8,x"},{"a":4640,"t":"code","b":[24],"m":"clc"},{"a":4641,"t":"code","b":[101,49],"m":"adc","oa":49,"o":"fade_delta"},{"a":4643,"t":"code","b":[157,200,9],"m":"sta","oa":2504,"o":"f_09C8,x"},{"a":4646,"t":"code","b":[189,200,10],"m":"lda","oa":2760,"o":"f_0AC8,x"},{"a":4649,"t":"code","b":[24],"m":"clc"},{"a":4650,"t":"code","b":[101,49],"m":"adc","oa":49,"o":"fade_delta"},{"a":4652,"t":"code","b":[157,200,10],"m":"sta","oa":2760,"o":"f_0AC8,x"},{"a":4655,"t":"code","b":[224,56],"m":"cpx","o":"#$38"},{"a":4657,"t":"code","b":[176,9],"m":"bcs","oa":4668,"o":"b_123C"},{"a":4659,"t":"code","b":[189,200,11],"m":"lda","oa":3016,"o":"f_0BC8,x"},{"a":4662,"t":"code","b":[24],"m":"clc"},{"a":4663,"t":"code","b":[101,49],"m":"adc","oa":49,"o":"fade_delta"},{"a":4665,"t":"code","b":[157,200,11],"m":"sta","oa":3016,"o":"f_0BC8,x"},{"a":4668,"l":"b_123C","t":"code","b":[232],"m":"inx","x":[4657]},{"a":4669,"t":"code","b":[208,213],"m":"bne","oa":4628,"o":"b_1214"},{"a":4671,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":4673,"t":"code","b":[133,25],"m":"sta","oa":25,"o":"delay_outer"},{"a":4675,"t":"code","b":[32,44,19],"m":"jsr","oa":4908,"o":"delay_busy"},{"a":4678,"t":"code","b":[198,48],"m":"dec","oa":48,"o":"fade_steps"},{"a":4680,"t":"code","b":[208,200],"m":"bne","oa":4626,"o":"b_1212"},{"a":4682,"t":"code","b":[96],"m":"rts"},{"a":4683,"l":"clear_screen","c":"Fill the thousand visible character cells at $0C00-$0FE7 with spaces, using four overlapping indexed stores; colours are set by later drawing.","t":"code","b":[169,32],"m":"lda","o":"#$20","x":[4397,4421]},{"a":4685,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":4687,"l":"b_124F","t":"code","b":[157,0,12],"m":"sta","oa":3072,"o":"f_0C00,x","x":[4700]},{"a":4690,"t":"code","b":[157,0,13],"m":"sta","oa":3328,"o":"f_0D00,x"},{"a":4693,"t":"code","b":[157,0,14],"m":"sta","oa":3584,"o":"f_0E00,x"},{"a":4696,"t":"code","b":[157,232,14],"m":"sta","oa":3816,"o":"f_0EE8,x"},{"a":4699,"t":"code","b":[232],"m":"inx"},{"a":4700,"t":"code","b":[208,241],"m":"bne","oa":4687,"o":"b_124F"},{"a":4702,"t":"code","b":[96],"m":"rts"},{"a":4703,"l":"print_inline","c":"Pull the JSR return address into inline_return, print following bytes through print_char until zero, then push that terminator's address and return to the next instruction.","t":"code","b":[104],"m":"pla","x":[4826,4847,5644,5657,5676,5689,5772,5804,6188,6373,6455,6538,6557,6563,6681,6691,6791,6807,6869,6881,6927,7278,7305,7319,7537,7560,7574,8016,8067]},{"a":4704,"t":"code","b":[133,9],"m":"sta","oa":9,"o":"inline_return"},{"a":4706,"t":"code","b":[104],"m":"pla"},{"a":4707,"t":"code","b":[133,10],"m":"sta","oa":10,"o":"zpa_0A"},{"a":4709,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":4711,"l":"j_1267","t":"code","b":[230,9],"m":"inc","oa":9,"o":"inline_return","x":[4724]},{"a":4713,"t":"code","b":[208,2],"m":"bne","oa":4717,"o":"b_126D"},{"a":4715,"t":"code","b":[230,10],"m":"inc","oa":10,"o":"zpa_0A"},{"a":4717,"l":"b_126D","t":"code","b":[161,9],"m":"lda","oa":9,"o":"(inline_return,x)","x":[4713]},{"a":4719,"t":"code","b":[240,6],"m":"beq","oa":4727,"o":"b_1277"},{"a":4721,"t":"code","b":[32,126,18],"m":"jsr","oa":4734,"o":"print_char"},{"a":4724,"t":"code","b":[76,103,18],"m":"jmp","oa":4711,"o":"j_1267"},{"a":4727,"l":"b_1277","t":"code","b":[165,10],"m":"lda","oa":10,"o":"zpa_0A","x":[4719]},{"a":4729,"t":"code","b":[72],"m":"pha"},{"a":4730,"t":"code","b":[165,9],"m":"lda","oa":9,"o":"inline_return"},{"a":4732,"t":"code","b":[72],"m":"pha"},{"a":4733,"t":"code","b":[96],"m":"rts"},{"a":4734,"l":"print_char","c":"Convert PETSCII letters to screen codes, interpret $0D as a new forty-character row, and write the character and print_colour to paired screen and attribute addresses. Other bytes below $20 become codes $40-$5F.","t":"code","b":[201,13],"m":"cmp","o":"#$0D","x":[4721]},{"a":4736,"t":"code","b":[208,16],"m":"bne","oa":4754,"o":"b_1292"},{"a":4738,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4740,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"print_column"},{"a":4742,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"print_ptr"},{"a":4744,"t":"code","b":[24],"m":"clc"},{"a":4745,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":4747,"t":"code","b":[144,2],"m":"bcc","oa":4751,"o":"b_128F"},{"a":4749,"t":"code","b":[230,14],"m":"inc","oa":14,"o":"zpa_0E"},{"a":4751,"l":"b_128F","t":"code","b":[133,13],"m":"sta","oa":13,"o":"print_ptr","x":[4747]},{"a":4753,"t":"code","b":[96],"m":"rts"},{"a":4754,"l":"b_1292","t":"code","b":[201,32],"m":"cmp","o":"#$20","x":[4736]},{"a":4756,"t":"code","b":[176,5],"m":"bcs","oa":4763,"o":"b_129B"},{"a":4758,"t":"code","b":[105,64],"m":"adc","o":"#$40"},{"a":4760,"t":"code","b":[76,165,18],"m":"jmp","oa":4773,"o":"j_12A5"},{"a":4763,"l":"b_129B","t":"code","b":[201,96],"m":"cmp","o":"#$60","x":[4756]},{"a":4765,"t":"code","b":[176,6],"m":"bcs","oa":4773,"o":"j_12A5"},{"a":4767,"t":"code","b":[201,65],"m":"cmp","o":"#$41"},{"a":4769,"t":"code","b":[144,2],"m":"bcc","oa":4773,"o":"j_12A5"},{"a":4771,"t":"code","b":[233,64],"m":"sbc","o":"#$40"},{"a":4773,"l":"j_12A5","t":"code","b":[164,15],"m":"ldy","oa":15,"o":"print_column","x":[4760,4765,4769]},{"a":4775,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(print_ptr),y"},{"a":4777,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"print_ptr"},{"a":4779,"t":"code","b":[133,11],"m":"sta","oa":11,"o":"colour_ptr"},{"a":4781,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":4783,"t":"code","b":[56],"m":"sec"},{"a":4784,"t":"code","b":[233,4],"m":"sbc","o":"#$04"},{"a":4786,"t":"code","b":[133,12],"m":"sta","oa":12,"o":"zpa_0C"},{"a":4788,"t":"code","b":[165,16],"m":"lda","oa":16,"o":"print_colour"},{"a":4790,"t":"code","b":[145,11],"m":"sta","oa":11,"o":"(colour_ptr),y"},{"a":4792,"t":"code","b":[200],"m":"iny"},{"a":4793,"t":"code","b":[192,40],"m":"cpy","o":"#$28"},{"a":4795,"t":"code","b":[208,13],"m":"bne","oa":4810,"o":"b_12CA"},{"a":4797,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":4799,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"print_ptr"},{"a":4801,"t":"code","b":[24],"m":"clc"},{"a":4802,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":4804,"t":"code","b":[144,2],"m":"bcc","oa":4808,"o":"b_12C8"},{"a":4806,"t":"code","b":[230,14],"m":"inc","oa":14,"o":"zpa_0E"},{"a":4808,"l":"b_12C8","t":"code","b":[133,13],"m":"sta","oa":13,"o":"print_ptr","x":[4804]},{"a":4810,"l":"b_12CA","t":"code","b":[132,15],"m":"sty","oa":15,"o":"print_column","x":[4795]},{"a":4812,"t":"code","b":[96],"m":"rts"},{"a":4813,"l":"draw_scores","c":"Position and colour the high-score field, print its six inline digits, then fall through to draw_score for the live score.","t":"code","b":[162,5],"m":"ldx","o":"#$05","x":[4431]},{"a":4815,"t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":4817,"t":"code","b":[162,43],"m":"ldx","o":"#$2B"},{"a":4819,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":4822,"t":"code","b":[169,97],"m":"lda","o":"#$61"},{"a":4824,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":4826,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":4829,"l":"high_score","c":"Six ASCII high-score digits and a zero terminator. game_over compares the five most significant digits and replaces all six from score_digits when those five qualify; ordinary scoring leaves the ones digit zero.","t":"byte","b":[48,48,48,48,48,48,0],"x":[4509,4526]},{"a":4836,"l":"draw_score","c":"Position the live score at $0C39 in attribute $61 and print score_digits through the inline printer.","t":"code","b":[162,57],"m":"ldx","o":"#$39","x":[4896]},{"a":4838,"t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":4840,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":4843,"t":"code","b":[169,97],"m":"lda","o":"#$61"},{"a":4845,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":4847,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":4850,"l":"score_digits","c":"Six ASCII decimal score digits followed by zero. add_score_digits changes them with decimal carry; game_over clears them to ASCII zero after checking the record.","t":"byte","b":[48,48,48,48,48,48,0],"x":[4506,4523,4536,4866,4869,4878,4884,4887]},{"a":4857,"l":"draw_score_return","c":"Return to draw_score's caller after the inline six-digit score has been printed.","t":"code","b":[96],"m":"rts"},{"a":4858,"l":"add_hundreds","c":"Set X=3 to add A to the score's hundreds column, then enter add_score_digits; pickups and destroyed guards use this entry.","t":"code","b":[162,3],"m":"ldx","o":"#$03","x":[6352,7999]},{"a":4860,"t":"code","b":[76,1,19],"m":"jmp","oa":4865,"o":"add_score_digits"},{"a":4863,"l":"add_tens","c":"Set X=4 to add A to the score's tens column, then enter add_score_digits; level completion uses this entry four times for each bonus segment.","t":"code","b":[162,4],"m":"ldx","o":"#$04","x":[5445,5450,5455,5460]},{"a":4865,"l":"add_score_digits","c":"Add A at score digit X. A digit reaching ASCII colon or higher is replaced with ASCII zero, discarding any excess above ten, then one is carried into higher digits. Test for an extra life and redraw; overflow beyond the leading digit is discarded.","t":"code","b":[24],"m":"clc","x":[4860]},{"a":4866,"t":"code","b":[125,242,18],"m":"adc","oa":4850,"o":"score_digits,x"},{"a":4869,"t":"code","b":[157,242,18],"m":"sta","oa":4850,"o":"score_digits,x"},{"a":4872,"l":"j_1308","t":"code","b":[201,58],"m":"cmp","o":"#$3A","x":[4890]},{"a":4874,"t":"code","b":[144,17],"m":"bcc","oa":4893,"o":"b_131D"},{"a":4876,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":4878,"t":"code","b":[157,242,18],"m":"sta","oa":4850,"o":"score_digits,x"},{"a":4881,"t":"code","b":[202],"m":"dex"},{"a":4882,"t":"code","b":[48,9],"m":"bmi","oa":4893,"o":"b_131D"},{"a":4884,"t":"code","b":[254,242,18],"m":"inc","oa":4850,"o":"score_digits,x"},{"a":4887,"t":"code","b":[189,242,18],"m":"lda","oa":4850,"o":"score_digits,x"},{"a":4890,"t":"code","b":[76,8,19],"m":"jmp","oa":4872,"o":"j_1308"},{"a":4893,"l":"b_131D","t":"code","b":[32,82,25],"m":"jsr","oa":6482,"o":"check_extra_life","x":[4874,4882]},{"a":4896,"t":"code","b":[76,228,18],"m":"jmp","oa":4836,"o":"draw_score"},{"a":4899,"l":"delay_long","c":"Run delay_busy with A=$FF, decrementing Y until zero; a zero incoming Y gives 256 calls.","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[4454,4501,4905]},{"a":4901,"t":"code","b":[32,44,19],"m":"jsr","oa":4908,"o":"delay_busy"},{"a":4904,"t":"code","b":[136],"m":"dey"},{"a":4905,"t":"code","b":[208,248],"m":"bne","oa":4899,"o":"delay_long"},{"a":4907,"t":"code","b":[96],"m":"rts"},{"a":4908,"l":"delay_busy","c":"Busy-wait using delay_outer from A plus one and the wrapping eight-bit delay_inner. Its duration is CPU work and depends on the incoming inner counter for the first interval.","t":"code","b":[133,25],"m":"sta","oa":25,"o":"delay_outer","x":[4573,4594,4599,4675,4901]},{"a":4910,"t":"code","b":[230,25],"m":"inc","oa":25,"o":"delay_outer"},{"a":4912,"l":"b_1330","t":"code","b":[198,24],"m":"dec","oa":24,"o":"delay_inner","x":[4914,4918]},{"a":4914,"t":"code","b":[208,252],"m":"bne","oa":4912,"o":"b_1330"},{"a":4916,"t":"code","b":[198,25],"m":"dec","oa":25,"o":"delay_outer"},{"a":4918,"t":"code","b":[208,248],"m":"bne","oa":4912,"o":"b_1330"},{"a":4920,"t":"code","b":[96],"m":"rts"},{"a":4921,"l":"poll_inputs","c":"Read joystick 1, implement P pause with R resume, then scan the five keyboard controls and AND their results with the joystick flags. Each pressed flag is zero.","t":"code","b":[32,120,19],"m":"jsr","oa":4984,"o":"poll_joystick","x":[4568,5210]},{"a":4924,"t":"code","b":[162,223],"m":"ldx","o":"#$DF"},{"a":4926,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":4928,"t":"code","b":[32,99,19],"m":"jsr","oa":4963,"o":"scan_key"},{"a":4931,"t":"code","b":[208,9],"m":"bne","oa":4942,"o":"b_134E"},{"a":4933,"l":"b_1345","t":"code","b":[162,251],"m":"ldx","o":"#$FB","x":[4940]},{"a":4935,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":4937,"t":"code","b":[32,99,19],"m":"jsr","oa":4963,"o":"scan_key"},{"a":4940,"t":"code","b":[208,247],"m":"bne","oa":4933,"o":"b_1345"},{"a":4942,"l":"b_134E","t":"code","b":[160,4],"m":"ldy","o":"#$04","x":[4931]},{"a":4944,"l":"b_1350","t":"code","b":[190,109,19],"m":"ldx","oa":4973,"o":"keyboard_rows,y","x":[4960]},{"a":4947,"t":"code","b":[185,114,19],"m":"lda","oa":4978,"o":"keyboard_masks,y"},{"a":4950,"t":"code","b":[32,99,19],"m":"jsr","oa":4963,"o":"scan_key"},{"a":4953,"t":"code","b":[57,17,0],"m":"and","oa":17,"o":"input_up,y"},{"a":4956,"t":"code","b":[153,17,0],"m":"sta","oa":17,"o":"input_up,y"},{"a":4959,"t":"code","b":[136],"m":"dey"},{"a":4960,"t":"code","b":[16,238],"m":"bpl","oa":4944,"o":"b_1350"},{"a":4962,"t":"code","b":[96],"m":"rts"},{"a":4963,"l":"scan_key","c":"Write row selector X to the keyboard latch and TED input latch, then return A masked by the latched keyboard/joystick lines.","t":"code","b":[142,48,253],"m":"stx","o":"keyboard_latch","x":[4928,4937,4950]},{"a":4966,"t":"code","b":[142,8,255],"m":"stx","o":"ted_keyboard"},{"a":4969,"t":"code","b":[45,8,255],"m":"and","o":"ted_keyboard"},{"a":4972,"t":"code","b":[96],"m":"rts"},{"a":4973,"l":"keyboard_rows","c":"Five row selectors for up, down, right, left and fire: $7F,$7F,$DF,$DF,$7F.","t":"byte","b":[127,127,223,223,127],"x":[4944]},{"a":4978,"l":"keyboard_masks","c":"Five column masks paired with keyboard_rows: RUN/STOP, COMMODORE, colon, L and SPACE.","t":"byte","b":[128,32,32,4,16],"x":[4947]},{"a":4983,"l":"joystick_fire_mask","c":"Bit mask $40 used to test joystick 1 fire in TED's latched input.","t":"byte","b":[64],"x":[5004]},{"a":4984,"l":"poll_joystick","c":"Initialise all five input flags to $FF, select joystick 1 with $FB, test fire bit 6 and shift its four direction bits into zero-valued pressed flags.","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[4921]},{"a":4986,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"input_fire"},{"a":4988,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"input_up"},{"a":4990,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"input_down"},{"a":4992,"t":"code","b":[133,20],"m":"sta","oa":20,"o":"input_left"},{"a":4994,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"input_right"},{"a":4996,"t":"code","b":[169,251],"m":"lda","o":"#$FB"},{"a":4998,"t":"code","b":[141,8,255],"m":"sta","o":"ted_keyboard"},{"a":5001,"t":"code","b":[173,8,255],"m":"lda","o":"ted_keyboard"},{"a":5004,"t":"code","b":[44,119,19],"m":"bit","oa":4983,"o":"joystick_fire_mask"},{"a":5007,"t":"code","b":[208,2],"m":"bne","oa":5011,"o":"b_1393"},{"a":5009,"t":"code","b":[230,21],"m":"inc","oa":21,"o":"input_fire"},{"a":5011,"l":"b_1393","t":"code","b":[74],"m":"lsr","o":"a","x":[5007]},{"a":5012,"t":"code","b":[176,2],"m":"bcs","oa":5016,"o":"b_1398"},{"a":5014,"t":"code","b":[230,17],"m":"inc","oa":17,"o":"input_up"},{"a":5016,"l":"b_1398","t":"code","b":[74],"m":"lsr","o":"a","x":[5012]},{"a":5017,"t":"code","b":[176,2],"m":"bcs","oa":5021,"o":"b_139D"},{"a":5019,"t":"code","b":[230,18],"m":"inc","oa":18,"o":"input_down"},{"a":5021,"l":"b_139D","t":"code","b":[74],"m":"lsr","o":"a","x":[5017]},{"a":5022,"t":"code","b":[176,2],"m":"bcs","oa":5026,"o":"b_13A2"},{"a":5024,"t":"code","b":[230,20],"m":"inc","oa":20,"o":"input_left"},{"a":5026,"l":"b_13A2","t":"code","b":[74],"m":"lsr","o":"a","x":[5022]},{"a":5027,"t":"code","b":[176,2],"m":"bcs","oa":5031,"o":"r_13A7"},{"a":5029,"t":"code","b":[230,19],"m":"inc","oa":19,"o":"input_right"},{"a":5031,"l":"r_13A7","t":"code","b":[96],"m":"rts","x":[5027]},{"a":5032,"l":"blank_line","c":"Retained helper that calls advance_print_row twice, clears the column and falls into a third row advance. Its code is retained alongside the inline printer.","t":"code","b":[32,178,19],"m":"jsr","oa":5042,"o":"advance_print_row"},{"a":5035,"t":"code","b":[32,178,19],"m":"jsr","oa":5042,"o":"advance_print_row"},{"a":5038,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5040,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"print_column"},{"a":5042,"l":"advance_print_row","c":"Add forty to print_ptr, propagating carry into its high byte; entry from blank_line also has print_column cleared.","t":"code","b":[165,13],"m":"lda","oa":13,"o":"print_ptr","x":[5032,5035]},{"a":5044,"t":"code","b":[24],"m":"clc"},{"a":5045,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":5047,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"print_ptr"},{"a":5049,"t":"code","b":[144,2],"m":"bcc","oa":5053,"o":"r_13BD"},{"a":5051,"t":"code","b":[230,14],"m":"inc","oa":14,"o":"zpa_0E"},{"a":5053,"l":"r_13BD","t":"code","b":[96],"m":"rts","x":[5049]},{"a":5054,"l":"set_print_pointer","c":"Set print_ptr from A:X, clear print_column and return; callers set print_colour separately.","t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E","x":[4819,4840,5641,5669,5766,5870,5932,5951,5970,6000,6030,6203,6428,6535,6674,6768,6924,8013,8045,8084]},{"a":5056,"t":"code","b":[134,13],"m":"stx","oa":13,"o":"print_ptr"},{"a":5058,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5060,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"print_column"},{"a":5062,"t":"code","b":[96],"m":"rts"},{"a":5063,"l":"silence_sound","c":"Clear the bomb-tone and explosion-sound flags and cleared_sound_byte. Retain the volume nibble with bits 0-2 set and clear the voice/noise enable bits in TED sound control.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[4353,4409,4446,4496,5431,5434,5437,6574]},{"a":5065,"t":"code","b":[141,10,32],"m":"sta","oa":8202,"o":"bomb_sound_active"},{"a":5068,"t":"code","b":[141,12,32],"m":"sta","oa":8204,"o":"explosion_sound_left"},{"a":5071,"t":"code","b":[133,119],"m":"sta","oa":119,"o":"cleared_sound_byte"},{"a":5073,"t":"code","b":[173,17,255],"m":"lda","o":"ted_sound"},{"a":5076,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":5078,"t":"code","b":[9,7],"m":"ora","o":"#$07"},{"a":5080,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":5083,"t":"code","b":[96],"m":"rts"},{"a":5084,"l":"enable_walk_tone","c":"Set TED sound-control bit 4 to enable voice 1 while preserving its other bits.","t":"code","b":[173,17,255],"m":"lda","o":"ted_sound","x":[8177]},{"a":5087,"t":"code","b":[9,16],"m":"ora","o":"#$10"},{"a":5089,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":5092,"t":"code","b":[96],"m":"rts"},{"a":5093,"l":"disable_walk_tone","c":"Clear TED sound-control bit 4 after the short walking pulse.","t":"code","b":[173,17,255],"m":"lda","o":"ted_sound","x":[8198]},{"a":5096,"t":"code","b":[41,239],"m":"and","o":"#$EF"},{"a":5098,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":5101,"t":"code","b":[96],"m":"rts"},{"a":5102,"l":"enable_noise","c":"Set TED sound-control bit 6 to enable voice 2 noise while preserving the other control bits.","t":"code","b":[173,17,255],"m":"lda","o":"ted_sound","x":[8102,8136]},{"a":5105,"t":"code","b":[9,64],"m":"ora","o":"#$40"},{"a":5107,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":5110,"t":"code","b":[96],"m":"rts"},{"a":5111,"l":"disable_noise","c":"Clear TED sound-control bit 6 when the explosion countdown is finished.","t":"code","b":[173,17,255],"m":"lda","o":"ted_sound","x":[8116,8142]},{"a":5114,"t":"code","b":[41,191],"m":"and","o":"#$BF"},{"a":5116,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":5119,"t":"code","b":[96],"m":"rts"},{"a":5120,"l":"set_voice1_pitch","c":"Write A as voice 1's low frequency byte and scratch_ptr's low byte as its high bits, preserving the other TED $FF12 bits.","t":"code","b":[141,14,255],"m":"sta","o":"ted_voice1_freq_lo","x":[8174]},{"a":5123,"t":"code","b":[173,18,255],"m":"lda","o":"ted_bitmap_voice1_hi"},{"a":5126,"t":"code","b":[41,252],"m":"and","o":"#$FC"},{"a":5128,"t":"code","b":[5,3],"m":"ora","oa":3,"o":"scratch_ptr"},{"a":5130,"t":"code","b":[141,18,255],"m":"sta","o":"ted_bitmap_voice1_hi"},{"a":5133,"t":"code","b":[96],"m":"rts"},{"a":5134,"l":"set_voice2_pitch","c":"Write A as voice 2's low frequency byte and scratch_ptr's low byte as its high bits, preserving the other TED $FF10 bits.","t":"code","b":[141,15,255],"m":"sta","o":"ted_voice2_freq_lo","x":[8099,8133]},{"a":5137,"t":"code","b":[173,16,255],"m":"lda","o":"ted_voice2_freq_hi"},{"a":5140,"t":"code","b":[41,252],"m":"and","o":"#$FC"},{"a":5142,"t":"code","b":[5,3],"m":"ora","oa":3,"o":"scratch_ptr"},{"a":5144,"t":"code","b":[141,16,255],"m":"sta","o":"ted_voice2_freq_hi"},{"a":5147,"t":"code","b":[96],"m":"rts"},{"a":5148,"l":"build_level","c":"Set a black border, draw the outer wall and level digits, choose and decode the layout, initialise enemies and redraw bomb inventory, then mark fire released.","t":"code","b":[234],"m":"nop","x":[4449,4551]},{"a":5149,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5151,"t":"code","b":[141,25,255],"m":"sta","o":"ted_border"},{"a":5154,"t":"code","b":[32,40,23],"m":"jsr","oa":5928,"o":"draw_border"},{"a":5157,"t":"code","b":[32,239,24],"m":"jsr","oa":6383,"o":"draw_level_number"},{"a":5160,"t":"code","b":[32,88,24],"m":"jsr","oa":6232,"o":"select_maze"},{"a":5163,"t":"code","b":[32,234,22],"m":"jsr","oa":5866,"o":"draw_maze"},{"a":5166,"t":"code","b":[32,41,27],"m":"jsr","oa":6953,"o":"initialise_enemies"},{"a":5169,"t":"code","b":[32,73,31],"m":"jsr","oa":8009,"o":"draw_bomb_inventory"},{"a":5172,"t":"code","b":[32,24,27],"m":"jsr","oa":6936,"o":"clear_bomb"},{"a":5175,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5177,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"input_fire"},{"a":5179,"t":"code","b":[96],"m":"rts"},{"a":5180,"l":"reset_player","c":"Set the player's position to the exit at $0CDA with zero half-steps and frame 8; sample neighbouring cells and draw the player.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[4428,4463,4557,6664]},{"a":5182,"t":"code","b":[133,30],"m":"sta","oa":30,"o":"player_half_x"},{"a":5184,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"player_half_y"},{"a":5186,"t":"code","b":[133,27],"m":"sta","oa":27,"o":"player_y"},{"a":5188,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":5190,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"player_frame"},{"a":5192,"t":"code","b":[169,36],"m":"lda","o":"#$24"},{"a":5194,"t":"code","b":[133,26],"m":"sta","oa":26,"o":"player_x"},{"a":5196,"t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":5198,"t":"code","b":[133,29],"m":"sta","oa":29,"o":"zpa_1D"},{"a":5200,"t":"code","b":[169,218],"m":"lda","o":"#$DA"},{"a":5202,"t":"code","b":[133,28],"m":"sta","oa":28,"o":"player_screen"},{"a":5204,"t":"code","b":[32,149,23],"m":"jsr","oa":6037,"o":"sample_player_neighbours"},{"a":5207,"t":"code","b":[76,1,22],"m":"jmp","oa":5633,"o":"redraw_player"},{"a":5210,"l":"move_player","c":"Poll input, test current enemy/explosion contact and erase the old player. Test requests in right, left, up, down order. During a vertical half-step, right instead finishes up if up is held, otherwise down; left finishes down if down is held, otherwise up. Once vertically aligned, right tests neighbours on horizontal half-step one and left on zero. Update the pointer/frame and redraw.","t":"code","b":[32,57,19],"m":"jsr","oa":4921,"o":"poll_inputs","x":[4475]},{"a":5213,"t":"code","b":[32,41,26],"m":"jsr","oa":6697,"o":"check_player_contact"},{"a":5216,"t":"code","b":[32,5,22],"m":"jsr","oa":5637,"o":"erase_player"},{"a":5219,"t":"code","b":[165,19],"m":"lda","oa":19,"o":"input_right"},{"a":5221,"t":"code","b":[208,84],"m":"bne","oa":5307,"o":"b_14BB"},{"a":5223,"t":"code","b":[165,31],"m":"lda","oa":31,"o":"player_half_y"},{"a":5225,"t":"code","b":[240,10],"m":"beq","oa":5237,"o":"b_1475"},{"a":5227,"t":"code","b":[165,17],"m":"lda","oa":17,"o":"input_up"},{"a":5229,"t":"code","b":[240,3],"m":"beq","oa":5234,"o":"b_1472"},{"a":5231,"t":"code","b":[76,194,21],"m":"jmp","oa":5570,"o":"step_down"},{"a":5234,"l":"b_1472","t":"code","b":[76,112,21],"m":"jmp","oa":5488,"o":"step_up","x":[5229]},{"a":5237,"l":"b_1475","t":"code","b":[165,30],"m":"lda","oa":30,"o":"player_half_x","x":[5225]},{"a":5239,"t":"code","b":[240,12],"m":"beq","oa":5253,"o":"b_1485"},{"a":5241,"t":"code","b":[165,36],"m":"lda","oa":36,"o":"zpa_24"},{"a":5243,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":5245,"t":"code","b":[208,60],"m":"bne","oa":5307,"o":"b_14BB"},{"a":5247,"t":"code","b":[165,37],"m":"lda","oa":37,"o":"zpa_25"},{"a":5249,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":5251,"t":"code","b":[208,54],"m":"bne","oa":5307,"o":"b_14BB"},{"a":5253,"l":"b_1485","t":"code","b":[230,26],"m":"inc","oa":26,"o":"player_x","x":[5239]},{"a":5255,"t":"code","b":[230,30],"m":"inc","oa":30,"o":"player_half_x"},{"a":5257,"t":"code","b":[165,30],"m":"lda","oa":30,"o":"player_half_x"},{"a":5259,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":5261,"t":"code","b":[208,10],"m":"bne","oa":5273,"o":"b_1499"},{"a":5263,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5265,"t":"code","b":[133,30],"m":"sta","oa":30,"o":"player_half_x"},{"a":5267,"t":"code","b":[230,28],"m":"inc","oa":28,"o":"player_screen"},{"a":5269,"t":"code","b":[208,2],"m":"bne","oa":5273,"o":"b_1499"},{"a":5271,"t":"code","b":[230,29],"m":"inc","oa":29,"o":"zpa_1D"},{"a":5273,"l":"b_1499","t":"code","b":[165,32],"m":"lda","oa":32,"o":"player_frame","x":[5261,5269]},{"a":5275,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":5277,"t":"code","b":[144,13],"m":"bcc","oa":5292,"o":"b_14AC"},{"a":5279,"t":"code","b":[56],"m":"sec"},{"a":5280,"t":"code","b":[233,4],"m":"sbc","o":"#$04"},{"a":5282,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"player_frame"},{"a":5284,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":5286,"t":"code","b":[144,4],"m":"bcc","oa":5292,"o":"b_14AC"},{"a":5288,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5290,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"player_frame"},{"a":5292,"l":"b_14AC","t":"code","b":[230,32],"m":"inc","oa":32,"o":"player_frame","x":[5277,5286]},{"a":5294,"t":"code","b":[165,32],"m":"lda","oa":32,"o":"player_frame"},{"a":5296,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":5298,"t":"code","b":[144,4],"m":"bcc","oa":5304,"o":"b_14B8"},{"a":5300,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5302,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"player_frame"},{"a":5304,"l":"b_14B8","t":"code","b":[76,1,22],"m":"jmp","oa":5633,"o":"redraw_player","x":[5298]},{"a":5307,"l":"b_14BB","t":"code","b":[165,20],"m":"lda","oa":20,"o":"input_left","x":[5221,5245,5251]},{"a":5309,"t":"code","b":[208,84],"m":"bne","oa":5395,"o":"b_1513"},{"a":5311,"t":"code","b":[165,31],"m":"lda","oa":31,"o":"player_half_y"},{"a":5313,"t":"code","b":[240,10],"m":"beq","oa":5325,"o":"b_14CD"},{"a":5315,"t":"code","b":[165,18],"m":"lda","oa":18,"o":"input_down"},{"a":5317,"t":"code","b":[208,3],"m":"bne","oa":5322,"o":"b_14CA"},{"a":5319,"t":"code","b":[76,194,21],"m":"jmp","oa":5570,"o":"step_down"},{"a":5322,"l":"b_14CA","t":"code","b":[76,112,21],"m":"jmp","oa":5488,"o":"step_up","x":[5317]},{"a":5325,"l":"b_14CD","t":"code","b":[165,30],"m":"lda","oa":30,"o":"player_half_x","x":[5313]},{"a":5327,"t":"code","b":[208,12],"m":"bne","oa":5341,"o":"b_14DD"},{"a":5329,"t":"code","b":[165,40],"m":"lda","oa":40,"o":"zpa_28"},{"a":5331,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":5333,"t":"code","b":[208,60],"m":"bne","oa":5395,"o":"b_1513"},{"a":5335,"t":"code","b":[165,41],"m":"lda","oa":41,"o":"zpa_29"},{"a":5337,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":5339,"t":"code","b":[208,54],"m":"bne","oa":5395,"o":"b_1513"},{"a":5341,"l":"b_14DD","t":"code","b":[198,26],"m":"dec","oa":26,"o":"player_x","x":[5327]},{"a":5343,"t":"code","b":[198,30],"m":"dec","oa":30,"o":"player_half_x"},{"a":5345,"t":"code","b":[16,14],"m":"bpl","oa":5361,"o":"b_14F1"},{"a":5347,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5349,"t":"code","b":[133,30],"m":"sta","oa":30,"o":"player_half_x"},{"a":5351,"t":"code","b":[198,28],"m":"dec","oa":28,"o":"player_screen"},{"a":5353,"t":"code","b":[165,28],"m":"lda","oa":28,"o":"player_screen"},{"a":5355,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":5357,"t":"code","b":[208,2],"m":"bne","oa":5361,"o":"b_14F1"},{"a":5359,"t":"code","b":[198,29],"m":"dec","oa":29,"o":"zpa_1D"},{"a":5361,"l":"b_14F1","t":"code","b":[165,32],"m":"lda","oa":32,"o":"player_frame","x":[5345,5357]},{"a":5363,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":5365,"t":"code","b":[176,2],"m":"bcs","oa":5369,"o":"b_14F9"},{"a":5367,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":5369,"l":"b_14F9","t":"code","b":[201,8],"m":"cmp","o":"#$08","x":[5365]},{"a":5371,"t":"code","b":[144,2],"m":"bcc","oa":5375,"o":"b_14FF"},{"a":5373,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":5375,"l":"b_14FF","t":"code","b":[133,32],"m":"sta","oa":32,"o":"player_frame","x":[5371]},{"a":5377,"t":"code","b":[198,32],"m":"dec","oa":32,"o":"player_frame"},{"a":5379,"t":"code","b":[165,32],"m":"lda","oa":32,"o":"player_frame"},{"a":5381,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":5383,"t":"code","b":[176,4],"m":"bcs","oa":5389,"o":"b_150D"},{"a":5385,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":5387,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"player_frame"},{"a":5389,"l":"b_150D","t":"code","b":[76,1,22],"m":"jmp","oa":5633,"o":"redraw_player","x":[5383]},{"a":5392,"l":"b_1510","t":"code","b":[76,174,21],"m":"jmp","oa":5550,"o":"move_down","x":[5397,5405]},{"a":5395,"l":"b_1513","t":"code","b":[165,17],"m":"lda","oa":17,"o":"input_up","x":[5309,5333,5339]},{"a":5397,"t":"code","b":[208,249],"m":"bne","oa":5392,"o":"b_1510"},{"a":5399,"t":"code","b":[165,27],"m":"lda","oa":27,"o":"player_y"},{"a":5401,"t":"code","b":[208,69],"m":"bne","oa":5472,"o":"move_up"},{"a":5403,"t":"code","b":[165,47],"m":"lda","oa":47,"o":"objects_left"},{"a":5405,"t":"code","b":[208,241],"m":"bne","oa":5392,"o":"b_1510"},{"a":5407,"l":"complete_level","c":"Increment the eight-bit level and bomb inventory, fade out, cap inventory at nine, then convert each remaining bonus segment into four ten-point additions and start the next level.","t":"code","b":[230,46],"m":"inc","oa":46,"o":"level_number"},{"a":5409,"t":"code","b":[32,5,22],"m":"jsr","oa":5637,"o":"erase_player"},{"a":5412,"t":"code","b":[32,4,18],"m":"jsr","oa":4612,"o":"fade_out"},{"a":5415,"t":"code","b":[230,123],"m":"inc","oa":123,"o":"bombs_left"},{"a":5417,"t":"code","b":[165,123],"m":"lda","oa":123,"o":"bombs_left"},{"a":5419,"t":"code","b":[201,10],"m":"cmp","o":"#$0A"},{"a":5421,"t":"code","b":[144,2],"m":"bcc","oa":5425,"o":"b_1531"},{"a":5423,"t":"code","b":[198,123],"m":"dec","oa":123,"o":"bombs_left"},{"a":5425,"l":"b_1531","t":"code","b":[198,55],"m":"dec","oa":55,"o":"bonus_segments","x":[5421,5466]},{"a":5427,"t":"code","b":[48,40],"m":"bmi","oa":5469,"o":"b_155D"},{"a":5429,"t":"code","b":[162,50],"m":"ldx","o":"#$32"},{"a":5431,"l":"b_1537","t":"code","b":[32,199,19],"m":"jsr","oa":5063,"o":"silence_sound","x":[5441]},{"a":5434,"t":"code","b":[32,199,19],"m":"jsr","oa":5063,"o":"silence_sound"},{"a":5437,"t":"code","b":[32,199,19],"m":"jsr","oa":5063,"o":"silence_sound"},{"a":5440,"t":"code","b":[202],"m":"dex"},{"a":5441,"t":"code","b":[208,244],"m":"bne","oa":5431,"o":"b_1537"},{"a":5443,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5445,"t":"code","b":[32,255,18],"m":"jsr","oa":4863,"o":"add_tens"},{"a":5448,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5450,"t":"code","b":[32,255,18],"m":"jsr","oa":4863,"o":"add_tens"},{"a":5453,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5455,"t":"code","b":[32,255,18],"m":"jsr","oa":4863,"o":"add_tens"},{"a":5458,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5460,"t":"code","b":[32,255,18],"m":"jsr","oa":4863,"o":"add_tens"},{"a":5463,"t":"code","b":[32,127,25],"m":"jsr","oa":6527,"o":"draw_bonus"},{"a":5466,"t":"code","b":[76,49,21],"m":"jmp","oa":5425,"o":"b_1531"},{"a":5469,"l":"b_155D","t":"code","b":[76,88,17],"m":"jmp","oa":4440,"o":"start_level","x":[5427]},{"a":5472,"l":"move_up","c":"Test the upper pair of surrounding cells unless already in a vertical half-step, then move upward. At the exit, move_player reaches complete_level when player_y and objects_left are both zero.","t":"code","b":[165,31],"m":"lda","oa":31,"o":"player_half_y","x":[5401]},{"a":5474,"t":"code","b":[208,12],"m":"bne","oa":5488,"o":"step_up"},{"a":5476,"t":"code","b":[165,34],"m":"lda","oa":34,"o":"player_neighbours"},{"a":5478,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":5480,"t":"code","b":[208,68],"m":"bne","oa":5550,"o":"move_down"},{"a":5482,"t":"code","b":[165,35],"m":"lda","oa":35,"o":"zpa_23"},{"a":5484,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":5486,"t":"code","b":[208,62],"m":"bne","oa":5550,"o":"move_down"},{"a":5488,"l":"step_up","c":"Decrement player_y, align horizontal position, toggle the vertical half-step and update the upward animation; each completed two-step movement subtracts forty from player_screen.","t":"code","b":[198,27],"m":"dec","oa":27,"o":"player_y","x":[5234,5322,5474]},{"a":5490,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5492,"t":"code","b":[133,30],"m":"sta","oa":30,"o":"player_half_x"},{"a":5494,"t":"code","b":[165,26],"m":"lda","oa":26,"o":"player_x"},{"a":5496,"t":"code","b":[41,254],"m":"and","o":"#$FE"},{"a":5498,"t":"code","b":[133,26],"m":"sta","oa":26,"o":"player_x"},{"a":5500,"t":"code","b":[198,31],"m":"dec","oa":31,"o":"player_half_y"},{"a":5502,"t":"code","b":[16,15],"m":"bpl","oa":5519,"o":"b_158F"},{"a":5504,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5506,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"player_half_y"},{"a":5508,"t":"code","b":[165,28],"m":"lda","oa":28,"o":"player_screen"},{"a":5510,"t":"code","b":[56],"m":"sec"},{"a":5511,"t":"code","b":[233,40],"m":"sbc","o":"#$28"},{"a":5513,"t":"code","b":[133,28],"m":"sta","oa":28,"o":"player_screen"},{"a":5515,"t":"code","b":[176,2],"m":"bcs","oa":5519,"o":"b_158F"},{"a":5517,"t":"code","b":[198,29],"m":"dec","oa":29,"o":"zpa_1D"},{"a":5519,"l":"b_158F","t":"code","b":[165,32],"m":"lda","oa":32,"o":"player_frame","x":[5502,5515]},{"a":5521,"t":"code","b":[201,12],"m":"cmp","o":"#$0C"},{"a":5523,"t":"code","b":[176,8],"m":"bcs","oa":5533,"o":"b_159D"},{"a":5525,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":5527,"t":"code","b":[201,12],"m":"cmp","o":"#$0C"},{"a":5529,"t":"code","b":[176,2],"m":"bcs","oa":5533,"o":"b_159D"},{"a":5531,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":5533,"l":"b_159D","t":"code","b":[133,32],"m":"sta","oa":32,"o":"player_frame","x":[5523,5529]},{"a":5535,"t":"code","b":[198,32],"m":"dec","oa":32,"o":"player_frame"},{"a":5537,"t":"code","b":[165,32],"m":"lda","oa":32,"o":"player_frame"},{"a":5539,"t":"code","b":[201,12],"m":"cmp","o":"#$0C"},{"a":5541,"t":"code","b":[176,4],"m":"bcs","oa":5547,"o":"b_15AB"},{"a":5543,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":5545,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"player_frame"},{"a":5547,"l":"b_15AB","t":"code","b":[76,1,22],"m":"jmp","oa":5633,"o":"redraw_player","x":[5541]},{"a":5550,"l":"move_down","c":"Require down input and a free lower pair unless midway through a vertical half-step, then enter step_down.","t":"code","b":[165,18],"m":"lda","oa":18,"o":"input_down","x":[5392,5480,5486]},{"a":5552,"t":"code","b":[208,79],"m":"bne","oa":5633,"o":"redraw_player"},{"a":5554,"t":"code","b":[165,31],"m":"lda","oa":31,"o":"player_half_y"},{"a":5556,"t":"code","b":[208,12],"m":"bne","oa":5570,"o":"step_down"},{"a":5558,"t":"code","b":[165,38],"m":"lda","oa":38,"o":"zpa_26"},{"a":5560,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":5562,"t":"code","b":[208,69],"m":"bne","oa":5633,"o":"redraw_player"},{"a":5564,"t":"code","b":[165,39],"m":"lda","oa":39,"o":"zpa_27"},{"a":5566,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":5568,"t":"code","b":[208,63],"m":"bne","oa":5633,"o":"redraw_player"},{"a":5570,"l":"step_down","c":"Increment player_y, align horizontal position, toggle the vertical half-step and update the downward animation; each completed two-step movement adds forty to player_screen.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[5231,5319,5556]},{"a":5572,"t":"code","b":[133,30],"m":"sta","oa":30,"o":"player_half_x"},{"a":5574,"t":"code","b":[165,26],"m":"lda","oa":26,"o":"player_x"},{"a":5576,"t":"code","b":[41,254],"m":"and","o":"#$FE"},{"a":5578,"t":"code","b":[133,26],"m":"sta","oa":26,"o":"player_x"},{"a":5580,"t":"code","b":[230,27],"m":"inc","oa":27,"o":"player_y"},{"a":5582,"t":"code","b":[230,31],"m":"inc","oa":31,"o":"player_half_y"},{"a":5584,"t":"code","b":[165,31],"m":"lda","oa":31,"o":"player_half_y"},{"a":5586,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":5588,"t":"code","b":[208,15],"m":"bne","oa":5605,"o":"b_15E5"},{"a":5590,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5592,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"player_half_y"},{"a":5594,"t":"code","b":[165,28],"m":"lda","oa":28,"o":"player_screen"},{"a":5596,"t":"code","b":[24],"m":"clc"},{"a":5597,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":5599,"t":"code","b":[133,28],"m":"sta","oa":28,"o":"player_screen"},{"a":5601,"t":"code","b":[144,2],"m":"bcc","oa":5605,"o":"b_15E5"},{"a":5603,"t":"code","b":[230,29],"m":"inc","oa":29,"o":"zpa_1D"},{"a":5605,"l":"b_15E5","t":"code","b":[165,32],"m":"lda","oa":32,"o":"player_frame","x":[5588,5601]},{"a":5607,"t":"code","b":[201,12],"m":"cmp","o":"#$0C"},{"a":5609,"t":"code","b":[144,2],"m":"bcc","oa":5613,"o":"b_15ED"},{"a":5611,"t":"code","b":[233,4],"m":"sbc","o":"#$04"},{"a":5613,"l":"b_15ED","t":"code","b":[201,8],"m":"cmp","o":"#$08","x":[5609]},{"a":5615,"t":"code","b":[176,2],"m":"bcs","oa":5619,"o":"b_15F3"},{"a":5617,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":5619,"l":"b_15F3","t":"code","b":[133,32],"m":"sta","oa":32,"o":"player_frame","x":[5615]},{"a":5621,"t":"code","b":[230,32],"m":"inc","oa":32,"o":"player_frame"},{"a":5623,"t":"code","b":[165,32],"m":"lda","oa":32,"o":"player_frame"},{"a":5625,"t":"code","b":[201,12],"m":"cmp","o":"#$0C"},{"a":5627,"t":"code","b":[208,4],"m":"bne","oa":5633,"o":"redraw_player"},{"a":5629,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":5631,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"player_frame"},{"a":5633,"l":"redraw_player","c":"Call draw_player after movement or reset, then return to the caller of the movement entry.","t":"code","b":[32,33,22],"m":"jsr","oa":5665,"o":"draw_player","x":[5207,5304,5389,5547,5552,5562,5568,5627]},{"a":5636,"t":"code","b":[96],"m":"rts"},{"a":5637,"l":"erase_player","c":"Position the inline printer at player_screen and erase a two-by-two footprint; when player_half_y is nonzero also erase a third row.","t":"code","b":[165,29],"m":"lda","oa":29,"o":"zpa_1D","x":[4493,5216,5409,6645,6661]},{"a":5639,"t":"code","b":[166,28],"m":"ldx","oa":28,"o":"player_screen"},{"a":5641,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":5644,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":5647,"l":"erase_player_cells","c":"Two spaces, a newline and two spaces, terminated by zero; inline argument to erase_player.","t":"byte","b":[32,32,13,32,32,0]},{"a":5653,"l":"erase_player_if_tall","c":"After erasing the base two-by-two footprint, inspect player_half_y and print the additional blank row when it is nonzero.","t":"code","b":[165,31],"m":"lda","oa":31,"o":"player_half_y"},{"a":5655,"t":"code","b":[240,7],"m":"beq","oa":5664,"o":"erase_player_return"},{"a":5657,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":5660,"l":"erase_player_extra_row","c":"Newline and two spaces for the third row of a vertically shifted player.","t":"byte","b":[13,32,32,0]},{"a":5664,"l":"erase_player_return","c":"Return after the optional third row of player erasure.","t":"code","b":[96],"m":"rts","x":[5655]},{"a":5665,"l":"draw_player","c":"Draw player glyph codes $FA-$FD at player_screen and $FE-$FF for a third row when vertically shifted, then select a frame using player_frame and copy 48 source bytes to $3FD0-$3FFF.","t":"code","b":[165,29],"m":"lda","oa":29,"o":"zpa_1D","x":[5633,6577]},{"a":5667,"t":"code","b":[166,28],"m":"ldx","oa":28,"o":"player_screen"},{"a":5669,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":5672,"t":"code","b":[169,74],"m":"lda","o":"#$4A"},{"a":5674,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":5676,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":5679,"l":"player_cells","c":"Inline two-by-two player character codes $FA,$FB/$FC,$FD, with newline and terminator.","t":"byte","b":[250,251,13,252,253,0]},{"a":5685,"l":"draw_player_if_tall","c":"After printing the base player cells, print $FE,$FF in a third row when the vertical half-step is nonzero, then select the bitmap frame.","t":"code","b":[165,31],"m":"lda","oa":31,"o":"player_half_y"},{"a":5687,"t":"code","b":[240,7],"m":"beq","oa":5696,"o":"copy_player_frame"},{"a":5689,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":5692,"l":"player_extra_row","c":"Inline third-row codes $FE,$FF, preceded by newline and followed by zero.","t":"byte","b":[13,254,255,0]},{"a":5696,"l":"copy_player_frame","c":"Read the horizontal or vertical source pointer, choose the 32- or 48-byte stride from player_frame, advance to that frame and copy 48 bytes into the six player glyphs at $3FD0.","t":"code","b":[173,0,51],"m":"lda","oa":13056,"o":"horizontal_player_ptr","x":[5687]},{"a":5699,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":5701,"t":"code","b":[173,1,51],"m":"lda","oa":13057,"o":"$3301"},{"a":5704,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":5706,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":5708,"t":"code","b":[133,33],"m":"sta","oa":33,"o":"player_frame_stride"},{"a":5710,"t":"code","b":[165,32],"m":"lda","oa":32,"o":"player_frame"},{"a":5712,"t":"code","b":[201,8],"m":"cmp","o":"#$08"},{"a":5714,"t":"code","b":[144,19],"m":"bcc","oa":5735,"o":"b_1667"},{"a":5716,"t":"code","b":[173,2,51],"m":"lda","oa":13058,"o":"vertical_player_ptr"},{"a":5719,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":5721,"t":"code","b":[173,3,51],"m":"lda","oa":13059,"o":"$3303"},{"a":5724,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":5726,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":5728,"t":"code","b":[133,33],"m":"sta","oa":33,"o":"player_frame_stride"},{"a":5730,"t":"code","b":[165,32],"m":"lda","oa":32,"o":"player_frame"},{"a":5732,"t":"code","b":[56],"m":"sec"},{"a":5733,"t":"code","b":[233,8],"m":"sbc","o":"#$08"},{"a":5735,"l":"b_1667","t":"code","b":[170],"m":"tax","x":[5714]},{"a":5736,"l":"b_1668","t":"code","b":[202],"m":"dex","x":[5746,5750]},{"a":5737,"t":"code","b":[48,14],"m":"bmi","oa":5753,"o":"b_1679"},{"a":5739,"t":"code","b":[165,3],"m":"lda","oa":3,"o":"scratch_ptr"},{"a":5741,"t":"code","b":[24],"m":"clc"},{"a":5742,"t":"code","b":[101,33],"m":"adc","oa":33,"o":"player_frame_stride"},{"a":5744,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":5746,"t":"code","b":[144,244],"m":"bcc","oa":5736,"o":"b_1668"},{"a":5748,"t":"code","b":[230,4],"m":"inc","oa":4,"o":"zpa_04"},{"a":5750,"t":"code","b":[76,104,22],"m":"jmp","oa":5736,"o":"b_1668"},{"a":5753,"l":"b_1679","t":"code","b":[160,47],"m":"ldy","o":"#$2F","x":[5737]},{"a":5755,"l":"b_167B","t":"code","b":[177,3],"m":"lda","oa":3,"o":"(scratch_ptr),y","x":[5761]},{"a":5757,"t":"code","b":[153,208,63],"m":"sta","oa":16336,"o":"f_3FD0,y"},{"a":5760,"t":"code","b":[136],"m":"dey"},{"a":5761,"t":"code","b":[16,248],"m":"bpl","oa":5755,"o":"b_167B"},{"a":5763,"t":"code","b":[96],"m":"rts"},{"a":5764,"l":"set_print_pointer_ay","c":"Accept the low pointer in A and high pointer in Y, move them to A:X and enter set_print_pointer.","t":"code","b":[170],"m":"tax","x":[5791,5840,5863,5922,6342]},{"a":5765,"t":"code","b":[152],"m":"tya"},{"a":5766,"t":"code","b":[76,190,19],"m":"jmp","oa":5054,"o":"set_print_pointer"},{"a":5769,"l":"draw_wall","c":"Choose the level's wall colour, print the four wall glyphs, then fall through to advance_map_cell.","t":"code","b":[32,63,25],"m":"jsr","oa":6463,"o":"select_wall_colour","x":[5798,5939,5958,5977,6007]},{"a":5772,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":5775,"l":"wall_cells","c":"Inline two-by-two wall character selectors; print_char converts $1C-$1F to glyphs $5C-$5F.","t":"byte","b":[28,29,13,30,31,0]},{"a":5781,"l":"advance_map_cell","c":"From the pointer left by a two-row inline tile, subtract $26 so the next tile begins two characters to the right of the previous tile's start.","t":"code","b":[164,14],"m":"ldy","oa":14,"o":"zpa_0E","x":[5813]},{"a":5783,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"print_ptr"},{"a":5785,"t":"code","b":[56],"m":"sec"},{"a":5786,"t":"code","b":[233,38],"m":"sbc","o":"#$26"},{"a":5788,"t":"code","b":[176,1],"m":"bcs","oa":5791,"o":"b_169F"},{"a":5790,"t":"code","b":[136],"m":"dey"},{"a":5791,"l":"b_169F","t":"code","b":[76,132,22],"m":"jmp","oa":5764,"o":"set_print_pointer_ay","x":[5788]},{"a":5794,"l":"draw_map_bit","c":"Shift one wall bit from A. A set bit draws a wall; a clear bit prints a two-by-two space and advances. Preserve the shifted packet on the stack across drawing.","t":"code","b":[74],"m":"lsr","o":"a","x":[5818,5821,5824,5844,5847,5850]},{"a":5795,"t":"code","b":[72],"m":"pha"},{"a":5796,"t":"code","b":[144,6],"m":"bcc","oa":5804,"o":"b_16AC"},{"a":5798,"t":"code","b":[32,137,22],"m":"jsr","oa":5769,"o":"draw_wall"},{"a":5801,"t":"code","b":[76,184,22],"m":"jmp","oa":5816,"o":"j_16B8"},{"a":5804,"l":"b_16AC","t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline","x":[5796]},{"a":5807,"l":"floor_cells","c":"Inline two-by-two space argument used when a maze wall bit is clear.","t":"byte","b":[32,32,13,32,32,0]},{"a":5813,"l":"map_floor_advance","c":"After printing an empty two-by-two map tile, advance to the next two-character-wide cell and restore the shifted packet from the stack.","t":"code","b":[32,149,22],"m":"jsr","oa":5781,"o":"advance_map_cell"},{"a":5816,"l":"j_16B8","t":"code","b":[104],"m":"pla","x":[5801]},{"a":5817,"t":"code","b":[96],"m":"rts"},{"a":5818,"l":"draw_six_map_cells","c":"Draw three wall bits in a horizontal strip, advance eighty character cells to the strip below, draw three more bits and return the pointer to the next packet's top strip.","t":"code","b":[32,162,22],"m":"jsr","oa":5794,"o":"draw_map_bit","x":[6108,6114]},{"a":5821,"t":"code","b":[32,162,22],"m":"jsr","oa":5794,"o":"draw_map_bit"},{"a":5824,"t":"code","b":[32,162,22],"m":"jsr","oa":5794,"o":"draw_map_bit"},{"a":5827,"t":"code","b":[72],"m":"pha"},{"a":5828,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"print_ptr"},{"a":5830,"t":"code","b":[164,14],"m":"ldy","oa":14,"o":"zpa_0E"},{"a":5832,"t":"code","b":[24],"m":"clc"},{"a":5833,"t":"code","b":[105,74],"m":"adc","o":"#$4A"},{"a":5835,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"print_ptr"},{"a":5837,"t":"code","b":[144,1],"m":"bcc","oa":5840,"o":"b_16D0"},{"a":5839,"t":"code","b":[200],"m":"iny"},{"a":5840,"l":"b_16D0","t":"code","b":[32,132,22],"m":"jsr","oa":5764,"o":"set_print_pointer_ay","x":[5837]},{"a":5843,"t":"code","b":[104],"m":"pla"},{"a":5844,"t":"code","b":[32,162,22],"m":"jsr","oa":5794,"o":"draw_map_bit"},{"a":5847,"t":"code","b":[32,162,22],"m":"jsr","oa":5794,"o":"draw_map_bit"},{"a":5850,"t":"code","b":[32,162,22],"m":"jsr","oa":5794,"o":"draw_map_bit"},{"a":5853,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"print_ptr"},{"a":5855,"t":"code","b":[164,14],"m":"ldy","oa":14,"o":"zpa_0E"},{"a":5857,"t":"code","b":[56],"m":"sec"},{"a":5858,"t":"code","b":[233,80],"m":"sbc","o":"#$50"},{"a":5860,"t":"code","b":[176,1],"m":"bcs","oa":5863,"o":"b_16E7"},{"a":5862,"t":"code","b":[136],"m":"dey"},{"a":5863,"l":"b_16E7","t":"code","b":[76,132,22],"m":"jmp","oa":5764,"o":"set_print_pointer_ay","x":[5860]},{"a":5866,"l":"draw_maze","c":"Start at $0D1A, clear objects_left and process four rows of six maze packets; draw_maze_row advances the printer by four character rows after each row.","t":"code","b":[162,26],"m":"ldx","o":"#$1A","x":[5163]},{"a":5868,"t":"code","b":[169,13],"m":"lda","o":"#$0D"},{"a":5870,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":5873,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":5875,"t":"code","b":[134,47],"m":"stx","oa":47,"o":"objects_left"},{"a":5877,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":5879,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpa_06"},{"a":5881,"l":"b_16F9","t":"code","b":[160,6],"m":"ldy","o":"#$06","x":[5888]},{"a":5883,"t":"code","b":[32,3,23],"m":"jsr","oa":5891,"o":"draw_maze_row"},{"a":5886,"t":"code","b":[198,6],"m":"dec","oa":6,"o":"zpa_06"},{"a":5888,"t":"code","b":[208,247],"m":"bne","oa":5881,"o":"b_16F9"},{"a":5890,"t":"code","b":[96],"m":"rts"},{"a":5891,"l":"draw_maze_row","c":"Read six bytes through maze_ptr with X as stream offset, draw each packet and advance the print pointer to the next row of packets. Preserve the loop counters across drawing.","t":"code","b":[134,8],"m":"stx","oa":8,"o":"loop_scratch","x":[5883,5910]},{"a":5893,"t":"code","b":[132,7],"m":"sty","oa":7,"o":"row_groups_left"},{"a":5895,"t":"code","b":[138],"m":"txa"},{"a":5896,"t":"code","b":[168],"m":"tay"},{"a":5897,"t":"code","b":[177,44],"m":"lda","oa":44,"o":"(maze_ptr),y"},{"a":5899,"t":"code","b":[32,214,23],"m":"jsr","oa":6102,"o":"draw_maze_packet"},{"a":5902,"t":"code","b":[166,8],"m":"ldx","oa":8,"o":"loop_scratch"},{"a":5904,"t":"code","b":[164,7],"m":"ldy","oa":7,"o":"row_groups_left"},{"a":5906,"t":"code","b":[232],"m":"inx"},{"a":5907,"t":"code","b":[134,8],"m":"stx","oa":8,"o":"loop_scratch"},{"a":5909,"t":"code","b":[136],"m":"dey"},{"a":5910,"t":"code","b":[208,235],"m":"bne","oa":5891,"o":"draw_maze_row"},{"a":5912,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"print_ptr"},{"a":5914,"t":"code","b":[164,14],"m":"ldy","oa":14,"o":"zpa_0E"},{"a":5916,"t":"code","b":[24],"m":"clc"},{"a":5917,"t":"code","b":[105,124],"m":"adc","o":"#$7C"},{"a":5919,"t":"code","b":[144,1],"m":"bcc","oa":5922,"o":"b_1722"},{"a":5921,"t":"code","b":[200],"m":"iny"},{"a":5922,"l":"b_1722","t":"code","b":[32,132,22],"m":"jsr","oa":5764,"o":"set_print_pointer_ay","x":[5919]},{"a":5925,"t":"code","b":[166,8],"m":"ldx","oa":8,"o":"loop_scratch"},{"a":5927,"t":"code","b":[96],"m":"rts"},{"a":5928,"l":"draw_border","c":"Draw twenty wall tiles across the upper and lower edges and eight down each side; erase the two-by-two exit at $0CDA.","t":"code","b":[169,12],"m":"lda","o":"#$0C","x":[5154]},{"a":5930,"t":"code","b":[162,200],"m":"ldx","o":"#$C8"},{"a":5932,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":5935,"t":"code","b":[162,20],"m":"ldx","o":"#$14"},{"a":5937,"l":"b_1731","t":"code","b":[134,8],"m":"stx","oa":8,"o":"loop_scratch","x":[5945]},{"a":5939,"t":"code","b":[32,137,22],"m":"jsr","oa":5769,"o":"draw_wall"},{"a":5942,"t":"code","b":[166,8],"m":"ldx","oa":8,"o":"loop_scratch"},{"a":5944,"t":"code","b":[202],"m":"dex"},{"a":5945,"t":"code","b":[208,246],"m":"bne","oa":5937,"o":"b_1731"},{"a":5947,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":5949,"t":"code","b":[162,152],"m":"ldx","o":"#$98"},{"a":5951,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":5954,"t":"code","b":[162,20],"m":"ldx","o":"#$14"},{"a":5956,"l":"b_1744","t":"code","b":[134,8],"m":"stx","oa":8,"o":"loop_scratch","x":[5964]},{"a":5958,"t":"code","b":[32,137,22],"m":"jsr","oa":5769,"o":"draw_wall"},{"a":5961,"t":"code","b":[166,8],"m":"ldx","oa":8,"o":"loop_scratch"},{"a":5963,"t":"code","b":[202],"m":"dex"},{"a":5964,"t":"code","b":[208,246],"m":"bne","oa":5956,"o":"b_1744"},{"a":5966,"t":"code","b":[169,13],"m":"lda","o":"#$0D"},{"a":5968,"t":"code","b":[162,24],"m":"ldx","o":"#$18"},{"a":5970,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":5973,"t":"code","b":[162,8],"m":"ldx","o":"#$08"},{"a":5975,"l":"b_1757","t":"code","b":[134,8],"m":"stx","oa":8,"o":"loop_scratch","x":[5994]},{"a":5977,"t":"code","b":[32,137,22],"m":"jsr","oa":5769,"o":"draw_wall"},{"a":5980,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"print_ptr"},{"a":5982,"t":"code","b":[24],"m":"clc"},{"a":5983,"t":"code","b":[105,78],"m":"adc","o":"#$4E"},{"a":5985,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"print_ptr"},{"a":5987,"t":"code","b":[144,2],"m":"bcc","oa":5991,"o":"b_1767"},{"a":5989,"t":"code","b":[230,14],"m":"inc","oa":14,"o":"zpa_0E"},{"a":5991,"l":"b_1767","t":"code","b":[166,8],"m":"ldx","oa":8,"o":"loop_scratch","x":[5987]},{"a":5993,"t":"code","b":[202],"m":"dex"},{"a":5994,"t":"code","b":[208,235],"m":"bne","oa":5975,"o":"b_1757"},{"a":5996,"t":"code","b":[169,13],"m":"lda","o":"#$0D"},{"a":5998,"t":"code","b":[162,62],"m":"ldx","o":"#$3E"},{"a":6000,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":6003,"t":"code","b":[162,8],"m":"ldx","o":"#$08"},{"a":6005,"l":"b_1775","t":"code","b":[134,8],"m":"stx","oa":8,"o":"loop_scratch","x":[6024]},{"a":6007,"t":"code","b":[32,137,22],"m":"jsr","oa":5769,"o":"draw_wall"},{"a":6010,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"print_ptr"},{"a":6012,"t":"code","b":[24],"m":"clc"},{"a":6013,"t":"code","b":[105,78],"m":"adc","o":"#$4E"},{"a":6015,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"print_ptr"},{"a":6017,"t":"code","b":[144,2],"m":"bcc","oa":6021,"o":"b_1785"},{"a":6019,"t":"code","b":[230,14],"m":"inc","oa":14,"o":"zpa_0E"},{"a":6021,"l":"b_1785","t":"code","b":[166,8],"m":"ldx","oa":8,"o":"loop_scratch","x":[6017]},{"a":6023,"t":"code","b":[202],"m":"dex"},{"a":6024,"t":"code","b":[208,235],"m":"bne","oa":6005,"o":"b_1775"},{"a":6026,"t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":6028,"t":"code","b":[162,218],"m":"ldx","o":"#$DA"},{"a":6030,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":6033,"t":"code","b":[32,229,24],"m":"jsr","oa":6373,"o":"erase_tile"},{"a":6036,"t":"code","b":[96],"m":"rts"},{"a":6037,"l":"sample_player_neighbours","c":"Build player_screen minus 41 and read eight edge cells into player_neighbours using offsets for two cells on each side of the player.","t":"code","b":[165,29],"m":"lda","oa":29,"o":"zpa_1D","x":[4466,5204,6275]},{"a":6039,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":6041,"t":"code","b":[165,28],"m":"lda","oa":28,"o":"player_screen"},{"a":6043,"t":"code","b":[56],"m":"sec"},{"a":6044,"t":"code","b":[233,41],"m":"sbc","o":"#$29"},{"a":6046,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":6048,"t":"code","b":[176,2],"m":"bcs","oa":6052,"o":"b_17A4"},{"a":6050,"t":"code","b":[198,4],"m":"dec","oa":4,"o":"zpa_04"},{"a":6052,"l":"b_17A4","t":"code","b":[160,1],"m":"ldy","o":"#$01","x":[6048]},{"a":6054,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":6056,"t":"code","b":[32,202,23],"m":"jsr","oa":6090,"o":"sample_neighbour"},{"a":6059,"t":"code","b":[200],"m":"iny"},{"a":6060,"t":"code","b":[32,202,23],"m":"jsr","oa":6090,"o":"sample_neighbour"},{"a":6063,"t":"code","b":[160,43],"m":"ldy","o":"#$2B"},{"a":6065,"t":"code","b":[32,202,23],"m":"jsr","oa":6090,"o":"sample_neighbour"},{"a":6068,"t":"code","b":[160,83],"m":"ldy","o":"#$53"},{"a":6070,"t":"code","b":[32,202,23],"m":"jsr","oa":6090,"o":"sample_neighbour"},{"a":6073,"t":"code","b":[160,121],"m":"ldy","o":"#$79"},{"a":6075,"t":"code","b":[32,202,23],"m":"jsr","oa":6090,"o":"sample_neighbour"},{"a":6078,"t":"code","b":[160,122],"m":"ldy","o":"#$7A"},{"a":6080,"t":"code","b":[32,202,23],"m":"jsr","oa":6090,"o":"sample_neighbour"},{"a":6083,"t":"code","b":[160,40],"m":"ldy","o":"#$28"},{"a":6085,"t":"code","b":[32,202,23],"m":"jsr","oa":6090,"o":"sample_neighbour"},{"a":6088,"t":"code","b":[160,80],"m":"ldy","o":"#$50"},{"a":6090,"l":"sample_neighbour","c":"Read one screen cell through scratch_ptr and Y; replace character codes $60 or higher with a space before storing in player_neighbours at X and incrementing X.","t":"code","b":[177,3],"m":"lda","oa":3,"o":"(scratch_ptr),y","x":[6056,6060,6065,6070,6075,6080,6085]},{"a":6092,"t":"code","b":[201,96],"m":"cmp","o":"#$60"},{"a":6094,"t":"code","b":[144,2],"m":"bcc","oa":6098,"o":"b_17D2"},{"a":6096,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":6098,"l":"b_17D2","t":"code","b":[149,34],"m":"sta","oa":34,"o":"player_neighbours,x","x":[6094]},{"a":6100,"t":"code","b":[232],"m":"inx"},{"a":6101,"t":"code","b":[96],"m":"rts"},{"a":6102,"l":"draw_maze_packet","c":"Decode six wall bits and the high-two-bit object type from a maze byte. For an object packet, count it, select its glyphs and colour, and place it in the first clear wall position among the six cells.","t":"code","b":[72],"m":"pha","x":[5899]},{"a":6103,"t":"code","b":[41,192],"m":"and","o":"#$C0"},{"a":6105,"t":"code","b":[208,4],"m":"bne","oa":6111,"o":"b_17DF"},{"a":6107,"t":"code","b":[104],"m":"pla"},{"a":6108,"t":"code","b":[76,186,22],"m":"jmp","oa":5818,"o":"draw_six_map_cells"},{"a":6111,"l":"b_17DF","t":"code","b":[104],"m":"pla","x":[6105]},{"a":6112,"t":"code","b":[133,114],"m":"sta","oa":114,"o":"draw_scratch"},{"a":6114,"t":"code","b":[32,186,22],"m":"jsr","oa":5818,"o":"draw_six_map_cells"},{"a":6117,"t":"code","b":[230,47],"m":"inc","oa":47,"o":"objects_left"},{"a":6119,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":6121,"t":"code","b":[72],"m":"pha"},{"a":6122,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"print_ptr"},{"a":6124,"t":"code","b":[72],"m":"pha"},{"a":6125,"t":"code","b":[165,114],"m":"lda","oa":114,"o":"draw_scratch"},{"a":6127,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6128,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6129,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6130,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6131,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6132,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6133,"t":"code","b":[170],"m":"tax"},{"a":6134,"t":"code","b":[72],"m":"pha"},{"a":6135,"t":"code","b":[189,62,24],"m":"lda","oa":6206,"o":"pickup_glyphs,x"},{"a":6138,"t":"code","b":[170],"m":"tax"},{"a":6139,"t":"code","b":[142,47,24],"m":"stx","oa":6191,"o":"pickup_cells"},{"a":6142,"t":"code","b":[232],"m":"inx"},{"a":6143,"t":"code","b":[142,48,24],"m":"stx","oa":6192,"o":"$1830"},{"a":6146,"t":"code","b":[232],"m":"inx"},{"a":6147,"t":"code","b":[142,50,24],"m":"stx","oa":6194,"o":"$1832"},{"a":6150,"t":"code","b":[232],"m":"inx"},{"a":6151,"t":"code","b":[142,51,24],"m":"stx","oa":6195,"o":"$1833"},{"a":6154,"t":"code","b":[104],"m":"pla"},{"a":6155,"t":"code","b":[170],"m":"tax"},{"a":6156,"t":"code","b":[189,84,24],"m":"lda","oa":6228,"o":"pickup_colours,x"},{"a":6159,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":6161,"t":"code","b":[165,114],"m":"lda","oa":114,"o":"draw_scratch"},{"a":6163,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":6165,"l":"b_1815","t":"code","b":[202],"m":"dex","x":[6167]},{"a":6166,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6167,"t":"code","b":[176,252],"m":"bcs","oa":6165,"o":"b_1815"},{"a":6169,"t":"code","b":[189,70,24],"m":"lda","oa":6214,"o":"pickup_offsets,x"},{"a":6172,"t":"code","b":[24],"m":"clc"},{"a":6173,"t":"code","b":[101,13],"m":"adc","oa":13,"o":"print_ptr"},{"a":6175,"t":"code","b":[144,2],"m":"bcc","oa":6179,"o":"b_1823"},{"a":6177,"t":"code","b":[230,14],"m":"inc","oa":14,"o":"zpa_0E"},{"a":6179,"l":"b_1823","t":"code","b":[56],"m":"sec","x":[6175]},{"a":6180,"t":"code","b":[233,6],"m":"sbc","o":"#$06"},{"a":6182,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"print_ptr"},{"a":6184,"t":"code","b":[176,2],"m":"bcs","oa":6188,"o":"b_182C"},{"a":6186,"t":"code","b":[198,14],"m":"dec","oa":14,"o":"zpa_0E"},{"a":6188,"l":"b_182C","t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline","x":[6184]},{"a":6191,"l":"pickup_cells","c":"Four mutable inline character selectors. draw_maze_packet writes four consecutive parameters here, beginning at $04, $08 or $10; print_char converts them to glyphs $44-$47, $48-$4B or $50-$53. After printing, the saved map pointer is restored.","t":"byte","b":[65,65,13,65,65,0],"x":[6139]},{"a":6197,"l":"restore_packet_cursor","c":"Restore the wall colour and the saved map printing pointer after drawing an object, then return from draw_maze_packet.","t":"code","b":[32,63,25],"m":"jsr","oa":6463,"o":"select_wall_colour"},{"a":6200,"t":"code","b":[104],"m":"pla"},{"a":6201,"t":"code","b":[170],"m":"tax"},{"a":6202,"t":"code","b":[104],"m":"pla"},{"a":6203,"t":"code","b":[76,190,19],"m":"jmp","oa":5054,"o":"set_print_pointer"},{"a":6206,"l":"pickup_glyphs","c":"Object types 1-3 select base glyph parameters $04,$08,$10; print_char turns them into $44,$48,$50. The remaining bytes are retained alongside these selectors.","t":"byte","b":[65,4,8,16,20,24,0,1],"x":[6135]},{"a":6214,"l":"pickup_offsets","c":"First six bytes locate the six wall positions in a three-by-two packet: 84,82,80,4,2,0. draw_maze_packet indexes these in reverse while finding the first clear bit; eight trailing bytes are retained data.","t":"byte","b":[84,82,80,4,2,0,82,2],"x":[6169]},{"a":6222,"t":"byte","b":[84,4,82,2,82,80]},{"a":6228,"l":"pickup_colours","c":"TED attributes indexed by the packet's high two bits; types 1,2,3 use $17,$14,$02.","t":"byte","b":[4,23,20,2],"x":[6156]},{"a":6232,"l":"select_maze","c":"Take maze_base and advance by 24 bytes for each preceding units digit. Digits 1-9 select records 0-8; units zero selects record 9.","t":"code","b":[173,15,32],"m":"lda","oa":8207,"o":"maze_base","x":[5160]},{"a":6235,"t":"code","b":[133,44],"m":"sta","oa":44,"o":"maze_ptr"},{"a":6237,"t":"code","b":[173,16,32],"m":"lda","oa":8208,"o":"$2010"},{"a":6240,"t":"code","b":[133,45],"m":"sta","oa":45,"o":"zpa_2D"},{"a":6242,"t":"code","b":[173,60,25],"m":"lda","oa":6460,"o":"$193C"},{"a":6245,"t":"code","b":[56],"m":"sec"},{"a":6246,"t":"code","b":[233,48],"m":"sbc","o":"#$30"},{"a":6248,"t":"code","b":[170],"m":"tax"},{"a":6249,"t":"code","b":[208,2],"m":"bne","oa":6253,"o":"b_186D"},{"a":6251,"t":"code","b":[162,10],"m":"ldx","o":"#$0A"},{"a":6253,"l":"b_186D","t":"code","b":[202],"m":"dex","x":[6249,6263,6267]},{"a":6254,"t":"code","b":[240,14],"m":"beq","oa":6270,"o":"r_187E"},{"a":6256,"t":"code","b":[165,44],"m":"lda","oa":44,"o":"maze_ptr"},{"a":6258,"t":"code","b":[24],"m":"clc"},{"a":6259,"t":"code","b":[105,24],"m":"adc","o":"#$18"},{"a":6261,"t":"code","b":[133,44],"m":"sta","oa":44,"o":"maze_ptr"},{"a":6263,"t":"code","b":[144,244],"m":"bcc","oa":6253,"o":"b_186D"},{"a":6265,"t":"code","b":[230,45],"m":"inc","oa":45,"o":"zpa_2D"},{"a":6267,"t":"code","b":[76,109,24],"m":"jmp","oa":6253,"o":"b_186D"},{"a":6270,"l":"r_187E","t":"code","b":[96],"m":"rts","x":[6254]},{"a":6271,"l":"collect_object","c":"When the player is vertically aligned, search eight sampled edge cells for codes $41-$5B. Identify the object group, find its two-by-two origin, erase it, decrement objects_left and add its hundreds value.","t":"code","b":[165,31],"m":"lda","oa":31,"o":"player_half_y","x":[4478]},{"a":6273,"t":"code","b":[208,18],"m":"bne","oa":6293,"o":"r_1895"},{"a":6275,"t":"code","b":[32,149,23],"m":"jsr","oa":6037,"o":"sample_player_neighbours"},{"a":6278,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":6280,"l":"b_1888","t":"code","b":[181,34],"m":"lda","oa":34,"o":"player_neighbours,x","x":[6291]},{"a":6282,"t":"code","b":[201,65],"m":"cmp","o":"#$41"},{"a":6284,"t":"code","b":[144,4],"m":"bcc","oa":6290,"o":"b_1892"},{"a":6286,"t":"code","b":[201,92],"m":"cmp","o":"#$5C"},{"a":6288,"t":"code","b":[144,4],"m":"bcc","oa":6294,"o":"b_1896"},{"a":6290,"l":"b_1892","t":"code","b":[202],"m":"dex","x":[6284]},{"a":6291,"t":"code","b":[16,243],"m":"bpl","oa":6280,"o":"b_1888"},{"a":6293,"l":"r_1895","t":"code","b":[96],"m":"rts","x":[6273]},{"a":6294,"l":"b_1896","t":"code","b":[138],"m":"txa","x":[6288]},{"a":6295,"t":"code","b":[72],"m":"pha"},{"a":6296,"t":"code","b":[181,34],"m":"lda","oa":34,"o":"player_neighbours,x"},{"a":6298,"t":"code","b":[56],"m":"sec"},{"a":6299,"t":"code","b":[233,64],"m":"sbc","o":"#$40"},{"a":6301,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6302,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6303,"t":"code","b":[168],"m":"tay"},{"a":6304,"t":"code","b":[185,224,24],"m":"lda","oa":6368,"o":"pickup_values,y"},{"a":6307,"t":"code","b":[133,42],"m":"sta","oa":42,"o":"pickup_hundreds"},{"a":6309,"t":"code","b":[104],"m":"pla"},{"a":6310,"t":"code","b":[170],"m":"tax"},{"a":6311,"t":"code","b":[164,29],"m":"ldy","oa":29,"o":"zpa_1D"},{"a":6313,"t":"code","b":[165,28],"m":"lda","oa":28,"o":"player_screen"},{"a":6315,"t":"code","b":[56],"m":"sec"},{"a":6316,"t":"code","b":[233,81],"m":"sbc","o":"#$51"},{"a":6318,"t":"code","b":[176,1],"m":"bcs","oa":6321,"o":"b_18B1"},{"a":6320,"t":"code","b":[136],"m":"dey"},{"a":6321,"l":"b_18B1","t":"code","b":[24],"m":"clc","x":[6318]},{"a":6322,"t":"code","b":[125,212,24],"m":"adc","oa":6356,"o":"neighbour_offsets,x"},{"a":6325,"t":"code","b":[144,1],"m":"bcc","oa":6328,"o":"b_18B8"},{"a":6327,"t":"code","b":[200],"m":"iny"},{"a":6328,"l":"b_18B8","t":"code","b":[72],"m":"pha","x":[6325]},{"a":6329,"t":"code","b":[181,34],"m":"lda","oa":34,"o":"player_neighbours,x"},{"a":6331,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":6333,"t":"code","b":[170],"m":"tax"},{"a":6334,"t":"code","b":[104],"m":"pla"},{"a":6335,"t":"code","b":[24],"m":"clc"},{"a":6336,"t":"code","b":[125,220,24],"m":"adc","oa":6364,"o":"pickup_quadrant_offsets,x"},{"a":6339,"t":"code","b":[144,1],"m":"bcc","oa":6342,"o":"b_18C6"},{"a":6341,"t":"code","b":[200],"m":"iny"},{"a":6342,"l":"b_18C6","t":"code","b":[32,132,22],"m":"jsr","oa":5764,"o":"set_print_pointer_ay","x":[6339]},{"a":6345,"t":"code","b":[198,47],"m":"dec","oa":47,"o":"objects_left"},{"a":6347,"t":"code","b":[32,229,24],"m":"jsr","oa":6373,"o":"erase_tile"},{"a":6350,"t":"code","b":[165,42],"m":"lda","oa":42,"o":"pickup_hundreds"},{"a":6352,"t":"code","b":[32,250,18],"m":"jsr","oa":4858,"o":"add_hundreds"},{"a":6355,"t":"code","b":[96],"m":"rts"},{"a":6356,"l":"neighbour_offsets","c":"Offsets 0,1,42,82,120,121,39,79 locate the eight sampled cells relative to player_screen minus 81, for reconstructing a pickup's origin.","t":"byte","b":[0,1,42,82,120,121,39,79],"x":[6322]},{"a":6364,"l":"pickup_quadrant_offsets","c":"Add 41,40,1,0 according to the low two glyph-code bits, converting a sampled pickup quadrant to its top-left screen address.","t":"byte","b":[41,40,1,0],"x":[6336]},{"a":6368,"l":"pickup_values","c":"Hundreds to add by glyph group: keys give 1, rings 2 and apples 3; retained entries for the other groups contain 9.","t":"byte","b":[9,1,2,9,3],"x":[6304]},{"a":6373,"l":"erase_tile","c":"Print a two-by-two space tile at the current print pointer, then return.","t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline","x":[6033,6347]},{"a":6376,"l":"erase_tile_cells","c":"Inline spaces for erasing a collected object or opening the exit in the outer wall.","t":"byte","b":[32,32,13,32,32,0]},{"a":6382,"l":"erase_tile_return","c":"Return after the inline space tile has erased the current two-by-two block.","t":"code","b":[96],"m":"rts"},{"a":6383,"l":"draw_level_number","c":"Repeatedly subtract 100 and 10 from level_number, write three ASCII digits into level_digits, blank leading zeroes and print them at $0C4C.","t":"code","b":[169,48],"m":"lda","o":"#$30","x":[5157]},{"a":6385,"t":"code","b":[141,58,25],"m":"sta","oa":6458,"o":"level_digits"},{"a":6388,"t":"code","b":[141,59,25],"m":"sta","oa":6459,"o":"$193B"},{"a":6391,"t":"code","b":[165,46],"m":"lda","oa":46,"o":"level_number"},{"a":6393,"l":"b_18F9","t":"code","b":[201,100],"m":"cmp","o":"#$64","x":[6402]},{"a":6395,"t":"code","b":[144,7],"m":"bcc","oa":6404,"o":"b_1904"},{"a":6397,"t":"code","b":[233,100],"m":"sbc","o":"#$64"},{"a":6399,"t":"code","b":[238,58,25],"m":"inc","oa":6458,"o":"level_digits"},{"a":6402,"t":"code","b":[208,245],"m":"bne","oa":6393,"o":"b_18F9"},{"a":6404,"l":"b_1904","t":"code","b":[201,10],"m":"cmp","o":"#$0A","x":[6395,6413]},{"a":6406,"t":"code","b":[144,7],"m":"bcc","oa":6415,"o":"b_190F"},{"a":6408,"t":"code","b":[233,10],"m":"sbc","o":"#$0A"},{"a":6410,"t":"code","b":[238,59,25],"m":"inc","oa":6459,"o":"$193B"},{"a":6413,"t":"code","b":[208,245],"m":"bne","oa":6404,"o":"b_1904"},{"a":6415,"l":"b_190F","t":"code","b":[105,48],"m":"adc","o":"#$30","x":[6406]},{"a":6417,"t":"code","b":[141,60,25],"m":"sta","oa":6460,"o":"$193C"},{"a":6420,"t":"code","b":[169,97],"m":"lda","o":"#$61"},{"a":6422,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":6424,"t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":6426,"t":"code","b":[162,76],"m":"ldx","o":"#$4C"},{"a":6428,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":6431,"t":"code","b":[173,58,25],"m":"lda","oa":6458,"o":"level_digits"},{"a":6434,"t":"code","b":[201,48],"m":"cmp","o":"#$30"},{"a":6436,"t":"code","b":[208,17],"m":"bne","oa":6455,"o":"b_1937"},{"a":6438,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":6440,"t":"code","b":[141,58,25],"m":"sta","oa":6458,"o":"level_digits"},{"a":6443,"t":"code","b":[173,59,25],"m":"lda","oa":6459,"o":"$193B"},{"a":6446,"t":"code","b":[201,48],"m":"cmp","o":"#$30"},{"a":6448,"t":"code","b":[208,5],"m":"bne","oa":6455,"o":"b_1937"},{"a":6450,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":6452,"t":"code","b":[141,59,25],"m":"sta","oa":6459,"o":"$193B"},{"a":6455,"l":"b_1937","t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline","x":[6436,6448]},{"a":6458,"l":"level_digits","c":"Three mutable level display characters and zero terminator; the units character selects maze/spawn records and the tens character selects the number of active enemies.","t":"byte","b":[1,1,1,0],"x":[6385,6399,6431,6440]},{"a":6462,"l":"draw_level_return","c":"Return after the three level characters have been printed.","t":"code","b":[96],"m":"rts"},{"a":6463,"l":"select_wall_colour","c":"Save X, use level_number modulo four to choose wall_colours into print_colour, then restore X.","t":"code","b":[138],"m":"txa","x":[5769,6197]},{"a":6464,"t":"code","b":[72],"m":"pha"},{"a":6465,"t":"code","b":[165,46],"m":"lda","oa":46,"o":"level_number"},{"a":6467,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":6469,"t":"code","b":[170],"m":"tax"},{"a":6470,"t":"code","b":[189,78,25],"m":"lda","oa":6478,"o":"wall_colours,x"},{"a":6473,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":6475,"t":"code","b":[104],"m":"pla"},{"a":6476,"t":"code","b":[170],"m":"tax"},{"a":6477,"t":"code","b":[96],"m":"rts"},{"a":6478,"l":"wall_colours","c":"Four wall colour attributes $04,$05,$06,$07 selected by the low two level-number bits.","t":"byte","b":[4,5,6,7],"x":[6470]},{"a":6482,"l":"check_extra_life","c":"Compare score_digits' ten-thousands character with the character already displayed at $0C3A. On a change increment the stored life character and redraw it. The limit compares that character with raw $08 rather than ASCII 8.","t":"code","b":[173,243,18],"m":"lda","oa":4851,"o":"$12F3","x":[4893]},{"a":6485,"t":"code","b":[205,58,12],"m":"cmp","oa":3130,"o":"a_0C3A"},{"a":6488,"t":"code","b":[240,16],"m":"beq","oa":6506,"o":"r_196A"},{"a":6490,"t":"code","b":[238,38,26],"m":"inc","oa":6694,"o":"lives_character"},{"a":6493,"t":"code","b":[173,38,26],"m":"lda","oa":6694,"o":"lives_character"},{"a":6496,"t":"code","b":[201,8],"m":"cmp","o":"#$08"},{"a":6498,"t":"code","b":[208,3],"m":"bne","oa":6503,"o":"b_1967"},{"a":6500,"t":"code","b":[206,38,26],"m":"dec","oa":6694,"o":"lives_character"},{"a":6503,"l":"b_1967","t":"code","b":[32,14,26],"m":"jsr","oa":6670,"o":"draw_lives","x":[6498]},{"a":6506,"l":"r_196A","t":"code","b":[96],"m":"rts","x":[6488]},{"a":6507,"l":"reset_bonus","c":"Set bonus_segments to 21 and bonus_divider to one, then fall through to tick_bonus for the first displayed decrement.","t":"code","b":[169,21],"m":"lda","o":"#$15","x":[4434,4443,6667]},{"a":6509,"t":"code","b":[133,55],"m":"sta","oa":55,"o":"bonus_segments"},{"a":6511,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":6513,"t":"code","b":[133,54],"m":"sta","oa":54,"o":"bonus_divider"},{"a":6515,"l":"tick_bonus","c":"Decrement bonus_divider; at zero reload it with 100, decrement the bonus and invoke player_death if it becomes negative, otherwise redraw the bar.","t":"code","b":[198,54],"m":"dec","oa":54,"o":"bonus_divider","x":[4481]},{"a":6517,"t":"code","b":[208,43],"m":"bne","oa":6562,"o":"bonus_return"},{"a":6519,"t":"code","b":[169,100],"m":"lda","o":"#$64"},{"a":6521,"t":"code","b":[133,54],"m":"sta","oa":54,"o":"bonus_divider"},{"a":6523,"t":"code","b":[198,55],"m":"dec","oa":55,"o":"bonus_segments"},{"a":6525,"t":"code","b":[48,44],"m":"bmi","oa":6571,"o":"player_death"},{"a":6527,"l":"draw_bonus","c":"Print BONUS and two spaces at $0C7A in attribute $67, then repeat inline parameter $18 bonus_segments times; print_char converts it to screen glyph $58. Finish with one space.","t":"code","b":[169,103],"m":"lda","o":"#$67","x":[5463]},{"a":6529,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":6531,"t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":6533,"t":"code","b":[162,122],"m":"ldx","o":"#$7A"},{"a":6535,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":6538,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":6541,"l":"bonus_label","c":"PETSCII BONUS followed by two spaces and the inline printer's zero terminator.","t":"byte","b":[66,79,78,85,83,32,32,0]},{"a":6549,"l":"draw_bonus_segments","c":"Copy bonus_segments into a scratch counter, then print that many bar characters and finish with bonus_end's space.","t":"code","b":[165,55],"m":"lda","oa":55,"o":"bonus_segments"},{"a":6551,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"scratch_ptr2"},{"a":6553,"l":"j_1999","t":"code","b":[198,5],"m":"dec","oa":5,"o":"scratch_ptr2","x":[6568]},{"a":6555,"t":"code","b":[16,6],"m":"bpl","oa":6563,"o":"b_19A3"},{"a":6557,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":6560,"l":"bonus_end","c":"A space and zero terminator, printed after the final bonus-bar segment.","t":"byte","b":[32,0]},{"a":6562,"l":"bonus_return","c":"Shared return used when the bonus divider has not expired and when the drawn bar has reached its final space.","t":"code","b":[96],"m":"rts","x":[6517]},{"a":6563,"l":"b_19A3","t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline","x":[6555]},{"a":6566,"l":"bonus_segment","c":"Parameter $18 and zero terminator; print_char converts it to screen code $58 for a bonus-bar segment.","t":"byte","b":[24,0]},{"a":6568,"l":"bonus_repeat","c":"Jump back to decrement the bonus drawing counter after one inline bar character was printed.","t":"code","b":[76,153,25],"m":"jmp","oa":6553,"o":"j_1999"},{"a":6571,"l":"player_death","c":"Erase/reinitialise enemies, silence sound and redraw the player; rotate the $3F00 glyph page 48 times, erase the player and decrement the stored life character. At $2F enter game_over; otherwise reset player and bonus and redraw lives.","t":"code","b":[32,29,27],"m":"jsr","oa":6941,"o":"erase_enemies","x":[6525,6719]},{"a":6574,"t":"code","b":[32,199,19],"m":"jsr","oa":5063,"o":"silence_sound"},{"a":6577,"t":"code","b":[32,33,22],"m":"jsr","oa":5665,"o":"draw_player"},{"a":6580,"t":"code","b":[162,48],"m":"ldx","o":"#$30"},{"a":6582,"t":"code","b":[134,120],"m":"stx","oa":120,"o":"death_scratch"},{"a":6584,"l":"b_19B8","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[6643]},{"a":6586,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":6588,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"scratch_ptr2"},{"a":6590,"t":"code","b":[169,63],"m":"lda","o":"#$3F"},{"a":6592,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":6594,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpa_06"},{"a":6596,"t":"code","b":[230,5],"m":"inc","oa":5,"o":"scratch_ptr2"},{"a":6598,"l":"b_19C6","t":"code","b":[160,6],"m":"ldy","o":"#$06","x":[6640]},{"a":6600,"t":"code","b":[177,5],"m":"lda","oa":5,"o":"(scratch_ptr2),y"},{"a":6602,"t":"code","b":[72],"m":"pha"},{"a":6603,"l":"b_19CB","t":"code","b":[177,3],"m":"lda","oa":3,"o":"(scratch_ptr),y","x":[6608]},{"a":6605,"t":"code","b":[145,5],"m":"sta","oa":5,"o":"(scratch_ptr2),y"},{"a":6607,"t":"code","b":[136],"m":"dey"},{"a":6608,"t":"code","b":[16,249],"m":"bpl","oa":6603,"o":"b_19CB"},{"a":6610,"t":"code","b":[104],"m":"pla"},{"a":6611,"t":"code","b":[200],"m":"iny"},{"a":6612,"t":"code","b":[145,3],"m":"sta","oa":3,"o":"(scratch_ptr),y"},{"a":6614,"t":"code","b":[165,5],"m":"lda","oa":5,"o":"scratch_ptr2"},{"a":6616,"t":"code","b":[24],"m":"clc"},{"a":6617,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":6619,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"scratch_ptr2"},{"a":6621,"t":"code","b":[144,2],"m":"bcc","oa":6625,"o":"b_19E1"},{"a":6623,"t":"code","b":[230,6],"m":"inc","oa":6,"o":"zpa_06"},{"a":6625,"l":"b_19E1","t":"code","b":[165,3],"m":"lda","oa":3,"o":"scratch_ptr","x":[6621]},{"a":6627,"t":"code","b":[24],"m":"clc"},{"a":6628,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":6630,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":6632,"t":"code","b":[144,2],"m":"bcc","oa":6636,"o":"b_19EC"},{"a":6634,"t":"code","b":[230,4],"m":"inc","oa":4,"o":"zpa_04"},{"a":6636,"l":"b_19EC","t":"code","b":[165,4],"m":"lda","oa":4,"o":"zpa_04","x":[6632]},{"a":6638,"t":"code","b":[201,64],"m":"cmp","o":"#$40"},{"a":6640,"t":"code","b":[208,212],"m":"bne","oa":6598,"o":"b_19C6"},{"a":6642,"t":"code","b":[202],"m":"dex"},{"a":6643,"t":"code","b":[208,195],"m":"bne","oa":6584,"o":"b_19B8"},{"a":6645,"t":"code","b":[32,5,22],"m":"jsr","oa":5637,"o":"erase_player"},{"a":6648,"t":"code","b":[206,38,26],"m":"dec","oa":6694,"o":"lives_character"},{"a":6651,"t":"code","b":[173,38,26],"m":"lda","oa":6694,"o":"lives_character"},{"a":6654,"t":"code","b":[201,47],"m":"cmp","o":"#$2F"},{"a":6656,"t":"code","b":[208,3],"m":"bne","oa":6661,"o":"b_1A05"},{"a":6658,"t":"code","b":[76,141,17],"m":"jmp","oa":4493,"o":"game_over"},{"a":6661,"l":"b_1A05","t":"code","b":[32,5,22],"m":"jsr","oa":5637,"o":"erase_player","x":[6656]},{"a":6664,"t":"code","b":[32,60,20],"m":"jsr","oa":5180,"o":"reset_player"},{"a":6667,"t":"code","b":[32,107,25],"m":"jsr","oa":6507,"o":"reset_bonus"},{"a":6670,"l":"draw_lives","c":"Print the player icon and a space at $0C45, then the mutable spare-life character in attribute $57.","t":"code","b":[169,12],"m":"lda","o":"#$0C","x":[4437,6503]},{"a":6672,"t":"code","b":[162,69],"m":"ldx","o":"#$45"},{"a":6674,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":6677,"t":"code","b":[169,58],"m":"lda","o":"#$3A"},{"a":6679,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":6681,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":6684,"l":"lives_icon","c":"Inline glyph $68 and a space, followed by the printer's zero terminator.","t":"byte","b":[104,32,0]},{"a":6687,"l":"draw_life_character","c":"Select attribute $57 and print lives_character after the player icon and space.","t":"code","b":[169,87],"m":"lda","o":"#$57"},{"a":6689,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":6691,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":6694,"l":"lives_character","c":"Mutable life display character, initialised to ASCII 4. Death decrements it and game over occurs after it becomes $2F, giving five initial attempts.","t":"byte","b":[52,0],"x":[4414,6490,6493,6500,6648,6651]},{"a":6696,"l":"draw_lives_return","c":"Return after the normal nonzero inline life character and its terminator have been consumed.","t":"code","b":[96],"m":"rts"},{"a":6697,"l":"check_player_contact","c":"Check the four screen cells covered by the player's two-by-two footprint through check_contact_cell; a qualifying enemy or explosion glyph jumps to player_death.","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[5213]},{"a":6699,"t":"code","b":[32,48,26],"m":"jsr","oa":6704,"o":"check_contact_pair"},{"a":6702,"t":"code","b":[160,40],"m":"ldy","o":"#$28"},{"a":6704,"l":"check_contact_pair","c":"Test the cell at Y and the next cell in the player's current row, using check_contact_cell.","t":"code","b":[32,52,26],"m":"jsr","oa":6708,"o":"check_contact_cell","x":[6699]},{"a":6707,"t":"code","b":[200],"m":"iny"},{"a":6708,"l":"check_contact_cell","c":"Read through player_screen with Y. Codes $69-$F9 invoke player_death; codes below $69 or at least $FA return without killing the player.","t":"code","b":[177,28],"m":"lda","oa":28,"o":"(player_screen),y","x":[6704]},{"a":6710,"t":"code","b":[201,250],"m":"cmp","o":"#$FA"},{"a":6712,"t":"code","b":[176,4],"m":"bcs","oa":6718,"o":"r_1A3E"},{"a":6714,"t":"code","b":[201,105],"m":"cmp","o":"#$69"},{"a":6716,"t":"code","b":[176,1],"m":"bcs","oa":6719,"o":"b_1A3F"},{"a":6718,"l":"r_1A3E","t":"code","b":[96],"m":"rts","x":[6712]},{"a":6719,"l":"b_1A3F","t":"code","b":[76,171,25],"m":"jmp","oa":6571,"o":"player_death","x":[6716]},{"a":6722,"l":"r_1A42","t":"code","b":[96],"m":"rts","x":[6725,6729]},{"a":6723,"l":"try_lay_bomb","c":"When no bomb is deployed, require inventory and a zero fire flag, decrement bombs_left, start bomb noise and save player_screen as the bomb's location. Install a six-update rearm delay and reset its explosion state.","t":"code","b":[165,123],"m":"lda","oa":123,"o":"bombs_left","x":[6764]},{"a":6725,"t":"code","b":[240,251],"m":"beq","oa":6722,"o":"r_1A42"},{"a":6727,"t":"code","b":[165,21],"m":"lda","oa":21,"o":"input_fire"},{"a":6729,"t":"code","b":[208,247],"m":"bne","oa":6722,"o":"r_1A42"},{"a":6731,"t":"code","b":[198,123],"m":"dec","oa":123,"o":"bombs_left"},{"a":6733,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":6735,"t":"code","b":[141,10,32],"m":"sta","oa":8202,"o":"bomb_sound_active"},{"a":6738,"t":"code","b":[32,73,31],"m":"jsr","oa":8009,"o":"draw_bomb_inventory"},{"a":6741,"t":"code","b":[165,29],"m":"lda","oa":29,"o":"zpa_1D"},{"a":6743,"t":"code","b":[133,125],"m":"sta","oa":125,"o":"zpa_7D"},{"a":6745,"t":"code","b":[165,28],"m":"lda","oa":28,"o":"player_screen"},{"a":6747,"t":"code","b":[133,124],"m":"sta","oa":124,"o":"bomb_screen"},{"a":6749,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":6751,"t":"code","b":[133,127],"m":"sta","oa":127,"o":"bomb_rearm_delay"},{"a":6753,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":6755,"t":"code","b":[133,126],"m":"sta","oa":126,"o":"explosion_phase"},{"a":6757,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":6759,"t":"code","b":[141,207,26],"m":"sta","oa":6863,"o":"bomb_phase_divider"},{"a":6762,"l":"update_bomb","c":"With an active bomb, draw its blinking idle image or explosion glyphs. Idle fire can detonate after the rearm delay; explosion updates replace its thirty-two-byte fire glyphs and eventually erase it and clear bomb_screen's high byte.","t":"code","b":[165,125],"m":"lda","oa":125,"o":"zpa_7D","x":[4469,6915]},{"a":6764,"t":"code","b":[240,213],"m":"beq","oa":6723,"o":"try_lay_bomb"},{"a":6766,"t":"code","b":[166,124],"m":"ldx","oa":124,"o":"bomb_screen"},{"a":6768,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":6771,"t":"code","b":[169,51],"m":"lda","o":"#$33"},{"a":6773,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":6775,"t":"code","b":[230,128],"m":"inc","oa":128,"o":"bomb_blink"},{"a":6777,"t":"code","b":[165,126],"m":"lda","oa":126,"o":"explosion_phase"},{"a":6779,"t":"code","b":[240,83],"m":"beq","oa":6864,"o":"draw_idle_bomb"},{"a":6781,"t":"code","b":[169,66],"m":"lda","o":"#$42"},{"a":6783,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":6785,"t":"code","b":[165,126],"m":"lda","oa":126,"o":"explosion_phase"},{"a":6787,"t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":6789,"t":"code","b":[208,16],"m":"bne","oa":6807,"o":"b_1A97"},{"a":6791,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":6794,"l":"bomb_erase_cells","c":"Inline two-by-two spaces used when the explosion sequence reaches phase five.","t":"byte","b":[32,32,13,32,32,0]},{"a":6800,"l":"finish_explosion","c":"After erasing the expired explosion, clear explosion_phase and bomb_screen's high byte and return.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":6802,"t":"code","b":[133,126],"m":"sta","oa":126,"o":"explosion_phase"},{"a":6804,"t":"code","b":[133,125],"m":"sta","oa":125,"o":"zpa_7D"},{"a":6806,"l":"r_1A96","t":"code","b":[96],"m":"rts","x":[6819]},{"a":6807,"l":"b_1A97","t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline","x":[6789]},{"a":6810,"l":"explosion_cells","c":"Inline glyph codes $69,$6A/$6B,$6C marking the explosion's fixed two-by-two footprint for drawing and collisions.","t":"byte","b":[105,106,13,107,108,0]},{"a":6816,"l":"advance_explosion","c":"Count down bomb_phase_divider, reload it with three, increment explosion_phase and copy the selected thirty-two-byte source frame into $3B48-$3B67.","t":"code","b":[206,207,26],"m":"dec","oa":6863,"o":"bomb_phase_divider"},{"a":6819,"t":"code","b":[208,241],"m":"bne","oa":6806,"o":"r_1A96"},{"a":6821,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":6823,"t":"code","b":[141,207,26],"m":"sta","oa":6863,"o":"bomb_phase_divider"},{"a":6826,"t":"code","b":[230,126],"m":"inc","oa":126,"o":"explosion_phase"},{"a":6828,"t":"code","b":[173,4,51],"m":"lda","oa":13060,"o":"explosion_frames_ptr"},{"a":6831,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":6833,"t":"code","b":[173,5,51],"m":"lda","oa":13061,"o":"$3305"},{"a":6836,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":6838,"t":"code","b":[165,126],"m":"lda","oa":126,"o":"explosion_phase"},{"a":6840,"t":"code","b":[56],"m":"sec"},{"a":6841,"t":"code","b":[233,2],"m":"sbc","o":"#$02"},{"a":6843,"t":"code","b":[10],"m":"asl","o":"a"},{"a":6844,"t":"code","b":[10],"m":"asl","o":"a"},{"a":6845,"t":"code","b":[10],"m":"asl","o":"a"},{"a":6846,"t":"code","b":[10],"m":"asl","o":"a"},{"a":6847,"t":"code","b":[10],"m":"asl","o":"a"},{"a":6848,"t":"code","b":[168],"m":"tay"},{"a":6849,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":6851,"l":"b_1AC3","t":"code","b":[177,3],"m":"lda","oa":3,"o":"(scratch_ptr),y","x":[6860]},{"a":6853,"t":"code","b":[157,72,59],"m":"sta","oa":15176,"o":"f_3B48,x"},{"a":6856,"t":"code","b":[200],"m":"iny"},{"a":6857,"t":"code","b":[232],"m":"inx"},{"a":6858,"t":"code","b":[224,32],"m":"cpx","o":"#$20"},{"a":6860,"t":"code","b":[208,245],"m":"bne","oa":6851,"o":"b_1AC3"},{"a":6862,"t":"code","b":[96],"m":"rts"},{"a":6863,"l":"bomb_phase_divider","c":"Runtime explosion-frame divider, set to one at placement and reloaded with three between subsequent fire-frame copies.","t":"byte","b":[2],"x":[6759,6816,6823]},{"a":6864,"l":"draw_idle_bomb","c":"Use bomb_blink's low bit to choose one of the two idle-bomb drawings before testing the rearm delay and fire flag.","t":"code","b":[165,128],"m":"lda","oa":128,"o":"bomb_blink","x":[6779]},{"a":6866,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":6867,"t":"code","b":[144,12],"m":"bcc","oa":6881,"o":"b_1AE1"},{"a":6869,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":6872,"l":"bomb_blink_a","c":"First undetonated bomb drawing, using top glyphs $64,$65 and bottom glyphs $62,$63.","t":"byte","b":[100,101,13,98,99,0]},{"a":6878,"l":"idle_bomb_after_a","c":"After printing the first idle-bomb variant, join the shared detonation-delay test.","t":"code","b":[76,234,26],"m":"jmp","oa":6890,"o":"test_bomb_detonation"},{"a":6881,"l":"b_1AE1","t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline","x":[6867]},{"a":6884,"l":"bomb_blink_b","c":"Alternate undetonated bomb drawing, using top glyphs $66,$67 with the same bottom glyphs $62,$63.","t":"byte","b":[102,103,13,98,99,0]},{"a":6890,"l":"test_bomb_detonation","c":"Count the remaining rearm updates down. Once zero, a pressed fire flag sets the explosion sound countdown to ten and starts the explosion, then immediately enters update_bomb again. update_sound enables the explosion noise for nine updates and disables it on the tenth.","t":"code","b":[165,127],"m":"lda","oa":127,"o":"bomb_rearm_delay","x":[6878]},{"a":6892,"t":"code","b":[240,3],"m":"beq","oa":6897,"o":"b_1AF1"},{"a":6894,"t":"code","b":[198,127],"m":"dec","oa":127,"o":"bomb_rearm_delay"},{"a":6896,"l":"r_1AF0","t":"code","b":[96],"m":"rts","x":[6899]},{"a":6897,"l":"b_1AF1","t":"code","b":[165,21],"m":"lda","oa":21,"o":"input_fire","x":[6892]},{"a":6899,"t":"code","b":[208,251],"m":"bne","oa":6896,"o":"r_1AF0"},{"a":6901,"t":"code","b":[169,10],"m":"lda","o":"#$0A"},{"a":6903,"t":"code","b":[141,12,32],"m":"sta","oa":8204,"o":"explosion_sound_left"},{"a":6906,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":6908,"t":"code","b":[141,10,32],"m":"sta","oa":8202,"o":"bomb_sound_active"},{"a":6911,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":6913,"t":"code","b":[133,126],"m":"sta","oa":126,"o":"explosion_phase"},{"a":6915,"t":"code","b":[76,106,26],"m":"jmp","oa":6762,"o":"update_bomb"},{"a":6918,"l":"erase_bomb","c":"If bomb_screen's high byte is nonzero, erase its two-by-two footprint, then enter clear_bomb.","t":"code","b":[165,125],"m":"lda","oa":125,"o":"zpa_7D","x":[4612]},{"a":6920,"t":"code","b":[240,14],"m":"beq","oa":6936,"o":"clear_bomb"},{"a":6922,"t":"code","b":[166,124],"m":"ldx","oa":124,"o":"bomb_screen"},{"a":6924,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":6927,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":6930,"l":"erase_bomb_cells","c":"Inline space tile for erasing the deployed bomb during a level transition.","t":"byte","b":[32,32,13,32,32,0]},{"a":6936,"l":"clear_bomb","c":"Clear bomb_screen's high byte, marking the deployed-bomb slot inactive.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[5172,6920]},{"a":6938,"t":"code","b":[133,125],"m":"sta","oa":125,"o":"zpa_7D"},{"a":6940,"t":"code","b":[96],"m":"rts"},{"a":6941,"l":"erase_enemies","c":"Walk slots six down to zero and erase each nonnegative enemy_direction entry; fall through to initialise_enemies to rebuild slot state.","t":"code","b":[162,6],"m":"ldx","o":"#$06","x":[4615,6571]},{"a":6943,"l":"b_1B1F","t":"code","b":[181,84],"m":"lda","oa":84,"o":"enemy_direction,x","x":[6951]},{"a":6945,"t":"code","b":[48,3],"m":"bmi","oa":6950,"o":"b_1B26"},{"a":6947,"t":"code","b":[32,105,28],"m":"jsr","oa":7273,"o":"erase_enemy"},{"a":6950,"l":"b_1B26","t":"code","b":[202],"m":"dex","x":[6945]},{"a":6951,"t":"code","b":[16,246],"m":"bpl","oa":6943,"o":"b_1B1F"},{"a":6953,"l":"initialise_enemies","c":"Mark seven slots inactive, set their colours and shapes from level modulo eight, copy seven spawn addresses selected by the displayed units digit, then activate four, five or six slots according to the displayed tens digit.","t":"code","b":[162,6],"m":"ldx","o":"#$06","x":[5166]},{"a":6955,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":6957,"l":"b_1B2D","t":"code","b":[149,84],"m":"sta","oa":84,"o":"enemy_direction,x","x":[6960]},{"a":6959,"t":"code","b":[202],"m":"dex"},{"a":6960,"t":"code","b":[16,251],"m":"bpl","oa":6957,"o":"b_1B2D"},{"a":6962,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":6964,"t":"code","b":[133,117],"m":"sta","oa":117,"o":"enemy_anim_divider"},{"a":6966,"t":"code","b":[165,46],"m":"lda","oa":46,"o":"level_number"},{"a":6968,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":6970,"t":"code","b":[168],"m":"tay"},{"a":6971,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":6973,"l":"b_1B3D","t":"code","b":[185,151,27],"m":"lda","oa":7063,"o":"enemy_shapes,y","x":[6988]},{"a":6976,"t":"code","b":[149,106],"m":"sta","oa":106,"o":"enemy_shape,x"},{"a":6978,"t":"code","b":[185,159,27],"m":"lda","oa":7071,"o":"enemy_colours,y"},{"a":6981,"t":"code","b":[149,98],"m":"sta","oa":98,"o":"enemy_colour,x"},{"a":6983,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":6985,"t":"code","b":[149,92],"m":"sta","oa":92,"o":"enemy_half_step,x"},{"a":6987,"t":"code","b":[202],"m":"dex"},{"a":6988,"t":"code","b":[16,239],"m":"bpl","oa":6973,"o":"b_1B3D"},{"a":6990,"t":"code","b":[173,60,25],"m":"lda","oa":6460,"o":"$193C"},{"a":6993,"t":"code","b":[56],"m":"sec"},{"a":6994,"t":"code","b":[233,48],"m":"sbc","o":"#$30"},{"a":6996,"t":"code","b":[10],"m":"asl","o":"a"},{"a":6997,"t":"code","b":[170],"m":"tax"},{"a":6998,"t":"code","b":[189,167,27],"m":"lda","oa":7079,"o":"enemy_spawn_tables,x"},{"a":7001,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":7003,"t":"code","b":[189,168,27],"m":"lda","oa":7080,"o":"$1BA8,x"},{"a":7006,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":7008,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":7010,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":7012,"l":"b_1B64","t":"code","b":[177,3],"m":"lda","oa":3,"o":"(scratch_ptr),y","x":[7025]},{"a":7014,"t":"code","b":[149,68],"m":"sta","oa":68,"o":"enemy_screen_lo,x"},{"a":7016,"t":"code","b":[200],"m":"iny"},{"a":7017,"t":"code","b":[177,3],"m":"lda","oa":3,"o":"(scratch_ptr),y"},{"a":7019,"t":"code","b":[149,76],"m":"sta","oa":76,"o":"enemy_screen_hi,x"},{"a":7021,"t":"code","b":[200],"m":"iny"},{"a":7022,"t":"code","b":[232],"m":"inx"},{"a":7023,"t":"code","b":[224,7],"m":"cpx","o":"#$07"},{"a":7025,"t":"code","b":[208,241],"m":"bne","oa":7012,"o":"b_1B64"},{"a":7027,"t":"code","b":[173,59,25],"m":"lda","oa":6459,"o":"$193B"},{"a":7030,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":7032,"t":"code","b":[208,2],"m":"bne","oa":7036,"o":"b_1B7C"},{"a":7034,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":7036,"l":"b_1B7C","t":"code","b":[56],"m":"sec","x":[7032]},{"a":7037,"t":"code","b":[233,48],"m":"sbc","o":"#$30"},{"a":7039,"t":"code","b":[170],"m":"tax"},{"a":7040,"t":"code","b":[189,140,27],"m":"lda","oa":7052,"o":"enemy_count_limits,x"},{"a":7043,"t":"code","b":[170],"m":"tax"},{"a":7044,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":7046,"l":"b_1B86","t":"code","b":[149,84],"m":"sta","oa":84,"o":"enemy_direction,x","x":[7049]},{"a":7048,"t":"code","b":[202],"m":"dex"},{"a":7049,"t":"code","b":[16,251],"m":"bpl","oa":7046,"o":"b_1B86"},{"a":7051,"t":"code","b":[96],"m":"rts"},{"a":7052,"l":"enemy_count_limits","c":"Highest active slot indexed by tens digit: 3,4,5,5,5,5,5,5,5,5. One additional retained byte is also 5; the displayed tens digit ranges from zero to nine.","t":"byte","b":[3,4,5,5,5,5,5,5],"x":[7040]},{"a":7060,"t":"byte","b":[5,5,5]},{"a":7063,"l":"enemy_shapes","c":"Shape selectors 1,2,3,4,1,2,3,4 indexed by level_number modulo eight and copied to every slot.","t":"byte","b":[1,2,3,4,1,2,3,4],"x":[6973]},{"a":7071,"l":"enemy_colours","c":"Eight TED attributes indexed by level_number modulo eight; all active guards in a level receive the selected attribute.","t":"byte","b":[87,38,34,68,70,86,103,83],"x":[6978]},{"a":7079,"l":"enemy_spawn_tables","c":"Ten little-endian pointers indexed directly by the units digit 0-9, each naming seven screen addresses in the spawn records that follow.","t":"addr","b":[43,28],"oa":7211,"o":"spawns_0","x":[6998]},{"a":7081,"t":"addr","b":[187,27],"oa":7099,"o":"spawns_1"},{"a":7083,"t":"addr","b":[201,27],"oa":7113,"o":"spawns_2"},{"a":7085,"t":"addr","b":[215,27],"oa":7127,"o":"spawns_3"},{"a":7087,"t":"addr","b":[243,27],"oa":7155,"o":"spawns_4"},{"a":7089,"t":"addr","b":[1,28],"oa":7169,"o":"spawns_5"},{"a":7091,"t":"addr","b":[15,28],"oa":7183,"o":"spawns_6"},{"a":7093,"t":"addr","b":[229,27],"oa":7141,"o":"spawns_7"},{"a":7095,"t":"addr","b":[57,28],"oa":7225,"o":"spawns_8"},{"a":7097,"t":"addr","b":[29,28],"oa":7197,"o":"spawns_9"},{"a":7099,"l":"spawns_1","c":"Seven enemy top-left screen addresses for units digit 1. initialise_enemies copies all seven; the tens digit determines which four to six slots are active.","t":"addr","b":[26,13],"oa":3354,"o":"a_0D1A","x":[7081]},{"a":7101,"t":"addr","b":[60,13],"oa":3388,"o":"a_0D3C"},{"a":7103,"t":"addr","b":[74,15],"oa":3914,"o":"a_0F4A"},{"a":7105,"t":"addr","b":[108,15],"oa":3948,"o":"a_0F6C"},{"a":7107,"t":"addr","b":[28,13],"oa":3356,"o":"a_0D1C"},{"a":7109,"t":"addr","b":[56,13],"oa":3384,"o":"a_0D38"},{"a":7111,"t":"addr","b":[250,14],"oa":3834,"o":"a_0EFA"},{"a":7113,"l":"spawns_2","c":"Seven enemy top-left screen addresses for units digit 2. initialise_enemies copies all seven; the tens digit determines which four to six slots are active.","t":"addr","b":[106,14],"oa":3690,"o":"a_0E6A","x":[7083]},{"a":7115,"t":"addr","b":[108,14],"oa":3692,"o":"a_0E6C"},{"a":7117,"t":"addr","b":[10,15],"oa":3850,"o":"a_0F0A"},{"a":7119,"t":"addr","b":[12,15],"oa":3852,"o":"a_0F0C"},{"a":7121,"t":"addr","b":[104,14],"oa":3688,"o":"a_0E68"},{"a":7123,"t":"addr","b":[110,14],"oa":3694,"o":"a_0E6E"},{"a":7125,"t":"addr","b":[8,15],"oa":3848,"o":"a_0F08"},{"a":7127,"l":"spawns_3","c":"Seven enemy top-left screen addresses for units digit 3. initialise_enemies copies all seven; the tens digit determines which four to six slots are active.","t":"addr","b":[194,13],"oa":3522,"o":"a_0DC2","x":[7085]},{"a":7129,"t":"addr","b":[212,13],"oa":3540,"o":"a_0DD4"},{"a":7131,"t":"addr","b":[8,15],"oa":3848,"o":"a_0F08"},{"a":7133,"t":"addr","b":[12,15],"oa":3852,"o":"a_0F0C"},{"a":7135,"t":"addr","b":[196,13],"oa":3524,"o":"a_0DC4"},{"a":7137,"t":"addr","b":[210,13],"oa":3538,"o":"a_0DD2"},{"a":7139,"t":"addr","b":[10,15],"oa":3850,"o":"a_0F0A"},{"a":7141,"l":"spawns_7","c":"Seven enemy top-left screen addresses for units digit 7. initialise_enemies copies all seven; the tens digit determines which four to six slots are active.","t":"addr","b":[22,14],"oa":3606,"o":"a_0E16","x":[7093]},{"a":7143,"t":"addr","b":[40,14],"oa":3624,"o":"a_0E28"},{"a":7145,"t":"addr","b":[74,15],"oa":3914,"o":"a_0F4A"},{"a":7147,"t":"addr","b":[108,15],"oa":3948,"o":"a_0F6C"},{"a":7149,"t":"addr","b":[198,13],"oa":3526,"o":"a_0DC6"},{"a":7151,"t":"addr","b":[206,13],"oa":3534,"o":"a_0DCE"},{"a":7153,"t":"addr","b":[200,13],"oa":3528,"o":"a_0DC8"},{"a":7155,"l":"spawns_4","c":"Seven enemy top-left screen addresses for units digit 4. initialise_enemies copies all seven; the tens digit determines which four to six slots are active.","t":"addr","b":[90,14],"oa":3674,"o":"a_0E5A","x":[7087]},{"a":7157,"t":"addr","b":[100,14],"oa":3684,"o":"a_0E64"},{"a":7159,"t":"addr","b":[112,14],"oa":3696,"o":"a_0E70"},{"a":7161,"t":"addr","b":[124,14],"oa":3708,"o":"a_0E7C"},{"a":7163,"t":"addr","b":[106,14],"oa":3690,"o":"a_0E6A"},{"a":7165,"t":"addr","b":[104,14],"oa":3688,"o":"a_0E68"},{"a":7167,"t":"addr","b":[108,14],"oa":3692,"o":"a_0E6C"},{"a":7169,"l":"spawns_5","c":"Seven enemy top-left screen addresses for units digit 5. initialise_enemies copies all seven; the tens digit determines which four to six slots are active.","t":"addr","b":[186,13],"oa":3514,"o":"a_0DBA","x":[7089]},{"a":7171,"t":"addr","b":[42,14],"oa":3626,"o":"a_0E2A"},{"a":7173,"t":"addr","b":[108,14],"oa":3692,"o":"a_0E6C"},{"a":7175,"t":"addr","b":[86,15],"oa":3926,"o":"a_0F56"},{"a":7177,"t":"addr","b":[188,13],"oa":3516,"o":"a_0DBC"},{"a":7179,"t":"addr","b":[40,14],"oa":3624,"o":"a_0E28"},{"a":7181,"t":"addr","b":[110,14],"oa":3694,"o":"a_0E6E"},{"a":7183,"l":"spawns_6","c":"Seven enemy top-left screen addresses for units digit 6. initialise_enemies copies all seven; the tens digit determines which four to six slots are active.","t":"addr","b":[198,13],"oa":3526,"o":"a_0DC6","x":[7091]},{"a":7185,"t":"addr","b":[206,13],"oa":3534,"o":"a_0DCE"},{"a":7187,"t":"addr","b":[182,14],"oa":3766,"o":"a_0EB6"},{"a":7189,"t":"addr","b":[190,14],"oa":3774,"o":"a_0EBE"},{"a":7191,"t":"addr","b":[184,14],"oa":3768,"o":"a_0EB8"},{"a":7193,"t":"addr","b":[186,14],"oa":3770,"o":"a_0EBA"},{"a":7195,"t":"addr","b":[188,14],"oa":3772,"o":"a_0EBC"},{"a":7197,"l":"spawns_9","c":"Seven enemy top-left screen addresses for units digit 9. initialise_enemies copies all seven; the tens digit determines which four to six slots are active.","t":"addr","b":[26,13],"oa":3354,"o":"a_0D1A","x":[7097]},{"a":7199,"t":"addr","b":[60,13],"oa":3388,"o":"a_0D3C"},{"a":7201,"t":"addr","b":[186,14],"oa":3770,"o":"a_0EBA"},{"a":7203,"t":"addr","b":[188,14],"oa":3772,"o":"a_0EBC"},{"a":7205,"t":"addr","b":[28,13],"oa":3356,"o":"a_0D1C"},{"a":7207,"t":"addr","b":[58,13],"oa":3386,"o":"a_0D3A"},{"a":7209,"t":"addr","b":[184,14],"oa":3768,"o":"a_0EB8"},{"a":7211,"l":"spawns_0","c":"Seven enemy top-left screen addresses for units digit 0. initialise_enemies copies all seven; the tens digit determines which four to six slots are active.","t":"addr","b":[18,14],"oa":3602,"o":"a_0E12","x":[7079]},{"a":7213,"t":"addr","b":[114,14],"oa":3698,"o":"a_0E72"},{"a":7215,"t":"addr","b":[74,15],"oa":3914,"o":"a_0F4A"},{"a":7217,"t":"addr","b":[106,15],"oa":3946,"o":"a_0F6A"},{"a":7219,"t":"addr","b":[20,14],"oa":3604,"o":"a_0E14"},{"a":7221,"t":"addr","b":[112,14],"oa":3696,"o":"a_0E70"},{"a":7223,"t":"addr","b":[76,15],"oa":3916,"o":"a_0F4C"},{"a":7225,"l":"spawns_8","c":"Seven enemy top-left screen addresses for units digit 8. initialise_enemies copies all seven; the tens digit determines which four to six slots are active.","t":"addr","b":[14,14],"oa":3598,"o":"a_0E0E","x":[7095]},{"a":7227,"t":"addr","b":[22,14],"oa":3606,"o":"a_0E16"},{"a":7229,"t":"addr","b":[106,14],"oa":3690,"o":"a_0E6A"},{"a":7231,"t":"addr","b":[10,15],"oa":3850,"o":"a_0F0A"},{"a":7233,"t":"addr","b":[108,14],"oa":3692,"o":"a_0E6C"},{"a":7235,"t":"addr","b":[104,14],"oa":3688,"o":"a_0E68"},{"a":7237,"t":"addr","b":[110,14],"oa":3694,"o":"a_0E6E"},{"a":7239,"l":"update_enemies","c":"Scan slots six down to zero, skipping negative inactive entries, and test explosion contact before updating each surviving slot. A kill discards two return addresses and exits the entire scan, leaving lower slots for another main-loop pass.","t":"code","b":[162,6],"m":"ldx","o":"#$06","x":[4472]},{"a":7241,"l":"b_1C49","t":"code","b":[181,84],"m":"lda","oa":84,"o":"enemy_direction,x","x":[7252]},{"a":7243,"t":"code","b":[48,6],"m":"bmi","oa":7251,"o":"b_1C53"},{"a":7245,"t":"code","b":[32,11,31],"m":"jsr","oa":7947,"o":"check_enemy_explosion"},{"a":7248,"t":"code","b":[32,204,29],"m":"jsr","oa":7628,"o":"update_enemy"},{"a":7251,"l":"b_1C53","t":"code","b":[202],"m":"dex","x":[7243]},{"a":7252,"t":"code","b":[16,243],"m":"bpl","oa":7241,"o":"b_1C49"},{"a":7254,"t":"code","b":[96],"m":"rts"},{"a":7255,"l":"retained_enemy_byte","c":"Single retained byte $03 between the enemy-update dispatcher and its drawing helpers; kept as data rather than an instruction.","t":"byte","b":[3]},{"a":7256,"l":"set_enemy_print","c":"Set print_ptr and print_colour from enemy slot X and reset print_column for the enemy's current screen position.","t":"code","b":[181,68],"m":"lda","oa":68,"o":"enemy_screen_lo,x","x":[7273,7289,7334,7548]},{"a":7258,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"print_ptr"},{"a":7260,"t":"code","b":[181,76],"m":"lda","oa":76,"o":"enemy_screen_hi,x"},{"a":7262,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":7264,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7266,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"print_column"},{"a":7268,"t":"code","b":[181,98],"m":"lda","oa":98,"o":"enemy_colour,x"},{"a":7270,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":7272,"t":"code","b":[96],"m":"rts"},{"a":7273,"l":"erase_enemy","c":"Erase the slot's two-by-two footprint, then clear its third column or row when a half-step extends the glyphs horizontally or vertically. Preserve the slot index through printing.","t":"code","b":[32,88,28],"m":"jsr","oa":7256,"o":"set_enemy_print","x":[6947,7668,7988]},{"a":7276,"t":"code","b":[134,22],"m":"stx","oa":22,"o":"saved_actor"},{"a":7278,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":7281,"l":"erase_enemy_cells","c":"Two-by-two space tile for the enemy's basic footprint.","t":"byte","b":[32,32,13,32,32,0]},{"a":7287,"l":"erase_enemy_extension","c":"Reload the slot after clearing the base two-by-two footprint and, for a shifted enemy, erase a third row or column according to its direction.","t":"code","b":[166,22],"m":"ldx","oa":22,"o":"saved_actor"},{"a":7289,"t":"code","b":[32,88,28],"m":"jsr","oa":7256,"o":"set_enemy_print"},{"a":7292,"t":"code","b":[181,92],"m":"lda","oa":92,"o":"enemy_half_step,x"},{"a":7294,"t":"code","b":[240,37],"m":"beq","oa":7333,"o":"r_1CA5"},{"a":7296,"t":"code","b":[181,106],"m":"lda","oa":106,"o":"enemy_shape,x"},{"a":7298,"t":"code","b":[240,33],"m":"beq","oa":7333,"o":"r_1CA5"},{"a":7300,"t":"code","b":[181,84],"m":"lda","oa":84,"o":"enemy_direction,x"},{"a":7302,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":7303,"t":"code","b":[176,14],"m":"bcs","oa":7319,"o":"b_1C97"},{"a":7305,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":7308,"l":"erase_enemy_wide","c":"Three spaces per row for an enemy halfway through a horizontal character step.","t":"byte","b":[32,32,32,13,32,32,32,0]},{"a":7316,"l":"erase_enemy_wide_return","c":"Restore the enemy slot in X and return after erasing its three-by-two horizontal footprint.","t":"code","b":[166,22],"m":"ldx","oa":22,"o":"saved_actor"},{"a":7318,"t":"code","b":[96],"m":"rts"},{"a":7319,"l":"b_1C97","t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline","x":[7303]},{"a":7322,"l":"erase_enemy_tall","c":"Two spaces in each of three rows for an enemy halfway through a vertical character step.","t":"byte","b":[32,32,13,32,32,13,32,32]},{"a":7330,"t":"byte","b":[0]},{"a":7331,"l":"erase_enemy_tall_return","c":"Restore the enemy slot in X and return after erasing its two-by-three vertical footprint.","t":"code","b":[166,22],"m":"ldx","oa":22,"o":"saved_actor"},{"a":7333,"l":"r_1CA5","t":"code","b":[96],"m":"rts","x":[7294,7298]},{"a":7334,"l":"draw_enemy","c":"Set mutable character selectors for slot X, calculate its private glyph destination, copy the selected thirty-two-byte shape into the scratch buffer, shift it for half-step motion and copy 48 bytes to the glyph set before printing the footprint.","t":"code","b":[32,88,28],"m":"jsr","oa":7256,"o":"set_enemy_print","x":[7776]},{"a":7337,"t":"code","b":[134,22],"m":"stx","oa":22,"o":"saved_actor"},{"a":7339,"t":"code","b":[138],"m":"txa"},{"a":7340,"t":"code","b":[10],"m":"asl","o":"a"},{"a":7341,"t":"code","b":[133,114],"m":"sta","oa":114,"o":"draw_scratch"},{"a":7343,"t":"code","b":[10],"m":"asl","o":"a"},{"a":7344,"t":"code","b":[101,114],"m":"adc","oa":114,"o":"draw_scratch"},{"a":7346,"t":"code","b":[105,206],"m":"adc","o":"#$CE"},{"a":7348,"t":"code","b":[168],"m":"tay"},{"a":7349,"t":"code","b":[140,116,29],"m":"sty","oa":7540,"o":"enemy_cells"},{"a":7352,"t":"code","b":[140,139,29],"m":"sty","oa":7563,"o":"enemy_wide_cells"},{"a":7355,"t":"code","b":[140,153,29],"m":"sty","oa":7577,"o":"enemy_tall_cells"},{"a":7358,"t":"code","b":[200],"m":"iny"},{"a":7359,"t":"code","b":[140,117,29],"m":"sty","oa":7541,"o":"$1D75"},{"a":7362,"t":"code","b":[140,140,29],"m":"sty","oa":7564,"o":"$1D8C"},{"a":7365,"t":"code","b":[140,154,29],"m":"sty","oa":7578,"o":"$1D9A"},{"a":7368,"t":"code","b":[200],"m":"iny"},{"a":7369,"t":"code","b":[140,119,29],"m":"sty","oa":7543,"o":"$1D77"},{"a":7372,"t":"code","b":[140,143,29],"m":"sty","oa":7567,"o":"$1D8F"},{"a":7375,"t":"code","b":[140,156,29],"m":"sty","oa":7580,"o":"$1D9C"},{"a":7378,"t":"code","b":[200],"m":"iny"},{"a":7379,"t":"code","b":[140,120,29],"m":"sty","oa":7544,"o":"$1D78"},{"a":7382,"t":"code","b":[140,144,29],"m":"sty","oa":7568,"o":"$1D90"},{"a":7385,"t":"code","b":[140,157,29],"m":"sty","oa":7581,"o":"$1D9D"},{"a":7388,"t":"code","b":[200],"m":"iny"},{"a":7389,"t":"code","b":[140,141,29],"m":"sty","oa":7565,"o":"$1D8D"},{"a":7392,"t":"code","b":[140,159,29],"m":"sty","oa":7583,"o":"$1D9F"},{"a":7395,"t":"code","b":[200],"m":"iny"},{"a":7396,"t":"code","b":[140,145,29],"m":"sty","oa":7569,"o":"$1D91"},{"a":7399,"t":"code","b":[140,160,29],"m":"sty","oa":7584,"o":"$1DA0"},{"a":7402,"t":"code","b":[32,244,30],"m":"jsr","oa":7924,"o":"select_enemy_glyphs"},{"a":7405,"t":"code","b":[165,115],"m":"lda","oa":115,"o":"enemy_frame_ptr"},{"a":7407,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":7409,"t":"code","b":[165,116],"m":"lda","oa":116,"o":"zpa_74"},{"a":7411,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":7413,"t":"code","b":[180,106],"m":"ldy","oa":106,"o":"enemy_shape,x"},{"a":7415,"l":"b_1CF7","t":"code","b":[136],"m":"dey","x":[7425,7429]},{"a":7416,"t":"code","b":[240,14],"m":"beq","oa":7432,"o":"b_1D08"},{"a":7418,"t":"code","b":[165,3],"m":"lda","oa":3,"o":"scratch_ptr"},{"a":7420,"t":"code","b":[24],"m":"clc"},{"a":7421,"t":"code","b":[105,32],"m":"adc","o":"#$20"},{"a":7423,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":7425,"t":"code","b":[144,244],"m":"bcc","oa":7415,"o":"b_1CF7"},{"a":7427,"t":"code","b":[230,4],"m":"inc","oa":4,"o":"zpa_04"},{"a":7429,"t":"code","b":[76,247,28],"m":"jmp","oa":7415,"o":"b_1CF7"},{"a":7432,"l":"b_1D08","t":"code","b":[160,31],"m":"ldy","o":"#$1F","x":[7416]},{"a":7434,"l":"b_1D0A","t":"code","b":[177,3],"m":"lda","oa":3,"o":"(scratch_ptr),y","x":[7440]},{"a":7436,"t":"code","b":[153,0,16],"m":"sta","oa":4096,"o":"f_1000,y"},{"a":7439,"t":"code","b":[136],"m":"dey"},{"a":7440,"t":"code","b":[16,248],"m":"bpl","oa":7434,"o":"b_1D0A"},{"a":7442,"t":"code","b":[160,15],"m":"ldy","o":"#$0F"},{"a":7444,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7446,"l":"b_1D16","t":"code","b":[153,32,16],"m":"sta","oa":4128,"o":"f_1020,y","x":[7450]},{"a":7449,"t":"code","b":[136],"m":"dey"},{"a":7450,"t":"code","b":[16,250],"m":"bpl","oa":7446,"o":"b_1D16"},{"a":7452,"t":"code","b":[181,92],"m":"lda","oa":92,"o":"enemy_half_step,x"},{"a":7454,"t":"code","b":[240,69],"m":"beq","oa":7525,"o":"b_1D65"},{"a":7456,"t":"code","b":[181,84],"m":"lda","oa":84,"o":"enemy_direction,x"},{"a":7458,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":7459,"t":"code","b":[144,36],"m":"bcc","oa":7497,"o":"b_1D49"},{"a":7461,"t":"code","b":[160,20],"m":"ldy","o":"#$14"},{"a":7463,"t":"code","b":[32,165,29],"m":"jsr","oa":7589,"o":"shift_enemy_lower_halves"},{"a":7466,"t":"code","b":[160,16],"m":"ldy","o":"#$10"},{"a":7468,"t":"code","b":[32,184,29],"m":"jsr","oa":7608,"o":"shift_enemy_upper_halves"},{"a":7471,"t":"code","b":[160,4],"m":"ldy","o":"#$04"},{"a":7473,"t":"code","b":[32,165,29],"m":"jsr","oa":7589,"o":"shift_enemy_lower_halves"},{"a":7476,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":7478,"t":"code","b":[32,184,29],"m":"jsr","oa":7608,"o":"shift_enemy_upper_halves"},{"a":7481,"t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":7483,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7485,"l":"b_1D3D","t":"code","b":[153,0,16],"m":"sta","oa":4096,"o":"f_1000,y","x":[7492]},{"a":7488,"t":"code","b":[153,8,16],"m":"sta","oa":4104,"o":"f_1008,y"},{"a":7491,"t":"code","b":[136],"m":"dey"},{"a":7492,"t":"code","b":[16,247],"m":"bpl","oa":7485,"o":"b_1D3D"},{"a":7494,"t":"code","b":[76,101,29],"m":"jmp","oa":7525,"o":"b_1D65"},{"a":7497,"l":"b_1D49","t":"code","b":[160,4],"m":"ldy","o":"#$04","x":[7459]},{"a":7499,"l":"b_1D4B","t":"code","b":[162,7],"m":"ldx","o":"#$07","x":[7523]},{"a":7501,"l":"b_1D4D","t":"code","b":[94,0,16],"m":"lsr","oa":4096,"o":"f_1000,x","x":[7520]},{"a":7504,"t":"code","b":[126,8,16],"m":"ror","oa":4104,"o":"f_1008,x"},{"a":7507,"t":"code","b":[126,32,16],"m":"ror","oa":4128,"o":"f_1020,x"},{"a":7510,"t":"code","b":[94,16,16],"m":"lsr","oa":4112,"o":"f_1010,x"},{"a":7513,"t":"code","b":[126,24,16],"m":"ror","oa":4120,"o":"f_1018,x"},{"a":7516,"t":"code","b":[126,40,16],"m":"ror","oa":4136,"o":"f_1028,x"},{"a":7519,"t":"code","b":[202],"m":"dex"},{"a":7520,"t":"code","b":[16,235],"m":"bpl","oa":7501,"o":"b_1D4D"},{"a":7522,"t":"code","b":[136],"m":"dey"},{"a":7523,"t":"code","b":[208,230],"m":"bne","oa":7499,"o":"b_1D4B"},{"a":7525,"l":"b_1D65","t":"code","b":[160,47],"m":"ldy","o":"#$2F","x":[7454,7494]},{"a":7527,"l":"b_1D67","t":"code","b":[185,0,16],"m":"lda","oa":4096,"o":"f_1000,y","x":[7533]},{"a":7530,"t":"code","b":[145,5],"m":"sta","oa":5,"o":"(scratch_ptr2),y"},{"a":7532,"t":"code","b":[136],"m":"dey"},{"a":7533,"t":"code","b":[16,248],"m":"bpl","oa":7527,"o":"b_1D67"},{"a":7535,"t":"code","b":[166,22],"m":"ldx","oa":22,"o":"saved_actor"},{"a":7537,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":7540,"l":"enemy_cells","c":"Mutable two-by-two enemy character selectors, patched from $CE plus six times the slot number by draw_enemy.","t":"byte","b":[65,66,13,67,68,0],"x":[7349]},{"a":7546,"l":"draw_enemy_extension","c":"Restore the slot and printing pointer after drawing its base footprint; a nonzero half-step prints the wide or tall mutable selector sequence.","t":"code","b":[166,22],"m":"ldx","oa":22,"o":"saved_actor"},{"a":7548,"t":"code","b":[32,88,28],"m":"jsr","oa":7256,"o":"set_enemy_print"},{"a":7551,"t":"code","b":[181,92],"m":"lda","oa":92,"o":"enemy_half_step,x"},{"a":7553,"t":"code","b":[240,18],"m":"beq","oa":7573,"o":"r_1D95"},{"a":7555,"t":"code","b":[181,84],"m":"lda","oa":84,"o":"enemy_direction,x"},{"a":7557,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":7558,"t":"code","b":[176,14],"m":"bcs","oa":7574,"o":"b_1D96"},{"a":7560,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":7563,"l":"enemy_wide_cells","c":"Mutable three-by-two enemy selectors used for a horizontal half-step.","t":"byte","b":[65,66,69,13,67,68,70,0],"x":[7352]},{"a":7571,"l":"draw_enemy_wide_return","c":"Restore X and return after drawing the horizontal half-step footprint.","t":"code","b":[166,22],"m":"ldx","oa":22,"o":"saved_actor"},{"a":7573,"l":"r_1D95","t":"code","b":[96],"m":"rts","x":[7553]},{"a":7574,"l":"b_1D96","t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline","x":[7558]},{"a":7577,"l":"enemy_tall_cells","c":"Mutable two-by-three enemy selectors used for a vertical half-step.","t":"byte","b":[65,66,13,67,68,13,69,70],"x":[7355]},{"a":7585,"t":"byte","b":[0]},{"a":7586,"l":"draw_enemy_tall_return","c":"Restore X and return after drawing the vertical half-step footprint.","t":"code","b":[166,22],"m":"ldx","oa":22,"o":"saved_actor"},{"a":7588,"t":"code","b":[96],"m":"rts"},{"a":7589,"l":"shift_enemy_lower_halves","c":"Copy four scan lines from each pair of source glyphs down into the next character row in the scratch buffer; used for vertical half-step drawing.","t":"code","b":[162,4],"m":"ldx","o":"#$04","x":[7463,7473]},{"a":7591,"l":"b_1DA7","t":"code","b":[185,0,16],"m":"lda","oa":4096,"o":"f_1000,y","x":[7605]},{"a":7594,"t":"code","b":[153,12,16],"m":"sta","oa":4108,"o":"f_100C,y"},{"a":7597,"t":"code","b":[185,8,16],"m":"lda","oa":4104,"o":"f_1008,y"},{"a":7600,"t":"code","b":[153,20,16],"m":"sta","oa":4116,"o":"f_1014,y"},{"a":7603,"t":"code","b":[200],"m":"iny"},{"a":7604,"t":"code","b":[202],"m":"dex"},{"a":7605,"t":"code","b":[208,240],"m":"bne","oa":7591,"o":"b_1DA7"},{"a":7607,"t":"code","b":[96],"m":"rts"},{"a":7608,"l":"shift_enemy_upper_halves","c":"Copy four scan lines within each pair of source glyphs into their lower halves; paired with shift_enemy_lower_halves for a four-line downward shift.","t":"code","b":[162,4],"m":"ldx","o":"#$04","x":[7468,7478]},{"a":7610,"l":"b_1DBA","t":"code","b":[185,0,16],"m":"lda","oa":4096,"o":"f_1000,y","x":[7624]},{"a":7613,"t":"code","b":[153,4,16],"m":"sta","oa":4100,"o":"f_1004,y"},{"a":7616,"t":"code","b":[185,8,16],"m":"lda","oa":4104,"o":"f_1008,y"},{"a":7619,"t":"code","b":[153,12,16],"m":"sta","oa":4108,"o":"f_100C,y"},{"a":7622,"t":"code","b":[200],"m":"iny"},{"a":7623,"t":"code","b":[202],"m":"dex"},{"a":7624,"t":"code","b":[208,240],"m":"bne","oa":7610,"o":"b_1DBA"},{"a":7626,"t":"code","b":[96],"m":"rts"},{"a":7627,"l":"enemy_anim_phase","c":"Shared zero/one animation selector toggled by update_enemy when enemy_anim_divider expires.","t":"byte","b":[0],"x":[4406,7640,7645]},{"a":7628,"l":"update_enemy","c":"Count the shared animation divider, choose its source bank when it expires, erase slot X and choose a direction when aligned. Toggle its half-step, move its screen address at the appropriate phase and draw it again.","t":"code","b":[134,22],"m":"stx","oa":22,"o":"saved_actor","x":[7248]},{"a":7630,"t":"code","b":[198,117],"m":"dec","oa":117,"o":"enemy_anim_divider"},{"a":7632,"t":"code","b":[208,30],"m":"bne","oa":7664,"o":"b_1DF0"},{"a":7634,"t":"code","b":[169,21],"m":"lda","o":"#$15"},{"a":7636,"t":"code","b":[133,117],"m":"sta","oa":117,"o":"enemy_anim_divider"},{"a":7638,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":7640,"t":"code","b":[173,203,29],"m":"lda","oa":7627,"o":"enemy_anim_phase"},{"a":7643,"t":"code","b":[73,1],"m":"eor","o":"#$01"},{"a":7645,"t":"code","b":[141,203,29],"m":"sta","oa":7627,"o":"enemy_anim_phase"},{"a":7648,"t":"code","b":[240,2],"m":"beq","oa":7652,"o":"b_1DE4"},{"a":7650,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":7652,"l":"b_1DE4","t":"code","b":[189,6,51],"m":"lda","oa":13062,"o":"enemy_bank_a_ptr,x","x":[7648]},{"a":7655,"t":"code","b":[133,115],"m":"sta","oa":115,"o":"enemy_frame_ptr"},{"a":7657,"t":"code","b":[189,7,51],"m":"lda","oa":13063,"o":"$3307,x"},{"a":7660,"t":"code","b":[133,116],"m":"sta","oa":116,"o":"zpa_74"},{"a":7662,"t":"code","b":[166,22],"m":"ldx","oa":22,"o":"saved_actor"},{"a":7664,"l":"b_1DF0","t":"code","b":[181,106],"m":"lda","oa":106,"o":"enemy_shape,x","x":[7632]},{"a":7666,"t":"code","b":[208,0],"m":"bne","oa":7668,"o":"b_1DF4"},{"a":7668,"l":"b_1DF4","t":"code","b":[32,105,28],"m":"jsr","oa":7273,"o":"erase_enemy","x":[7666]},{"a":7671,"t":"code","b":[181,92],"m":"lda","oa":92,"o":"enemy_half_step,x"},{"a":7673,"t":"code","b":[208,3],"m":"bne","oa":7678,"o":"b_1DFE"},{"a":7675,"t":"code","b":[32,100,30],"m":"jsr","oa":7780,"o":"choose_enemy_direction"},{"a":7678,"l":"b_1DFE","t":"code","b":[246,92],"m":"inc","oa":92,"o":"enemy_half_step,x","x":[7673]},{"a":7680,"t":"code","b":[181,92],"m":"lda","oa":92,"o":"enemy_half_step,x"},{"a":7682,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":7684,"t":"code","b":[208,4],"m":"bne","oa":7690,"o":"b_1E0A"},{"a":7686,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7688,"t":"code","b":[149,92],"m":"sta","oa":92,"o":"enemy_half_step,x"},{"a":7690,"l":"b_1E0A","t":"code","b":[181,84],"m":"lda","oa":84,"o":"enemy_direction,x","x":[7684]},{"a":7692,"t":"code","b":[208,13],"m":"bne","oa":7707,"o":"b_1E1B"},{"a":7694,"t":"code","b":[181,92],"m":"lda","oa":92,"o":"enemy_half_step,x"},{"a":7696,"t":"code","b":[208,78],"m":"bne","oa":7776,"o":"b_1E60"},{"a":7698,"t":"code","b":[246,68],"m":"inc","oa":68,"o":"enemy_screen_lo,x"},{"a":7700,"t":"code","b":[208,74],"m":"bne","oa":7776,"o":"b_1E60"},{"a":7702,"t":"code","b":[246,76],"m":"inc","oa":76,"o":"enemy_screen_hi,x"},{"a":7704,"t":"code","b":[76,96,30],"m":"jmp","oa":7776,"o":"b_1E60"},{"a":7707,"l":"b_1E1B","t":"code","b":[201,2],"m":"cmp","o":"#$02","x":[7692]},{"a":7709,"t":"code","b":[208,17],"m":"bne","oa":7728,"o":"b_1E30"},{"a":7711,"t":"code","b":[181,92],"m":"lda","oa":92,"o":"enemy_half_step,x"},{"a":7713,"t":"code","b":[240,61],"m":"beq","oa":7776,"o":"b_1E60"},{"a":7715,"t":"code","b":[214,68],"m":"dec","oa":68,"o":"enemy_screen_lo,x"},{"a":7717,"t":"code","b":[181,68],"m":"lda","oa":68,"o":"enemy_screen_lo,x"},{"a":7719,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":7721,"t":"code","b":[208,53],"m":"bne","oa":7776,"o":"b_1E60"},{"a":7723,"t":"code","b":[214,76],"m":"dec","oa":76,"o":"enemy_screen_hi,x"},{"a":7725,"t":"code","b":[76,96,30],"m":"jmp","oa":7776,"o":"b_1E60"},{"a":7728,"l":"b_1E30","t":"code","b":[201,1],"m":"cmp","o":"#$01","x":[7709]},{"a":7730,"t":"code","b":[208,18],"m":"bne","oa":7750,"o":"b_1E46"},{"a":7732,"t":"code","b":[181,92],"m":"lda","oa":92,"o":"enemy_half_step,x"},{"a":7734,"t":"code","b":[208,40],"m":"bne","oa":7776,"o":"b_1E60"},{"a":7736,"t":"code","b":[181,68],"m":"lda","oa":68,"o":"enemy_screen_lo,x"},{"a":7738,"t":"code","b":[24],"m":"clc"},{"a":7739,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":7741,"t":"code","b":[149,68],"m":"sta","oa":68,"o":"enemy_screen_lo,x"},{"a":7743,"t":"code","b":[144,31],"m":"bcc","oa":7776,"o":"b_1E60"},{"a":7745,"t":"code","b":[246,76],"m":"inc","oa":76,"o":"enemy_screen_hi,x"},{"a":7747,"t":"code","b":[76,96,30],"m":"jmp","oa":7776,"o":"b_1E60"},{"a":7750,"l":"b_1E46","t":"code","b":[201,3],"m":"cmp","o":"#$03","x":[7730]},{"a":7752,"t":"code","b":[208,18],"m":"bne","oa":7772,"o":"b_1E5C"},{"a":7754,"t":"code","b":[181,92],"m":"lda","oa":92,"o":"enemy_half_step,x"},{"a":7756,"t":"code","b":[240,18],"m":"beq","oa":7776,"o":"b_1E60"},{"a":7758,"t":"code","b":[181,68],"m":"lda","oa":68,"o":"enemy_screen_lo,x"},{"a":7760,"t":"code","b":[56],"m":"sec"},{"a":7761,"t":"code","b":[233,40],"m":"sbc","o":"#$28"},{"a":7763,"t":"code","b":[149,68],"m":"sta","oa":68,"o":"enemy_screen_lo,x"},{"a":7765,"t":"code","b":[176,9],"m":"bcs","oa":7776,"o":"b_1E60"},{"a":7767,"t":"code","b":[214,76],"m":"dec","oa":76,"o":"enemy_screen_hi,x"},{"a":7769,"t":"code","b":[76,96,30],"m":"jmp","oa":7776,"o":"b_1E60"},{"a":7772,"l":"b_1E5C","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[7752]},{"a":7774,"t":"code","b":[149,92],"m":"sta","oa":92,"o":"enemy_half_step,x"},{"a":7776,"l":"b_1E60","t":"code","b":[32,166,28],"m":"jsr","oa":7334,"o":"draw_enemy","x":[7696,7700,7704,7713,7721,7725,7734,7743,7747,7756,7765,7769]},{"a":7779,"t":"code","b":[96],"m":"rts"},{"a":7780,"l":"choose_enemy_direction","c":"Retain the current state when TED timer 2's low-byte reading is below 220; otherwise take a fresh reading. Fresh readings below 45 install state 5-49 and return without moving; other readings or retained states are masked to a direction. Test two leading cells and vertical bounds, retrying timer-derived choices when blocked.","t":"code","b":[173,2,255],"m":"lda","o":"ted_timer2_lo","x":[7675]},{"a":7783,"t":"code","b":[201,220],"m":"cmp","o":"#$DC"},{"a":7785,"t":"code","b":[176,5],"m":"bcs","oa":7792,"o":"b_1E70"},{"a":7787,"t":"code","b":[181,84],"m":"lda","oa":84,"o":"enemy_direction,x"},{"a":7789,"t":"code","b":[76,124,30],"m":"jmp","oa":7804,"o":"j_1E7C"},{"a":7792,"l":"b_1E70","t":"code","b":[173,2,255],"m":"lda","o":"ted_timer2_lo","x":[7785,7892]},{"a":7795,"t":"code","b":[201,45],"m":"cmp","o":"#$2D"},{"a":7797,"t":"code","b":[176,5],"m":"bcs","oa":7804,"o":"j_1E7C"},{"a":7799,"t":"code","b":[105,5],"m":"adc","o":"#$05"},{"a":7801,"t":"code","b":[149,84],"m":"sta","oa":84,"o":"enemy_direction,x"},{"a":7803,"t":"code","b":[96],"m":"rts"},{"a":7804,"l":"j_1E7C","t":"code","b":[41,3],"m":"and","o":"#$03","x":[7789,7797]},{"a":7806,"t":"code","b":[149,84],"m":"sta","oa":84,"o":"enemy_direction,x"},{"a":7808,"t":"code","b":[181,76],"m":"lda","oa":76,"o":"enemy_screen_hi,x"},{"a":7810,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":7812,"t":"code","b":[181,68],"m":"lda","oa":68,"o":"enemy_screen_lo,x"},{"a":7814,"t":"code","b":[56],"m":"sec"},{"a":7815,"t":"code","b":[233,40],"m":"sbc","o":"#$28"},{"a":7817,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":7819,"t":"code","b":[176,2],"m":"bcs","oa":7823,"o":"b_1E8F"},{"a":7821,"t":"code","b":[198,4],"m":"dec","oa":4,"o":"zpa_04"},{"a":7823,"l":"b_1E8F","t":"code","b":[181,84],"m":"lda","oa":84,"o":"enemy_direction,x","x":[7819]},{"a":7825,"t":"code","b":[240,13],"m":"beq","oa":7840,"o":"b_1EA0"},{"a":7827,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":7829,"t":"code","b":[240,19],"m":"beq","oa":7850,"o":"b_1EAA"},{"a":7831,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":7833,"t":"code","b":[240,10],"m":"beq","oa":7845,"o":"b_1EA5"},{"a":7835,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":7837,"t":"code","b":[76,172,30],"m":"jmp","oa":7852,"o":"j_1EAC"},{"a":7840,"l":"b_1EA0","t":"code","b":[160,42],"m":"ldy","o":"#$2A","x":[7825]},{"a":7842,"t":"code","b":[76,215,30],"m":"jmp","oa":7895,"o":"j_1ED7"},{"a":7845,"l":"b_1EA5","t":"code","b":[160,39],"m":"ldy","o":"#$27","x":[7833]},{"a":7847,"t":"code","b":[76,215,30],"m":"jmp","oa":7895,"o":"j_1ED7"},{"a":7850,"l":"b_1EAA","t":"code","b":[160,120],"m":"ldy","o":"#$78","x":[7829]},{"a":7852,"l":"j_1EAC","t":"code","b":[32,231,30],"m":"jsr","oa":7911,"o":"test_enemy_cell","x":[7837]},{"a":7855,"t":"code","b":[208,35],"m":"bne","oa":7892,"o":"b_1ED4"},{"a":7857,"t":"code","b":[200],"m":"iny"},{"a":7858,"t":"code","b":[32,231,30],"m":"jsr","oa":7911,"o":"test_enemy_cell"},{"a":7861,"t":"code","b":[208,29],"m":"bne","oa":7892,"o":"b_1ED4"},{"a":7863,"t":"code","b":[192,100],"m":"cpy","o":"#$64"},{"a":7865,"t":"code","b":[144,13],"m":"bcc","oa":7880,"o":"b_1EC8"},{"a":7867,"t":"code","b":[165,4],"m":"lda","oa":4,"o":"zpa_04"},{"a":7869,"t":"code","b":[201,15],"m":"cmp","o":"#$0F"},{"a":7871,"t":"code","b":[208,6],"m":"bne","oa":7879,"o":"r_1EC7"},{"a":7873,"t":"code","b":[165,3],"m":"lda","oa":3,"o":"scratch_ptr"},{"a":7875,"t":"code","b":[201,72],"m":"cmp","o":"#$48"},{"a":7877,"t":"code","b":[176,13],"m":"bcs","oa":7892,"o":"b_1ED4"},{"a":7879,"l":"r_1EC7","t":"code","b":[96],"m":"rts","x":[7871,7884,7890]},{"a":7880,"l":"b_1EC8","t":"code","b":[165,4],"m":"lda","oa":4,"o":"zpa_04","x":[7865]},{"a":7882,"t":"code","b":[201,12],"m":"cmp","o":"#$0C"},{"a":7884,"t":"code","b":[208,249],"m":"bne","oa":7879,"o":"r_1EC7"},{"a":7886,"t":"code","b":[165,3],"m":"lda","oa":3,"o":"scratch_ptr"},{"a":7888,"t":"code","b":[201,200],"m":"cmp","o":"#$C8"},{"a":7890,"t":"code","b":[176,243],"m":"bcs","oa":7879,"o":"r_1EC7"},{"a":7892,"l":"b_1ED4","t":"code","b":[76,112,30],"m":"jmp","oa":7792,"o":"b_1E70","x":[7855,7861,7877,7898,7908]},{"a":7895,"l":"j_1ED7","t":"code","b":[32,231,30],"m":"jsr","oa":7911,"o":"test_enemy_cell","x":[7842,7847]},{"a":7898,"t":"code","b":[208,248],"m":"bne","oa":7892,"o":"b_1ED4"},{"a":7900,"t":"code","b":[152],"m":"tya"},{"a":7901,"t":"code","b":[24],"m":"clc"},{"a":7902,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":7904,"t":"code","b":[168],"m":"tay"},{"a":7905,"t":"code","b":[32,231,30],"m":"jsr","oa":7911,"o":"test_enemy_cell"},{"a":7908,"t":"code","b":[208,238],"m":"bne","oa":7892,"o":"b_1ED4"},{"a":7910,"t":"code","b":[96],"m":"rts"},{"a":7911,"l":"test_enemy_cell","c":"Read a candidate screen cell through scratch_ptr and Y. Return with Z set for a space (A remains $20) or a code at least $60 (A becomes zero). Other codes below $60 return with Z clear and A unchanged, so callers treat them as blockers.","t":"code","b":[177,3],"m":"lda","oa":3,"o":"(scratch_ptr),y","x":[7852,7858,7895,7905]},{"a":7913,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":7915,"t":"code","b":[240,6],"m":"beq","oa":7923,"o":"r_1EF3"},{"a":7917,"t":"code","b":[201,96],"m":"cmp","o":"#$60"},{"a":7919,"t":"code","b":[144,2],"m":"bcc","oa":7923,"o":"r_1EF3"},{"a":7921,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7923,"l":"r_1EF3","t":"code","b":[96],"m":"rts","x":[7915,7919]},{"a":7924,"l":"select_enemy_glyphs","c":"For normal active slots X=0-5 compute the glyph destination $3E70 plus 48 times X in scratch_ptr2. The dormant slot X=6 overflows the shift arithmetic and returns $3E91 instead of the expected $3F90.","t":"code","b":[169,62],"m":"lda","o":"#$3E","x":[7402]},{"a":7926,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpa_06"},{"a":7928,"t":"code","b":[138],"m":"txa"},{"a":7929,"t":"code","b":[10],"m":"asl","o":"a"},{"a":7930,"t":"code","b":[133,114],"m":"sta","oa":114,"o":"draw_scratch"},{"a":7932,"t":"code","b":[10],"m":"asl","o":"a"},{"a":7933,"t":"code","b":[101,114],"m":"adc","oa":114,"o":"draw_scratch"},{"a":7935,"t":"code","b":[10],"m":"asl","o":"a"},{"a":7936,"t":"code","b":[10],"m":"asl","o":"a"},{"a":7937,"t":"code","b":[10],"m":"asl","o":"a"},{"a":7938,"t":"code","b":[105,112],"m":"adc","o":"#$70"},{"a":7940,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"scratch_ptr2"},{"a":7942,"t":"code","b":[144,2],"m":"bcc","oa":7946,"o":"r_1F0A"},{"a":7944,"t":"code","b":[230,6],"m":"inc","oa":6,"o":"zpa_06"},{"a":7946,"l":"r_1F0A","t":"code","b":[96],"m":"rts","x":[7942]},{"a":7947,"l":"check_enemy_explosion","c":"For slot X with a nonzero shape, test the four basic footprint cells for explosion glyphs through check_enemy_fire_cell.","t":"code","b":[181,106],"m":"lda","oa":106,"o":"enemy_shape,x","x":[7245]},{"a":7949,"t":"code","b":[240,57],"m":"beq","oa":8008,"o":"r_1F48"},{"a":7951,"t":"code","b":[181,68],"m":"lda","oa":68,"o":"enemy_screen_lo,x"},{"a":7953,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":7955,"t":"code","b":[181,76],"m":"lda","oa":76,"o":"enemy_screen_hi,x"},{"a":7957,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":7959,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":7961,"t":"code","b":[32,42,31],"m":"jsr","oa":7978,"o":"check_enemy_fire_cell"},{"a":7964,"t":"code","b":[200],"m":"iny"},{"a":7965,"t":"code","b":[32,42,31],"m":"jsr","oa":7978,"o":"check_enemy_fire_cell"},{"a":7968,"t":"code","b":[160,40],"m":"ldy","o":"#$28"},{"a":7970,"t":"code","b":[32,42,31],"m":"jsr","oa":7978,"o":"check_enemy_fire_cell"},{"a":7973,"t":"code","b":[200],"m":"iny"},{"a":7974,"t":"code","b":[32,42,31],"m":"jsr","oa":7978,"o":"check_enemy_fire_cell"},{"a":7977,"t":"code","b":[96],"m":"rts"},{"a":7978,"l":"check_enemy_fire_cell","c":"On a glyph in $69-$6C erase and deactivate the enemy, award 100 points and discard two return addresses so the killed slot does not continue its update; other cells return normally.","t":"code","b":[177,3],"m":"lda","oa":3,"o":"(scratch_ptr),y","x":[7961,7965,7970,7974]},{"a":7980,"t":"code","b":[201,109],"m":"cmp","o":"#$6D"},{"a":7982,"t":"code","b":[176,24],"m":"bcs","oa":8008,"o":"r_1F48"},{"a":7984,"t":"code","b":[201,105],"m":"cmp","o":"#$69"},{"a":7986,"t":"code","b":[144,20],"m":"bcc","oa":8008,"o":"r_1F48"},{"a":7988,"t":"code","b":[32,105,28],"m":"jsr","oa":7273,"o":"erase_enemy"},{"a":7991,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":7993,"t":"code","b":[149,84],"m":"sta","oa":84,"o":"enemy_direction,x"},{"a":7995,"t":"code","b":[134,22],"m":"stx","oa":22,"o":"saved_actor"},{"a":7997,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":7999,"t":"code","b":[32,250,18],"m":"jsr","oa":4858,"o":"add_hundreds"},{"a":8002,"t":"code","b":[166,22],"m":"ldx","oa":22,"o":"saved_actor"},{"a":8004,"t":"code","b":[104],"m":"pla"},{"a":8005,"t":"code","b":[104],"m":"pla"},{"a":8006,"t":"code","b":[104],"m":"pla"},{"a":8007,"t":"code","b":[104],"m":"pla"},{"a":8008,"l":"r_1F48","t":"code","b":[96],"m":"rts","x":[7949,7982,7986]},{"a":8009,"l":"draw_bomb_inventory","c":"Clear the ten-by-two icon area at $0C96, clamp the number of drawn bombs to five, then draw that many two-by-two bomb icons. bombs_left itself may hold up to nine.","t":"code","b":[169,12],"m":"lda","o":"#$0C","x":[5169,6738]},{"a":8011,"t":"code","b":[162,150],"m":"ldx","o":"#$96"},{"a":8013,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":8016,"t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline"},{"a":8019,"l":"bomb_inventory_blank","c":"Inline ten-by-two space strip used to clear the inventory panel before redrawing its icons.","t":"byte","b":[32,32,32,32,32,32,32,32]},{"a":8027,"t":"byte","b":[32,32,13,32,32,32,32,32]},{"a":8035,"t":"byte","b":[32,32,32,32,32,0]},{"a":8041,"l":"draw_bomb_icons","c":"After clearing the inventory strip, reset its pointer, select attribute $43, clamp the displayed count to five and print one icon per decremented count.","t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":8043,"t":"code","b":[162,150],"m":"ldx","o":"#$96"},{"a":8045,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":8048,"t":"code","b":[169,67],"m":"lda","o":"#$43"},{"a":8050,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"print_colour"},{"a":8052,"t":"code","b":[165,123],"m":"lda","oa":123,"o":"bombs_left"},{"a":8054,"t":"code","b":[201,6],"m":"cmp","o":"#$06"},{"a":8056,"t":"code","b":[144,2],"m":"bcc","oa":8060,"o":"b_1F7C"},{"a":8058,"t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":8060,"l":"b_1F7C","t":"code","b":[133,114],"m":"sta","oa":114,"o":"draw_scratch","x":[8056]},{"a":8062,"l":"j_1F7E","t":"code","b":[198,114],"m":"dec","oa":114,"o":"draw_scratch","x":[8087]},{"a":8064,"t":"code","b":[16,1],"m":"bpl","oa":8067,"o":"b_1F83"},{"a":8066,"t":"code","b":[96],"m":"rts"},{"a":8067,"l":"b_1F83","t":"code","b":[32,95,18],"m":"jsr","oa":4703,"o":"print_inline","x":[8064]},{"a":8070,"l":"bomb_inventory_icon","c":"Inline two-by-two inventory bomb glyphs $60,$61/$62,$63.","t":"byte","b":[96,97,13,98,99,0]},{"a":8076,"l":"advance_bomb_icon","c":"After printing one two-row bomb icon, move the printing pointer two characters right on its top row and repeat the inventory counter loop.","t":"code","b":[165,13],"m":"lda","oa":13,"o":"print_ptr"},{"a":8078,"t":"code","b":[56],"m":"sec"},{"a":8079,"t":"code","b":[233,38],"m":"sbc","o":"#$26"},{"a":8081,"t":"code","b":[170],"m":"tax"},{"a":8082,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":8084,"t":"code","b":[32,190,19],"m":"jsr","oa":5054,"o":"set_print_pointer"},{"a":8087,"t":"code","b":[76,126,31],"m":"jmp","oa":8062,"o":"j_1F7E"},{"a":8090,"l":"update_sound","c":"While a bomb is idle, drive voice 2 noise at the bomb pitch; after detonation count down the explosion sound. When the player's position changes, alternate short voice 1 pulses with a skipped pulse and remember the new coordinates after a played pulse.","t":"code","b":[173,10,32],"m":"lda","oa":8202,"o":"bomb_sound_active","x":[4484]},{"a":8093,"t":"code","b":[240,13],"m":"beq","oa":8108,"o":"b_1FAC"},{"a":8095,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":8097,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":8099,"t":"code","b":[32,14,20],"m":"jsr","oa":5134,"o":"set_voice2_pitch"},{"a":8102,"t":"code","b":[32,238,19],"m":"jsr","oa":5102,"o":"enable_noise"},{"a":8105,"t":"code","b":[76,209,31],"m":"jmp","oa":8145,"o":"j_1FD1"},{"a":8108,"l":"b_1FAC","t":"code","b":[206,12,32],"m":"dec","oa":8204,"o":"explosion_sound_left","x":[8093]},{"a":8111,"t":"code","b":[16,9],"m":"bpl","oa":8122,"o":"b_1FBA"},{"a":8113,"t":"code","b":[238,12,32],"m":"inc","oa":8204,"o":"explosion_sound_left"},{"a":8116,"t":"code","b":[32,247,19],"m":"jsr","oa":5111,"o":"disable_noise"},{"a":8119,"t":"code","b":[76,209,31],"m":"jmp","oa":8145,"o":"j_1FD1"},{"a":8122,"l":"b_1FBA","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[8111]},{"a":8124,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":8126,"t":"code","b":[205,12,32],"m":"cmp","oa":8204,"o":"explosion_sound_left"},{"a":8129,"t":"code","b":[240,11],"m":"beq","oa":8142,"o":"b_1FCE"},{"a":8131,"t":"code","b":[169,100],"m":"lda","o":"#$64"},{"a":8133,"t":"code","b":[32,14,20],"m":"jsr","oa":5134,"o":"set_voice2_pitch"},{"a":8136,"t":"code","b":[32,238,19],"m":"jsr","oa":5102,"o":"enable_noise"},{"a":8139,"t":"code","b":[76,209,31],"m":"jmp","oa":8145,"o":"j_1FD1"},{"a":8142,"l":"b_1FCE","t":"code","b":[32,247,19],"m":"jsr","oa":5111,"o":"disable_noise","x":[8129]},{"a":8145,"l":"j_1FD1","t":"code","b":[165,26],"m":"lda","oa":26,"o":"player_x","x":[8105,8119,8139]},{"a":8147,"t":"code","b":[205,13,32],"m":"cmp","oa":8205,"o":"sound_previous_x"},{"a":8150,"t":"code","b":[208,7],"m":"bne","oa":8159,"o":"b_1FDF"},{"a":8152,"t":"code","b":[165,27],"m":"lda","oa":27,"o":"player_y"},{"a":8154,"t":"code","b":[205,14,32],"m":"cmp","oa":8206,"o":"sound_previous_y"},{"a":8157,"t":"code","b":[240,42],"m":"beq","oa":8201,"o":"r_2009"},{"a":8159,"l":"b_1FDF","t":"code","b":[169,2],"m":"lda","o":"#$02","x":[8150]},{"a":8161,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scratch_ptr"},{"a":8163,"t":"code","b":[173,11,32],"m":"lda","oa":8203,"o":"walk_sound_alternator"},{"a":8166,"t":"code","b":[240,6],"m":"beq","oa":8174,"o":"b_1FEE"},{"a":8168,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8170,"t":"code","b":[141,11,32],"m":"sta","oa":8203,"o":"walk_sound_alternator"},{"a":8173,"t":"code","b":[96],"m":"rts"},{"a":8174,"l":"b_1FEE","t":"code","b":[32,0,20],"m":"jsr","oa":5120,"o":"set_voice1_pitch","x":[8166]},{"a":8177,"t":"code","b":[32,220,19],"m":"jsr","oa":5084,"o":"enable_walk_tone"},{"a":8180,"t":"code","b":[165,26],"m":"lda","oa":26,"o":"player_x"},{"a":8182,"t":"code","b":[141,13,32],"m":"sta","oa":8205,"o":"sound_previous_x"},{"a":8185,"t":"code","b":[141,11,32],"m":"sta","oa":8203,"o":"walk_sound_alternator"},{"a":8188,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":8190,"l":"b_1FFE","t":"code","b":[165,27],"m":"lda","oa":27,"o":"player_y","x":[8196]},{"a":8192,"t":"code","b":[141,14,32],"m":"sta","oa":8206,"o":"sound_previous_y"},{"a":8195,"t":"code","b":[202],"m":"dex"},{"a":8196,"t":"code","b":[208,248],"m":"bne","oa":8190,"o":"b_1FFE"},{"a":8198,"t":"code","b":[32,229,19],"m":"jsr","oa":5093,"o":"disable_walk_tone"},{"a":8201,"l":"r_2009","t":"code","b":[96],"m":"rts","x":[8157]},{"a":8202,"l":"bomb_sound_active","c":"Nonzero selects the idle-bomb noise frequency. Placement sets one; detonation and silence_sound clear it.","t":"byte","b":[0],"x":[5065,6735,6908,8090]},{"a":8203,"l":"walk_sound_alternator","c":"Zero allows a walking pulse; the played pulse stores player_x here and a subsequent changed-position call clears it and returns early.","t":"byte","b":[0],"x":[8163,8170,8185]},{"a":8204,"l":"explosion_sound_left","c":"Detonation sets ten; update_sound decrements to zero, retaining zero after the next underflow and disabling noise.","t":"byte","b":[0],"x":[5068,6903,8108,8113,8126]},{"a":8205,"l":"sound_previous_x","c":"Player X coordinate remembered after a walking sound pulse, compared with player_x on subsequent sound updates.","t":"byte","b":[0],"x":[8147,8182]},{"a":8206,"l":"sound_previous_y","c":"Player Y coordinate remembered after a walking sound pulse, compared with player_y to detect vertical motion.","t":"byte","b":[0],"x":[8154,8192]},{"a":8207,"l":"maze_base","c":"Little-endian pointer to the ten twenty-four-byte maze records at $2011; select_maze advances by the displayed units digit's record offset.","t":"byte","b":[17,32],"x":[6232]},{"a":8209,"l":"maze_1","c":"Twenty-four map packets for levels with units digit 1: six wall bits per packet and two object bits. This layout contains 3 keys, 3 rings and 2 apples, with a nominal face-value sum of 1500 points. The score adder can discard carry remainder, so the actual gain depends on the previous score and collection order.","t":"byte","b":[48,48,24,56,88,24,146,56]},{"a":8217,"t":"byte","b":[248,120,56,2,16,7,48,152]},{"a":8225,"t":"byte","b":[7,18,6,199,6,3,71,131]},{"a":8233,"l":"maze_2","c":"Twenty-four map packets for levels with units digit 2: six wall bits per packet and two object bits. This layout contains 3 keys, 3 rings and 2 apples, with a nominal face-value sum of 1500 points. The score adder can discard carry remainder, so the actual gain depends on the previous score and collection order.","t":"byte","b":[48,24,56,12,33,88,146,216]},{"a":8241,"t":"byte","b":[83,15,7,27,146,199,48,44]},{"a":8249,"t":"byte","b":[27,24,70,7,48,12,33,187]},{"a":8257,"l":"maze_3","c":"Twenty-four map packets for levels with units digit 3: six wall bits per packet and two object bits. This layout contains 2 keys, 1 rings and 2 apples, with a nominal face-value sum of 1000 points. The score adder can discard carry remainder, so the actual gain depends on the previous score and collection order.","t":"byte","b":[80,40,18,153,40,16,16,40]},{"a":8265,"t":"byte","b":[18,25,40,208,16,104,56,24]},{"a":8273,"t":"byte","b":[40,16,16,40,56,24,232,16]},{"a":8281,"l":"maze_4","c":"Twenty-four map packets for levels with units digit 4: six wall bits per packet and two object bits. This layout contains 1 keys, 3 rings and 0 apples, with a nominal face-value sum of 700 points. The score adder can discard carry remainder, so the actual gain depends on the previous score and collection order.","t":"byte","b":[16,27,24,24,27,8,18,3]},{"a":8289,"t":"byte","b":[27,27,3,19,18,51,184,56]},{"a":8297,"t":"byte","b":[75,11,2,128,0,128,0,0]},{"a":8305,"l":"maze_5","c":"Twenty-four map packets for levels with units digit 5: six wall bits per packet and two object bits. This layout contains 0 keys, 0 rings and 7 apples, with a nominal face-value sum of 2100 points. The score adder can discard carry remainder, so the actual pickup gain depends on the previous score. All seven pickups have the same value, so their order does not change that gain.","t":"byte","b":[11,204,11,38,33,204,52,33]},{"a":8313,"t":"byte","b":[36,40,6,3,44,198,233,60]},{"a":8321,"t":"byte","b":[208,25,205,3,5,33,26,195]},{"a":8329,"l":"maze_6","c":"Twenty-four map packets for levels with units digit 6: six wall bits per packet and two object bits. This layout contains 0 keys, 7 rings and 0 apples, with a nominal face-value sum of 1400 points. The score adder can discard carry remainder, so the actual pickup gain depends on the previous score. All seven pickups have the same value, so their order does not change that gain.","t":"byte","b":[0,128,18,9,0,128,0,36]},{"a":8337,"t":"byte","b":[56,60,0,0,0,0,0,0]},{"a":8345,"t":"byte","b":[0,0,0,128,128,128,128,128]},{"a":8353,"l":"maze_7","c":"Twenty-four map packets for levels with units digit 7: six wall bits per packet and two object bits. This layout contains 3 keys, 1 rings and 0 apples, with a nominal face-value sum of 500 points. The score adder can discard carry remainder, so the actual gain depends on the previous score and collection order.","t":"byte","b":[118,27,56,56,54,91,18,24]},{"a":8361,"t":"byte","b":[56,56,48,26,16,56,56,56]},{"a":8369,"t":"byte","b":[56,24,18,131,63,63,71,3]},{"a":8377,"l":"maze_8","c":"Twenty-four map packets for levels with units digit 8: six wall bits per packet and two object bits. This layout contains 1 keys, 2 rings and 1 apples, with a nominal face-value sum of 800 points. The score adder can discard carry remainder, so the actual gain depends on the previous score and collection order.","t":"byte","b":[48,40,2,33,48,24,210,13]},{"a":8385,"t":"byte","b":[3,7,18,160,16,41,24,56]},{"a":8393,"t":"byte","b":[18,36,6,5,176,12,6,101]},{"a":8401,"l":"maze_9","c":"Twenty-four map packets for levels with units digit 9: six wall bits per packet and two object bits. This layout contains 3 keys, 2 rings and 1 apples, with a nominal face-value sum of 1000 points. The score adder can discard carry remainder, so the actual gain depends on the previous score and collection order.","t":"byte","b":[48,6,48,12,101,80,22,135]},{"a":8409,"t":"byte","b":[3,48,8,18,18,19,0,4]},{"a":8417,"t":"byte","b":[3,18,56,218,6,7,183,66]},{"a":8425,"l":"maze_0","c":"Twenty-four map packets for levels with units digit 0: six wall bits per packet and two object bits. This layout contains 1 keys, 4 rings and 0 apples, with a nominal face-value sum of 900 points. The score adder can discard carry remainder, so the actual gain depends on the previous score and collection order.","t":"byte","b":[129,0,0,0,6,64,48,15]},{"a":8433,"t":"byte","b":[0,56,0,24,0,32,14,128]},{"a":8441,"t":"byte","b":[6,1,0,0,128,6,0,160]},{"a":8449,"t":"gap","n":4607},{"a":13056,"l":"horizontal_player_ptr","c":"Address $330A of eight horizontal walking frames, thirty-two bytes apart; draw_player uses selector values 0-7.","t":"addr","b":[10,51],"oa":13066,"o":"player_horizontal_frames","x":[5696]},{"a":13058,"l":"vertical_player_ptr","c":"Address $340A of eight vertical walking frames, forty-eight bytes apart; draw_player subtracts eight from selectors 8-15.","t":"addr","b":[10,52],"oa":13322,"o":"player_vertical_frames","x":[5716]},{"a":13060,"l":"explosion_frames_ptr","c":"Address $358A of four thirty-two-byte fire frames. update_bomb indexes with explosion_phase minus two after incrementing the phase.","t":"addr","b":[138,53],"oa":13706,"o":"explosion_frames","x":[6828]},{"a":13062,"l":"enemy_bank_a_ptr","c":"Address $360A of the first enemy animation bank; update_enemy installs it when the shared animation phase selects bank A.","t":"addr","b":[10,54],"oa":13834,"o":"enemy_frame_bank_a","x":[7652]},{"a":13064,"l":"enemy_bank_b_ptr","c":"Address $36AA of the second enemy animation bank, paired with enemy_bank_a_ptr.","t":"addr","b":[170,54],"oa":13994,"o":"enemy_frame_bank_b"},{"a":13066,"l":"player_horizontal_frames","c":"Eight sixteen-by-sixteen-pixel multicolour player frames, each four eight-byte glyphs: four right-facing and four left-facing. draw_player copies 48 bytes although this drawing uses the first 32.","t":"byte","b":[22,94,95,127,126,60,170,170],"x":[13056]},{"a":13074,"t":"byte","b":[0,0,0,0,0,0,0,128]},{"a":13082,"t":"byte","b":[186,186,186,58,42,42,81,89]},{"a":13090,"t":"byte","b":[128,128,128,128,0,0,64,128]},{"a":13098,"t":"byte","b":[0,1,1,1,1,0,2,2]},{"a":13106,"t":"byte","b":[88,120,124,252,248,240,168,234]},{"a":13114,"t":"byte","b":[2,2,2,0,0,0,0,0]},{"a":13122,"t":"byte","b":[250,190,170,168,160,160,80,84]},{"a":13130,"t":"byte","b":[22,94,95,127,126,60,170,170]},{"a":13138,"t":"byte","b":[0,0,0,0,0,0,0,128]},{"a":13146,"t":"byte","b":[186,186,186,58,42,42,80,88]},{"a":13154,"t":"byte","b":[128,128,128,0,128,208,96,64]},{"a":13162,"t":"byte","b":[0,1,1,1,1,0,2,2]},{"a":13170,"t":"byte","b":[88,120,124,252,248,240,168,234]},{"a":13178,"t":"byte","b":[2,2,2,0,2,6,6,5]},{"a":13186,"t":"byte","b":[234,250,190,174,168,136,148,21]},{"a":13194,"t":"byte","b":[21,61,61,63,63,15,42,174]},{"a":13202,"t":"byte","b":[0,64,64,64,64,0,128,128]},{"a":13210,"t":"byte","b":[174,174,174,174,42,10,80,81]},{"a":13218,"t":"byte","b":[128,128,128,0,0,128,64,64]},{"a":13226,"t":"byte","b":[0,0,0,0,0,0,0,2]},{"a":13234,"t":"byte","b":[84,245,245,253,253,60,170,186]},{"a":13242,"t":"byte","b":[2,2,2,0,2,6,7,1]},{"a":13250,"t":"byte","b":[190,250,170,168,170,138,5,21]},{"a":13258,"t":"byte","b":[21,61,61,63,63,15,42,174]},{"a":13266,"t":"byte","b":[0,64,64,64,64,0,128,128]},{"a":13274,"t":"byte","b":[174,174,174,174,42,10,5,149]},{"a":13282,"t":"byte","b":[128,128,128,0,0,0,0,0]},{"a":13290,"t":"byte","b":[0,0,0,0,0,0,0,2]},{"a":13298,"t":"byte","b":[84,245,245,253,253,56,170,190]},{"a":13306,"t":"byte","b":[2,2,2,2,0,0,1,5]},{"a":13314,"t":"byte","b":[186,250,234,168,170,41,73,69]},{"a":13322,"l":"player_vertical_frames","c":"Eight sixteen-by-twenty-four-pixel player frames, each six eight-byte glyphs: four down-facing and four up-facing. The extra row accommodates vertical half-character motion.","t":"byte","b":[1,5,7,3,15,13,3,42],"x":[13058]},{"a":13330,"t":"byte","b":[64,80,208,48,240,224,192,170]},{"a":13338,"t":"byte","b":[234,234,234,42,10,10,10,5]},{"a":13346,"t":"byte","b":[171,171,168,168,168,40,20,0]},{"a":13354,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":13362,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":13370,"t":"byte","b":[0,0,0,0,1,5,7,3]},{"a":13378,"t":"byte","b":[0,0,0,0,64,80,208,48]},{"a":13386,"t":"byte","b":[15,13,3,42,234,234,42,42]},{"a":13394,"t":"byte","b":[240,240,192,170,171,171,171,171]},{"a":13402,"t":"byte","b":[10,10,5,0,0,0,0,0]},{"a":13410,"t":"byte","b":[20,0,0,0,0,0,0,0]},{"a":13418,"t":"byte","b":[1,5,7,3,15,13,3,42]},{"a":13426,"t":"byte","b":[64,80,208,48,240,224,192,170]},{"a":13434,"t":"byte","b":[234,234,234,42,10,10,10,5]},{"a":13442,"t":"byte","b":[171,171,168,168,168,40,20,0]},{"a":13450,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":13458,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":13466,"t":"byte","b":[0,0,0,0,1,5,7,3]},{"a":13474,"t":"byte","b":[0,0,0,0,64,80,208,48]},{"a":13482,"t":"byte","b":[15,13,3,42,234,234,42,42]},{"a":13490,"t":"byte","b":[240,240,192,170,171,171,171,171]},{"a":13498,"t":"byte","b":[10,5,0,0,0,0,0,0]},{"a":13506,"t":"byte","b":[40,40,40,20,0,0,0,0]},{"a":13514,"t":"byte","b":[1,5,5,5,5,1,3,42]},{"a":13522,"t":"byte","b":[64,80,80,80,80,64,224,170]},{"a":13530,"t":"byte","b":[234,234,234,234,10,10,10,5]},{"a":13538,"t":"byte","b":[171,171,168,168,168,40,20,0]},{"a":13546,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":13554,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":13562,"t":"byte","b":[0,0,0,0,1,5,5,5]},{"a":13570,"t":"byte","b":[0,0,0,0,64,80,80,80]},{"a":13578,"t":"byte","b":[5,1,3,42,234,234,42,42]},{"a":13586,"t":"byte","b":[80,64,224,170,171,171,171,171]},{"a":13594,"t":"byte","b":[10,10,5,0,0,0,0,0]},{"a":13602,"t":"byte","b":[40,40,40,20,0,0,0,0]},{"a":13610,"t":"byte","b":[1,5,5,5,5,1,3,42]},{"a":13618,"t":"byte","b":[64,80,80,80,80,64,224,170]},{"a":13626,"t":"byte","b":[234,234,234,42,10,5,0,0]},{"a":13634,"t":"byte","b":[171,171,168,168,168,40,40,20]},{"a":13642,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":13650,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":13658,"t":"byte","b":[0,0,0,0,1,5,5,5]},{"a":13666,"t":"byte","b":[0,0,0,0,64,80,80,80]},{"a":13674,"t":"byte","b":[5,1,3,42,234,234,42,42]},{"a":13682,"t":"byte","b":[80,64,224,170,171,171,171,171]},{"a":13690,"t":"byte","b":[10,10,5,0,0,0,0,0]},{"a":13698,"t":"byte","b":[40,40,40,20,0,0,0,0]},{"a":13706,"l":"explosion_frames","c":"Four sixteen-by-sixteen-pixel fire images, thirty-two bytes each, copied into glyphs $69-$6C as the remote explosion advances.","t":"byte","b":[0,0,0,0,0,0,1,3],"x":[13060]},{"a":13714,"t":"byte","b":[0,0,0,0,0,192,224,128]},{"a":13722,"t":"byte","b":[0,7,3,0,0,0,0,0]},{"a":13730,"t":"byte","b":[240,152,48,0,0,0,0,0]},{"a":13738,"t":"byte","b":[0,0,0,7,14,28,30,15]},{"a":13746,"t":"byte","b":[0,0,0,0,48,248,236,192]},{"a":13754,"t":"byte","b":[19,59,63,30,0,0,0,0]},{"a":13762,"t":"byte","b":[240,120,24,120,48,0,0,0]},{"a":13770,"t":"byte","b":[227,207,255,123,113,112,61,95]},{"a":13778,"t":"byte","b":[199,109,12,190,127,227,207,230]},{"a":13786,"t":"byte","b":[199,211,123,231,127,62,24,0]},{"a":13794,"t":"byte","b":[240,252,158,182,110,127,51,6]},{"a":13802,"t":"byte","b":[62,127,243,239,246,121,127,29]},{"a":13810,"t":"byte","b":[28,62,127,115,239,239,110,176]},{"a":13818,"t":"byte","b":[109,246,219,219,231,255,254,60]},{"a":13826,"t":"byte","b":[236,158,255,215,187,119,126,60]},{"a":13834,"l":"enemy_frame_bank_a","c":"Five thirty-two-byte enemy images in animation bank A. Normal level selectors use shapes 1-4, selecting its first four images; the fifth image is retained beside them.","t":"byte","b":[131,135,135,131,129,199,239,185],"x":[13062]},{"a":13842,"t":"byte","b":[192,224,224,192,128,240,216,204]},{"a":13850,"t":"byte","b":[131,131,130,134,140,140,140,156]},{"a":13858,"t":"byte","b":[192,224,240,24,24,28,0,0]},{"a":13866,"t":"byte","b":[7,15,13,15,7,3,247,127]},{"a":13874,"t":"byte","b":[224,240,176,230,199,231,127,254]},{"a":13882,"t":"byte","b":[14,31,127,124,120,248,0,0]},{"a":13890,"t":"byte","b":[240,240,248,124,124,60,60,62]},{"a":13898,"t":"byte","b":[0,5,13,15,31,31,191,255]},{"a":13906,"t":"byte","b":[192,128,128,192,224,198,142,238]},{"a":13914,"t":"byte","b":[255,254,254,252,120,56,28,7]},{"a":13922,"t":"byte","b":[254,254,127,127,62,60,112,224]},{"a":13930,"t":"byte","b":[7,31,63,127,225,225,243,225]},{"a":13938,"t":"byte","b":[224,248,252,254,254,255,207,135]},{"a":13946,"t":"byte","b":[225,115,124,62,62,11,12,7]},{"a":13954,"t":"byte","b":[135,206,126,126,124,208,48,224]},{"a":13962,"t":"byte","b":[0,124,124,120,124,111,7,14]},{"a":13970,"t":"byte","b":[0,62,62,30,62,246,224,112]},{"a":13978,"t":"byte","b":[14,7,111,124,120,124,124,0]},{"a":13986,"t":"byte","b":[112,224,246,62,30,62,62,0]},{"a":13994,"l":"enemy_frame_bank_b","c":"Five thirty-two-byte enemy images in animation bank B. Its first four pair with the normal bank-A shapes; a fifth retained image follows.","t":"byte","b":[131,135,135,131,129,199,239,185],"x":[13064]},{"a":14002,"t":"byte","b":[192,224,224,192,130,243,222,192]},{"a":14010,"t":"byte","b":[131,159,156,156,156,188,128,128]},{"a":14018,"t":"byte","b":[192,224,96,112,48,56,24,28]},{"a":14026,"t":"byte","b":[7,15,13,111,231,243,127,63]},{"a":14034,"t":"byte","b":[224,240,176,224,192,224,119,254]},{"a":14042,"t":"byte","b":[6,7,15,31,31,62,60,124]},{"a":14050,"t":"byte","b":[224,252,254,30,30,31,0,0]},{"a":14058,"t":"byte","b":[6,7,207,239,127,63,190,126]},{"a":14066,"t":"byte","b":[0,128,192,192,240,228,220,111]},{"a":14074,"t":"byte","b":[253,248,250,240,120,60,30,7]},{"a":14082,"t":"byte","b":[126,126,191,63,30,62,120,224]},{"a":14090,"t":"byte","b":[7,31,63,127,255,255,243,237]},{"a":14098,"t":"byte","b":[224,248,252,254,254,255,207,183]},{"a":14106,"t":"byte","b":[237,115,124,62,62,15,12,7]},{"a":14114,"t":"byte","b":[183,206,126,126,124,240,48,224]},{"a":14122,"t":"byte","b":[1,3,7,1,3,39,111,254]},{"a":14130,"t":"byte","b":[128,192,224,128,192,228,246,127]},{"a":14138,"t":"byte","b":[254,111,39,3,1,7,3,1]},{"a":14146,"t":"byte","b":[127,246,228,192,128,224,192,128]},{"a":14154,"l":"retained_graphics_tail","c":"Twenty-four bitmap-like bytes after the two five-image enemy banks. The normal shape selectors consume the first four images in each bank; this tail is retained in the supplied image and its intended picture is unknown.","t":"byte","b":[240,248,236,220,183,143,175,191]},{"a":14162,"t":"byte","b":[249,246,51,54,26,12,7,3]},{"a":14170,"t":"byte","b":[159,111,204,108,88,48,224,192]},{"a":14178,"t":"gap","n":158},{"a":14336,"l":"static_charset","c":"Glyphs $00-$68, eight bytes each: letters, digits, punctuation, pickups, walls, bonus segments, bomb icons, blinking bomb halves and the lives icon. Upper character slots are generated separately for fire, enemies and the player.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":14344,"t":"byte","b":[248,60,102,126,126,102,238,0]},{"a":14352,"t":"byte","b":[252,102,108,120,102,108,248,0]},{"a":14360,"t":"byte","b":[252,102,206,192,194,102,60,0]},{"a":14368,"t":"byte","b":[252,54,51,51,51,54,252,0]},{"a":14376,"t":"byte","b":[254,98,104,120,104,98,254,0]},{"a":14384,"t":"byte","b":[254,98,104,120,104,96,224,0]},{"a":14392,"t":"byte","b":[252,54,96,206,198,102,60,0]},{"a":14400,"t":"byte","b":[238,102,102,126,102,102,238,0]},{"a":14408,"t":"byte","b":[120,24,24,24,24,24,120,0]},{"a":14416,"t":"byte","b":[230,62,6,6,230,108,56,0]},{"a":14424,"t":"byte","b":[238,102,108,120,108,102,138,0]},{"a":14432,"t":"byte","b":[224,96,96,96,102,98,254,0]},{"a":14440,"t":"byte","b":[231,115,127,107,99,99,231,0]},{"a":14448,"t":"byte","b":[230,118,126,126,110,102,238,0]},{"a":14456,"t":"byte","b":[248,108,198,198,198,108,56,0]},{"a":14464,"t":"byte","b":[248,108,102,108,120,96,224,0]},{"a":14472,"t":"byte","b":[252,102,198,214,218,108,46,0]},{"a":14480,"t":"byte","b":[252,102,102,124,124,102,238,0]},{"a":14488,"t":"byte","b":[252,54,96,56,14,230,60,0]},{"a":14496,"t":"byte","b":[254,24,24,24,24,24,56,0]},{"a":14504,"t":"byte","b":[238,102,102,102,102,124,63,0]},{"a":14512,"t":"byte","b":[238,102,102,102,102,60,24,0]},{"a":14520,"t":"byte","b":[231,99,99,107,127,119,227,0]},{"a":14528,"t":"byte","b":[238,102,60,24,60,102,238,0]},{"a":14536,"t":"byte","b":[204,102,102,60,24,24,56,0]},{"a":14544,"t":"byte","b":[126,70,76,24,50,98,126,0]},{"a":14552,"t":"byte","b":[30,48,96,96,96,48,30,0]},{"a":14560,"t":"byte","b":[30,50,48,124,48,118,254,0]},{"a":14568,"t":"byte","b":[120,12,6,6,6,12,120,0]},{"a":14576,"t":"byte","b":[16,56,124,254,56,56,56,0]},{"a":14584,"t":"byte","b":[16,48,126,254,126,48,16,0]},{"a":14592,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":14600,"t":"byte","b":[24,24,24,24,0,24,24,0]},{"a":14608,"t":"byte","b":[238,238,102,204,0,0,0,0]},{"a":14616,"t":"byte","b":[108,108,254,108,254,108,108,0]},{"a":14624,"t":"byte","b":[24,126,216,126,27,254,24,0]},{"a":14632,"t":"byte","b":[98,102,12,24,48,102,70,0]},{"a":14640,"t":"byte","b":[56,108,56,122,206,220,118,0]},{"a":14648,"t":"byte","b":[14,14,6,12,0,0,0,0]},{"a":14656,"t":"byte","b":[56,96,96,192,96,96,56,0]},{"a":14664,"t":"byte","b":[112,24,24,12,24,24,112,0]},{"a":14672,"t":"byte","b":[0,108,56,254,56,108,0,0]},{"a":14680,"t":"byte","b":[24,24,126,126,24,24,0,0]},{"a":14688,"t":"byte","b":[0,0,0,56,56,24,48,0]},{"a":14696,"t":"byte","b":[0,0,126,126,0,0,0,0]},{"a":14704,"t":"byte","b":[0,0,0,0,0,24,0,0]},{"a":14712,"t":"byte","b":[3,6,12,24,48,96,192,0]},{"a":14720,"t":"byte","b":[60,102,102,102,102,102,60,0]},{"a":14728,"t":"byte","b":[56,24,24,24,24,24,126,0]},{"a":14736,"t":"byte","b":[60,230,6,12,48,98,126,0]},{"a":14744,"t":"byte","b":[60,230,6,28,6,230,60,0]},{"a":14752,"t":"byte","b":[12,28,60,108,154,12,30,0]},{"a":14760,"t":"byte","b":[254,98,248,12,6,230,60,0]},{"a":14768,"t":"byte","b":[60,102,192,252,198,102,60,0]},{"a":14776,"t":"byte","b":[126,230,12,24,48,48,48,0]},{"a":14784,"t":"byte","b":[60,102,102,60,102,102,60,0]},{"a":14792,"t":"byte","b":[60,102,102,62,6,230,60,0]},{"a":14800,"t":"byte","b":[0,24,24,0,24,24,0,0]},{"a":14808,"t":"byte","b":[0,24,24,0,24,24,48,0]},{"a":14816,"t":"byte","b":[14,24,48,96,48,24,14,0]},{"a":14824,"t":"byte","b":[0,0,126,0,126,0,0,0]},{"a":14832,"t":"byte","b":[112,24,12,6,12,24,112,0]},{"a":14840,"t":"byte","b":[60,230,6,28,24,0,24,0]},{"a":14848,"t":"byte","b":[7,0,7,0,7,0,7,0]},{"a":14856,"t":"byte","b":[7,0,7,0,7,0,7,0]},{"a":14864,"t":"byte","b":[7,0,7,0,7,0,7,0]},{"a":14872,"t":"byte","b":[7,0,7,0,7,0,7,0]},{"a":14880,"t":"byte","b":[30,127,231,195,231,255,123,0]},{"a":14888,"t":"byte","b":[0,128,128,0,0,128,192,224]},{"a":14896,"t":"byte","b":[0,0,1,3,7,2,0,0]},{"a":14904,"t":"byte","b":[240,120,252,254,127,118,240,192]},{"a":14912,"t":"byte","b":[0,7,31,61,122,117,234,229]},{"a":14920,"t":"byte","b":[0,224,248,60,94,174,87,175]},{"a":14928,"t":"byte","b":[234,229,114,121,60,31,7,0]},{"a":14936,"t":"byte","b":[167,87,174,94,188,248,224,0]},{"a":14944,"t":"byte","b":[7,0,7,0,7,0,7,0]},{"a":14952,"t":"byte","b":[7,0,7,0,7,0,7,0]},{"a":14960,"t":"byte","b":[7,0,7,0,7,0,7,0]},{"a":14968,"t":"byte","b":[7,0,7,0,7,0,7,0]},{"a":14976,"t":"byte","b":[15,7,3,61,127,231,207,207]},{"a":14984,"t":"byte","b":[0,128,128,124,126,254,255,255]},{"a":14992,"t":"byte","b":[231,227,243,121,125,63,15,3]},{"a":15000,"t":"byte","b":[255,255,255,255,254,254,252,112]},{"a":15008,"t":"byte","b":[87,87,95,95,125,119,119,253]},{"a":15016,"t":"byte","b":[213,213,245,245,125,221,221,127]},{"a":15024,"t":"byte","b":[255,127,125,127,93,95,95,95]},{"a":15032,"t":"byte","b":[127,125,125,125,117,245,213,213]},{"a":15040,"t":"byte","b":[240,48,24,31,31,24,48,240]},{"a":15048,"t":"byte","b":[254,63,239,119,55,119,239,223]},{"a":15056,"t":"byte","b":[251,251,251,251,251,252,255,127]},{"a":15064,"t":"byte","b":[223,223,223,223,223,63,255,254]},{"a":15072,"t":"byte","b":[155,109,182,180,171,109,182,218]},{"a":15080,"t":"byte","b":[86,205,153,182,208,93,87,108]},{"a":15088,"t":"byte","b":[106,217,173,189,173,187,107,217]},{"a":15096,"t":"byte","b":[90,180,173,181,93,46,85,170]},{"a":15104,"t":"byte","b":[0,0,0,1,1,1,15,29]},{"a":15112,"t":"byte","b":[0,0,0,128,128,128,240,184]},{"a":15120,"t":"byte","b":[54,59,54,27,13,3,0,0]},{"a":15128,"t":"byte","b":[108,220,180,104,176,96,0,0]},{"a":15136,"t":"byte","b":[0,4,49,108,12,6,15,29]},{"a":15144,"t":"byte","b":[0,128,184,108,224,192,112,184]},{"a":15152,"t":"byte","b":[0,8,1,3,1,99,15,29]},{"a":15160,"t":"byte","b":[0,128,128,144,192,134,112,184]},{"a":15168,"t":"byte","b":[22,94,95,127,126,60,170,170]},{"a":15176,"t":"gap","n":50360,"x":[6853]}]}