{"schema":1,"platform":"c64","game":"zak-mckracken-and-the-alien-mindbenders","part":"main","title":"Zak McKracken and the Alien Mindbenders","build":"Commodore 64 original, three disks from the C64 Preservation Project's G64 collection: zak_mckracken_boot, _s1 and _s2 [activision_1988](manual)(!)","symbols_sha256":"71850b00fc7433d671441c39916558b739f3b8b9b1d414eea3c3ae4bcfaf98a5","snapshot":{"file":"work/startup.vsf","sha256":"b3d7ba7d8ea57b13272067e47c076d769441a36c0a136d4b2829f3a2cf3fd307"},"index":[{"a":256,"n":"f_0100","k":"table","len":4,"c":true},{"a":260,"n":"decode_start","k":"routine","len":30,"c":true},{"a":262,"n":"b_0106","k":"branch","len":1,"c":false},{"a":290,"n":"decode_byte","k":"routine","len":77,"c":true},{"a":310,"n":"b_0136","k":"branch","len":1,"c":false},{"a":324,"n":"b_0144","k":"branch","len":1,"c":false},{"a":341,"n":"j_0155","k":"branch","len":1,"c":false},{"a":345,"n":"j_0159","k":"branch","len":1,"c":false},{"a":350,"n":"b_015E","k":"branch","len":1,"c":false},{"a":352,"n":"j_0160","k":"branch","len":1,"c":false},{"a":362,"n":"b_016A","k":"branch","len":1,"c":false},{"a":364,"n":"j_016C","k":"branch","len":1,"c":false},{"a":367,"n":"next_stream_byte","k":"routine","len":11,"c":true},{"a":377,"n":"r_0179","k":"branch","len":1,"c":false},{"a":378,"n":"skip_decoded","k":"routine","len":21,"c":true},{"a":385,"n":"b_0181","k":"branch","len":1,"c":false},{"a":394,"n":"b_018A","k":"branch","len":1,"c":false},{"a":399,"n":"skip_decoded_short","k":"routine","len":12,"c":true},{"a":404,"n":"b_0194","k":"branch","len":1,"c":false},{"a":1024,"n":"start","k":"routine","len":24,"c":true},{"a":1048,"n":"restart","k":"routine","len":42,"c":true},{"a":1090,"n":"fill_x","k":"routine","len":226,"c":true},{"a":1101,"n":"b_044D","k":"branch","len":1,"c":false},{"a":1107,"n":"b_0453","k":"branch","len":1,"c":false},{"a":1116,"n":"j_045C","k":"branch","len":1,"c":false},{"a":1214,"n":"b_04BE","k":"branch","len":1,"c":false},{"a":1248,"n":"b_04E0","k":"branch","len":1,"c":false},{"a":1316,"n":"main_loop","k":"routine","len":233,"c":true},{"a":1397,"n":"b_0575","k":"branch","len":1,"c":false},{"a":1434,"n":"b_059A","k":"branch","len":1,"c":false},{"a":1449,"n":"b_05A9","k":"branch","len":1,"c":false},{"a":1452,"n":"b_05AC","k":"branch","len":1,"c":false},{"a":1455,"n":"b_05AF","k":"branch","len":1,"c":false},{"a":1466,"n":"b_05BA","k":"branch","len":1,"c":false},{"a":1501,"n":"b_05DD","k":"branch","len":1,"c":false},{"a":1507,"n":"j_05E3","k":"branch","len":1,"c":false},{"a":1512,"n":"b_05E8","k":"branch","len":1,"c":false},{"a":1525,"n":"b_05F5","k":"branch","len":1,"c":false},{"a":1529,"n":"b_05F9","k":"branch","len":1,"c":false},{"a":1539,"n":"b_0603","k":"branch","len":1,"c":false},{"a":1549,"n":"a_060D","k":"table","len":3,"c":true},{"a":1552,"n":"a_0610","k":"variable","len":1,"c":true},{"a":1553,"n":"a_0611","k":"variable","len":1,"c":true},{"a":1554,"n":"check_actor_sounds","k":"routine","len":40,"c":true},{"a":1556,"n":"b_0614","k":"branch","len":1,"c":false},{"a":1583,"n":"b_062F","k":"branch","len":1,"c":false},{"a":1590,"n":"b_0636","k":"branch","len":1,"c":false},{"a":1594,"n":"swap_screens","k":"routine","len":13,"c":true},{"a":1607,"n":"show_screen_cc00","k":"routine","len":32,"c":true},{"a":1624,"n":"b_0658","k":"branch","len":1,"c":false},{"a":1638,"n":"r_0666","k":"branch","len":1,"c":false},{"a":1639,"n":"fatal_error_4","k":"routine","len":14,"c":true},{"a":1647,"n":"j_066F","k":"branch","len":1,"c":false},{"a":1660,"n":"main_loop_hook","k":"routine","len":1,"c":true},{"a":1661,"n":"start_input_script","k":"routine","len":35,"c":true},{"a":1680,"n":"j_0690","k":"branch","len":1,"c":false},{"a":1685,"n":"b_0695","k":"branch","len":1,"c":false},{"a":1695,"n":"r_069F","k":"branch","len":1,"c":false},{"a":1696,"n":"draw_sentence_line","k":"routine","len":86,"c":true},{"a":1712,"n":"b_06B0","k":"branch","len":1,"c":false},{"a":1723,"n":"b_06BB","k":"branch","len":1,"c":false},{"a":1743,"n":"b_06CF","k":"branch","len":1,"c":false},{"a":1761,"n":"b_06E1","k":"branch","len":1,"c":false},{"a":1781,"n":"r_06F5","k":"branch","len":1,"c":false},{"a":1782,"n":"verb_name_pointer","k":"routine","len":42,"c":true},{"a":1784,"n":"b_06F8","k":"branch","len":1,"c":false},{"a":1802,"n":"j_070A","k":"branch","len":1,"c":false},{"a":1813,"n":"b_0715","k":"branch","len":1,"c":false},{"a":1817,"n":"r_0719","k":"branch","len":1,"c":false},{"a":1818,"n":"b_071A","k":"branch","len":1,"c":false},{"a":1824,"n":"object_name_pointer","k":"routine","len":71,"c":true},{"a":1835,"n":"b_072B","k":"branch","len":1,"c":false},{"a":1859,"n":"b_0743","k":"branch","len":1,"c":false},{"a":1863,"n":"r_0747","k":"branch","len":1,"c":false},{"a":1864,"n":"b_0748","k":"branch","len":1,"c":false},{"a":1879,"n":"b_0757","k":"branch","len":1,"c":false},{"a":1892,"n":"b_0764","k":"branch","len":1,"c":false},{"a":1895,"n":"find_object","k":"routine","len":4,"c":true},{"a":1899,"n":"find_object_in_15","k":"routine","len":16,"c":true},{"a":1915,"n":"find_object_entry_lo","k":"routine","len":1,"c":true},{"a":1916,"n":"find_object_entry_hi","k":"routine","len":110,"c":true},{"a":1928,"n":"b_0788","k":"branch","len":1,"c":false},{"a":1960,"n":"b_07A8","k":"branch","len":1,"c":false},{"a":1964,"n":"b_07AC","k":"branch","len":1,"c":false},{"a":1972,"n":"b_07B4","k":"branch","len":1,"c":false},{"a":2020,"n":"b_07E4","k":"branch","len":1,"c":false},{"a":2026,"n":"clear_sentence_row","k":"routine","len":18,"c":true},{"a":2038,"n":"b_07F6","k":"branch","len":1,"c":false},{"a":2044,"n":"append_name","k":"routine","len":41,"c":true},{"a":2046,"n":"b_07FE","k":"branch","len":1,"c":false},{"a":2068,"n":"b_0814","k":"branch","len":1,"c":false},{"a":2070,"n":"b_0816","k":"branch","len":1,"c":false},{"a":2071,"n":"b_0817","k":"branch","len":1,"c":false},{"a":2084,"n":"r_0824","k":"branch","len":1,"c":false},{"a":2085,"n":"object_preposition","k":"routine","len":21,"c":true},{"a":2105,"n":"r_0839","k":"branch","len":1,"c":false},{"a":2106,"n":"check_sentence_queue","k":"routine","len":106,"c":true},{"a":2114,"n":"b_0842","k":"branch","len":1,"c":false},{"a":2120,"n":"b_0848","k":"branch","len":1,"c":false},{"a":2147,"n":"b_0863","k":"branch","len":1,"c":false},{"a":2212,"n":"object_or_actor_xy","k":"routine","len":52,"c":true},{"a":2223,"n":"b_08AF","k":"branch","len":1,"c":false},{"a":2231,"n":"b_08B7","k":"branch","len":1,"c":false},{"a":2246,"n":"b_08C6","k":"branch","len":1,"c":false},{"a":2254,"n":"b_08CE","k":"branch","len":1,"c":false},{"a":2264,"n":"room_object_walk_point","k":"routine","len":58,"c":true},{"a":2286,"n":"j_08EE","k":"branch","len":1,"c":false},{"a":2322,"n":"a_0912","k":"variable","len":1,"c":true},{"a":2323,"n":"a_0913","k":"variable","len":1,"c":true},{"a":2324,"n":"actor_near_actor","k":"routine","len":31,"c":true},{"a":2355,"n":"near_actor_right","k":"routine","len":5,"c":true},{"a":2359,"n":"b_0937","k":"branch","len":1,"c":false},{"a":2360,"n":"near_actor_left","k":"routine","len":21,"c":true},{"a":2361,"n":"j_0939","k":"branch","len":1,"c":false},{"a":2370,"n":"b_0942","k":"branch","len":1,"c":false},{"a":2381,"n":"a_094D","k":"variable","len":1,"c":true},{"a":2382,"n":"a_094E","k":"variable","len":1,"c":true},{"a":2383,"n":"a_094F","k":"variable","len":1,"c":true},{"a":2384,"n":"a_0950","k":"variable","len":2,"c":true},{"a":2386,"n":"a_0952","k":"variable","len":1,"c":true},{"a":2387,"n":"a_0953","k":"variable","len":1,"c":true},{"a":2388,"n":"f_0954","k":"table","len":6,"c":true},{"a":2394,"n":"f_095A","k":"table","len":6,"c":true},{"a":2400,"n":"f_0960","k":"table","len":6,"c":true},{"a":2406,"n":"f_0966","k":"table","len":6,"c":true},{"a":2412,"n":"f_096C","k":"table","len":6,"c":true},{"a":2418,"n":"f_0972","k":"table","len":6,"c":true},{"a":2424,"n":"copy_string_to_message","k":"routine","len":22,"c":true},{"a":2428,"n":"b_097C","k":"branch","len":1,"c":false},{"a":2440,"n":"b_0988","k":"branch","len":1,"c":false},{"a":2441,"n":"b_0989","k":"branch","len":1,"c":false},{"a":2446,"n":"message_object_name","k":"routine","len":37,"c":true},{"a":2483,"n":"message_string_var","k":"routine","len":21,"c":true},{"a":2504,"n":"message_number","k":"routine","len":27,"c":true},{"a":2531,"n":"print_decimal","k":"routine","len":73,"c":true},{"a":2541,"n":"b_09ED","k":"branch","len":1,"c":false},{"a":2543,"n":"j_09EF","k":"branch","len":1,"c":false},{"a":2568,"n":"b_0A08","k":"branch","len":1,"c":false},{"a":2604,"n":"put_digit","k":"routine","len":27,"c":true},{"a":2617,"n":"b_0A39","k":"branch","len":1,"c":false},{"a":2631,"n":"f_0A47","k":"variable","len":1,"c":true},{"a":2632,"n":"f_0A48","k":"table","len":7,"c":true},{"a":2639,"n":"a_0A4F","k":"variable","len":1,"c":true},{"a":2640,"n":"a_0A50","k":"variable","len":1,"c":true},{"a":2641,"n":"a_0A51","k":"variable","len":1,"c":true},{"a":2642,"n":"a_0A52","k":"variable","len":1,"c":true},{"a":2643,"n":"save_game","k":"routine","len":130,"c":true},{"a":2773,"n":"load_game","k":"routine","len":111,"c":true},{"a":2785,"n":"b_0AE1","k":"branch","len":1,"c":false},{"a":2884,"n":"check_game_disk","k":"routine","len":34,"c":true},{"a":2913,"n":"b_0B61","k":"branch","len":1,"c":false},{"a":2918,"n":"a_0B66","k":"variable","len":1,"c":true},{"a":2919,"n":"a_0B67","k":"variable","len":1,"c":true},{"a":2920,"n":"a_0B68","k":"variable","len":1,"c":true},{"a":2921,"n":"a_0B69","k":"table","len":4,"c":true},{"a":2925,"n":"a_0B6D","k":"variable","len":1,"c":true},{"a":2926,"n":"a_0B6E","k":"variable","len":1,"c":true},{"a":2927,"n":"a_0B6F","k":"variable","len":1,"c":true},{"a":2928,"n":"a_0B70","k":"variable","len":1,"c":true},{"a":2929,"n":"a_0B71","k":"table","len":4,"c":true},{"a":2933,"n":"a_0B75","k":"variable","len":1,"c":true},{"a":2934,"n":"a_0B76","k":"variable","len":1,"c":true},{"a":2935,"n":"a_0B77","k":"variable","len":1,"c":true},{"a":2936,"n":"a_0B78","k":"variable","len":1,"c":true},{"a":2937,"n":"a_0B79","k":"table","len":4,"c":true},{"a":2941,"n":"a_0B7D","k":"variable","len":1,"c":true},{"a":2942,"n":"a_0B7E","k":"variable","len":1,"c":true},{"a":2943,"n":"a_0B7F","k":"variable","len":1,"c":true},{"a":2944,"n":"a_0B80","k":"table","len":4,"c":true},{"a":2948,"n":"a_0B84","k":"variable","len":1,"c":true},{"a":2949,"n":"a_0B85","k":"variable","len":1,"c":true},{"a":2950,"n":"a_0B86","k":"variable","len":1,"c":true},{"a":2951,"n":"a_0B87","k":"variable","len":1,"c":true},{"a":2952,"n":"a_0B88","k":"variable","len":1,"c":true},{"a":2953,"n":"a_0B89","k":"variable","len":1,"c":true},{"a":2954,"n":"a_0B8A","k":"variable","len":1,"c":true},{"a":2955,"n":"f_0B8B","k":"variable","len":2,"c":true},{"a":2957,"n":"a_0B8D","k":"variable","len":2,"c":true},{"a":2959,"n":"a_0B8F","k":"variable","len":2,"c":true},{"a":2961,"n":"a_0B91","k":"table","len":10,"c":true},{"a":2971,"n":"arm_raster_chain","k":"routine","len":129,"c":true},{"a":2984,"n":"b_0BA8","k":"branch","len":1,"c":false},{"a":2988,"n":"b_0BAC","k":"branch","len":1,"c":false},{"a":3002,"n":"b_0BBA","k":"branch","len":1,"c":false},{"a":3006,"n":"b_0BBE","k":"branch","len":1,"c":false},{"a":3020,"n":"b_0BCC","k":"branch","len":1,"c":false},{"a":3024,"n":"b_0BD0","k":"branch","len":1,"c":false},{"a":3038,"n":"b_0BDE","k":"branch","len":1,"c":false},{"a":3042,"n":"b_0BE2","k":"branch","len":1,"c":false},{"a":3055,"n":"b_0BEF","k":"branch","len":1,"c":false},{"a":3059,"n":"b_0BF3","k":"branch","len":1,"c":false},{"a":3100,"n":"raster_top","k":"routine","len":249,"c":true},{"a":3262,"n":"b_0CBE","k":"branch","len":1,"c":false},{"a":3264,"n":"b_0CC0","k":"branch","len":1,"c":false},{"a":3272,"n":"j_0CC8","k":"branch","len":1,"c":false},{"a":3349,"n":"raster_room","k":"routine","len":165,"c":true},{"a":3441,"n":"b_0D71","k":"branch","len":1,"c":false},{"a":3514,"n":"raster_band_2_y","k":"routine","len":56,"c":true},{"a":3570,"n":"raster_band_2_ptr","k":"routine","len":84,"c":true},{"a":3654,"n":"raster_band_3_y","k":"routine","len":56,"c":true},{"a":3710,"n":"raster_band_3_ptr","k":"routine","len":84,"c":true},{"a":3794,"n":"raster_band_4_y","k":"routine","len":56,"c":true},{"a":3850,"n":"raster_band_4_ptr","k":"routine","len":84,"c":true},{"a":3934,"n":"raster_band_5_y","k":"routine","len":56,"c":true},{"a":3990,"n":"raster_band_5_ptr","k":"routine","len":84,"c":true},{"a":4074,"n":"raster_band_6_y","k":"routine","len":56,"c":true},{"a":4130,"n":"raster_band_6_ptr","k":"routine","len":84,"c":true},{"a":4214,"n":"raster_band_7_y","k":"routine","len":56,"c":true},{"a":4270,"n":"raster_band_7_ptr","k":"routine","len":84,"c":true},{"a":4354,"n":"raster_interface","k":"routine","len":84,"c":true},{"a":4438,"n":"a_1156","k":"variable","len":1,"c":true},{"a":4439,"n":"a_1157","k":"variable","len":1,"c":true},{"a":4440,"n":"a_1158","k":"variable","len":1,"c":true},{"a":4441,"n":"a_1159","k":"variable","len":1,"c":true},{"a":4442,"n":"a_115A","k":"variable","len":1,"c":true},{"a":4443,"n":"a_115B","k":"variable","len":1,"c":true},{"a":4444,"n":"a_115C","k":"variable","len":1,"c":true},{"a":4445,"n":"a_115D","k":"variable","len":1,"c":true},{"a":4446,"n":"a_115E","k":"variable","len":1,"c":true},{"a":4447,"n":"a_115F","k":"variable","len":1,"c":true},{"a":4448,"n":"a_1160","k":"variable","len":1,"c":true},{"a":4449,"n":"a_1161","k":"variable","len":1,"c":true},{"a":4450,"n":"a_1162","k":"variable","len":1,"c":true},{"a":4451,"n":"a_1163","k":"variable","len":1,"c":true},{"a":4452,"n":"a_1164","k":"variable","len":1,"c":true},{"a":4453,"n":"a_1165","k":"variable","len":1,"c":true},{"a":4454,"n":"a_1166","k":"variable","len":1,"c":true},{"a":4455,"n":"f_1167","k":"table","len":6,"c":true},{"a":4461,"n":"a_116D","k":"variable","len":1,"c":true},{"a":4462,"n":"a_116E","k":"variable","len":1,"c":true},{"a":4463,"n":"a_116F","k":"variable","len":1,"c":true},{"a":4464,"n":"a_1170","k":"variable","len":1,"c":true},{"a":4465,"n":"a_1171","k":"variable","len":1,"c":true},{"a":4466,"n":"a_1172","k":"variable","len":1,"c":true},{"a":4467,"n":"a_1173","k":"variable","len":1,"c":true},{"a":4468,"n":"a_1174","k":"variable","len":1,"c":true},{"a":4469,"n":"a_1175","k":"variable","len":1,"c":true},{"a":4470,"n":"a_1176","k":"variable","len":1,"c":true},{"a":4471,"n":"a_1177","k":"variable","len":1,"c":true},{"a":4472,"n":"a_1178","k":"variable","len":1,"c":true},{"a":4473,"n":"a_1179","k":"variable","len":1,"c":true},{"a":4474,"n":"a_117A","k":"variable","len":1,"c":true},{"a":4475,"n":"a_117B","k":"variable","len":1,"c":true},{"a":4476,"n":"frame_irq","k":"routine","len":487,"c":true},{"a":4499,"n":"b_1193","k":"branch","len":1,"c":false},{"a":4529,"n":"b_11B1","k":"branch","len":1,"c":false},{"a":4537,"n":"b_11B9","k":"branch","len":1,"c":false},{"a":4584,"n":"b_11E8","k":"branch","len":1,"c":false},{"a":4624,"n":"j_1210","k":"branch","len":1,"c":false},{"a":4701,"n":"j_125D","k":"branch","len":1,"c":false},{"a":4719,"n":"b_126F","k":"branch","len":1,"c":false},{"a":4741,"n":"b_1285","k":"branch","len":1,"c":false},{"a":4756,"n":"j_1294","k":"branch","len":1,"c":false},{"a":4764,"n":"b_129C","k":"branch","len":1,"c":false},{"a":4773,"n":"j_12A5","k":"branch","len":1,"c":false},{"a":4786,"n":"b_12B2","k":"branch","len":1,"c":false},{"a":4812,"n":"b_12CC","k":"branch","len":1,"c":false},{"a":4815,"n":"b_12CF","k":"branch","len":1,"c":false},{"a":4827,"n":"b_12DB","k":"branch","len":1,"c":false},{"a":4829,"n":"b_12DD","k":"branch","len":1,"c":false},{"a":4854,"n":"b_12F6","k":"branch","len":1,"c":false},{"a":4863,"n":"b_12FF","k":"branch","len":1,"c":false},{"a":4908,"n":"b_132C","k":"branch","len":1,"c":false},{"a":4919,"n":"b_1337","k":"branch","len":1,"c":false},{"a":4932,"n":"b_1344","k":"branch","len":1,"c":false},{"a":4951,"n":"b_1357","k":"branch","len":1,"c":false},{"a":4954,"n":"j_135A","k":"branch","len":1,"c":false},{"a":4963,"n":"copy_room_colours_banked","k":"routine","len":12,"c":true},{"a":4975,"n":"copy_room_colours","k":"routine","len":107,"c":true},{"a":4977,"n":"b_1371","k":"branch","len":1,"c":false},{"a":5082,"n":"busy_cursor","k":"routine","len":14,"c":true},{"a":5096,"n":"normal_cursor","k":"routine","len":11,"c":true},{"a":5107,"n":"video_off","k":"routine","len":60,"c":true},{"a":5113,"n":"b_13F9","k":"branch","len":1,"c":false},{"a":5125,"n":"b_1405","k":"branch","len":1,"c":false},{"a":5158,"n":"b_1426","k":"branch","len":1,"c":false},{"a":5166,"n":"r_142E","k":"branch","len":1,"c":false},{"a":5167,"n":"video_on","k":"routine","len":73,"c":true},{"a":5230,"n":"b_146E","k":"branch","len":1,"c":false},{"a":5239,"n":"r_1477","k":"branch","len":1,"c":false},{"a":5240,"n":"a_1478","k":"variable","len":2,"c":true},{"a":5242,"n":"f_147A","k":"table","len":64,"c":true},{"a":5338,"n":"remap_direction","k":"routine","len":104,"c":true},{"a":5368,"n":"b_14F8","k":"branch","len":1,"c":false},{"a":5373,"n":"b_14FD","k":"branch","len":1,"c":false},{"a":5383,"n":"b_1507","k":"branch","len":1,"c":false},{"a":5385,"n":"j_1509","k":"branch","len":1,"c":false},{"a":5408,"n":"b_1520","k":"branch","len":1,"c":false},{"a":5424,"n":"j_1530","k":"branch","len":1,"c":false},{"a":5442,"n":"walk_actor_step","k":"routine","len":169,"c":true},{"a":5484,"n":"b_156C","k":"branch","len":1,"c":false},{"a":5502,"n":"b_157E","k":"branch","len":1,"c":false},{"a":5529,"n":"b_1599","k":"branch","len":1,"c":false},{"a":5572,"n":"b_15C4","k":"branch","len":1,"c":false},{"a":5601,"n":"j_15E1","k":"branch","len":1,"c":false},{"a":5607,"n":"b_15E7","k":"branch","len":1,"c":false},{"a":5610,"n":"r_15EA","k":"branch","len":1,"c":false},{"a":5611,"n":"next_box","k":"routine","len":18,"c":true},{"a":5629,"n":"check_box_allowed","k":"routine","len":44,"c":true},{"a":5651,"n":"b_1613","k":"branch","len":1,"c":false},{"a":5659,"n":"b_161B","k":"branch","len":1,"c":false},{"a":5672,"n":"r_1628","k":"branch","len":1,"c":false},{"a":5673,"n":"stop_walking","k":"routine","len":35,"c":true},{"a":5707,"n":"r_164B","k":"branch","len":1,"c":false},{"a":5708,"n":"box_crossing_point","k":"routine","len":45,"c":true},{"a":5753,"n":"start_leg","k":"routine","len":93,"c":true},{"a":5793,"n":"b_16A1","k":"branch","len":1,"c":false},{"a":5799,"n":"j_16A7","k":"branch","len":1,"c":false},{"a":5817,"n":"b_16B9","k":"branch","len":1,"c":false},{"a":5836,"n":"b_16CC","k":"branch","len":1,"c":false},{"a":5846,"n":"step_actor","k":"routine","len":49,"c":true},{"a":5884,"n":"b_16FC","k":"branch","len":1,"c":false},{"a":5894,"n":"r_1706","k":"branch","len":1,"c":false},{"a":5895,"n":"box_matrix_pointer","k":"routine","len":41,"c":true},{"a":5920,"n":"b_1720","k":"branch","len":1,"c":false},{"a":5935,"n":"r_172F","k":"branch","len":1,"c":false},{"a":5936,"n":"actor_sprite_position","k":"routine","len":49,"c":true},{"a":5985,"n":"start_walk","k":"routine","len":123,"c":true},{"a":6012,"n":"r_177C","k":"branch","len":1,"c":false},{"a":6013,"n":"b_177D","k":"branch","len":1,"c":false},{"a":6059,"n":"b_17AB","k":"branch","len":1,"c":false},{"a":6067,"n":"b_17B3","k":"branch","len":1,"c":false},{"a":6108,"n":"adjust_to_box","k":"routine","len":54,"c":true},{"a":6127,"n":"b_17EF","k":"branch","len":1,"c":false},{"a":6162,"n":"update_actor_sprites","k":"routine","len":83,"c":true},{"a":6166,"n":"b_1816","k":"branch","len":1,"c":false},{"a":6178,"n":"b_1822","k":"branch","len":1,"c":false},{"a":6194,"n":"b_1832","k":"branch","len":1,"c":false},{"a":6234,"n":"b_185A","k":"branch","len":1,"c":false},{"a":6245,"n":"setup_leg","k":"routine","len":164,"c":true},{"a":6275,"n":"b_1883","k":"branch","len":1,"c":false},{"a":6282,"n":"j_188A","k":"branch","len":1,"c":false},{"a":6302,"n":"b_189E","k":"branch","len":1,"c":false},{"a":6309,"n":"j_18A5","k":"branch","len":1,"c":false},{"a":6324,"n":"b_18B4","k":"branch","len":1,"c":false},{"a":6337,"n":"b_18C1","k":"branch","len":1,"c":false},{"a":6348,"n":"b_18CC","k":"branch","len":1,"c":false},{"a":6409,"n":"step_axis","k":"routine","len":34,"c":true},{"a":6436,"n":"b_1924","k":"branch","len":1,"c":false},{"a":6439,"n":"b_1927","k":"branch","len":1,"c":false},{"a":6443,"n":"a_192B","k":"variable","len":1,"c":true},{"a":6444,"n":"a_192C","k":"variable","len":1,"c":true},{"a":6445,"n":"a_192D","k":"variable","len":1,"c":true},{"a":6446,"n":"a_192E","k":"variable","len":1,"c":true},{"a":6447,"n":"a_192F","k":"variable","len":1,"c":true},{"a":6448,"n":"a_1930","k":"variable","len":1,"c":true},{"a":6449,"n":"a_1931","k":"variable","len":1,"c":true},{"a":6450,"n":"a_1932","k":"variable","len":1,"c":true},{"a":6451,"n":"a_1933","k":"variable","len":1,"c":true},{"a":6452,"n":"a_1934","k":"variable","len":1,"c":true},{"a":6453,"n":"a_1935","k":"variable","len":1,"c":true},{"a":6454,"n":"f_1936","k":"table","len":16,"c":true},{"a":6470,"n":"draw_limb_picture","k":"routine","len":196,"c":true},{"a":6503,"n":"b_1967","k":"branch","len":1,"c":false},{"a":6511,"n":"j_196F","k":"branch","len":1,"c":false},{"a":6517,"n":"b_1975","k":"branch","len":1,"c":false},{"a":6552,"n":"b_1998","k":"branch","len":1,"c":false},{"a":6559,"n":"b_199F","k":"branch","len":1,"c":false},{"a":6574,"n":"j_19AE","k":"branch","len":1,"c":false},{"a":6588,"n":"b_19BC","k":"branch","len":1,"c":false},{"a":6597,"n":"j_19C5","k":"branch","len":1,"c":false},{"a":6632,"n":"j_19E8","k":"branch","len":1,"c":false},{"a":6641,"n":"b_19F1","k":"branch","len":1,"c":false},{"a":6666,"n":"limb_byte_mirror","k":"routine","len":41,"c":true},{"a":6687,"n":"b_1A1F","k":"branch","len":1,"c":false},{"a":6707,"n":"limb_column_step","k":"routine","len":20,"c":true},{"a":6709,"n":"b_1A35","k":"branch","len":1,"c":false},{"a":6715,"n":"r_1A3B","k":"branch","len":1,"c":false},{"a":6716,"n":"b_1A3C","k":"branch","len":1,"c":false},{"a":6727,"n":"limb_run_mirror","k":"routine","len":59,"c":true},{"a":6738,"n":"b_1A52","k":"branch","len":1,"c":false},{"a":6768,"n":"b_1A70","k":"branch","len":1,"c":false},{"a":6786,"n":"limb_run_column_step","k":"routine","len":26,"c":true},{"a":6788,"n":"b_1A84","k":"branch","len":1,"c":false},{"a":6794,"n":"b_1A8A","k":"branch","len":1,"c":false},{"a":6812,"n":"limb_skip_column_step","k":"routine","len":8,"c":true},{"a":6814,"n":"b_1A9E","k":"branch","len":1,"c":false},{"a":6820,"n":"colour0_mask","k":"table","len":256,"c":true},{"a":7076,"n":"a_1BA4","k":"variable","len":1,"c":true},{"a":7077,"n":"a_1BA5","k":"variable","len":1,"c":true},{"a":7078,"n":"a_1BA6","k":"variable","len":1,"c":true},{"a":7079,"n":"a_1BA7","k":"variable","len":1,"c":true},{"a":7080,"n":"a_1BA8","k":"variable","len":1,"c":true},{"a":7081,"n":"a_1BA9","k":"variable","len":1,"c":true},{"a":7082,"n":"a_1BAA","k":"variable","len":1,"c":true},{"a":7083,"n":"a_1BAB","k":"variable","len":1,"c":true},{"a":7084,"n":"a_1BAC","k":"variable","len":1,"c":true},{"a":7085,"n":"a_1BAD","k":"variable","len":1,"c":true},{"a":7086,"n":"a_1BAE","k":"variable","len":1,"c":true},{"a":7087,"n":"read_keys","k":"routine","len":233,"c":true},{"a":7110,"n":"b_1BC6","k":"branch","len":1,"c":false},{"a":7126,"n":"b_1BD6","k":"branch","len":1,"c":false},{"a":7139,"n":"b_1BE3","k":"branch","len":1,"c":false},{"a":7160,"n":"b_1BF8","k":"branch","len":1,"c":false},{"a":7198,"n":"j_1C1E","k":"branch","len":1,"c":false},{"a":7284,"n":"b_1C74","k":"branch","len":1,"c":false},{"a":7305,"n":"b_1C89","k":"branch","len":1,"c":false},{"a":7308,"n":"j_1C8C","k":"branch","len":1,"c":false},{"a":7318,"n":"b_1C96","k":"branch","len":1,"c":false},{"a":7320,"n":"report_key","k":"routine","len":10,"c":true},{"a":7329,"n":"r_1CA1","k":"branch","len":1,"c":false},{"a":7330,"n":"two_keys_held","k":"routine","len":44,"c":true},{"a":7344,"n":"b_1CB0","k":"branch","len":1,"c":false},{"a":7347,"n":"j_1CB3","k":"branch","len":1,"c":false},{"a":7359,"n":"b_1CBF","k":"branch","len":1,"c":false},{"a":7371,"n":"b_1CCB","k":"branch","len":1,"c":false},{"a":7374,"n":"count_low_bits","k":"routine","len":17,"c":true},{"a":7378,"n":"b_1CD2","k":"branch","len":1,"c":false},{"a":7385,"n":"b_1CD9","k":"branch","len":1,"c":false},{"a":7392,"n":"read_joystick","k":"routine","len":23,"c":true},{"a":7416,"n":"key_table","k":"table","len":128,"c":true},{"a":7544,"n":"wait_for_key","k":"routine","len":6,"c":true},{"a":7550,"n":"get_key","k":"routine","len":14,"c":true},{"a":7556,"n":"b_1D84","k":"branch","len":1,"c":false},{"a":7564,"n":"draw_actor","k":"routine","len":114,"c":true},{"a":7583,"n":"b_1D9F","k":"branch","len":1,"c":false},{"a":7643,"n":"b_1DDB","k":"branch","len":1,"c":false},{"a":7678,"n":"draw_limbs","k":"routine","len":89,"c":true},{"a":7714,"n":"b_1E22","k":"branch","len":1,"c":false},{"a":7743,"n":"b_1E3F","k":"branch","len":1,"c":false},{"a":7766,"n":"r_1E56","k":"branch","len":1,"c":false},{"a":7767,"n":"draw_limb","k":"routine","len":182,"c":true},{"a":7818,"n":"b_1E8A","k":"branch","len":1,"c":false},{"a":7829,"n":"b_1E95","k":"branch","len":1,"c":false},{"a":7832,"n":"b_1E98","k":"branch","len":1,"c":false},{"a":7843,"n":"j_1EA3","k":"branch","len":1,"c":false},{"a":7885,"n":"b_1ECD","k":"branch","len":1,"c":false},{"a":7948,"n":"r_1F0C","k":"branch","len":1,"c":false},{"a":7949,"n":"place_next_picture","k":"routine","len":35,"c":true},{"a":7957,"n":"b_1F15","k":"branch","len":1,"c":false},{"a":7968,"n":"b_1F20","k":"branch","len":1,"c":false},{"a":7979,"n":"j_1F2B","k":"branch","len":1,"c":false},{"a":7984,"n":"costume_pointer","k":"routine","len":28,"c":true},{"a":8011,"n":"r_1F4B","k":"branch","len":1,"c":false},{"a":8012,"n":"load_anim_state","k":"routine","len":18,"c":true},{"a":8019,"n":"b_1F53","k":"branch","len":1,"c":false},{"a":8030,"n":"save_anim_state","k":"routine","len":18,"c":true},{"a":8037,"n":"b_1F65","k":"branch","len":1,"c":false},{"a":8048,"n":"clear_old_rows","k":"routine","len":116,"c":true},{"a":8066,"n":"b_1F82","k":"branch","len":1,"c":false},{"a":8076,"n":"j_1F8C","k":"branch","len":1,"c":false},{"a":8098,"n":"b_1FA2","k":"branch","len":1,"c":false},{"a":8106,"n":"b_1FAA","k":"branch","len":1,"c":false},{"a":8120,"n":"j_1FB8","k":"branch","len":1,"c":false},{"a":8126,"n":"b_1FBE","k":"branch","len":1,"c":false},{"a":8164,"n":"keep_drawn_rows","k":"routine","len":39,"c":true},{"a":8188,"n":"b_1FFC","k":"branch","len":1,"c":false},{"a":8199,"n":"j_2007","k":"branch","len":1,"c":false},{"a":8203,"n":"sprite_column_address","k":"routine","len":26,"c":true},{"a":8223,"n":"b_201F","k":"branch","len":1,"c":false},{"a":8225,"n":"j_2021","k":"branch","len":1,"c":false},{"a":8229,"n":"copy_seam_rows","k":"routine","len":37,"c":true},{"a":8234,"n":"b_202A","k":"branch","len":1,"c":false},{"a":8266,"n":"row_address","k":"routine","len":18,"c":true},{"a":8284,"n":"block_before","k":"routine","len":14,"c":true},{"a":8298,"n":"f_206A","k":"table","len":8,"c":true},{"a":8306,"n":"f_2072","k":"table","len":8,"c":true},{"a":8314,"n":"f_207A","k":"table","len":7,"c":true},{"a":8321,"n":"f_2081","k":"table","len":4,"c":true},{"a":8325,"n":"a_2085","k":"variable","len":1,"c":true},{"a":8326,"n":"a_2086","k":"variable","len":1,"c":true},{"a":8327,"n":"a_2087","k":"variable","len":1,"c":true},{"a":8328,"n":"a_2088","k":"variable","len":1,"c":true},{"a":8329,"n":"a_2089","k":"variable","len":1,"c":true},{"a":8330,"n":"start_animation","k":"routine","len":88,"c":true},{"a":8375,"n":"j_20B7","k":"branch","len":1,"c":false},{"a":8381,"n":"b_20BD","k":"branch","len":1,"c":false},{"a":8408,"n":"b_20D8","k":"branch","len":1,"c":false},{"a":8411,"n":"b_20DB","k":"branch","len":1,"c":false},{"a":8417,"n":"r_20E1","k":"branch","len":1,"c":false},{"a":8418,"n":"start_animation_limbs","k":"routine","len":86,"c":true},{"a":8449,"n":"b_2101","k":"branch","len":1,"c":false},{"a":8480,"n":"b_2120","k":"branch","len":1,"c":false},{"a":8491,"n":"b_212B","k":"branch","len":1,"c":false},{"a":8497,"n":"b_2131","k":"branch","len":1,"c":false},{"a":8504,"n":"turn_limbs","k":"routine","len":52,"c":true},{"a":8524,"n":"b_214C","k":"branch","len":1,"c":false},{"a":8550,"n":"b_2166","k":"branch","len":1,"c":false},{"a":8555,"n":"r_216B","k":"branch","len":1,"c":false},{"a":8556,"n":"put_actor","k":"routine","len":74,"c":true},{"a":8599,"n":"b_2197","k":"branch","len":1,"c":false},{"a":8614,"n":"b_21A6","k":"branch","len":1,"c":false},{"a":8629,"n":"r_21B5","k":"branch","len":1,"c":false},{"a":8630,"n":"a_21B6","k":"variable","len":1,"c":true},{"a":8631,"n":"a_21B7","k":"variable","len":1,"c":true},{"a":8632,"n":"a_21B8","k":"variable","len":1,"c":true},{"a":8633,"n":"a_21B9","k":"variable","len":1,"c":true},{"a":8634,"n":"print_message","k":"routine","len":209,"c":true},{"a":8649,"n":"b_21C9","k":"branch","len":1,"c":false},{"a":8657,"n":"b_21D1","k":"branch","len":1,"c":false},{"a":8683,"n":"b_21EB","k":"branch","len":1,"c":false},{"a":8693,"n":"b_21F5","k":"branch","len":1,"c":false},{"a":8699,"n":"j_21FB","k":"branch","len":1,"c":false},{"a":8706,"n":"b_2202","k":"branch","len":1,"c":false},{"a":8718,"n":"b_220E","k":"branch","len":1,"c":false},{"a":8730,"n":"b_221A","k":"branch","len":1,"c":false},{"a":8740,"n":"b_2224","k":"branch","len":1,"c":false},{"a":8750,"n":"b_222E","k":"branch","len":1,"c":false},{"a":8760,"n":"b_2238","k":"branch","len":1,"c":false},{"a":8763,"n":"j_223B","k":"branch","len":1,"c":false},{"a":8778,"n":"b_224A","k":"branch","len":1,"c":false},{"a":8794,"n":"b_225A","k":"branch","len":1,"c":false},{"a":8797,"n":"j_225D","k":"branch","len":1,"c":false},{"a":8803,"n":"b_2263","k":"branch","len":1,"c":false},{"a":8842,"n":"r_228A","k":"branch","len":1,"c":false},{"a":8843,"n":"stop_message","k":"routine","len":48,"c":true},{"a":8875,"n":"b_22AB","k":"branch","len":1,"c":false},{"a":8880,"n":"b_22B0","k":"branch","len":1,"c":false},{"a":8882,"n":"b_22B2","k":"branch","len":1,"c":false},{"a":8891,"n":"message_step","k":"routine","len":139,"c":true},{"a":8896,"n":"b_22C0","k":"branch","len":1,"c":false},{"a":8903,"n":"b_22C7","k":"branch","len":1,"c":false},{"a":8928,"n":"b_22E0","k":"branch","len":1,"c":false},{"a":8939,"n":"b_22EB","k":"branch","len":1,"c":false},{"a":8945,"n":"j_22F1","k":"branch","len":1,"c":false},{"a":8947,"n":"j_22F3","k":"branch","len":1,"c":false},{"a":8965,"n":"b_2305","k":"branch","len":1,"c":false},{"a":8969,"n":"j_2309","k":"branch","len":1,"c":false},{"a":8981,"n":"b_2315","k":"branch","len":1,"c":false},{"a":8990,"n":"b_231E","k":"branch","len":1,"c":false},{"a":9002,"n":"b_232A","k":"branch","len":1,"c":false},{"a":9019,"n":"b_233B","k":"branch","len":1,"c":false},{"a":9030,"n":"message_ran_out","k":"routine","len":4,"c":true},{"a":9033,"n":"r_2349","k":"branch","len":1,"c":false},{"a":9034,"n":"a_234A","k":"variable","len":2,"c":true},{"a":9036,"n":"a_234C","k":"variable","len":1,"c":true},{"a":9037,"n":"handle_key","k":"routine","len":131,"c":true},{"a":9048,"n":"b_2358","k":"branch","len":1,"c":false},{"a":9102,"n":"b_238E","k":"branch","len":1,"c":false},{"a":9105,"n":"b_2391","k":"branch","len":1,"c":false},{"a":9116,"n":"b_239C","k":"branch","len":1,"c":false},{"a":9134,"n":"b_23AE","k":"branch","len":1,"c":false},{"a":9168,"n":"change_message_speed","k":"routine","len":44,"c":true},{"a":9180,"n":"r_23DC","k":"branch","len":1,"c":false},{"a":9181,"n":"b_23DD","k":"branch","len":1,"c":false},{"a":9197,"n":"r_23ED","k":"branch","len":1,"c":false},{"a":9198,"n":"b_23EE","k":"branch","len":1,"c":false},{"a":9212,"n":"a_23FC","k":"variable","len":1,"c":true},{"a":9213,"n":"nearest_box","k":"routine","len":132,"c":true},{"a":9231,"n":"b_240F","k":"branch","len":1,"c":false},{"a":9261,"n":"b_242D","k":"branch","len":1,"c":false},{"a":9271,"n":"b_2437","k":"branch","len":1,"c":false},{"a":9274,"n":"b_243A","k":"branch","len":1,"c":false},{"a":9310,"n":"b_245E","k":"branch","len":1,"c":false},{"a":9339,"n":"j_247B","k":"branch","len":1,"c":false},{"a":9345,"n":"box_distance","k":"routine","len":34,"c":true},{"a":9370,"n":"b_249A","k":"branch","len":1,"c":false},{"a":9375,"n":"j_249F","k":"branch","len":1,"c":false},{"a":9379,"n":"boxes_pointer","k":"routine","len":39,"c":true},{"a":9411,"n":"b_24C3","k":"branch","len":1,"c":false},{"a":9418,"n":"a_24CA","k":"variable","len":1,"c":true},{"a":9419,"n":"a_24CB","k":"variable","len":1,"c":true},{"a":9420,"n":"box_mask","k":"routine","len":18,"c":true},{"a":9438,"n":"box_flags","k":"routine","len":12,"c":true},{"a":9450,"n":"a_24EA","k":"variable","len":1,"c":true},{"a":9451,"n":"box_nearest_point","k":"routine","len":97,"c":true},{"a":9508,"n":"b_2524","k":"branch","len":1,"c":false},{"a":9511,"n":"b_2527","k":"branch","len":1,"c":false},{"a":9548,"n":"point_above_box","k":"routine","len":160,"c":true},{"a":9582,"n":"j_256E","k":"branch","len":1,"c":false},{"a":9624,"n":"j_2598","k":"branch","len":1,"c":false},{"a":9670,"n":"b_25C6","k":"branch","len":1,"c":false},{"a":9690,"n":"b_25DA","k":"branch","len":1,"c":false},{"a":9705,"n":"j_25E9","k":"branch","len":1,"c":false},{"a":9708,"n":"clamp_x","k":"routine","len":81,"c":true},{"a":9736,"n":"b_2608","k":"branch","len":1,"c":false},{"a":9749,"n":"b_2615","k":"branch","len":1,"c":false},{"a":9765,"n":"b_2625","k":"branch","len":1,"c":false},{"a":9779,"n":"b_2633","k":"branch","len":1,"c":false},{"a":9788,"n":"r_263C","k":"branch","len":1,"c":false},{"a":9789,"n":"load_box","k":"routine","len":24,"c":true},{"a":9803,"n":"b_264B","k":"branch","len":1,"c":false},{"a":9813,"n":"a_2655","k":"variable","len":1,"c":true},{"a":9814,"n":"a_2656","k":"variable","len":1,"c":true},{"a":9815,"n":"a_2657","k":"variable","len":1,"c":true},{"a":9816,"n":"a_2658","k":"variable","len":1,"c":true},{"a":9817,"n":"a_2659","k":"variable","len":1,"c":true},{"a":9818,"n":"a_265A","k":"variable","len":1,"c":true},{"a":9819,"n":"a_265B","k":"variable","len":2,"c":true},{"a":9821,"n":"a_265D","k":"variable","len":1,"c":true},{"a":9822,"n":"a_265E","k":"variable","len":1,"c":true},{"a":9823,"n":"a_265F","k":"variable","len":1,"c":true},{"a":9824,"n":"a_2660","k":"variable","len":1,"c":true},{"a":9825,"n":"a_2661","k":"variable","len":1,"c":true},{"a":9826,"n":"a_2662","k":"variable","len":1,"c":true},{"a":9827,"n":"a_2663","k":"variable","len":1,"c":true},{"a":9828,"n":"a_2664","k":"variable","len":1,"c":true},{"a":9829,"n":"a_2665","k":"variable","len":1,"c":true},{"a":9830,"n":"a_2666","k":"variable","len":1,"c":true},{"a":9831,"n":"a_2667","k":"variable","len":1,"c":true},{"a":9832,"n":"a_2668","k":"variable","len":1,"c":true},{"a":9833,"n":"a_2669","k":"variable","len":1,"c":true},{"a":9834,"n":"a_266A","k":"variable","len":1,"c":true},{"a":9835,"n":"a_266B","k":"variable","len":1,"c":true},{"a":9836,"n":"a_266C","k":"variable","len":1,"c":true},{"a":9837,"n":"a_266D","k":"variable","len":1,"c":true},{"a":9838,"n":"a_266E","k":"variable","len":1,"c":true},{"a":9839,"n":"a_266F","k":"variable","len":1,"c":true},{"a":9840,"n":"a_2670","k":"variable","len":1,"c":true},{"a":9841,"n":"a_2671","k":"variable","len":1,"c":true},{"a":9842,"n":"a_2672","k":"variable","len":1,"c":true},{"a":9843,"n":"mask_actor_sprite","k":"routine","len":168,"c":true},{"a":9871,"n":"b_268F","k":"branch","len":1,"c":false},{"a":9880,"n":"b_2698","k":"branch","len":1,"c":false},{"a":9890,"n":"b_26A2","k":"branch","len":1,"c":false},{"a":9940,"n":"j_26D4","k":"branch","len":1,"c":false},{"a":9977,"n":"b_26F9","k":"branch","len":1,"c":false},{"a":9986,"n":"b_2702","k":"branch","len":1,"c":false},{"a":10010,"n":"r_271A","k":"branch","len":1,"c":false},{"a":10011,"n":"mask_char_pointers","k":"routine","len":139,"c":true},{"a":10045,"n":"b_273D","k":"branch","len":1,"c":false},{"a":10091,"n":"b_276B","k":"branch","len":1,"c":false},{"a":10137,"n":"b_2799","k":"branch","len":1,"c":false},{"a":10150,"n":"mask_sprite_row","k":"routine","len":35,"c":true},{"a":10185,"n":"a_27C9","k":"variable","len":1,"c":true},{"a":10186,"n":"a_27CA","k":"variable","len":1,"c":true},{"a":10187,"n":"a_27CB","k":"variable","len":1,"c":true},{"a":10188,"n":"a_27CC","k":"variable","len":1,"c":true},{"a":10189,"n":"a_27CD","k":"variable","len":1,"c":true},{"a":10190,"n":"a_27CE","k":"variable","len":1,"c":true},{"a":10191,"n":"update_flashlight","k":"routine","len":46,"c":true},{"a":10214,"n":"b_27E6","k":"branch","len":1,"c":false},{"a":10237,"n":"flashlight_off","k":"routine","len":12,"c":true},{"a":10249,"n":"flashlight_on","k":"routine","len":12,"c":true},{"a":10261,"n":"flashlight_patch","k":"routine","len":167,"c":true},{"a":10302,"n":"b_283E","k":"branch","len":1,"c":false},{"a":10318,"n":"j_284E","k":"branch","len":1,"c":false},{"a":10324,"n":"b_2854","k":"branch","len":1,"c":false},{"a":10334,"n":"b_285E","k":"branch","len":1,"c":false},{"a":10340,"n":"b_2864","k":"branch","len":1,"c":false},{"a":10350,"n":"b_286E","k":"branch","len":1,"c":false},{"a":10397,"n":"b_289D","k":"branch","len":1,"c":false},{"a":10410,"n":"b_28AA","k":"branch","len":1,"c":false},{"a":10414,"n":"b_28AE","k":"branch","len":1,"c":false},{"a":10418,"n":"b_28B2","k":"branch","len":1,"c":false},{"a":10427,"n":"b_28BB","k":"branch","len":1,"c":false},{"a":10428,"n":"patch_read_lo","k":"routine","len":1,"c":true},{"a":10429,"n":"patch_read_hi","k":"routine","len":2,"c":true},{"a":10430,"n":"j_28BE","k":"branch","len":1,"c":false},{"a":10431,"n":"patch_write_lo","k":"routine","len":1,"c":true},{"a":10432,"n":"patch_write_hi","k":"routine","len":42,"c":true},{"a":10474,"n":"walk_all_actors","k":"routine","len":26,"c":true},{"a":10479,"n":"b_28EF","k":"branch","len":1,"c":false},{"a":10494,"n":"b_28FE","k":"branch","len":1,"c":false},{"a":10500,"n":"draw_all_actors","k":"routine","len":66,"c":true},{"a":10505,"n":"b_2909","k":"branch","len":1,"c":false},{"a":10552,"n":"b_2938","k":"branch","len":1,"c":false},{"a":10566,"n":"actor_leaves_room","k":"routine","len":49,"c":true},{"a":10615,"n":"actor_enters_room","k":"routine","len":36,"c":true},{"a":10621,"n":"b_297D","k":"branch","len":1,"c":false},{"a":10623,"n":"b_297F","k":"branch","len":1,"c":false},{"a":10632,"n":"b_2988","k":"branch","len":1,"c":false},{"a":10645,"n":"j_2995","k":"branch","len":1,"c":false},{"a":10651,"n":"take_walk_slot","k":"routine","len":156,"c":true},{"a":10757,"n":"b_2A05","k":"branch","len":1,"c":false},{"a":10806,"n":"r_2A36","k":"branch","len":1,"c":false},{"a":10807,"n":"a_2A37","k":"variable","len":1,"c":true},{"a":10808,"n":"enter_room","k":"routine","len":94,"c":true},{"a":10824,"n":"b_2A48","k":"branch","len":1,"c":false},{"a":10836,"n":"b_2A54","k":"branch","len":1,"c":false},{"a":10902,"n":"load_room","k":"routine","len":163,"c":true},{"a":10917,"n":"b_2AA5","k":"branch","len":1,"c":false},{"a":10919,"n":"b_2AA7","k":"branch","len":1,"c":false},{"a":10941,"n":"b_2ABD","k":"branch","len":1,"c":false},{"a":10963,"n":"b_2AD3","k":"branch","len":1,"c":false},{"a":10979,"n":"b_2AE3","k":"branch","len":1,"c":false},{"a":11006,"n":"b_2AFE","k":"branch","len":1,"c":false},{"a":11022,"n":"b_2B0E","k":"branch","len":1,"c":false},{"a":11024,"n":"j_2B10","k":"branch","len":1,"c":false},{"a":11041,"n":"b_2B21","k":"branch","len":1,"c":false},{"a":11058,"n":"b_2B32","k":"branch","len":1,"c":false},{"a":11065,"n":"read_room_header","k":"routine","len":163,"c":true},{"a":11099,"n":"b_2B5B","k":"branch","len":1,"c":false},{"a":11111,"n":"b_2B67","k":"branch","len":1,"c":false},{"a":11169,"n":"b_2BA1","k":"branch","len":1,"c":false},{"a":11194,"n":"b_2BBA","k":"branch","len":1,"c":false},{"a":11219,"n":"b_2BD3","k":"branch","len":1,"c":false},{"a":11228,"n":"load_room_resources","k":"routine","len":67,"c":true},{"a":11264,"n":"b_2C00","k":"branch","len":1,"c":false},{"a":11277,"n":"b_2C0D","k":"branch","len":1,"c":false},{"a":11281,"n":"b_2C11","k":"branch","len":1,"c":false},{"a":11294,"n":"r_2C1E","k":"branch","len":1,"c":false},{"a":11295,"n":"room_resource_list","k":"routine","len":25,"c":true},{"a":11320,"n":"read_room_objects","k":"routine","len":223,"c":true},{"a":11360,"n":"b_2C60","k":"branch","len":1,"c":false},{"a":11366,"n":"b_2C66","k":"branch","len":1,"c":false},{"a":11394,"n":"b_2C82","k":"branch","len":1,"c":false},{"a":11416,"n":"b_2C98","k":"branch","len":1,"c":false},{"a":11484,"n":"b_2CDC","k":"branch","len":1,"c":false},{"a":11486,"n":"j_2CDE","k":"branch","len":1,"c":false},{"a":11542,"n":"r_2D16","k":"branch","len":1,"c":false},{"a":11543,"n":"setup_room_graphics","k":"routine","len":279,"c":true},{"a":11562,"n":"b_2D2A","k":"branch","len":1,"c":false},{"a":11616,"n":"b_2D60","k":"branch","len":1,"c":false},{"a":11627,"n":"b_2D6B","k":"branch","len":1,"c":false},{"a":11633,"n":"b_2D71","k":"branch","len":1,"c":false},{"a":11652,"n":"b_2D84","k":"branch","len":1,"c":false},{"a":11796,"n":"b_2E14","k":"branch","len":1,"c":false},{"a":11807,"n":"b_2E1F","k":"branch","len":1,"c":false},{"a":11813,"n":"b_2E25","k":"branch","len":1,"c":false},{"a":11822,"n":"load_room_resource","k":"routine","len":80,"c":true},{"a":11830,"n":"b_2E36","k":"branch","len":1,"c":false},{"a":11886,"n":"b_2E6E","k":"branch","len":1,"c":false},{"a":11896,"n":"b_2E78","k":"branch","len":1,"c":false},{"a":11898,"n":"j_2E7A","k":"branch","len":1,"c":false},{"a":11902,"n":"a_2E7E","k":"variable","len":1,"c":true},{"a":11903,"n":"a_2E7F","k":"variable","len":1,"c":true},{"a":11904,"n":"a_2E80","k":"table","len":3,"c":true},{"a":11907,"n":"a_2E83","k":"variable","len":1,"c":true},{"a":11908,"n":"put_actors_in_room","k":"routine","len":31,"c":true},{"a":11913,"n":"b_2E89","k":"branch","len":1,"c":false},{"a":11933,"n":"b_2E9D","k":"branch","len":1,"c":false},{"a":11939,"n":"load_costume","k":"routine","len":65,"c":true},{"a":11947,"n":"b_2EAB","k":"branch","len":1,"c":false},{"a":11953,"n":"b_2EB1","k":"branch","len":1,"c":false},{"a":12004,"n":"load_sound","k":"routine","len":67,"c":true},{"a":12017,"n":"b_2EF1","k":"branch","len":1,"c":false},{"a":12071,"n":"load_script","k":"routine","len":84,"c":true},{"a":12084,"n":"b_2F34","k":"branch","len":1,"c":false},{"a":12114,"n":"b_2F52","k":"branch","len":1,"c":false},{"a":12126,"n":"j_2F5E","k":"branch","len":1,"c":false},{"a":12155,"n":"run_entry_script","k":"routine","len":42,"c":true},{"a":12196,"n":"r_2FA4","k":"branch","len":1,"c":false},{"a":12197,"n":"run_exit_script","k":"routine","len":42,"c":true},{"a":12238,"n":"r_2FCE","k":"branch","len":1,"c":false},{"a":12239,"n":"find_room_on_disk","k":"routine","len":60,"c":true},{"a":12256,"n":"b_2FE0","k":"branch","len":1,"c":false},{"a":12275,"n":"j_2FF3","k":"branch","len":1,"c":false},{"a":12281,"n":"b_2FF9","k":"branch","len":1,"c":false},{"a":12299,"n":"ask_for_side","k":"routine","len":36,"c":true},{"a":12305,"n":"j_3011","k":"branch","len":1,"c":false},{"a":12321,"n":"b_3021","k":"branch","len":1,"c":false},{"a":12335,"n":"show_and_wait","k":"routine","len":111,"c":true},{"a":12371,"n":"b_3053","k":"branch","len":1,"c":false},{"a":12376,"n":"b_3058","k":"branch","len":1,"c":false},{"a":12391,"n":"b_3067","k":"branch","len":1,"c":false},{"a":12403,"n":"b_3073","k":"branch","len":1,"c":false},{"a":12432,"n":"b_3090","k":"branch","len":1,"c":false},{"a":12458,"n":"a_30AA","k":"table","len":28,"c":true},{"a":12486,"n":"disk_error_text","k":"table","len":40,"c":true},{"a":12526,"n":"f_30EE","k":"table","len":40,"c":true},{"a":12566,"n":"clear_on_screen","k":"routine","len":14,"c":true},{"a":12570,"n":"b_311A","k":"branch","len":1,"c":false},{"a":12580,"n":"a_3124","k":"variable","len":1,"c":true},{"a":12581,"n":"a_3125","k":"table","len":5,"c":true},{"a":12586,"n":"copy_object_states","k":"routine","len":24,"c":true},{"a":12592,"n":"b_3130","k":"branch","len":1,"c":false},{"a":12610,"n":"object_state_lo","k":"routine","len":1,"c":true},{"a":12611,"n":"object_state_hi","k":"routine","len":8,"c":true},{"a":12619,"n":"find_actor_at","k":"routine","len":67,"c":true},{"a":12621,"n":"b_314D","k":"branch","len":1,"c":false},{"a":12636,"n":"b_315C","k":"branch","len":1,"c":false},{"a":12659,"n":"b_3173","k":"branch","len":1,"c":false},{"a":12666,"n":"b_317A","k":"branch","len":1,"c":false},{"a":12678,"n":"b_3186","k":"branch","len":1,"c":false},{"a":12686,"n":"find_object_at","k":"routine","len":60,"c":true},{"a":12692,"n":"b_3194","k":"branch","len":1,"c":false},{"a":12694,"n":"b_3196","k":"branch","len":1,"c":false},{"a":12704,"n":"b_31A0","k":"branch","len":1,"c":false},{"a":12720,"n":"b_31B0","k":"branch","len":1,"c":false},{"a":12733,"n":"b_31BD","k":"branch","len":1,"c":false},{"a":12746,"n":"draw_room_objects","k":"routine","len":222,"c":true},{"a":12752,"n":"b_31D0","k":"branch","len":1,"c":false},{"a":12768,"n":"b_31E0","k":"branch","len":1,"c":false},{"a":12776,"n":"b_31E8","k":"branch","len":1,"c":false},{"a":12792,"n":"b_31F8","k":"branch","len":1,"c":false},{"a":12805,"n":"b_3205","k":"branch","len":1,"c":false},{"a":12809,"n":"j_3209","k":"branch","len":1,"c":false},{"a":12830,"n":"b_321E","k":"branch","len":1,"c":false},{"a":12849,"n":"b_3231","k":"branch","len":1,"c":false},{"a":12869,"n":"b_3245","k":"branch","len":1,"c":false},{"a":12872,"n":"j_3248","k":"branch","len":1,"c":false},{"a":12886,"n":"b_3256","k":"branch","len":1,"c":false},{"a":12903,"n":"b_3267","k":"branch","len":1,"c":false},{"a":12906,"n":"b_326A","k":"branch","len":1,"c":false},{"a":12918,"n":"b_3276","k":"branch","len":1,"c":false},{"a":12935,"n":"b_3287","k":"branch","len":1,"c":false},{"a":12938,"n":"b_328A","k":"branch","len":1,"c":false},{"a":12948,"n":"b_3294","k":"branch","len":1,"c":false},{"a":12965,"n":"j_32A5","k":"branch","len":1,"c":false},{"a":12968,"n":"draw_object","k":"routine","len":224,"c":true},{"a":13021,"n":"b_32DD","k":"branch","len":1,"c":false},{"a":13042,"n":"b_32F2","k":"branch","len":1,"c":false},{"a":13084,"n":"b_331C","k":"branch","len":1,"c":false},{"a":13104,"n":"j_3330","k":"branch","len":1,"c":false},{"a":13137,"n":"b_3351","k":"branch","len":1,"c":false},{"a":13192,"n":"draw_object_layer","k":"routine","len":50,"c":true},{"a":13197,"n":"b_338D","k":"branch","len":1,"c":false},{"a":13207,"n":"b_3397","k":"branch","len":1,"c":false},{"a":13229,"n":"b_33AD","k":"branch","len":1,"c":false},{"a":13242,"n":"a_33BA","k":"variable","len":1,"c":true},{"a":13243,"n":"f_33BB","k":"table","len":20,"c":true},{"a":13263,"n":"draw_queued_objects","k":"routine","len":91,"c":true},{"a":13269,"n":"b_33D5","k":"branch","len":1,"c":false},{"a":13306,"n":"b_33FA","k":"branch","len":1,"c":false},{"a":13308,"n":"b_33FC","k":"branch","len":1,"c":false},{"a":13324,"n":"b_340C","k":"branch","len":1,"c":false},{"a":13342,"n":"b_341E","k":"branch","len":1,"c":false},{"a":13354,"n":"copy_screen_to_hidden","k":"routine","len":45,"c":true},{"a":13379,"n":"b_3443","k":"branch","len":1,"c":false},{"a":13395,"n":"j_3453","k":"branch","len":1,"c":false},{"a":13399,"n":"a_3457","k":"variable","len":1,"c":true},{"a":13400,"n":"a_3458","k":"variable","len":1,"c":true},{"a":13401,"n":"a_3459","k":"variable","len":1,"c":true},{"a":13402,"n":"a_345A","k":"variable","len":1,"c":true},{"a":13403,"n":"a_345B","k":"variable","len":1,"c":true},{"a":13404,"n":"a_345C","k":"variable","len":1,"c":true},{"a":13405,"n":"a_345D","k":"variable","len":1,"c":true},{"a":13406,"n":"a_345E","k":"variable","len":1,"c":true},{"a":13407,"n":"f_345F","k":"table","len":25,"c":true},{"a":13432,"n":"f_3478","k":"table","len":25,"c":true},{"a":13457,"n":"assign_sprites","k":"routine","len":280,"c":true},{"a":13459,"n":"b_3493","k":"branch","len":1,"c":false},{"a":13530,"n":"b_34DA","k":"branch","len":1,"c":false},{"a":13537,"n":"b_34E1","k":"branch","len":1,"c":false},{"a":13564,"n":"j_34FC","k":"branch","len":1,"c":false},{"a":13570,"n":"b_3502","k":"branch","len":1,"c":false},{"a":13572,"n":"b_3504","k":"branch","len":1,"c":false},{"a":13595,"n":"b_351B","k":"branch","len":1,"c":false},{"a":13603,"n":"b_3523","k":"branch","len":1,"c":false},{"a":13610,"n":"b_352A","k":"branch","len":1,"c":false},{"a":13624,"n":"b_3538","k":"branch","len":1,"c":false},{"a":13635,"n":"b_3543","k":"branch","len":1,"c":false},{"a":13649,"n":"b_3551","k":"branch","len":1,"c":false},{"a":13655,"n":"b_3557","k":"branch","len":1,"c":false},{"a":13672,"n":"b_3568","k":"branch","len":1,"c":false},{"a":13678,"n":"b_356E","k":"branch","len":1,"c":false},{"a":13704,"n":"j_3588","k":"branch","len":1,"c":false},{"a":13711,"n":"b_358F","k":"branch","len":1,"c":false},{"a":13728,"n":"b_35A0","k":"branch","len":1,"c":false},{"a":13731,"n":"j_35A3","k":"branch","len":1,"c":false},{"a":13737,"n":"check_on_screen","k":"routine","len":86,"c":true},{"a":13749,"n":"b_35B5","k":"branch","len":1,"c":false},{"a":13778,"n":"b_35D2","k":"branch","len":1,"c":false},{"a":13788,"n":"b_35DC","k":"branch","len":1,"c":false},{"a":13790,"n":"b_35DE","k":"branch","len":1,"c":false},{"a":13800,"n":"b_35E8","k":"branch","len":1,"c":false},{"a":13803,"n":"b_35EB","k":"branch","len":1,"c":false},{"a":13807,"n":"j_35EF","k":"branch","len":1,"c":false},{"a":13812,"n":"b_35F4","k":"branch","len":1,"c":false},{"a":13817,"n":"b_35F9","k":"branch","len":1,"c":false},{"a":13819,"n":"j_35FB","k":"branch","len":1,"c":false},{"a":13823,"n":"a_35FF","k":"variable","len":1,"c":true},{"a":13824,"n":"f_3600","k":"table","len":4,"c":true},{"a":13828,"n":"f_3604","k":"table","len":4,"c":true},{"a":13832,"n":"f_3608","k":"table","len":4,"c":true},{"a":13836,"n":"f_360C","k":"table","len":4,"c":true},{"a":13840,"n":"draw_room","k":"routine","len":318,"c":true},{"a":13878,"n":"b_3636","k":"branch","len":1,"c":false},{"a":13893,"n":"j_3645","k":"branch","len":1,"c":false},{"a":13957,"n":"b_3685","k":"branch","len":1,"c":false},{"a":14007,"n":"b_36B7","k":"branch","len":1,"c":false},{"a":14043,"n":"j_36DB","k":"branch","len":1,"c":false},{"a":14158,"n":"decode_column","k":"routine","len":20,"c":true},{"a":14169,"n":"b_3759","k":"branch","len":1,"c":false},{"a":14173,"n":"j_375D","k":"branch","len":1,"c":false},{"a":14177,"n":"b_3761","k":"branch","len":1,"c":false},{"a":14178,"n":"common_bytes_lo","k":"routine","len":1,"c":true},{"a":14179,"n":"common_bytes_hi","k":"routine","len":93,"c":true},{"a":14194,"n":"b_3772","k":"branch","len":1,"c":false},{"a":14210,"n":"b_3782","k":"branch","len":1,"c":false},{"a":14224,"n":"b_3790","k":"branch","len":1,"c":false},{"a":14235,"n":"j_379B","k":"branch","len":1,"c":false},{"a":14248,"n":"b_37A8","k":"branch","len":1,"c":false},{"a":14257,"n":"b_37B1","k":"branch","len":1,"c":false},{"a":14272,"n":"a_37C0","k":"variable","len":2,"c":true},{"a":14274,"n":"a_37C2","k":"variable","len":1,"c":true},{"a":14275,"n":"a_37C3","k":"variable","len":1,"c":true},{"a":14276,"n":"a_37C4","k":"variable","len":1,"c":true},{"a":14277,"n":"shift_room_right","k":"routine","len":96,"c":true},{"a":14294,"n":"b_37D6","k":"branch","len":1,"c":false},{"a":14302,"n":"j_37DE","k":"branch","len":1,"c":false},{"a":14325,"n":"b_37F5","k":"branch","len":1,"c":false},{"a":14331,"n":"b_37FB","k":"branch","len":1,"c":false},{"a":14373,"n":"shift_room_left","k":"routine","len":96,"c":true},{"a":14390,"n":"b_3836","k":"branch","len":1,"c":false},{"a":14398,"n":"j_383E","k":"branch","len":1,"c":false},{"a":14421,"n":"b_3855","k":"branch","len":1,"c":false},{"a":14427,"n":"b_385B","k":"branch","len":1,"c":false},{"a":14469,"n":"copy_rows_right","k":"routine","len":41,"c":true},{"a":14471,"n":"b_3887","k":"branch","len":1,"c":false},{"a":14473,"n":"b_3889","k":"branch","len":1,"c":false},{"a":14510,"n":"copy_rows","k":"routine","len":43,"c":true},{"a":14512,"n":"b_38B0","k":"branch","len":1,"c":false},{"a":14514,"n":"b_38B2","k":"branch","len":1,"c":false},{"a":14553,"n":"build_column_index","k":"routine","len":331,"c":true},{"a":14564,"n":"b_38E4","k":"branch","len":1,"c":false},{"a":14683,"n":"b_395B","k":"branch","len":1,"c":false},{"a":14884,"n":"index_stream","k":"routine","len":55,"c":true},{"a":14889,"n":"b_3A29","k":"branch","len":1,"c":false},{"a":14908,"n":"b_3A3C","k":"branch","len":1,"c":false},{"a":14910,"n":"j_3A3E","k":"branch","len":1,"c":false},{"a":14920,"n":"b_3A48","k":"branch","len":1,"c":false},{"a":14939,"n":"a_3A5B","k":"variable","len":1,"c":true},{"a":14940,"n":"a_3A5C","k":"variable","len":1,"c":true},{"a":14941,"n":"disk_seek","k":"routine","len":27,"c":true},{"a":14968,"n":"disk_read_start","k":"routine","len":9,"c":true},{"a":14977,"n":"disk_read_from","k":"routine","len":40,"c":true},{"a":15001,"n":"b_3A99","k":"branch","len":1,"c":false},{"a":15007,"n":"b_3A9F","k":"branch","len":1,"c":false},{"a":15017,"n":"disk_read_bytes","k":"routine","len":10,"c":true},{"a":15023,"n":"b_3AAF","k":"branch","len":1,"c":false},{"a":15027,"n":"read_bytes_to_lo","k":"routine","len":1,"c":true},{"a":15028,"n":"read_bytes_to_hi","k":"routine","len":29,"c":true},{"a":15037,"n":"b_3ABD","k":"branch","len":1,"c":false},{"a":15045,"n":"b_3AC5","k":"branch","len":1,"c":false},{"a":15057,"n":"disk_write","k":"routine","len":71,"c":true},{"a":15083,"n":"b_3AEB","k":"branch","len":1,"c":false},{"a":15112,"n":"b_3B08","k":"branch","len":1,"c":false},{"a":15128,"n":"disk_byte","k":"routine","len":31,"c":true},{"a":15154,"n":"b_3B32","k":"branch","len":1,"c":false},{"a":15159,"n":"a_3B37","k":"variable","len":1,"c":true},{"a":15160,"n":"next_sector","k":"routine","len":25,"c":true},{"a":15184,"n":"r_3B50","k":"branch","len":1,"c":false},{"a":15185,"n":"f_3B51","k":"table","len":36,"c":true},{"a":15221,"n":"disk_read_sector","k":"routine","len":68,"c":true},{"a":15237,"n":"j_3B85","k":"branch","len":1,"c":false},{"a":15270,"n":"b_3BA6","k":"branch","len":1,"c":false},{"a":15289,"n":"a_3BB9","k":"variable","len":1,"c":true},{"a":15290,"n":"a_3BBA","k":"variable","len":1,"c":true},{"a":15291,"n":"a_3BBB","k":"variable","len":1,"c":true},{"a":15292,"n":"a_3BBC","k":"variable","len":1,"c":true},{"a":15293,"n":"a_3BBD","k":"variable","len":1,"c":true},{"a":15294,"n":"a_3BBE","k":"variable","len":1,"c":true},{"a":15295,"n":"a_3BBF","k":"variable","len":1,"c":true},{"a":15296,"n":"a_3BC0","k":"variable","len":1,"c":true},{"a":15297,"n":"a_3BC1","k":"variable","len":1,"c":true},{"a":15298,"n":"a_3BC2","k":"variable","len":1,"c":true},{"a":15299,"n":"a_3BC3","k":"variable","len":1,"c":true},{"a":15300,"n":"a_3BC4","k":"variable","len":1,"c":true},{"a":15301,"n":"a_3BC5","k":"variable","len":1,"c":true},{"a":15302,"n":"a_3BC6","k":"variable","len":1,"c":true},{"a":15303,"n":"a_3BC7","k":"variable","len":1,"c":true},{"a":15307,"n":"bus_write_sector","k":"routine","len":29,"c":true},{"a":15335,"n":"b_3BE7","k":"branch","len":1,"c":false},{"a":15336,"n":"write_sector_from_lo","k":"routine","len":1,"c":true},{"a":15337,"n":"write_sector_from_hi","k":"routine","len":9,"c":true},{"a":15346,"n":"bus_command_20","k":"routine","len":6,"c":true},{"a":15352,"n":"bus_read_sector","k":"routine","len":61,"c":true},{"a":15380,"n":"j_3C14","k":"branch","len":1,"c":false},{"a":15412,"n":"b_3C34","k":"branch","len":1,"c":false},{"a":15413,"n":"read_sector_to_lo","k":"routine","len":1,"c":true},{"a":15414,"n":"read_sector_to_hi","k":"routine","len":22,"c":true},{"a":15421,"n":"b_3C3D","k":"branch","len":1,"c":false},{"a":15424,"n":"b_3C40","k":"branch","len":1,"c":false},{"a":15426,"n":"b_3C42","k":"branch","len":1,"c":false},{"a":15428,"n":"b_3C44","k":"branch","len":1,"c":false},{"a":15436,"n":"bus_send_command","k":"routine","len":26,"c":true},{"a":15462,"n":"bus_handshake","k":"routine","len":23,"c":true},{"a":15464,"n":"b_3C68","k":"branch","len":1,"c":false},{"a":15469,"n":"b_3C6D","k":"branch","len":1,"c":false},{"a":15481,"n":"b_3C79","k":"branch","len":1,"c":false},{"a":15485,"n":"bus_receive_byte","k":"routine","len":16,"c":true},{"a":15501,"n":"bus_receive_bits","k":"routine","len":32,"c":true},{"a":15533,"n":"bus_send_byte","k":"routine","len":16,"c":true},{"a":15549,"n":"bus_send_bits","k":"routine","len":31,"c":true},{"a":15558,"n":"b_3CC6","k":"branch","len":1,"c":false},{"a":15574,"n":"b_3CD6","k":"branch","len":1,"c":false},{"a":15580,"n":"a_3CDC","k":"variable","len":1,"c":true},{"a":15581,"n":"a_3CDD","k":"variable","len":1,"c":true},{"a":15582,"n":"a_3CDE","k":"variable","len":1,"c":true},{"a":15583,"n":"begin_sound","k":"routine","len":104,"c":true},{"a":15603,"n":"b_3CF3","k":"branch","len":1,"c":false},{"a":15681,"n":"b_3D41","k":"branch","len":1,"c":false},{"a":15687,"n":"take_filter","k":"routine","len":77,"c":true},{"a":15702,"n":"b_3D56","k":"branch","len":1,"c":false},{"a":15707,"n":"j_3D5B","k":"branch","len":1,"c":false},{"a":15717,"n":"b_3D65","k":"branch","len":1,"c":false},{"a":15725,"n":"b_3D6D","k":"branch","len":1,"c":false},{"a":15728,"n":"j_3D70","k":"branch","len":1,"c":false},{"a":15764,"n":"lowest_sound_lo","k":"routine","len":1,"c":true},{"a":15765,"n":"lowest_sound_hi","k":"routine","len":36,"c":true},{"a":15789,"n":"b_3DAD","k":"branch","len":1,"c":false},{"a":15801,"n":"sound_may_wait","k":"routine","len":39,"c":true},{"a":15822,"n":"b_3DCE","k":"branch","len":1,"c":false},{"a":15840,"n":"sound_refused","k":"routine","len":114,"c":true},{"a":15843,"n":"b_3DE3","k":"branch","len":1,"c":false},{"a":15858,"n":"b_3DF2","k":"branch","len":1,"c":false},{"a":15870,"n":"b_3DFE","k":"branch","len":1,"c":false},{"a":15874,"n":"b_3E02","k":"branch","len":1,"c":false},{"a":15893,"n":"b_3E15","k":"branch","len":1,"c":false},{"a":15908,"n":"b_3E24","k":"branch","len":1,"c":false},{"a":15923,"n":"b_3E33","k":"branch","len":1,"c":false},{"a":15928,"n":"j_3E38","k":"branch","len":1,"c":false},{"a":15951,"n":"b_3E4F","k":"branch","len":1,"c":false},{"a":15954,"n":"stop_sound","k":"routine","len":19,"c":true},{"a":15970,"n":"b_3E62","k":"branch","len":1,"c":false},{"a":15973,"n":"stop_sound_channels","k":"routine","len":51,"c":true},{"a":15978,"n":"b_3E6A","k":"branch","len":1,"c":false},{"a":15989,"n":"b_3E75","k":"branch","len":1,"c":false},{"a":15997,"n":"b_3E7D","k":"branch","len":1,"c":false},{"a":16020,"n":"b_3E94","k":"branch","len":1,"c":false},{"a":16023,"n":"r_3E97","k":"branch","len":1,"c":false},{"a":16024,"n":"stop_channel","k":"routine","len":91,"c":true},{"a":16057,"n":"b_3EB9","k":"branch","len":1,"c":false},{"a":16074,"n":"b_3ECA","k":"branch","len":1,"c":false},{"a":16105,"n":"b_3EE9","k":"branch","len":1,"c":false},{"a":16112,"n":"b_3EF0","k":"branch","len":1,"c":false},{"a":16115,"n":"free_channel","k":"routine","len":59,"c":true},{"a":16149,"n":"b_3F15","k":"branch","len":1,"c":false},{"a":16168,"n":"b_3F28","k":"branch","len":1,"c":false},{"a":16174,"n":"start_part","k":"routine","len":28,"c":true},{"a":16202,"n":"start_part_data","k":"routine","len":132,"c":true},{"a":16257,"n":"b_3F81","k":"branch","len":1,"c":false},{"a":16268,"n":"j_3F8C","k":"branch","len":1,"c":false},{"a":16329,"n":"b_3FC9","k":"branch","len":1,"c":false},{"a":16334,"n":"queue_sound","k":"routine","len":18,"c":true},{"a":16347,"n":"b_3FDB","k":"branch","len":1,"c":false},{"a":16352,"n":"sound_frame","k":"routine","len":32,"c":true},{"a":16366,"n":"b_3FEE","k":"branch","len":1,"c":false},{"a":16384,"n":"voice_envelopes","k":"routine","len":129,"c":true},{"a":16404,"n":"b_4014","k":"branch","len":1,"c":false},{"a":16415,"n":"b_401F","k":"branch","len":1,"c":false},{"a":16426,"n":"b_402A","k":"branch","len":1,"c":false},{"a":16449,"n":"b_4041","k":"branch","len":1,"c":false},{"a":16454,"n":"b_4046","k":"branch","len":1,"c":false},{"a":16462,"n":"b_404E","k":"branch","len":1,"c":false},{"a":16469,"n":"b_4055","k":"branch","len":1,"c":false},{"a":16483,"n":"b_4063","k":"branch","len":1,"c":false},{"a":16486,"n":"b_4066","k":"branch","len":1,"c":false},{"a":16512,"n":"r_4080","k":"branch","len":1,"c":false},{"a":16513,"n":"init_sound","k":"routine","len":18,"c":true},{"a":16517,"n":"b_4085","k":"branch","len":1,"c":false},{"a":16531,"n":"reset_sound","k":"routine","len":44,"c":true},{"a":16533,"n":"b_4095","k":"branch","len":1,"c":false},{"a":16575,"n":"start_channel","k":"routine","len":85,"c":true},{"a":16586,"n":"b_40CA","k":"branch","len":1,"c":false},{"a":16618,"n":"b_40EA","k":"branch","len":1,"c":false},{"a":16639,"n":"b_40FF","k":"branch","len":1,"c":false},{"a":16645,"n":"j_4105","k":"branch","len":1,"c":false},{"a":16651,"n":"b_410B","k":"branch","len":1,"c":false},{"a":16653,"n":"j_410D","k":"branch","len":1,"c":false},{"a":16660,"n":"filter_settings","k":"routine","len":27,"c":true},{"a":16687,"n":"advance_pointer","k":"routine","len":31,"c":true},{"a":16704,"n":"b_4140","k":"branch","len":1,"c":false},{"a":16717,"n":"r_414D","k":"branch","len":1,"c":false},{"a":16718,"n":"step_channel","k":"routine","len":62,"c":true},{"a":16729,"n":"b_4159","k":"branch","len":1,"c":false},{"a":16757,"n":"b_4175","k":"branch","len":1,"c":false},{"a":16760,"n":"b_4178","k":"branch","len":1,"c":false},{"a":16779,"n":"r_418B","k":"branch","len":1,"c":false},{"a":16780,"n":"clear_time_slide","k":"routine","len":15,"c":true},{"a":16795,"n":"next_command","k":"routine","len":374,"c":true},{"a":16832,"n":"b_41C0","k":"branch","len":1,"c":false},{"a":16859,"n":"b_41DB","k":"branch","len":1,"c":false},{"a":16861,"n":"j_41DD","k":"branch","len":1,"c":false},{"a":16864,"n":"b_41E0","k":"branch","len":1,"c":false},{"a":16873,"n":"b_41E9","k":"branch","len":1,"c":false},{"a":16922,"n":"b_421A","k":"branch","len":1,"c":false},{"a":16928,"n":"b_4220","k":"branch","len":1,"c":false},{"a":16931,"n":"j_4223","k":"branch","len":1,"c":false},{"a":16960,"n":"b_4240","k":"branch","len":1,"c":false},{"a":16989,"n":"b_425D","k":"branch","len":1,"c":false},{"a":17028,"n":"b_4284","k":"branch","len":1,"c":false},{"a":17054,"n":"b_429E","k":"branch","len":1,"c":false},{"a":17074,"n":"b_42B2","k":"branch","len":1,"c":false},{"a":17090,"n":"b_42C2","k":"branch","len":1,"c":false},{"a":17116,"n":"b_42DC","k":"branch","len":1,"c":false},{"a":17131,"n":"b_42EB","k":"branch","len":1,"c":false},{"a":17145,"n":"b_42F9","k":"branch","len":1,"c":false},{"a":17159,"n":"b_4307","k":"branch","len":1,"c":false},{"a":17162,"n":"j_430A","k":"branch","len":1,"c":false},{"a":17165,"n":"b_430D","k":"branch","len":1,"c":false},{"a":17169,"n":"channel_pointer","k":"routine","len":23,"c":true},{"a":17192,"n":"sound_used_less","k":"routine","len":10,"c":true},{"a":17201,"n":"r_4331","k":"branch","len":1,"c":false},{"a":17202,"n":"stop_music","k":"routine","len":33,"c":true},{"a":17220,"n":"b_4344","k":"branch","len":1,"c":false},{"a":17235,"n":"f_4353","k":"table","len":7,"c":true},{"a":17242,"n":"f_435A","k":"table","len":7,"c":true},{"a":17249,"n":"f_4361","k":"table","len":7,"c":true},{"a":17256,"n":"f_4368","k":"table","len":3,"c":true},{"a":17259,"n":"f_436B","k":"table","len":3,"c":true},{"a":17262,"n":"f_436E","k":"table","len":7,"c":true},{"a":17269,"n":"f_4375","k":"table","len":7,"c":true},{"a":17276,"n":"f_437C","k":"table","len":7,"c":true},{"a":17283,"n":"f_4383","k":"table","len":7,"c":true},{"a":17290,"n":"f_438A","k":"table","len":7,"c":true},{"a":17297,"n":"f_4391","k":"table","len":7,"c":true},{"a":17304,"n":"f_4398","k":"table","len":7,"c":true},{"a":17311,"n":"f_439F","k":"table","len":7,"c":true},{"a":17318,"n":"f_43A6","k":"table","len":7,"c":true},{"a":17325,"n":"f_43AD","k":"table","len":7,"c":true},{"a":17332,"n":"f_43B4","k":"table","len":7,"c":true},{"a":17339,"n":"f_43BB","k":"table","len":7,"c":true},{"a":17346,"n":"f_43C2","k":"table","len":7,"c":true},{"a":17353,"n":"f_43C9","k":"table","len":7,"c":true},{"a":17360,"n":"f_43D0","k":"table","len":7,"c":true},{"a":17367,"n":"f_43D7","k":"table","len":7,"c":true},{"a":17374,"n":"a_43DE","k":"variable","len":1,"c":true},{"a":17375,"n":"a_43DF","k":"variable","len":1,"c":true},{"a":17376,"n":"a_43E0","k":"variable","len":1,"c":true},{"a":17377,"n":"a_43E1","k":"variable","len":1,"c":true},{"a":17378,"n":"a_43E2","k":"variable","len":1,"c":true},{"a":17379,"n":"a_43E3","k":"variable","len":1,"c":true},{"a":17380,"n":"a_43E4","k":"variable","len":1,"c":true},{"a":17381,"n":"a_43E5","k":"variable","len":1,"c":true},{"a":17382,"n":"a_43E6","k":"variable","len":1,"c":true},{"a":17383,"n":"a_43E7","k":"variable","len":1,"c":true},{"a":17384,"n":"a_43E8","k":"variable","len":1,"c":true},{"a":17385,"n":"a_43E9","k":"variable","len":1,"c":true},{"a":17386,"n":"a_43EA","k":"variable","len":1,"c":true},{"a":17387,"n":"a_43EB","k":"variable","len":1,"c":true},{"a":17388,"n":"a_43EC","k":"variable","len":1,"c":true},{"a":17389,"n":"a_43ED","k":"variable","len":1,"c":true},{"a":17390,"n":"a_43EE","k":"variable","len":1,"c":true},{"a":17391,"n":"a_43EF","k":"variable","len":1,"c":true},{"a":17392,"n":"a_43F0","k":"variable","len":1,"c":true},{"a":17393,"n":"a_43F1","k":"variable","len":1,"c":true},{"a":17394,"n":"a_43F2","k":"variable","len":1,"c":true},{"a":17395,"n":"a_43F3","k":"variable","len":1,"c":true},{"a":17396,"n":"a_43F4","k":"variable","len":1,"c":true},{"a":17397,"n":"a_43F5","k":"variable","len":1,"c":true},{"a":17398,"n":"a_43F6","k":"variable","len":1,"c":true},{"a":17399,"n":"a_43F7","k":"variable","len":1,"c":true},{"a":17400,"n":"a_43F8","k":"variable","len":1,"c":true},{"a":17401,"n":"a_43F9","k":"variable","len":1,"c":true},{"a":17402,"n":"a_43FA","k":"variable","len":1,"c":true},{"a":17403,"n":"f_43FB","k":"table","len":10,"c":true},{"a":17413,"n":"a_4405","k":"variable","len":1,"c":true},{"a":17414,"n":"builtin_sound_3","k":"table","len":45,"c":true},{"a":17459,"n":"builtin_sound_4","k":"table","len":45,"c":true},{"a":17504,"n":"builtin_sound_5","k":"table","len":46,"c":true},{"a":17550,"n":"music_state","k":"table","len":18,"c":true},{"a":17568,"n":"a_44A0","k":"variable","len":1,"c":true},{"a":17569,"n":"a_44A1","k":"variable","len":1,"c":true},{"a":17570,"n":"a_44A2","k":"table","len":4,"c":true},{"a":17574,"n":"a_44A6","k":"table","len":17,"c":true},{"a":17591,"n":"a_44B7","k":"variable","len":1,"c":true},{"a":17592,"n":"music_lengths","k":"table","len":66,"c":true},{"a":17658,"n":"f_44FA","k":"table","len":4,"c":true},{"a":17662,"n":"f_44FE","k":"table","len":4,"c":true},{"a":17666,"n":"f_4502","k":"table","len":64,"c":true},{"a":17731,"n":"a_4543","k":"variable","len":1,"c":true},{"a":17732,"n":"a_4544","k":"variable","len":1,"c":true},{"a":17733,"n":"a_4545","k":"variable","len":1,"c":true},{"a":17734,"n":"merge_free_blocks","k":"routine","len":126,"c":true},{"a":17746,"n":"b_4552","k":"branch","len":1,"c":false},{"a":17780,"n":"b_4574","k":"branch","len":1,"c":false},{"a":17786,"n":"b_457A","k":"branch","len":1,"c":false},{"a":17845,"n":"b_45B5","k":"branch","len":1,"c":false},{"a":17850,"n":"b_45BA","k":"branch","len":1,"c":false},{"a":17857,"n":"j_45C1","k":"branch","len":1,"c":false},{"a":17859,"n":"r_45C3","k":"branch","len":1,"c":false},{"a":17860,"n":"a_45C4","k":"variable","len":1,"c":true},{"a":17861,"n":"a_45C5","k":"variable","len":1,"c":true},{"a":17862,"n":"a_45C6","k":"variable","len":1,"c":true},{"a":17863,"n":"a_45C7","k":"variable","len":1,"c":true},{"a":17864,"n":"a_45C8","k":"variable","len":1,"c":true},{"a":17865,"n":"a_45C9","k":"variable","len":1,"c":true},{"a":17866,"n":"sort_free_list","k":"routine","len":199,"c":true},{"a":17874,"n":"j_45D2","k":"branch","len":1,"c":false},{"a":17908,"n":"b_45F4","k":"branch","len":1,"c":false},{"a":17973,"n":"b_4635","k":"branch","len":1,"c":false},{"a":18034,"n":"b_4672","k":"branch","len":1,"c":false},{"a":18054,"n":"j_4686","k":"branch","len":1,"c":false},{"a":18065,"n":"a_4691","k":"variable","len":1,"c":true},{"a":18066,"n":"a_4692","k":"variable","len":1,"c":true},{"a":18067,"n":"a_4693","k":"variable","len":1,"c":true},{"a":18068,"n":"a_4694","k":"variable","len":1,"c":true},{"a":18069,"n":"a_4695","k":"variable","len":1,"c":true},{"a":18070,"n":"a_4696","k":"variable","len":1,"c":true},{"a":18071,"n":"a_4697","k":"variable","len":1,"c":true},{"a":18072,"n":"a_4698","k":"variable","len":1,"c":true},{"a":18073,"n":"find_free_block","k":"routine","len":184,"c":true},{"a":18109,"n":"b_46BD","k":"branch","len":1,"c":false},{"a":18137,"n":"b_46D9","k":"branch","len":1,"c":false},{"a":18215,"n":"b_4727","k":"branch","len":1,"c":false},{"a":18247,"n":"b_4747","k":"branch","len":1,"c":false},{"a":18257,"n":"a_4751","k":"variable","len":1,"c":true},{"a":18258,"n":"a_4752","k":"variable","len":1,"c":true},{"a":18259,"n":"alloc_hard","k":"routine","len":42,"c":true},{"a":18300,"n":"r_477C","k":"branch","len":1,"c":false},{"a":18301,"n":"block_link","k":"routine","len":10,"c":true},{"a":18311,"n":"take_block","k":"routine","len":153,"c":true},{"a":18402,"n":"b_47E2","k":"branch","len":1,"c":false},{"a":18439,"n":"j_4807","k":"branch","len":1,"c":false},{"a":18451,"n":"b_4813","k":"branch","len":1,"c":false},{"a":18463,"n":"r_481F","k":"branch","len":1,"c":false},{"a":18464,"n":"a_4820","k":"variable","len":1,"c":true},{"a":18465,"n":"a_4821","k":"variable","len":1,"c":true},{"a":18466,"n":"a_4822","k":"variable","len":1,"c":true},{"a":18467,"n":"a_4823","k":"variable","len":1,"c":true},{"a":18468,"n":"a_4824","k":"variable","len":1,"c":true},{"a":18469,"n":"a_4825","k":"variable","len":1,"c":true},{"a":18470,"n":"a_4826","k":"variable","len":1,"c":true},{"a":18471,"n":"a_4827","k":"variable","len":1,"c":true},{"a":18472,"n":"compact_heap","k":"routine","len":59,"c":true},{"a":18516,"n":"b_4854","k":"branch","len":1,"c":false},{"a":18531,"n":"move_used_blocks","k":"routine","len":160,"c":true},{"a":18571,"n":"b_488B","k":"branch","len":1,"c":false},{"a":18691,"n":"mark_sound_moving","k":"routine","len":9,"c":true},{"a":18700,"n":"clear_sound_moving","k":"routine","len":9,"c":true},{"a":18709,"n":"move_resource_address","k":"routine","len":104,"c":true},{"a":18724,"n":"b_4924","k":"branch","len":1,"c":false},{"a":18739,"n":"b_4933","k":"branch","len":1,"c":false},{"a":18754,"n":"b_4942","k":"branch","len":1,"c":false},{"a":18769,"n":"b_4951","k":"branch","len":1,"c":false},{"a":18784,"n":"b_4960","k":"branch","len":1,"c":false},{"a":18799,"n":"b_496F","k":"branch","len":1,"c":false},{"a":18807,"n":"j_4977","k":"branch","len":1,"c":false},{"a":18813,"n":"free_some_resource","k":"routine","len":85,"c":true},{"a":18824,"n":"b_4988","k":"branch","len":1,"c":false},{"a":18837,"n":"b_4995","k":"branch","len":1,"c":false},{"a":18847,"n":"b_499F","k":"branch","len":1,"c":false},{"a":18857,"n":"b_49A9","k":"branch","len":1,"c":false},{"a":18867,"n":"b_49B3","k":"branch","len":1,"c":false},{"a":18876,"n":"j_49BC","k":"branch","len":1,"c":false},{"a":18887,"n":"b_49C7","k":"branch","len":1,"c":false},{"a":18898,"n":"free_oldest_room","k":"routine","len":76,"c":true},{"a":18908,"n":"b_49DC","k":"branch","len":1,"c":false},{"a":18935,"n":"b_49F7","k":"branch","len":1,"c":false},{"a":18944,"n":"b_4A00","k":"branch","len":1,"c":false},{"a":18974,"n":"free_one_costume","k":"routine","len":50,"c":true},{"a":18976,"n":"b_4A20","k":"branch","len":1,"c":false},{"a":19020,"n":"b_4A4C","k":"branch","len":1,"c":false},{"a":19024,"n":"free_unused_sounds","k":"routine","len":53,"c":true},{"a":19026,"n":"b_4A52","k":"branch","len":1,"c":false},{"a":19073,"n":"b_4A81","k":"branch","len":1,"c":false},{"a":19077,"n":"free_unused_scripts","k":"routine","len":41,"c":true},{"a":19079,"n":"b_4A87","k":"branch","len":1,"c":false},{"a":19114,"n":"b_4AAA","k":"branch","len":1,"c":false},{"a":19118,"n":"copy_block","k":"routine","len":39,"c":true},{"a":19123,"n":"b_4AB3","k":"branch","len":1,"c":false},{"a":19132,"n":"b_4ABC","k":"branch","len":1,"c":false},{"a":19138,"n":"j_4AC2","k":"branch","len":1,"c":false},{"a":19140,"n":"b_4AC4","k":"branch","len":1,"c":false},{"a":19406,"n":"init_heap","k":"routine","len":24,"c":true},{"a":19430,"n":"fill_bytes","k":"routine","len":73,"c":true},{"a":19441,"n":"b_4BF1","k":"branch","len":1,"c":false},{"a":19447,"n":"b_4BF7","k":"branch","len":1,"c":false},{"a":19456,"n":"j_4C00","k":"branch","len":1,"c":false},{"a":19503,"n":"run_all_scripts","k":"routine","len":41,"c":true},{"a":19506,"n":"b_4C32","k":"branch","len":1,"c":false},{"a":19528,"n":"b_4C48","k":"branch","len":1,"c":false},{"a":19544,"n":"run_script_loop","k":"routine","len":29,"c":true},{"a":19550,"n":"b_4C5E","k":"branch","len":1,"c":false},{"a":19573,"n":"handler_call_lo","k":"routine","len":1,"c":true},{"a":19574,"n":"handler_call_hi","k":"routine","len":4,"c":true},{"a":19578,"n":"refresh_script_pointer","k":"routine","len":15,"c":true},{"a":19592,"n":"r_4C88","k":"branch","len":1,"c":false},{"a":19593,"n":"set_script_pointer","k":"routine","len":25,"c":true},{"a":19617,"n":"r_4CA1","k":"branch","len":1,"c":false},{"a":19618,"n":"save_script_offset","k":"routine","len":25,"c":true},{"a":19642,"n":"r_4CBA","k":"branch","len":1,"c":false},{"a":19643,"n":"fetch_script_word_skip","k":"routine","len":3,"c":true},{"a":19646,"n":"fetch_script_byte","k":"routine","len":1,"c":true},{"a":19647,"n":"script_byte_lo","k":"routine","len":1,"c":true},{"a":19648,"n":"script_byte_hi","k":"routine","len":10,"c":true},{"a":19657,"n":"r_4CC9","k":"branch","len":1,"c":false},{"a":19658,"n":"find_script_base","k":"routine","len":86,"c":true},{"a":19664,"n":"b_4CD0","k":"branch","len":1,"c":false},{"a":19693,"n":"b_4CED","k":"branch","len":1,"c":false},{"a":19699,"n":"b_4CF3","k":"branch","len":1,"c":false},{"a":19719,"n":"b_4D07","k":"branch","len":1,"c":false},{"a":19740,"n":"b_4D1C","k":"branch","len":1,"c":false},{"a":19744,"n":"fatal_error_stop","k":"routine","len":14,"c":true},{"a":19752,"n":"j_4D28","k":"branch","len":1,"c":false},{"a":19758,"n":"stop_current_slot","k":"routine","len":11,"c":true},{"a":19769,"n":"stop_room_scripts","k":"routine","len":20,"c":true},{"a":19771,"n":"b_4D3B","k":"branch","len":1,"c":false},{"a":19785,"n":"b_4D49","k":"branch","len":1,"c":false},{"a":19789,"n":"stop_script","k":"routine","len":82,"c":true},{"a":19794,"n":"b_4D52","k":"branch","len":1,"c":false},{"a":19835,"n":"b_4D7B","k":"branch","len":1,"c":false},{"a":19844,"n":"b_4D84","k":"branch","len":1,"c":false},{"a":19867,"n":"b_4D9B","k":"branch","len":1,"c":false},{"a":19870,"n":"r_4D9E","k":"branch","len":1,"c":false},{"a":19871,"n":"start_script","k":"routine","len":54,"c":true},{"a":19890,"n":"b_4DB2","k":"branch","len":1,"c":false},{"a":19925,"n":"find_free_slot","k":"routine","len":29,"c":true},{"a":19927,"n":"b_4DD7","k":"branch","len":1,"c":false},{"a":19935,"n":"b_4DDF","k":"branch","len":1,"c":false},{"a":19948,"n":"j_4DEC","k":"branch","len":1,"c":false},{"a":19954,"n":"run_nested","k":"routine","len":112,"c":true},{"a":19973,"n":"b_4E05","k":"branch","len":1,"c":false},{"a":19976,"n":"j_4E08","k":"branch","len":1,"c":false},{"a":20016,"n":"j_4E30","k":"branch","len":1,"c":false},{"a":20022,"n":"b_4E36","k":"branch","len":1,"c":false},{"a":20024,"n":"b_4E38","k":"branch","len":1,"c":false},{"a":20050,"n":"b_4E52","k":"branch","len":1,"c":false},{"a":20056,"n":"j_4E58","k":"branch","len":1,"c":false},{"a":20066,"n":"redraw_inventory_banked","k":"routine","len":22,"c":true},{"a":20088,"n":"clear_screen_buffers","k":"routine","len":43,"c":true},{"a":20131,"n":"compare_var_with_operand","k":"routine","len":29,"c":true},{"a":20159,"n":"r_4EBF","k":"branch","len":1,"c":false},{"a":20160,"n":"read_byte_operand_20","k":"routine","len":8,"c":true},{"a":20168,"n":"read_byte_operand_40","k":"routine","len":8,"c":true},{"a":20176,"n":"read_byte_operand_80","k":"routine","len":21,"c":true},{"a":20181,"n":"j_4ED5","k":"branch","len":1,"c":false},{"a":20197,"n":"read_var","k":"routine","len":31,"c":true},{"a":20207,"n":"b_4EEF","k":"branch","len":1,"c":false},{"a":20215,"n":"b_4EF7","k":"branch","len":1,"c":false},{"a":20227,"n":"r_4F03","k":"branch","len":1,"c":false},{"a":20228,"n":"read_word_operand_20","k":"routine","len":8,"c":true},{"a":20236,"n":"read_word_operand_40","k":"routine","len":8,"c":true},{"a":20244,"n":"read_word_operand_80","k":"routine","len":23,"c":true},{"a":20249,"n":"j_4F19","k":"branch","len":1,"c":false},{"a":20264,"n":"b_4F28","k":"branch","len":1,"c":false},{"a":20267,"n":"read_indirect_result","k":"routine","len":11,"c":true},{"a":20278,"n":"read_result_var","k":"routine","len":7,"c":true},{"a":20285,"n":"read_object_flags","k":"routine","len":3,"c":true},{"a":20288,"n":"read_object_byte","k":"routine","len":18,"c":true},{"a":20306,"n":"object_entry_lo","k":"routine","len":1,"c":true},{"a":20307,"n":"object_entry_hi","k":"routine","len":2,"c":true},{"a":20309,"n":"write_object_byte","k":"routine","len":15,"c":true},{"a":20324,"n":"object_store_lo","k":"routine","len":1,"c":true},{"a":20325,"n":"object_store_hi","k":"routine","len":2,"c":true},{"a":20327,"n":"set_result_byte","k":"routine","len":11,"c":true},{"a":20338,"n":"find_free_inventory_slot","k":"routine","len":35,"c":true},{"a":20340,"n":"b_4F74","k":"branch","len":1,"c":false},{"a":20353,"n":"r_4F81","k":"branch","len":1,"c":false},{"a":20354,"n":"b_4F82","k":"branch","len":1,"c":false},{"a":20367,"n":"j_4F8F","k":"branch","len":1,"c":false},{"a":20373,"n":"actor_distance","k":"routine","len":85,"c":true},{"a":20391,"n":"b_4FA7","k":"branch","len":1,"c":false},{"a":20415,"n":"b_4FBF","k":"branch","len":1,"c":false},{"a":20437,"n":"b_4FD5","k":"branch","len":1,"c":false},{"a":20451,"n":"b_4FE3","k":"branch","len":1,"c":false},{"a":20457,"n":"r_4FE9","k":"branch","len":1,"c":false},{"a":20458,"n":"count_script_delays","k":"routine","len":33,"c":true},{"a":20460,"n":"b_4FEC","k":"branch","len":1,"c":false},{"a":20487,"n":"b_5007","k":"branch","len":1,"c":false},{"a":20491,"n":"op_begin_override","k":"routine","len":32,"c":true},{"a":20523,"n":"op_jump_relative","k":"routine","len":28,"c":true},{"a":20551,"n":"op_stop_object_code","k":"routine","len":30,"c":true},{"a":20570,"n":"b_505A","k":"branch","len":1,"c":false},{"a":20575,"n":"j_505F","k":"branch","len":1,"c":false},{"a":20581,"n":"op_wait_for_message","k":"routine","len":26,"c":true},{"a":20606,"n":"r_507E","k":"branch","len":1,"c":false},{"a":20607,"n":"op_wait_for_sentence","k":"routine","len":36,"c":true},{"a":20622,"n":"b_508E","k":"branch","len":1,"c":false},{"a":20643,"n":"op_wait_for_actor","k":"routine","len":43,"c":true},{"a":20685,"n":"r_50CD","k":"branch","len":1,"c":false},{"a":20686,"n":"op_break_here","k":"routine","len":9,"c":true},{"a":20695,"n":"op_assign_var_word_indirect","k":"routine","len":6,"c":true},{"a":20701,"n":"op_set_var_range","k":"routine","len":52,"c":true},{"a":20711,"n":"b_50E7","k":"branch","len":1,"c":false},{"a":20729,"n":"b_50F9","k":"branch","len":1,"c":false},{"a":20738,"n":"j_5102","k":"branch","len":1,"c":false},{"a":20753,"n":"op_assign_var_byte","k":"routine","len":9,"c":true},{"a":20762,"n":"op_move","k":"routine","len":6,"c":true},{"a":20765,"n":"j_511D","k":"branch","len":1,"c":false},{"a":20768,"n":"store_result","k":"routine","len":16,"c":true},{"a":20784,"n":"op_increment","k":"routine","len":16,"c":true},{"a":20800,"n":"op_decrement","k":"routine","len":16,"c":true},{"a":20816,"n":"op_add_indirect","k":"routine","len":6,"c":true},{"a":20822,"n":"op_sub_indirect","k":"routine","len":6,"c":true},{"a":20828,"n":"op_add","k":"routine","len":32,"c":true},{"a":20831,"n":"j_515F","k":"branch","len":1,"c":false},{"a":20834,"n":"j_5162","k":"branch","len":1,"c":false},{"a":20860,"n":"op_subtract","k":"routine","len":32,"c":true},{"a":20863,"n":"j_517F","k":"branch","len":1,"c":false},{"a":20866,"n":"j_5182","k":"branch","len":1,"c":false},{"a":20892,"n":"op_equal_zero","k":"routine","len":18,"c":true},{"a":20906,"n":"b_51AA","k":"branch","len":1,"c":false},{"a":20910,"n":"op_not_equal_zero","k":"routine","len":18,"c":true},{"a":20924,"n":"b_51BC","k":"branch","len":1,"c":false},{"a":20928,"n":"op_is_less_equal","k":"routine","len":11,"c":true},{"a":20936,"n":"b_51C8","k":"branch","len":1,"c":false},{"a":20939,"n":"op_is_greater_equal","k":"routine","len":13,"c":true},{"a":20949,"n":"b_51D5","k":"branch","len":1,"c":false},{"a":20952,"n":"op_is_less","k":"routine","len":13,"c":true},{"a":20959,"n":"b_51DF","k":"branch","len":1,"c":false},{"a":20962,"n":"b_51E2","k":"branch","len":1,"c":false},{"a":20965,"n":"op_is_greater","k":"routine","len":11,"c":true},{"a":20973,"n":"b_51ED","k":"branch","len":1,"c":false},{"a":20976,"n":"op_is_not_equal","k":"routine","len":11,"c":true},{"a":20984,"n":"b_51F8","k":"branch","len":1,"c":false},{"a":20987,"n":"op_is_equal","k":"routine","len":11,"c":true},{"a":20995,"n":"b_5203","k":"branch","len":1,"c":false},{"a":20998,"n":"op_if_class_of_is","k":"routine","len":45,"c":true},{"a":21026,"n":"b_5222","k":"branch","len":1,"c":false},{"a":21039,"n":"b_522F","k":"branch","len":1,"c":false},{"a":21043,"n":"op_stop_script","k":"routine","len":41,"c":true},{"a":21058,"n":"b_5242","k":"branch","len":1,"c":false},{"a":21078,"n":"b_5256","k":"branch","len":1,"c":false},{"a":21084,"n":"op_start_script","k":"routine","len":7,"c":true},{"a":21091,"n":"op_chain_script","k":"routine","len":23,"c":true},{"a":21114,"n":"if_state_set_common","k":"routine","len":15,"c":true},{"a":21126,"n":"b_5286","k":"branch","len":1,"c":false},{"a":21129,"n":"if_state_clear_common","k":"routine","len":15,"c":true},{"a":21141,"n":"b_5295","k":"branch","len":1,"c":false},{"a":21144,"n":"op_if_state_80_clear","k":"routine","len":4,"c":true},{"a":21148,"n":"op_if_state_80_set","k":"routine","len":4,"c":true},{"a":21152,"n":"op_if_state_40_clear","k":"routine","len":4,"c":true},{"a":21156,"n":"op_if_state_40_set","k":"routine","len":4,"c":true},{"a":21160,"n":"op_if_state_20_set","k":"routine","len":4,"c":true},{"a":21164,"n":"op_if_state_20_clear","k":"routine","len":4,"c":true},{"a":21168,"n":"op_if_state_10_clear","k":"routine","len":4,"c":true},{"a":21172,"n":"op_if_state_10_set","k":"routine","len":4,"c":true},{"a":21176,"n":"clear_state_common","k":"routine","len":11,"c":true},{"a":21187,"n":"set_state_common","k":"routine","len":11,"c":true},{"a":21198,"n":"op_set_state_80","k":"routine","len":14,"c":true},{"a":21212,"n":"op_clear_state_80","k":"routine","len":14,"c":true},{"a":21226,"n":"op_set_state_40","k":"routine","len":4,"c":true},{"a":21230,"n":"op_clear_state_40","k":"routine","len":4,"c":true},{"a":21234,"n":"op_set_state_20","k":"routine","len":4,"c":true},{"a":21238,"n":"op_clear_state_20","k":"routine","len":4,"c":true},{"a":21242,"n":"op_set_state_10","k":"routine","len":4,"c":true},{"a":21246,"n":"op_clear_state_10","k":"routine","len":4,"c":true},{"a":21250,"n":"op_draw_object","k":"routine","len":189,"c":true},{"a":21289,"n":"b_5329","k":"branch","len":1,"c":false},{"a":21336,"n":"b_5358","k":"branch","len":1,"c":false},{"a":21369,"n":"b_5379","k":"branch","len":1,"c":false},{"a":21417,"n":"b_53A9","k":"branch","len":1,"c":false},{"a":21438,"n":"r_53BE","k":"branch","len":1,"c":false},{"a":21439,"n":"op_pickup_object","k":"routine","len":155,"c":true},{"a":21464,"n":"b_53D8","k":"branch","len":1,"c":false},{"a":21516,"n":"b_540C","k":"branch","len":1,"c":false},{"a":21594,"n":"op_pseudo_room","k":"routine","len":24,"c":true},{"a":21599,"n":"j_545F","k":"branch","len":1,"c":false},{"a":21607,"n":"b_5467","k":"branch","len":1,"c":false},{"a":21615,"n":"b_546F","k":"branch","len":1,"c":false},{"a":21618,"n":"op_load_room","k":"routine","len":27,"c":true},{"a":21636,"n":"b_5484","k":"branch","len":1,"c":false},{"a":21645,"n":"op_load_room_with_ego","k":"routine","len":102,"c":true},{"a":21664,"n":"b_54A0","k":"branch","len":1,"c":false},{"a":21738,"n":"j_54EA","k":"branch","len":1,"c":false},{"a":21747,"n":"place_actor_at_object","k":"routine","len":98,"c":true},{"a":21777,"n":"b_5511","k":"branch","len":1,"c":false},{"a":21839,"n":"b_554F","k":"branch","len":1,"c":false},{"a":21844,"n":"r_5554","k":"branch","len":1,"c":false},{"a":21845,"n":"decode_bit_var","k":"routine","len":83,"c":true},{"a":21872,"n":"b_5570","k":"branch","len":1,"c":false},{"a":21895,"n":"b_5587","k":"branch","len":1,"c":false},{"a":21903,"n":"j_558F","k":"branch","len":1,"c":false},{"a":21928,"n":"op_set_bit_var","k":"routine","len":40,"c":true},{"a":21957,"n":"b_55C5","k":"branch","len":1,"c":false},{"a":21965,"n":"j_55CD","k":"branch","len":1,"c":false},{"a":21968,"n":"op_get_bit_var","k":"routine","len":32,"c":true},{"a":21996,"n":"b_55EC","k":"branch","len":1,"c":false},{"a":22000,"n":"op_get_object_owner","k":"routine","len":12,"c":true},{"a":22012,"n":"op_set_owner_of","k":"routine","len":41,"c":true},{"a":22041,"n":"b_5619","k":"branch","len":1,"c":false},{"a":22053,"n":"remove_from_inventory","k":"routine","len":25,"c":true},{"a":22055,"n":"b_5627","k":"branch","len":1,"c":false},{"a":22074,"n":"b_563A","k":"branch","len":1,"c":false},{"a":22078,"n":"free_inventory_slot","k":"routine","len":30,"c":true},{"a":22107,"n":"r_565B","k":"branch","len":1,"c":false},{"a":22108,"n":"op_print_ego","k":"routine","len":6,"c":true},{"a":22114,"n":"print_message_common","k":"routine","len":24,"c":true},{"a":22138,"n":"op_print","k":"routine","len":9,"c":true},{"a":22147,"n":"op_get_dist","k":"routine","len":40,"c":true},{"a":22187,"n":"op_get_closest_obj_actor","k":"routine","len":74,"c":true},{"a":22226,"n":"b_56D2","k":"branch","len":1,"c":false},{"a":22243,"n":"b_56E3","k":"branch","len":1,"c":false},{"a":22261,"n":"op_get_random_nr","k":"routine","len":14,"c":true},{"a":22275,"n":"op_get_actor_moving","k":"routine","len":25,"c":true},{"a":22292,"n":"b_5714","k":"branch","len":1,"c":false},{"a":22296,"n":"j_5718","k":"branch","len":1,"c":false},{"a":22300,"n":"op_is_sound_running","k":"routine","len":16,"c":true},{"a":22316,"n":"op_is_script_running","k":"routine","len":38,"c":true},{"a":22326,"n":"b_5736","k":"branch","len":1,"c":false},{"a":22345,"n":"b_5749","k":"branch","len":1,"c":false},{"a":22350,"n":"j_574E","k":"branch","len":1,"c":false},{"a":22354,"n":"op_delay_variable","k":"routine","len":39,"c":true},{"a":22393,"n":"op_delay","k":"routine","len":29,"c":true},{"a":22422,"n":"op_stop_sound","k":"routine","len":15,"c":true},{"a":22437,"n":"op_start_music","k":"routine","len":23,"c":true},{"a":22460,"n":"op_start_sound","k":"routine","len":3,"c":true},{"a":22463,"n":"start_sound","k":"routine","len":50,"c":true},{"a":22513,"n":"op_walk_actor_to_object","k":"routine","len":28,"c":true},{"a":22540,"n":"r_580C","k":"branch","len":1,"c":false},{"a":22541,"n":"op_put_actor_at_object","k":"routine","len":52,"c":true},{"a":22568,"n":"b_5828","k":"branch","len":1,"c":false},{"a":22578,"n":"j_5832","k":"branch","len":1,"c":false},{"a":22593,"n":"op_walk_actor_to_actor","k":"routine","len":49,"c":true},{"a":22608,"n":"b_5850","k":"branch","len":1,"c":false},{"a":22621,"n":"b_585D","k":"branch","len":1,"c":false},{"a":22642,"n":"op_walk_actor_to","k":"routine","len":26,"c":true},{"a":22668,"n":"op_set_actor_elevation","k":"routine","len":26,"c":true},{"a":22693,"n":"r_58A5","k":"branch","len":1,"c":false},{"a":22694,"n":"op_put_actor","k":"routine","len":32,"c":true},{"a":22726,"n":"op_put_actor_in_room","k":"routine","len":35,"c":true},{"a":22757,"n":"b_58E5","k":"branch","len":1,"c":false},{"a":22761,"n":"op_set_obj_preposition","k":"routine","len":35,"c":true},{"a":22795,"n":"r_590B","k":"branch","len":1,"c":false},{"a":22796,"n":"op_get_obj_preposition","k":"routine","len":23,"c":true},{"a":22819,"n":"op_do_sentence","k":"routine","len":13,"c":true},{"a":22832,"n":"clear_sentence_queue","k":"routine","len":153,"c":true},{"a":22842,"n":"b_593A","k":"branch","len":1,"c":false},{"a":22852,"n":"b_5944","k":"branch","len":1,"c":false},{"a":22941,"n":"b_599D","k":"branch","len":1,"c":false},{"a":22984,"n":"r_59C8","k":"branch","len":1,"c":false},{"a":22985,"n":"op_draw_sentence","k":"routine","len":4,"c":true},{"a":22989,"n":"run_verb_script","k":"routine","len":173,"c":true},{"a":23003,"n":"b_59DB","k":"branch","len":1,"c":false},{"a":23020,"n":"b_59EC","k":"branch","len":1,"c":false},{"a":23038,"n":"b_59FE","k":"branch","len":1,"c":false},{"a":23054,"n":"b_5A0E","k":"branch","len":1,"c":false},{"a":23056,"n":"b_5A10","k":"branch","len":1,"c":false},{"a":23073,"n":"b_5A21","k":"branch","len":1,"c":false},{"a":23079,"n":"j_5A27","k":"branch","len":1,"c":false},{"a":23158,"n":"b_5A76","k":"branch","len":1,"c":false},{"a":23161,"n":"r_5A79","k":"branch","len":1,"c":false},{"a":23162,"n":"a_5A7A","k":"variable","len":1,"c":true},{"a":23163,"n":"find_verb_entry","k":"routine","len":30,"c":true},{"a":23168,"n":"b_5A80","k":"branch","len":1,"c":false},{"a":23177,"n":"b_5A89","k":"branch","len":1,"c":false},{"a":23184,"n":"b_5A90","k":"branch","len":1,"c":false},{"a":23189,"n":"j_5A95","k":"branch","len":1,"c":false},{"a":23193,"n":"stop_object_scripts","k":"routine","len":27,"c":true},{"a":23195,"n":"b_5A9B","k":"branch","len":1,"c":false},{"a":23216,"n":"b_5AB0","k":"branch","len":1,"c":false},{"a":23220,"n":"freeze_scripts","k":"routine","len":33,"c":true},{"a":23222,"n":"b_5AB6","k":"branch","len":1,"c":false},{"a":23249,"n":"b_5AD1","k":"branch","len":1,"c":false},{"a":23253,"n":"unfreeze_scripts","k":"routine","len":14,"c":true},{"a":23255,"n":"b_5AD7","k":"branch","len":1,"c":false},{"a":23267,"n":"op_cutscene","k":"routine","len":59,"c":true},{"a":23326,"n":"op_end_cutscene","k":"routine","len":51,"c":true},{"a":23377,"n":"op_set_camera_at","k":"routine","len":12,"c":true},{"a":23389,"n":"op_pan_camera_to","k":"routine","len":12,"c":true},{"a":23401,"n":"op_actor_follow_camera","k":"routine","len":3,"c":true},{"a":23404,"n":"camera_follow_actor_refresh","k":"routine","len":7,"c":true},{"a":23411,"n":"camera_follow_actor","k":"routine","len":69,"c":true},{"a":23451,"n":"b_5B9B","k":"branch","len":1,"c":false},{"a":23465,"n":"b_5BA9","k":"branch","len":1,"c":false},{"a":23476,"n":"b_5BB4","k":"branch","len":1,"c":false},{"a":23480,"n":"op_cursor_command","k":"routine","len":22,"c":true},{"a":23500,"n":"b_5BCC","k":"branch","len":1,"c":false},{"a":23502,"n":"set_user_state","k":"routine","len":129,"c":true},{"a":23526,"n":"b_5BE6","k":"branch","len":1,"c":false},{"a":23544,"n":"b_5BF8","k":"branch","len":1,"c":false},{"a":23547,"n":"b_5BFB","k":"branch","len":1,"c":false},{"a":23588,"n":"b_5C24","k":"branch","len":1,"c":false},{"a":23596,"n":"b_5C2C","k":"branch","len":1,"c":false},{"a":23631,"n":"clear_interface_rows","k":"routine","len":22,"c":true},{"a":23653,"n":"reset_sentence","k":"routine","len":24,"c":true},{"a":23677,"n":"op_get_actor_costume","k":"routine","len":14,"c":true},{"a":23691,"n":"op_get_actor_room","k":"routine","len":14,"c":true},{"a":23705,"n":"op_get_actor_x","k":"routine","len":25,"c":true},{"a":23723,"n":"b_5CAB","k":"branch","len":1,"c":false},{"a":23726,"n":"j_5CAE","k":"branch","len":1,"c":false},{"a":23730,"n":"op_get_actor_y","k":"routine","len":25,"c":true},{"a":23748,"n":"b_5CC4","k":"branch","len":1,"c":false},{"a":23751,"n":"j_5CC7","k":"branch","len":1,"c":false},{"a":23755,"n":"op_get_actor_elevation","k":"routine","len":14,"c":true},{"a":23769,"n":"op_get_actor_walk_box","k":"routine","len":24,"c":true},{"a":23786,"n":"b_5CEA","k":"branch","len":1,"c":false},{"a":23789,"n":"j_5CED","k":"branch","len":1,"c":false},{"a":23793,"n":"op_get_actor_facing","k":"routine","len":14,"c":true},{"a":23807,"n":"op_face_actor","k":"routine","len":92,"c":true},{"a":23832,"n":"b_5D18","k":"branch","len":1,"c":false},{"a":23850,"n":"b_5D2A","k":"branch","len":1,"c":false},{"a":23852,"n":"j_5D2C","k":"branch","len":1,"c":false},{"a":23863,"n":"b_5D37","k":"branch","len":1,"c":false},{"a":23869,"n":"b_5D3D","k":"branch","len":1,"c":false},{"a":23885,"n":"b_5D4D","k":"branch","len":1,"c":false},{"a":23887,"n":"j_5D4F","k":"branch","len":1,"c":false},{"a":23890,"n":"b_5D52","k":"branch","len":1,"c":false},{"a":23899,"n":"op_animate_actor","k":"routine","len":129,"c":true},{"a":23944,"n":"r_5D88","k":"branch","len":1,"c":false},{"a":23945,"n":"b_5D89","k":"branch","len":1,"c":false},{"a":23949,"n":"j_5D8D","k":"branch","len":1,"c":false},{"a":23964,"n":"b_5D9C","k":"branch","len":1,"c":false},{"a":23975,"n":"b_5DA7","k":"branch","len":1,"c":false},{"a":23994,"n":"b_5DBA","k":"branch","len":1,"c":false},{"a":24011,"n":"b_5DCB","k":"branch","len":1,"c":false},{"a":24028,"n":"op_lights","k":"routine","len":119,"c":true},{"a":24053,"n":"b_5DF5","k":"branch","len":1,"c":false},{"a":24099,"n":"j_5E23","k":"branch","len":1,"c":false},{"a":24113,"n":"b_5E31","k":"branch","len":1,"c":false},{"a":24127,"n":"b_5E3F","k":"branch","len":1,"c":false},{"a":24131,"n":"j_5E43","k":"branch","len":1,"c":false},{"a":24147,"n":"op_set_object_name","k":"routine","len":28,"c":true},{"a":24161,"n":"b_5E61","k":"branch","len":1,"c":false},{"a":24175,"n":"op_save_load_game","k":"routine","len":37,"c":true},{"a":24199,"n":"b_5E87","k":"branch","len":1,"c":false},{"a":24202,"n":"j_5E8A","k":"branch","len":1,"c":false},{"a":24212,"n":"op_stop_music","k":"routine","len":4,"c":true},{"a":24216,"n":"op_resource_routines","k":"routine","len":175,"c":true},{"a":24235,"n":"b_5EAB","k":"branch","len":1,"c":false},{"a":24242,"n":"b_5EB2","k":"branch","len":1,"c":false},{"a":24262,"n":"b_5EC6","k":"branch","len":1,"c":false},{"a":24279,"n":"b_5ED7","k":"branch","len":1,"c":false},{"a":24291,"n":"b_5EE3","k":"branch","len":1,"c":false},{"a":24303,"n":"b_5EEF","k":"branch","len":1,"c":false},{"a":24315,"n":"b_5EFB","k":"branch","len":1,"c":false},{"a":24330,"n":"b_5F0A","k":"branch","len":1,"c":false},{"a":24337,"n":"j_5F11","k":"branch","len":1,"c":false},{"a":24356,"n":"b_5F24","k":"branch","len":1,"c":false},{"a":24368,"n":"b_5F30","k":"branch","len":1,"c":false},{"a":24379,"n":"b_5F3B","k":"branch","len":1,"c":false},{"a":24390,"n":"r_5F46","k":"branch","len":1,"c":false},{"a":24391,"n":"compare_x_steps","k":"routine","len":19,"c":true},{"a":24397,"n":"b_5F4D","k":"branch","len":1,"c":false},{"a":24401,"n":"b_5F51","k":"branch","len":1,"c":false},{"a":24405,"n":"b_5F55","k":"branch","len":1,"c":false},{"a":24409,"n":"r_5F59","k":"branch","len":1,"c":false},{"a":24410,"n":"op_restart","k":"routine","len":17,"c":true},{"a":24427,"n":"op_dummy","k":"routine","len":1,"c":true},{"a":24428,"n":"op_video_off","k":"routine","len":4,"c":true},{"a":24432,"n":"op_video_on","k":"routine","len":4,"c":true},{"a":24436,"n":"op_set_box_flags","k":"routine","len":18,"c":true},{"a":24454,"n":"op_verb_ops","k":"routine","len":114,"c":true},{"a":24488,"n":"b_5FA8","k":"branch","len":1,"c":false},{"a":24568,"n":"free_name_block","k":"routine","len":33,"c":true},{"a":24600,"n":"r_6018","k":"branch","len":1,"c":false},{"a":24601,"n":"copy_name_to_heap","k":"routine","len":143,"c":true},{"a":24619,"n":"b_602B","k":"branch","len":1,"c":false},{"a":24689,"n":"b_6071","k":"branch","len":1,"c":false},{"a":24728,"n":"b_6098","k":"branch","len":1,"c":false},{"a":24743,"n":"r_60A7","k":"branch","len":1,"c":false},{"a":24744,"n":"op_room_ops","k":"routine","len":51,"c":true},{"a":24772,"n":"b_60C4","k":"branch","len":1,"c":false},{"a":24794,"n":"r_60DA","k":"branch","len":1,"c":false},{"a":24795,"n":"op_actor_ops","k":"routine","len":117,"c":true},{"a":24820,"n":"b_60F4","k":"branch","len":1,"c":false},{"a":24845,"n":"r_610D","k":"branch","len":1,"c":false},{"a":24846,"n":"b_610E","k":"branch","len":1,"c":false},{"a":24862,"n":"b_611E","k":"branch","len":1,"c":false},{"a":24889,"n":"b_6139","k":"branch","len":1,"c":false},{"a":24896,"n":"j_6140","k":"branch","len":1,"c":false},{"a":24900,"n":"b_6144","k":"branch","len":1,"c":false},{"a":24911,"n":"r_614F","k":"branch","len":1,"c":false},{"a":24912,"n":"op_actor_from_pos","k":"routine","len":23,"c":true},{"a":24935,"n":"op_find_object","k":"routine","len":28,"c":true},{"a":24963,"n":"op_music_memory","k":"routine","len":18,"c":true},{"a":24973,"n":"b_618D","k":"branch","len":1,"c":false},{"a":24980,"n":"r_6194","k":"branch","len":1,"c":false},{"a":24981,"n":"op_fatal_12","k":"routine","len":90,"c":true},{"a":24989,"n":"j_619D","k":"branch","len":1,"c":false},{"a":24995,"n":"j_61A3","k":"branch","len":1,"c":false},{"a":25035,"n":"j_61CB","k":"branch","len":1,"c":false},{"a":25041,"n":"b_61D1","k":"branch","len":1,"c":false},{"a":25071,"n":"a_61EF","k":"variable","len":1,"c":true},{"a":25072,"n":"music_memory_free","k":"routine","len":36,"c":true},{"a":25151,"n":"f_623F","k":"table","len":8,"c":true},{"a":25162,"n":"opcode_hook","k":"routine","len":1,"c":true},{"a":25163,"n":"scripts_hook","k":"routine","len":1,"c":true},{"a":30677,"n":"a_77D5","k":"variable","len":1,"c":true},{"a":30678,"n":"a_77D6","k":"variable","len":1,"c":true},{"a":30679,"n":"a_77D7","k":"variable","len":1,"c":true},{"a":30680,"n":"a_77D8","k":"table","len":64,"c":true},{"a":31833,"n":"send_drive_program","k":"routine","len":124,"c":true},{"a":31916,"n":"b_7CAC","k":"branch","len":1,"c":false},{"a":31921,"n":"b_7CB1","k":"branch","len":1,"c":false},{"a":31957,"n":"open_command_channel","k":"routine","len":21,"c":true},{"a":31978,"n":"send_u3","k":"routine","len":21,"c":true},{"a":31999,"n":"send_mw","k":"routine","len":36,"c":true},{"a":32035,"n":"send_i0","k":"routine","len":21,"c":true},{"a":32056,"n":"next_32_bytes","k":"routine","len":27,"c":true},{"a":32083,"n":"close_command_channel","k":"routine","len":8,"c":true},{"a":32091,"n":"set_serial_lines","k":"routine","len":32,"c":true},{"a":32115,"n":"b_7D73","k":"branch","len":1,"c":false},{"a":32587,"n":"setup_machine","k":"routine","len":178,"c":true},{"a":32765,"n":"copy_bytes","k":"routine","len":223,"c":true},{"a":32777,"n":"b_8009","k":"branch","len":1,"c":false},{"a":32783,"n":"b_800F","k":"branch","len":1,"c":false},{"a":32789,"n":"b_8015","k":"branch","len":1,"c":false},{"a":32798,"n":"j_801E","k":"branch","len":1,"c":false},{"a":32988,"n":"clear_zero_page","k":"routine","len":11,"c":true},{"a":32992,"n":"b_80E0","k":"branch","len":1,"c":false},{"a":32999,"n":"clear_variables_high","k":"routine","len":24,"c":true},{"a":33023,"n":"fill_x_bytes","k":"routine","len":27,"c":true},{"a":33034,"n":"b_810A","k":"branch","len":1,"c":false},{"a":33040,"n":"b_8110","k":"branch","len":1,"c":false},{"a":33049,"n":"r_8119","k":"branch","len":1,"c":false},{"a":33050,"n":"setup_colours","k":"routine","len":24,"c":true},{"a":33074,"n":"setup_sprites","k":"routine","len":60,"c":true},{"a":33134,"n":"clear_input","k":"routine","len":10,"c":true},{"a":33144,"n":"clear_screens","k":"routine","len":82,"c":true},{"a":33213,"n":"b_81BD","k":"branch","len":1,"c":false},{"a":33226,"n":"setup_sprite_columns","k":"routine","len":28,"c":true},{"a":33243,"n":"b_81DB","k":"branch","len":1,"c":false},{"a":33254,"n":"init_game","k":"routine","len":85,"c":true},{"a":33298,"n":"b_8212","k":"branch","len":1,"c":false},{"a":33313,"n":"b_8221","k":"branch","len":1,"c":false},{"a":33331,"n":"b_8233","k":"branch","len":1,"c":false},{"a":51920,"n":"move_camera","k":"routine","len":178,"c":true},{"a":51937,"n":"b_CAE1","k":"branch","len":1,"c":false},{"a":51950,"n":"j_CAEE","k":"branch","len":1,"c":false},{"a":51984,"n":"b_CB10","k":"branch","len":1,"c":false},{"a":51997,"n":"b_CB1D","k":"branch","len":1,"c":false},{"a":52011,"n":"b_CB2B","k":"branch","len":1,"c":false},{"a":52027,"n":"b_CB3B","k":"branch","len":1,"c":false},{"a":52041,"n":"b_CB49","k":"branch","len":1,"c":false},{"a":52048,"n":"j_CB50","k":"branch","len":1,"c":false},{"a":52060,"n":"b_CB5C","k":"branch","len":1,"c":false},{"a":52082,"n":"b_CB72","k":"branch","len":1,"c":false},{"a":52098,"n":"set_camera_at","k":"routine","len":62,"c":true},{"a":52113,"n":"b_CB91","k":"branch","len":1,"c":false},{"a":52124,"n":"b_CB9C","k":"branch","len":1,"c":false},{"a":52143,"n":"b_CBAF","k":"branch","len":1,"c":false},{"a":52159,"n":"r_CBBF","k":"branch","len":1,"c":false},{"a":52160,"n":"view_left","k":"variable","len":1,"c":true},{"a":52161,"n":"view_right","k":"variable","len":1,"c":true},{"a":52162,"n":"camera_x","k":"variable","len":1,"c":true},{"a":52163,"n":"camera_drawn","k":"variable","len":1,"c":true},{"a":52164,"n":"a_CBC4","k":"variable","len":1,"c":true},{"a":52165,"n":"a_CBC5","k":"variable","len":1,"c":true},{"a":52166,"n":"a_CBC6","k":"variable","len":1,"c":true},{"a":52167,"n":"a_CBC7","k":"variable","len":1,"c":true},{"a":52168,"n":"camera_target","k":"variable","len":2,"c":true},{"a":52223,"n":"a_CBFF","k":"variable","len":1,"c":true},{"a":53248,"n":"opcode_handler_high","k":"table","len":256,"c":true},{"a":53504,"n":"opcode_handler_low","k":"table","len":256,"c":true},{"a":53760,"n":"mirror_table","k":"table","len":272,"c":true},{"a":54032,"n":"sprite_row_high","k":"variable","len":1,"c":true},{"a":54033,"n":"sprite_row_high_from_1","k":"table","len":159,"c":true},{"a":54192,"n":"sprite_row_low","k":"variable","len":1,"c":true},{"a":54193,"n":"sprite_row_low_from_1","k":"table","len":143,"c":true},{"a":54336,"n":"f_D440","k":"table","len":25,"c":true},{"a":54361,"n":"f_D459","k":"table","len":25,"c":true},{"a":54386,"n":"alloc_block","k":"routine","len":14,"c":true},{"a":54399,"n":"r_D47F","k":"branch","len":1,"c":false},{"a":54400,"n":"free_block","k":"routine","len":54,"c":true},{"a":54456,"n":"a_D4B8","k":"variable","len":1,"c":true},{"a":54457,"n":"a_D4B9","k":"variable","len":1,"c":true},{"a":54458,"n":"a_D4BA","k":"variable","len":2,"c":true},{"a":54460,"n":"a_D4BC","k":"variable","len":1,"c":true},{"a":54461,"n":"a_D4BD","k":"variable","len":1,"c":true},{"a":54462,"n":"load_resource","k":"routine","len":215,"c":true},{"a":54504,"n":"b_D4E8","k":"branch","len":1,"c":false},{"a":54527,"n":"b_D4FF","k":"branch","len":1,"c":false},{"a":54537,"n":"j_D509","k":"branch","len":1,"c":false},{"a":54541,"n":"j_D50D","k":"branch","len":1,"c":false},{"a":54621,"n":"b_D55D","k":"branch","len":1,"c":false},{"a":54635,"n":"b_D56B","k":"branch","len":1,"c":false},{"a":54641,"n":"b_D571","k":"branch","len":1,"c":false},{"a":54674,"n":"b_D592","k":"branch","len":1,"c":false},{"a":54677,"n":"write_block_header","k":"routine","len":35,"c":true},{"a":54712,"n":"check_side","k":"routine","len":79,"c":true},{"a":54767,"n":"j_D5EF","k":"branch","len":1,"c":false},{"a":54776,"n":"b_D5F8","k":"branch","len":1,"c":false},{"a":54782,"n":"j_D5FE","k":"branch","len":1,"c":false},{"a":54791,"n":"resource_number","k":"variable","len":1,"c":true},{"a":54792,"n":"resource_type","k":"variable","len":1,"c":true},{"a":54793,"n":"resource_offset","k":"variable","len":1,"c":true},{"a":54794,"n":"a_D60A","k":"variable","len":1,"c":true},{"a":54795,"n":"a_D60B","k":"variable","len":1,"c":true},{"a":54796,"n":"iris_closing","k":"table","len":9,"c":true},{"a":54805,"n":"iris_opening","k":"table","len":9,"c":true},{"a":54814,"n":"close_room","k":"routine","len":39,"c":true},{"a":54848,"n":"b_D640","k":"branch","len":1,"c":false},{"a":54853,"n":"open_room","k":"routine","len":14,"c":true},{"a":54867,"n":"iris_screens","k":"routine","len":97,"c":true},{"a":54888,"n":"b_D668","k":"branch","len":1,"c":false},{"a":54899,"n":"b_D673","k":"branch","len":1,"c":false},{"a":54924,"n":"b_D68C","k":"branch","len":1,"c":false},{"a":54940,"n":"j_D69C","k":"branch","len":1,"c":false},{"a":54947,"n":"j_D6A3","k":"branch","len":1,"c":false},{"a":54964,"n":"iris","k":"routine","len":90,"c":true},{"a":54971,"n":"b_D6BB","k":"branch","len":1,"c":false},{"a":54983,"n":"b_D6C7","k":"branch","len":1,"c":false},{"a":54993,"n":"j_D6D1","k":"branch","len":1,"c":false},{"a":55004,"n":"b_D6DC","k":"branch","len":1,"c":false},{"a":55015,"n":"b_D6E7","k":"branch","len":1,"c":false},{"a":55026,"n":"b_D6F2","k":"branch","len":1,"c":false},{"a":55037,"n":"b_D6FD","k":"branch","len":1,"c":false},{"a":55039,"n":"b_D6FF","k":"branch","len":1,"c":false},{"a":55054,"n":"iris_cell","k":"routine","len":44,"c":true},{"a":55060,"n":"b_D714","k":"branch","len":1,"c":false},{"a":55091,"n":"b_D733","k":"branch","len":1,"c":false},{"a":55095,"n":"j_D737","k":"branch","len":1,"c":false},{"a":55098,"n":"wait_frame","k":"routine","len":26,"c":true},{"a":55100,"n":"j_D73C","k":"branch","len":1,"c":false},{"a":55110,"n":"b_D746","k":"branch","len":1,"c":false},{"a":55115,"n":"b_D74B","k":"branch","len":1,"c":false},{"a":55124,"n":"random_number","k":"routine","len":40,"c":true},{"a":55126,"n":"b_D756","k":"branch","len":1,"c":false},{"a":55151,"n":"b_D76F","k":"branch","len":1,"c":false},{"a":55155,"n":"b_D773","k":"branch","len":1,"c":false},{"a":61504,"n":"cursor_cross","k":"table","len":64,"c":true},{"a":61568,"n":"cursor_snail","k":"table","len":65,"c":true},{"a":61633,"n":"f_F0C1","k":"table","len":5,"c":true},{"a":61638,"n":"f_F0C6","k":"table","len":19,"c":true},{"a":61657,"n":"slot_top","k":"table","len":28,"c":true},{"a":61685,"n":"slot_bottom","k":"table","len":28,"c":true},{"a":61713,"n":"slot_left","k":"table","len":28,"c":true},{"a":61741,"n":"slot_right","k":"table","len":28,"c":true},{"a":61769,"n":"slot_number","k":"table","len":28,"c":true},{"a":61797,"n":"f_F165","k":"table","len":20,"c":true},{"a":61817,"n":"slot_kind","k":"table","len":28,"c":true},{"a":61845,"n":"f_F195","k":"table","len":5,"c":true},{"a":61850,"n":"f_F19A","k":"table","len":5,"c":true},{"a":61855,"n":"a_F19F","k":"variable","len":1,"c":true},{"a":61856,"n":"a_F1A0","k":"variable","len":1,"c":true},{"a":61857,"n":"a_F1A1","k":"variable","len":1,"c":true},{"a":61858,"n":"a_F1A2","k":"variable","len":1,"c":true},{"a":61859,"n":"a_F1A3","k":"variable","len":1,"c":true},{"a":61860,"n":"a_F1A4","k":"variable","len":1,"c":true},{"a":61861,"n":"a_F1A5","k":"variable","len":1,"c":true},{"a":61862,"n":"a_F1A6","k":"variable","len":1,"c":true},{"a":61863,"n":"a_F1A7","k":"variable","len":1,"c":true},{"a":61864,"n":"a_F1A8","k":"variable","len":1,"c":true},{"a":61865,"n":"a_F1A9","k":"variable","len":1,"c":true},{"a":61866,"n":"a_F1AA","k":"variable","len":1,"c":true},{"a":61867,"n":"a_F1AB","k":"variable","len":1,"c":true},{"a":61868,"n":"slot_under_cursor","k":"variable","len":1,"c":true},{"a":61869,"n":"a_F1AD","k":"variable","len":2,"c":true},{"a":61871,"n":"inventory_scroll","k":"variable","len":1,"c":true},{"a":61872,"n":"a_F1B0","k":"variable","len":1,"c":true},{"a":61873,"n":"a_F1B1","k":"variable","len":1,"c":true},{"a":61874,"n":"a_F1B2","k":"variable","len":1,"c":true},{"a":61875,"n":"a_F1B3","k":"variable","len":1,"c":true},{"a":61876,"n":"f_F1B4","k":"table","len":13,"c":true},{"a":61889,"n":"f_F1C1","k":"variable","len":2,"c":true},{"a":61891,"n":"f_F1C3","k":"variable","len":2,"c":true},{"a":61893,"n":"f_F1C5","k":"variable","len":1,"c":true},{"a":61894,"n":"f_F1C6","k":"table","len":9,"c":true},{"a":61903,"n":"f_F1CF","k":"variable","len":1,"c":true},{"a":61904,"n":"f_F1D0","k":"table","len":9,"c":true},{"a":61913,"n":"f_F1D9","k":"variable","len":1,"c":true},{"a":61914,"n":"f_F1DA","k":"table","len":9,"c":true},{"a":61923,"n":"f_F1E3","k":"variable","len":1,"c":true},{"a":61924,"n":"f_F1E4","k":"table","len":9,"c":true},{"a":61933,"n":"f_F1ED","k":"variable","len":2,"c":true},{"a":61935,"n":"f_F1EF","k":"variable","len":2,"c":true},{"a":61937,"n":"f_F1F1","k":"variable","len":2,"c":true},{"a":61939,"n":"update_cursor","k":"routine","len":41,"c":true},{"a":61980,"n":"unhighlight_call_lo","k":"routine","len":1,"c":true},{"a":61981,"n":"unhighlight_call_hi","k":"routine","len":33,"c":true},{"a":61982,"n":"b_F21E","k":"branch","len":1,"c":false},{"a":62014,"n":"highlight_call_lo","k":"routine","len":1,"c":true},{"a":62015,"n":"highlight_call_hi","k":"routine","len":31,"c":true},{"a":62016,"n":"b_F240","k":"branch","len":1,"c":false},{"a":62046,"n":"click_call_lo","k":"routine","len":1,"c":true},{"a":62047,"n":"click_call_hi","k":"routine","len":2,"c":true},{"a":62048,"n":"r_F260","k":"branch","len":1,"c":false},{"a":62049,"n":"draw_interface","k":"routine","len":30,"c":true},{"a":62054,"n":"b_F266","k":"branch","len":1,"c":false},{"a":62079,"n":"draw_call_lo","k":"routine","len":1,"c":true},{"a":62080,"n":"draw_call_hi","k":"routine","len":14,"c":true},{"a":62081,"n":"b_F281","k":"branch","len":1,"c":false},{"a":62094,"n":"cursor_sprite_position","k":"routine","len":45,"c":true},{"a":62139,"n":"highlight_slot","k":"routine","len":15,"c":true},{"a":62154,"n":"unhighlight_slot","k":"routine","len":15,"c":true},{"a":62169,"n":"draw_verb_slot","k":"routine","len":6,"c":true},{"a":62175,"n":"draw_item_slot","k":"routine","len":6,"c":true},{"a":62181,"n":"draw_arrow_slot","k":"routine","len":9,"c":true},{"a":62190,"n":"click_room","k":"routine","len":11,"c":true},{"a":62201,"n":"click_verb","k":"routine","len":27,"c":true},{"a":62227,"n":"r_F313","k":"branch","len":1,"c":false},{"a":62228,"n":"click_sentence","k":"routine","len":18,"c":true},{"a":62245,"n":"r_F325","k":"branch","len":1,"c":false},{"a":62246,"n":"click_item","k":"routine","len":40,"c":true},{"a":62285,"n":"r_F34D","k":"branch","len":1,"c":false},{"a":62286,"n":"click_arrow","k":"routine","len":50,"c":true},{"a":62307,"n":"b_F363","k":"branch","len":1,"c":false},{"a":62319,"n":"j_F36F","k":"branch","len":1,"c":false},{"a":62329,"n":"b_F379","k":"branch","len":1,"c":false},{"a":62335,"n":"r_F37F","k":"branch","len":1,"c":false},{"a":62336,"n":"redraw_inventory","k":"routine","len":70,"c":true},{"a":62346,"n":"b_F38A","k":"branch","len":1,"c":false},{"a":62359,"n":"b_F397","k":"branch","len":1,"c":false},{"a":62368,"n":"b_F3A0","k":"branch","len":1,"c":false},{"a":62384,"n":"b_F3B0","k":"branch","len":1,"c":false},{"a":62391,"n":"j_F3B7","k":"branch","len":1,"c":false},{"a":62406,"n":"draw_arrow","k":"routine","len":67,"c":true},{"a":62430,"n":"b_F3DE","k":"branch","len":1,"c":false},{"a":62439,"n":"j_F3E7","k":"branch","len":1,"c":false},{"a":62461,"n":"b_F3FD","k":"branch","len":1,"c":false},{"a":62469,"n":"j_F405","k":"branch","len":1,"c":false},{"a":62472,"n":"r_F408","k":"branch","len":1,"c":false},{"a":62473,"n":"draw_verb","k":"routine","len":42,"c":true},{"a":62507,"n":"b_F42B","k":"branch","len":1,"c":false},{"a":62511,"n":"j_F42F","k":"branch","len":1,"c":false},{"a":62514,"n":"r_F432","k":"branch","len":1,"c":false},{"a":62515,"n":"draw_item","k":"routine","len":59,"c":true},{"a":62547,"n":"b_F453","k":"branch","len":1,"c":false},{"a":62570,"n":"j_F46A","k":"branch","len":1,"c":false},{"a":62573,"n":"r_F46D","k":"branch","len":1,"c":false},{"a":62574,"n":"find_inventory_item","k":"routine","len":38,"c":true},{"a":62583,"n":"b_F477","k":"branch","len":1,"c":false},{"a":62605,"n":"b_F48D","k":"branch","len":1,"c":false},{"a":62612,"n":"count_inventory","k":"routine","len":34,"c":true},{"a":62619,"n":"b_F49B","k":"branch","len":1,"c":false},{"a":62637,"n":"b_F4AD","k":"branch","len":1,"c":false},{"a":62646,"n":"draw_slot_text","k":"routine","len":83,"c":true},{"a":62654,"n":"b_F4BE","k":"branch","len":1,"c":false},{"a":62660,"n":"b_F4C4","k":"branch","len":1,"c":false},{"a":62666,"n":"b_F4CA","k":"branch","len":1,"c":false},{"a":62693,"n":"b_F4E5","k":"branch","len":1,"c":false},{"a":62707,"n":"b_F4F3","k":"branch","len":1,"c":false},{"a":62718,"n":"b_F4FE","k":"branch","len":1,"c":false},{"a":62725,"n":"b_F505","k":"branch","len":1,"c":false},{"a":62729,"n":"slot_width_cpy","k":"routine","len":4,"c":true},{"a":62734,"n":"colour_slot","k":"routine","len":54,"c":true},{"a":62742,"n":"b_F516","k":"branch","len":1,"c":false},{"a":62760,"n":"b_F528","k":"branch","len":1,"c":false},{"a":62784,"n":"b_F540","k":"branch","len":1,"c":false},{"a":62788,"n":"slot_right_cpy","k":"routine","len":8,"c":true},{"a":62796,"n":"slot_bottom_cpy","k":"routine","len":4,"c":true},{"a":62800,"n":"cursor_room_point","k":"routine","len":22,"c":true},{"a":62822,"n":"find_slot","k":"routine","len":57,"c":true},{"a":62841,"n":"b_F579","k":"branch","len":1,"c":false},{"a":62873,"n":"b_F599","k":"branch","len":1,"c":false},{"a":62879,"n":"button_pressed","k":"routine","len":15,"c":true},{"a":62894,"n":"set_cursor_feel","k":"routine","len":37,"c":true},{"a":62906,"n":"b_F5BA","k":"branch","len":1,"c":false},{"a":62912,"n":"j_F5C0","k":"branch","len":1,"c":false},{"a":62931,"n":"f_F5D3","k":"table","len":16,"c":true},{"a":62947,"n":"f_F5E3","k":"table","len":9,"c":true},{"a":62956,"n":"f_F5EC","k":"table","len":9,"c":true},{"a":62965,"n":"move_cursor","k":"routine","len":277,"c":true},{"a":62982,"n":"b_F606","k":"branch","len":1,"c":false},{"a":62991,"n":"b_F60F","k":"branch","len":1,"c":false},{"a":62997,"n":"b_F615","k":"branch","len":1,"c":false},{"a":63000,"n":"j_F618","k":"branch","len":1,"c":false},{"a":63038,"n":"b_F63E","k":"branch","len":1,"c":false},{"a":63047,"n":"b_F647","k":"branch","len":1,"c":false},{"a":63053,"n":"b_F64D","k":"branch","len":1,"c":false},{"a":63056,"n":"j_F650","k":"branch","len":1,"c":false},{"a":63112,"n":"b_F688","k":"branch","len":1,"c":false},{"a":63139,"n":"b_F6A3","k":"branch","len":1,"c":false},{"a":63175,"n":"b_F6C7","k":"branch","len":1,"c":false},{"a":63178,"n":"b_F6CA","k":"branch","len":1,"c":false},{"a":63220,"n":"b_F6F4","k":"branch","len":1,"c":false},{"a":63223,"n":"b_F6F7","k":"branch","len":1,"c":false},{"a":63241,"n":"r_F709","k":"branch","len":1,"c":false},{"a":63488,"n":"interface_charset","k":"table","len":1024,"c":true},{"a":65530,"n":"cpu_vectors","k":"table","len":6,"c":true}],"records":[{"a":0,"t":"gap","n":256,"x":[31835,32593,32992]},{"a":0,"t":"note","l":"cpu_port_ddr","note":"outside the tracked image","x":[31835,32593,32992]},{"a":256,"l":"f_0100","c":"The four bytes a stream names as its commonest, for decode_byte's short runs; copied from the stream's start by decode_start","t":"byte","b":[0,85,170,255],"x":[264,338,14180]},{"a":260,"l":"decode_start","c":"Starts decoding the stream at $26/$27: its first four bytes are the commonest bytes, kept at $0100-$0103, and the decoder is set with no run under way. The decoder lives here, in the stack page, copied from $823C at start-up","t":"code","b":[160,3],"m":"ldy","o":"#$03","x":[11611,11791,13137,14884]},{"a":262,"l":"b_0106","t":"code","b":[177,38],"m":"lda","o":"(zpp_26),y","oa":38,"x":[268]},{"a":264,"t":"code","b":[153,0,1],"m":"sta","o":"f_0100,y","oa":256},{"a":267,"t":"code","b":[136],"m":"dey"},{"a":268,"t":"code","b":[16,248],"m":"bpl","o":"b_0106","oa":262},{"a":270,"t":"code","b":[24],"m":"clc"},{"a":271,"t":"code","b":[165,38],"m":"lda","o":"zpp_26","oa":38},{"a":273,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":275,"t":"code","b":[133,38],"m":"sta","o":"zpp_26","oa":38},{"a":277,"t":"code","b":[165,39],"m":"lda","o":"zpa_27","oa":39},{"a":279,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":281,"t":"code","b":[133,39],"m":"sta","o":"zpa_27","oa":39},{"a":283,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":285,"t":"code","b":[133,41],"m":"sta","o":"zpa_29","oa":41},{"a":287,"t":"code","b":[133,40],"m":"sta","o":"zpa_28","oa":40},{"a":289,"t":"code","b":[96],"m":"rts"},{"a":290,"l":"decode_byte","c":"The next byte of the stream, Y kept. A code byte below $40 is followed by that many bytes plus one, as they are; $40 to $7F repeat the byte after it its low six bits plus one times; $80 and over repeat one of the four common bytes (bits 5 and 6) its low five bits plus one times","t":"code","b":[132,44],"m":"sty","o":"zpa_2C","oa":44,"x":[385,404,11616,11796,13207,14210,14923]},{"a":292,"t":"code","b":[165,41],"m":"lda","o":"zpa_29","oa":41},{"a":294,"t":"code","b":[208,54],"m":"bne","o":"b_015E","oa":350},{"a":296,"t":"code","b":[32,111,1],"m":"jsr","o":"next_stream_byte","oa":367},{"a":299,"t":"code","b":[201,64],"m":"cmp","o":"#$40"},{"a":301,"t":"code","b":[176,7],"m":"bcs","o":"b_0136","oa":310},{"a":303,"t":"code","b":[133,41],"m":"sta","o":"zpa_29","oa":41},{"a":305,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":307,"t":"code","b":[76,89,1],"m":"jmp","o":"j_0159","oa":345},{"a":310,"l":"b_0136","t":"code","b":[201,128],"m":"cmp","o":"#$80","x":[301]},{"a":312,"t":"code","b":[176,10],"m":"bcs","o":"b_0144","oa":324},{"a":314,"t":"code","b":[41,63],"m":"and","o":"#$3F"},{"a":316,"t":"code","b":[133,41],"m":"sta","o":"zpa_29","oa":41},{"a":318,"t":"code","b":[32,111,1],"m":"jsr","o":"next_stream_byte","oa":367},{"a":321,"t":"code","b":[76,85,1],"m":"jmp","o":"j_0155","oa":341},{"a":324,"l":"b_0144","t":"code","b":[170],"m":"tax","x":[312]},{"a":325,"t":"code","b":[41,31],"m":"and","o":"#$1F"},{"a":327,"t":"code","b":[133,41],"m":"sta","o":"zpa_29","oa":41},{"a":329,"t":"code","b":[138],"m":"txa"},{"a":330,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":331,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":332,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":333,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":334,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":335,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":337,"t":"code","b":[170],"m":"tax"},{"a":338,"t":"code","b":[189,0,1],"m":"lda","o":"f_0100,x","oa":256},{"a":341,"l":"j_0155","t":"code","b":[133,42],"m":"sta","o":"zpa_2A","oa":42,"x":[321]},{"a":343,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":345,"l":"j_0159","t":"code","b":[133,40],"m":"sta","o":"zpa_28","oa":40,"x":[307]},{"a":347,"t":"code","b":[76,96,1],"m":"jmp","o":"j_0160","oa":352},{"a":350,"l":"b_015E","t":"code","b":[198,41],"m":"dec","o":"zpa_29","oa":41,"x":[294]},{"a":352,"l":"j_0160","t":"code","b":[36,40],"m":"bit","o":"zpa_28","oa":40,"x":[347]},{"a":354,"t":"code","b":[48,6],"m":"bmi","o":"b_016A","oa":362},{"a":356,"t":"code","b":[32,111,1],"m":"jsr","o":"next_stream_byte","oa":367},{"a":359,"t":"code","b":[76,108,1],"m":"jmp","o":"j_016C","oa":364},{"a":362,"l":"b_016A","t":"code","b":[165,42],"m":"lda","o":"zpa_2A","oa":42,"x":[354]},{"a":364,"l":"j_016C","t":"code","b":[164,44],"m":"ldy","o":"zpa_2C","oa":44,"x":[359]},{"a":366,"t":"code","b":[96],"m":"rts"},{"a":367,"l":"next_stream_byte","c":"The byte at $26/$27, the pointer then moved on","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[296,318,356]},{"a":369,"t":"code","b":[177,38],"m":"lda","o":"(zpp_26),y","oa":38},{"a":371,"t":"code","b":[230,38],"m":"inc","o":"zpp_26","oa":38},{"a":373,"t":"code","b":[208,2],"m":"bne","o":"r_0179","oa":377},{"a":375,"t":"code","b":[230,39],"m":"inc","o":"zpa_27","oa":39},{"a":377,"l":"r_0179","t":"code","b":[96],"m":"rts","x":[373]},{"a":378,"l":"skip_decoded","c":"Decodes and throws away the number of bytes in $2D/$2E. Nothing in the program calls it","t":"code","b":[165,45],"m":"lda","o":"zpa_2D","oa":45,"x":[396]},{"a":380,"t":"code","b":[5,46],"m":"ora","o":"zpa_2E","oa":46},{"a":382,"t":"code","b":[208,1],"m":"bne","o":"b_0181","oa":385},{"a":384,"t":"code","b":[96],"m":"rts"},{"a":385,"l":"b_0181","t":"code","b":[32,34,1],"m":"jsr","o":"decode_byte","oa":290,"x":[382]},{"a":388,"t":"code","b":[165,45],"m":"lda","o":"zpa_2D","oa":45},{"a":390,"t":"code","b":[208,2],"m":"bne","o":"b_018A","oa":394},{"a":392,"t":"code","b":[198,46],"m":"dec","o":"zpa_2E","oa":46},{"a":394,"l":"b_018A","t":"code","b":[198,45],"m":"dec","o":"zpa_2D","oa":45,"x":[390]},{"a":396,"t":"code","b":[76,122,1],"m":"jmp","o":"skip_decoded","oa":378},{"a":399,"l":"skip_decoded_short","c":"Decodes and throws away $2D bytes (none when it is zero)","t":"code","b":[164,45],"m":"ldy","o":"zpa_2D","oa":45,"x":[13202,13234]},{"a":401,"t":"code","b":[208,1],"m":"bne","o":"b_0194","oa":404},{"a":403,"t":"code","b":[96],"m":"rts"},{"a":404,"l":"b_0194","t":"code","b":[32,34,1],"m":"jsr","o":"decode_byte","oa":290,"x":[401,408]},{"a":407,"t":"code","b":[136],"m":"dey"},{"a":408,"t":"code","b":[208,250],"m":"bne","o":"b_0194","oa":404},{"a":410,"t":"code","b":[96],"m":"rts"},{"a":411,"t":"gap","n":613},{"a":411,"t":"note","c":"Not used: the byte after the decoder","note":"outside the tracked image"},{"a":1024,"l":"start","c":"The program's start, where BOOT jumps once AA is loaded: sets the stack, blanks the screen, turns the interrupts off, banks every ROM out, shows the snail, sends the drive its program and sets up the machine ($7F4B), and sets the game's starting values ($81E6)","t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":1026,"t":"code","b":[154],"m":"txs"},{"a":1027,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1029,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":1032,"t":"code","b":[120],"m":"sei"},{"a":1033,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":1035,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":1037,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":1039,"t":"code","b":[32,218,19],"m":"jsr","o":"busy_cursor","oa":5082},{"a":1042,"t":"code","b":[32,75,127],"m":"jsr","o":"setup_machine","oa":32587},{"a":1045,"t":"code","b":[32,230,129],"m":"jsr","o":"init_game","oa":33254},{"a":1048,"l":"restart","c":"Starts the game from the beginning, also for the restart opcode ($5F68): the picture off, the sound reset, the heap cleared from $77D5 to $C7FF and made one free block, side 1 asked for; then reads the game's index from track 1, sector 0, byte 2 on: each object's owner and state, 775 bytes into $6B47, then the resource index, 1,137 bytes into $6E4E (each room's disk side and track and sector, and for costumes, scripts and sounds the room each lives in and where in it). Sets the screens, makes actor 3 the one the player controls and the camera's to follow, clears every actor and every variable, points sounds 3, 4 and 5 at the copies built into the program ($4406), turns the screen on and starts global script 1","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[24424]},{"a":1050,"t":"code","b":[133,130],"m":"sta","o":"zpa_82","oa":130},{"a":1052,"t":"code","b":[32,243,19],"m":"jsr","o":"video_off","oa":5107},{"a":1055,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":1057,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":1059,"t":"code","b":[32,147,64],"m":"jsr","o":"reset_sound","oa":16531},{"a":1062,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":1064,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":1066,"t":"code","b":[169,213],"m":"lda","o":"#$D5"},{"a":1068,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":1070,"t":"code","b":[169,119],"m":"lda","o":"#$77"},{"a":1072,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":1074,"t":"code","b":[169,43],"m":"lda","o":"#$2B"},{"a":1076,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":1078,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":1080,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":1082,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":1084,"t":"code","b":[32,66,4],"m":"jsr","o":"fill_x","oa":1090},{"a":1087,"t":"code","b":[76,92,4],"m":"jmp","o":"j_045C","oa":1116},{"a":1090,"l":"fill_x","c":"Stores X into the $1B/$1C bytes from $19/$1A on","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[1084,1113]},{"a":1092,"t":"code","b":[138],"m":"txa"},{"a":1093,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":1095,"t":"code","b":[230,25],"m":"inc","o":"zpa_19","oa":25},{"a":1097,"t":"code","b":[208,2],"m":"bne","o":"b_044D","oa":1101},{"a":1099,"t":"code","b":[230,26],"m":"inc","o":"zpa_1A","oa":26},{"a":1101,"l":"b_044D","t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27,"x":[1097]},{"a":1103,"t":"code","b":[208,2],"m":"bne","o":"b_0453","oa":1107},{"a":1105,"t":"code","b":[198,28],"m":"dec","o":"zpa_1C","oa":28},{"a":1107,"l":"b_0453","t":"code","b":[198,27],"m":"dec","o":"zpa_1B","oa":27,"x":[1103]},{"a":1109,"t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27},{"a":1111,"t":"code","b":[5,28],"m":"ora","o":"zpa_1C","oa":28},{"a":1113,"t":"code","b":[208,231],"m":"bne","o":"fill_x","oa":1090},{"a":1115,"t":"code","b":[96],"m":"rts"},{"a":1116,"l":"j_045C","t":"code","b":[32,206,75],"m":"jsr","o":"init_heap","oa":19406,"x":[1087]},{"a":1119,"t":"code","b":[169,49],"m":"lda","o":"#$31"},{"a":1121,"t":"code","b":[32,11,48],"m":"jsr","o":"ask_for_side","oa":12299},{"a":1124,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":1126,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":1128,"t":"code","b":[32,93,58],"m":"jsr","o":"disk_seek","oa":14941},{"a":1131,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":1133,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":1135,"t":"code","b":[32,129,58],"m":"jsr","o":"disk_read_from","oa":14977},{"a":1138,"t":"code","b":[162,71],"m":"ldx","o":"#$47"},{"a":1140,"t":"code","b":[160,107],"m":"ldy","o":"#$6B"},{"a":1142,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":1144,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":1147,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":1149,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":1152,"t":"code","b":[32,169,58],"m":"jsr","o":"disk_read_bytes","oa":15017},{"a":1155,"t":"code","b":[162,9],"m":"ldx","o":"#$09"},{"a":1157,"t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":1159,"t":"code","b":[32,129,58],"m":"jsr","o":"disk_read_from","oa":14977},{"a":1162,"t":"code","b":[162,78],"m":"ldx","o":"#$4E"},{"a":1164,"t":"code","b":[160,110],"m":"ldy","o":"#$6E"},{"a":1166,"t":"code","b":[169,113],"m":"lda","o":"#$71"},{"a":1168,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":1171,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":1173,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":1176,"t":"code","b":[32,169,58],"m":"jsr","o":"disk_read_bytes","oa":15017},{"a":1179,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":1181,"t":"code","b":[133,34],"m":"sta","o":"zpa_22","oa":34},{"a":1183,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":1185,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":1187,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":1189,"t":"code","b":[133,36],"m":"sta","o":"zpa_24","oa":36},{"a":1191,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":1193,"t":"code","b":[141,110,254],"m":"sta","o":"a_FE6E","oa":65134},{"a":1196,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":1198,"t":"code","b":[141,198,203],"m":"sta","o":"a_CBC6","oa":52166},{"a":1201,"t":"code","b":[173,110,254],"m":"lda","o":"a_FE6E","oa":65134},{"a":1204,"t":"code","b":[141,199,203],"m":"sta","o":"a_CBC7","oa":52167},{"a":1207,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":1209,"t":"code","b":[141,81,104],"m":"sta","o":"current_slot","oa":26705},{"a":1212,"t":"code","b":[162,12],"m":"ldx","o":"#$0C"},{"a":1214,"l":"b_04BE","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[1244]},{"a":1216,"t":"code","b":[157,118,255],"m":"sta","o":"f_FF76,x","oa":65398},{"a":1219,"t":"code","b":[157,131,255],"m":"sta","o":"f_FF83,x","oa":65411},{"a":1222,"t":"code","b":[157,144,255],"m":"sta","o":"actor_costume,x","oa":65424},{"a":1225,"t":"code","b":[157,157,255],"m":"sta","o":"f_FF9D,x","oa":65437},{"a":1228,"t":"code","b":[157,170,255],"m":"sta","o":"f_FFAA,x","oa":65450},{"a":1231,"t":"code","b":[157,183,255],"m":"sta","o":"actor_x,x","oa":65463},{"a":1234,"t":"code","b":[157,209,255],"m":"sta","o":"f_FFD1,x","oa":65489},{"a":1237,"t":"code","b":[157,222,255],"m":"sta","o":"actor_facing,x","oa":65502},{"a":1240,"t":"code","b":[157,196,255],"m":"sta","o":"f_FFC4,x","oa":65476},{"a":1243,"t":"code","b":[202],"m":"dex"},{"a":1244,"t":"code","b":[16,224],"m":"bpl","o":"b_04BE","oa":1214},{"a":1246,"t":"code","b":[162,254],"m":"ldx","o":"#$FE"},{"a":1248,"l":"b_04E0","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[1257]},{"a":1250,"t":"code","b":[157,110,254],"m":"sta","o":"a_FE6E,x","oa":65134},{"a":1253,"t":"code","b":[157,111,253],"m":"sta","o":"f_FD6F,x","oa":64879},{"a":1256,"t":"code","b":[202],"m":"dex"},{"a":1257,"t":"code","b":[208,245],"m":"bne","o":"b_04E0","oa":1248},{"a":1259,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":1261,"t":"code","b":[141,66,117],"m":"sta","o":"a_7542","oa":30018},{"a":1264,"t":"code","b":[141,67,117],"m":"sta","o":"a_7543","oa":30019},{"a":1267,"t":"code","b":[141,68,117],"m":"sta","o":"a_7544","oa":30020},{"a":1270,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":1272,"t":"code","b":[141,195,116],"m":"sta","o":"a_74C3","oa":29891},{"a":1275,"t":"code","b":[169,68],"m":"lda","o":"#$44"},{"a":1277,"t":"code","b":[141,68,116],"m":"sta","o":"a_7444","oa":29764},{"a":1280,"t":"code","b":[169,51],"m":"lda","o":"#$33"},{"a":1282,"t":"code","b":[141,196,116],"m":"sta","o":"a_74C4","oa":29892},{"a":1285,"t":"code","b":[169,68],"m":"lda","o":"#$44"},{"a":1287,"t":"code","b":[141,69,116],"m":"sta","o":"a_7445","oa":29765},{"a":1290,"t":"code","b":[169,96],"m":"lda","o":"#$60"},{"a":1292,"t":"code","b":[141,197,116],"m":"sta","o":"a_74C5","oa":29893},{"a":1295,"t":"code","b":[169,68],"m":"lda","o":"#$44"},{"a":1297,"t":"code","b":[141,70,116],"m":"sta","o":"a_7446","oa":29766},{"a":1300,"t":"code","b":[32,47,20],"m":"jsr","o":"video_on","oa":5167},{"a":1303,"t":"code","b":[32,232,19],"m":"jsr","o":"normal_cursor","oa":5096},{"a":1306,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":1308,"t":"code","b":[32,159,77],"m":"jsr","o":"start_script","oa":19871},{"a":1311,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1313,"t":"code","b":[141,98,17],"m":"sta","o":"a_1162","oa":4450},{"a":1316,"l":"main_loop","c":"One pass of the game: shows the messages, acts on a key, puts the cursor's place in the room into variables 30 and 31 (and the camera into 2, the message flag into 3, the music flag into 6), runs every script, starts the input script for a waiting click or key, carries out a waiting sentence. With no room shown (room 0) it starts the next pass at once. When a room is shown: walks the actors, moves the camera, copies the objects' states, draws the room again when the camera has moved (a column, or the whole when it jumped), draws the objects waiting to be drawn, swaps the screens when the hidden one has been drawn, draws the actors, opens the room after it has been entered ($D645 or $1162), plays the actors' sounds and moves the flashlight; then waits for the frame interrupt, and until variable 25's number of frames have passed since the pass began ($C6): that sets the game's speed","t":"code","b":[238,17,6],"m":"inc","o":"a_0611","oa":1553,"x":[1394,1546]},{"a":1319,"t":"code","b":[32,124,6],"m":"jsr","o":"main_loop_hook","oa":1660},{"a":1322,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1324,"t":"code","b":[133,198],"m":"sta","o":"zpa_C6","oa":198},{"a":1326,"t":"code","b":[32,187,34],"m":"jsr","o":"message_step","oa":8891},{"a":1329,"t":"code","b":[32,77,35],"m":"jsr","o":"handle_key","oa":9037},{"a":1332,"t":"code","b":[173,38,252],"m":"lda","o":"a_FC26","oa":64550},{"a":1335,"t":"code","b":[24],"m":"clc"},{"a":1336,"t":"code","b":[109,192,203],"m":"adc","o":"view_left","oa":52160},{"a":1339,"t":"code","b":[141,40,252],"m":"sta","o":"a_FC28","oa":64552},{"a":1342,"t":"code","b":[173,37,252],"m":"lda","o":"a_FC25","oa":64549},{"a":1345,"t":"code","b":[56],"m":"sec"},{"a":1346,"t":"code","b":[233,8],"m":"sbc","o":"#$08"},{"a":1348,"t":"code","b":[141,39,252],"m":"sta","o":"a_FC27","oa":64551},{"a":1351,"t":"code","b":[173,194,203],"m":"lda","o":"camera_x","oa":52162},{"a":1354,"t":"code","b":[141,112,254],"m":"sta","o":"a_FE70","oa":65136},{"a":1357,"t":"code","b":[165,182],"m":"lda","o":"zpa_B6","oa":182},{"a":1359,"t":"code","b":[141,113,254],"m":"sta","o":"a_FE71","oa":65137},{"a":1362,"t":"code","b":[173,232,67],"m":"lda","o":"a_43E8","oa":17384},{"a":1365,"t":"code","b":[141,116,254],"m":"sta","o":"a_FE74","oa":65140},{"a":1368,"t":"code","b":[173,40,252],"m":"lda","o":"a_FC28","oa":64552},{"a":1371,"t":"code","b":[141,140,254],"m":"sta","o":"a_FE8C","oa":65164},{"a":1374,"t":"code","b":[173,39,252],"m":"lda","o":"a_FC27","oa":64551},{"a":1377,"t":"code","b":[141,141,254],"m":"sta","o":"a_FE8D","oa":65165},{"a":1380,"t":"code","b":[32,47,76],"m":"jsr","o":"run_all_scripts","oa":19503},{"a":1383,"t":"code","b":[32,125,6],"m":"jsr","o":"start_input_script","oa":1661},{"a":1386,"t":"code","b":[32,58,8],"m":"jsr","o":"check_sentence_queue","oa":2106},{"a":1389,"t":"code","b":[173,3,105],"m":"lda","o":"current_room","oa":26883},{"a":1392,"t":"code","b":[208,3],"m":"bne","o":"b_0575","oa":1397},{"a":1394,"t":"code","b":[76,36,5],"m":"jmp","o":"main_loop","oa":1316},{"a":1397,"l":"b_0575","t":"code","b":[32,234,40],"m":"jsr","o":"walk_all_actors","oa":10474,"x":[1392]},{"a":1400,"t":"code","b":[32,208,202],"m":"jsr","o":"move_camera","oa":51920},{"a":1403,"t":"code","b":[32,42,49],"m":"jsr","o":"copy_object_states","oa":12586},{"a":1406,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":1408,"t":"code","b":[133,62],"m":"sta","o":"zpa_3E","oa":62},{"a":1410,"t":"code","b":[174,194,203],"m":"ldx","o":"camera_x","oa":52162},{"a":1413,"t":"code","b":[236,195,203],"m":"cpx","o":"camera_drawn","oa":52163},{"a":1416,"t":"code","b":[240,37],"m":"beq","o":"b_05AF","oa":1455},{"a":1418,"t":"code","b":[32,16,54],"m":"jsr","o":"draw_room","oa":13840},{"a":1421,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":1423,"t":"code","b":[141,16,6],"m":"sta","o":"a_0610","oa":1552},{"a":1426,"t":"code","b":[165,62],"m":"lda","o":"zpa_3E","oa":62},{"a":1428,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":1430,"t":"code","b":[208,20],"m":"bne","o":"b_05AC","oa":1452},{"a":1432,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":1434,"l":"b_059A","t":"code","b":[189,78,253],"m":"lda","o":"f_FD4E,x","oa":64846,"x":[1450]},{"a":1437,"t":"code","b":[48,10],"m":"bmi","o":"b_05A9","oa":1449},{"a":1439,"t":"code","b":[189,26,253],"m":"lda","o":"walk_masked,x","oa":64794},{"a":1442,"t":"code","b":[240,5],"m":"beq","o":"b_05A9","oa":1449},{"a":1444,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":1446,"t":"code","b":[157,34,253],"m":"sta","o":"f_FD22,x","oa":64802},{"a":1449,"l":"b_05A9","t":"code","b":[202],"m":"dex","x":[1437,1442]},{"a":1450,"t":"code","b":[16,238],"m":"bpl","o":"b_059A","oa":1434},{"a":1452,"l":"b_05AC","t":"code","b":[32,18,24],"m":"jsr","o":"update_actor_sprites","oa":6162,"x":[1430]},{"a":1455,"l":"b_05AF","t":"code","b":[32,207,51],"m":"jsr","o":"draw_queued_objects","oa":13263,"x":[1416]},{"a":1458,"t":"code","b":[173,16,6],"m":"lda","o":"a_0610","oa":1552},{"a":1461,"t":"code","b":[16,3],"m":"bpl","o":"b_05BA","oa":1466},{"a":1463,"t":"code","b":[32,58,6],"m":"jsr","o":"swap_screens","oa":1594},{"a":1466,"l":"b_05BA","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[1461]},{"a":1468,"t":"code","b":[141,16,6],"m":"sta","o":"a_0610","oa":1552},{"a":1471,"t":"code","b":[32,4,41],"m":"jsr","o":"draw_all_actors","oa":10500},{"a":1474,"t":"code","b":[173,14,252],"m":"lda","o":"a_FC0E","oa":64526},{"a":1477,"t":"code","b":[24],"m":"clc"},{"a":1478,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":1480,"t":"code","b":[141,95,17],"m":"sta","o":"a_115F","oa":4447},{"a":1483,"t":"code","b":[173,13,6],"m":"lda","o":"a_060D","oa":1549},{"a":1486,"t":"code","b":[240,24],"m":"beq","o":"b_05E8","oa":1512},{"a":1488,"t":"code","b":[173,122,254],"m":"lda","o":"a_FE7A","oa":65146},{"a":1491,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":1493,"t":"code","b":[240,6],"m":"beq","o":"b_05DD","oa":1501},{"a":1495,"t":"code","b":[32,69,214],"m":"jsr","o":"open_room","oa":54853},{"a":1498,"t":"code","b":[76,227,5],"m":"jmp","o":"j_05E3","oa":1507},{"a":1501,"l":"b_05DD","t":"code","b":[173,98,17],"m":"lda","o":"a_1162","oa":4450,"x":[1493]},{"a":1504,"t":"code","b":[141,97,17],"m":"sta","o":"a_1161","oa":4449},{"a":1507,"l":"j_05E3","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[1498]},{"a":1509,"t":"code","b":[141,13,6],"m":"sta","o":"a_060D","oa":1549},{"a":1512,"l":"b_05E8","t":"code","b":[32,18,6],"m":"jsr","o":"check_actor_sounds","oa":1554,"x":[1486]},{"a":1515,"t":"code","b":[173,122,254],"m":"lda","o":"a_FE7A","oa":65146},{"a":1518,"t":"code","b":[41,4],"m":"and","o":"#$04"},{"a":1520,"t":"code","b":[240,3],"m":"beq","o":"b_05F5","oa":1525},{"a":1522,"t":"code","b":[32,207,39],"m":"jsr","o":"update_flashlight","oa":10191},{"a":1525,"l":"b_05F5","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[1520]},{"a":1527,"t":"code","b":[133,122],"m":"sta","o":"zpa_7A","oa":122},{"a":1529,"l":"b_05F9","t":"code","b":[165,122],"m":"lda","o":"zpa_7A","oa":122,"x":[1531]},{"a":1531,"t":"code","b":[208,252],"m":"bne","o":"b_05F9","oa":1529},{"a":1533,"t":"code","b":[173,194,203],"m":"lda","o":"camera_x","oa":52162},{"a":1536,"t":"code","b":[141,195,203],"m":"sta","o":"camera_drawn","oa":52163},{"a":1539,"l":"b_0603","t":"code","b":[165,198],"m":"lda","o":"zpa_C6","oa":198,"x":[1544]},{"a":1541,"t":"code","b":[205,135,254],"m":"cmp","o":"a_FE87","oa":65159},{"a":1544,"t":"code","b":[144,249],"m":"bcc","o":"b_0603","oa":1539},{"a":1546,"t":"code","b":[76,36,5],"m":"jmp","o":"main_loop","oa":1316},{"a":1549,"l":"a_060D","c":"Set when a room has been entered, so the next pass opens it; $060E and $060F not used","t":"byte","b":[0,0,0],"x":[1483,1509,10895]},{"a":1552,"l":"a_0610","c":"$80 when the hidden screen has been drawn and is to be shown","t":"byte","b":[0],"x":[1423,1458,1468,13286,13303]},{"a":1553,"l":"a_0611","c":"Counts the passes of the main loop","t":"byte","b":[0],"x":[1316]},{"a":1554,"l":"check_actor_sounds","c":"Plays a sound for an actor in the room: for each of the four actor slots whose flag in $FD52 is set, when the actor has a sound ($FF83) starts it (start_sound, with no slot current) and clears all four flags; one sound at most","t":"code","b":[162,3],"m":"ldx","o":"#$03","x":[1512]},{"a":1556,"l":"b_0614","t":"code","b":[189,82,253],"m":"lda","o":"f_FD52,x","oa":64850,"x":[1591]},{"a":1559,"t":"code","b":[240,29],"m":"beq","o":"b_0636","oa":1590},{"a":1561,"t":"code","b":[188,78,253],"m":"ldy","o":"f_FD4E,x","oa":64846},{"a":1564,"t":"code","b":[48,24],"m":"bmi","o":"b_0636","oa":1590},{"a":1566,"t":"code","b":[185,131,255],"m":"lda","o":"f_FF83,y","oa":65411},{"a":1569,"t":"code","b":[240,19],"m":"beq","o":"b_0636","oa":1590},{"a":1571,"t":"code","b":[160,255],"m":"ldy","o":"#$FF"},{"a":1573,"t":"code","b":[140,81,104],"m":"sty","o":"current_slot","oa":26705},{"a":1576,"t":"code","b":[32,191,87],"m":"jsr","o":"start_sound","oa":22463},{"a":1579,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":1581,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1583,"l":"b_062F","t":"code","b":[157,82,253],"m":"sta","o":"f_FD52,x","oa":64850,"x":[1587]},{"a":1586,"t":"code","b":[202],"m":"dex"},{"a":1587,"t":"code","b":[16,250],"m":"bpl","o":"b_062F","oa":1583},{"a":1589,"t":"code","b":[96],"m":"rts"},{"a":1590,"l":"b_0636","t":"code","b":[202],"m":"dex","x":[1559,1564,1569]},{"a":1591,"t":"code","b":[16,219],"m":"bpl","o":"b_0614","oa":1556},{"a":1593,"t":"code","b":[96],"m":"rts"},{"a":1594,"l":"swap_screens","c":"After a pass that redrew the room, when the room is lit (bit 1 of variable 12): asks the frame interrupt to show the screen just drawn and points $23/$24 at the other one for the next: after drawing on $CC00 ($22 = 1) it asks for $CC00 ($21 = 2) and draws next on $C800, and the other way round","t":"code","b":[173,122,254],"m":"lda","o":"a_FE7A","oa":65146,"x":[1463]},{"a":1597,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":1599,"t":"code","b":[240,37],"m":"beq","o":"r_0666","oa":1638},{"a":1601,"t":"code","b":[165,34],"m":"lda","o":"zpa_22","oa":34},{"a":1603,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":1605,"t":"code","b":[208,17],"m":"bne","o":"b_0658","oa":1624},{"a":1607,"l":"show_screen_cc00","c":"Entry from $D639: asks for the screen at $CC00 and makes $C800 the one to draw on next","t":"code","b":[169,80],"m":"lda","o":"#$50","x":[54841]},{"a":1609,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":1611,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":1613,"t":"code","b":[133,36],"m":"sta","o":"zpa_24","oa":36},{"a":1615,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":1617,"t":"code","b":[133,33],"m":"sta","o":"zpa_21","oa":33},{"a":1619,"t":"code","b":[133,34],"m":"sta","o":"zpa_22","oa":34},{"a":1621,"t":"code","b":[76,102,6],"m":"jmp","o":"r_0666","oa":1638},{"a":1624,"l":"b_0658","t":"code","b":[169,80],"m":"lda","o":"#$50","x":[1605]},{"a":1626,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":1628,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":1630,"t":"code","b":[133,36],"m":"sta","o":"zpa_24","oa":36},{"a":1632,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":1634,"t":"code","b":[133,33],"m":"sta","o":"zpa_21","oa":33},{"a":1636,"t":"code","b":[133,34],"m":"sta","o":"zpa_22","oa":34},{"a":1638,"l":"r_0666","t":"code","b":[96],"m":"rts","x":[1599,1621]},{"a":1639,"l":"fatal_error_4","c":"Fatal error 4, out of memory in the heap ($D472): the border changes colour for ever","t":"code","b":[169,4],"m":"lda","o":"#$04","x":[54396]},{"a":1641,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":1643,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":1645,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":1647,"l":"j_066F","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[1650]},{"a":1650,"t":"code","b":[76,111,6],"m":"jmp","o":"j_066F","oa":1647},{"a":1653,"c":"Seven bytes after the endless loop: $FF and six zeros, which nothing reads","t":"byte","b":[255,0,0,0,0,0,0]},{"a":1660,"l":"main_loop_hook","c":"An RTS the main loop calls on every pass","t":"code","b":[96],"m":"rts","x":[1319]},{"a":1661,"l":"start_input_script","c":"Each pass of the main loop: when an input is waiting ($FC2D is 1: a click, flagged by the frame interrupt, or a key, by handle_key), marks it taken ($FF) and starts global script 4, which acts on it, when the cursor is shown (bit 4 of user_state) or the input was a key (variable 32 is 4)","t":"code","b":[173,45,252],"m":"lda","o":"a_FC2D","oa":64557,"x":[1383]},{"a":1664,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":1666,"t":"code","b":[208,27],"m":"bne","o":"r_069F","oa":1695},{"a":1668,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":1670,"t":"code","b":[141,45,252],"m":"sta","o":"a_FC2D","oa":64557},{"a":1673,"t":"code","b":[173,113,255],"m":"lda","o":"user_state","oa":65393},{"a":1676,"t":"code","b":[41,16],"m":"and","o":"#$10"},{"a":1678,"t":"code","b":[240,5],"m":"beq","o":"b_0695","oa":1685},{"a":1680,"l":"j_0690","t":"code","b":[169,4],"m":"lda","o":"#$04","x":[1692]},{"a":1682,"t":"code","b":[76,159,77],"m":"jmp","o":"start_script","oa":19871},{"a":1685,"l":"b_0695","t":"code","b":[173,142,254],"m":"lda","o":"a_FE8E","oa":65166,"x":[1678]},{"a":1688,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":1690,"t":"code","b":[208,3],"m":"bne","o":"r_069F","oa":1695},{"a":1692,"t":"code","b":[76,144,6],"m":"jmp","o":"j_0690","oa":1680},{"a":1695,"l":"r_069F","t":"code","b":[96],"m":"rts","x":[1666,1690]},{"a":1696,"l":"draw_sentence_line","c":"Draws the sentence line, row 18 at $CED0: clears it, then, when the interface shows the sentence (bit 5 of user_state), writes the verb's name (variable 26, the verb_name_pointer), the first object's (27), the preposition's (29, from the table at $F0C1/$F0C6) and the second object's (28), each followed by a space, cut at 40 characters","t":"code","b":[32,234,7],"m":"jsr","o":"clear_sentence_row","oa":2026,"x":[9164,22981,22985,23627]},{"a":1699,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1701,"t":"code","b":[141,18,9],"m":"sta","o":"a_0912","oa":2322},{"a":1704,"t":"code","b":[173,113,255],"m":"lda","o":"user_state","oa":65393},{"a":1707,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":1709,"t":"code","b":[208,1],"m":"bne","o":"b_06B0","oa":1712},{"a":1711,"t":"code","b":[96],"m":"rts"},{"a":1712,"l":"b_06B0","t":"code","b":[173,136,254],"m":"lda","o":"a_FE88","oa":65160,"x":[1709]},{"a":1715,"t":"code","b":[240,6],"m":"beq","o":"b_06BB","oa":1723},{"a":1717,"t":"code","b":[32,246,6],"m":"jsr","o":"verb_name_pointer","oa":1782},{"a":1720,"t":"code","b":[32,252,7],"m":"jsr","o":"append_name","oa":2044},{"a":1723,"l":"b_06BB","t":"code","b":[173,137,254],"m":"lda","o":"a_FE89","oa":65161,"x":[1715]},{"a":1726,"t":"code","b":[13,138,253],"m":"ora","o":"a_FD8A","oa":64906},{"a":1729,"t":"code","b":[240,12],"m":"beq","o":"b_06CF","oa":1743},{"a":1731,"t":"code","b":[173,138,253],"m":"lda","o":"a_FD8A","oa":64906},{"a":1734,"t":"code","b":[174,137,254],"m":"ldx","o":"a_FE89","oa":65161},{"a":1737,"t":"code","b":[32,32,7],"m":"jsr","o":"object_name_pointer","oa":1824},{"a":1740,"t":"code","b":[32,252,7],"m":"jsr","o":"append_name","oa":2044},{"a":1743,"l":"b_06CF","t":"code","b":[174,139,254],"m":"ldx","o":"a_FE8B","oa":65163,"x":[1729]},{"a":1746,"t":"code","b":[240,13],"m":"beq","o":"b_06E1","oa":1761},{"a":1748,"t":"code","b":[189,193,240],"m":"lda","o":"f_F0C1,x","oa":61633},{"a":1751,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":1753,"t":"code","b":[189,198,240],"m":"lda","o":"f_F0C6,x","oa":61638},{"a":1756,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":1758,"t":"code","b":[32,252,7],"m":"jsr","o":"append_name","oa":2044},{"a":1761,"l":"b_06E1","t":"code","b":[173,138,254],"m":"lda","o":"a_FE8A","oa":65162,"x":[1746]},{"a":1764,"t":"code","b":[13,139,253],"m":"ora","o":"a_FD8B","oa":64907},{"a":1767,"t":"code","b":[240,12],"m":"beq","o":"r_06F5","oa":1781},{"a":1769,"t":"code","b":[173,139,253],"m":"lda","o":"a_FD8B","oa":64907},{"a":1772,"t":"code","b":[174,138,254],"m":"ldx","o":"a_FE8A","oa":65162},{"a":1775,"t":"code","b":[32,32,7],"m":"jsr","o":"object_name_pointer","oa":1824},{"a":1778,"t":"code","b":[32,252,7],"m":"jsr","o":"append_name","oa":2044},{"a":1781,"l":"r_06F5","t":"code","b":[96],"m":"rts","x":[1767]},{"a":1782,"l":"verb_name_pointer","c":"Points $15/$16 at the name of verb A: finds the verb's slot (20 to 0) in $F149 and takes its name block from $77C1/$779E (four bytes on, past the header); with no name, an empty string at $F0C0","t":"code","b":[162,20],"m":"ldx","o":"#$14","x":[1717]},{"a":1784,"l":"b_06F8","t":"code","b":[221,73,241],"m":"cmp","o":"slot_number,x","oa":61769,"x":[1819]},{"a":1787,"t":"code","b":[208,29],"m":"bne","o":"b_071A","oa":1818},{"a":1789,"t":"code","b":[189,193,119],"m":"lda","o":"f_77C1,x","oa":30657},{"a":1792,"t":"code","b":[24],"m":"clc"},{"a":1793,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":1795,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":1797,"t":"code","b":[189,158,119],"m":"lda","o":"f_779E,x","oa":30622},{"a":1800,"t":"code","b":[208,11],"m":"bne","o":"b_0715","oa":1813},{"a":1802,"l":"j_070A","t":"code","b":[169,192],"m":"lda","o":"#$C0","x":[1821]},{"a":1804,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":1806,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":1808,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":1810,"t":"code","b":[76,25,7],"m":"jmp","o":"r_0719","oa":1817},{"a":1813,"l":"b_0715","t":"code","b":[105,0],"m":"adc","o":"#$00","x":[1800]},{"a":1815,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":1817,"l":"r_0719","t":"code","b":[96],"m":"rts","x":[1810]},{"a":1818,"l":"b_071A","t":"code","b":[202],"m":"dex","x":[1787]},{"a":1819,"t":"code","b":[16,219],"m":"bpl","o":"b_06F8","oa":1784},{"a":1821,"t":"code","b":[76,10,7],"m":"jmp","o":"j_070A","oa":1802},{"a":1824,"l":"object_name_pointer","c":"Points $15/$16 at the name of the object or actor in X (low) and A (high): an actor (A 0 and X no more than variable 11, the number of actors) has its name block ($77B4/$7791); an object has the name in its record, at the offset in its byte 14 (find_object); with no name, the empty string at $F0C0","t":"code","b":[201,0],"m":"cmp","o":"#$00","x":[1737,1775,2469,24156]},{"a":1826,"t":"code","b":[208,36],"m":"bne","o":"b_0748","oa":1864},{"a":1828,"t":"code","b":[236,121,254],"m":"cpx","o":"a_FE79","oa":65145},{"a":1831,"t":"code","b":[240,2],"m":"beq","o":"b_072B","oa":1835},{"a":1833,"t":"code","b":[176,29],"m":"bcs","o":"b_0748","oa":1864},{"a":1835,"l":"b_072B","t":"code","b":[189,180,119],"m":"lda","o":"f_77B4,x","oa":30644,"x":[1831]},{"a":1838,"t":"code","b":[24],"m":"clc"},{"a":1839,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":1841,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":1843,"t":"code","b":[189,145,119],"m":"lda","o":"f_7791,x","oa":30609},{"a":1846,"t":"code","b":[208,11],"m":"bne","o":"b_0743","oa":1859},{"a":1848,"t":"code","b":[169,192],"m":"lda","o":"#$C0"},{"a":1850,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":1852,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":1854,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":1856,"t":"code","b":[76,71,7],"m":"jmp","o":"r_0747","oa":1863},{"a":1859,"l":"b_0743","t":"code","b":[105,0],"m":"adc","o":"#$00","x":[1846]},{"a":1861,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":1863,"l":"r_0747","t":"code","b":[96],"m":"rts","x":[1856]},{"a":1864,"l":"b_0748","t":"code","b":[32,103,7],"m":"jsr","o":"find_object","oa":1895,"x":[1826,1833]},{"a":1867,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":1869,"t":"code","b":[208,8],"m":"bne","o":"b_0757","oa":1879},{"a":1871,"t":"code","b":[169,192],"m":"lda","o":"#$C0"},{"a":1873,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":1875,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":1877,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":1879,"l":"b_0757","t":"code","b":[160,14],"m":"ldy","o":"#$0E","x":[1869]},{"a":1881,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":1883,"t":"code","b":[24],"m":"clc"},{"a":1884,"t":"code","b":[101,21],"m":"adc","o":"zpa_15","oa":21},{"a":1886,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":1888,"t":"code","b":[144,2],"m":"bcc","o":"b_0764","oa":1892},{"a":1890,"t":"code","b":[230,22],"m":"inc","o":"zpa_16","oa":22},{"a":1892,"l":"b_0764","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[1888]},{"a":1894,"t":"code","b":[96],"m":"rts"},{"a":1895,"l":"find_object","c":"Finds object X (low) and A (high): looks its owner up in the object table at $6B47 (into $0913); an object owned by an actor is looked for among the inventory's 60 slots ($679D numbers, $67D9/$6815 addresses) and returns A 0 with $15/$16 its record; an object in the room ($0F) among the room's objects ($6A2F/$6A0C numbers), and returns A 1 with Y its index, $17/$18 its offset in the room and $15/$16 its record. Not found: $FF","t":"code","b":[134,21],"m":"stx","o":"zpa_15","oa":21,"x":[1864,2089,2194,2246,22078,22527,22555,22995]},{"a":1897,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":1899,"l":"find_object_in_15","c":"find_object with the object already in $15/$16","t":"code","b":[24],"m":"clc","x":[21016,21279,21456,21502,21723]},{"a":1900,"t":"code","b":[169,71],"m":"lda","o":"#$47"},{"a":1902,"t":"code","b":[101,21],"m":"adc","o":"zpa_15","oa":21},{"a":1904,"t":"code","b":[141,123,7],"m":"sta","o":"find_object_entry_lo","oa":1915},{"a":1907,"t":"code","b":[169,107],"m":"lda","o":"#$6B"},{"a":1909,"t":"code","b":[101,22],"m":"adc","o":"zpa_16","oa":22},{"a":1911,"t":"code","b":[141,124,7],"m":"sta","o":"find_object_entry_hi","oa":1916},{"a":1914,"c":"The table's address is written into this LDA's operand at $0770 and $0777","t":"code","b":[173,255,255],"m":"lda","o":"$FFFF","oa":65535},{"a":1915,"t":"note","l":"find_object_entry_lo","c":"The low byte of the object's entry in the owner table, $6B47 plus the object's number, written at $0770","note":"inside the item at $077A","x":[1904]},{"a":1916,"t":"note","l":"find_object_entry_hi","c":"The high byte of the object's entry, written at $0777. After the LDA, an object owned by an actor (low four bits not $0F) is looked for in the inventory's 60 slots, one owned by the room ($0F) among the room's objects","note":"inside the item at $077A","x":[1911]},{"a":1917,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":1919,"t":"code","b":[141,19,9],"m":"sta","o":"a_0913","oa":2323},{"a":1922,"t":"code","b":[201,15],"m":"cmp","o":"#$0F"},{"a":1924,"t":"code","b":[240,38],"m":"beq","o":"b_07AC","oa":1964},{"a":1926,"t":"code","b":[160,59],"m":"ldy","o":"#$3B"},{"a":1928,"l":"b_0788","t":"code","b":[185,157,103],"m":"lda","o":"f_679D,y","oa":26525,"x":[1961]},{"a":1931,"t":"code","b":[197,21],"m":"cmp","o":"zpa_15","oa":21},{"a":1933,"t":"code","b":[208,25],"m":"bne","o":"b_07A8","oa":1960},{"a":1935,"t":"code","b":[165,22],"m":"lda","o":"zpa_16","oa":22},{"a":1937,"t":"code","b":[208,21],"m":"bne","o":"b_07A8","oa":1960},{"a":1939,"t":"code","b":[185,21,104],"m":"lda","o":"f_6815,y","oa":26645},{"a":1942,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":1944,"t":"code","b":[185,217,103],"m":"lda","o":"f_67D9,y","oa":26585},{"a":1947,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":1949,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1951,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":1953,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1955,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":1957,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1959,"t":"code","b":[96],"m":"rts"},{"a":1960,"l":"b_07A8","t":"code","b":[136],"m":"dey","x":[1933,1937]},{"a":1961,"t":"code","b":[16,221],"m":"bpl","o":"b_0788","oa":1928},{"a":1963,"t":"code","b":[96],"m":"rts"},{"a":1964,"l":"b_07AC","t":"code","b":[172,22,105],"m":"ldy","o":"a_6916","oa":26902,"x":[1924]},{"a":1967,"t":"code","b":[208,3],"m":"bne","o":"b_07B4","oa":1972},{"a":1969,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":1971,"t":"code","b":[96],"m":"rts"},{"a":1972,"l":"b_07B4","t":"code","b":[185,47,106],"m":"lda","o":"f_6A2F,y","oa":27183,"x":[1967,2021]},{"a":1975,"t":"code","b":[197,21],"m":"cmp","o":"zpa_15","oa":21},{"a":1977,"t":"code","b":[208,41],"m":"bne","o":"b_07E4","oa":2020},{"a":1979,"t":"code","b":[185,12,106],"m":"lda","o":"f_6A0C,y","oa":27148},{"a":1982,"t":"code","b":[197,22],"m":"cmp","o":"zpa_16","oa":22},{"a":1984,"t":"code","b":[208,34],"m":"bne","o":"b_07E4","oa":2020},{"a":1986,"t":"code","b":[152],"m":"tya"},{"a":1987,"t":"code","b":[10],"m":"asl","o":"a"},{"a":1988,"t":"code","b":[170],"m":"tax"},{"a":1989,"t":"code","b":[189,222,106],"m":"lda","o":"f_6ADE,x","oa":27358},{"a":1992,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":1994,"t":"code","b":[189,223,106],"m":"lda","o":"f_6ADF,x","oa":27359},{"a":1997,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":1999,"t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882},{"a":2002,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":2005,"t":"code","b":[24],"m":"clc"},{"a":2006,"t":"code","b":[101,23],"m":"adc","o":"zpa_17","oa":23},{"a":2008,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":2010,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":2013,"t":"code","b":[101,24],"m":"adc","o":"zpa_18","oa":24},{"a":2015,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":2017,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":2019,"t":"code","b":[96],"m":"rts"},{"a":2020,"l":"b_07E4","t":"code","b":[136],"m":"dey","x":[1977,1984]},{"a":2021,"t":"code","b":[16,205],"m":"bpl","o":"b_07B4","oa":1972},{"a":2023,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":2025,"t":"code","b":[96],"m":"rts"},{"a":2026,"l":"clear_sentence_row","c":"Clears screen row 18 ($CED0, 40 bytes) to zero","t":"code","b":[169,208],"m":"lda","o":"#$D0","x":[1696]},{"a":2028,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":2030,"t":"code","b":[169,206],"m":"lda","o":"#$CE"},{"a":2032,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":2034,"t":"code","b":[160,39],"m":"ldy","o":"#$27"},{"a":2036,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2038,"l":"b_07F6","t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25,"x":[2041]},{"a":2040,"t":"code","b":[136],"m":"dey"},{"a":2041,"t":"code","b":[16,251],"m":"bpl","o":"b_07F6","oa":2038},{"a":2043,"t":"code","b":[96],"m":"rts"},{"a":2044,"l":"append_name","c":"Copies the name at $15/$16 onto the sentence row at $19/$1A, skipping $40 characters, up to its zero and no further than column 40 ($0912 counts), and moves $19/$1A past it","t":"code","b":[160,255],"m":"ldy","o":"#$FF","x":[1720,1740,1758,1778]},{"a":2046,"l":"b_07FE","t":"code","b":[238,18,9],"m":"inc","o":"a_0912","oa":2322,"x":[2071]},{"a":2049,"t":"code","b":[200],"m":"iny"},{"a":2050,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":2052,"t":"code","b":[201,64],"m":"cmp","o":"#$40"},{"a":2054,"t":"code","b":[240,15],"m":"beq","o":"b_0817","oa":2071},{"a":2056,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":2058,"t":"code","b":[8],"m":"php"},{"a":2059,"t":"code","b":[174,18,9],"m":"ldx","o":"a_0912","oa":2322},{"a":2062,"t":"code","b":[224,40],"m":"cpx","o":"#$28"},{"a":2064,"t":"code","b":[240,2],"m":"beq","o":"b_0814","oa":2068},{"a":2066,"t":"code","b":[176,2],"m":"bcs","o":"b_0816","oa":2070},{"a":2068,"l":"b_0814","t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25,"x":[2064]},{"a":2070,"l":"b_0816","t":"code","b":[40],"m":"plp","x":[2066]},{"a":2071,"l":"b_0817","t":"code","b":[208,229],"m":"bne","o":"b_07FE","oa":2046,"x":[2054]},{"a":2073,"t":"code","b":[200],"m":"iny"},{"a":2074,"t":"code","b":[152],"m":"tya"},{"a":2075,"t":"code","b":[24],"m":"clc"},{"a":2076,"t":"code","b":[101,25],"m":"adc","o":"zpa_19","oa":25},{"a":2078,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":2080,"t":"code","b":[144,2],"m":"bcc","o":"r_0824","oa":2084},{"a":2082,"t":"code","b":[230,26],"m":"inc","o":"zpa_1A","oa":26},{"a":2084,"l":"r_0824","t":"code","b":[96],"m":"rts","x":[2080]},{"a":2085,"l":"object_preposition","c":"Finds the object in $15/$16 and returns its preposition, the top three bits of its byte 12, with Y left at 12; $FF when the object is not found","t":"code","b":[166,21],"m":"ldx","o":"zpa_15","oa":21,"x":[22779,22812]},{"a":2087,"t":"code","b":[165,22],"m":"lda","o":"zpa_16","oa":22},{"a":2089,"t":"code","b":[32,103,7],"m":"jsr","o":"find_object","oa":1895},{"a":2092,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":2094,"t":"code","b":[240,9],"m":"beq","o":"r_0839","oa":2105},{"a":2096,"t":"code","b":[160,12],"m":"ldy","o":"#$0C"},{"a":2098,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":2100,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":2101,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":2102,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":2103,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":2104,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":2105,"l":"r_0839","t":"code","b":[96],"m":"rts","x":[2094]},{"a":2106,"l":"check_sentence_queue","c":"Each pass of the main loop, when the sentence script (global script 2) is not running and a sentence is queued: takes the newest from the queue; one whose two objects are the same is dropped; otherwise its verb and objects go to variables 8, 9 and 10, the verb's entry in the first object's verb table to variable 18, and global script 2 is started to carry it out","t":"code","b":[173,246,118],"m":"lda","o":"a_76F6","oa":30454,"x":[1386]},{"a":2109,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":2111,"t":"code","b":[240,1],"m":"beq","o":"b_0842","oa":2114},{"a":2113,"t":"code","b":[96],"m":"rts"},{"a":2114,"l":"b_0842","t":"code","b":[174,77,9],"m":"ldx","o":"a_094D","oa":2381,"x":[2111]},{"a":2117,"t":"code","b":[16,1],"m":"bpl","o":"b_0848","oa":2120},{"a":2119,"t":"code","b":[96],"m":"rts"},{"a":2120,"l":"b_0848","t":"code","b":[189,102,9],"m":"lda","o":"f_0966,x","oa":2406,"x":[2117]},{"a":2123,"t":"code","b":[240,22],"m":"beq","o":"b_0863","oa":2147},{"a":2125,"t":"code","b":[189,90,9],"m":"lda","o":"f_095A,x","oa":2394},{"a":2128,"t":"code","b":[56],"m":"sec"},{"a":2129,"t":"code","b":[253,108,9],"m":"sbc","o":"f_096C,x","oa":2412},{"a":2132,"t":"code","b":[208,13],"m":"bne","o":"b_0863","oa":2147},{"a":2134,"t":"code","b":[189,96,9],"m":"lda","o":"f_0960,x","oa":2400},{"a":2137,"t":"code","b":[56],"m":"sec"},{"a":2138,"t":"code","b":[253,114,9],"m":"sbc","o":"f_0972,x","oa":2418},{"a":2141,"t":"code","b":[208,4],"m":"bne","o":"b_0863","oa":2147},{"a":2143,"t":"code","b":[206,77,9],"m":"dec","o":"a_094D","oa":2381},{"a":2146,"t":"code","b":[96],"m":"rts"},{"a":2147,"l":"b_0863","t":"code","b":[172,77,9],"m":"ldy","o":"a_094D","oa":2381,"x":[2123,2132,2141]},{"a":2150,"t":"code","b":[206,77,9],"m":"dec","o":"a_094D","oa":2381},{"a":2153,"t":"code","b":[185,84,9],"m":"lda","o":"f_0954,y","oa":2388},{"a":2156,"t":"code","b":[141,118,254],"m":"sta","o":"a_FE76","oa":65142},{"a":2159,"t":"code","b":[185,90,9],"m":"lda","o":"f_095A,y","oa":2394},{"a":2162,"t":"code","b":[141,119,254],"m":"sta","o":"a_FE77","oa":65143},{"a":2165,"t":"code","b":[185,96,9],"m":"lda","o":"f_0960,y","oa":2400},{"a":2168,"t":"code","b":[141,120,253],"m":"sta","o":"a_FD78","oa":64888},{"a":2171,"t":"code","b":[185,108,9],"m":"lda","o":"f_096C,y","oa":2412},{"a":2174,"t":"code","b":[141,120,254],"m":"sta","o":"a_FE78","oa":65144},{"a":2177,"t":"code","b":[185,114,9],"m":"lda","o":"f_0972,y","oa":2418},{"a":2180,"t":"code","b":[141,121,253],"m":"sta","o":"a_FD79","oa":64889},{"a":2183,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":2185,"t":"code","b":[141,81,104],"m":"sta","o":"current_slot","oa":26705},{"a":2188,"t":"code","b":[174,119,254],"m":"ldx","o":"a_FE77","oa":65143},{"a":2191,"t":"code","b":[173,120,253],"m":"lda","o":"a_FD78","oa":64888},{"a":2194,"t":"code","b":[32,103,7],"m":"jsr","o":"find_object","oa":1895},{"a":2197,"t":"code","b":[173,118,254],"m":"lda","o":"a_FE76","oa":65142},{"a":2200,"t":"code","b":[32,123,90],"m":"jsr","o":"find_verb_entry","oa":23163},{"a":2203,"t":"code","b":[141,128,254],"m":"sta","o":"a_FE80","oa":65152},{"a":2206,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":2208,"t":"code","b":[32,159,77],"m":"jsr","o":"start_script","oa":19871},{"a":2211,"t":"code","b":[96],"m":"rts"},{"a":2212,"l":"object_or_actor_xy","c":"The position of the object or actor in X (low) and A (high) in $FC18/$FC19: an actor's from its walk record when it is in the room ($FF when it is not); an object in the inventory, its owner's; an object in the room, its walk-to point ($69A3, $69C6 times 4) and the direction to face ($69E9, into $FC1A), moved to the nearest point a walk box allows ($17DC). $FF when not found, 0 when found","t":"code","b":[201,0],"m":"cmp","o":"#$00","x":[20383,20407,23821]},{"a":2214,"t":"code","b":[208,30],"m":"bne","o":"b_08C6","oa":2246},{"a":2216,"t":"code","b":[236,121,254],"m":"cpx","o":"a_FE79","oa":65145},{"a":2219,"t":"code","b":[240,2],"m":"beq","o":"b_08AF","oa":2223},{"a":2221,"t":"code","b":[176,23],"m":"bcs","o":"b_08C6","oa":2246},{"a":2223,"l":"b_08AF","t":"code","b":[188,86,253],"m":"ldy","o":"f_FD56,x","oa":64854,"x":[2219,2261]},{"a":2226,"t":"code","b":[16,3],"m":"bpl","o":"b_08B7","oa":2231},{"a":2228,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":2230,"t":"code","b":[96],"m":"rts"},{"a":2231,"l":"b_08B7","t":"code","b":[185,230,252],"m":"lda","o":"f_FCE6,y","oa":64742,"x":[2226]},{"a":2234,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":2237,"t":"code","b":[185,234,252],"m":"lda","o":"f_FCEA,y","oa":64746},{"a":2240,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":2243,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2245,"t":"code","b":[96],"m":"rts"},{"a":2246,"l":"b_08C6","t":"code","b":[32,103,7],"m":"jsr","o":"find_object","oa":1895,"x":[2214,2221]},{"a":2249,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":2251,"t":"code","b":[208,1],"m":"bne","o":"b_08CE","oa":2254},{"a":2253,"t":"code","b":[96],"m":"rts"},{"a":2254,"l":"b_08CE","t":"code","b":[201,0],"m":"cmp","o":"#$00","x":[2251]},{"a":2256,"t":"code","b":[208,6],"m":"bne","o":"room_object_walk_point","oa":2264},{"a":2258,"t":"code","b":[174,19,9],"m":"ldx","o":"a_0913","oa":2323},{"a":2261,"t":"code","b":[76,175,8],"m":"jmp","o":"b_08AF","oa":2223},{"a":2264,"l":"room_object_walk_point","c":"The walk-to point of room object Y ($69A3, and $69C6 times 4) and the direction to face ($69E9, into $FC1A), moved to the nearest point a walk box allows; returns 0","t":"code","b":[185,233,105],"m":"lda","o":"f_69E9,y","oa":27113,"x":[2256,21747,22534,22562]},{"a":2267,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":2269,"t":"code","b":[141,26,252],"m":"sta","o":"a_FC1A","oa":64538},{"a":2272,"t":"code","b":[185,163,105],"m":"lda","o":"f_69A3,y","oa":27043},{"a":2275,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":2278,"t":"code","b":[185,198,105],"m":"lda","o":"f_69C6,y","oa":27078},{"a":2281,"t":"code","b":[10],"m":"asl","o":"a"},{"a":2282,"t":"code","b":[10],"m":"asl","o":"a"},{"a":2283,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":2286,"l":"j_08EE","t":"code","b":[173,24,252],"m":"lda","o":"a_FC18","oa":64536,"x":[2378]},{"a":2289,"t":"code","b":[141,51,252],"m":"sta","o":"a_FC33","oa":64563},{"a":2292,"t":"code","b":[173,25,252],"m":"lda","o":"a_FC19","oa":64537},{"a":2295,"t":"code","b":[141,52,252],"m":"sta","o":"a_FC34","oa":64564},{"a":2298,"t":"code","b":[173,3,105],"m":"lda","o":"current_room","oa":26883},{"a":2301,"t":"code","b":[141,53,252],"m":"sta","o":"a_FC35","oa":64565},{"a":2304,"t":"code","b":[32,220,23],"m":"jsr","o":"adjust_to_box","oa":6108},{"a":2307,"t":"code","b":[173,51,252],"m":"lda","o":"a_FC33","oa":64563},{"a":2310,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":2313,"t":"code","b":[173,52,252],"m":"lda","o":"a_FC34","oa":64564},{"a":2316,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":2319,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2321,"t":"code","b":[96],"m":"rts"},{"a":2322,"l":"a_0912","c":"The sentence row's column, counted by append_name","t":"byte","b":[0],"x":[1701,2046,2059]},{"a":2323,"l":"a_0913","c":"The owner of the object find_object looked up last (the low four bits of its byte in the object table)","t":"byte","b":[0],"x":[1919,2258]},{"a":2324,"l":"actor_near_actor","c":"For walkActorToActor: a point beside the second actor (in X), on the side the first actor (in Y) is on: the distance the opcode gave added to the second actor's X when the first is to its right, taken from it when it is to its left ($0933 and $0938, the two LDA operands, written by the opcode), with 8 added when the result has bit 7 set; the second actor's Y; then moved into a walk box as object_or_actor_xy does","t":"code","b":[185,86,253],"m":"lda","o":"f_FD56,y","oa":64854,"x":[22635]},{"a":2327,"t":"code","b":[168],"m":"tay"},{"a":2328,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":2331,"t":"code","b":[170],"m":"tax"},{"a":2332,"t":"code","b":[189,234,252],"m":"lda","o":"f_FCEA,x","oa":64746},{"a":2335,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":2338,"t":"code","b":[189,230,252],"m":"lda","o":"f_FCE6,x","oa":64742},{"a":2341,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":2344,"t":"code","b":[185,230,252],"m":"lda","o":"f_FCE6,y","oa":64742},{"a":2347,"t":"code","b":[205,24,252],"m":"cmp","o":"a_FC18","oa":64536},{"a":2350,"t":"code","b":[144,7],"m":"bcc","o":"b_0937","oa":2359},{"a":2352,"t":"code","b":[240,5],"m":"beq","o":"b_0937","oa":2359},{"a":2354,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":2355,"t":"note","l":"near_actor_right","c":"The distance to stand to the right of the second actor, written by op_walk_actor_to_actor at $5860","note":"inside the item at $0932","x":[22624]},{"a":2356,"t":"code","b":[76,57,9],"m":"jmp","o":"j_0939","oa":2361},{"a":2359,"l":"b_0937","t":"code","b":[169,252],"m":"lda","o":"#$FC","x":[2350,2352]},{"a":2360,"t":"note","l":"near_actor_left","c":"The same distance made negative, to stand to its left, written at $5868; the sum is the X to walk to","note":"inside the item at $0937","x":[22632]},{"a":2361,"l":"j_0939","t":"code","b":[24],"m":"clc","x":[2356]},{"a":2362,"t":"code","b":[109,24,252],"m":"adc","o":"a_FC18","oa":64536},{"a":2365,"t":"code","b":[16,3],"m":"bpl","o":"b_0942","oa":2370},{"a":2367,"t":"code","b":[24],"m":"clc"},{"a":2368,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":2370,"l":"b_0942","t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536,"x":[2365]},{"a":2373,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":2375,"t":"code","b":[141,26,252],"m":"sta","o":"a_FC1A","oa":64538},{"a":2378,"t":"code","b":[76,238,8],"m":"jmp","o":"j_08EE","oa":2286},{"a":2381,"l":"a_094D","c":"The newest entry in the sentence queue, $FF when it is empty","t":"byte","b":[255],"x":[2114,2143,2147,2150,20607,22819,22822,22834,22846,22901,22934,22945,22978,33256]},{"a":2382,"l":"a_094E","c":"The sentence run_verb_script carries out now: its verb, the first object ($094F/$0950) and the second ($0952/$0953)","t":"byte","b":[0],"x":[22907,23007,23020,23035,23038,23081,23119]},{"a":2383,"l":"a_094F","c":"The low byte of the sentence's first object, for run_verb_script","t":"byte","b":[0],"x":[22913,22989,23134]},{"a":2384,"l":"a_0950","c":"The high byte of the sentence's first object; $0951 after it is not read","t":"byte","b":[0,0],"x":[22919,22992,23140]},{"a":2386,"l":"a_0952","c":"The low byte of the sentence's second object","t":"byte","b":[0],"x":[22925,23146]},{"a":2387,"l":"a_0953","c":"The high byte of the sentence's second object","t":"byte","b":[0],"x":[22931,23152]},{"a":2388,"l":"f_0954","c":"The sentence queue, six entries: the verbs; then the first objects' low bytes ($095A) and high bytes ($0960), whether there is a second object ($0966), and the second objects' low bytes ($096C) and high bytes ($0972)","t":"byte","b":[0,0,0,0,0,0],"x":[2153,22852,22904,22948]},{"a":2394,"l":"f_095A","c":"The sentence queue's first objects, low bytes, one for each of the six entries","t":"byte","b":[0,0,0,0,0,0],"x":[2125,2159,22861,22910,22954]},{"a":2400,"l":"f_0960","c":"The sentence queue's first objects, high bytes","t":"byte","b":[0,0,0,0,0,0],"x":[2134,2165,22867,22916,22960]},{"a":2406,"l":"f_0966","c":"For each entry of the sentence queue, whether it has a second object","t":"byte","b":[0,0,0,0,0,0],"x":[2120,22891]},{"a":2412,"l":"f_096C","c":"The sentence queue's second objects, low bytes","t":"byte","b":[0,0,0,0,0,0],"x":[2129,2171,22876,22922,22966]},{"a":2418,"l":"f_0972","c":"The sentence queue's second objects, high bytes","t":"byte","b":[0,0,0,0,0,0],"x":[2138,2177,22882,22928,22972]},{"a":2424,"l":"copy_string_to_message","c":"Copies the zero-ended string at $15/$16 into the message buffer at $0200 from X on, leaving out $40 characters; X ends past it","t":"code","b":[152],"m":"tya","x":[2476,2497]},{"a":2425,"t":"code","b":[72],"m":"pha"},{"a":2426,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":2428,"l":"b_097C","t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21,"x":[2441]},{"a":2430,"t":"code","b":[240,9],"m":"beq","o":"b_0989","oa":2441},{"a":2432,"t":"code","b":[201,64],"m":"cmp","o":"#$40"},{"a":2434,"t":"code","b":[240,4],"m":"beq","o":"b_0988","oa":2440},{"a":2436,"t":"code","b":[157,0,2],"m":"sta","o":"f_0200,x","oa":512},{"a":2439,"t":"code","b":[232],"m":"inx"},{"a":2440,"l":"b_0988","t":"code","b":[200],"m":"iny","x":[2434]},{"a":2441,"l":"b_0989","t":"code","b":[208,241],"m":"bne","o":"b_097C","oa":2428,"x":[2430]},{"a":2443,"t":"code","b":[104],"m":"pla"},{"a":2444,"t":"code","b":[168],"m":"tay"},{"a":2445,"t":"code","b":[96],"m":"rts"},{"a":2446,"l":"message_object_name","c":"For a message's escape code: the next byte of the text names a variable holding an object's number; that object's name goes into the message","t":"code","b":[138],"m":"txa","x":[8754]},{"a":2447,"t":"code","b":[72],"m":"pha"},{"a":2448,"t":"code","b":[200],"m":"iny"},{"a":2449,"t":"code","b":[177,199],"m":"lda","o":"(zpp_C7),y","oa":199},{"a":2451,"t":"code","b":[170],"m":"tax"},{"a":2452,"t":"code","b":[152],"m":"tya"},{"a":2453,"t":"code","b":[72],"m":"pha"},{"a":2454,"t":"code","b":[189,110,254],"m":"lda","o":"a_FE6E,x","oa":65134},{"a":2457,"t":"code","b":[141,80,10],"m":"sta","o":"a_0A50","oa":2640},{"a":2460,"t":"code","b":[189,111,253],"m":"lda","o":"f_FD6F,x","oa":64879},{"a":2463,"t":"code","b":[141,81,10],"m":"sta","o":"a_0A51","oa":2641},{"a":2466,"t":"code","b":[174,80,10],"m":"ldx","o":"a_0A50","oa":2640},{"a":2469,"t":"code","b":[32,32,7],"m":"jsr","o":"object_name_pointer","oa":1824},{"a":2472,"t":"code","b":[104],"m":"pla"},{"a":2473,"t":"code","b":[168],"m":"tay"},{"a":2474,"t":"code","b":[104],"m":"pla"},{"a":2475,"t":"code","b":[170],"m":"tax"},{"a":2476,"t":"code","b":[32,120,9],"m":"jsr","o":"copy_string_to_message","oa":2424},{"a":2479,"t":"code","b":[202],"m":"dex"},{"a":2480,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":2482,"t":"code","b":[96],"m":"rts"},{"a":2483,"l":"message_string_var","c":"For a message's escape code: the text that starts at the variable the next byte names (in the variables' low bytes from $FE6E) goes into the message","t":"code","b":[200],"m":"iny","x":[8744]},{"a":2484,"t":"code","b":[177,199],"m":"lda","o":"(zpp_C7),y","oa":199},{"a":2486,"t":"code","b":[24],"m":"clc"},{"a":2487,"t":"code","b":[105,110],"m":"adc","o":"#$6E"},{"a":2489,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":2491,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2493,"t":"code","b":[105,254],"m":"adc","o":"#$FE"},{"a":2495,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":2497,"t":"code","b":[32,120,9],"m":"jsr","o":"copy_string_to_message","oa":2424},{"a":2500,"t":"code","b":[202],"m":"dex"},{"a":2501,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":2503,"t":"code","b":[96],"m":"rts"},{"a":2504,"l":"message_number","c":"For a message's escape code: the value of the variable the next byte names goes into the message in decimal","t":"code","b":[138],"m":"txa","x":[8734]},{"a":2505,"t":"code","b":[72],"m":"pha"},{"a":2506,"t":"code","b":[200],"m":"iny"},{"a":2507,"t":"code","b":[177,199],"m":"lda","o":"(zpp_C7),y","oa":199},{"a":2509,"t":"code","b":[170],"m":"tax"},{"a":2510,"t":"code","b":[189,110,254],"m":"lda","o":"a_FE6E,x","oa":65134},{"a":2513,"t":"code","b":[141,80,10],"m":"sta","o":"a_0A50","oa":2640},{"a":2516,"t":"code","b":[189,111,253],"m":"lda","o":"f_FD6F,x","oa":64879},{"a":2519,"t":"code","b":[141,81,10],"m":"sta","o":"a_0A51","oa":2641},{"a":2522,"t":"code","b":[104],"m":"pla"},{"a":2523,"t":"code","b":[170],"m":"tax"},{"a":2524,"t":"code","b":[32,227,9],"m":"jsr","o":"print_decimal","oa":2531},{"a":2527,"t":"code","b":[202],"m":"dex"},{"a":2528,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":2530,"t":"code","b":[96],"m":"rts"},{"a":2531,"l":"print_decimal","c":"Writes the 16-bit number in $0A50/$0A51 into the message buffer in decimal: counts how many times each power of ten from the table at $0A47 goes into it, leaving out zeros before the first digit; the last digit is always written","t":"code","b":[152],"m":"tya","x":[2524]},{"a":2532,"t":"code","b":[72],"m":"pha"},{"a":2533,"t":"code","b":[142,79,10],"m":"stx","o":"a_0A4F","oa":2639},{"a":2536,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2538,"t":"code","b":[142,82,10],"m":"stx","o":"a_0A52","oa":2642},{"a":2541,"l":"b_09ED","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[2585]},{"a":2543,"l":"j_09EF","t":"code","b":[173,80,10],"m":"lda","o":"a_0A50","oa":2640,"x":[2565]},{"a":2546,"t":"code","b":[56],"m":"sec"},{"a":2547,"t":"code","b":[253,71,10],"m":"sbc","o":"f_0A47,x","oa":2631},{"a":2550,"t":"code","b":[141,80,10],"m":"sta","o":"a_0A50","oa":2640},{"a":2553,"t":"code","b":[173,81,10],"m":"lda","o":"a_0A51","oa":2641},{"a":2556,"t":"code","b":[253,72,10],"m":"sbc","o":"f_0A48,x","oa":2632},{"a":2559,"t":"code","b":[144,7],"m":"bcc","o":"b_0A08","oa":2568},{"a":2561,"t":"code","b":[141,81,10],"m":"sta","o":"a_0A51","oa":2641},{"a":2564,"t":"code","b":[200],"m":"iny"},{"a":2565,"t":"code","b":[76,239,9],"m":"jmp","o":"j_09EF","oa":2543},{"a":2568,"l":"b_0A08","t":"code","b":[173,80,10],"m":"lda","o":"a_0A50","oa":2640,"x":[2559]},{"a":2571,"t":"code","b":[125,71,10],"m":"adc","o":"f_0A47,x","oa":2631},{"a":2574,"t":"code","b":[141,80,10],"m":"sta","o":"a_0A50","oa":2640},{"a":2577,"t":"code","b":[152],"m":"tya"},{"a":2578,"t":"code","b":[32,44,10],"m":"jsr","o":"put_digit","oa":2604},{"a":2581,"t":"code","b":[232],"m":"inx"},{"a":2582,"t":"code","b":[232],"m":"inx"},{"a":2583,"t":"code","b":[224,8],"m":"cpx","o":"#$08"},{"a":2585,"t":"code","b":[144,210],"m":"bcc","o":"b_09ED","oa":2541},{"a":2587,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":2589,"t":"code","b":[141,82,10],"m":"sta","o":"a_0A52","oa":2642},{"a":2592,"t":"code","b":[173,80,10],"m":"lda","o":"a_0A50","oa":2640},{"a":2595,"t":"code","b":[32,44,10],"m":"jsr","o":"put_digit","oa":2604},{"a":2598,"t":"code","b":[104],"m":"pla"},{"a":2599,"t":"code","b":[168],"m":"tay"},{"a":2600,"t":"code","b":[174,79,10],"m":"ldx","o":"a_0A4F","oa":2639},{"a":2603,"t":"code","b":[96],"m":"rts"},{"a":2604,"l":"put_digit","c":"Writes digit A into the message buffer as its character ($30 plus A), unless it is a leading zero ($0A52 still 0)","t":"code","b":[24],"m":"clc","x":[2578,2595]},{"a":2605,"t":"code","b":[105,48],"m":"adc","o":"#$30"},{"a":2607,"t":"code","b":[201,48],"m":"cmp","o":"#$30"},{"a":2609,"t":"code","b":[208,6],"m":"bne","o":"b_0A39","oa":2617},{"a":2611,"t":"code","b":[172,82,10],"m":"ldy","o":"a_0A52","oa":2642},{"a":2614,"t":"code","b":[208,1],"m":"bne","o":"b_0A39","oa":2617},{"a":2616,"t":"code","b":[96],"m":"rts"},{"a":2617,"l":"b_0A39","t":"code","b":[172,79,10],"m":"ldy","o":"a_0A4F","oa":2639,"x":[2609,2614]},{"a":2620,"t":"code","b":[153,0,2],"m":"sta","o":"f_0200,y","oa":512},{"a":2623,"t":"code","b":[141,82,10],"m":"sta","o":"a_0A52","oa":2642},{"a":2626,"t":"code","b":[200],"m":"iny"},{"a":2627,"t":"code","b":[140,79,10],"m":"sty","o":"a_0A4F","oa":2639},{"a":2630,"t":"code","b":[96],"m":"rts"},{"a":2631,"l":"f_0A47","c":"The powers of ten print_decimal divides by, as words: 10000, 1000, 100, 10","t":"byte","b":[16],"x":[2547,2571]},{"a":2632,"l":"f_0A48","c":"The powers of ten's high bytes ($27, $03, $00, $00): the same table read a byte on, by the subtraction at $09FC","t":"byte","b":[39,232,3,100,0,10,0],"x":[2556]},{"a":2639,"l":"a_0A4F","c":"Where print_decimal writes next in the message buffer","t":"byte","b":[0],"x":[2533,2600,2617,2627]},{"a":2640,"l":"a_0A50","c":"The number print_decimal writes, low and high bytes","t":"byte","b":[0],"x":[2457,2466,2513,2543,2550,2568,2574,2592]},{"a":2641,"l":"a_0A51","c":"The high byte of the number print_decimal writes, set by message_object_name ($099F) and message_number ($09D7)","t":"byte","b":[0],"x":[2463,2519,2553,2561]},{"a":2642,"l":"a_0A52","c":"0 until print_decimal has written its first digit, so zeros before it are left out","t":"byte","b":[0],"x":[2538,2589,2611,2623]},{"a":2643,"l":"save_game","c":"Saves the game on the disk in the drive: refuses a game disk (check_game_disk returns 1 for it); writes $5A, the mark of a save disk, at sector 0 of track 1, then the script variables and the state after them ($FD6F, $283 bytes) at sector 0 of track 5, seven bytes from $00B6 at track 6, the verbs' table ($F0D9, $A0 bytes) at track 7, and everything from $679D to the end of the heap ($6063 bytes) from track 8 on. disk_write sends whole pages, so each piece is rounded up to whole sectors of 256 bytes from its address. Returns 0","t":"code","b":[32,68,11],"m":"jsr","o":"check_game_disk","oa":2884,"x":[24199]},{"a":2646,"t":"code","b":[169,90],"m":"lda","o":"#$5A"},{"a":2648,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":2650,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2652,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":2654,"t":"code","b":[32,93,58],"m":"jsr","o":"disk_seek","oa":14941},{"a":2657,"t":"code","b":[162,21],"m":"ldx","o":"#$15"},{"a":2659,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":2661,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":2663,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":2666,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2668,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":2671,"t":"code","b":[32,209,58],"m":"jsr","o":"disk_write","oa":15057},{"a":2674,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2676,"t":"code","b":[160,5],"m":"ldy","o":"#$05"},{"a":2678,"t":"code","b":[32,93,58],"m":"jsr","o":"disk_seek","oa":14941},{"a":2681,"t":"code","b":[162,111],"m":"ldx","o":"#$6F"},{"a":2683,"t":"code","b":[160,253],"m":"ldy","o":"#$FD"},{"a":2685,"t":"code","b":[169,131],"m":"lda","o":"#$83"},{"a":2687,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":2690,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":2692,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":2695,"t":"code","b":[32,209,58],"m":"jsr","o":"disk_write","oa":15057},{"a":2698,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2700,"t":"code","b":[160,6],"m":"ldy","o":"#$06"},{"a":2702,"t":"code","b":[32,93,58],"m":"jsr","o":"disk_seek","oa":14941},{"a":2705,"t":"code","b":[162,182],"m":"ldx","o":"#$B6"},{"a":2707,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":2709,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":2711,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":2714,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2716,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":2719,"t":"code","b":[32,209,58],"m":"jsr","o":"disk_write","oa":15057},{"a":2722,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2724,"t":"code","b":[160,7],"m":"ldy","o":"#$07"},{"a":2726,"t":"code","b":[32,93,58],"m":"jsr","o":"disk_seek","oa":14941},{"a":2729,"t":"code","b":[162,217],"m":"ldx","o":"#$D9"},{"a":2731,"t":"code","b":[160,240],"m":"ldy","o":"#$F0"},{"a":2733,"t":"code","b":[169,160],"m":"lda","o":"#$A0"},{"a":2735,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":2738,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2740,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":2743,"t":"code","b":[32,209,58],"m":"jsr","o":"disk_write","oa":15057},{"a":2746,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2748,"t":"code","b":[160,8],"m":"ldy","o":"#$08"},{"a":2750,"t":"code","b":[32,93,58],"m":"jsr","o":"disk_seek","oa":14941},{"a":2753,"t":"code","b":[162,157],"m":"ldx","o":"#$9D"},{"a":2755,"t":"code","b":[160,103],"m":"ldy","o":"#$67"},{"a":2757,"t":"code","b":[169,99],"m":"lda","o":"#$63"},{"a":2759,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":2762,"t":"code","b":[169,96],"m":"lda","o":"#$60"},{"a":2764,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":2767,"t":"code","b":[32,209,58],"m":"jsr","o":"disk_write","oa":15057},{"a":2770,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2772,"t":"code","b":[96],"m":"rts"},{"a":2773,"l":"load_game","c":"Loads a saved game: refuses a game disk (1); returns 2 when sector 0 of track 1 does not start with the mark $5A; otherwise reads the same tracks back to where save_game took them from, and returns 3","t":"code","b":[32,68,11],"m":"jsr","o":"check_game_disk","oa":2884,"x":[24193]},{"a":2776,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":2778,"t":"code","b":[201,90],"m":"cmp","o":"#$5A"},{"a":2780,"t":"code","b":[240,3],"m":"beq","o":"b_0AE1","oa":2785},{"a":2782,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":2784,"t":"code","b":[96],"m":"rts"},{"a":2785,"l":"b_0AE1","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[2780]},{"a":2787,"t":"code","b":[160,5],"m":"ldy","o":"#$05"},{"a":2789,"t":"code","b":[32,120,58],"m":"jsr","o":"disk_read_start","oa":14968},{"a":2792,"t":"code","b":[162,111],"m":"ldx","o":"#$6F"},{"a":2794,"t":"code","b":[160,253],"m":"ldy","o":"#$FD"},{"a":2796,"t":"code","b":[169,131],"m":"lda","o":"#$83"},{"a":2798,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":2801,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":2803,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":2806,"t":"code","b":[32,169,58],"m":"jsr","o":"disk_read_bytes","oa":15017},{"a":2809,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2811,"t":"code","b":[160,6],"m":"ldy","o":"#$06"},{"a":2813,"t":"code","b":[32,120,58],"m":"jsr","o":"disk_read_start","oa":14968},{"a":2816,"t":"code","b":[162,182],"m":"ldx","o":"#$B6"},{"a":2818,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":2820,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":2822,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":2825,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2827,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":2830,"t":"code","b":[32,169,58],"m":"jsr","o":"disk_read_bytes","oa":15017},{"a":2833,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2835,"t":"code","b":[160,7],"m":"ldy","o":"#$07"},{"a":2837,"t":"code","b":[32,120,58],"m":"jsr","o":"disk_read_start","oa":14968},{"a":2840,"t":"code","b":[162,217],"m":"ldx","o":"#$D9"},{"a":2842,"t":"code","b":[160,240],"m":"ldy","o":"#$F0"},{"a":2844,"t":"code","b":[169,160],"m":"lda","o":"#$A0"},{"a":2846,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":2849,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2851,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":2854,"t":"code","b":[32,169,58],"m":"jsr","o":"disk_read_bytes","oa":15017},{"a":2857,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2859,"t":"code","b":[160,8],"m":"ldy","o":"#$08"},{"a":2861,"t":"code","b":[32,120,58],"m":"jsr","o":"disk_read_start","oa":14968},{"a":2864,"t":"code","b":[162,157],"m":"ldx","o":"#$9D"},{"a":2866,"t":"code","b":[160,103],"m":"ldy","o":"#$67"},{"a":2868,"t":"code","b":[169,99],"m":"lda","o":"#$63"},{"a":2870,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":2873,"t":"code","b":[169,96],"m":"lda","o":"#$60"},{"a":2875,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":2878,"t":"code","b":[32,169,58],"m":"jsr","o":"disk_read_bytes","oa":15017},{"a":2881,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":2883,"t":"code","b":[96],"m":"rts"},{"a":2884,"l":"check_game_disk","c":"Reads the first byte of track 1, sector 0, into $15; when it is \"0\", \"1\" or \"2\", the disk is one of the game's own: it drops its caller's return address, so the save or load returns 1 at once. Otherwise returns 0","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[2643,2773]},{"a":2886,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":2888,"t":"code","b":[32,120,58],"m":"jsr","o":"disk_read_start","oa":14968},{"a":2891,"t":"code","b":[32,24,59],"m":"jsr","o":"disk_byte","oa":15128},{"a":2894,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":2896,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":2898,"t":"code","b":[201,49],"m":"cmp","o":"#$31"},{"a":2900,"t":"code","b":[240,11],"m":"beq","o":"b_0B61","oa":2913},{"a":2902,"t":"code","b":[201,50],"m":"cmp","o":"#$32"},{"a":2904,"t":"code","b":[240,7],"m":"beq","o":"b_0B61","oa":2913},{"a":2906,"t":"code","b":[201,48],"m":"cmp","o":"#$30"},{"a":2908,"t":"code","b":[240,3],"m":"beq","o":"b_0B61","oa":2913},{"a":2910,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2912,"t":"code","b":[96],"m":"rts"},{"a":2913,"l":"b_0B61","t":"code","b":[104],"m":"pla","x":[2900,2904,2908]},{"a":2914,"t":"code","b":[104],"m":"pla"},{"a":2915,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":2917,"t":"code","b":[96],"m":"rts"},{"a":2918,"l":"a_0B66","c":"The X positions of the four actor sprites for this frame, low bytes ($0B66-$0B69), copied in by the frame interrupt from $1174-$1177","t":"byte","b":[0],"x":[3122,4627]},{"a":2919,"l":"a_0B67","c":"The second actor sprite's X for this frame, low byte, copied from $1175","t":"byte","b":[0],"x":[3133,4633]},{"a":2920,"l":"a_0B68","c":"The third actor sprite's X for this frame, low byte, copied from $1176","t":"byte","b":[0],"x":[3144,4639]},{"a":2921,"l":"a_0B69","c":"The fourth actor sprite's X for this frame, low byte, copied from $1177; the three bytes after it are not read","t":"byte","b":[0,0,0,0],"x":[3155,4645]},{"a":2925,"l":"a_0B6D","c":"The cursor sprite's X position (sprite 7), low byte","t":"byte","b":[0],"x":[3070,3161,4899,4913]},{"a":2926,"l":"a_0B6E","c":"The first actor sprite's colour; with $0B6F-$0B71 the colours of the four actor sprites, used when bit 3 of the lights is set","t":"byte","b":[1],"x":[3223,7671]},{"a":2927,"l":"a_0B6F","c":"The second actor sprite's colour","t":"byte","b":[2],"x":[3233]},{"a":2928,"l":"a_0B70","c":"The third actor sprite's colour","t":"byte","b":[3],"x":[3243]},{"a":2929,"l":"a_0B71","c":"The fourth actor sprite's colour; the three bytes after it (5, 6 and 7 at start-up) are not read","t":"byte","b":[4,5,6,7],"x":[3253]},{"a":2933,"l":"a_0B75","c":"The cursor sprite's colour, stepped through the greys at $1167 by the frame interrupt","t":"byte","b":[1],"x":[3272,4860,5092]},{"a":2934,"l":"a_0B76","c":"Which hardware sprite (0 to 3) draws the first actor slot; $0B77-$0B79 the other three, all copied from $1178-$117B by the frame interrupt","t":"byte","b":[0],"x":[2979,3117,3176,3219,3450,3582,3722,3862,4002,4142,4282,4651]},{"a":2935,"l":"a_0B77","c":"The hardware sprite that draws the second actor slot","t":"byte","b":[1],"x":[2997,3128,3183,3229,3457,3589,3729,3869,4009,4149,4289,4657]},{"a":2936,"l":"a_0B78","c":"The hardware sprite that draws the third actor slot","t":"byte","b":[2],"x":[3015,3139,3190,3239,3464,3596,3736,3876,4016,4156,4296,4663]},{"a":2937,"l":"a_0B79","c":"The hardware sprite that draws the fourth actor slot; the three bytes after it (4, 5 and 6 at start-up) are not read","t":"byte","b":[3,4,5,6],"x":[3033,3150,3197,3249,3471,3603,3743,3883,4023,4163,4303,4669]},{"a":2941,"l":"a_0B7D","c":"Bit 8 of each actor sprite's X position ($0B7D-$0B80), copied from $1170-$1173","t":"byte","b":[0],"x":[2976,4675]},{"a":2942,"l":"a_0B7E","c":"Bit 8 of the second actor sprite's X, copied from $1171","t":"byte","b":[0],"x":[2994,4681]},{"a":2943,"l":"a_0B7F","c":"Bit 8 of the third actor sprite's X, copied from $1172","t":"byte","b":[0],"x":[3012,4687]},{"a":2944,"l":"a_0B80","c":"Bit 8 of the fourth actor sprite's X, copied from $1173; the three bytes after it are not read","t":"byte","b":[0,0,0,0],"x":[3030,4693]},{"a":2948,"l":"a_0B84","c":"Bit 8 of the cursor sprite's X position","t":"byte","b":[0],"x":[3050,4896,4910]},{"a":2949,"l":"a_0B85","c":"The X high bits of all the sprites, put together by arm_raster_chain for $D010","t":"byte","b":[0],"x":[2973,2988,2991,3006,3009,3024,3027,3042,3045,3059,3062,3409]},{"a":2950,"l":"a_0B86","c":"The sprites' X expansion ($D01D), set by the raster interrupt at $0C1C","t":"byte","b":[0],"x":[3167]},{"a":2951,"l":"a_0B87","c":"The cursor sprite's Y position","t":"byte","b":[0],"x":[3278,4902,4916]},{"a":2952,"l":"a_0B88","c":"Where the raster interrupts above and inside the picture (raster_top, raster_room and the band interrupts) keep Y while they run ($0B89 A, $0B8A X); the frame interrupt at $117C keeps its registers on the stack","t":"byte","b":[0],"x":[3106,3345,3349,3510,3514,3566,3576,3650,3654,3706,3716,3790,3794,3846,3856,3930,3934,3986,3996,4070,4074,4126,4136,4210,4214,4266,4276,4350,4354,4431]},{"a":2953,"l":"a_0B89","c":"Where raster_top, raster_room and the band interrupts that change the sprite pointers keep A while they run","t":"byte","b":[0],"x":[3100,3339,3352,3504,3570,3644,3710,3784,3850,3924,3990,4064,4130,4204,4270,4344,4357,4434]},{"a":2954,"l":"a_0B8A","c":"Where raster_top, raster_room and the band interrupts that change the sprite pointers keep X while they run","t":"byte","b":[0],"x":[3103,3342,3444,3507,3573,3647,3713,3787,3853,3927,3993,4067,4133,4207,4273,4347]},{"a":2955,"l":"f_0B8B","c":"The four actor sprites' X positions by hardware sprite, two bytes apart ($0B8B, $0B8D, $0B8F, $0B91), which the room's interrupt writes to $D000-$D006; the bytes between are not read","t":"byte","b":[0,0],"x":[3125,3136,3147,3158,3385]},{"a":2957,"l":"a_0B8D","c":"Hardware sprite 1's X, written to $D002 by the room's interrupt","t":"byte","b":[0,0],"x":[3391]},{"a":2959,"l":"a_0B8F","c":"Hardware sprite 2's X, written to $D004 by the room's interrupt","t":"byte","b":[0,0],"x":[3397]},{"a":2961,"l":"a_0B91","c":"Hardware sprite 3's X, written to $D006 by the room's interrupt; the nine bytes after it are not read","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[3403]},{"a":2969,"t":"byte","b":[0,0]},{"a":2971,"l":"arm_raster_chain","c":"Starts the raster interrupt chain for the next frame: puts the four actor sprites' X high bits (each shifted to its hardware sprite's bit) and the cursor's into $D010, sets the cursor's X, and asks for an interrupt at line $29, handled at $0C1C","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[4522,4701]},{"a":2973,"t":"code","b":[141,133,11],"m":"sta","o":"a_0B85","oa":2949},{"a":2976,"t":"code","b":[173,125,11],"m":"lda","o":"a_0B7D","oa":2941},{"a":2979,"t":"code","b":[174,118,11],"m":"ldx","o":"a_0B76","oa":2934},{"a":2982,"t":"code","b":[240,4],"m":"beq","o":"b_0BAC","oa":2988},{"a":2984,"l":"b_0BA8","t":"code","b":[10],"m":"asl","o":"a","x":[2986]},{"a":2985,"t":"code","b":[202],"m":"dex"},{"a":2986,"t":"code","b":[208,252],"m":"bne","o":"b_0BA8","oa":2984},{"a":2988,"l":"b_0BAC","t":"code","b":[13,133,11],"m":"ora","o":"a_0B85","oa":2949,"x":[2982]},{"a":2991,"t":"code","b":[141,133,11],"m":"sta","o":"a_0B85","oa":2949},{"a":2994,"t":"code","b":[173,126,11],"m":"lda","o":"a_0B7E","oa":2942},{"a":2997,"t":"code","b":[174,119,11],"m":"ldx","o":"a_0B77","oa":2935},{"a":3000,"t":"code","b":[240,4],"m":"beq","o":"b_0BBE","oa":3006},{"a":3002,"l":"b_0BBA","t":"code","b":[10],"m":"asl","o":"a","x":[3004]},{"a":3003,"t":"code","b":[202],"m":"dex"},{"a":3004,"t":"code","b":[208,252],"m":"bne","o":"b_0BBA","oa":3002},{"a":3006,"l":"b_0BBE","t":"code","b":[13,133,11],"m":"ora","o":"a_0B85","oa":2949,"x":[3000]},{"a":3009,"t":"code","b":[141,133,11],"m":"sta","o":"a_0B85","oa":2949},{"a":3012,"t":"code","b":[173,127,11],"m":"lda","o":"a_0B7F","oa":2943},{"a":3015,"t":"code","b":[174,120,11],"m":"ldx","o":"a_0B78","oa":2936},{"a":3018,"t":"code","b":[240,4],"m":"beq","o":"b_0BD0","oa":3024},{"a":3020,"l":"b_0BCC","t":"code","b":[10],"m":"asl","o":"a","x":[3022]},{"a":3021,"t":"code","b":[202],"m":"dex"},{"a":3022,"t":"code","b":[208,252],"m":"bne","o":"b_0BCC","oa":3020},{"a":3024,"l":"b_0BD0","t":"code","b":[13,133,11],"m":"ora","o":"a_0B85","oa":2949,"x":[3018]},{"a":3027,"t":"code","b":[141,133,11],"m":"sta","o":"a_0B85","oa":2949},{"a":3030,"t":"code","b":[173,128,11],"m":"lda","o":"a_0B80","oa":2944},{"a":3033,"t":"code","b":[174,121,11],"m":"ldx","o":"a_0B79","oa":2937},{"a":3036,"t":"code","b":[240,4],"m":"beq","o":"b_0BE2","oa":3042},{"a":3038,"l":"b_0BDE","t":"code","b":[10],"m":"asl","o":"a","x":[3040]},{"a":3039,"t":"code","b":[202],"m":"dex"},{"a":3040,"t":"code","b":[208,252],"m":"bne","o":"b_0BDE","oa":3038},{"a":3042,"l":"b_0BE2","t":"code","b":[13,133,11],"m":"ora","o":"a_0B85","oa":2949,"x":[3036]},{"a":3045,"t":"code","b":[141,133,11],"m":"sta","o":"a_0B85","oa":2949},{"a":3048,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":3050,"t":"code","b":[173,132,11],"m":"lda","o":"a_0B84","oa":2948},{"a":3053,"t":"code","b":[240,4],"m":"beq","o":"b_0BF3","oa":3059},{"a":3055,"l":"b_0BEF","t":"code","b":[10],"m":"asl","o":"a","x":[3057]},{"a":3056,"t":"code","b":[202],"m":"dex"},{"a":3057,"t":"code","b":[208,252],"m":"bne","o":"b_0BEF","oa":3055},{"a":3059,"l":"b_0BF3","t":"code","b":[13,133,11],"m":"ora","o":"a_0B85","oa":2949,"x":[3053]},{"a":3062,"t":"code","b":[141,133,11],"m":"sta","o":"a_0B85","oa":2949},{"a":3065,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":3067,"t":"code","b":[141,16,208],"m":"sta","o":"vic_sprite_x_msb"},{"a":3070,"t":"code","b":[172,109,11],"m":"ldy","o":"a_0B6D","oa":2925},{"a":3073,"t":"code","b":[140,14,208],"m":"sty","o":"vic_sprite7_x"},{"a":3076,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":3078,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":3081,"t":"code","b":[160,41],"m":"ldy","o":"#$29"},{"a":3083,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":3086,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":3089,"t":"code","b":[160,28],"m":"ldy","o":"#$1C"},{"a":3091,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":3094,"t":"code","b":[160,12],"m":"ldy","o":"#$0C"},{"a":3096,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":3099,"t":"code","b":[96],"m":"rts"},{"a":3100,"l":"raster_top","c":"The raster interrupt at line $29, above the picture: banks the chips in, sets each actor sprite's X for the room and the X expansion, writes the first band's sprite pointers (from $1156, one for each of the four sprites) into the shown screen's pointer table ($78/$79), sets the cursor's pointer ($115E) on both screens, the actor sprites' colours (their own when bit 3 of the lights is set, otherwise dark grey) and the cursor's colour and Y, puts sprites 0 to 3 at Y $32 and asks for line $42 ($0D15)","t":"code","b":[141,137,11],"m":"sta","o":"a_0B89","oa":2953},{"a":3103,"t":"code","b":[142,138,11],"m":"stx","o":"a_0B8A","oa":2954},{"a":3106,"t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":3109,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":3111,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":3113,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":3115,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3117,"t":"code","b":[173,118,11],"m":"lda","o":"a_0B76","oa":2934},{"a":3120,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3121,"t":"code","b":[168],"m":"tay"},{"a":3122,"t":"code","b":[173,102,11],"m":"lda","o":"a_0B66","oa":2918},{"a":3125,"t":"code","b":[153,139,11],"m":"sta","o":"f_0B8B,y","oa":2955},{"a":3128,"t":"code","b":[173,119,11],"m":"lda","o":"a_0B77","oa":2935},{"a":3131,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3132,"t":"code","b":[168],"m":"tay"},{"a":3133,"t":"code","b":[173,103,11],"m":"lda","o":"a_0B67","oa":2919},{"a":3136,"t":"code","b":[153,139,11],"m":"sta","o":"f_0B8B,y","oa":2955},{"a":3139,"t":"code","b":[173,120,11],"m":"lda","o":"a_0B78","oa":2936},{"a":3142,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3143,"t":"code","b":[168],"m":"tay"},{"a":3144,"t":"code","b":[173,104,11],"m":"lda","o":"a_0B68","oa":2920},{"a":3147,"t":"code","b":[153,139,11],"m":"sta","o":"f_0B8B,y","oa":2955},{"a":3150,"t":"code","b":[173,121,11],"m":"lda","o":"a_0B79","oa":2937},{"a":3153,"t":"code","b":[10],"m":"asl","o":"a"},{"a":3154,"t":"code","b":[168],"m":"tay"},{"a":3155,"t":"code","b":[173,105,11],"m":"lda","o":"a_0B69","oa":2921},{"a":3158,"t":"code","b":[153,139,11],"m":"sta","o":"f_0B8B,y","oa":2955},{"a":3161,"t":"code","b":[172,109,11],"m":"ldy","o":"a_0B6D","oa":2925},{"a":3164,"t":"code","b":[140,14,208],"m":"sty","o":"vic_sprite7_x"},{"a":3167,"t":"code","b":[172,134,11],"m":"ldy","o":"a_0B86","oa":2950},{"a":3170,"t":"code","b":[140,29,208],"m":"sty","o":"vic_sprite_expand_x"},{"a":3173,"t":"code","b":[174,86,17],"m":"ldx","o":"a_1156","oa":4438},{"a":3176,"t":"code","b":[172,118,11],"m":"ldy","o":"a_0B76","oa":2934},{"a":3179,"t":"code","b":[138],"m":"txa"},{"a":3180,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3182,"t":"code","b":[232],"m":"inx"},{"a":3183,"t":"code","b":[172,119,11],"m":"ldy","o":"a_0B77","oa":2935},{"a":3186,"t":"code","b":[138],"m":"txa"},{"a":3187,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3189,"t":"code","b":[232],"m":"inx"},{"a":3190,"t":"code","b":[172,120,11],"m":"ldy","o":"a_0B78","oa":2936},{"a":3193,"t":"code","b":[138],"m":"txa"},{"a":3194,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3196,"t":"code","b":[232],"m":"inx"},{"a":3197,"t":"code","b":[172,121,11],"m":"ldy","o":"a_0B79","oa":2937},{"a":3200,"t":"code","b":[138],"m":"txa"},{"a":3201,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3203,"t":"code","b":[172,94,17],"m":"ldy","o":"a_115E","oa":4446},{"a":3206,"t":"code","b":[140,255,203],"m":"sty","o":"a_CBFF","oa":52223},{"a":3209,"t":"code","b":[140,255,207],"m":"sty","o":"a_CFFF","oa":53247},{"a":3212,"t":"code","b":[173,122,254],"m":"lda","o":"a_FE7A","oa":65146},{"a":3215,"t":"code","b":[41,8],"m":"and","o":"#$08"},{"a":3217,"t":"code","b":[240,43],"m":"beq","o":"b_0CBE","oa":3262},{"a":3219,"t":"code","b":[173,118,11],"m":"lda","o":"a_0B76","oa":2934},{"a":3222,"t":"code","b":[168],"m":"tay"},{"a":3223,"t":"code","b":[173,110,11],"m":"lda","o":"a_0B6E","oa":2926},{"a":3226,"t":"code","b":[153,39,208],"m":"sta","o":"vic_sprite0_colour,y"},{"a":3229,"t":"code","b":[173,119,11],"m":"lda","o":"a_0B77","oa":2935},{"a":3232,"t":"code","b":[168],"m":"tay"},{"a":3233,"t":"code","b":[173,111,11],"m":"lda","o":"a_0B6F","oa":2927},{"a":3236,"t":"code","b":[153,39,208],"m":"sta","o":"vic_sprite0_colour,y"},{"a":3239,"t":"code","b":[173,120,11],"m":"lda","o":"a_0B78","oa":2936},{"a":3242,"t":"code","b":[168],"m":"tay"},{"a":3243,"t":"code","b":[173,112,11],"m":"lda","o":"a_0B70","oa":2928},{"a":3246,"t":"code","b":[153,39,208],"m":"sta","o":"vic_sprite0_colour,y"},{"a":3249,"t":"code","b":[173,121,11],"m":"lda","o":"a_0B79","oa":2937},{"a":3252,"t":"code","b":[168],"m":"tay"},{"a":3253,"t":"code","b":[173,113,11],"m":"lda","o":"a_0B71","oa":2929},{"a":3256,"t":"code","b":[153,39,208],"m":"sta","o":"vic_sprite0_colour,y"},{"a":3259,"t":"code","b":[76,200,12],"m":"jmp","o":"j_0CC8","oa":3272},{"a":3262,"l":"b_0CBE","t":"code","b":[162,4],"m":"ldx","o":"#$04","x":[3217]},{"a":3264,"l":"b_0CC0","t":"code","b":[169,11],"m":"lda","o":"#$0B","x":[3270]},{"a":3266,"t":"code","b":[157,39,208],"m":"sta","o":"vic_sprite0_colour,x"},{"a":3269,"t":"code","b":[202],"m":"dex"},{"a":3270,"t":"code","b":[16,248],"m":"bpl","o":"b_0CC0","oa":3264},{"a":3272,"l":"j_0CC8","t":"code","b":[172,117,11],"m":"ldy","o":"a_0B75","oa":2933,"x":[3259]},{"a":3275,"t":"code","b":[140,46,208],"m":"sty","o":"vic_sprite7_colour"},{"a":3278,"t":"code","b":[172,135,11],"m":"ldy","o":"a_0B87","oa":2951},{"a":3281,"t":"code","b":[140,15,208],"m":"sty","o":"vic_sprite7_y"},{"a":3284,"t":"code","b":[160,50],"m":"ldy","o":"#$32"},{"a":3286,"t":"code","b":[140,1,208],"m":"sty","o":"vic_sprite0_y"},{"a":3289,"t":"code","b":[140,3,208],"m":"sty","o":"vic_sprite1_y"},{"a":3292,"t":"code","b":[140,5,208],"m":"sty","o":"vic_sprite2_y"},{"a":3295,"t":"code","b":[140,7,208],"m":"sty","o":"vic_sprite3_y"},{"a":3298,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":3300,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":3303,"t":"code","b":[160,66],"m":"ldy","o":"#$42"},{"a":3305,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":3308,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":3311,"t":"code","b":[160,21],"m":"ldy","o":"#$15"},{"a":3313,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":3316,"t":"code","b":[160,13],"m":"ldy","o":"#$0D"},{"a":3318,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":3321,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":3323,"t":"code","b":[140,0,208],"m":"sty","o":"vic_sprite0_x"},{"a":3326,"t":"code","b":[140,2,208],"m":"sty","o":"vic_sprite1_x"},{"a":3329,"t":"code","b":[140,4,208],"m":"sty","o":"vic_sprite2_x"},{"a":3332,"t":"code","b":[140,6,208],"m":"sty","o":"vic_sprite3_x"},{"a":3335,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":3337,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3339,"t":"code","b":[173,137,11],"m":"lda","o":"a_0B89","oa":2953},{"a":3342,"t":"code","b":[174,138,11],"m":"ldx","o":"a_0B8A","oa":2954},{"a":3345,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":3348,"t":"code","b":[64],"m":"rti"},{"a":3349,"l":"raster_room","c":"The raster interrupt at line $42, where the picture starts: multicolour text from the room's screen and character set ($AB into $D018, $D016 = $18), the actor sprites' X positions and high bits; after a delay of NOPs moves sprites 0 to 3 down to the next band, Y $47, writes that band's pointers ($1157) and asks for line $4F ($0DBA)","t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":3352,"t":"code","b":[141,137,11],"m":"sta","o":"a_0B89","oa":2953},{"a":3355,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":3357,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":3359,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":3361,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3363,"t":"code","b":[160,28],"m":"ldy","o":"#$1C"},{"a":3365,"t":"code","b":[140,17,208],"m":"sty","o":"vic_control1"},{"a":3368,"t":"code","b":[234],"m":"nop"},{"a":3369,"t":"code","b":[234],"m":"nop"},{"a":3370,"t":"code","b":[234],"m":"nop"},{"a":3371,"t":"code","b":[234],"m":"nop"},{"a":3372,"t":"code","b":[234],"m":"nop"},{"a":3373,"t":"code","b":[234],"m":"nop"},{"a":3374,"t":"code","b":[234],"m":"nop"},{"a":3375,"t":"code","b":[164,171],"m":"ldy","o":"zpa_AB","oa":171},{"a":3377,"t":"code","b":[169,24],"m":"lda","o":"#$18"},{"a":3379,"t":"code","b":[140,24,208],"m":"sty","o":"vic_memory"},{"a":3382,"t":"code","b":[141,22,208],"m":"sta","o":"vic_control2"},{"a":3385,"t":"code","b":[172,139,11],"m":"ldy","o":"f_0B8B","oa":2955},{"a":3388,"t":"code","b":[140,0,208],"m":"sty","o":"vic_sprite0_x"},{"a":3391,"t":"code","b":[172,141,11],"m":"ldy","o":"a_0B8D","oa":2957},{"a":3394,"t":"code","b":[140,2,208],"m":"sty","o":"vic_sprite1_x"},{"a":3397,"t":"code","b":[172,143,11],"m":"ldy","o":"a_0B8F","oa":2959},{"a":3400,"t":"code","b":[140,4,208],"m":"sty","o":"vic_sprite2_x"},{"a":3403,"t":"code","b":[172,145,11],"m":"ldy","o":"a_0B91","oa":2961},{"a":3406,"t":"code","b":[140,6,208],"m":"sty","o":"vic_sprite3_x"},{"a":3409,"t":"code","b":[172,133,11],"m":"ldy","o":"a_0B85","oa":2949},{"a":3412,"t":"code","b":[140,16,208],"m":"sty","o":"vic_sprite_x_msb"},{"a":3415,"t":"code","b":[234],"m":"nop"},{"a":3416,"t":"code","b":[234],"m":"nop"},{"a":3417,"t":"code","b":[234],"m":"nop"},{"a":3418,"t":"code","b":[234],"m":"nop"},{"a":3419,"t":"code","b":[234],"m":"nop"},{"a":3420,"t":"code","b":[234],"m":"nop"},{"a":3421,"t":"code","b":[234],"m":"nop"},{"a":3422,"t":"code","b":[234],"m":"nop"},{"a":3423,"t":"code","b":[234],"m":"nop"},{"a":3424,"t":"code","b":[234],"m":"nop"},{"a":3425,"t":"code","b":[160,71],"m":"ldy","o":"#$47"},{"a":3427,"t":"code","b":[140,1,208],"m":"sty","o":"vic_sprite0_y"},{"a":3430,"t":"code","b":[140,3,208],"m":"sty","o":"vic_sprite1_y"},{"a":3433,"t":"code","b":[140,5,208],"m":"sty","o":"vic_sprite2_y"},{"a":3436,"t":"code","b":[140,7,208],"m":"sty","o":"vic_sprite3_y"},{"a":3439,"t":"code","b":[160,5],"m":"ldy","o":"#$05"},{"a":3441,"l":"b_0D71","t":"code","b":[136],"m":"dey","x":[3442]},{"a":3442,"t":"code","b":[208,253],"m":"bne","o":"b_0D71","oa":3441},{"a":3444,"t":"code","b":[142,138,11],"m":"stx","o":"a_0B8A","oa":2954},{"a":3447,"t":"code","b":[174,87,17],"m":"ldx","o":"a_1157","oa":4439},{"a":3450,"t":"code","b":[172,118,11],"m":"ldy","o":"a_0B76","oa":2934},{"a":3453,"t":"code","b":[138],"m":"txa"},{"a":3454,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3456,"t":"code","b":[232],"m":"inx"},{"a":3457,"t":"code","b":[172,119,11],"m":"ldy","o":"a_0B77","oa":2935},{"a":3460,"t":"code","b":[138],"m":"txa"},{"a":3461,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3463,"t":"code","b":[232],"m":"inx"},{"a":3464,"t":"code","b":[172,120,11],"m":"ldy","o":"a_0B78","oa":2936},{"a":3467,"t":"code","b":[138],"m":"txa"},{"a":3468,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3470,"t":"code","b":[232],"m":"inx"},{"a":3471,"t":"code","b":[172,121,11],"m":"ldy","o":"a_0B79","oa":2937},{"a":3474,"t":"code","b":[138],"m":"txa"},{"a":3475,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3477,"t":"code","b":[160,79],"m":"ldy","o":"#$4F"},{"a":3479,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":3482,"t":"code","b":[160,186],"m":"ldy","o":"#$BA"},{"a":3484,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":3487,"t":"code","b":[160,13],"m":"ldy","o":"#$0D"},{"a":3489,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":3492,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":3494,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":3497,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":3500,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":3502,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3504,"t":"code","b":[173,137,11],"m":"lda","o":"a_0B89","oa":2953},{"a":3507,"t":"code","b":[174,138,11],"m":"ldx","o":"a_0B8A","oa":2954},{"a":3510,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":3513,"t":"code","b":[64],"m":"rti"},{"a":3514,"l":"raster_band_2_y","c":"Line $4F: moves the actor sprites down to Y $5C, the third band, and asks for line $59 ($0DF2)","t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":3517,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":3519,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":3521,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":3523,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3525,"t":"code","b":[160,92],"m":"ldy","o":"#$5C"},{"a":3527,"t":"code","b":[140,1,208],"m":"sty","o":"vic_sprite0_y"},{"a":3530,"t":"code","b":[140,3,208],"m":"sty","o":"vic_sprite1_y"},{"a":3533,"t":"code","b":[140,5,208],"m":"sty","o":"vic_sprite2_y"},{"a":3536,"t":"code","b":[140,7,208],"m":"sty","o":"vic_sprite3_y"},{"a":3539,"t":"code","b":[160,89],"m":"ldy","o":"#$59"},{"a":3541,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":3544,"t":"code","b":[160,242],"m":"ldy","o":"#$F2"},{"a":3546,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":3549,"t":"code","b":[160,13],"m":"ldy","o":"#$0D"},{"a":3551,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":3554,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":3556,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":3559,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":3562,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":3564,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3566,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":3569,"t":"code","b":[64],"m":"rti"},{"a":3570,"l":"raster_band_2_ptr","c":"Line $59: the third band's sprite pointers, from $1158; asks for line $63 ($0E46)","t":"code","b":[141,137,11],"m":"sta","o":"a_0B89","oa":2953},{"a":3573,"t":"code","b":[142,138,11],"m":"stx","o":"a_0B8A","oa":2954},{"a":3576,"t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":3579,"t":"code","b":[174,88,17],"m":"ldx","o":"a_1158","oa":4440},{"a":3582,"t":"code","b":[172,118,11],"m":"ldy","o":"a_0B76","oa":2934},{"a":3585,"t":"code","b":[138],"m":"txa"},{"a":3586,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3588,"t":"code","b":[232],"m":"inx"},{"a":3589,"t":"code","b":[172,119,11],"m":"ldy","o":"a_0B77","oa":2935},{"a":3592,"t":"code","b":[138],"m":"txa"},{"a":3593,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3595,"t":"code","b":[232],"m":"inx"},{"a":3596,"t":"code","b":[172,120,11],"m":"ldy","o":"a_0B78","oa":2936},{"a":3599,"t":"code","b":[138],"m":"txa"},{"a":3600,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3602,"t":"code","b":[232],"m":"inx"},{"a":3603,"t":"code","b":[172,121,11],"m":"ldy","o":"a_0B79","oa":2937},{"a":3606,"t":"code","b":[138],"m":"txa"},{"a":3607,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3609,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":3611,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":3613,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":3615,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3617,"t":"code","b":[160,99],"m":"ldy","o":"#$63"},{"a":3619,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":3622,"t":"code","b":[160,70],"m":"ldy","o":"#$46"},{"a":3624,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":3627,"t":"code","b":[160,14],"m":"ldy","o":"#$0E"},{"a":3629,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":3632,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":3634,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":3637,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":3640,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":3642,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3644,"t":"code","b":[173,137,11],"m":"lda","o":"a_0B89","oa":2953},{"a":3647,"t":"code","b":[174,138,11],"m":"ldx","o":"a_0B8A","oa":2954},{"a":3650,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":3653,"t":"code","b":[64],"m":"rti"},{"a":3654,"l":"raster_band_3_y","c":"Line $63: the actor sprites to Y $71; asks for line $6D ($0E7E)","t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":3657,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":3659,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":3661,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":3663,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3665,"t":"code","b":[160,113],"m":"ldy","o":"#$71"},{"a":3667,"t":"code","b":[140,1,208],"m":"sty","o":"vic_sprite0_y"},{"a":3670,"t":"code","b":[140,3,208],"m":"sty","o":"vic_sprite1_y"},{"a":3673,"t":"code","b":[140,5,208],"m":"sty","o":"vic_sprite2_y"},{"a":3676,"t":"code","b":[140,7,208],"m":"sty","o":"vic_sprite3_y"},{"a":3679,"t":"code","b":[160,109],"m":"ldy","o":"#$6D"},{"a":3681,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":3684,"t":"code","b":[160,126],"m":"ldy","o":"#$7E"},{"a":3686,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":3689,"t":"code","b":[160,14],"m":"ldy","o":"#$0E"},{"a":3691,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":3694,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":3696,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":3699,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":3702,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":3704,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3706,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":3709,"t":"code","b":[64],"m":"rti"},{"a":3710,"l":"raster_band_3_ptr","c":"Line $6D: the fourth band's pointers, from $1159; asks for line $77 ($0ED2)","t":"code","b":[141,137,11],"m":"sta","o":"a_0B89","oa":2953},{"a":3713,"t":"code","b":[142,138,11],"m":"stx","o":"a_0B8A","oa":2954},{"a":3716,"t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":3719,"t":"code","b":[174,89,17],"m":"ldx","o":"a_1159","oa":4441},{"a":3722,"t":"code","b":[172,118,11],"m":"ldy","o":"a_0B76","oa":2934},{"a":3725,"t":"code","b":[138],"m":"txa"},{"a":3726,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3728,"t":"code","b":[232],"m":"inx"},{"a":3729,"t":"code","b":[172,119,11],"m":"ldy","o":"a_0B77","oa":2935},{"a":3732,"t":"code","b":[138],"m":"txa"},{"a":3733,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3735,"t":"code","b":[232],"m":"inx"},{"a":3736,"t":"code","b":[172,120,11],"m":"ldy","o":"a_0B78","oa":2936},{"a":3739,"t":"code","b":[138],"m":"txa"},{"a":3740,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3742,"t":"code","b":[232],"m":"inx"},{"a":3743,"t":"code","b":[172,121,11],"m":"ldy","o":"a_0B79","oa":2937},{"a":3746,"t":"code","b":[138],"m":"txa"},{"a":3747,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3749,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":3751,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":3753,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":3755,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3757,"t":"code","b":[160,119],"m":"ldy","o":"#$77"},{"a":3759,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":3762,"t":"code","b":[160,210],"m":"ldy","o":"#$D2"},{"a":3764,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":3767,"t":"code","b":[160,14],"m":"ldy","o":"#$0E"},{"a":3769,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":3772,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":3774,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":3777,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":3780,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":3782,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3784,"t":"code","b":[173,137,11],"m":"lda","o":"a_0B89","oa":2953},{"a":3787,"t":"code","b":[174,138,11],"m":"ldx","o":"a_0B8A","oa":2954},{"a":3790,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":3793,"t":"code","b":[64],"m":"rti"},{"a":3794,"l":"raster_band_4_y","c":"Line $77: the actor sprites to Y $86; asks for line $81 ($0F0A)","t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":3797,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":3799,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":3801,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":3803,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3805,"t":"code","b":[160,134],"m":"ldy","o":"#$86"},{"a":3807,"t":"code","b":[140,1,208],"m":"sty","o":"vic_sprite0_y"},{"a":3810,"t":"code","b":[140,3,208],"m":"sty","o":"vic_sprite1_y"},{"a":3813,"t":"code","b":[140,5,208],"m":"sty","o":"vic_sprite2_y"},{"a":3816,"t":"code","b":[140,7,208],"m":"sty","o":"vic_sprite3_y"},{"a":3819,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":3821,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":3824,"t":"code","b":[160,10],"m":"ldy","o":"#$0A"},{"a":3826,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":3829,"t":"code","b":[160,15],"m":"ldy","o":"#$0F"},{"a":3831,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":3834,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":3836,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":3839,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":3842,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":3844,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3846,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":3849,"t":"code","b":[64],"m":"rti"},{"a":3850,"l":"raster_band_4_ptr","c":"Line $81: the fifth band's pointers, from $115A; asks for line $8B ($0F5E)","t":"code","b":[141,137,11],"m":"sta","o":"a_0B89","oa":2953},{"a":3853,"t":"code","b":[142,138,11],"m":"stx","o":"a_0B8A","oa":2954},{"a":3856,"t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":3859,"t":"code","b":[174,90,17],"m":"ldx","o":"a_115A","oa":4442},{"a":3862,"t":"code","b":[172,118,11],"m":"ldy","o":"a_0B76","oa":2934},{"a":3865,"t":"code","b":[138],"m":"txa"},{"a":3866,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3868,"t":"code","b":[232],"m":"inx"},{"a":3869,"t":"code","b":[172,119,11],"m":"ldy","o":"a_0B77","oa":2935},{"a":3872,"t":"code","b":[138],"m":"txa"},{"a":3873,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3875,"t":"code","b":[232],"m":"inx"},{"a":3876,"t":"code","b":[172,120,11],"m":"ldy","o":"a_0B78","oa":2936},{"a":3879,"t":"code","b":[138],"m":"txa"},{"a":3880,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3882,"t":"code","b":[232],"m":"inx"},{"a":3883,"t":"code","b":[172,121,11],"m":"ldy","o":"a_0B79","oa":2937},{"a":3886,"t":"code","b":[138],"m":"txa"},{"a":3887,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":3889,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":3891,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":3893,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":3895,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3897,"t":"code","b":[160,139],"m":"ldy","o":"#$8B"},{"a":3899,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":3902,"t":"code","b":[160,94],"m":"ldy","o":"#$5E"},{"a":3904,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":3907,"t":"code","b":[160,15],"m":"ldy","o":"#$0F"},{"a":3909,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":3912,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":3914,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":3917,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":3920,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":3922,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3924,"t":"code","b":[173,137,11],"m":"lda","o":"a_0B89","oa":2953},{"a":3927,"t":"code","b":[174,138,11],"m":"ldx","o":"a_0B8A","oa":2954},{"a":3930,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":3933,"t":"code","b":[64],"m":"rti"},{"a":3934,"l":"raster_band_5_y","c":"Line $8B: the actor sprites to Y $9B; asks for line $95 ($0F96)","t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":3937,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":3939,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":3941,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":3943,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3945,"t":"code","b":[160,155],"m":"ldy","o":"#$9B"},{"a":3947,"t":"code","b":[140,1,208],"m":"sty","o":"vic_sprite0_y"},{"a":3950,"t":"code","b":[140,3,208],"m":"sty","o":"vic_sprite1_y"},{"a":3953,"t":"code","b":[140,5,208],"m":"sty","o":"vic_sprite2_y"},{"a":3956,"t":"code","b":[140,7,208],"m":"sty","o":"vic_sprite3_y"},{"a":3959,"t":"code","b":[160,149],"m":"ldy","o":"#$95"},{"a":3961,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":3964,"t":"code","b":[160,150],"m":"ldy","o":"#$96"},{"a":3966,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":3969,"t":"code","b":[160,15],"m":"ldy","o":"#$0F"},{"a":3971,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":3974,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":3976,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":3979,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":3982,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":3984,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":3986,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":3989,"t":"code","b":[64],"m":"rti"},{"a":3990,"l":"raster_band_5_ptr","c":"Line $95: the sixth band's pointers, from $115B; asks for line $9F ($0FEA)","t":"code","b":[141,137,11],"m":"sta","o":"a_0B89","oa":2953},{"a":3993,"t":"code","b":[142,138,11],"m":"stx","o":"a_0B8A","oa":2954},{"a":3996,"t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":3999,"t":"code","b":[174,91,17],"m":"ldx","o":"a_115B","oa":4443},{"a":4002,"t":"code","b":[172,118,11],"m":"ldy","o":"a_0B76","oa":2934},{"a":4005,"t":"code","b":[138],"m":"txa"},{"a":4006,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":4008,"t":"code","b":[232],"m":"inx"},{"a":4009,"t":"code","b":[172,119,11],"m":"ldy","o":"a_0B77","oa":2935},{"a":4012,"t":"code","b":[138],"m":"txa"},{"a":4013,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":4015,"t":"code","b":[232],"m":"inx"},{"a":4016,"t":"code","b":[172,120,11],"m":"ldy","o":"a_0B78","oa":2936},{"a":4019,"t":"code","b":[138],"m":"txa"},{"a":4020,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":4022,"t":"code","b":[232],"m":"inx"},{"a":4023,"t":"code","b":[172,121,11],"m":"ldy","o":"a_0B79","oa":2937},{"a":4026,"t":"code","b":[138],"m":"txa"},{"a":4027,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":4029,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":4031,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":4033,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":4035,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4037,"t":"code","b":[160,159],"m":"ldy","o":"#$9F"},{"a":4039,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":4042,"t":"code","b":[160,234],"m":"ldy","o":"#$EA"},{"a":4044,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":4047,"t":"code","b":[160,15],"m":"ldy","o":"#$0F"},{"a":4049,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":4052,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":4054,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":4057,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":4060,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":4062,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4064,"t":"code","b":[173,137,11],"m":"lda","o":"a_0B89","oa":2953},{"a":4067,"t":"code","b":[174,138,11],"m":"ldx","o":"a_0B8A","oa":2954},{"a":4070,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":4073,"t":"code","b":[64],"m":"rti"},{"a":4074,"l":"raster_band_6_y","c":"Line $9F: the actor sprites to Y $B0; asks for line $A9 ($1022)","t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":4077,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":4079,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":4081,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":4083,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4085,"t":"code","b":[160,176],"m":"ldy","o":"#$B0"},{"a":4087,"t":"code","b":[140,1,208],"m":"sty","o":"vic_sprite0_y"},{"a":4090,"t":"code","b":[140,3,208],"m":"sty","o":"vic_sprite1_y"},{"a":4093,"t":"code","b":[140,5,208],"m":"sty","o":"vic_sprite2_y"},{"a":4096,"t":"code","b":[140,7,208],"m":"sty","o":"vic_sprite3_y"},{"a":4099,"t":"code","b":[160,169],"m":"ldy","o":"#$A9"},{"a":4101,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":4104,"t":"code","b":[160,34],"m":"ldy","o":"#$22"},{"a":4106,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":4109,"t":"code","b":[160,16],"m":"ldy","o":"#$10"},{"a":4111,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":4114,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":4116,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":4119,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":4122,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":4124,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4126,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":4129,"t":"code","b":[64],"m":"rti"},{"a":4130,"l":"raster_band_6_ptr","c":"Line $A9: the seventh band's pointers, from $115C; asks for line $B1 ($1076)","t":"code","b":[141,137,11],"m":"sta","o":"a_0B89","oa":2953},{"a":4133,"t":"code","b":[142,138,11],"m":"stx","o":"a_0B8A","oa":2954},{"a":4136,"t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":4139,"t":"code","b":[174,92,17],"m":"ldx","o":"a_115C","oa":4444},{"a":4142,"t":"code","b":[172,118,11],"m":"ldy","o":"a_0B76","oa":2934},{"a":4145,"t":"code","b":[138],"m":"txa"},{"a":4146,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":4148,"t":"code","b":[232],"m":"inx"},{"a":4149,"t":"code","b":[172,119,11],"m":"ldy","o":"a_0B77","oa":2935},{"a":4152,"t":"code","b":[138],"m":"txa"},{"a":4153,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":4155,"t":"code","b":[232],"m":"inx"},{"a":4156,"t":"code","b":[172,120,11],"m":"ldy","o":"a_0B78","oa":2936},{"a":4159,"t":"code","b":[138],"m":"txa"},{"a":4160,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":4162,"t":"code","b":[232],"m":"inx"},{"a":4163,"t":"code","b":[172,121,11],"m":"ldy","o":"a_0B79","oa":2937},{"a":4166,"t":"code","b":[138],"m":"txa"},{"a":4167,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":4169,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":4171,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":4173,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":4175,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4177,"t":"code","b":[160,177],"m":"ldy","o":"#$B1"},{"a":4179,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":4182,"t":"code","b":[160,118],"m":"ldy","o":"#$76"},{"a":4184,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":4187,"t":"code","b":[160,16],"m":"ldy","o":"#$10"},{"a":4189,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":4192,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":4194,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":4197,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":4200,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":4202,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4204,"t":"code","b":[173,137,11],"m":"lda","o":"a_0B89","oa":2953},{"a":4207,"t":"code","b":[174,138,11],"m":"ldx","o":"a_0B8A","oa":2954},{"a":4210,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":4213,"t":"code","b":[64],"m":"rti"},{"a":4214,"l":"raster_band_7_y","c":"Line $B1: the actor sprites to Y $C5, the last band; asks for line $BD ($10AE)","t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":4217,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":4219,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":4221,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":4223,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4225,"t":"code","b":[160,197],"m":"ldy","o":"#$C5"},{"a":4227,"t":"code","b":[140,1,208],"m":"sty","o":"vic_sprite0_y"},{"a":4230,"t":"code","b":[140,3,208],"m":"sty","o":"vic_sprite1_y"},{"a":4233,"t":"code","b":[140,5,208],"m":"sty","o":"vic_sprite2_y"},{"a":4236,"t":"code","b":[140,7,208],"m":"sty","o":"vic_sprite3_y"},{"a":4239,"t":"code","b":[160,189],"m":"ldy","o":"#$BD"},{"a":4241,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":4244,"t":"code","b":[160,174],"m":"ldy","o":"#$AE"},{"a":4246,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":4249,"t":"code","b":[160,16],"m":"ldy","o":"#$10"},{"a":4251,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":4254,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":4256,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":4259,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":4262,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":4264,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4266,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":4269,"t":"code","b":[64],"m":"rti"},{"a":4270,"l":"raster_band_7_ptr","c":"Line $BD: the last band's pointers, from $115D; asks for line $C3 ($1102)","t":"code","b":[141,137,11],"m":"sta","o":"a_0B89","oa":2953},{"a":4273,"t":"code","b":[142,138,11],"m":"stx","o":"a_0B8A","oa":2954},{"a":4276,"t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":4279,"t":"code","b":[174,93,17],"m":"ldx","o":"a_115D","oa":4445},{"a":4282,"t":"code","b":[172,118,11],"m":"ldy","o":"a_0B76","oa":2934},{"a":4285,"t":"code","b":[138],"m":"txa"},{"a":4286,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":4288,"t":"code","b":[232],"m":"inx"},{"a":4289,"t":"code","b":[172,119,11],"m":"ldy","o":"a_0B77","oa":2935},{"a":4292,"t":"code","b":[138],"m":"txa"},{"a":4293,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":4295,"t":"code","b":[232],"m":"inx"},{"a":4296,"t":"code","b":[172,120,11],"m":"ldy","o":"a_0B78","oa":2936},{"a":4299,"t":"code","b":[138],"m":"txa"},{"a":4300,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":4302,"t":"code","b":[232],"m":"inx"},{"a":4303,"t":"code","b":[172,121,11],"m":"ldy","o":"a_0B79","oa":2937},{"a":4306,"t":"code","b":[138],"m":"txa"},{"a":4307,"t":"code","b":[145,120],"m":"sta","o":"(zpp_78),y","oa":120},{"a":4309,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":4311,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":4313,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":4315,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4317,"t":"code","b":[160,195],"m":"ldy","o":"#$C3"},{"a":4319,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":4322,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":4324,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":4327,"t":"code","b":[160,17],"m":"ldy","o":"#$11"},{"a":4329,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":4332,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":4334,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":4337,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":4340,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":4342,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4344,"t":"code","b":[173,137,11],"m":"lda","o":"a_0B89","oa":2953},{"a":4347,"t":"code","b":[174,138,11],"m":"ldx","o":"a_0B8A","oa":2954},{"a":4350,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":4353,"t":"code","b":[64],"m":"rti"},{"a":4354,"l":"raster_interface","c":"Line $C3, below the picture: hires text from the screen at $CC00 and the character set at $F800 ($D018 = $3E, $D016 = $09) for the sentence line, the verbs and the inventory; moves the actor sprites off the bottom (Y $FD) and asks for line $FB, the frame interrupt at $117C","t":"code","b":[140,136,11],"m":"sty","o":"a_0B88","oa":2952},{"a":4357,"t":"code","b":[141,137,11],"m":"sta","o":"a_0B89","oa":2953},{"a":4360,"t":"code","b":[164,1],"m":"ldy","o":"zpa_01","oa":1},{"a":4362,"t":"code","b":[132,37],"m":"sty","o":"zpa_25","oa":37},{"a":4364,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":4366,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4368,"t":"code","b":[169,29],"m":"lda","o":"#$1D"},{"a":4370,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":4373,"t":"code","b":[169,62],"m":"lda","o":"#$3E"},{"a":4375,"t":"code","b":[160,9],"m":"ldy","o":"#$09"},{"a":4377,"t":"code","b":[234],"m":"nop"},{"a":4378,"t":"code","b":[234],"m":"nop"},{"a":4379,"t":"code","b":[234],"m":"nop"},{"a":4380,"t":"code","b":[234],"m":"nop"},{"a":4381,"t":"code","b":[234],"m":"nop"},{"a":4382,"t":"code","b":[234],"m":"nop"},{"a":4383,"t":"code","b":[234],"m":"nop"},{"a":4384,"t":"code","b":[141,24,208],"m":"sta","o":"vic_memory"},{"a":4387,"t":"code","b":[140,22,208],"m":"sty","o":"vic_control2"},{"a":4390,"t":"code","b":[160,253],"m":"ldy","o":"#$FD"},{"a":4392,"t":"code","b":[140,1,208],"m":"sty","o":"vic_sprite0_y"},{"a":4395,"t":"code","b":[140,3,208],"m":"sty","o":"vic_sprite1_y"},{"a":4398,"t":"code","b":[140,5,208],"m":"sty","o":"vic_sprite2_y"},{"a":4401,"t":"code","b":[140,7,208],"m":"sty","o":"vic_sprite3_y"},{"a":4404,"t":"code","b":[160,129],"m":"ldy","o":"#$81"},{"a":4406,"t":"code","b":[140,25,208],"m":"sty","o":"vic_irq_status"},{"a":4409,"t":"code","b":[160,251],"m":"ldy","o":"#$FB"},{"a":4411,"t":"code","b":[140,18,208],"m":"sty","o":"vic_raster"},{"a":4414,"t":"code","b":[172,13,220],"m":"ldy","o":"cia1_interrupt"},{"a":4417,"t":"code","b":[160,124],"m":"ldy","o":"#$7C"},{"a":4419,"t":"code","b":[140,254,255],"m":"sty","o":"$FFFE","oa":65534},{"a":4422,"t":"code","b":[160,17],"m":"ldy","o":"#$11"},{"a":4424,"t":"code","b":[140,255,255],"m":"sty","o":"$FFFF","oa":65535},{"a":4427,"t":"code","b":[164,37],"m":"ldy","o":"zpa_25","oa":37},{"a":4429,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4431,"t":"code","b":[172,136,11],"m":"ldy","o":"a_0B88","oa":2952},{"a":4434,"t":"code","b":[173,137,11],"m":"lda","o":"a_0B89","oa":2953},{"a":4437,"t":"code","b":[64],"m":"rti"},{"a":4438,"l":"a_1156","c":"The first sprite pointer of each of the eight bands ($1156-$115D), four consecutive pointers a band: $A0 to $BC for the sprites at $E800, or $80 to $9C for the other buffer at $E000","t":"byte","b":[160],"x":[3173,4543,4586]},{"a":4439,"l":"a_1157","c":"Band 1's first sprite pointer ($84 or $A4 by the buffer), which raster_room writes at $0D77","t":"byte","b":[164],"x":[3447,4548,4591]},{"a":4440,"l":"a_1158","c":"Band 2's first sprite pointer ($88 or $A8), for raster_band_2_ptr","t":"byte","b":[168],"x":[3579,4553,4596]},{"a":4441,"l":"a_1159","c":"Band 3's first sprite pointer ($8C or $AC), for raster_band_3_ptr","t":"byte","b":[172],"x":[3719,4558,4601]},{"a":4442,"l":"a_115A","c":"Band 4's first sprite pointer ($90 or $B0), for raster_band_4_ptr","t":"byte","b":[176],"x":[3859,4563,4606]},{"a":4443,"l":"a_115B","c":"Band 5's first sprite pointer ($94 or $B4), for raster_band_5_ptr","t":"byte","b":[180],"x":[3999,4568,4611]},{"a":4444,"l":"a_115C","c":"Band 6's first sprite pointer ($98 or $B8), for raster_band_6_ptr","t":"byte","b":[184],"x":[4139,4573,4616]},{"a":4445,"l":"a_115D","c":"Band 7's first sprite pointer ($9C or $BC), for raster_band_7_ptr","t":"byte","b":[188],"x":[4279,4578,4621]},{"a":4446,"l":"a_115E","c":"The cursor's sprite pointer: $C1 normally, $C2 while the disk is read (busy_cursor)","t":"byte","b":[194],"x":[3203,5087,5103]},{"a":4447,"l":"a_115F","c":"Set by the main loop when it has drawn the actors into a sprite buffer: 1 for the one at $E000 (pointers $80 up), 2 for $E800; the frame interrupt switches to it and clears this","t":"byte","b":[0],"x":[1480,4529,4698]},{"a":4448,"l":"a_1160","c":"Cleared by the frame interrupt; $D748 waits on it","t":"byte","b":[0],"x":[4775,55112,55115]},{"a":4449,"l":"a_1161","c":"1 while the cursor is hidden (set_user_state); the frame interrupt then neither moves nor shows it","t":"byte","b":[1],"x":[1504,4885,23579,23590,32980,54814,54822,54863]},{"a":4450,"l":"a_1162","c":"The cursor's state to come back to, set with $1161","t":"byte","b":[0],"x":[1313,1501,23582,23593,54817,54860]},{"a":4451,"l":"a_1163","c":"The countdown between steps of the cursor's colour, reloaded from $1165","t":"byte","b":[0],"x":[4832,4840]},{"a":4452,"l":"a_1164","c":"Which colour of the six at $1167 the cursor shows, counting down from $1166","t":"byte","b":[0],"x":[4843,4851,4854]},{"a":4453,"l":"a_1165","c":"The countdown's reload, 6: the countdown runs from 6 through 0 and steps the cursor's colour as it passes below 0, so a step comes every seventh frame","t":"byte","b":[6],"x":[4837]},{"a":4454,"l":"a_1166","c":"The last of the cursor's colours, 5 (six colours, 0 to 5)","t":"byte","b":[5],"x":[4848]},{"a":4455,"l":"f_1167","c":"The cursor's colours, stepped through by the frame interrupt: white, light grey, grey, dark grey, grey, light grey","t":"byte","b":[1,15,12,11,12,15],"x":[4857]},{"a":4461,"l":"a_116D","c":"Set when the frame interrupt has copied the room's colours this frame (copy_room_colours); the cursor is not moved that frame","t":"byte","b":[0],"x":[4515,4875,5078]},{"a":4462,"l":"a_116E","c":"Set while the frame interrupt's slow part runs, so that an interrupt arriving before it ends leaves at once","t":"byte","b":[0],"x":[4778,4786,4951]},{"a":4463,"l":"a_116F","c":"Set by busy_cursor: bit 0 stops the timers and the cursor's colours, bit 1 the music, while the disk is read","t":"byte","b":[7],"x":[4789,4936,5082,5098]},{"a":4464,"l":"a_1170","c":"The next frame's actor sprite X high bits ($1170-$1173), set by the actor drawing code and copied into $0B7D by the frame interrupt","t":"byte","b":[0],"x":[4672,6231,7654]},{"a":4465,"l":"a_1171","c":"The next frame's bit 8 of the second actor sprite's X","t":"byte","b":[0],"x":[4678]},{"a":4466,"l":"a_1172","c":"The next frame's bit 8 of the third actor sprite's X","t":"byte","b":[0],"x":[4684]},{"a":4467,"l":"a_1173","c":"The next frame's bit 8 of the fourth actor sprite's X","t":"byte","b":[0],"x":[4690]},{"a":4468,"l":"a_1174","c":"The next frame's actor sprite X positions ($1174-$1177)","t":"byte","b":[0],"x":[4624,6225,7663]},{"a":4469,"l":"a_1175","c":"The next frame's X of the second actor sprite","t":"byte","b":[0],"x":[4630]},{"a":4470,"l":"a_1176","c":"The next frame's X of the third actor sprite","t":"byte","b":[0],"x":[4636]},{"a":4471,"l":"a_1177","c":"The next frame's X of the fourth actor sprite","t":"byte","b":[0],"x":[4642]},{"a":4472,"l":"a_1178","c":"The next frame's hardware sprite for each actor slot ($1178-$117B)","t":"byte","b":[0],"x":[4648,13720,13728]},{"a":4473,"l":"a_1179","c":"The next frame's hardware sprite for the second actor slot","t":"byte","b":[0],"x":[4654]},{"a":4474,"l":"a_117A","c":"The next frame's hardware sprite for the third actor slot","t":"byte","b":[0],"x":[4660]},{"a":4475,"l":"a_117B","c":"The next frame's hardware sprite for the fourth actor slot","t":"byte","b":[0],"x":[4666]},{"a":4476,"l":"frame_irq","c":"The raster interrupt at line $FB, once a frame: keeps the registers and the bank, counts the frame counters $C6 and $1F; when the main loop has a new frame ready ($7A), switches to the sprite buffer it drew ($115F) with its X positions and sprite numbers, rearms the raster chain, and shows the screen it drew ($21: 1 the screen at $C800, 2 the one at $CC00, each with the room's character set at $D800; 3 only the colours), copying the room's colours into colour RAM (copy_room_colours). Then, with interrupts allowed again: counts down the timers $FC20/$FC21 and $B8/$B9, the scripts' delays (count_script_delays) and the cursor's colour, reads the joystick and keyboard ($1BAF), moves the cursor ($F1F3, $F28E) unless it is hidden or the interface is being redrawn, takes this frame's click ($FC13) and plays the music and sounds ($3FE0)","t":"code","b":[72],"m":"pha"},{"a":4477,"t":"code","b":[138],"m":"txa"},{"a":4478,"t":"code","b":[72],"m":"pha"},{"a":4479,"t":"code","b":[152],"m":"tya"},{"a":4480,"t":"code","b":[72],"m":"pha"},{"a":4481,"t":"code","b":[165,1],"m":"lda","o":"zpa_01","oa":1},{"a":4483,"t":"code","b":[72],"m":"pha"},{"a":4484,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":4486,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4488,"t":"code","b":[165,208],"m":"lda","o":"zpa_D0","oa":208},{"a":4490,"t":"code","b":[240,7],"m":"beq","o":"b_1193","oa":4499},{"a":4492,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4494,"t":"code","b":[133,208],"m":"sta","o":"zpa_D0","oa":208},{"a":4496,"t":"code","b":[76,90,19],"m":"jmp","o":"j_135A","oa":4954},{"a":4499,"l":"b_1193","t":"code","b":[169,27],"m":"lda","o":"#$1B","x":[4490]},{"a":4501,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":4504,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4506,"t":"code","b":[141,33,208],"m":"sta","o":"vic_background0"},{"a":4509,"t":"code","b":[230,198],"m":"inc","o":"zpa_C6","oa":198},{"a":4511,"t":"code","b":[230,31],"m":"inc","o":"zpa_1F","oa":31},{"a":4513,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4515,"t":"code","b":[141,109,17],"m":"sta","o":"a_116D","oa":4461},{"a":4518,"t":"code","b":[165,122],"m":"lda","o":"zpa_7A","oa":122},{"a":4520,"t":"code","b":[208,7],"m":"bne","o":"b_11B1","oa":4529},{"a":4522,"t":"code","b":[32,155,11],"m":"jsr","o":"arm_raster_chain","oa":2971},{"a":4525,"t":"code","b":[88],"m":"cli"},{"a":4526,"t":"code","b":[76,165,18],"m":"jmp","o":"j_12A5","oa":4773},{"a":4529,"l":"b_11B1","t":"code","b":[173,95,17],"m":"lda","o":"a_115F","oa":4447,"x":[4520]},{"a":4532,"t":"code","b":[208,3],"m":"bne","o":"b_11B9","oa":4537},{"a":4534,"t":"code","b":[76,93,18],"m":"jmp","o":"j_125D","oa":4701},{"a":4537,"l":"b_11B9","t":"code","b":[201,1],"m":"cmp","o":"#$01","x":[4532]},{"a":4539,"t":"code","b":[208,43],"m":"bne","o":"b_11E8","oa":4584},{"a":4541,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":4543,"t":"code","b":[141,86,17],"m":"sta","o":"a_1156","oa":4438},{"a":4546,"t":"code","b":[169,132],"m":"lda","o":"#$84"},{"a":4548,"t":"code","b":[141,87,17],"m":"sta","o":"a_1157","oa":4439},{"a":4551,"t":"code","b":[169,136],"m":"lda","o":"#$88"},{"a":4553,"t":"code","b":[141,88,17],"m":"sta","o":"a_1158","oa":4440},{"a":4556,"t":"code","b":[169,140],"m":"lda","o":"#$8C"},{"a":4558,"t":"code","b":[141,89,17],"m":"sta","o":"a_1159","oa":4441},{"a":4561,"t":"code","b":[169,144],"m":"lda","o":"#$90"},{"a":4563,"t":"code","b":[141,90,17],"m":"sta","o":"a_115A","oa":4442},{"a":4566,"t":"code","b":[169,148],"m":"lda","o":"#$94"},{"a":4568,"t":"code","b":[141,91,17],"m":"sta","o":"a_115B","oa":4443},{"a":4571,"t":"code","b":[169,152],"m":"lda","o":"#$98"},{"a":4573,"t":"code","b":[141,92,17],"m":"sta","o":"a_115C","oa":4444},{"a":4576,"t":"code","b":[169,156],"m":"lda","o":"#$9C"},{"a":4578,"t":"code","b":[141,93,17],"m":"sta","o":"a_115D","oa":4445},{"a":4581,"t":"code","b":[76,16,18],"m":"jmp","o":"j_1210","oa":4624},{"a":4584,"l":"b_11E8","t":"code","b":[169,160],"m":"lda","o":"#$A0","x":[4539]},{"a":4586,"t":"code","b":[141,86,17],"m":"sta","o":"a_1156","oa":4438},{"a":4589,"t":"code","b":[169,164],"m":"lda","o":"#$A4"},{"a":4591,"t":"code","b":[141,87,17],"m":"sta","o":"a_1157","oa":4439},{"a":4594,"t":"code","b":[169,168],"m":"lda","o":"#$A8"},{"a":4596,"t":"code","b":[141,88,17],"m":"sta","o":"a_1158","oa":4440},{"a":4599,"t":"code","b":[169,172],"m":"lda","o":"#$AC"},{"a":4601,"t":"code","b":[141,89,17],"m":"sta","o":"a_1159","oa":4441},{"a":4604,"t":"code","b":[169,176],"m":"lda","o":"#$B0"},{"a":4606,"t":"code","b":[141,90,17],"m":"sta","o":"a_115A","oa":4442},{"a":4609,"t":"code","b":[169,180],"m":"lda","o":"#$B4"},{"a":4611,"t":"code","b":[141,91,17],"m":"sta","o":"a_115B","oa":4443},{"a":4614,"t":"code","b":[169,184],"m":"lda","o":"#$B8"},{"a":4616,"t":"code","b":[141,92,17],"m":"sta","o":"a_115C","oa":4444},{"a":4619,"t":"code","b":[169,188],"m":"lda","o":"#$BC"},{"a":4621,"t":"code","b":[141,93,17],"m":"sta","o":"a_115D","oa":4445},{"a":4624,"l":"j_1210","t":"code","b":[173,116,17],"m":"lda","o":"a_1174","oa":4468,"x":[4581]},{"a":4627,"t":"code","b":[141,102,11],"m":"sta","o":"a_0B66","oa":2918},{"a":4630,"t":"code","b":[173,117,17],"m":"lda","o":"a_1175","oa":4469},{"a":4633,"t":"code","b":[141,103,11],"m":"sta","o":"a_0B67","oa":2919},{"a":4636,"t":"code","b":[173,118,17],"m":"lda","o":"a_1176","oa":4470},{"a":4639,"t":"code","b":[141,104,11],"m":"sta","o":"a_0B68","oa":2920},{"a":4642,"t":"code","b":[173,119,17],"m":"lda","o":"a_1177","oa":4471},{"a":4645,"t":"code","b":[141,105,11],"m":"sta","o":"a_0B69","oa":2921},{"a":4648,"t":"code","b":[173,120,17],"m":"lda","o":"a_1178","oa":4472},{"a":4651,"t":"code","b":[141,118,11],"m":"sta","o":"a_0B76","oa":2934},{"a":4654,"t":"code","b":[173,121,17],"m":"lda","o":"a_1179","oa":4473},{"a":4657,"t":"code","b":[141,119,11],"m":"sta","o":"a_0B77","oa":2935},{"a":4660,"t":"code","b":[173,122,17],"m":"lda","o":"a_117A","oa":4474},{"a":4663,"t":"code","b":[141,120,11],"m":"sta","o":"a_0B78","oa":2936},{"a":4666,"t":"code","b":[173,123,17],"m":"lda","o":"a_117B","oa":4475},{"a":4669,"t":"code","b":[141,121,11],"m":"sta","o":"a_0B79","oa":2937},{"a":4672,"t":"code","b":[173,112,17],"m":"lda","o":"a_1170","oa":4464},{"a":4675,"t":"code","b":[141,125,11],"m":"sta","o":"a_0B7D","oa":2941},{"a":4678,"t":"code","b":[173,113,17],"m":"lda","o":"a_1171","oa":4465},{"a":4681,"t":"code","b":[141,126,11],"m":"sta","o":"a_0B7E","oa":2942},{"a":4684,"t":"code","b":[173,114,17],"m":"lda","o":"a_1172","oa":4466},{"a":4687,"t":"code","b":[141,127,11],"m":"sta","o":"a_0B7F","oa":2943},{"a":4690,"t":"code","b":[173,115,17],"m":"lda","o":"a_1173","oa":4467},{"a":4693,"t":"code","b":[141,128,11],"m":"sta","o":"a_0B80","oa":2944},{"a":4696,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4698,"t":"code","b":[141,95,17],"m":"sta","o":"a_115F","oa":4447},{"a":4701,"l":"j_125D","t":"code","b":[32,155,11],"m":"jsr","o":"arm_raster_chain","oa":2971,"x":[4534]},{"a":4704,"t":"code","b":[88],"m":"cli"},{"a":4705,"t":"code","b":[165,33],"m":"lda","o":"zpa_21","oa":33},{"a":4707,"t":"code","b":[240,55],"m":"beq","o":"b_129C","oa":4764},{"a":4709,"t":"code","b":[201,3],"m":"cmp","o":"#$03"},{"a":4711,"t":"code","b":[208,6],"m":"bne","o":"b_126F","oa":4719},{"a":4713,"t":"code","b":[32,111,19],"m":"jsr","o":"copy_room_colours","oa":4975},{"a":4716,"t":"code","b":[76,148,18],"m":"jmp","o":"j_1294","oa":4756},{"a":4719,"l":"b_126F","t":"code","b":[201,1],"m":"cmp","o":"#$01","x":[4711]},{"a":4721,"t":"code","b":[208,18],"m":"bne","o":"b_1285","oa":4741},{"a":4723,"t":"code","b":[169,38],"m":"lda","o":"#$26"},{"a":4725,"t":"code","b":[133,171],"m":"sta","o":"zpa_AB","oa":171},{"a":4727,"t":"code","b":[169,248],"m":"lda","o":"#$F8"},{"a":4729,"t":"code","b":[133,120],"m":"sta","o":"zpp_78","oa":120},{"a":4731,"t":"code","b":[169,203],"m":"lda","o":"#$CB"},{"a":4733,"t":"code","b":[133,121],"m":"sta","o":"zpa_79","oa":121},{"a":4735,"t":"code","b":[32,111,19],"m":"jsr","o":"copy_room_colours","oa":4975},{"a":4738,"t":"code","b":[76,148,18],"m":"jmp","o":"j_1294","oa":4756},{"a":4741,"l":"b_1285","t":"code","b":[169,54],"m":"lda","o":"#$36","x":[4721]},{"a":4743,"t":"code","b":[133,171],"m":"sta","o":"zpa_AB","oa":171},{"a":4745,"t":"code","b":[169,248],"m":"lda","o":"#$F8"},{"a":4747,"t":"code","b":[133,120],"m":"sta","o":"zpp_78","oa":120},{"a":4749,"t":"code","b":[169,207],"m":"lda","o":"#$CF"},{"a":4751,"t":"code","b":[133,121],"m":"sta","o":"zpa_79","oa":121},{"a":4753,"t":"code","b":[32,111,19],"m":"jsr","o":"copy_room_colours","oa":4975},{"a":4756,"l":"j_1294","t":"code","b":[165,123],"m":"lda","o":"zpa_7B","oa":123,"x":[4716,4738]},{"a":4758,"t":"code","b":[133,124],"m":"sta","o":"zpa_7C","oa":124},{"a":4760,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4762,"t":"code","b":[133,33],"m":"sta","o":"zpa_21","oa":33},{"a":4764,"l":"b_129C","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[4707]},{"a":4766,"t":"code","b":[133,122],"m":"sta","o":"zpa_7A","oa":122},{"a":4768,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":4770,"t":"code","b":[141,50,252],"m":"sta","o":"a_FC32","oa":64562},{"a":4773,"l":"j_12A5","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[4526]},{"a":4775,"t":"code","b":[141,96,17],"m":"sta","o":"a_1160","oa":4448},{"a":4778,"t":"code","b":[173,110,17],"m":"lda","o":"a_116E","oa":4462},{"a":4781,"t":"code","b":[240,3],"m":"beq","o":"b_12B2","oa":4786},{"a":4783,"t":"code","b":[76,90,19],"m":"jmp","o":"j_135A","oa":4954},{"a":4786,"l":"b_12B2","t":"code","b":[238,110,17],"m":"inc","o":"a_116E","oa":4462,"x":[4781]},{"a":4789,"t":"code","b":[173,111,17],"m":"lda","o":"a_116F","oa":4463},{"a":4792,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":4794,"t":"code","b":[208,67],"m":"bne","o":"b_12FF","oa":4863},{"a":4796,"t":"code","b":[173,32,252],"m":"lda","o":"a_FC20","oa":64544},{"a":4799,"t":"code","b":[13,33,252],"m":"ora","o":"a_FC21","oa":64545},{"a":4802,"t":"code","b":[240,11],"m":"beq","o":"b_12CF","oa":4815},{"a":4804,"t":"code","b":[173,32,252],"m":"lda","o":"a_FC20","oa":64544},{"a":4807,"t":"code","b":[208,3],"m":"bne","o":"b_12CC","oa":4812},{"a":4809,"t":"code","b":[206,33,252],"m":"dec","o":"a_FC21","oa":64545},{"a":4812,"l":"b_12CC","t":"code","b":[206,32,252],"m":"dec","o":"a_FC20","oa":64544,"x":[4807]},{"a":4815,"l":"b_12CF","t":"code","b":[165,184],"m":"lda","o":"zpa_B8","oa":184,"x":[4802]},{"a":4817,"t":"code","b":[5,185],"m":"ora","o":"zpa_B9","oa":185},{"a":4819,"t":"code","b":[240,8],"m":"beq","o":"b_12DD","oa":4829},{"a":4821,"t":"code","b":[165,184],"m":"lda","o":"zpa_B8","oa":184},{"a":4823,"t":"code","b":[208,2],"m":"bne","o":"b_12DB","oa":4827},{"a":4825,"t":"code","b":[198,185],"m":"dec","o":"zpa_B9","oa":185},{"a":4827,"l":"b_12DB","t":"code","b":[198,184],"m":"dec","o":"zpa_B8","oa":184,"x":[4823]},{"a":4829,"l":"b_12DD","t":"code","b":[32,234,79],"m":"jsr","o":"count_script_delays","oa":20458,"x":[4819]},{"a":4832,"t":"code","b":[206,99,17],"m":"dec","o":"a_1163","oa":4451},{"a":4835,"t":"code","b":[16,26],"m":"bpl","o":"b_12FF","oa":4863},{"a":4837,"t":"code","b":[173,101,17],"m":"lda","o":"a_1165","oa":4453},{"a":4840,"t":"code","b":[141,99,17],"m":"sta","o":"a_1163","oa":4451},{"a":4843,"t":"code","b":[206,100,17],"m":"dec","o":"a_1164","oa":4452},{"a":4846,"t":"code","b":[16,6],"m":"bpl","o":"b_12F6","oa":4854},{"a":4848,"t":"code","b":[173,102,17],"m":"lda","o":"a_1166","oa":4454},{"a":4851,"t":"code","b":[141,100,17],"m":"sta","o":"a_1164","oa":4452},{"a":4854,"l":"b_12F6","t":"code","b":[174,100,17],"m":"ldx","o":"a_1164","oa":4452,"x":[4846]},{"a":4857,"t":"code","b":[189,103,17],"m":"lda","o":"f_1167,x","oa":4455},{"a":4860,"t":"code","b":[141,117,11],"m":"sta","o":"a_0B75","oa":2933},{"a":4863,"l":"b_12FF","t":"code","b":[32,175,27],"m":"jsr","o":"read_keys","oa":7087,"x":[4794,4835]},{"a":4866,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":4868,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4870,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4872,"t":"code","b":[141,19,252],"m":"sta","o":"a_FC13","oa":64531},{"a":4875,"t":"code","b":[173,109,17],"m":"lda","o":"a_116D","oa":4461},{"a":4878,"t":"code","b":[208,39],"m":"bne","o":"b_1337","oa":4919},{"a":4880,"t":"code","b":[173,114,255],"m":"lda","o":"interface_drawing","oa":65394},{"a":4883,"t":"code","b":[208,23],"m":"bne","o":"b_132C","oa":4908},{"a":4885,"t":"code","b":[173,97,17],"m":"lda","o":"a_1161","oa":4449},{"a":4888,"t":"code","b":[208,18],"m":"bne","o":"b_132C","oa":4908},{"a":4890,"t":"code","b":[32,243,241],"m":"jsr","o":"update_cursor","oa":61939},{"a":4893,"t":"code","b":[32,142,242],"m":"jsr","o":"cursor_sprite_position","oa":62094},{"a":4896,"t":"code","b":[141,132,11],"m":"sta","o":"a_0B84","oa":2948},{"a":4899,"t":"code","b":[142,109,11],"m":"stx","o":"a_0B6D","oa":2925},{"a":4902,"t":"code","b":[140,135,11],"m":"sty","o":"a_0B87","oa":2951},{"a":4905,"t":"code","b":[76,55,19],"m":"jmp","o":"b_1337","oa":4919},{"a":4908,"l":"b_132C","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[4883,4888]},{"a":4910,"t":"code","b":[141,132,11],"m":"sta","o":"a_0B84","oa":2948},{"a":4913,"t":"code","b":[141,109,11],"m":"sta","o":"a_0B6D","oa":2925},{"a":4916,"t":"code","b":[141,135,11],"m":"sta","o":"a_0B87","oa":2951},{"a":4919,"l":"b_1337","t":"code","b":[173,45,252],"m":"lda","o":"a_FC2D","oa":64557,"x":[4878,4905]},{"a":4922,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":4924,"t":"code","b":[240,6],"m":"beq","o":"b_1344","oa":4932},{"a":4926,"t":"code","b":[173,19,252],"m":"lda","o":"a_FC13","oa":64531},{"a":4929,"t":"code","b":[141,45,252],"m":"sta","o":"a_FC2D","oa":64557},{"a":4932,"l":"b_1344","t":"code","b":[160,37],"m":"ldy","o":"#$25","x":[4924]},{"a":4934,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4936,"t":"code","b":[173,111,17],"m":"lda","o":"a_116F","oa":4463},{"a":4939,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":4941,"t":"code","b":[208,8],"m":"bne","o":"b_1357","oa":4951},{"a":4943,"t":"code","b":[173,49,252],"m":"lda","o":"a_FC31","oa":64561},{"a":4946,"t":"code","b":[208,3],"m":"bne","o":"b_1357","oa":4951},{"a":4948,"t":"code","b":[32,224,63],"m":"jsr","o":"sound_frame","oa":16352},{"a":4951,"l":"b_1357","t":"code","b":[206,110,17],"m":"dec","o":"a_116E","oa":4462,"x":[4941,4946]},{"a":4954,"l":"j_135A","t":"code","b":[104],"m":"pla","x":[4496,4783]},{"a":4955,"t":"code","b":[133,1],"m":"sta","o":"zpa_01","oa":1},{"a":4957,"t":"code","b":[104],"m":"pla"},{"a":4958,"t":"code","b":[168],"m":"tay"},{"a":4959,"t":"code","b":[104],"m":"pla"},{"a":4960,"t":"code","b":[170],"m":"tax"},{"a":4961,"t":"code","b":[104],"m":"pla"},{"a":4962,"t":"code","b":[64],"m":"rti"},{"a":4963,"l":"copy_room_colours_banked","c":"copy_room_colours with the chips banked in","t":"code","b":[160,37],"m":"ldy","o":"#$25","x":[54942]},{"a":4965,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4967,"t":"code","b":[32,111,19],"m":"jsr","o":"copy_room_colours","oa":4975},{"a":4970,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":4972,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":4974,"t":"code","b":[96],"m":"rts"},{"a":4975,"l":"copy_room_colours","c":"Copies the room's colours, 16 rows of 40 from the buffer at $64F5, into colour RAM rows 2 to 17 ($D850), and sets $116D","t":"code","b":[160,39],"m":"ldy","o":"#$27","x":[4713,4735,4753,4967]},{"a":4977,"l":"b_1371","t":"code","b":[185,245,100],"m":"lda","o":"f_64F5,y","oa":25845,"x":[5074]},{"a":4980,"t":"code","b":[153,80,216],"m":"sta","o":"$D850,y"},{"a":4983,"t":"code","b":[185,29,101],"m":"lda","o":"f_651D,y","oa":25885},{"a":4986,"t":"code","b":[153,120,216],"m":"sta","o":"$D878,y"},{"a":4989,"t":"code","b":[185,69,101],"m":"lda","o":"f_6545,y","oa":25925},{"a":4992,"t":"code","b":[153,160,216],"m":"sta","o":"$D8A0,y"},{"a":4995,"t":"code","b":[185,109,101],"m":"lda","o":"f_656D,y","oa":25965},{"a":4998,"t":"code","b":[153,200,216],"m":"sta","o":"$D8C8,y"},{"a":5001,"t":"code","b":[185,149,101],"m":"lda","o":"f_6595,y","oa":26005},{"a":5004,"t":"code","b":[153,240,216],"m":"sta","o":"$D8F0,y"},{"a":5007,"t":"code","b":[185,189,101],"m":"lda","o":"f_65BD,y","oa":26045},{"a":5010,"t":"code","b":[153,24,217],"m":"sta","o":"$D918,y"},{"a":5013,"t":"code","b":[185,229,101],"m":"lda","o":"f_65E5,y","oa":26085},{"a":5016,"t":"code","b":[153,64,217],"m":"sta","o":"$D940,y"},{"a":5019,"t":"code","b":[185,13,102],"m":"lda","o":"f_660D,y","oa":26125},{"a":5022,"t":"code","b":[153,104,217],"m":"sta","o":"$D968,y"},{"a":5025,"t":"code","b":[185,53,102],"m":"lda","o":"f_6635,y","oa":26165},{"a":5028,"t":"code","b":[153,144,217],"m":"sta","o":"$D990,y"},{"a":5031,"t":"code","b":[185,93,102],"m":"lda","o":"f_665D,y","oa":26205},{"a":5034,"t":"code","b":[153,184,217],"m":"sta","o":"$D9B8,y"},{"a":5037,"t":"code","b":[185,133,102],"m":"lda","o":"f_6685,y","oa":26245},{"a":5040,"t":"code","b":[153,224,217],"m":"sta","o":"$D9E0,y"},{"a":5043,"t":"code","b":[185,173,102],"m":"lda","o":"f_66AD,y","oa":26285},{"a":5046,"t":"code","b":[153,8,218],"m":"sta","o":"$DA08,y"},{"a":5049,"t":"code","b":[185,213,102],"m":"lda","o":"f_66D5,y","oa":26325},{"a":5052,"t":"code","b":[153,48,218],"m":"sta","o":"$DA30,y"},{"a":5055,"t":"code","b":[185,253,102],"m":"lda","o":"f_66FD,y","oa":26365},{"a":5058,"t":"code","b":[153,88,218],"m":"sta","o":"$DA58,y"},{"a":5061,"t":"code","b":[185,37,103],"m":"lda","o":"f_6725,y","oa":26405},{"a":5064,"t":"code","b":[153,128,218],"m":"sta","o":"$DA80,y"},{"a":5067,"t":"code","b":[185,77,103],"m":"lda","o":"f_674D,y","oa":26445},{"a":5070,"t":"code","b":[153,168,218],"m":"sta","o":"$DAA8,y"},{"a":5073,"t":"code","b":[136],"m":"dey"},{"a":5074,"t":"code","b":[16,157],"m":"bpl","o":"b_1371","oa":4977},{"a":5076,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5078,"t":"code","b":[141,109,17],"m":"sta","o":"a_116D","oa":4461},{"a":5081,"t":"code","b":[96],"m":"rts"},{"a":5082,"l":"busy_cursor","c":"Shows the snail (cursor pointer $C2) and keeps A in $116F, which stops the timers, the cursor's colours or the music while the disk works; the cursor's colour becomes white","t":"code","b":[141,111,17],"m":"sta","o":"a_116F","oa":4463,"x":[1039,9111,12341,54464]},{"a":5085,"t":"code","b":[169,194],"m":"lda","o":"#$C2"},{"a":5087,"t":"code","b":[141,94,17],"m":"sta","o":"a_115E","oa":4446},{"a":5090,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5092,"t":"code","b":[141,117,11],"m":"sta","o":"a_0B75","oa":2933},{"a":5095,"t":"code","b":[96],"m":"rts"},{"a":5096,"l":"normal_cursor","c":"The arrow again: cursor pointer $C1 and $116F cleared","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[1303,9161,12438,54708]},{"a":5098,"t":"code","b":[141,111,17],"m":"sta","o":"a_116F","oa":4463},{"a":5101,"t":"code","b":[169,193],"m":"lda","o":"#$C1"},{"a":5103,"t":"code","b":[141,94,17],"m":"sta","o":"a_115E","oa":4446},{"a":5106,"t":"code","b":[96],"m":"rts"},{"a":5107,"l":"video_off","c":"Unless the music player runs ($43E8) or the picture is off already ($82): waits for the frame interrupt to clear $D0, then turns interrupts off, the screen and the sprites off and the border black, and silences the sound when $43E0 asks; sets $82","t":"code","b":[173,232,67],"m":"lda","o":"a_43E8","oa":17384,"x":[1052,10859,24175,24428]},{"a":5110,"t":"code","b":[240,1],"m":"beq","o":"b_13F9","oa":5113},{"a":5112,"t":"code","b":[96],"m":"rts"},{"a":5113,"l":"b_13F9","t":"code","b":[165,130],"m":"lda","o":"zpa_82","oa":130,"x":[5110]},{"a":5115,"t":"code","b":[208,49],"m":"bne","o":"r_142E","oa":5166},{"a":5117,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":5119,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":5121,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5123,"t":"code","b":[133,208],"m":"sta","o":"zpa_D0","oa":208},{"a":5125,"l":"b_1405","t":"code","b":[165,208],"m":"lda","o":"zpa_D0","oa":208,"x":[5127]},{"a":5127,"t":"code","b":[208,252],"m":"bne","o":"b_1405","oa":5125},{"a":5129,"t":"code","b":[120],"m":"sei"},{"a":5130,"t":"code","b":[169,11],"m":"lda","o":"#$0B"},{"a":5132,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":5135,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5137,"t":"code","b":[141,21,208],"m":"sta","o":"vic_sprite_enable"},{"a":5140,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5142,"t":"code","b":[141,32,208],"m":"sta","o":"vic_border"},{"a":5145,"t":"code","b":[173,224,67],"m":"lda","o":"a_43E0","oa":17376},{"a":5148,"t":"code","b":[141,120,20],"m":"sta","o":"a_1478","oa":5240},{"a":5151,"t":"code","b":[240,5],"m":"beq","o":"b_1426","oa":5158},{"a":5153,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5155,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":5158,"l":"b_1426","t":"code","b":[160,36],"m":"ldy","o":"#$24","x":[5151]},{"a":5160,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":5162,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5164,"t":"code","b":[133,130],"m":"sta","o":"zpa_82","oa":130},{"a":5166,"l":"r_142E","t":"code","b":[96],"m":"rts","x":[5115]},{"a":5167,"l":"video_on","c":"When the picture is off ($82): turns the sprites and the screen on, puts the frame interrupt ($117C) in the IRQ vector, asks for line $FA, clears and enables the raster interrupt, gives the sound its volume back ($43DE) when it was silenced, allows interrupts and clears $82","t":"code","b":[165,130],"m":"lda","o":"zpa_82","oa":130,"x":[1300,10898,24208,24432,32984,55104]},{"a":5169,"t":"code","b":[240,68],"m":"beq","o":"r_1477","oa":5239},{"a":5171,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":5173,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":5175,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":5177,"t":"code","b":[141,21,208],"m":"sta","o":"vic_sprite_enable"},{"a":5180,"t":"code","b":[169,124],"m":"lda","o":"#$7C"},{"a":5182,"t":"code","b":[141,254,255],"m":"sta","o":"$FFFE","oa":65534},{"a":5185,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":5187,"t":"code","b":[141,255,255],"m":"sta","o":"$FFFF","oa":65535},{"a":5190,"t":"code","b":[169,27],"m":"lda","o":"#$1B"},{"a":5192,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":5195,"t":"code","b":[169,250],"m":"lda","o":"#$FA"},{"a":5197,"t":"code","b":[141,18,208],"m":"sta","o":"vic_raster"},{"a":5200,"t":"code","b":[169,129],"m":"lda","o":"#$81"},{"a":5202,"t":"code","b":[141,25,208],"m":"sta","o":"vic_irq_status"},{"a":5205,"t":"code","b":[141,26,208],"m":"sta","o":"vic_irq_enable"},{"a":5208,"t":"code","b":[173,13,220],"m":"lda","o":"cia1_interrupt"},{"a":5211,"t":"code","b":[173,0,221],"m":"lda","o":"cia2_port_a"},{"a":5214,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5216,"t":"code","b":[141,32,208],"m":"sta","o":"vic_border"},{"a":5219,"t":"code","b":[173,120,20],"m":"lda","o":"a_1478","oa":5240},{"a":5222,"t":"code","b":[240,6],"m":"beq","o":"b_146E","oa":5230},{"a":5224,"t":"code","b":[173,222,67],"m":"lda","o":"a_43DE","oa":17374},{"a":5227,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":5230,"l":"b_146E","t":"code","b":[160,36],"m":"ldy","o":"#$24","x":[5222]},{"a":5232,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":5234,"t":"code","b":[88],"m":"cli"},{"a":5235,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5237,"t":"code","b":[133,130],"m":"sta","o":"zpa_82","oa":130},{"a":5239,"l":"r_1477","t":"code","b":[96],"m":"rts","x":[5169]},{"a":5240,"l":"a_1478","c":"Set by video_off when it silenced the sound, so that video_on gives the volume back","t":"byte","b":[0,64],"x":[5148,5219]},{"a":5242,"l":"f_147A","c":"Direction tables for walk boxes whose flags change how an actor faces (flags' low three bits): this first 32 bytes give, for the way the actor moves (row: 0 right and down, 1 right and up... from the signs at $FD3E/$FD42) and the box's flags (column), the column to use in the next table","t":"byte","b":[4,1,2,0,1,2,3,0],"x":[5402]},{"a":5250,"t":"byte","b":[6,1,3,0,1,2,3,0]},{"a":5258,"t":"byte","b":[7,0,3,0,1,2,3,0]},{"a":5266,"t":"byte","b":[5,0,2,0,1,2,3,0]},{"a":5274,"c":"For a walking actor: its new direction, by its direction (row of eight) and the column from the table at $147A","t":"byte","b":[0,1,3,2,3,0,2,0]},{"a":5282,"t":"byte","b":[0,1,3,2,1,3,1,2]},{"a":5290,"t":"byte","b":[0,1,3,2,1,0,2,2]},{"a":5298,"t":"byte","b":[0,1,3,2,3,3,1,1]},{"a":5306,"c":"For a standing actor: its new direction, by its direction (row of eight) and the box's flags (column)","t":"byte","b":[0,0,2,0,1,3,2,0]},{"a":5314,"t":"byte","b":[1,1,2,0,1,3,2,0]},{"a":5322,"t":"byte","b":[2,1,2,0,1,3,2,0]},{"a":5330,"t":"byte","b":[3,0,3,0,1,3,2,0]},{"a":5338,"l":"remap_direction","c":"Changes the direction in $FD16 for the walk box the actor stands in, through the tables at $147A-$14D9, chosen by the box's flags ($24DE) and, while it walks, by the way it moves","t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758,"x":[5451]},{"a":5341,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":5343,"t":"code","b":[240,63],"m":"beq","o":"b_1520","oa":5408},{"a":5345,"t":"code","b":[169,154],"m":"lda","o":"#$9A"},{"a":5347,"t":"code","b":[133,29],"m":"sta","o":"zpa_1D","oa":29},{"a":5349,"t":"code","b":[169,20],"m":"lda","o":"#$14"},{"a":5351,"t":"code","b":[133,30],"m":"sta","o":"zpa_1E","oa":30},{"a":5353,"t":"code","b":[189,62,253],"m":"lda","o":"f_FD3E,x","oa":64830},{"a":5356,"t":"code","b":[208,15],"m":"bne","o":"b_14FD","oa":5373},{"a":5358,"t":"code","b":[189,66,253],"m":"lda","o":"f_FD42,x","oa":64834},{"a":5361,"t":"code","b":[208,5],"m":"bne","o":"b_14F8","oa":5368},{"a":5363,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":5365,"t":"code","b":[76,9,21],"m":"jmp","o":"j_1509","oa":5385},{"a":5368,"l":"b_14F8","t":"code","b":[169,2],"m":"lda","o":"#$02","x":[5361]},{"a":5370,"t":"code","b":[76,9,21],"m":"jmp","o":"j_1509","oa":5385},{"a":5373,"l":"b_14FD","t":"code","b":[189,66,253],"m":"lda","o":"f_FD42,x","oa":64834,"x":[5356]},{"a":5376,"t":"code","b":[208,5],"m":"bne","o":"b_1507","oa":5383},{"a":5378,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5380,"t":"code","b":[76,9,21],"m":"jmp","o":"j_1509","oa":5385},{"a":5383,"l":"b_1507","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[5376]},{"a":5385,"l":"j_1509","t":"code","b":[10],"m":"asl","o":"a","x":[5365,5370,5380]},{"a":5386,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5387,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5388,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":5390,"t":"code","b":[189,6,253],"m":"lda","o":"f_FD06,x","oa":64774},{"a":5393,"t":"code","b":[32,222,36],"m":"jsr","o":"box_flags","oa":9438},{"a":5396,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":5398,"t":"code","b":[24],"m":"clc"},{"a":5399,"t":"code","b":[101,27],"m":"adc","o":"zpa_1B","oa":27},{"a":5401,"t":"code","b":[168],"m":"tay"},{"a":5402,"t":"code","b":[185,122,20],"m":"lda","o":"f_147A,y","oa":5242},{"a":5405,"t":"code","b":[76,48,21],"m":"jmp","o":"j_1530","oa":5424},{"a":5408,"l":"b_1520","t":"code","b":[169,186],"m":"lda","o":"#$BA","x":[5343]},{"a":5410,"t":"code","b":[133,29],"m":"sta","o":"zpa_1D","oa":29},{"a":5412,"t":"code","b":[169,20],"m":"lda","o":"#$14"},{"a":5414,"t":"code","b":[133,30],"m":"sta","o":"zpa_1E","oa":30},{"a":5416,"t":"code","b":[189,6,253],"m":"lda","o":"f_FD06,x","oa":64774},{"a":5419,"t":"code","b":[32,222,36],"m":"jsr","o":"box_flags","oa":9438},{"a":5422,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":5424,"l":"j_1530","t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27,"x":[5405]},{"a":5426,"t":"code","b":[189,22,253],"m":"lda","o":"f_FD16,x","oa":64790},{"a":5429,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5430,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5431,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5432,"t":"code","b":[24],"m":"clc"},{"a":5433,"t":"code","b":[101,27],"m":"adc","o":"zpa_1B","oa":27},{"a":5435,"t":"code","b":[168],"m":"tay"},{"a":5436,"t":"code","b":[177,29],"m":"lda","o":"(zpa_1D),y","oa":29},{"a":5438,"t":"code","b":[157,22,253],"m":"sta","o":"f_FD16,x","oa":64790},{"a":5441,"t":"code","b":[96],"m":"rts"},{"a":5442,"l":"walk_actor_step","c":"One step of the walking actor in slot $C5 (actor $E5), each frame: while it turns (bit 7 of $FCF6) it turns a quarter at a time towards its new direction through the table at $1936 and shows each turn; while it walks (bit 0): at the start of each leg (bit 2) either stops, at the last (bit 1), or moves to the next walk box on the way to the destination box (next_box), checks that box is allowed (check_box_allowed), finds where to cross into it (box_crossing_point) and starts the leg (start_leg); between, it takes a step (step_actor)","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[10491]},{"a":5444,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":5447,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":5449,"t":"code","b":[240,51],"m":"beq","o":"b_157E","oa":5502},{"a":5451,"t":"code","b":[32,218,20],"m":"jsr","o":"remap_direction","oa":5338},{"a":5454,"t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229},{"a":5456,"t":"code","b":[185,222,255],"m":"lda","o":"actor_facing,y","oa":65502},{"a":5459,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5460,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5461,"t":"code","b":[24],"m":"clc"},{"a":5462,"t":"code","b":[125,22,253],"m":"adc","o":"f_FD16,x","oa":64790},{"a":5465,"t":"code","b":[168],"m":"tay"},{"a":5466,"t":"code","b":[185,54,25],"m":"lda","o":"f_1936,y","oa":6454},{"a":5469,"t":"code","b":[221,22,253],"m":"cmp","o":"f_FD16,x","oa":64790},{"a":5472,"t":"code","b":[208,10],"m":"bne","o":"b_156C","oa":5484},{"a":5474,"t":"code","b":[72],"m":"pha"},{"a":5475,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":5478,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":5480,"t":"code","b":[157,246,252],"m":"sta","o":"f_FCF6,x","oa":64758},{"a":5483,"t":"code","b":[104],"m":"pla"},{"a":5484,"l":"b_156C","t":"code","b":[72],"m":"pha","x":[5472]},{"a":5485,"t":"code","b":[9,248],"m":"ora","o":"#$F8"},{"a":5487,"t":"code","b":[141,27,252],"m":"sta","o":"a_FC1B","oa":64539},{"a":5490,"t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229},{"a":5492,"t":"code","b":[32,138,32],"m":"jsr","o":"start_animation","oa":8330},{"a":5495,"t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229},{"a":5497,"t":"code","b":[104],"m":"pla"},{"a":5498,"t":"code","b":[153,222,255],"m":"sta","o":"actor_facing,y","oa":65502},{"a":5501,"t":"code","b":[96],"m":"rts"},{"a":5502,"l":"b_157E","t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758,"x":[5449]},{"a":5505,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":5507,"t":"code","b":[240,101],"m":"beq","o":"r_15EA","oa":5610},{"a":5509,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":5512,"t":"code","b":[41,4],"m":"and","o":"#$04"},{"a":5514,"t":"code","b":[240,91],"m":"beq","o":"b_15E7","oa":5607},{"a":5516,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":5519,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":5521,"t":"code","b":[240,6],"m":"beq","o":"b_1599","oa":5529},{"a":5523,"t":"code","b":[32,41,22],"m":"jsr","o":"stop_walking","oa":5673},{"a":5526,"t":"code","b":[76,234,21],"m":"jmp","o":"r_15EA","oa":5610},{"a":5529,"l":"b_1599","t":"code","b":[189,10,253],"m":"lda","o":"f_FD0A,x","oa":64778,"x":[5521]},{"a":5532,"t":"code","b":[32,204,36],"m":"jsr","o":"box_mask","oa":9420},{"a":5535,"t":"code","b":[157,26,253],"m":"sta","o":"walk_masked,x","oa":64794},{"a":5538,"t":"code","b":[189,10,253],"m":"lda","o":"f_FD0A,x","oa":64778},{"a":5541,"t":"code","b":[157,6,253],"m":"sta","o":"f_FD06,x","oa":64774},{"a":5544,"t":"code","b":[221,14,253],"m":"cmp","o":"f_FD0E,x","oa":64782},{"a":5547,"t":"code","b":[208,23],"m":"bne","o":"b_15C4","oa":5572},{"a":5549,"t":"code","b":[189,250,252],"m":"lda","o":"f_FCFA,x","oa":64762},{"a":5552,"t":"code","b":[141,43,25],"m":"sta","o":"a_192B","oa":6443},{"a":5555,"t":"code","b":[189,254,252],"m":"lda","o":"f_FCFE,x","oa":64766},{"a":5558,"t":"code","b":[141,44,25],"m":"sta","o":"a_192C","oa":6444},{"a":5561,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":5564,"t":"code","b":[9,2],"m":"ora","o":"#$02"},{"a":5566,"t":"code","b":[157,246,252],"m":"sta","o":"f_FCF6,x","oa":64758},{"a":5569,"t":"code","b":[76,225,21],"m":"jmp","o":"j_15E1","oa":5601},{"a":5572,"l":"b_15C4","t":"code","b":[32,235,21],"m":"jsr","o":"next_box","oa":5611,"x":[5547]},{"a":5575,"t":"code","b":[157,10,253],"m":"sta","o":"f_FD0A,x","oa":64778},{"a":5578,"t":"code","b":[32,222,36],"m":"jsr","o":"box_flags","oa":9438},{"a":5581,"t":"code","b":[32,253,21],"m":"jsr","o":"check_box_allowed","oa":5629},{"a":5584,"t":"code","b":[32,76,22],"m":"jsr","o":"box_crossing_point","oa":5708},{"a":5587,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":5589,"t":"code","b":[173,112,38],"m":"lda","o":"a_2670","oa":9840},{"a":5592,"t":"code","b":[141,43,25],"m":"sta","o":"a_192B","oa":6443},{"a":5595,"t":"code","b":[173,113,38],"m":"lda","o":"a_2671","oa":9841},{"a":5598,"t":"code","b":[141,44,25],"m":"sta","o":"a_192C","oa":6444},{"a":5601,"l":"j_15E1","t":"code","b":[32,121,22],"m":"jsr","o":"start_leg","oa":5753,"x":[5569]},{"a":5604,"t":"code","b":[76,234,21],"m":"jmp","o":"r_15EA","oa":5610},{"a":5607,"l":"b_15E7","t":"code","b":[32,214,22],"m":"jsr","o":"step_actor","oa":5846,"x":[5514]},{"a":5610,"l":"r_15EA","t":"code","b":[96],"m":"rts","x":[5507,5526,5604]},{"a":5611,"l":"next_box","c":"The next walk box on the way from the actor's box ($FD06) to its destination box ($FD0E), from the room's box matrix (box_matrix_pointer)","t":"code","b":[32,7,23],"m":"jsr","o":"box_matrix_pointer","oa":5895,"x":[5572]},{"a":5614,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":5616,"t":"code","b":[188,6,253],"m":"ldy","o":"f_FD06,x","oa":64774},{"a":5619,"t":"code","b":[177,23],"m":"lda","o":"(zpa_17),y","oa":23},{"a":5621,"t":"code","b":[24],"m":"clc"},{"a":5622,"t":"code","b":[125,14,253],"m":"adc","o":"f_FD0E,x","oa":64782},{"a":5625,"t":"code","b":[168],"m":"tay"},{"a":5626,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":5628,"t":"code","b":[96],"m":"rts"},{"a":5629,"l":"check_box_allowed","c":"For a box whose flags (A) have bit 6 set the walk stops at its edge (bit 1 set, no direction to face at the end): for every actor, or, when bit 5 is set as well, only for the actors from variable 42 to variable 43","t":"code","b":[141,103,38],"m":"sta","o":"a_2667","oa":9831,"x":[5581]},{"a":5632,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":5634,"t":"code","b":[240,36],"m":"beq","o":"r_1628","oa":5672},{"a":5636,"t":"code","b":[173,103,38],"m":"lda","o":"a_2667","oa":9831},{"a":5639,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":5641,"t":"code","b":[240,16],"m":"beq","o":"b_161B","oa":5659},{"a":5643,"t":"code","b":[165,229],"m":"lda","o":"zpa_E5","oa":229},{"a":5645,"t":"code","b":[205,152,254],"m":"cmp","o":"a_FE98","oa":65176},{"a":5648,"t":"code","b":[176,1],"m":"bcs","o":"b_1613","oa":5651},{"a":5650,"t":"code","b":[96],"m":"rts"},{"a":5651,"l":"b_1613","t":"code","b":[205,153,254],"m":"cmp","o":"a_FE99","oa":65177,"x":[5648]},{"a":5654,"t":"code","b":[144,3],"m":"bcc","o":"b_161B","oa":5659},{"a":5656,"t":"code","b":[240,1],"m":"beq","o":"b_161B","oa":5659},{"a":5658,"t":"code","b":[96],"m":"rts"},{"a":5659,"l":"b_161B","t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758,"x":[5641,5654,5656]},{"a":5662,"t":"code","b":[9,2],"m":"ora","o":"#$02"},{"a":5664,"t":"code","b":[157,246,252],"m":"sta","o":"f_FCF6,x","oa":64758},{"a":5667,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":5669,"t":"code","b":[157,2,253],"m":"sta","o":"f_FD02,x","oa":64770},{"a":5672,"l":"r_1628","t":"code","b":[96],"m":"rts","x":[5634]},{"a":5673,"l":"stop_walking","c":"Stops the actor in slot $C5: only bit 7 of $FCF6 kept, its standing animation for the direction it faces ($FC1B = direction + 4, start_animation), then turns it to its final direction ($FD02) when it has one","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[5523,23941]},{"a":5675,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":5677,"t":"code","b":[157,246,252],"m":"sta","o":"f_FCF6,x","oa":64758},{"a":5680,"t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229},{"a":5682,"t":"code","b":[185,222,255],"m":"lda","o":"actor_facing,y","oa":65502},{"a":5685,"t":"code","b":[157,22,253],"m":"sta","o":"f_FD16,x","oa":64790},{"a":5688,"t":"code","b":[24],"m":"clc"},{"a":5689,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":5691,"t":"code","b":[141,27,252],"m":"sta","o":"a_FC1B","oa":64539},{"a":5694,"t":"code","b":[32,138,32],"m":"jsr","o":"start_animation","oa":8330},{"a":5697,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":5699,"t":"code","b":[189,2,253],"m":"lda","o":"f_FD02,x","oa":64770},{"a":5702,"t":"code","b":[48,3],"m":"bmi","o":"r_164B","oa":5707},{"a":5704,"t":"code","b":[157,22,253],"m":"sta","o":"f_FD16,x","oa":64790},{"a":5707,"l":"r_164B","t":"code","b":[96],"m":"rts","x":[5702]},{"a":5708,"l":"box_crossing_point","c":"Where the actor crosses into the next box: the point of the next box nearest the actor ($24EB), then the point of the current box nearest that ($24EB again), left in $2670/$2671","t":"code","b":[189,230,252],"m":"lda","o":"f_FCE6,x","oa":64742,"x":[5584]},{"a":5711,"t":"code","b":[141,104,38],"m":"sta","o":"a_2668","oa":9832},{"a":5714,"t":"code","b":[189,234,252],"m":"lda","o":"f_FCEA,x","oa":64746},{"a":5717,"t":"code","b":[141,105,38],"m":"sta","o":"a_2669","oa":9833},{"a":5720,"t":"code","b":[189,10,253],"m":"lda","o":"f_FD0A,x","oa":64778},{"a":5723,"t":"code","b":[141,111,38],"m":"sta","o":"a_266F","oa":9839},{"a":5726,"t":"code","b":[32,235,36],"m":"jsr","o":"box_nearest_point","oa":9451},{"a":5729,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":5731,"t":"code","b":[173,112,38],"m":"lda","o":"a_2670","oa":9840},{"a":5734,"t":"code","b":[141,104,38],"m":"sta","o":"a_2668","oa":9832},{"a":5737,"t":"code","b":[173,113,38],"m":"lda","o":"a_2671","oa":9841},{"a":5740,"t":"code","b":[141,105,38],"m":"sta","o":"a_2669","oa":9833},{"a":5743,"t":"code","b":[189,6,253],"m":"lda","o":"f_FD06,x","oa":64774},{"a":5746,"t":"code","b":[141,111,38],"m":"sta","o":"a_266F","oa":9839},{"a":5749,"t":"code","b":[32,235,36],"m":"jsr","o":"box_nearest_point","oa":9451},{"a":5752,"t":"code","b":[96],"m":"rts"},{"a":5753,"l":"start_leg","c":"Starts a leg of the walk towards the point in $192B/$192C: works out the step (setup_leg; none to take ends the leg at once), turns the actor when the leg goes another way (left, right, or up and down when it is steeper), starts its walking animation for the direction ($208A) unless it shows it already ($FD12), and takes the first step unless it is turning","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[5601]},{"a":5755,"t":"code","b":[173,43,25],"m":"lda","o":"a_192B","oa":6443},{"a":5758,"t":"code","b":[157,238,252],"m":"sta","o":"f_FCEE,x","oa":64750},{"a":5761,"t":"code","b":[173,44,25],"m":"lda","o":"a_192C","oa":6444},{"a":5764,"t":"code","b":[157,242,252],"m":"sta","o":"f_FCF2,x","oa":64754},{"a":5767,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":5770,"t":"code","b":[41,251],"m":"and","o":"#$FB"},{"a":5772,"t":"code","b":[157,246,252],"m":"sta","o":"f_FCF6,x","oa":64758},{"a":5775,"t":"code","b":[32,101,24],"m":"jsr","o":"setup_leg","oa":6245},{"a":5778,"t":"code","b":[176,104],"m":"bcs","o":"b_16FC","oa":5884},{"a":5780,"t":"code","b":[173,51,25],"m":"lda","o":"a_1933","oa":6451},{"a":5783,"t":"code","b":[208,8],"m":"bne","o":"b_16A1","oa":5793},{"a":5785,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5787,"t":"code","b":[13,52,25],"m":"ora","o":"a_1934","oa":6452},{"a":5790,"t":"code","b":[76,167,22],"m":"jmp","o":"j_16A7","oa":5799},{"a":5793,"l":"b_16A1","t":"code","b":[169,3],"m":"lda","o":"#$03","x":[5783]},{"a":5795,"t":"code","b":[56],"m":"sec"},{"a":5796,"t":"code","b":[237,53,25],"m":"sbc","o":"a_1935","oa":6453},{"a":5799,"l":"j_16A7","t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229,"x":[5790]},{"a":5801,"t":"code","b":[217,222,255],"m":"cmp","o":"actor_facing,y","oa":65502},{"a":5804,"t":"code","b":[240,11],"m":"beq","o":"b_16B9","oa":5817},{"a":5806,"t":"code","b":[157,22,253],"m":"sta","o":"f_FD16,x","oa":64790},{"a":5809,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":5812,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":5814,"t":"code","b":[157,246,252],"m":"sta","o":"f_FCF6,x","oa":64758},{"a":5817,"l":"b_16B9","t":"code","b":[185,222,255],"m":"lda","o":"actor_facing,y","oa":65502,"x":[5804]},{"a":5820,"t":"code","b":[24],"m":"clc"},{"a":5821,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":5823,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":5825,"t":"code","b":[221,18,253],"m":"cmp","o":"f_FD12,x","oa":64786},{"a":5828,"t":"code","b":[240,6],"m":"beq","o":"b_16CC","oa":5836},{"a":5830,"t":"code","b":[141,27,252],"m":"sta","o":"a_FC1B","oa":64539},{"a":5833,"t":"code","b":[32,138,32],"m":"jsr","o":"start_animation","oa":8330},{"a":5836,"l":"b_16CC","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[5828]},{"a":5838,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":5841,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":5843,"t":"code","b":[240,1],"m":"beq","o":"step_actor","oa":5846},{"a":5845,"t":"code","b":[96],"m":"rts"},{"a":5846,"l":"step_actor","c":"Moves the actor one step along its leg, X and Y each by a line-drawing count (step_axis, called for X and again four bytes on for Y), and marks the leg done (bit 2 of $FCF6) when it reaches the point","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[5607,5843]},{"a":5848,"t":"code","b":[189,50,253],"m":"lda","o":"f_FD32,x","oa":64818},{"a":5851,"t":"code","b":[141,46,25],"m":"sta","o":"a_192E","oa":6446},{"a":5854,"t":"code","b":[32,9,25],"m":"jsr","o":"step_axis","oa":6409},{"a":5857,"t":"code","b":[165,197],"m":"lda","o":"zpa_C5","oa":197},{"a":5859,"t":"code","b":[24],"m":"clc"},{"a":5860,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":5862,"t":"code","b":[170],"m":"tax"},{"a":5863,"t":"code","b":[32,9,25],"m":"jsr","o":"step_axis","oa":6409},{"a":5866,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":5868,"t":"code","b":[189,230,252],"m":"lda","o":"f_FCE6,x","oa":64742},{"a":5871,"t":"code","b":[221,238,252],"m":"cmp","o":"f_FCEE,x","oa":64750},{"a":5874,"t":"code","b":[208,18],"m":"bne","o":"r_1706","oa":5894},{"a":5876,"t":"code","b":[189,234,252],"m":"lda","o":"f_FCEA,x","oa":64746},{"a":5879,"t":"code","b":[221,242,252],"m":"cmp","o":"f_FCF2,x","oa":64754},{"a":5882,"t":"code","b":[208,10],"m":"bne","o":"r_1706","oa":5894},{"a":5884,"l":"b_16FC","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[5778]},{"a":5886,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":5889,"t":"code","b":[9,4],"m":"ora","o":"#$04"},{"a":5891,"t":"code","b":[157,246,252],"m":"sta","o":"f_FCF6,x","oa":64758},{"a":5894,"l":"r_1706","t":"code","b":[96],"m":"rts","x":[5874,5882]},{"a":5895,"l":"box_matrix_pointer","c":"Points $17/$18 at the room's box matrix index (after the walk boxes, eight bytes each, from $24A3) and $15/$16 at the matrix itself, one row for each box after the index","t":"code","b":[32,163,36],"m":"jsr","o":"boxes_pointer","oa":9379,"x":[5611]},{"a":5898,"t":"code","b":[165,236],"m":"lda","o":"zpa_EC","oa":236},{"a":5900,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":5902,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":5904,"t":"code","b":[177,235],"m":"lda","o":"(zpp_EB),y","oa":235},{"a":5906,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5907,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5908,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5909,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":5911,"t":"code","b":[24],"m":"clc"},{"a":5912,"t":"code","b":[101,235],"m":"adc","o":"zpp_EB","oa":235},{"a":5914,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":5916,"t":"code","b":[144,2],"m":"bcc","o":"b_1720","oa":5920},{"a":5918,"t":"code","b":[230,24],"m":"inc","o":"zpa_18","oa":24},{"a":5920,"l":"b_1720","t":"code","b":[165,24],"m":"lda","o":"zpa_18","oa":24,"x":[5916]},{"a":5922,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":5924,"t":"code","b":[177,235],"m":"lda","o":"(zpp_EB),y","oa":235},{"a":5926,"t":"code","b":[24],"m":"clc"},{"a":5927,"t":"code","b":[101,23],"m":"adc","o":"zpa_17","oa":23},{"a":5929,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":5931,"t":"code","b":[144,2],"m":"bcc","o":"r_172F","oa":5935},{"a":5933,"t":"code","b":[230,22],"m":"inc","o":"zpa_16","oa":22},{"a":5935,"l":"r_172F","t":"code","b":[96],"m":"rts","x":[5931]},{"a":5936,"l":"actor_sprite_position","c":"The screen position of the actor in slot $C5's sprite column: X (its column less the camera's, $CBC0, plus 3, times 8, plus 1, less 1) in $FCDE with bit 8 in $FCE2, and Y (its Y less its height above the floor, times 2, plus 2) in $FCDA","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[6216,10536]},{"a":5938,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5940,"t":"code","b":[157,226,252],"m":"sta","o":"walk_sprite_x_high,x","oa":64738},{"a":5943,"t":"code","b":[189,230,252],"m":"lda","o":"f_FCE6,x","oa":64742},{"a":5946,"t":"code","b":[56],"m":"sec"},{"a":5947,"t":"code","b":[237,192,203],"m":"sbc","o":"view_left","oa":52160},{"a":5950,"t":"code","b":[24],"m":"clc"},{"a":5951,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":5953,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5954,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5955,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5956,"t":"code","b":[168],"m":"tay"},{"a":5957,"t":"code","b":[200],"m":"iny"},{"a":5958,"t":"code","b":[152],"m":"tya"},{"a":5959,"t":"code","b":[62,226,252],"m":"rol","o":"walk_sprite_x_high,x","oa":64738},{"a":5962,"t":"code","b":[157,222,252],"m":"sta","o":"f_FCDE,x","oa":64734},{"a":5965,"t":"code","b":[222,222,252],"m":"dec","o":"f_FCDE,x","oa":64734},{"a":5968,"t":"code","b":[189,234,252],"m":"lda","o":"f_FCEA,x","oa":64746},{"a":5971,"t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229},{"a":5973,"t":"code","b":[56],"m":"sec"},{"a":5974,"t":"code","b":[249,209,255],"m":"sbc","o":"f_FFD1,y","oa":65489},{"a":5977,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5978,"t":"code","b":[24],"m":"clc"},{"a":5979,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":5981,"t":"code","b":[157,218,252],"m":"sta","o":"f_FCDA,x","oa":64730},{"a":5984,"t":"code","b":[96],"m":"rts"},{"a":5985,"l":"start_walk","c":"Sends actor $E5 walking to $FC18/$FC19, facing $FC1A at the end ($FF: any). An actor not in the room is put there at once. Otherwise the point is moved into the nearest walk box (adjust_to_box); when the actor is there already, facing the right way, nothing happens; otherwise the destination, the final direction, the destination box and the start box are filed and the walk starts (bits 0 and 2 of $FCF6)","t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229,"x":[21836,22537,22638,22664]},{"a":5987,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":5990,"t":"code","b":[16,21],"m":"bpl","o":"b_177D","oa":6013},{"a":5992,"t":"code","b":[173,24,252],"m":"lda","o":"a_FC18","oa":64536},{"a":5995,"t":"code","b":[157,183,255],"m":"sta","o":"actor_x,x","oa":65463},{"a":5998,"t":"code","b":[173,25,252],"m":"lda","o":"a_FC19","oa":64537},{"a":6001,"t":"code","b":[157,170,255],"m":"sta","o":"f_FFAA,x","oa":65450},{"a":6004,"t":"code","b":[173,26,252],"m":"lda","o":"a_FC1A","oa":64538},{"a":6007,"t":"code","b":[48,3],"m":"bmi","o":"r_177C","oa":6012},{"a":6009,"t":"code","b":[157,222,255],"m":"sta","o":"actor_facing,x","oa":65502},{"a":6012,"l":"r_177C","t":"code","b":[96],"m":"rts","x":[6007]},{"a":6013,"l":"b_177D","t":"code","b":[170],"m":"tax","x":[5990]},{"a":6014,"t":"code","b":[134,197],"m":"stx","o":"zpa_C5","oa":197},{"a":6016,"t":"code","b":[173,24,252],"m":"lda","o":"a_FC18","oa":64536},{"a":6019,"t":"code","b":[141,51,252],"m":"sta","o":"a_FC33","oa":64563},{"a":6022,"t":"code","b":[173,25,252],"m":"lda","o":"a_FC19","oa":64537},{"a":6025,"t":"code","b":[141,52,252],"m":"sta","o":"a_FC34","oa":64564},{"a":6028,"t":"code","b":[173,3,105],"m":"lda","o":"current_room","oa":26883},{"a":6031,"t":"code","b":[141,53,252],"m":"sta","o":"a_FC35","oa":64565},{"a":6034,"t":"code","b":[32,220,23],"m":"jsr","o":"adjust_to_box","oa":6108},{"a":6037,"t":"code","b":[173,51,252],"m":"lda","o":"a_FC33","oa":64563},{"a":6040,"t":"code","b":[221,230,252],"m":"cmp","o":"f_FCE6,x","oa":64742},{"a":6043,"t":"code","b":[208,22],"m":"bne","o":"b_17B3","oa":6067},{"a":6045,"t":"code","b":[173,52,252],"m":"lda","o":"a_FC34","oa":64564},{"a":6048,"t":"code","b":[221,234,252],"m":"cmp","o":"f_FCEA,x","oa":64746},{"a":6051,"t":"code","b":[208,14],"m":"bne","o":"b_17B3","oa":6067},{"a":6053,"t":"code","b":[173,26,252],"m":"lda","o":"a_FC1A","oa":64538},{"a":6056,"t":"code","b":[16,1],"m":"bpl","o":"b_17AB","oa":6059},{"a":6058,"t":"code","b":[96],"m":"rts"},{"a":6059,"l":"b_17AB","t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229,"x":[6056]},{"a":6061,"t":"code","b":[217,222,255],"m":"cmp","o":"actor_facing,y","oa":65502},{"a":6064,"t":"code","b":[208,1],"m":"bne","o":"b_17B3","oa":6067},{"a":6066,"t":"code","b":[96],"m":"rts"},{"a":6067,"l":"b_17B3","t":"code","b":[173,51,252],"m":"lda","o":"a_FC33","oa":64563,"x":[6043,6051,6064]},{"a":6070,"t":"code","b":[157,250,252],"m":"sta","o":"f_FCFA,x","oa":64762},{"a":6073,"t":"code","b":[173,52,252],"m":"lda","o":"a_FC34","oa":64564},{"a":6076,"t":"code","b":[157,254,252],"m":"sta","o":"f_FCFE,x","oa":64766},{"a":6079,"t":"code","b":[173,26,252],"m":"lda","o":"a_FC1A","oa":64538},{"a":6082,"t":"code","b":[157,2,253],"m":"sta","o":"f_FD02,x","oa":64770},{"a":6085,"t":"code","b":[189,6,253],"m":"lda","o":"f_FD06,x","oa":64774},{"a":6088,"t":"code","b":[157,10,253],"m":"sta","o":"f_FD0A,x","oa":64778},{"a":6091,"t":"code","b":[173,106,38],"m":"lda","o":"a_266A","oa":9834},{"a":6094,"t":"code","b":[157,14,253],"m":"sta","o":"f_FD0E,x","oa":64782},{"a":6097,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":6100,"t":"code","b":[41,253],"m":"and","o":"#$FD"},{"a":6102,"t":"code","b":[9,5],"m":"ora","o":"#$05"},{"a":6104,"t":"code","b":[157,246,252],"m":"sta","o":"f_FCF6,x","oa":64758},{"a":6107,"t":"code","b":[96],"m":"rts"},{"a":6108,"l":"adjust_to_box","c":"Moves the point $FC33/$FC34 in room $FC35 to the nearest point inside a walk box ($23FD) and returns the box in A; $FF when the room is not the one shown","t":"code","b":[138],"m":"txa","x":[2304,6034,10681]},{"a":6109,"t":"code","b":[72],"m":"pha"},{"a":6110,"t":"code","b":[152],"m":"tya"},{"a":6111,"t":"code","b":[72],"m":"pha"},{"a":6112,"t":"code","b":[173,53,252],"m":"lda","o":"a_FC35","oa":64565},{"a":6115,"t":"code","b":[205,3,105],"m":"cmp","o":"current_room","oa":26883},{"a":6118,"t":"code","b":[240,7],"m":"beq","o":"b_17EF","oa":6127},{"a":6120,"t":"code","b":[104],"m":"pla"},{"a":6121,"t":"code","b":[168],"m":"tay"},{"a":6122,"t":"code","b":[104],"m":"pla"},{"a":6123,"t":"code","b":[170],"m":"tax"},{"a":6124,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":6126,"t":"code","b":[96],"m":"rts"},{"a":6127,"l":"b_17EF","t":"code","b":[173,51,252],"m":"lda","o":"a_FC33","oa":64563,"x":[6118]},{"a":6130,"t":"code","b":[141,104,38],"m":"sta","o":"a_2668","oa":9832},{"a":6133,"t":"code","b":[173,52,252],"m":"lda","o":"a_FC34","oa":64564},{"a":6136,"t":"code","b":[141,105,38],"m":"sta","o":"a_2669","oa":9833},{"a":6139,"t":"code","b":[32,253,35],"m":"jsr","o":"nearest_box","oa":9213},{"a":6142,"t":"code","b":[173,107,38],"m":"lda","o":"a_266B","oa":9835},{"a":6145,"t":"code","b":[141,51,252],"m":"sta","o":"a_FC33","oa":64563},{"a":6148,"t":"code","b":[173,108,38],"m":"lda","o":"a_266C","oa":9836},{"a":6151,"t":"code","b":[141,52,252],"m":"sta","o":"a_FC34","oa":64564},{"a":6154,"t":"code","b":[104],"m":"pla"},{"a":6155,"t":"code","b":[168],"m":"tay"},{"a":6156,"t":"code","b":[104],"m":"pla"},{"a":6157,"t":"code","b":[170],"m":"tax"},{"a":6158,"t":"code","b":[173,106,38],"m":"lda","o":"a_266A","oa":9834},{"a":6161,"t":"code","b":[96],"m":"rts"},{"a":6162,"l":"update_actor_sprites","c":"When the camera has moved: runs $35A9 for every actor in the room and $3491, then, for each of the four slots with a sprite ($FD2E) that is not being redrawn or walking, works out its sprite's new X position (actor_sprite_position) for the next frame ($1174/$1170)","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[1452]},{"a":6164,"t":"code","b":[133,229],"m":"sta","o":"zpa_E5","oa":229},{"a":6166,"l":"b_1816","t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229,"x":[6184]},{"a":6168,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":6171,"t":"code","b":[48,5],"m":"bmi","o":"b_1822","oa":6178},{"a":6173,"t":"code","b":[133,197],"m":"sta","o":"zpa_C5","oa":197},{"a":6175,"t":"code","b":[32,169,53],"m":"jsr","o":"check_on_screen","oa":13737},{"a":6178,"l":"b_1822","t":"code","b":[230,229],"m":"inc","o":"zpa_E5","oa":229,"x":[6171]},{"a":6180,"t":"code","b":[165,229],"m":"lda","o":"zpa_E5","oa":229},{"a":6182,"t":"code","b":[201,13],"m":"cmp","o":"#$0D"},{"a":6184,"t":"code","b":[208,236],"m":"bne","o":"b_1816","oa":6166},{"a":6186,"t":"code","b":[32,145,52],"m":"jsr","o":"assign_sprites","oa":13457},{"a":6189,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":6191,"t":"code","b":[142,45,25],"m":"stx","o":"a_192D","oa":6445},{"a":6194,"l":"b_1832","t":"code","b":[174,45,25],"m":"ldx","o":"a_192D","oa":6445,"x":[6242]},{"a":6197,"t":"code","b":[134,197],"m":"stx","o":"zpa_C5","oa":197},{"a":6199,"t":"code","b":[189,46,253],"m":"lda","o":"f_FD2E,x","oa":64814},{"a":6202,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":6204,"t":"code","b":[240,28],"m":"beq","o":"b_185A","oa":6234},{"a":6206,"t":"code","b":[189,34,253],"m":"lda","o":"f_FD22,x","oa":64802},{"a":6209,"t":"code","b":[208,23],"m":"bne","o":"b_185A","oa":6234},{"a":6211,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":6214,"t":"code","b":[208,18],"m":"bne","o":"b_185A","oa":6234},{"a":6216,"t":"code","b":[32,48,23],"m":"jsr","o":"actor_sprite_position","oa":5936},{"a":6219,"t":"code","b":[189,222,252],"m":"lda","o":"f_FCDE,x","oa":64734},{"a":6222,"t":"code","b":[188,46,253],"m":"ldy","o":"f_FD2E,x","oa":64814},{"a":6225,"t":"code","b":[153,116,17],"m":"sta","o":"a_1174,y","oa":4468},{"a":6228,"t":"code","b":[189,226,252],"m":"lda","o":"walk_sprite_x_high,x","oa":64738},{"a":6231,"t":"code","b":[153,112,17],"m":"sta","o":"a_1170,y","oa":4464},{"a":6234,"l":"b_185A","t":"code","b":[238,45,25],"m":"inc","o":"a_192D","oa":6445,"x":[6204,6209,6214]},{"a":6237,"t":"code","b":[173,45,25],"m":"lda","o":"a_192D","oa":6445},{"a":6240,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":6242,"t":"code","b":[208,206],"m":"bne","o":"b_1832","oa":6194},{"a":6244,"t":"code","b":[96],"m":"rts"},{"a":6245,"l":"setup_leg","c":"The line from the actor to its waypoint ($FCEE/$FCF2): the X and Y distances ($1930, $192F), their directions ($1934, $1935: 1 to the right or down) and the larger ($192E) into the slot's step counts ($FD32-$FD4A), with $1933 set when the line is steeper than flat. Carry set when there is nowhere to go","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[5775]},{"a":6247,"t":"code","b":[140,52,25],"m":"sty","o":"a_1934","oa":6452},{"a":6250,"t":"code","b":[140,53,25],"m":"sty","o":"a_1935","oa":6453},{"a":6253,"t":"code","b":[140,51,25],"m":"sty","o":"a_1933","oa":6451},{"a":6256,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":6258,"t":"code","b":[189,238,252],"m":"lda","o":"f_FCEE,x","oa":64750},{"a":6261,"t":"code","b":[221,230,252],"m":"cmp","o":"f_FCE6,x","oa":64742},{"a":6264,"t":"code","b":[144,9],"m":"bcc","o":"b_1883","oa":6275},{"a":6266,"t":"code","b":[253,230,252],"m":"sbc","o":"f_FCE6,x","oa":64742},{"a":6269,"t":"code","b":[46,52,25],"m":"rol","o":"a_1934","oa":6452},{"a":6272,"t":"code","b":[76,138,24],"m":"jmp","o":"j_188A","oa":6282},{"a":6275,"l":"b_1883","t":"code","b":[189,230,252],"m":"lda","o":"f_FCE6,x","oa":64742,"x":[6264]},{"a":6278,"t":"code","b":[56],"m":"sec"},{"a":6279,"t":"code","b":[253,238,252],"m":"sbc","o":"f_FCEE,x","oa":64750},{"a":6282,"l":"j_188A","t":"code","b":[141,48,25],"m":"sta","o":"a_1930","oa":6448,"x":[6272]},{"a":6285,"t":"code","b":[189,242,252],"m":"lda","o":"f_FCF2,x","oa":64754},{"a":6288,"t":"code","b":[221,234,252],"m":"cmp","o":"f_FCEA,x","oa":64746},{"a":6291,"t":"code","b":[144,9],"m":"bcc","o":"b_189E","oa":6302},{"a":6293,"t":"code","b":[253,234,252],"m":"sbc","o":"f_FCEA,x","oa":64746},{"a":6296,"t":"code","b":[46,53,25],"m":"rol","o":"a_1935","oa":6453},{"a":6299,"t":"code","b":[76,165,24],"m":"jmp","o":"j_18A5","oa":6309},{"a":6302,"l":"b_189E","t":"code","b":[189,234,252],"m":"lda","o":"f_FCEA,x","oa":64746,"x":[6291]},{"a":6305,"t":"code","b":[56],"m":"sec"},{"a":6306,"t":"code","b":[253,242,252],"m":"sbc","o":"f_FCF2,x","oa":64754},{"a":6309,"l":"j_18A5","t":"code","b":[141,47,25],"m":"sta","o":"a_192F","oa":6447,"x":[6299]},{"a":6312,"t":"code","b":[173,48,25],"m":"lda","o":"a_1930","oa":6448},{"a":6315,"t":"code","b":[208,7],"m":"bne","o":"b_18B4","oa":6324},{"a":6317,"t":"code","b":[172,47,25],"m":"ldy","o":"a_192F","oa":6447},{"a":6320,"t":"code","b":[208,2],"m":"bne","o":"b_18B4","oa":6324},{"a":6322,"t":"code","b":[56],"m":"sec"},{"a":6323,"t":"code","b":[96],"m":"rts"},{"a":6324,"l":"b_18B4","t":"code","b":[173,48,25],"m":"lda","o":"a_1930","oa":6448,"x":[6315,6320]},{"a":6327,"t":"code","b":[205,47,25],"m":"cmp","o":"a_192F","oa":6447},{"a":6330,"t":"code","b":[176,5],"m":"bcs","o":"b_18C1","oa":6337},{"a":6332,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":6334,"t":"code","b":[141,51,25],"m":"sta","o":"a_1933","oa":6451},{"a":6337,"l":"b_18C1","t":"code","b":[173,48,25],"m":"lda","o":"a_1930","oa":6448,"x":[6330]},{"a":6340,"t":"code","b":[205,47,25],"m":"cmp","o":"a_192F","oa":6447},{"a":6343,"t":"code","b":[176,3],"m":"bcs","o":"b_18CC","oa":6348},{"a":6345,"t":"code","b":[173,47,25],"m":"lda","o":"a_192F","oa":6447},{"a":6348,"l":"b_18CC","t":"code","b":[141,46,25],"m":"sta","o":"a_192E","oa":6446,"x":[6343]},{"a":6351,"t":"code","b":[173,48,25],"m":"lda","o":"a_1930","oa":6448},{"a":6354,"t":"code","b":[141,49,25],"m":"sta","o":"a_1931","oa":6449},{"a":6357,"t":"code","b":[173,47,25],"m":"lda","o":"a_192F","oa":6447},{"a":6360,"t":"code","b":[141,50,25],"m":"sta","o":"a_1932","oa":6450},{"a":6363,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":6365,"t":"code","b":[173,52,25],"m":"lda","o":"a_1934","oa":6452},{"a":6368,"t":"code","b":[157,62,253],"m":"sta","o":"f_FD3E,x","oa":64830},{"a":6371,"t":"code","b":[173,53,25],"m":"lda","o":"a_1935","oa":6453},{"a":6374,"t":"code","b":[157,66,253],"m":"sta","o":"f_FD42,x","oa":64834},{"a":6377,"t":"code","b":[173,46,25],"m":"lda","o":"a_192E","oa":6446},{"a":6380,"t":"code","b":[157,50,253],"m":"sta","o":"f_FD32,x","oa":64818},{"a":6383,"t":"code","b":[173,47,25],"m":"lda","o":"a_192F","oa":6447},{"a":6386,"t":"code","b":[157,74,253],"m":"sta","o":"f_FD4A,x","oa":64842},{"a":6389,"t":"code","b":[173,48,25],"m":"lda","o":"a_1930","oa":6448},{"a":6392,"t":"code","b":[157,70,253],"m":"sta","o":"f_FD46,x","oa":64838},{"a":6395,"t":"code","b":[173,49,25],"m":"lda","o":"a_1931","oa":6449},{"a":6398,"t":"code","b":[157,54,253],"m":"sta","o":"f_FD36,x","oa":64822},{"a":6401,"t":"code","b":[173,50,25],"m":"lda","o":"a_1932","oa":6450},{"a":6404,"t":"code","b":[157,58,253],"m":"sta","o":"f_FD3A,x","oa":64826},{"a":6407,"t":"code","b":[24],"m":"clc"},{"a":6408,"t":"code","b":[96],"m":"rts"},{"a":6409,"l":"step_axis","c":"One axis of a step: adds the axis's distance ($FD46) to its count ($FD36); when the count reaches the larger distance, takes that off and moves the position ($FCE6) one towards the waypoint. Called with X the slot for X and the slot plus four for Y, whose tables lie four bytes further on","t":"code","b":[189,54,253],"m":"lda","o":"f_FD36,x","oa":64822,"x":[5854,5863]},{"a":6412,"t":"code","b":[24],"m":"clc"},{"a":6413,"t":"code","b":[125,70,253],"m":"adc","o":"f_FD46,x","oa":64838},{"a":6416,"t":"code","b":[205,46,25],"m":"cmp","o":"a_192E","oa":6446},{"a":6419,"t":"code","b":[144,18],"m":"bcc","o":"b_1927","oa":6439},{"a":6421,"t":"code","b":[56],"m":"sec"},{"a":6422,"t":"code","b":[237,46,25],"m":"sbc","o":"a_192E","oa":6446},{"a":6425,"t":"code","b":[188,62,253],"m":"ldy","o":"f_FD3E,x","oa":64830},{"a":6428,"t":"code","b":[208,6],"m":"bne","o":"b_1924","oa":6436},{"a":6430,"t":"code","b":[222,230,252],"m":"dec","o":"f_FCE6,x","oa":64742},{"a":6433,"t":"code","b":[76,39,25],"m":"jmp","o":"b_1927","oa":6439},{"a":6436,"l":"b_1924","t":"code","b":[254,230,252],"m":"inc","o":"f_FCE6,x","oa":64742,"x":[6428]},{"a":6439,"l":"b_1927","t":"code","b":[157,54,253],"m":"sta","o":"f_FD36,x","oa":64822,"x":[6419,6433]},{"a":6442,"t":"code","b":[96],"m":"rts"},{"a":6443,"l":"a_192B","c":"The point the next leg goes to, X and Y ($192C)","t":"byte","b":[0],"x":[5552,5592,5755]},{"a":6444,"l":"a_192C","c":"The X of the point a walk is heading for in this box, set by walk_actor_step from the box's nearest point and read by start_leg","t":"byte","b":[0],"x":[5558,5598,5761]},{"a":6445,"l":"a_192D","c":"The slot update_actor_sprites works on","t":"byte","b":[0],"x":[6191,6194,6234,6237]},{"a":6446,"l":"a_192E","c":"The larger of the two distances of a leg, which each step's count is measured against","t":"byte","b":[0],"x":[5851,6348,6377,6416,6422]},{"a":6447,"l":"a_192F","c":"The leg's Y distance; $1930 its X distance","t":"byte","b":[0],"x":[6309,6317,6327,6340,6345,6357,6383]},{"a":6448,"l":"a_1930","c":"The leg's X distance, to go with $192F's Y","t":"byte","b":[0],"x":[6282,6312,6324,6337,6351,6389]},{"a":6449,"l":"a_1931","c":"The X and Y counts' starting values ($1932 for Y)","t":"byte","b":[0],"x":[6354,6395]},{"a":6450,"l":"a_1932","c":"The Y count's starting value","t":"byte","b":[0],"x":[6360,6401]},{"a":6451,"l":"a_1933","c":"1 when the leg is steeper than flat, so the actor faces up or down","t":"byte","b":[0],"x":[5780,6253,6334]},{"a":6452,"l":"a_1934","c":"1 when the leg goes right; $1935 1 when it goes down","t":"byte","b":[0],"x":[5787,6247,6269,6365]},{"a":6453,"l":"a_1935","c":"1 when the leg goes down, which start_leg takes into the facing","t":"byte","b":[0],"x":[5796,6250,6296,6371]},{"a":6454,"l":"f_1936","c":"The direction to turn to next, by the direction faced (row of four) and the one wanted (column): turns go a quarter at a time","t":"byte","b":[0,2,2,3,2,1,2,3],"x":[5466]},{"a":6462,"t":"byte","b":[0,1,2,1,0,1,0,3]},{"a":6470,"l":"draw_limb_picture","c":"Draws one picture of a costume, at $6E/$6F, into the actor's sprite column at $FC03/$FC04. Its header gives its width in bytes (four pixels each), its height in rows, its X offset in bytes and its Y offset above the row in $35; it is fatal error 7 when the width or height is zero or the picture would be wider than the column's three bytes. Rows above the column or below its 137th are skipped. The picture is stored a column at a time, top to bottom, in runs: a byte with bit 7 clear counts the bytes that follow, one with bit 7 set counts repeats of the one byte after it, and a repeated zero leaves those rows untouched. Each byte is masked in with the table at $1AA4, so colour 0 lets what is behind show. For an actor facing left ($FC02) the picture is drawn mirrored: from the right-hand byte leftwards, each byte through the table at $D200 that reverses its four pixels","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[7933]},{"a":6472,"t":"code","b":[177,110],"m":"lda","o":"(zpp_6E),y","oa":110},{"a":6474,"t":"code","b":[133,217],"m":"sta","o":"zpa_D9","oa":217},{"a":6476,"t":"code","b":[133,68],"m":"sta","o":"zpa_44","oa":68},{"a":6478,"t":"code","b":[240,23],"m":"beq","o":"b_1967","oa":6503},{"a":6480,"t":"code","b":[200],"m":"iny"},{"a":6481,"t":"code","b":[177,110],"m":"lda","o":"(zpp_6E),y","oa":110},{"a":6483,"t":"code","b":[133,218],"m":"sta","o":"zpa_DA","oa":218},{"a":6485,"t":"code","b":[133,67],"m":"sta","o":"zpa_43","oa":67},{"a":6487,"t":"code","b":[240,14],"m":"beq","o":"b_1967","oa":6503},{"a":6489,"t":"code","b":[200],"m":"iny"},{"a":6490,"t":"code","b":[177,110],"m":"lda","o":"(zpp_6E),y","oa":110},{"a":6492,"t":"code","b":[133,50],"m":"sta","o":"zpa_32","oa":50},{"a":6494,"t":"code","b":[24],"m":"clc"},{"a":6495,"t":"code","b":[101,217],"m":"adc","o":"zpa_D9","oa":217},{"a":6497,"t":"code","b":[201,3],"m":"cmp","o":"#$03"},{"a":6499,"t":"code","b":[144,16],"m":"bcc","o":"b_1975","oa":6517},{"a":6501,"t":"code","b":[240,14],"m":"beq","o":"b_1975","oa":6517},{"a":6503,"l":"b_1967","t":"code","b":[169,7],"m":"lda","o":"#$07","x":[6478,6487]},{"a":6505,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":6507,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":6509,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":6511,"l":"j_196F","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[6514]},{"a":6514,"t":"code","b":[76,111,25],"m":"jmp","o":"j_196F","oa":6511},{"a":6517,"l":"b_1975","t":"code","b":[200],"m":"iny","x":[6499,6501]},{"a":6518,"t":"code","b":[177,110],"m":"lda","o":"(zpp_6E),y","oa":110},{"a":6520,"t":"code","b":[133,51],"m":"sta","o":"zpa_33","oa":51},{"a":6522,"t":"code","b":[165,53],"m":"lda","o":"zpa_35","oa":53},{"a":6524,"t":"code","b":[56],"m":"sec"},{"a":6525,"t":"code","b":[229,51],"m":"sbc","o":"zpa_33","oa":51},{"a":6527,"t":"code","b":[56],"m":"sec"},{"a":6528,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":6530,"t":"code","b":[133,219],"m":"sta","o":"zpa_DB","oa":219},{"a":6532,"t":"code","b":[24],"m":"clc"},{"a":6533,"t":"code","b":[101,218],"m":"adc","o":"zpa_DA","oa":218},{"a":6535,"t":"code","b":[133,220],"m":"sta","o":"zpa_DC","oa":220},{"a":6537,"t":"code","b":[201,137],"m":"cmp","o":"#$89"},{"a":6539,"t":"code","b":[144,18],"m":"bcc","o":"b_199F","oa":6559},{"a":6541,"t":"code","b":[240,16],"m":"beq","o":"b_199F","oa":6559},{"a":6543,"t":"code","b":[165,219],"m":"lda","o":"zpa_DB","oa":219},{"a":6545,"t":"code","b":[201,128],"m":"cmp","o":"#$80"},{"a":6547,"t":"code","b":[144,3],"m":"bcc","o":"b_1998","oa":6552},{"a":6549,"t":"code","b":[240,1],"m":"beq","o":"b_1998","oa":6552},{"a":6551,"t":"code","b":[96],"m":"rts"},{"a":6552,"l":"b_1998","t":"code","b":[169,137],"m":"lda","o":"#$89","x":[6547,6549]},{"a":6554,"t":"code","b":[133,220],"m":"sta","o":"zpa_DC","oa":220},{"a":6556,"t":"code","b":[76,174,25],"m":"jmp","o":"j_19AE","oa":6574},{"a":6559,"l":"b_199F","t":"code","b":[165,219],"m":"lda","o":"zpa_DB","oa":219,"x":[6539,6541]},{"a":6561,"t":"code","b":[201,128],"m":"cmp","o":"#$80"},{"a":6563,"t":"code","b":[144,9],"m":"bcc","o":"j_19AE","oa":6574},{"a":6565,"t":"code","b":[240,7],"m":"beq","o":"j_19AE","oa":6574},{"a":6567,"t":"code","b":[165,220],"m":"lda","o":"zpa_DC","oa":220},{"a":6569,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":6571,"t":"code","b":[176,1],"m":"bcs","o":"j_19AE","oa":6574},{"a":6573,"t":"code","b":[96],"m":"rts"},{"a":6574,"l":"j_19AE","t":"code","b":[173,2,252],"m":"lda","o":"a_FC02","oa":64514,"x":[6556,6563,6565,6571]},{"a":6577,"t":"code","b":[208,9],"m":"bne","o":"b_19BC","oa":6588},{"a":6579,"t":"code","b":[165,50],"m":"lda","o":"zpa_32","oa":50},{"a":6581,"t":"code","b":[162,172],"m":"ldx","o":"#$AC"},{"a":6583,"t":"code","b":[160,230],"m":"ldy","o":"#$E6"},{"a":6585,"t":"code","b":[76,197,25],"m":"jmp","o":"j_19C5","oa":6597},{"a":6588,"l":"b_19BC","t":"code","b":[169,2],"m":"lda","o":"#$02","x":[6577]},{"a":6590,"t":"code","b":[56],"m":"sec"},{"a":6591,"t":"code","b":[229,50],"m":"sbc","o":"zpa_32","oa":50},{"a":6593,"t":"code","b":[162,185],"m":"ldx","o":"#$B9"},{"a":6595,"t":"code","b":[160,198],"m":"ldy","o":"#$C6"},{"a":6597,"l":"j_19C5","t":"code","b":[133,65],"m":"sta","o":"zpa_41","oa":65,"x":[6585]},{"a":6599,"t":"code","b":[142,10,26],"m":"stx","o":"limb_byte_mirror","oa":6666},{"a":6602,"t":"code","b":[142,71,26],"m":"stx","o":"limb_run_mirror","oa":6727},{"a":6605,"t":"code","b":[140,51,26],"m":"sty","o":"limb_column_step","oa":6707},{"a":6608,"t":"code","b":[140,130,26],"m":"sty","o":"limb_run_column_step","oa":6786},{"a":6611,"t":"code","b":[140,156,26],"m":"sty","o":"limb_skip_column_step","oa":6812},{"a":6614,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":6616,"t":"code","b":[133,216],"m":"sta","o":"zpa_D8","oa":216},{"a":6618,"t":"code","b":[173,3,252],"m":"lda","o":"a_FC03","oa":64515},{"a":6621,"t":"code","b":[133,63],"m":"sta","o":"zpa_3F","oa":63},{"a":6623,"t":"code","b":[173,4,252],"m":"lda","o":"a_FC04","oa":64516},{"a":6626,"t":"code","b":[133,64],"m":"sta","o":"zpa_40","oa":64},{"a":6628,"t":"code","b":[165,219],"m":"lda","o":"zpa_DB","oa":219},{"a":6630,"t":"code","b":[133,69],"m":"sta","o":"zpa_45","oa":69},{"a":6632,"l":"j_19E8","t":"code","b":[164,216],"m":"ldy","o":"zpa_D8","oa":216,"x":[6712,6791,6817]},{"a":6634,"t":"code","b":[230,216],"m":"inc","o":"zpa_D8","oa":216},{"a":6636,"t":"code","b":[177,110],"m":"lda","o":"(zpp_6E),y","oa":110},{"a":6638,"t":"code","b":[48,76],"m":"bmi","o":"b_1A3C","oa":6716},{"a":6640,"t":"code","b":[170],"m":"tax"},{"a":6641,"l":"b_19F1","t":"code","b":[164,219],"m":"ldy","o":"zpa_DB","oa":219,"x":[6710]},{"a":6643,"t":"code","b":[192,128],"m":"cpy","o":"#$80"},{"a":6645,"t":"code","b":[176,40],"m":"bcs","o":"b_1A1F","oa":6687},{"a":6647,"t":"code","b":[185,177,211],"m":"lda","o":"sprite_row_low_from_1,y","oa":54193},{"a":6650,"t":"code","b":[101,63],"m":"adc","o":"zpa_3F","oa":63},{"a":6652,"t":"code","b":[133,112],"m":"sta","o":"zpa_70","oa":112},{"a":6654,"t":"code","b":[185,17,211],"m":"lda","o":"sprite_row_high_from_1,y","oa":54033},{"a":6657,"t":"code","b":[101,64],"m":"adc","o":"zpa_40","oa":64},{"a":6659,"t":"code","b":[133,113],"m":"sta","o":"zpa_71","oa":113},{"a":6661,"t":"code","b":[164,216],"m":"ldy","o":"zpa_D8","oa":216},{"a":6663,"t":"code","b":[177,110],"m":"lda","o":"(zpp_6E),y","oa":110},{"a":6665,"t":"code","b":[168],"m":"tay"},{"a":6666,"l":"limb_byte_mirror","c":"This instruction (and the one at $1A47) is written by $19C7: LDA $D200,Y, which mirrors the byte, for a mirrored picture, or LDY $D200, which leaves the byte in A as it is","t":"code","b":[185,0,210],"m":"lda","o":"mirror_table,y","oa":53760,"x":[6599]},{"a":6669,"t":"code","b":[133,66],"m":"sta","o":"zpa_42","oa":66},{"a":6671,"t":"code","b":[168],"m":"tay"},{"a":6672,"t":"code","b":[185,164,26],"m":"lda","o":"colour0_mask,y","oa":6820},{"a":6675,"t":"code","b":[133,237],"m":"sta","o":"zpa_ED","oa":237},{"a":6677,"t":"code","b":[164,65],"m":"ldy","o":"zpa_41","oa":65},{"a":6679,"t":"code","b":[177,112],"m":"lda","o":"(zpa_70),y","oa":112},{"a":6681,"t":"code","b":[37,237],"m":"and","o":"zpa_ED","oa":237},{"a":6683,"t":"code","b":[5,66],"m":"ora","o":"zpa_42","oa":66},{"a":6685,"t":"code","b":[145,112],"m":"sta","o":"(zpa_70),y","oa":112},{"a":6687,"l":"b_1A1F","t":"code","b":[230,216],"m":"inc","o":"zpa_D8","oa":216,"x":[6645]},{"a":6689,"t":"code","b":[230,219],"m":"inc","o":"zpa_DB","oa":219},{"a":6691,"t":"code","b":[198,67],"m":"dec","o":"zpa_43","oa":67},{"a":6693,"t":"code","b":[208,14],"m":"bne","o":"b_1A35","oa":6709},{"a":6695,"t":"code","b":[198,68],"m":"dec","o":"zpa_44","oa":68},{"a":6697,"t":"code","b":[240,16],"m":"beq","o":"r_1A3B","oa":6715},{"a":6699,"t":"code","b":[165,69],"m":"lda","o":"zpa_45","oa":69},{"a":6701,"t":"code","b":[133,219],"m":"sta","o":"zpa_DB","oa":219},{"a":6703,"t":"code","b":[165,218],"m":"lda","o":"zpa_DA","oa":218},{"a":6705,"t":"code","b":[133,67],"m":"sta","o":"zpa_43","oa":67},{"a":6707,"l":"limb_column_step","c":"This instruction (and those at $1A82 and $1A9C) is written by $19CD as INC or DEC, so a mirrored picture is drawn from right to left","t":"code","b":[230,65],"m":"inc","o":"zpa_41","oa":65,"x":[6605]},{"a":6709,"l":"b_1A35","t":"code","b":[202],"m":"dex","x":[6693]},{"a":6710,"t":"code","b":[208,185],"m":"bne","o":"b_19F1","oa":6641},{"a":6712,"t":"code","b":[76,232,25],"m":"jmp","o":"j_19E8","oa":6632},{"a":6715,"l":"r_1A3B","t":"code","b":[96],"m":"rts","x":[6697,6776,6802]},{"a":6716,"l":"b_1A3C","t":"code","b":[41,127],"m":"and","o":"#$7F","x":[6638]},{"a":6718,"t":"code","b":[170],"m":"tax"},{"a":6719,"t":"code","b":[230,216],"m":"inc","o":"zpa_D8","oa":216},{"a":6721,"t":"code","b":[200],"m":"iny"},{"a":6722,"t":"code","b":[177,110],"m":"lda","o":"(zpp_6E),y","oa":110},{"a":6724,"t":"code","b":[240,68],"m":"beq","o":"b_1A8A","oa":6794},{"a":6726,"t":"code","b":[168],"m":"tay"},{"a":6727,"l":"limb_run_mirror","c":"Its opcode is written at $19CA, as at $1A0A: $B9, LDA mirror_table,Y, mirrors a run's repeated byte for a picture facing left; $AC, LDY $D200, leaves it as it is. The byte is then masked in with $1AA4 down the column, row after row, for as many rows as the run counts, going on to the next column when one is full","t":"code","b":[185,0,210],"m":"lda","o":"mirror_table,y","oa":53760,"x":[6602]},{"a":6730,"t":"code","b":[133,66],"m":"sta","o":"zpa_42","oa":66},{"a":6732,"t":"code","b":[168],"m":"tay"},{"a":6733,"t":"code","b":[185,164,26],"m":"lda","o":"colour0_mask,y","oa":6820},{"a":6736,"t":"code","b":[133,237],"m":"sta","o":"zpa_ED","oa":237},{"a":6738,"l":"b_1A52","t":"code","b":[164,219],"m":"ldy","o":"zpa_DB","oa":219,"x":[6789]},{"a":6740,"t":"code","b":[192,128],"m":"cpy","o":"#$80"},{"a":6742,"t":"code","b":[176,24],"m":"bcs","o":"b_1A70","oa":6768},{"a":6744,"t":"code","b":[185,177,211],"m":"lda","o":"sprite_row_low_from_1,y","oa":54193},{"a":6747,"t":"code","b":[101,63],"m":"adc","o":"zpa_3F","oa":63},{"a":6749,"t":"code","b":[133,112],"m":"sta","o":"zpa_70","oa":112},{"a":6751,"t":"code","b":[185,17,211],"m":"lda","o":"sprite_row_high_from_1,y","oa":54033},{"a":6754,"t":"code","b":[101,64],"m":"adc","o":"zpa_40","oa":64},{"a":6756,"t":"code","b":[133,113],"m":"sta","o":"zpa_71","oa":113},{"a":6758,"t":"code","b":[164,65],"m":"ldy","o":"zpa_41","oa":65},{"a":6760,"t":"code","b":[177,112],"m":"lda","o":"(zpa_70),y","oa":112},{"a":6762,"t":"code","b":[37,237],"m":"and","o":"zpa_ED","oa":237},{"a":6764,"t":"code","b":[5,66],"m":"ora","o":"zpa_42","oa":66},{"a":6766,"t":"code","b":[145,112],"m":"sta","o":"(zpa_70),y","oa":112},{"a":6768,"l":"b_1A70","t":"code","b":[230,219],"m":"inc","o":"zpa_DB","oa":219,"x":[6742]},{"a":6770,"t":"code","b":[198,67],"m":"dec","o":"zpa_43","oa":67},{"a":6772,"t":"code","b":[208,14],"m":"bne","o":"b_1A84","oa":6788},{"a":6774,"t":"code","b":[198,68],"m":"dec","o":"zpa_44","oa":68},{"a":6776,"t":"code","b":[240,193],"m":"beq","o":"r_1A3B","oa":6715},{"a":6778,"t":"code","b":[165,69],"m":"lda","o":"zpa_45","oa":69},{"a":6780,"t":"code","b":[133,219],"m":"sta","o":"zpa_DB","oa":219},{"a":6782,"t":"code","b":[165,218],"m":"lda","o":"zpa_DA","oa":218},{"a":6784,"t":"code","b":[133,67],"m":"sta","o":"zpa_43","oa":67},{"a":6786,"l":"limb_run_column_step","c":"Written at $19D0 as INC $41 ($E6) or, for a mirrored picture, DEC $41 ($C6): the step to the next byte column when a column fills during a run of repeated bytes","t":"code","b":[230,65],"m":"inc","o":"zpa_41","oa":65,"x":[6608]},{"a":6788,"l":"b_1A84","t":"code","b":[202],"m":"dex","x":[6772]},{"a":6789,"t":"code","b":[208,203],"m":"bne","o":"b_1A52","oa":6738},{"a":6791,"t":"code","b":[76,232,25],"m":"jmp","o":"j_19E8","oa":6632},{"a":6794,"l":"b_1A8A","t":"code","b":[230,219],"m":"inc","o":"zpa_DB","oa":219,"x":[6724,6815]},{"a":6796,"t":"code","b":[198,67],"m":"dec","o":"zpa_43","oa":67},{"a":6798,"t":"code","b":[208,14],"m":"bne","o":"b_1A9E","oa":6814},{"a":6800,"t":"code","b":[198,68],"m":"dec","o":"zpa_44","oa":68},{"a":6802,"t":"code","b":[240,167],"m":"beq","o":"r_1A3B","oa":6715},{"a":6804,"t":"code","b":[165,69],"m":"lda","o":"zpa_45","oa":69},{"a":6806,"t":"code","b":[133,219],"m":"sta","o":"zpa_DB","oa":219},{"a":6808,"t":"code","b":[165,218],"m":"lda","o":"zpa_DA","oa":218},{"a":6810,"t":"code","b":[133,67],"m":"sta","o":"zpa_43","oa":67},{"a":6812,"l":"limb_skip_column_step","c":"Written at $19D3 like $1A82: the step to the next byte column during a run of repeated zeros, which leaves the rows untouched","t":"code","b":[230,65],"m":"inc","o":"zpa_41","oa":65,"x":[6611]},{"a":6814,"l":"b_1A9E","t":"code","b":[202],"m":"dex","x":[6798]},{"a":6815,"t":"code","b":[208,233],"m":"bne","o":"b_1A8A","oa":6794},{"a":6817,"t":"code","b":[76,232,25],"m":"jmp","o":"j_19E8","oa":6632},{"a":6820,"l":"colour0_mask","c":"The mask for each multicolour byte value, 256 bytes: %11 in each pair of bits that is %00, where colour 0 shows what is behind, and %00 in each pair that holds a colour","t":"byte","b":[255,252,252,252,243,240,240,240],"x":[6672,6733]},{"a":6828,"t":"byte","b":[243,240,240,240,243,240,240,240]},{"a":6836,"t":"byte","b":[207,204,204,204,195,192,192,192]},{"a":6844,"t":"byte","b":[195,192,192,192,195,192,192,192]},{"a":6852,"t":"byte","b":[207,204,204,204,195,192,192,192]},{"a":6860,"t":"byte","b":[195,192,192,192,195,192,192,192]},{"a":6868,"t":"byte","b":[207,204,204,204,195,192,192,192]},{"a":6876,"t":"byte","b":[195,192,192,192,195,192,192,192]},{"a":6884,"t":"byte","b":[63,60,60,60,51,48,48,48]},{"a":6892,"t":"byte","b":[51,48,48,48,51,48,48,48]},{"a":6900,"t":"byte","b":[15,12,12,12,3,0,0,0]},{"a":6908,"t":"byte","b":[3,0,0,0,3,0,0,0]},{"a":6916,"t":"byte","b":[15,12,12,12,3,0,0,0]},{"a":6924,"t":"byte","b":[3,0,0,0,3,0,0,0]},{"a":6932,"t":"byte","b":[15,12,12,12,3,0,0,0]},{"a":6940,"t":"byte","b":[3,0,0,0,3,0,0,0]},{"a":6948,"t":"byte","b":[63,60,60,60,51,48,48,48]},{"a":6956,"t":"byte","b":[51,48,48,48,51,48,48,48]},{"a":6964,"t":"byte","b":[15,12,12,12,3,0,0,0]},{"a":6972,"t":"byte","b":[3,0,0,0,3,0,0,0]},{"a":6980,"t":"byte","b":[15,12,12,12,3,0,0,0]},{"a":6988,"t":"byte","b":[3,0,0,0,3,0,0,0]},{"a":6996,"t":"byte","b":[15,12,12,12,3,0,0,0]},{"a":7004,"t":"byte","b":[3,0,0,0,3,0,0,0]},{"a":7012,"t":"byte","b":[63,60,60,60,51,48,48,48]},{"a":7020,"t":"byte","b":[51,48,48,48,51,48,48,48]},{"a":7028,"t":"byte","b":[15,12,12,12,3,0,0,0]},{"a":7036,"t":"byte","b":[3,0,0,0,3,0,0,0]},{"a":7044,"t":"byte","b":[15,12,12,12,3,0,0,0]},{"a":7052,"t":"byte","b":[3,0,0,0,3,0,0,0]},{"a":7060,"t":"byte","b":[15,12,12,12,3,0,0,0]},{"a":7068,"t":"byte","b":[3,0,0,0,3,0,0,0]},{"a":7076,"l":"a_1BA4","c":"The keyboard's column lines read from $DC01 with every row driven low; $1BA6 the row lines read from $DC00 the other way round","t":"byte","b":[255],"x":[7089,7176,7198,7353,7356]},{"a":7077,"l":"a_1BA5","c":"More than one key in the column read (zero: exactly one); $1BA7 the same for the rows","t":"byte","b":[0],"x":[7206,7226,7347]},{"a":7078,"l":"a_1BA6","c":"The keyboard's row lines, read from $DC00 with every column driven low","t":"byte","b":[255],"x":[7092,7195,7215,7365,7368]},{"a":7079,"l":"a_1BA7","c":"More than one key in the row read (zero: exactly one)","t":"byte","b":[0],"x":[7223,7359]},{"a":7080,"l":"a_1BA8","c":"The number of the bit found low by count_low_bits; $1BA9 keeps the column's","t":"byte","b":[0],"x":[7209,7238,7382]},{"a":7081,"l":"a_1BA9","c":"The column's bit number, kept while the row's is counted","t":"byte","b":[0],"x":[7212,7231]},{"a":7082,"l":"a_1BAA","c":"The key reported last, $FF when none is held: a key held down is reported once","t":"byte","b":[0],"x":[7252,7255,7315]},{"a":7083,"l":"a_1BAB","c":"$40 while a shift key is held, added to the key table's index to read its shifted half","t":"byte","b":[0],"x":[7241,7269,7290,7310,7330]},{"a":7084,"l":"a_1BAC","c":"The held shift key's column bit; $1BAD its row bit, taken out of the next scan so the other key can be read","t":"byte","b":[0],"x":[7274,7295,7335]},{"a":7085,"l":"a_1BAD","c":"The held shift key's row bit, taken out of the reading by two_keys_held","t":"byte","b":[0],"x":[7279,7300,7338]},{"a":7086,"l":"a_1BAE","c":"1 when a key is waiting in $2F","t":"byte","b":[0],"x":[7326,7550,7558,33288]},{"a":7087,"l":"read_keys","c":"Each frame, from the frame interrupt: reads the joystick in port 1 (read_joystick); a move or the button, or a cut-scene running ($FF6F), sets the idle count at $FC20/$FC21 back to 18,000 frames. When the count has run out (the frame interrupt counts it down), files the space bar, which pauses the game. Then scans the keyboard: drives every row low and reads the columns, then the other way round, so that one key gives one low bit each way, and turns column and row into an index into the key table at $1CF8 (column times 8 plus row, plus $40 shifted). Two keys at once are read only when one is a shift key. A new key goes into $2F with $1BAE set","t":"code","b":[160,255],"m":"ldy","o":"#$FF","x":[4863]},{"a":7089,"t":"code","b":[140,164,27],"m":"sty","o":"a_1BA4","oa":7076},{"a":7092,"t":"code","b":[140,166,27],"m":"sty","o":"a_1BA6","oa":7078},{"a":7095,"t":"code","b":[173,111,255],"m":"lda","o":"a_FF6F","oa":65391},{"a":7098,"t":"code","b":[240,10],"m":"beq","o":"b_1BC6","oa":7110},{"a":7100,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":7102,"t":"code","b":[141,32,252],"m":"sta","o":"a_FC20","oa":64544},{"a":7105,"t":"code","b":[169,70],"m":"lda","o":"#$46"},{"a":7107,"t":"code","b":[141,33,252],"m":"sta","o":"a_FC21","oa":64545},{"a":7110,"l":"b_1BC6","t":"code","b":[32,224,28],"m":"jsr","o":"read_joystick","oa":7392,"x":[7098]},{"a":7113,"t":"code","b":[240,11],"m":"beq","o":"b_1BD6","oa":7126},{"a":7115,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":7117,"t":"code","b":[141,32,252],"m":"sta","o":"a_FC20","oa":64544},{"a":7120,"t":"code","b":[169,70],"m":"lda","o":"#$46"},{"a":7122,"t":"code","b":[141,33,252],"m":"sta","o":"a_FC21","oa":64545},{"a":7125,"t":"code","b":[96],"m":"rts"},{"a":7126,"l":"b_1BD6","t":"code","b":[173,32,252],"m":"lda","o":"a_FC20","oa":64544,"x":[7113]},{"a":7129,"t":"code","b":[13,33,252],"m":"ora","o":"a_FC21","oa":64545},{"a":7132,"t":"code","b":[208,5],"m":"bne","o":"b_1BE3","oa":7139},{"a":7134,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":7136,"t":"code","b":[76,152,28],"m":"jmp","o":"report_key","oa":7320},{"a":7139,"l":"b_1BE3","t":"code","b":[160,255],"m":"ldy","o":"#$FF","x":[7132]},{"a":7141,"t":"code","b":[140,2,220],"m":"sty","o":"cia1_ddr_a"},{"a":7144,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7146,"t":"code","b":[141,3,220],"m":"sta","o":"cia1_ddr_b"},{"a":7149,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":7152,"t":"code","b":[204,1,220],"m":"cpy","o":"cia1_port_b"},{"a":7155,"t":"code","b":[208,3],"m":"bne","o":"b_1BF8","oa":7160},{"a":7157,"t":"code","b":[76,140,28],"m":"jmp","o":"j_1C8C","oa":7308},{"a":7160,"l":"b_1BF8","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[7155]},{"a":7162,"t":"code","b":[141,2,220],"m":"sta","o":"cia1_ddr_a"},{"a":7165,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7167,"t":"code","b":[141,3,220],"m":"sta","o":"cia1_ddr_b"},{"a":7170,"t":"code","b":[141,0,220],"m":"sta","o":"cia1_port_a"},{"a":7173,"t":"code","b":[173,1,220],"m":"lda","o":"cia1_port_b"},{"a":7176,"t":"code","b":[141,164,27],"m":"sta","o":"a_1BA4","oa":7076},{"a":7179,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":7181,"t":"code","b":[141,3,220],"m":"sta","o":"cia1_ddr_b"},{"a":7184,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7186,"t":"code","b":[141,2,220],"m":"sta","o":"cia1_ddr_a"},{"a":7189,"t":"code","b":[141,1,220],"m":"sta","o":"cia1_port_b"},{"a":7192,"t":"code","b":[173,0,220],"m":"lda","o":"cia1_port_a"},{"a":7195,"t":"code","b":[141,166,27],"m":"sta","o":"a_1BA6","oa":7078},{"a":7198,"l":"j_1C1E","t":"code","b":[173,164,27],"m":"lda","o":"a_1BA4","oa":7076,"x":[7371]},{"a":7201,"t":"code","b":[32,206,28],"m":"jsr","o":"count_low_bits","oa":7374},{"a":7204,"t":"code","b":[48,102],"m":"bmi","o":"j_1C8C","oa":7308},{"a":7206,"t":"code","b":[141,165,27],"m":"sta","o":"a_1BA5","oa":7077},{"a":7209,"t":"code","b":[173,168,27],"m":"lda","o":"a_1BA8","oa":7080},{"a":7212,"t":"code","b":[141,169,27],"m":"sta","o":"a_1BA9","oa":7081},{"a":7215,"t":"code","b":[173,166,27],"m":"lda","o":"a_1BA6","oa":7078},{"a":7218,"t":"code","b":[32,206,28],"m":"jsr","o":"count_low_bits","oa":7374},{"a":7221,"t":"code","b":[48,85],"m":"bmi","o":"j_1C8C","oa":7308},{"a":7223,"t":"code","b":[141,167,27],"m":"sta","o":"a_1BA7","oa":7079},{"a":7226,"t":"code","b":[13,165,27],"m":"ora","o":"a_1BA5","oa":7077},{"a":7229,"t":"code","b":[208,99],"m":"bne","o":"two_keys_held","oa":7330},{"a":7231,"t":"code","b":[173,169,27],"m":"lda","o":"a_1BA9","oa":7081},{"a":7234,"t":"code","b":[10],"m":"asl","o":"a"},{"a":7235,"t":"code","b":[10],"m":"asl","o":"a"},{"a":7236,"t":"code","b":[10],"m":"asl","o":"a"},{"a":7237,"t":"code","b":[24],"m":"clc"},{"a":7238,"t":"code","b":[109,168,27],"m":"adc","o":"a_1BA8","oa":7080},{"a":7241,"t":"code","b":[109,171,27],"m":"adc","o":"a_1BAB","oa":7083},{"a":7244,"t":"code","b":[168],"m":"tay"},{"a":7245,"t":"code","b":[185,248,28],"m":"lda","o":"key_table,y","oa":7416},{"a":7248,"t":"code","b":[201,95],"m":"cmp","o":"#$5F"},{"a":7250,"t":"code","b":[240,56],"m":"beq","o":"j_1C8C","oa":7308},{"a":7252,"t":"code","b":[205,170,27],"m":"cmp","o":"a_1BAA","oa":7082},{"a":7255,"t":"code","b":[141,170,27],"m":"sta","o":"a_1BAA","oa":7082},{"a":7258,"t":"code","b":[240,58],"m":"beq","o":"b_1C96","oa":7318},{"a":7260,"t":"code","b":[185,248,28],"m":"lda","o":"key_table,y","oa":7416},{"a":7263,"t":"code","b":[201,123],"m":"cmp","o":"#$7B"},{"a":7265,"t":"code","b":[208,17],"m":"bne","o":"b_1C74","oa":7284},{"a":7267,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":7269,"t":"code","b":[141,171,27],"m":"sta","o":"a_1BAB","oa":7083},{"a":7272,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":7274,"t":"code","b":[141,172,27],"m":"sta","o":"a_1BAC","oa":7084},{"a":7277,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":7279,"t":"code","b":[141,173,27],"m":"sta","o":"a_1BAD","oa":7085},{"a":7282,"t":"code","b":[208,34],"m":"bne","o":"b_1C96","oa":7318},{"a":7284,"l":"b_1C74","t":"code","b":[201,125],"m":"cmp","o":"#$7D","x":[7265]},{"a":7286,"t":"code","b":[208,17],"m":"bne","o":"b_1C89","oa":7305},{"a":7288,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":7290,"t":"code","b":[141,171,27],"m":"sta","o":"a_1BAB","oa":7083},{"a":7293,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":7295,"t":"code","b":[141,172,27],"m":"sta","o":"a_1BAC","oa":7084},{"a":7298,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":7300,"t":"code","b":[141,173,27],"m":"sta","o":"a_1BAD","oa":7085},{"a":7303,"t":"code","b":[208,13],"m":"bne","o":"b_1C96","oa":7318},{"a":7305,"l":"b_1C89","t":"code","b":[76,152,28],"m":"jmp","o":"report_key","oa":7320,"x":[7286]},{"a":7308,"l":"j_1C8C","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[7157,7204,7221,7250]},{"a":7310,"t":"code","b":[141,171,27],"m":"sta","o":"a_1BAB","oa":7083},{"a":7313,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":7315,"t":"code","b":[141,170,27],"m":"sta","o":"a_1BAA","oa":7082},{"a":7318,"l":"b_1C96","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[7258,7282,7303,7344]},{"a":7320,"l":"report_key","c":"A key to report (A not zero): into $2F, with $1BAE set","t":"code","b":[240,7],"m":"beq","o":"r_1CA1","oa":7329,"x":[7136,7305]},{"a":7322,"t":"code","b":[133,47],"m":"sta","o":"zpa_2F","oa":47},{"a":7324,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":7326,"t":"code","b":[141,174,27],"m":"sta","o":"a_1BAE","oa":7086},{"a":7329,"l":"r_1CA1","t":"code","b":[96],"m":"rts","x":[7320]},{"a":7330,"l":"two_keys_held","c":"Two keys at once: when one of them is a shift key, its bits are taken out of the column and row read and the scan is made again; otherwise the keys are ignored","t":"code","b":[44,171,27],"m":"bit","o":"a_1BAB","oa":7083,"x":[7229]},{"a":7333,"t":"code","b":[80,9],"m":"bvc","o":"b_1CB0","oa":7344},{"a":7335,"t":"code","b":[174,172,27],"m":"ldx","o":"a_1BAC","oa":7084},{"a":7338,"t":"code","b":[172,173,27],"m":"ldy","o":"a_1BAD","oa":7085},{"a":7341,"t":"code","b":[76,179,28],"m":"jmp","o":"j_1CB3","oa":7347},{"a":7344,"l":"b_1CB0","t":"code","b":[76,150,28],"m":"jmp","o":"b_1C96","oa":7318,"x":[7333]},{"a":7347,"l":"j_1CB3","t":"code","b":[173,165,27],"m":"lda","o":"a_1BA5","oa":7077,"x":[7341]},{"a":7350,"t":"code","b":[240,7],"m":"beq","o":"b_1CBF","oa":7359},{"a":7352,"t":"code","b":[138],"m":"txa"},{"a":7353,"t":"code","b":[13,164,27],"m":"ora","o":"a_1BA4","oa":7076},{"a":7356,"t":"code","b":[141,164,27],"m":"sta","o":"a_1BA4","oa":7076},{"a":7359,"l":"b_1CBF","t":"code","b":[173,167,27],"m":"lda","o":"a_1BA7","oa":7079,"x":[7350]},{"a":7362,"t":"code","b":[240,7],"m":"beq","o":"b_1CCB","oa":7371},{"a":7364,"t":"code","b":[152],"m":"tya"},{"a":7365,"t":"code","b":[13,166,27],"m":"ora","o":"a_1BA6","oa":7078},{"a":7368,"t":"code","b":[141,166,27],"m":"sta","o":"a_1BA6","oa":7078},{"a":7371,"l":"b_1CCB","t":"code","b":[76,30,28],"m":"jmp","o":"j_1C1E","oa":7198,"x":[7362]},{"a":7374,"l":"count_low_bits","c":"Counts the low bits of A and keeps the number of the lowest in $1BA8; returns the count less one: 0 for exactly one key, $FF (negative) for none","t":"code","b":[160,7],"m":"ldy","o":"#$07","x":[7201,7218]},{"a":7376,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":7378,"l":"b_1CD2","t":"code","b":[10],"m":"asl","o":"a","x":[7386]},{"a":7379,"t":"code","b":[176,4],"m":"bcs","o":"b_1CD9","oa":7385},{"a":7381,"t":"code","b":[232],"m":"inx"},{"a":7382,"t":"code","b":[140,168,27],"m":"sty","o":"a_1BA8","oa":7080},{"a":7385,"l":"b_1CD9","t":"code","b":[136],"m":"dey","x":[7379]},{"a":7386,"t":"code","b":[16,246],"m":"bpl","o":"b_1CD2","oa":7378},{"a":7388,"t":"code","b":[202],"m":"dex"},{"a":7389,"t":"code","b":[138],"m":"txa"},{"a":7390,"t":"code","b":[96],"m":"rts"},{"a":7391,"c":"Not used: one byte left over after count_low_bits","t":"byte","b":[0]},{"a":7392,"l":"read_joystick","c":"Reads joystick port 1 ($DC01, with port A's lines all driven high so no keyboard row is selected) into $31; Z is set when it is neither moved nor fired (the low five bits all 1)","t":"code","b":[160,255],"m":"ldy","o":"#$FF","x":[7110,12391,12403]},{"a":7394,"t":"code","b":[140,2,220],"m":"sty","o":"cia1_ddr_a"},{"a":7397,"t":"code","b":[140,0,220],"m":"sty","o":"cia1_port_a"},{"a":7400,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7402,"t":"code","b":[141,3,220],"m":"sta","o":"cia1_ddr_b"},{"a":7405,"t":"code","b":[173,1,220],"m":"lda","o":"cia1_port_b"},{"a":7408,"t":"code","b":[133,49],"m":"sta","o":"zpa_31","oa":49},{"a":7410,"t":"code","b":[41,31],"m":"and","o":"#$1F"},{"a":7412,"t":"code","b":[201,31],"m":"cmp","o":"#$1F"},{"a":7414,"t":"code","b":[96],"m":"rts"},{"a":7415,"c":"Not used: one byte left over before the key table","t":"byte","b":[0]},{"a":7416,"l":"key_table","c":"The key each position of the keyboard's matrix gives, by column (eight rows of eight): letters and digits as ASCII, RETURN $0D, space $20, F1 to F7 $01 to $04, the cursor keys $C8 to $CD, a shift key $7B (left) or $7D (right), and $5F for a key the game ignores. This first half is unshifted","t":"byte","b":[200,51,53,55,57,43,95,49],"x":[7245,7260]},{"a":7424,"t":"byte","b":[13,119,114,121,105,112,42,95]},{"a":7432,"t":"byte","b":[202,97,100,103,106,108,59,95]},{"a":7440,"t":"byte","b":[4,52,54,56,48,45,207,50]},{"a":7448,"t":"byte","b":[1,122,99,98,109,46,125,32]},{"a":7456,"t":"byte","b":[2,115,102,104,107,58,61,208]},{"a":7464,"t":"byte","b":[3,101,116,117,111,64,95,113]},{"a":7472,"t":"byte","b":[205,123,120,118,110,44,47,95]},{"a":7480,"c":"The shifted half: shifted F1 to F7 give $05 to $08 (shifted F1 saves and loads, shifted F7 restarts), the shifted digits their symbols","t":"byte","b":[201,35,37,39,41,43,95,33]},{"a":7488,"t":"byte","b":[13,87,82,89,73,80,42,95]},{"a":7496,"t":"byte","b":[203,65,68,71,74,76,41,95]},{"a":7504,"t":"byte","b":[8,36,38,40,48,45,206,34]},{"a":7512,"t":"byte","b":[5,90,67,66,77,62,125,32]},{"a":7520,"t":"byte","b":[6,83,70,72,75,40,61,95]},{"a":7528,"t":"byte","b":[7,69,84,85,79,64,95,81]},{"a":7536,"t":"byte","b":[204,123,88,86,78,60,63,95]},{"a":7544,"l":"wait_for_key","c":"Waits until a key is pressed and returns it. Nothing in the program calls it","t":"code","b":[32,126,29],"m":"jsr","o":"get_key","oa":7550,"x":[7547]},{"a":7547,"t":"code","b":[240,251],"m":"beq","o":"wait_for_key","oa":7544},{"a":7549,"t":"code","b":[96],"m":"rts"},{"a":7550,"l":"get_key","c":"The waiting key in A and $1BAE cleared, or zero when none is waiting","t":"code","b":[173,174,27],"m":"lda","o":"a_1BAE","oa":7086,"x":[7544,9037,9144]},{"a":7553,"t":"code","b":[208,1],"m":"bne","o":"b_1D84","oa":7556},{"a":7555,"t":"code","b":[96],"m":"rts"},{"a":7556,"l":"b_1D84","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[7553]},{"a":7558,"t":"code","b":[141,174,27],"m":"sta","o":"a_1BAE","oa":7086},{"a":7561,"t":"code","b":[165,47],"m":"lda","o":"zpa_2F","oa":47},{"a":7563,"t":"code","b":[96],"m":"rts"},{"a":7564,"l":"draw_actor","c":"Draws the next frame of actor $E5, in walk slot $C5, into its sprite column: once its costume is found (costume_pointer) and checked ($57 as its second byte), loads the slot's animation state, works out the sprite's column on the screen ($FC0C), clears the rows the last frame in this buffer used, draws every limb (draw_limbs), keeps the rows this frame used, masks it behind the room's foreground when it stands behind something ($FD1A), copies the seam rows (copy_seam_rows), hands the sprite's X position and the actor's colour to the raster interrupt ($1170, $1174, $0B6E) and saves the animation state","t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229,"x":[10549]},{"a":7566,"t":"code","b":[185,86,253],"m":"lda","o":"f_FD56,y","oa":64854},{"a":7569,"t":"code","b":[133,197],"m":"sta","o":"zpa_C5","oa":197},{"a":7571,"t":"code","b":[32,48,31],"m":"jsr","o":"costume_pointer","oa":7984},{"a":7574,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":7576,"t":"code","b":[177,221],"m":"lda","o":"(zpp_DD),y","oa":221},{"a":7578,"t":"code","b":[201,87],"m":"cmp","o":"#$57"},{"a":7580,"t":"code","b":[240,1],"m":"beq","o":"b_1D9F","oa":7583},{"a":7582,"t":"code","b":[96],"m":"rts"},{"a":7583,"l":"b_1D9F","t":"code","b":[32,76,31],"m":"jsr","o":"load_anim_state","oa":8012,"x":[7580]},{"a":7586,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":7588,"t":"code","b":[222,34,253],"m":"dec","o":"f_FD22,x","oa":64802},{"a":7591,"t":"code","b":[189,226,252],"m":"lda","o":"walk_sprite_x_high,x","oa":64738},{"a":7594,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":7595,"t":"code","b":[189,222,252],"m":"lda","o":"f_FCDE,x","oa":64734},{"a":7598,"t":"code","b":[106],"m":"ror","o":"a"},{"a":7599,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":7600,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":7601,"t":"code","b":[56],"m":"sec"},{"a":7602,"t":"code","b":[233,3],"m":"sbc","o":"#$03"},{"a":7604,"t":"code","b":[141,12,252],"m":"sta","o":"a_FC0C","oa":64524},{"a":7607,"t":"code","b":[188,46,253],"m":"ldy","o":"f_FD2E,x","oa":64814},{"a":7610,"t":"code","b":[32,11,32],"m":"jsr","o":"sprite_column_address","oa":8203},{"a":7613,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":7615,"t":"code","b":[188,46,253],"m":"ldy","o":"f_FD2E,x","oa":64814},{"a":7618,"t":"code","b":[32,112,31],"m":"jsr","o":"clear_old_rows","oa":8048},{"a":7621,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7623,"t":"code","b":[133,51],"m":"sta","o":"zpa_33","oa":51},{"a":7625,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":7627,"t":"code","b":[32,254,29],"m":"jsr","o":"draw_limbs","oa":7678},{"a":7630,"t":"code","b":[32,228,31],"m":"jsr","o":"keep_drawn_rows","oa":8164},{"a":7633,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":7635,"t":"code","b":[189,26,253],"m":"lda","o":"walk_masked,x","oa":64794},{"a":7638,"t":"code","b":[240,3],"m":"beq","o":"b_1DDB","oa":7643},{"a":7640,"t":"code","b":[32,115,38],"m":"jsr","o":"mask_actor_sprite","oa":9843},{"a":7643,"l":"b_1DDB","t":"code","b":[32,37,32],"m":"jsr","o":"copy_seam_rows","oa":8229,"x":[7638]},{"a":7646,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":7648,"t":"code","b":[189,226,252],"m":"lda","o":"walk_sprite_x_high,x","oa":64738},{"a":7651,"t":"code","b":[188,46,253],"m":"ldy","o":"f_FD2E,x","oa":64814},{"a":7654,"t":"code","b":[153,112,17],"m":"sta","o":"a_1170,y","oa":4464},{"a":7657,"t":"code","b":[189,222,252],"m":"lda","o":"f_FCDE,x","oa":64734},{"a":7660,"t":"code","b":[188,46,253],"m":"ldy","o":"f_FD2E,x","oa":64814},{"a":7663,"t":"code","b":[153,116,17],"m":"sta","o":"a_1174,y","oa":4468},{"a":7666,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":7668,"t":"code","b":[189,118,255],"m":"lda","o":"f_FF76,x","oa":65398},{"a":7671,"t":"code","b":[153,110,11],"m":"sta","o":"a_0B6E,y","oa":2926},{"a":7674,"t":"code","b":[32,94,31],"m":"jsr","o":"save_anim_state","oa":8030},{"a":7677,"t":"code","b":[96],"m":"rts"},{"a":7678,"l":"draw_limbs","c":"Draws the eight limbs of actor X's costume, each picture placed from the row in $35 (the sprite's foot) and mirrored when the actor faces left (direction 0, $FC02). The limbs' frame lists start at the costume's word at offset 2. When any limb is still animating ($2088), the slot is drawn again next frame","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[7627]},{"a":7680,"t":"code","b":[189,218,252],"m":"lda","o":"f_FCDA,x","oa":64730},{"a":7683,"t":"code","b":[133,53],"m":"sta","o":"zpa_35","oa":53},{"a":7685,"t":"code","b":[141,18,252],"m":"sta","o":"a_FC12","oa":64530},{"a":7688,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7690,"t":"code","b":[133,52],"m":"sta","o":"zpa_34","oa":52},{"a":7692,"t":"code","b":[141,17,252],"m":"sta","o":"a_FC11","oa":64529},{"a":7695,"t":"code","b":[141,0,252],"m":"sta","o":"a_FC00","oa":64512},{"a":7698,"t":"code","b":[141,1,252],"m":"sta","o":"a_FC01","oa":64513},{"a":7701,"t":"code","b":[141,56,252],"m":"sta","o":"a_FC38","oa":64568},{"a":7704,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":7706,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":7708,"t":"code","b":[189,222,255],"m":"lda","o":"actor_facing,x","oa":65502},{"a":7711,"t":"code","b":[208,1],"m":"bne","o":"b_1E22","oa":7714},{"a":7713,"t":"code","b":[200],"m":"iny"},{"a":7714,"l":"b_1E22","t":"code","b":[140,2,252],"m":"sty","o":"a_FC02","oa":64514,"x":[7711]},{"a":7717,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":7719,"t":"code","b":[165,221],"m":"lda","o":"zpp_DD","oa":221},{"a":7721,"t":"code","b":[24],"m":"clc"},{"a":7722,"t":"code","b":[113,221],"m":"adc","o":"(zpp_DD),y","oa":221},{"a":7724,"t":"code","b":[133,225],"m":"sta","o":"zpa_E1","oa":225},{"a":7726,"t":"code","b":[200],"m":"iny"},{"a":7727,"t":"code","b":[165,222],"m":"lda","o":"zpa_DE","oa":222},{"a":7729,"t":"code","b":[113,221],"m":"adc","o":"(zpp_DD),y","oa":221},{"a":7731,"t":"code","b":[133,226],"m":"sta","o":"zpa_E2","oa":226},{"a":7733,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7735,"t":"code","b":[141,136,32],"m":"sta","o":"a_2088","oa":8328},{"a":7738,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7740,"t":"code","b":[141,11,252],"m":"sta","o":"a_FC0B","oa":64523},{"a":7743,"l":"b_1E3F","t":"code","b":[32,87,30],"m":"jsr","o":"draw_limb","oa":7767,"x":[7754]},{"a":7746,"t":"code","b":[238,11,252],"m":"inc","o":"a_FC0B","oa":64523},{"a":7749,"t":"code","b":[173,11,252],"m":"lda","o":"a_FC0B","oa":64523},{"a":7752,"t":"code","b":[201,8],"m":"cmp","o":"#$08"},{"a":7754,"t":"code","b":[208,243],"m":"bne","o":"b_1E3F","oa":7743},{"a":7756,"t":"code","b":[173,136,32],"m":"lda","o":"a_2088","oa":8328},{"a":7759,"t":"code","b":[240,5],"m":"beq","o":"r_1E56","oa":7766},{"a":7761,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":7763,"t":"code","b":[254,34,253],"m":"inc","o":"f_FD22,x","oa":64802},{"a":7766,"l":"r_1E56","t":"code","b":[96],"m":"rts","x":[7759,7775]},{"a":7767,"l":"draw_limb","c":"Advances limb $FC0B to its next frame and draws it: a limb that loops (bit 7 of its frame clear) goes back to its first frame after the last; one that plays once holds its last; $FF is a limb not shown. The frame's entry in the frame list gives the picture, with bit 7 asking for the actor's sound ($FD52); the limb's own table (at the costume's word at offset 4 plus twice the limb) gives the picture's address. Each picture's bytes 4 and 5 move the next one: X right by the first, Y up by the second (place_next_picture)","t":"code","b":[172,11,252],"m":"ldy","o":"a_FC0B","oa":64523,"x":[7743]},{"a":7770,"t":"code","b":[185,58,252],"m":"lda","o":"f_FC3A,y","oa":64570},{"a":7773,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":7775,"t":"code","b":[240,245],"m":"beq","o":"r_1E56","oa":7766},{"a":7777,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":7779,"t":"code","b":[141,135,32],"m":"sta","o":"a_2087","oa":8327},{"a":7782,"t":"code","b":[185,58,252],"m":"lda","o":"f_FC3A,y","oa":64570},{"a":7785,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":7787,"t":"code","b":[141,133,32],"m":"sta","o":"a_2085","oa":8325},{"a":7790,"t":"code","b":[185,74,252],"m":"lda","o":"f_FC4A,y","oa":64586},{"a":7793,"t":"code","b":[141,134,32],"m":"sta","o":"a_2086","oa":8326},{"a":7796,"t":"code","b":[173,133,32],"m":"lda","o":"a_2085","oa":8325},{"a":7799,"t":"code","b":[174,135,32],"m":"ldx","o":"a_2087","oa":8327},{"a":7802,"t":"code","b":[48,28],"m":"bmi","o":"b_1E98","oa":7832},{"a":7804,"t":"code","b":[238,133,32],"m":"inc","o":"a_2085","oa":8325},{"a":7807,"t":"code","b":[205,134,32],"m":"cmp","o":"a_2086","oa":8326},{"a":7810,"t":"code","b":[144,6],"m":"bcc","o":"b_1E8A","oa":7818},{"a":7812,"t":"code","b":[185,66,252],"m":"lda","o":"f_FC42,y","oa":64578},{"a":7815,"t":"code","b":[141,133,32],"m":"sta","o":"a_2085","oa":8325},{"a":7818,"l":"b_1E8A","t":"code","b":[185,66,252],"m":"lda","o":"f_FC42,y","oa":64578,"x":[7810]},{"a":7821,"t":"code","b":[205,134,32],"m":"cmp","o":"a_2086","oa":8326},{"a":7824,"t":"code","b":[240,3],"m":"beq","o":"b_1E95","oa":7829},{"a":7826,"t":"code","b":[238,136,32],"m":"inc","o":"a_2088","oa":8328},{"a":7829,"l":"b_1E95","t":"code","b":[76,163,30],"m":"jmp","o":"j_1EA3","oa":7843,"x":[7824]},{"a":7832,"l":"b_1E98","t":"code","b":[205,134,32],"m":"cmp","o":"a_2086","oa":8326,"x":[7802]},{"a":7835,"t":"code","b":[240,6],"m":"beq","o":"j_1EA3","oa":7843},{"a":7837,"t":"code","b":[238,133,32],"m":"inc","o":"a_2085","oa":8325},{"a":7840,"t":"code","b":[238,136,32],"m":"inc","o":"a_2088","oa":8328},{"a":7843,"l":"j_1EA3","t":"code","b":[173,133,32],"m":"lda","o":"a_2085","oa":8325,"x":[7829,7835]},{"a":7846,"t":"code","b":[13,135,32],"m":"ora","o":"a_2087","oa":8327},{"a":7849,"t":"code","b":[153,58,252],"m":"sta","o":"f_FC3A,y","oa":64570},{"a":7852,"t":"code","b":[173,11,252],"m":"lda","o":"a_FC0B","oa":64523},{"a":7855,"t":"code","b":[10],"m":"asl","o":"a"},{"a":7856,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":7858,"t":"code","b":[168],"m":"tay"},{"a":7859,"t":"code","b":[177,221],"m":"lda","o":"(zpp_DD),y","oa":221},{"a":7861,"t":"code","b":[24],"m":"clc"},{"a":7862,"t":"code","b":[101,221],"m":"adc","o":"zpp_DD","oa":221},{"a":7864,"t":"code","b":[133,227],"m":"sta","o":"zpa_E3","oa":227},{"a":7866,"t":"code","b":[200],"m":"iny"},{"a":7867,"t":"code","b":[177,221],"m":"lda","o":"(zpp_DD),y","oa":221},{"a":7869,"t":"code","b":[101,222],"m":"adc","o":"zpa_DE","oa":222},{"a":7871,"t":"code","b":[133,228],"m":"sta","o":"zpa_E4","oa":228},{"a":7873,"t":"code","b":[172,133,32],"m":"ldy","o":"a_2085","oa":8325},{"a":7876,"t":"code","b":[177,225],"m":"lda","o":"(zpa_E1),y","oa":225},{"a":7878,"t":"code","b":[16,5],"m":"bpl","o":"b_1ECD","oa":7885},{"a":7880,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":7882,"t":"code","b":[254,82,253],"m":"inc","o":"f_FD52,x","oa":64850},{"a":7885,"l":"b_1ECD","t":"code","b":[10],"m":"asl","o":"a","x":[7878]},{"a":7886,"t":"code","b":[168],"m":"tay"},{"a":7887,"t":"code","b":[177,227],"m":"lda","o":"(zpa_E3),y","oa":227},{"a":7889,"t":"code","b":[24],"m":"clc"},{"a":7890,"t":"code","b":[101,221],"m":"adc","o":"zpp_DD","oa":221},{"a":7892,"t":"code","b":[133,110],"m":"sta","o":"zpp_6E","oa":110},{"a":7894,"t":"code","b":[200],"m":"iny"},{"a":7895,"t":"code","b":[177,227],"m":"lda","o":"(zpa_E3),y","oa":227},{"a":7897,"t":"code","b":[101,222],"m":"adc","o":"zpa_DE","oa":222},{"a":7899,"t":"code","b":[133,111],"m":"sta","o":"zpa_6F","oa":111},{"a":7901,"t":"code","b":[173,17,252],"m":"lda","o":"a_FC11","oa":64529},{"a":7904,"t":"code","b":[133,52],"m":"sta","o":"zpa_34","oa":52},{"a":7906,"t":"code","b":[173,18,252],"m":"lda","o":"a_FC12","oa":64530},{"a":7909,"t":"code","b":[133,53],"m":"sta","o":"zpa_35","oa":53},{"a":7911,"t":"code","b":[32,13,31],"m":"jsr","o":"place_next_picture","oa":7949},{"a":7914,"t":"code","b":[142,17,252],"m":"stx","o":"a_FC11","oa":64529},{"a":7917,"t":"code","b":[140,18,252],"m":"sty","o":"a_FC12","oa":64530},{"a":7920,"t":"code","b":[160,4],"m":"ldy","o":"#$04"},{"a":7922,"t":"code","b":[177,110],"m":"lda","o":"(zpp_6E),y","oa":110},{"a":7924,"t":"code","b":[141,0,252],"m":"sta","o":"a_FC00","oa":64512},{"a":7927,"t":"code","b":[200],"m":"iny"},{"a":7928,"t":"code","b":[177,110],"m":"lda","o":"(zpp_6E),y","oa":110},{"a":7930,"t":"code","b":[141,1,252],"m":"sta","o":"a_FC01","oa":64513},{"a":7933,"t":"code","b":[32,70,25],"m":"jsr","o":"draw_limb_picture","oa":6470},{"a":7936,"t":"code","b":[165,51],"m":"lda","o":"zpa_33","oa":51},{"a":7938,"t":"code","b":[205,56,252],"m":"cmp","o":"a_FC38","oa":64568},{"a":7941,"t":"code","b":[144,5],"m":"bcc","o":"r_1F0C","oa":7948},{"a":7943,"t":"code","b":[240,3],"m":"beq","o":"r_1F0C","oa":7948},{"a":7945,"t":"code","b":[141,56,252],"m":"sta","o":"a_FC38","oa":64568},{"a":7948,"l":"r_1F0C","t":"code","b":[96],"m":"rts","x":[7941,7943]},{"a":7949,"l":"place_next_picture","c":"When the last picture asked for a move ($FC00 X, $FC01 Y), adds it to the position ($34, and $35 less the Y move); otherwise keeps the last position ($FC11/$FC12). Leaves it in $34/$35 and $FC11/$FC12. The drawer itself uses only $35 and each picture's own X offset","t":"code","b":[173,0,252],"m":"lda","o":"a_FC00","oa":64512,"x":[7911]},{"a":7952,"t":"code","b":[208,3],"m":"bne","o":"b_1F15","oa":7957},{"a":7954,"t":"code","b":[172,1,252],"m":"ldy","o":"a_FC01","oa":64513},{"a":7957,"l":"b_1F15","t":"code","b":[208,9],"m":"bne","o":"b_1F20","oa":7968,"x":[7952]},{"a":7959,"t":"code","b":[174,17,252],"m":"ldx","o":"a_FC11","oa":64529},{"a":7962,"t":"code","b":[172,18,252],"m":"ldy","o":"a_FC12","oa":64530},{"a":7965,"t":"code","b":[76,43,31],"m":"jmp","o":"j_1F2B","oa":7979},{"a":7968,"l":"b_1F20","t":"code","b":[24],"m":"clc","x":[7957]},{"a":7969,"t":"code","b":[101,52],"m":"adc","o":"zpa_34","oa":52},{"a":7971,"t":"code","b":[170],"m":"tax"},{"a":7972,"t":"code","b":[165,53],"m":"lda","o":"zpa_35","oa":53},{"a":7974,"t":"code","b":[56],"m":"sec"},{"a":7975,"t":"code","b":[237,1,252],"m":"sbc","o":"a_FC01","oa":64513},{"a":7978,"t":"code","b":[168],"m":"tay"},{"a":7979,"l":"j_1F2B","t":"code","b":[134,52],"m":"stx","o":"zpa_34","oa":52,"x":[7965]},{"a":7981,"t":"code","b":[132,53],"m":"sty","o":"zpa_35","oa":53},{"a":7983,"t":"code","b":[96],"m":"rts"},{"a":7984,"l":"costume_pointer","c":"Points $DD/$DE at actor $E5's costume, past the resource's four-byte header, from the costumes' address table ($741B low, $73F5 high bytes)","t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229,"x":[7571,8356]},{"a":7986,"t":"code","b":[185,144,255],"m":"lda","o":"actor_costume,y","oa":65424},{"a":7989,"t":"code","b":[168],"m":"tay"},{"a":7990,"t":"code","b":[185,27,116],"m":"lda","o":"f_741B,y","oa":29723},{"a":7993,"t":"code","b":[133,221],"m":"sta","o":"zpp_DD","oa":221},{"a":7995,"t":"code","b":[185,245,115],"m":"lda","o":"f_73F5,y","oa":29685},{"a":7998,"t":"code","b":[133,222],"m":"sta","o":"zpa_DE","oa":222},{"a":8000,"t":"code","b":[165,221],"m":"lda","o":"zpp_DD","oa":221},{"a":8002,"t":"code","b":[24],"m":"clc"},{"a":8003,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":8005,"t":"code","b":[133,221],"m":"sta","o":"zpp_DD","oa":221},{"a":8007,"t":"code","b":[144,2],"m":"bcc","o":"r_1F4B","oa":8011},{"a":8009,"t":"code","b":[230,222],"m":"inc","o":"zpa_DE","oa":222},{"a":8011,"l":"r_1F4B","t":"code","b":[96],"m":"rts","x":[8007]},{"a":8012,"l":"load_anim_state","c":"Copies slot $C5's 32 bytes of animation state from $FC5A-$FCD9 to the working copy at $FC3A-$FC59: for each of eight limbs its frame (with bit 7 for play once), its first frame ($FC42), its last ($FC4A) and its animation ($FC52)","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[7583,8381]},{"a":8014,"t":"code","b":[188,129,32],"m":"ldy","o":"f_2081,x","oa":8321},{"a":8017,"t":"code","b":[162,31],"m":"ldx","o":"#$1F"},{"a":8019,"l":"b_1F53","t":"code","b":[185,90,252],"m":"lda","o":"f_FC5A,y","oa":64602,"x":[8027]},{"a":8022,"t":"code","b":[157,58,252],"m":"sta","o":"f_FC3A,x","oa":64570},{"a":8025,"t":"code","b":[136],"m":"dey"},{"a":8026,"t":"code","b":[202],"m":"dex"},{"a":8027,"t":"code","b":[16,246],"m":"bpl","o":"b_1F53","oa":8019},{"a":8029,"t":"code","b":[96],"m":"rts"},{"a":8030,"l":"save_anim_state","c":"Copies the working animation state at $FC3A-$FC59 back to slot $C5's 32 bytes","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[7674,8414]},{"a":8032,"t":"code","b":[188,129,32],"m":"ldy","o":"f_2081,x","oa":8321},{"a":8035,"t":"code","b":[162,31],"m":"ldx","o":"#$1F"},{"a":8037,"l":"b_1F65","t":"code","b":[189,58,252],"m":"lda","o":"f_FC3A,x","oa":64570,"x":[8045]},{"a":8040,"t":"code","b":[153,90,252],"m":"sta","o":"f_FC5A,y","oa":64602},{"a":8043,"t":"code","b":[136],"m":"dey"},{"a":8044,"t":"code","b":[202],"m":"dex"},{"a":8045,"t":"code","b":[16,246],"m":"bpl","o":"b_1F65","oa":8037},{"a":8047,"t":"code","b":[96],"m":"rts"},{"a":8048,"l":"clear_old_rows","c":"Clears, in sprite Y's column, the rows the last frame drawn into this buffer used (from its height, $3604 or $360C, up to its foot, $3600 or $3608), kept apart for the two buffers ($FC0E), clipped to the column's 137 rows","t":"code","b":[173,14,252],"m":"lda","o":"a_FC0E","oa":64526,"x":[7618,13488,13511]},{"a":8051,"t":"code","b":[240,13],"m":"beq","o":"b_1F82","oa":8066},{"a":8053,"t":"code","b":[185,0,54],"m":"lda","o":"f_3600,y","oa":13824},{"a":8056,"t":"code","b":[141,42,253],"m":"sta","o":"a_FD2A","oa":64810},{"a":8059,"t":"code","b":[56],"m":"sec"},{"a":8060,"t":"code","b":[249,4,54],"m":"sbc","o":"f_3604,y","oa":13828},{"a":8063,"t":"code","b":[76,140,31],"m":"jmp","o":"j_1F8C","oa":8076},{"a":8066,"l":"b_1F82","t":"code","b":[185,8,54],"m":"lda","o":"f_3608,y","oa":13832,"x":[8051]},{"a":8069,"t":"code","b":[141,42,253],"m":"sta","o":"a_FD2A","oa":64810},{"a":8072,"t":"code","b":[56],"m":"sec"},{"a":8073,"t":"code","b":[249,12,54],"m":"sbc","o":"f_360C,y","oa":13836},{"a":8076,"l":"j_1F8C","t":"code","b":[141,55,252],"m":"sta","o":"a_FC37","oa":64567,"x":[8063]},{"a":8079,"t":"code","b":[173,42,253],"m":"lda","o":"a_FD2A","oa":64810},{"a":8082,"t":"code","b":[201,137],"m":"cmp","o":"#$89"},{"a":8084,"t":"code","b":[144,20],"m":"bcc","o":"b_1FAA","oa":8106},{"a":8086,"t":"code","b":[240,18],"m":"beq","o":"b_1FAA","oa":8106},{"a":8088,"t":"code","b":[173,55,252],"m":"lda","o":"a_FC37","oa":64567},{"a":8091,"t":"code","b":[201,137],"m":"cmp","o":"#$89"},{"a":8093,"t":"code","b":[144,3],"m":"bcc","o":"b_1FA2","oa":8098},{"a":8095,"t":"code","b":[240,1],"m":"beq","o":"b_1FA2","oa":8098},{"a":8097,"t":"code","b":[96],"m":"rts"},{"a":8098,"l":"b_1FA2","t":"code","b":[169,137],"m":"lda","o":"#$89","x":[8093,8095]},{"a":8100,"t":"code","b":[141,42,253],"m":"sta","o":"a_FD2A","oa":64810},{"a":8103,"t":"code","b":[76,184,31],"m":"jmp","o":"j_1FB8","oa":8120},{"a":8106,"l":"b_1FAA","t":"code","b":[173,55,252],"m":"lda","o":"a_FC37","oa":64567,"x":[8084,8086]},{"a":8109,"t":"code","b":[201,137],"m":"cmp","o":"#$89"},{"a":8111,"t":"code","b":[144,7],"m":"bcc","o":"j_1FB8","oa":8120},{"a":8113,"t":"code","b":[240,5],"m":"beq","o":"j_1FB8","oa":8120},{"a":8115,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8117,"t":"code","b":[141,55,252],"m":"sta","o":"a_FC37","oa":64567},{"a":8120,"l":"j_1FB8","t":"code","b":[142,137,32],"m":"stx","o":"a_2089","oa":8329,"x":[8103,8111,8113]},{"a":8123,"t":"code","b":[174,55,252],"m":"ldx","o":"a_FC37","oa":64567},{"a":8126,"l":"b_1FBE","t":"code","b":[189,176,211],"m":"lda","o":"sprite_row_low,x","oa":54192,"x":[8158]},{"a":8129,"t":"code","b":[24],"m":"clc"},{"a":8130,"t":"code","b":[109,3,252],"m":"adc","o":"a_FC03","oa":64515},{"a":8133,"t":"code","b":[133,112],"m":"sta","o":"zpa_70","oa":112},{"a":8135,"t":"code","b":[189,16,211],"m":"lda","o":"sprite_row_high,x","oa":54032},{"a":8138,"t":"code","b":[109,4,252],"m":"adc","o":"a_FC04","oa":64516},{"a":8141,"t":"code","b":[133,113],"m":"sta","o":"zpa_71","oa":113},{"a":8143,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8145,"t":"code","b":[168],"m":"tay"},{"a":8146,"t":"code","b":[145,112],"m":"sta","o":"(zpa_70),y","oa":112},{"a":8148,"t":"code","b":[200],"m":"iny"},{"a":8149,"t":"code","b":[145,112],"m":"sta","o":"(zpa_70),y","oa":112},{"a":8151,"t":"code","b":[200],"m":"iny"},{"a":8152,"t":"code","b":[145,112],"m":"sta","o":"(zpa_70),y","oa":112},{"a":8154,"t":"code","b":[232],"m":"inx"},{"a":8155,"t":"code","b":[236,42,253],"m":"cpx","o":"a_FD2A","oa":64810},{"a":8158,"t":"code","b":[48,222],"m":"bmi","o":"b_1FBE","oa":8126},{"a":8160,"t":"code","b":[174,137,32],"m":"ldx","o":"a_2089","oa":8329},{"a":8163,"t":"code","b":[96],"m":"rts"},{"a":8164,"l":"keep_drawn_rows","c":"Keeps the foot ($35) and height ($FC38) of the frame just drawn for sprite Y in this buffer, for clear_old_rows next time, and the height for the slot ($FD26)","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[7630]},{"a":8166,"t":"code","b":[188,46,253],"m":"ldy","o":"f_FD2E,x","oa":64814},{"a":8169,"t":"code","b":[173,14,252],"m":"lda","o":"a_FC0E","oa":64526},{"a":8172,"t":"code","b":[240,14],"m":"beq","o":"b_1FFC","oa":8188},{"a":8174,"t":"code","b":[165,53],"m":"lda","o":"zpa_35","oa":53},{"a":8176,"t":"code","b":[153,0,54],"m":"sta","o":"f_3600,y","oa":13824},{"a":8179,"t":"code","b":[173,56,252],"m":"lda","o":"a_FC38","oa":64568},{"a":8182,"t":"code","b":[153,4,54],"m":"sta","o":"f_3604,y","oa":13828},{"a":8185,"t":"code","b":[76,7,32],"m":"jmp","o":"j_2007","oa":8199},{"a":8188,"l":"b_1FFC","t":"code","b":[165,53],"m":"lda","o":"zpa_35","oa":53,"x":[8172]},{"a":8190,"t":"code","b":[153,8,54],"m":"sta","o":"f_3608,y","oa":13832},{"a":8193,"t":"code","b":[173,56,252],"m":"lda","o":"a_FC38","oa":64568},{"a":8196,"t":"code","b":[153,12,54],"m":"sta","o":"f_360C,y","oa":13836},{"a":8199,"l":"j_2007","t":"code","b":[157,38,253],"m":"sta","o":"f_FD26,x","oa":64806,"x":[8185]},{"a":8202,"t":"code","b":[96],"m":"rts"},{"a":8203,"l":"sprite_column_address","c":"The address of sprite Y's column in the buffer being drawn ($FC0E: $E000 when set, $E800 when clear), into $FC03/$FC04: the sprite's 64-byte block in the first band, from the tables at $206A and $2072","t":"code","b":[185,106,32],"m":"lda","o":"f_206A,y","oa":8298,"x":[7610,9895,13482,13505]},{"a":8206,"t":"code","b":[141,3,252],"m":"sta","o":"a_FC03","oa":64515},{"a":8209,"t":"code","b":[185,114,32],"m":"lda","o":"f_2072,y","oa":8306},{"a":8212,"t":"code","b":[24],"m":"clc"},{"a":8213,"t":"code","b":[172,14,252],"m":"ldy","o":"a_FC0E","oa":64526},{"a":8216,"t":"code","b":[240,5],"m":"beq","o":"b_201F","oa":8223},{"a":8218,"t":"code","b":[105,224],"m":"adc","o":"#$E0"},{"a":8220,"t":"code","b":[76,33,32],"m":"jmp","o":"j_2021","oa":8225},{"a":8223,"l":"b_201F","t":"code","b":[105,232],"m":"adc","o":"#$E8","x":[8216]},{"a":8225,"l":"j_2021","t":"code","b":[141,4,252],"m":"sta","o":"a_FC04","oa":64516,"x":[8220]},{"a":8228,"t":"code","b":[96],"m":"rts"},{"a":8229,"l":"copy_seam_rows","c":"The raster interrupt switches each band's sprite pointer to the next band's block three lines before the band ends, so the chip reads a band's last rows from the next block. For each of the seven rows where the switch happens (the rows at $207A), copies its three bytes into the block 256 bytes before as well, so it shows the same whichever block the chip reads","t":"code","b":[142,137,32],"m":"stx","o":"a_2089","oa":8329,"x":[7643,13491,13514]},{"a":8232,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":8234,"l":"b_202A","t":"code","b":[188,122,32],"m":"ldy","o":"f_207A,x","oa":8314,"x":[8260]},{"a":8237,"t":"code","b":[32,74,32],"m":"jsr","o":"row_address","oa":8266},{"a":8240,"t":"code","b":[32,92,32],"m":"jsr","o":"block_before","oa":8284},{"a":8243,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":8245,"t":"code","b":[177,112],"m":"lda","o":"(zpa_70),y","oa":112},{"a":8247,"t":"code","b":[145,110],"m":"sta","o":"(zpp_6E),y","oa":110},{"a":8249,"t":"code","b":[136],"m":"dey"},{"a":8250,"t":"code","b":[177,112],"m":"lda","o":"(zpa_70),y","oa":112},{"a":8252,"t":"code","b":[145,110],"m":"sta","o":"(zpp_6E),y","oa":110},{"a":8254,"t":"code","b":[136],"m":"dey"},{"a":8255,"t":"code","b":[177,112],"m":"lda","o":"(zpa_70),y","oa":112},{"a":8257,"t":"code","b":[145,110],"m":"sta","o":"(zpp_6E),y","oa":110},{"a":8259,"t":"code","b":[202],"m":"dex"},{"a":8260,"t":"code","b":[16,228],"m":"bpl","o":"b_202A","oa":8234},{"a":8262,"t":"code","b":[174,137,32],"m":"ldx","o":"a_2089","oa":8329},{"a":8265,"t":"code","b":[96],"m":"rts"},{"a":8266,"l":"row_address","c":"$70/$71: the address of row Y of the sprite column at $FC03/$FC04, through the row tables at $D3B0 and $D310","t":"code","b":[185,176,211],"m":"lda","o":"sprite_row_low,y","oa":54192,"x":[8237]},{"a":8269,"t":"code","b":[24],"m":"clc"},{"a":8270,"t":"code","b":[109,3,252],"m":"adc","o":"a_FC03","oa":64515},{"a":8273,"t":"code","b":[133,112],"m":"sta","o":"zpa_70","oa":112},{"a":8275,"t":"code","b":[185,16,211],"m":"lda","o":"sprite_row_high,y","oa":54032},{"a":8278,"t":"code","b":[109,4,252],"m":"adc","o":"a_FC04","oa":64516},{"a":8281,"t":"code","b":[133,113],"m":"sta","o":"zpa_71","oa":113},{"a":8283,"t":"code","b":[96],"m":"rts"},{"a":8284,"l":"block_before","c":"$6E/$6F: the address 256 bytes before $70/$71, in the band before","t":"code","b":[165,112],"m":"lda","o":"zpa_70","oa":112,"x":[8240]},{"a":8286,"t":"code","b":[56],"m":"sec"},{"a":8287,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":8289,"t":"code","b":[133,110],"m":"sta","o":"zpp_6E","oa":110},{"a":8291,"t":"code","b":[165,113],"m":"lda","o":"zpa_71","oa":113},{"a":8293,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":8295,"t":"code","b":[133,111],"m":"sta","o":"zpa_6F","oa":111},{"a":8297,"t":"code","b":[96],"m":"rts"},{"a":8298,"l":"f_206A","c":"The low byte of each sprite's column, for sprites 0 to 7; $2072 the high bytes' offset, before $E0 or $E8 is added","t":"byte","b":[0,64,128,192,0,64,128,192],"x":[8203]},{"a":8306,"l":"f_2072","c":"The high byte's offset of each sprite's column for sprites 0 to 7: 0 for sprites 0 to 3, 1 for 4 to 7, before $E0 or $E8 is added","t":"byte","b":[0,0,0,0,1,1,1,1],"x":[8209]},{"a":8314,"l":"f_207A","c":"The seven rows of the sprite column where the pointer moves to the next band's block, 20 rows apart","t":"byte","b":[3,23,43,63,83,103,123],"x":[8234]},{"a":8321,"l":"f_2081","c":"For each walk slot, the offset of the last of its 32 bytes in the animation state at $FC5A","t":"byte","b":[31,63,95,127],"x":[8014,8032,10750]},{"a":8325,"l":"a_2085","c":"The limb's frame; $2086 its last frame; $2087 its play once flag (bit 7)","t":"byte","b":[0],"x":[7787,7796,7804,7815,7837,7843,7873]},{"a":8326,"l":"a_2086","c":"The limb's last frame","t":"byte","b":[0],"x":[7793,7807,7821,7832]},{"a":8327,"l":"a_2087","c":"The limb's play once flag (bit 7)","t":"byte","b":[0],"x":[7779,7799,7846]},{"a":8328,"l":"a_2088","c":"Counts the limbs still animating in the frame being drawn","t":"byte","b":[0],"x":[7735,7756,7826,7840]},{"a":8329,"l":"a_2089","c":"X kept while clear_old_rows and copy_seam_rows work","t":"byte","b":[0],"x":[8120,8160,8229,8262]},{"a":8330,"l":"start_animation","c":"Starts animation $FC1B on actor $E5, when it has a costume and is in the room: the slot is redrawn twice. The costume's second byte must be $57, or it is fatal error 2 (the border flashes). Animations $F8 to $FB only turn the actor to the direction in their low two bits; others beyond the costume's count (its first byte) are ignored. Otherwise each limb the animation names starts it (start_animation_limbs), and limbs showing an animation for another direction turn with it (turn_limbs)","t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229,"x":[5492,5694,5833,8674,8872,10775,10789,10803,23961,24024]},{"a":8332,"t":"code","b":[185,144,255],"m":"lda","o":"actor_costume,y","oa":65424},{"a":8335,"t":"code","b":[240,80],"m":"beq","o":"r_20E1","oa":8417},{"a":8337,"t":"code","b":[190,86,253],"m":"ldx","o":"f_FD56,y","oa":64854},{"a":8340,"t":"code","b":[134,197],"m":"stx","o":"zpa_C5","oa":197},{"a":8342,"t":"code","b":[48,73],"m":"bmi","o":"r_20E1","oa":8417},{"a":8344,"t":"code","b":[254,34,253],"m":"inc","o":"f_FD22,x","oa":64802},{"a":8347,"t":"code","b":[254,34,253],"m":"inc","o":"f_FD22,x","oa":64802},{"a":8350,"t":"code","b":[173,27,252],"m":"lda","o":"a_FC1B","oa":64539},{"a":8353,"t":"code","b":[157,18,253],"m":"sta","o":"f_FD12,x","oa":64786},{"a":8356,"t":"code","b":[32,48,31],"m":"jsr","o":"costume_pointer","oa":7984},{"a":8359,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":8361,"t":"code","b":[177,221],"m":"lda","o":"(zpp_DD),y","oa":221},{"a":8363,"t":"code","b":[201,87],"m":"cmp","o":"#$57"},{"a":8365,"t":"code","b":[240,14],"m":"beq","o":"b_20BD","oa":8381},{"a":8367,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":8369,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":8371,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":8373,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":8375,"l":"j_20B7","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[8378]},{"a":8378,"t":"code","b":[76,183,32],"m":"jmp","o":"j_20B7","oa":8375},{"a":8381,"l":"b_20BD","t":"code","b":[32,76,31],"m":"jsr","o":"load_anim_state","oa":8012,"x":[8365]},{"a":8384,"t":"code","b":[173,27,252],"m":"lda","o":"a_FC1B","oa":64539},{"a":8387,"t":"code","b":[141,182,33],"m":"sta","o":"a_21B6","oa":8630},{"a":8390,"t":"code","b":[41,252],"m":"and","o":"#$FC"},{"a":8392,"t":"code","b":[201,248],"m":"cmp","o":"#$F8"},{"a":8394,"t":"code","b":[240,15],"m":"beq","o":"b_20DB","oa":8411},{"a":8396,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":8398,"t":"code","b":[173,27,252],"m":"lda","o":"a_FC1B","oa":64539},{"a":8401,"t":"code","b":[209,221],"m":"cmp","o":"(zpp_DD),y","oa":221},{"a":8403,"t":"code","b":[144,3],"m":"bcc","o":"b_20D8","oa":8408},{"a":8405,"t":"code","b":[240,1],"m":"beq","o":"b_20D8","oa":8408},{"a":8407,"t":"code","b":[96],"m":"rts"},{"a":8408,"l":"b_20D8","t":"code","b":[32,226,32],"m":"jsr","o":"start_animation_limbs","oa":8418,"x":[8403,8405]},{"a":8411,"l":"b_20DB","t":"code","b":[32,56,33],"m":"jsr","o":"turn_limbs","oa":8504,"x":[8394]},{"a":8414,"t":"code","b":[32,94,31],"m":"jsr","o":"save_anim_state","oa":8030},{"a":8417,"l":"r_20E1","t":"code","b":[96],"m":"rts","x":[8335,8342]},{"a":8418,"l":"start_animation_limbs","c":"Starts animation $21B6 from the costume's table of animations (a word for each at offset $14): its first byte has a bit for each limb it moves, from limb 0 in bit 7; for each, a first frame ($FF hides the limb) and a byte with the number of frames after it and, in bit 7, whether it plays once","t":"code","b":[173,182,33],"m":"lda","o":"a_21B6","oa":8630,"x":[8408,8547]},{"a":8421,"t":"code","b":[10],"m":"asl","o":"a"},{"a":8422,"t":"code","b":[24],"m":"clc"},{"a":8423,"t":"code","b":[105,20],"m":"adc","o":"#$14"},{"a":8425,"t":"code","b":[168],"m":"tay"},{"a":8426,"t":"code","b":[165,221],"m":"lda","o":"zpp_DD","oa":221},{"a":8428,"t":"code","b":[24],"m":"clc"},{"a":8429,"t":"code","b":[113,221],"m":"adc","o":"(zpp_DD),y","oa":221},{"a":8431,"t":"code","b":[133,223],"m":"sta","o":"zpa_DF","oa":223},{"a":8433,"t":"code","b":[200],"m":"iny"},{"a":8434,"t":"code","b":[165,222],"m":"lda","o":"zpa_DE","oa":222},{"a":8436,"t":"code","b":[113,221],"m":"adc","o":"(zpp_DD),y","oa":221},{"a":8438,"t":"code","b":[133,224],"m":"sta","o":"zpa_E0","oa":224},{"a":8440,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":8442,"t":"code","b":[177,223],"m":"lda","o":"(zpa_DF),y","oa":223},{"a":8444,"t":"code","b":[141,183,33],"m":"sta","o":"a_21B7","oa":8631},{"a":8447,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":8449,"l":"b_2101","t":"code","b":[173,183,33],"m":"lda","o":"a_21B7","oa":8631,"x":[8501]},{"a":8452,"t":"code","b":[16,43],"m":"bpl","o":"b_2131","oa":8497},{"a":8454,"t":"code","b":[200],"m":"iny"},{"a":8455,"t":"code","b":[177,223],"m":"lda","o":"(zpa_DF),y","oa":223},{"a":8457,"t":"code","b":[157,66,252],"m":"sta","o":"f_FC42,x","oa":64578},{"a":8460,"t":"code","b":[157,58,252],"m":"sta","o":"f_FC3A,x","oa":64570},{"a":8463,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":8465,"t":"code","b":[240,24],"m":"beq","o":"b_212B","oa":8491},{"a":8467,"t":"code","b":[200],"m":"iny"},{"a":8468,"t":"code","b":[177,223],"m":"lda","o":"(zpa_DF),y","oa":223},{"a":8470,"t":"code","b":[16,8],"m":"bpl","o":"b_2120","oa":8480},{"a":8472,"t":"code","b":[189,58,252],"m":"lda","o":"f_FC3A,x","oa":64570},{"a":8475,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":8477,"t":"code","b":[157,58,252],"m":"sta","o":"f_FC3A,x","oa":64570},{"a":8480,"l":"b_2120","t":"code","b":[177,223],"m":"lda","o":"(zpa_DF),y","oa":223,"x":[8470]},{"a":8482,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":8484,"t":"code","b":[24],"m":"clc"},{"a":8485,"t":"code","b":[125,66,252],"m":"adc","o":"f_FC42,x","oa":64578},{"a":8488,"t":"code","b":[157,74,252],"m":"sta","o":"f_FC4A,x","oa":64586},{"a":8491,"l":"b_212B","t":"code","b":[173,182,33],"m":"lda","o":"a_21B6","oa":8630,"x":[8465]},{"a":8494,"t":"code","b":[157,82,252],"m":"sta","o":"f_FC52,x","oa":64594},{"a":8497,"l":"b_2131","t":"code","b":[232],"m":"inx","x":[8452]},{"a":8498,"t":"code","b":[14,183,33],"m":"asl","o":"a_21B7","oa":8631},{"a":8501,"t":"code","b":[208,202],"m":"bne","o":"b_2101","oa":8449},{"a":8503,"t":"code","b":[96],"m":"rts"},{"a":8504,"l":"turn_limbs","c":"When the animation's direction (its low two bits) is not the way actor $E5 faces, restarts every limb's animation in that direction: the same animation, its low two bits replaced","t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229,"x":[8411]},{"a":8506,"t":"code","b":[173,182,33],"m":"lda","o":"a_21B6","oa":8630},{"a":8509,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":8511,"t":"code","b":[141,185,33],"m":"sta","o":"a_21B9","oa":8633},{"a":8514,"t":"code","b":[221,222,255],"m":"cmp","o":"actor_facing,x","oa":65502},{"a":8517,"t":"code","b":[240,36],"m":"beq","o":"r_216B","oa":8555},{"a":8519,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":8521,"t":"code","b":[141,184,33],"m":"sta","o":"a_21B8","oa":8632},{"a":8524,"l":"b_214C","t":"code","b":[174,184,33],"m":"ldx","o":"a_21B8","oa":8632,"x":[8553]},{"a":8527,"t":"code","b":[189,82,252],"m":"lda","o":"f_FC52,x","oa":64594},{"a":8530,"t":"code","b":[48,18],"m":"bmi","o":"b_2166","oa":8550},{"a":8532,"t":"code","b":[205,182,33],"m":"cmp","o":"a_21B6","oa":8630},{"a":8535,"t":"code","b":[240,13],"m":"beq","o":"b_2166","oa":8550},{"a":8537,"t":"code","b":[41,252],"m":"and","o":"#$FC"},{"a":8539,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":8541,"t":"code","b":[13,185,33],"m":"ora","o":"a_21B9","oa":8633},{"a":8544,"t":"code","b":[141,182,33],"m":"sta","o":"a_21B6","oa":8630},{"a":8547,"t":"code","b":[32,226,32],"m":"jsr","o":"start_animation_limbs","oa":8418},{"a":8550,"l":"b_2166","t":"code","b":[206,184,33],"m":"dec","o":"a_21B8","oa":8632,"x":[8530,8535]},{"a":8553,"t":"code","b":[16,225],"m":"bpl","o":"b_214C","oa":8524},{"a":8555,"l":"r_216B","t":"code","b":[96],"m":"rts","x":[8517]},{"a":8556,"l":"put_actor","c":"Puts actor $E5 in room $FC1C at X $FC18, Y $FC19. When it has a walk slot and has moved, the slot's position follows and its sprite is placed again ($2946); when the room is the one shown, it is set up there ($2977)","t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229,"x":[21783,22586,22719,22754]},{"a":8558,"t":"code","b":[173,28,252],"m":"lda","o":"a_FC1C","oa":64540},{"a":8561,"t":"code","b":[157,157,255],"m":"sta","o":"f_FF9D,x","oa":65437},{"a":8564,"t":"code","b":[173,24,252],"m":"lda","o":"a_FC18","oa":64536},{"a":8567,"t":"code","b":[157,183,255],"m":"sta","o":"actor_x,x","oa":65463},{"a":8570,"t":"code","b":[173,25,252],"m":"lda","o":"a_FC19","oa":64537},{"a":8573,"t":"code","b":[157,170,255],"m":"sta","o":"f_FFAA,x","oa":65450},{"a":8576,"t":"code","b":[188,86,253],"m":"ldy","o":"f_FD56,x","oa":64854},{"a":8579,"t":"code","b":[132,197],"m":"sty","o":"zpa_C5","oa":197},{"a":8581,"t":"code","b":[48,31],"m":"bmi","o":"b_21A6","oa":8614},{"a":8583,"t":"code","b":[189,183,255],"m":"lda","o":"actor_x,x","oa":65463},{"a":8586,"t":"code","b":[217,230,252],"m":"cmp","o":"f_FCE6,y","oa":64742},{"a":8589,"t":"code","b":[208,8],"m":"bne","o":"b_2197","oa":8599},{"a":8591,"t":"code","b":[189,170,255],"m":"lda","o":"f_FFAA,x","oa":65450},{"a":8594,"t":"code","b":[217,234,252],"m":"cmp","o":"f_FCEA,y","oa":64746},{"a":8597,"t":"code","b":[240,30],"m":"beq","o":"r_21B5","oa":8629},{"a":8599,"l":"b_2197","t":"code","b":[189,183,255],"m":"lda","o":"actor_x,x","oa":65463,"x":[8589]},{"a":8602,"t":"code","b":[153,230,252],"m":"sta","o":"f_FCE6,y","oa":64742},{"a":8605,"t":"code","b":[189,170,255],"m":"lda","o":"f_FFAA,x","oa":65450},{"a":8608,"t":"code","b":[153,234,252],"m":"sta","o":"f_FCEA,y","oa":64746},{"a":8611,"t":"code","b":[32,70,41],"m":"jsr","o":"actor_leaves_room","oa":10566},{"a":8614,"l":"b_21A6","t":"code","b":[173,28,252],"m":"lda","o":"a_FC1C","oa":64540,"x":[8581]},{"a":8617,"t":"code","b":[240,10],"m":"beq","o":"r_21B5","oa":8629},{"a":8619,"t":"code","b":[205,3,105],"m":"cmp","o":"current_room","oa":26883},{"a":8622,"t":"code","b":[208,5],"m":"bne","o":"r_21B5","oa":8629},{"a":8624,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":8626,"t":"code","b":[32,119,41],"m":"jsr","o":"actor_enters_room","oa":10615},{"a":8629,"l":"r_21B5","t":"code","b":[96],"m":"rts","x":[8597,8617,8622]},{"a":8630,"l":"a_21B6","c":"The animation being started: four times the animation, plus the direction","t":"byte","b":[0],"x":[8387,8418,8491,8506,8532,8544]},{"a":8631,"l":"a_21B7","c":"The bits of the limbs the animation moves, shifted out one at a time","t":"byte","b":[0],"x":[8444,8449,8498]},{"a":8632,"l":"a_21B8","c":"The limb turn_limbs works on; $21B9 the new direction","t":"byte","b":[0],"x":[8521,8524,8550]},{"a":8633,"l":"a_21B9","c":"The new direction turn_limbs gives each limb","t":"byte","b":[0],"x":[8511,8541]},{"a":8634,"l":"print_message","c":"Starts the message at the script's pointer ($C7/$C8) for actor $FC30 ($FF and over: the game's own voice). When that actor is in the room, the last message is stopped unless it is to be carried on, the actor becomes the one talking (variable 41) and starts its talking animation (its direction plus $14). The text is copied into the buffer at $0200: a byte with bit 7 set is a letter followed by a space, 4 puts in a number, 7 a string and 6 an object's name. For an actor who is not in the room the text is only skipped over. Then the top two lines take the actor's talking colour ($FFC4) in the colour RAM, and the message starts: variable 3 set, variable 7 (letters shown) cleared, the first part shown (message_step)","t":"code","b":[174,48,252],"m":"ldx","o":"a_FC30","oa":64560,"x":[22124]},{"a":8637,"t":"code","b":[48,44],"m":"bmi","o":"b_21EB","oa":8683},{"a":8639,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":8642,"t":"code","b":[16,5],"m":"bpl","o":"b_21C9","oa":8649},{"a":8644,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":8646,"t":"code","b":[76,251,33],"m":"jmp","o":"j_21FB","oa":8699},{"a":8649,"l":"b_21C9","t":"code","b":[173,76,35],"m":"lda","o":"a_234C","oa":9036,"x":[8642]},{"a":8652,"t":"code","b":[208,3],"m":"bne","o":"b_21D1","oa":8657},{"a":8654,"t":"code","b":[32,139,34],"m":"jsr","o":"stop_message","oa":8843},{"a":8657,"l":"b_21D1","t":"code","b":[174,48,252],"m":"ldx","o":"a_FC30","oa":64560,"x":[8652]},{"a":8660,"t":"code","b":[142,151,254],"m":"stx","o":"a_FE97","oa":65175},{"a":8663,"t":"code","b":[134,229],"m":"stx","o":"zpa_E5","oa":229},{"a":8665,"t":"code","b":[189,222,255],"m":"lda","o":"actor_facing,x","oa":65502},{"a":8668,"t":"code","b":[24],"m":"clc"},{"a":8669,"t":"code","b":[105,20],"m":"adc","o":"#$14"},{"a":8671,"t":"code","b":[141,27,252],"m":"sta","o":"a_FC1B","oa":64539},{"a":8674,"t":"code","b":[32,138,32],"m":"jsr","o":"start_animation","oa":8330},{"a":8677,"t":"code","b":[174,151,254],"m":"ldx","o":"a_FE97","oa":65175},{"a":8680,"t":"code","b":[76,251,33],"m":"jmp","o":"j_21FB","oa":8699},{"a":8683,"l":"b_21EB","t":"code","b":[138],"m":"txa","x":[8637]},{"a":8684,"t":"code","b":[72],"m":"pha"},{"a":8685,"t":"code","b":[173,76,35],"m":"lda","o":"a_234C","oa":9036},{"a":8688,"t":"code","b":[208,3],"m":"bne","o":"b_21F5","oa":8693},{"a":8690,"t":"code","b":[32,139,34],"m":"jsr","o":"stop_message","oa":8843},{"a":8693,"l":"b_21F5","t":"code","b":[104],"m":"pla","x":[8688]},{"a":8694,"t":"code","b":[141,151,254],"m":"sta","o":"a_FE97","oa":65175},{"a":8697,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":8699,"l":"j_21FB","t":"code","b":[142,74,35],"m":"stx","o":"a_234A","oa":9034,"x":[8646,8680]},{"a":8702,"t":"code","b":[160,255],"m":"ldy","o":"#$FF"},{"a":8704,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":8706,"l":"b_2202","t":"code","b":[200],"m":"iny","x":[8765]},{"a":8707,"t":"code","b":[232],"m":"inx"},{"a":8708,"t":"code","b":[173,74,35],"m":"lda","o":"a_234A","oa":9034},{"a":8711,"t":"code","b":[16,5],"m":"bpl","o":"b_220E","oa":8718},{"a":8713,"t":"code","b":[177,199],"m":"lda","o":"(zpp_C7),y","oa":199},{"a":8715,"t":"code","b":[76,59,34],"m":"jmp","o":"j_223B","oa":8763},{"a":8718,"l":"b_220E","t":"code","b":[177,199],"m":"lda","o":"(zpp_C7),y","oa":199,"x":[8711]},{"a":8720,"t":"code","b":[16,8],"m":"bpl","o":"b_221A","oa":8730},{"a":8722,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":8724,"t":"code","b":[157,0,2],"m":"sta","o":"f_0200,x","oa":512},{"a":8727,"t":"code","b":[232],"m":"inx"},{"a":8728,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":8730,"l":"b_221A","t":"code","b":[201,4],"m":"cmp","o":"#$04","x":[8720]},{"a":8732,"t":"code","b":[208,6],"m":"bne","o":"b_2224","oa":8740},{"a":8734,"t":"code","b":[32,200,9],"m":"jsr","o":"message_number","oa":2504},{"a":8737,"t":"code","b":[76,59,34],"m":"jmp","o":"j_223B","oa":8763},{"a":8740,"l":"b_2224","t":"code","b":[201,7],"m":"cmp","o":"#$07","x":[8732]},{"a":8742,"t":"code","b":[208,6],"m":"bne","o":"b_222E","oa":8750},{"a":8744,"t":"code","b":[32,179,9],"m":"jsr","o":"message_string_var","oa":2483},{"a":8747,"t":"code","b":[76,59,34],"m":"jmp","o":"j_223B","oa":8763},{"a":8750,"l":"b_222E","t":"code","b":[201,6],"m":"cmp","o":"#$06","x":[8742]},{"a":8752,"t":"code","b":[208,6],"m":"bne","o":"b_2238","oa":8760},{"a":8754,"t":"code","b":[32,142,9],"m":"jsr","o":"message_object_name","oa":2446},{"a":8757,"t":"code","b":[76,59,34],"m":"jmp","o":"j_223B","oa":8763},{"a":8760,"l":"b_2238","t":"code","b":[157,0,2],"m":"sta","o":"f_0200,x","oa":512,"x":[8752]},{"a":8763,"l":"j_223B","t":"code","b":[201,0],"m":"cmp","o":"#$00","x":[8715,8737,8747,8757]},{"a":8765,"t":"code","b":[208,195],"m":"bne","o":"b_2202","oa":8706},{"a":8767,"t":"code","b":[200],"m":"iny"},{"a":8768,"t":"code","b":[152],"m":"tya"},{"a":8769,"t":"code","b":[24],"m":"clc"},{"a":8770,"t":"code","b":[101,199],"m":"adc","o":"zpp_C7","oa":199},{"a":8772,"t":"code","b":[133,199],"m":"sta","o":"zpp_C7","oa":199},{"a":8774,"t":"code","b":[144,2],"m":"bcc","o":"b_224A","oa":8778},{"a":8776,"t":"code","b":[230,200],"m":"inc","o":"zpa_C8","oa":200},{"a":8778,"l":"b_224A","t":"code","b":[173,74,35],"m":"lda","o":"a_234A","oa":9034,"x":[8774]},{"a":8781,"t":"code","b":[48,59],"m":"bmi","o":"r_228A","oa":8842},{"a":8783,"t":"code","b":[174,151,254],"m":"ldx","o":"a_FE97","oa":65175},{"a":8786,"t":"code","b":[16,6],"m":"bpl","o":"b_225A","oa":8794},{"a":8788,"t":"code","b":[173,196,255],"m":"lda","o":"f_FFC4","oa":65476},{"a":8791,"t":"code","b":[76,93,34],"m":"jmp","o":"j_225D","oa":8797},{"a":8794,"l":"b_225A","t":"code","b":[189,196,255],"m":"lda","o":"f_FFC4,x","oa":65476,"x":[8786]},{"a":8797,"l":"j_225D","t":"code","b":[160,37],"m":"ldy","o":"#$25","x":[8791]},{"a":8799,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":8801,"t":"code","b":[162,79],"m":"ldx","o":"#$4F"},{"a":8803,"l":"b_2263","t":"code","b":[157,0,216],"m":"sta","o":"colour_ram,x","x":[8807]},{"a":8806,"t":"code","b":[202],"m":"dex"},{"a":8807,"t":"code","b":[16,250],"m":"bpl","o":"b_2263","oa":8803},{"a":8809,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":8811,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":8813,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8815,"t":"code","b":[133,183],"m":"sta","o":"zpa_B7","oa":183},{"a":8817,"t":"code","b":[133,184],"m":"sta","o":"zpa_B8","oa":184},{"a":8819,"t":"code","b":[133,185],"m":"sta","o":"zpa_B9","oa":185},{"a":8821,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":8823,"t":"code","b":[134,182],"m":"stx","o":"zpa_B6","oa":182},{"a":8825,"t":"code","b":[142,113,254],"m":"stx","o":"a_FE71","oa":65137},{"a":8828,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8830,"t":"code","b":[141,114,253],"m":"sta","o":"a_FD72","oa":64882},{"a":8833,"t":"code","b":[141,117,254],"m":"sta","o":"a_FE75","oa":65141},{"a":8836,"t":"code","b":[141,118,253],"m":"sta","o":"a_FD76","oa":64886},{"a":8839,"t":"code","b":[32,187,34],"m":"jsr","o":"message_step","oa":8891},{"a":8842,"l":"r_228A","t":"code","b":[96],"m":"rts","x":[8781]},{"a":8843,"l":"stop_message","c":"Ends the message: the talking actor (variable 41), if any is in the room, stops talking (its direction plus $10) and variable 41 becomes $FF; the top two lines of the screen are cleared","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[8654,8690,9030,54828]},{"a":8845,"t":"code","b":[133,182],"m":"sta","o":"zpa_B6","oa":182},{"a":8847,"t":"code","b":[133,184],"m":"sta","o":"zpa_B8","oa":184},{"a":8849,"t":"code","b":[133,185],"m":"sta","o":"zpa_B9","oa":185},{"a":8851,"t":"code","b":[174,151,254],"m":"ldx","o":"a_FE97","oa":65175},{"a":8854,"t":"code","b":[48,24],"m":"bmi","o":"b_22B0","oa":8880},{"a":8856,"t":"code","b":[188,86,253],"m":"ldy","o":"f_FD56,x","oa":64854},{"a":8859,"t":"code","b":[48,14],"m":"bmi","o":"b_22AB","oa":8875},{"a":8861,"t":"code","b":[134,229],"m":"stx","o":"zpa_E5","oa":229},{"a":8863,"t":"code","b":[189,222,255],"m":"lda","o":"actor_facing,x","oa":65502},{"a":8866,"t":"code","b":[24],"m":"clc"},{"a":8867,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":8869,"t":"code","b":[141,27,252],"m":"sta","o":"a_FC1B","oa":64539},{"a":8872,"t":"code","b":[32,138,32],"m":"jsr","o":"start_animation","oa":8330},{"a":8875,"l":"b_22AB","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[8859]},{"a":8877,"t":"code","b":[141,151,254],"m":"sta","o":"a_FE97","oa":65175},{"a":8880,"l":"b_22B0","t":"code","b":[160,79],"m":"ldy","o":"#$4F","x":[8854,8920,12371,12400]},{"a":8882,"l":"b_22B2","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[8888]},{"a":8884,"t":"code","b":[153,0,204],"m":"sta","o":"f_CC00,y","oa":52224},{"a":8887,"t":"code","b":[136],"m":"dey"},{"a":8888,"t":"code","b":[16,248],"m":"bpl","o":"b_22B2","oa":8882},{"a":8890,"t":"code","b":[96],"m":"rts"},{"a":8891,"l":"message_step","c":"Once a pass of the main loop, while a message is running ($B6): waits for its time ($B8/$B9, counted down by the frame interrupt) to run out, then shows the next part. Each part is given the base time $BA/$BB plus the speed $BC (changed with + and -) for every letter. In the text 0 ends it, 1 starts the second line, 2 stops with the line kept so that the next message carries on after it, and 3, or a full two lines, waits for the time before the rest. A finished message is taken away when its time is up (stop_message)","t":"code","b":[165,182],"m":"lda","o":"zpa_B6","oa":182,"x":[1326,8839]},{"a":8893,"t":"code","b":[208,1],"m":"bne","o":"b_22C0","oa":8896},{"a":8895,"t":"code","b":[96],"m":"rts"},{"a":8896,"l":"b_22C0","t":"code","b":[165,184],"m":"lda","o":"zpa_B8","oa":184,"x":[8893]},{"a":8898,"t":"code","b":[5,185],"m":"ora","o":"zpa_B9","oa":185},{"a":8900,"t":"code","b":[240,1],"m":"beq","o":"b_22C7","oa":8903},{"a":8902,"t":"code","b":[96],"m":"rts"},{"a":8903,"l":"b_22C7","t":"code","b":[165,182],"m":"lda","o":"zpa_B6","oa":182,"x":[8900]},{"a":8905,"t":"code","b":[16,123],"m":"bpl","o":"message_ran_out","oa":9030},{"a":8907,"t":"code","b":[165,186],"m":"lda","o":"zpa_BA","oa":186},{"a":8909,"t":"code","b":[133,184],"m":"sta","o":"zpa_B8","oa":184},{"a":8911,"t":"code","b":[165,187],"m":"lda","o":"zpa_BB","oa":187},{"a":8913,"t":"code","b":[133,185],"m":"sta","o":"zpa_B9","oa":185},{"a":8915,"t":"code","b":[174,76,35],"m":"ldx","o":"a_234C","oa":9036},{"a":8918,"t":"code","b":[208,8],"m":"bne","o":"b_22E0","oa":8928},{"a":8920,"t":"code","b":[32,176,34],"m":"jsr","o":"b_22B0","oa":8880},{"a":8923,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":8925,"t":"code","b":[76,241,34],"m":"jmp","o":"j_22F1","oa":8945},{"a":8928,"l":"b_22E0","t":"code","b":[165,184],"m":"lda","o":"zpa_B8","oa":184,"x":[8918,8940]},{"a":8930,"t":"code","b":[24],"m":"clc"},{"a":8931,"t":"code","b":[101,188],"m":"adc","o":"zpa_BC","oa":188},{"a":8933,"t":"code","b":[133,184],"m":"sta","o":"zpa_B8","oa":184},{"a":8935,"t":"code","b":[144,2],"m":"bcc","o":"b_22EB","oa":8939},{"a":8937,"t":"code","b":[230,185],"m":"inc","o":"zpa_B9","oa":185},{"a":8939,"l":"b_22EB","t":"code","b":[202],"m":"dex","x":[8935]},{"a":8940,"t":"code","b":[16,242],"m":"bpl","o":"b_22E0","oa":8928},{"a":8942,"t":"code","b":[174,76,35],"m":"ldx","o":"a_234C","oa":9036},{"a":8945,"l":"j_22F1","t":"code","b":[164,183],"m":"ldy","o":"zpa_B7","oa":183,"x":[8925]},{"a":8947,"l":"j_22F3","t":"code","b":[185,0,2],"m":"lda","o":"f_0200,y","oa":512,"x":[8987,9022]},{"a":8950,"t":"code","b":[200],"m":"iny"},{"a":8951,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":8953,"t":"code","b":[208,10],"m":"bne","o":"b_2305","oa":8965},{"a":8955,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8957,"t":"code","b":[141,76,35],"m":"sta","o":"a_234C","oa":9036},{"a":8960,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":8962,"t":"code","b":[133,182],"m":"sta","o":"zpa_B6","oa":182},{"a":8964,"t":"code","b":[96],"m":"rts"},{"a":8965,"l":"b_2305","t":"code","b":[201,3],"m":"cmp","o":"#$03","x":[8953]},{"a":8967,"t":"code","b":[208,12],"m":"bne","o":"b_2315","oa":8981},{"a":8969,"l":"j_2309","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[9024]},{"a":8971,"t":"code","b":[133,182],"m":"sta","o":"zpa_B6","oa":182},{"a":8973,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8975,"t":"code","b":[141,76,35],"m":"sta","o":"a_234C","oa":9036},{"a":8978,"t":"code","b":[132,183],"m":"sty","o":"zpa_B7","oa":183},{"a":8980,"t":"code","b":[96],"m":"rts"},{"a":8981,"l":"b_2315","t":"code","b":[201,1],"m":"cmp","o":"#$01","x":[8967]},{"a":8983,"t":"code","b":[208,5],"m":"bne","o":"b_231E","oa":8990},{"a":8985,"t":"code","b":[162,40],"m":"ldx","o":"#$28"},{"a":8987,"t":"code","b":[76,243,34],"m":"jmp","o":"j_22F3","oa":8947},{"a":8990,"l":"b_231E","t":"code","b":[201,2],"m":"cmp","o":"#$02","x":[8983]},{"a":8992,"t":"code","b":[208,8],"m":"bne","o":"b_232A","oa":9002},{"a":8994,"t":"code","b":[142,76,35],"m":"stx","o":"a_234C","oa":9036},{"a":8997,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8999,"t":"code","b":[133,182],"m":"sta","o":"zpa_B6","oa":182},{"a":9001,"t":"code","b":[96],"m":"rts"},{"a":9002,"l":"b_232A","t":"code","b":[157,0,204],"m":"sta","o":"f_CC00,x","oa":52224,"x":[8992]},{"a":9005,"t":"code","b":[238,117,254],"m":"inc","o":"a_FE75","oa":65141},{"a":9008,"t":"code","b":[165,184],"m":"lda","o":"zpa_B8","oa":184},{"a":9010,"t":"code","b":[24],"m":"clc"},{"a":9011,"t":"code","b":[101,188],"m":"adc","o":"zpa_BC","oa":188},{"a":9013,"t":"code","b":[133,184],"m":"sta","o":"zpa_B8","oa":184},{"a":9015,"t":"code","b":[144,2],"m":"bcc","o":"b_233B","oa":9019},{"a":9017,"t":"code","b":[230,185],"m":"inc","o":"zpa_B9","oa":185},{"a":9019,"l":"b_233B","t":"code","b":[232],"m":"inx","x":[9015]},{"a":9020,"t":"code","b":[224,80],"m":"cpx","o":"#$50"},{"a":9022,"t":"code","b":[208,179],"m":"bne","o":"j_22F3","oa":8947},{"a":9024,"t":"code","b":[76,9,35],"m":"jmp","o":"j_2309","oa":8969},{"a":9027,"c":"JMP $2349, after the JMP at $2340: never reached","t":"code","b":[76,73,35],"m":"jmp","o":"r_2349","oa":9033},{"a":9030,"l":"message_ran_out","c":"A message whose text has run out ($B6 positive): it is taken away (stop_message)","t":"code","b":[32,139,34],"m":"jsr","o":"stop_message","oa":8843,"x":[8905]},{"a":9033,"l":"r_2349","t":"code","b":[96],"m":"rts","x":[9027]},{"a":9034,"l":"a_234A","c":"The actor whose message is being copied; $FF when it is only skipped over","t":"byte","b":[0,0],"x":[8699,8708,8778]},{"a":9036,"l":"a_234C","c":"Where on the two lines the next message carries on (code 2), zero to start them afresh","t":"byte","b":[0],"x":[8649,8685,8915,8942,8957,8975,8994]},{"a":9037,"l":"handle_key","c":"Once a pass of the main loop, the key pressed, if any (kept in $23FC): the cut-scene key (variable 40) skips the cut-scene when it has an override, by sending the slot that set it ($FF70) to its override offset ($FF6D/$FF6E) and setting variable 5; space pauses; + and - change the message speed; any other key goes to the scripts as variable 39, with variable 32 (where the click came from) set to 4 and an input event flagged ($FC2D)","t":"code","b":[32,126,29],"m":"jsr","o":"get_key","oa":7550,"x":[1329]},{"a":9040,"t":"code","b":[141,252,35],"m":"sta","o":"a_23FC","oa":9212},{"a":9043,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":9045,"t":"code","b":[208,1],"m":"bne","o":"b_2358","oa":9048},{"a":9047,"t":"code","b":[96],"m":"rts"},{"a":9048,"l":"b_2358","t":"code","b":[205,150,254],"m":"cmp","o":"a_FE96","oa":65174,"x":[9045]},{"a":9051,"t":"code","b":[208,52],"m":"bne","o":"b_2391","oa":9105},{"a":9053,"t":"code","b":[173,109,255],"m":"lda","o":"a_FF6D","oa":65389},{"a":9056,"t":"code","b":[13,110,255],"m":"ora","o":"a_FF6E","oa":65390},{"a":9059,"t":"code","b":[240,41],"m":"beq","o":"b_238E","oa":9102},{"a":9061,"t":"code","b":[174,112,255],"m":"ldx","o":"a_FF70","oa":65392},{"a":9064,"t":"code","b":[173,109,255],"m":"lda","o":"a_FF6D","oa":65389},{"a":9067,"t":"code","b":[157,102,104],"m":"sta","o":"f_6866,x","oa":26726},{"a":9070,"t":"code","b":[173,110,255],"m":"lda","o":"a_FF6E","oa":65390},{"a":9073,"t":"code","b":[157,82,104],"m":"sta","o":"f_6852,x","oa":26706},{"a":9076,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":9078,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":9081,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":9083,"t":"code","b":[141,115,254],"m":"sta","o":"a_FE73","oa":65139},{"a":9086,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9088,"t":"code","b":[141,116,253],"m":"sta","o":"a_FD74","oa":64884},{"a":9091,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9093,"t":"code","b":[141,109,255],"m":"sta","o":"a_FF6D","oa":65389},{"a":9096,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9098,"t":"code","b":[141,110,255],"m":"sta","o":"a_FF6E","oa":65390},{"a":9101,"t":"code","b":[96],"m":"rts"},{"a":9102,"l":"b_238E","t":"code","b":[173,150,254],"m":"lda","o":"a_FE96","oa":65174,"x":[9059]},{"a":9105,"l":"b_2391","t":"code","b":[201,32],"m":"cmp","o":"#$20","x":[9051]},{"a":9107,"t":"code","b":[208,59],"m":"bne","o":"change_message_speed","oa":9168},{"a":9109,"c":"Pause: the snail, \"Game paused, press SPACE to continue.\" on the sentence line (from $30EE), the sound's volume to zero, then waits for space, holding the idle count meanwhile; then the volume back ($43DE), the arrow and the sentence line redrawn","t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":9111,"t":"code","b":[32,218,19],"m":"jsr","o":"busy_cursor","oa":5082},{"a":9114,"t":"code","b":[160,39],"m":"ldy","o":"#$27"},{"a":9116,"l":"b_239C","t":"code","b":[185,238,48],"m":"lda","o":"f_30EE,y","oa":12526,"x":[9123]},{"a":9119,"t":"code","b":[153,208,206],"m":"sta","o":"f_CED0,y","oa":52944},{"a":9122,"t":"code","b":[136],"m":"dey"},{"a":9123,"t":"code","b":[16,247],"m":"bpl","o":"b_239C","oa":9116},{"a":9125,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":9127,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":9129,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9131,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":9134,"l":"b_23AE","t":"code","b":[169,80],"m":"lda","o":"#$50","x":[9149]},{"a":9136,"t":"code","b":[141,32,252],"m":"sta","o":"a_FC20","oa":64544},{"a":9139,"t":"code","b":[169,70],"m":"lda","o":"#$46"},{"a":9141,"t":"code","b":[141,33,252],"m":"sta","o":"a_FC21","oa":64545},{"a":9144,"t":"code","b":[32,126,29],"m":"jsr","o":"get_key","oa":7550},{"a":9147,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":9149,"t":"code","b":[208,239],"m":"bne","o":"b_23AE","oa":9134},{"a":9151,"t":"code","b":[173,222,67],"m":"lda","o":"a_43DE","oa":17374},{"a":9154,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":9157,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":9159,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":9161,"t":"code","b":[32,232,19],"m":"jsr","o":"normal_cursor","oa":5096},{"a":9164,"t":"code","b":[32,160,6],"m":"jsr","o":"draw_sentence_line","oa":1696},{"a":9167,"t":"code","b":[96],"m":"rts"},{"a":9168,"l":"change_message_speed","c":"+ makes the messages faster: the speed at $BC down by one, to 0 at least; - slows them, up to 10","t":"code","b":[201,43],"m":"cmp","o":"#$2B","x":[9107]},{"a":9170,"t":"code","b":[208,9],"m":"bne","o":"b_23DD","oa":9181},{"a":9172,"t":"code","b":[198,188],"m":"dec","o":"zpa_BC","oa":188},{"a":9174,"t":"code","b":[16,4],"m":"bpl","o":"r_23DC","oa":9180},{"a":9176,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9178,"t":"code","b":[133,188],"m":"sta","o":"zpa_BC","oa":188},{"a":9180,"l":"r_23DC","t":"code","b":[96],"m":"rts","x":[9174]},{"a":9181,"l":"b_23DD","t":"code","b":[201,45],"m":"cmp","o":"#$2D","x":[9170]},{"a":9183,"t":"code","b":[208,13],"m":"bne","o":"b_23EE","oa":9198},{"a":9185,"t":"code","b":[230,188],"m":"inc","o":"zpa_BC","oa":188},{"a":9187,"t":"code","b":[165,188],"m":"lda","o":"zpa_BC","oa":188},{"a":9189,"t":"code","b":[201,11],"m":"cmp","o":"#$0B"},{"a":9191,"t":"code","b":[208,4],"m":"bne","o":"r_23ED","oa":9197},{"a":9193,"t":"code","b":[169,10],"m":"lda","o":"#$0A"},{"a":9195,"t":"code","b":[133,188],"m":"sta","o":"zpa_BC","oa":188},{"a":9197,"l":"r_23ED","t":"code","b":[96],"m":"rts","x":[9191]},{"a":9198,"l":"b_23EE","t":"code","b":[141,149,254],"m":"sta","o":"a_FE95","oa":65173,"x":[9183]},{"a":9201,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":9203,"t":"code","b":[141,142,254],"m":"sta","o":"a_FE8E","oa":65166},{"a":9206,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":9208,"t":"code","b":[141,45,252],"m":"sta","o":"a_FC2D","oa":64557},{"a":9211,"t":"code","b":[96],"m":"rts"},{"a":9212,"l":"a_23FC","c":"The key handle_key is acting on","t":"byte","b":[0],"x":[9040]},{"a":9213,"l":"nearest_box","c":"Finds the walk box nearest the point $2668/$2669 that actor $E5 may stand in, by trying each of the room's boxes from the last: a box whose flags have bit 7 set is left out for every actor, or, with bit 5 set, only for the actors from variable 42 to variable 43. A box holding the point wins at once; otherwise the one whose nearest point is nearest. Leaves the box in $266A, the point in $266B/$266C, the distance in $266D and the box's mask in $266E","t":"code","b":[32,163,36],"m":"jsr","o":"boxes_pointer","oa":9379,"x":[6139]},{"a":9216,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":9218,"t":"code","b":[177,235],"m":"lda","o":"(zpp_EB),y","oa":235},{"a":9220,"t":"code","b":[141,111,38],"m":"sta","o":"a_266F","oa":9839},{"a":9223,"t":"code","b":[206,111,38],"m":"dec","o":"a_266F","oa":9839},{"a":9226,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":9228,"t":"code","b":[141,109,38],"m":"sta","o":"a_266D","oa":9837},{"a":9231,"l":"b_240F","t":"code","b":[173,111,38],"m":"lda","o":"a_266F","oa":9839,"x":[9342]},{"a":9234,"t":"code","b":[32,222,36],"m":"jsr","o":"box_flags","oa":9438},{"a":9237,"t":"code","b":[141,103,38],"m":"sta","o":"a_2667","oa":9831},{"a":9240,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":9242,"t":"code","b":[240,30],"m":"beq","o":"b_243A","oa":9274},{"a":9244,"t":"code","b":[173,103,38],"m":"lda","o":"a_2667","oa":9831},{"a":9247,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":9249,"t":"code","b":[240,20],"m":"beq","o":"b_2437","oa":9271},{"a":9251,"t":"code","b":[165,229],"m":"lda","o":"zpa_E5","oa":229},{"a":9253,"t":"code","b":[205,152,254],"m":"cmp","o":"a_FE98","oa":65176},{"a":9256,"t":"code","b":[176,3],"m":"bcs","o":"b_242D","oa":9261},{"a":9258,"t":"code","b":[76,58,36],"m":"jmp","o":"b_243A","oa":9274},{"a":9261,"l":"b_242D","t":"code","b":[205,153,254],"m":"cmp","o":"a_FE99","oa":65177,"x":[9256]},{"a":9264,"t":"code","b":[144,5],"m":"bcc","o":"b_2437","oa":9271},{"a":9266,"t":"code","b":[240,3],"m":"beq","o":"b_2437","oa":9271},{"a":9268,"t":"code","b":[76,58,36],"m":"jmp","o":"b_243A","oa":9274},{"a":9271,"l":"b_2437","t":"code","b":[76,123,36],"m":"jmp","o":"j_247B","oa":9339,"x":[9249,9264,9266]},{"a":9274,"l":"b_243A","t":"code","b":[32,235,36],"m":"jsr","o":"box_nearest_point","oa":9451,"x":[9242,9258,9268]},{"a":9277,"t":"code","b":[173,114,38],"m":"lda","o":"a_2672","oa":9842},{"a":9280,"t":"code","b":[208,28],"m":"bne","o":"b_245E","oa":9310},{"a":9282,"t":"code","b":[141,109,38],"m":"sta","o":"a_266D","oa":9837},{"a":9285,"t":"code","b":[173,111,38],"m":"lda","o":"a_266F","oa":9839},{"a":9288,"t":"code","b":[141,106,38],"m":"sta","o":"a_266A","oa":9834},{"a":9291,"t":"code","b":[173,112,38],"m":"lda","o":"a_2670","oa":9840},{"a":9294,"t":"code","b":[141,107,38],"m":"sta","o":"a_266B","oa":9835},{"a":9297,"t":"code","b":[173,113,38],"m":"lda","o":"a_2671","oa":9841},{"a":9300,"t":"code","b":[141,108,38],"m":"sta","o":"a_266C","oa":9836},{"a":9303,"t":"code","b":[173,91,38],"m":"lda","o":"a_265B","oa":9819},{"a":9306,"t":"code","b":[141,110,38],"m":"sta","o":"a_266E","oa":9838},{"a":9309,"t":"code","b":[96],"m":"rts"},{"a":9310,"l":"b_245E","t":"code","b":[173,114,38],"m":"lda","o":"a_2672","oa":9842,"x":[9280]},{"a":9313,"t":"code","b":[205,109,38],"m":"cmp","o":"a_266D","oa":9837},{"a":9316,"t":"code","b":[176,21],"m":"bcs","o":"j_247B","oa":9339},{"a":9318,"t":"code","b":[141,109,38],"m":"sta","o":"a_266D","oa":9837},{"a":9321,"t":"code","b":[173,111,38],"m":"lda","o":"a_266F","oa":9839},{"a":9324,"t":"code","b":[141,106,38],"m":"sta","o":"a_266A","oa":9834},{"a":9327,"t":"code","b":[173,112,38],"m":"lda","o":"a_2670","oa":9840},{"a":9330,"t":"code","b":[141,107,38],"m":"sta","o":"a_266B","oa":9835},{"a":9333,"t":"code","b":[173,113,38],"m":"lda","o":"a_2671","oa":9841},{"a":9336,"t":"code","b":[141,108,38],"m":"sta","o":"a_266C","oa":9836},{"a":9339,"l":"j_247B","t":"code","b":[206,111,38],"m":"dec","o":"a_266F","oa":9839,"x":[9271,9316]},{"a":9342,"t":"code","b":[16,143],"m":"bpl","o":"b_240F","oa":9231},{"a":9344,"t":"code","b":[96],"m":"rts"},{"a":9345,"l":"box_distance","c":"The distance to the box from the X and Y gaps ($265F, $2660): Y counts a quarter, as a row is a quarter of a column's width in the room's units, and the distance is the larger gap plus half the smaller, near enough to the straight line. Into $2672","t":"code","b":[78,96,38],"m":"lsr","o":"a_2660","oa":9824,"x":[9542,9579,9667]},{"a":9348,"t":"code","b":[78,96,38],"m":"lsr","o":"a_2660","oa":9824},{"a":9351,"t":"code","b":[173,95,38],"m":"lda","o":"a_265F","oa":9823},{"a":9354,"t":"code","b":[205,96,38],"m":"cmp","o":"a_2660","oa":9824},{"a":9357,"t":"code","b":[144,11],"m":"bcc","o":"b_249A","oa":9370},{"a":9359,"t":"code","b":[173,96,38],"m":"lda","o":"a_2660","oa":9824},{"a":9362,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9363,"t":"code","b":[24],"m":"clc"},{"a":9364,"t":"code","b":[109,95,38],"m":"adc","o":"a_265F","oa":9823},{"a":9367,"t":"code","b":[76,159,36],"m":"jmp","o":"j_249F","oa":9375},{"a":9370,"l":"b_249A","t":"code","b":[74],"m":"lsr","o":"a","x":[9357]},{"a":9371,"t":"code","b":[24],"m":"clc"},{"a":9372,"t":"code","b":[109,96,38],"m":"adc","o":"a_2660","oa":9824},{"a":9375,"l":"j_249F","t":"code","b":[141,114,38],"m":"sta","o":"a_2672","oa":9842,"x":[9367]},{"a":9378,"t":"code","b":[96],"m":"rts"},{"a":9379,"l":"boxes_pointer","c":"$EB/$EC: the shown room's walk boxes, in its resource at the offset its byte $15 gives: a count, then eight bytes a box (top Y, bottom Y, top left X, top right X, bottom left X, bottom right X, mask, flags), as each box is a trapezium with flat top and bottom","t":"code","b":[142,202,36],"m":"stx","o":"a_24CA","oa":9418,"x":[5895,9213,9429,9444,9789]},{"a":9382,"t":"code","b":[140,203,36],"m":"sty","o":"a_24CB","oa":9419},{"a":9385,"t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882},{"a":9388,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":9391,"t":"code","b":[133,236],"m":"sta","o":"zpa_EC","oa":236},{"a":9393,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":9396,"t":"code","b":[133,235],"m":"sta","o":"zpp_EB","oa":235},{"a":9398,"t":"code","b":[160,21],"m":"ldy","o":"#$15"},{"a":9400,"t":"code","b":[177,235],"m":"lda","o":"(zpp_EB),y","oa":235},{"a":9402,"t":"code","b":[24],"m":"clc"},{"a":9403,"t":"code","b":[101,235],"m":"adc","o":"zpp_EB","oa":235},{"a":9405,"t":"code","b":[133,235],"m":"sta","o":"zpp_EB","oa":235},{"a":9407,"t":"code","b":[144,2],"m":"bcc","o":"b_24C3","oa":9411},{"a":9409,"t":"code","b":[230,236],"m":"inc","o":"zpa_EC","oa":236},{"a":9411,"l":"b_24C3","t":"code","b":[174,202,36],"m":"ldx","o":"a_24CA","oa":9418,"x":[9407]},{"a":9414,"t":"code","b":[172,203,36],"m":"ldy","o":"a_24CB","oa":9419},{"a":9417,"t":"code","b":[96],"m":"rts"},{"a":9418,"l":"a_24CA","c":"X, kept by boxes_pointer","t":"byte","b":[0],"x":[9379,9411]},{"a":9419,"l":"a_24CB","c":"Y, kept by boxes_pointer","t":"byte","b":[0],"x":[9382,9414]},{"a":9420,"l":"box_mask","c":"Box A's mask (byte 6), which says what in the room is drawn over an actor standing in it","t":"code","b":[140,234,36],"m":"sty","o":"a_24EA","oa":9450,"x":[5532,10712]},{"a":9423,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9424,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9425,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9426,"t":"code","b":[105,7],"m":"adc","o":"#$07"},{"a":9428,"t":"code","b":[168],"m":"tay"},{"a":9429,"t":"code","b":[32,163,36],"m":"jsr","o":"boxes_pointer","oa":9379},{"a":9432,"t":"code","b":[177,235],"m":"lda","o":"(zpp_EB),y","oa":235},{"a":9434,"t":"code","b":[172,234,36],"m":"ldy","o":"a_24EA","oa":9450},{"a":9437,"t":"code","b":[96],"m":"rts"},{"a":9438,"l":"box_flags","c":"Box A's flags (byte 7)","t":"code","b":[10],"m":"asl","o":"a","x":[5393,5419,5578,9234,24447]},{"a":9439,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9440,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9441,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":9443,"t":"code","b":[168],"m":"tay"},{"a":9444,"t":"code","b":[32,163,36],"m":"jsr","o":"boxes_pointer","oa":9379},{"a":9447,"t":"code","b":[177,235],"m":"lda","o":"(zpp_EB),y","oa":235},{"a":9449,"t":"code","b":[96],"m":"rts"},{"a":9450,"l":"a_24EA","c":"Y, kept by box_mask","t":"byte","b":[0],"x":[9420,9434]},{"a":9451,"l":"box_nearest_point","c":"The point of box $266F nearest the point $2668/$2669, into $2670/$2671 with its distance in $2672 (zero inside). Above or below the box it is the nearest point of the top or the bottom edge. Level with the box it is the point itself when it is clearly inside; otherwise the box's left and right edges at that height are found by halving the box from top and bottom until the middle is level with the point, and X is brought within them","t":"code","b":[32,61,38],"m":"jsr","o":"load_box","oa":9789,"x":[5726,5749,9274]},{"a":9454,"t":"code","b":[173,105,38],"m":"lda","o":"a_2669","oa":9833},{"a":9457,"t":"code","b":[205,85,38],"m":"cmp","o":"a_2655","oa":9813},{"a":9460,"t":"code","b":[144,86],"m":"bcc","o":"point_above_box","oa":9548},{"a":9462,"t":"code","b":[205,86,38],"m":"cmp","o":"a_2656","oa":9814},{"a":9465,"t":"code","b":[176,44],"m":"bcs","o":"b_2527","oa":9511},{"a":9467,"t":"code","b":[173,104,38],"m":"lda","o":"a_2668","oa":9832},{"a":9470,"t":"code","b":[205,87,38],"m":"cmp","o":"a_2657","oa":9815},{"a":9473,"t":"code","b":[144,33],"m":"bcc","o":"b_2524","oa":9508},{"a":9475,"t":"code","b":[205,89,38],"m":"cmp","o":"a_2659","oa":9817},{"a":9478,"t":"code","b":[144,28],"m":"bcc","o":"b_2524","oa":9508},{"a":9480,"t":"code","b":[205,88,38],"m":"cmp","o":"a_2658","oa":9816},{"a":9483,"t":"code","b":[176,23],"m":"bcs","o":"b_2524","oa":9508},{"a":9485,"t":"code","b":[205,90,38],"m":"cmp","o":"a_265A","oa":9818},{"a":9488,"t":"code","b":[176,18],"m":"bcs","o":"b_2524","oa":9508},{"a":9490,"t":"code","b":[173,104,38],"m":"lda","o":"a_2668","oa":9832},{"a":9493,"t":"code","b":[141,112,38],"m":"sta","o":"a_2670","oa":9840},{"a":9496,"t":"code","b":[173,105,38],"m":"lda","o":"a_2669","oa":9833},{"a":9499,"t":"code","b":[141,113,38],"m":"sta","o":"a_2671","oa":9841},{"a":9502,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9504,"t":"code","b":[141,114,38],"m":"sta","o":"a_2672","oa":9842},{"a":9507,"t":"code","b":[96],"m":"rts"},{"a":9508,"l":"b_2524","t":"code","b":[76,110,37],"m":"jmp","o":"j_256E","oa":9582,"x":[9473,9478,9483,9488]},{"a":9511,"l":"b_2527","t":"code","b":[173,86,38],"m":"lda","o":"a_2656","oa":9814,"x":[9465]},{"a":9514,"t":"code","b":[141,113,38],"m":"sta","o":"a_2671","oa":9841},{"a":9517,"t":"code","b":[173,89,38],"m":"lda","o":"a_2659","oa":9817},{"a":9520,"t":"code","b":[141,93,38],"m":"sta","o":"a_265D","oa":9821},{"a":9523,"t":"code","b":[173,90,38],"m":"lda","o":"a_265A","oa":9818},{"a":9526,"t":"code","b":[141,94,38],"m":"sta","o":"a_265E","oa":9822},{"a":9529,"t":"code","b":[32,236,37],"m":"jsr","o":"clamp_x","oa":9708},{"a":9532,"t":"code","b":[173,105,38],"m":"lda","o":"a_2669","oa":9833},{"a":9535,"t":"code","b":[56],"m":"sec"},{"a":9536,"t":"code","b":[237,86,38],"m":"sbc","o":"a_2656","oa":9814},{"a":9539,"t":"code","b":[141,96,38],"m":"sta","o":"a_2660","oa":9824},{"a":9542,"t":"code","b":[76,129,36],"m":"jmp","o":"box_distance","oa":9345},{"a":9545,"c":"JMP $256E, after the JMP at $2546: never reached","t":"code","b":[76,110,37],"m":"jmp","o":"j_256E","oa":9582},{"a":9548,"l":"point_above_box","c":"The point is above the box: the nearest point is on its top edge, at the top Y, with X brought between the top corners; the distance is measured with the gap from the point up to the box's top","t":"code","b":[173,85,38],"m":"lda","o":"a_2655","oa":9813,"x":[9460]},{"a":9551,"t":"code","b":[141,113,38],"m":"sta","o":"a_2671","oa":9841},{"a":9554,"t":"code","b":[173,87,38],"m":"lda","o":"a_2657","oa":9815},{"a":9557,"t":"code","b":[141,93,38],"m":"sta","o":"a_265D","oa":9821},{"a":9560,"t":"code","b":[173,88,38],"m":"lda","o":"a_2658","oa":9816},{"a":9563,"t":"code","b":[141,94,38],"m":"sta","o":"a_265E","oa":9822},{"a":9566,"t":"code","b":[32,236,37],"m":"jsr","o":"clamp_x","oa":9708},{"a":9569,"t":"code","b":[173,85,38],"m":"lda","o":"a_2655","oa":9813},{"a":9572,"t":"code","b":[56],"m":"sec"},{"a":9573,"t":"code","b":[237,105,38],"m":"sbc","o":"a_2669","oa":9833},{"a":9576,"t":"code","b":[141,96,38],"m":"sta","o":"a_2660","oa":9824},{"a":9579,"t":"code","b":[76,129,36],"m":"jmp","o":"box_distance","oa":9345},{"a":9582,"l":"j_256E","t":"code","b":[173,105,38],"m":"lda","o":"a_2669","oa":9833,"x":[9508,9545]},{"a":9585,"t":"code","b":[141,113,38],"m":"sta","o":"a_2671","oa":9841},{"a":9588,"t":"code","b":[173,87,38],"m":"lda","o":"a_2657","oa":9815},{"a":9591,"t":"code","b":[141,99,38],"m":"sta","o":"a_2663","oa":9827},{"a":9594,"t":"code","b":[173,89,38],"m":"lda","o":"a_2659","oa":9817},{"a":9597,"t":"code","b":[141,100,38],"m":"sta","o":"a_2664","oa":9828},{"a":9600,"t":"code","b":[173,88,38],"m":"lda","o":"a_2658","oa":9816},{"a":9603,"t":"code","b":[141,101,38],"m":"sta","o":"a_2665","oa":9829},{"a":9606,"t":"code","b":[173,90,38],"m":"lda","o":"a_265A","oa":9818},{"a":9609,"t":"code","b":[141,102,38],"m":"sta","o":"a_2666","oa":9830},{"a":9612,"t":"code","b":[173,85,38],"m":"lda","o":"a_2655","oa":9813},{"a":9615,"t":"code","b":[141,97,38],"m":"sta","o":"a_2661","oa":9825},{"a":9618,"t":"code","b":[173,86,38],"m":"lda","o":"a_2656","oa":9814},{"a":9621,"t":"code","b":[141,98,38],"m":"sta","o":"a_2662","oa":9826},{"a":9624,"l":"j_2598","t":"code","b":[173,99,38],"m":"lda","o":"a_2663","oa":9827,"x":[9705]},{"a":9627,"t":"code","b":[24],"m":"clc"},{"a":9628,"t":"code","b":[109,100,38],"m":"adc","o":"a_2664","oa":9828},{"a":9631,"t":"code","b":[106],"m":"ror","o":"a"},{"a":9632,"t":"code","b":[141,93,38],"m":"sta","o":"a_265D","oa":9821},{"a":9635,"t":"code","b":[173,101,38],"m":"lda","o":"a_2665","oa":9829},{"a":9638,"t":"code","b":[24],"m":"clc"},{"a":9639,"t":"code","b":[109,102,38],"m":"adc","o":"a_2666","oa":9830},{"a":9642,"t":"code","b":[106],"m":"ror","o":"a"},{"a":9643,"t":"code","b":[141,94,38],"m":"sta","o":"a_265E","oa":9822},{"a":9646,"t":"code","b":[173,97,38],"m":"lda","o":"a_2661","oa":9825},{"a":9649,"t":"code","b":[24],"m":"clc"},{"a":9650,"t":"code","b":[109,98,38],"m":"adc","o":"a_2662","oa":9826},{"a":9653,"t":"code","b":[106],"m":"ror","o":"a"},{"a":9654,"t":"code","b":[205,105,38],"m":"cmp","o":"a_2669","oa":9833},{"a":9657,"t":"code","b":[208,11],"m":"bne","o":"b_25C6","oa":9670},{"a":9659,"t":"code","b":[32,236,37],"m":"jsr","o":"clamp_x","oa":9708},{"a":9662,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9664,"t":"code","b":[141,96,38],"m":"sta","o":"a_2660","oa":9824},{"a":9667,"t":"code","b":[76,129,36],"m":"jmp","o":"box_distance","oa":9345},{"a":9670,"l":"b_25C6","t":"code","b":[144,18],"m":"bcc","o":"b_25DA","oa":9690,"x":[9657]},{"a":9672,"t":"code","b":[141,98,38],"m":"sta","o":"a_2662","oa":9826},{"a":9675,"t":"code","b":[173,93,38],"m":"lda","o":"a_265D","oa":9821},{"a":9678,"t":"code","b":[141,100,38],"m":"sta","o":"a_2664","oa":9828},{"a":9681,"t":"code","b":[173,94,38],"m":"lda","o":"a_265E","oa":9822},{"a":9684,"t":"code","b":[141,102,38],"m":"sta","o":"a_2666","oa":9830},{"a":9687,"t":"code","b":[76,233,37],"m":"jmp","o":"j_25E9","oa":9705},{"a":9690,"l":"b_25DA","t":"code","b":[141,97,38],"m":"sta","o":"a_2661","oa":9825,"x":[9670]},{"a":9693,"t":"code","b":[173,93,38],"m":"lda","o":"a_265D","oa":9821},{"a":9696,"t":"code","b":[141,99,38],"m":"sta","o":"a_2663","oa":9827},{"a":9699,"t":"code","b":[173,94,38],"m":"lda","o":"a_265E","oa":9822},{"a":9702,"t":"code","b":[141,101,38],"m":"sta","o":"a_2665","oa":9829},{"a":9705,"l":"j_25E9","t":"code","b":[76,152,37],"m":"jmp","o":"j_2598","oa":9624,"x":[9687]},{"a":9708,"l":"clamp_x","c":"Brings X ($2668) between $265D and $265E into $2670, and the gap it had to move into $265F","t":"code","b":[173,104,38],"m":"lda","o":"a_2668","oa":9832,"x":[9529,9566,9659]},{"a":9711,"t":"code","b":[205,93,38],"m":"cmp","o":"a_265D","oa":9821},{"a":9714,"t":"code","b":[144,20],"m":"bcc","o":"b_2608","oa":9736},{"a":9716,"t":"code","b":[205,94,38],"m":"cmp","o":"a_265E","oa":9822},{"a":9719,"t":"code","b":[176,15],"m":"bcs","o":"b_2608","oa":9736},{"a":9721,"t":"code","b":[173,104,38],"m":"lda","o":"a_2668","oa":9832},{"a":9724,"t":"code","b":[141,112,38],"m":"sta","o":"a_2670","oa":9840},{"a":9727,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9729,"t":"code","b":[141,95,38],"m":"sta","o":"a_265F","oa":9823},{"a":9732,"t":"code","b":[141,96,38],"m":"sta","o":"a_2660","oa":9824},{"a":9735,"t":"code","b":[96],"m":"rts"},{"a":9736,"l":"b_2608","t":"code","b":[173,104,38],"m":"lda","o":"a_2668","oa":9832,"x":[9714,9719]},{"a":9739,"t":"code","b":[56],"m":"sec"},{"a":9740,"t":"code","b":[237,93,38],"m":"sbc","o":"a_265D","oa":9821},{"a":9743,"t":"code","b":[176,4],"m":"bcs","o":"b_2615","oa":9749},{"a":9745,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":9747,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":9749,"l":"b_2615","t":"code","b":[141,95,38],"m":"sta","o":"a_265F","oa":9823,"x":[9743]},{"a":9752,"t":"code","b":[173,104,38],"m":"lda","o":"a_2668","oa":9832},{"a":9755,"t":"code","b":[56],"m":"sec"},{"a":9756,"t":"code","b":[237,94,38],"m":"sbc","o":"a_265E","oa":9822},{"a":9759,"t":"code","b":[176,4],"m":"bcs","o":"b_2625","oa":9765},{"a":9761,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":9763,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":9765,"l":"b_2625","t":"code","b":[205,95,38],"m":"cmp","o":"a_265F","oa":9823,"x":[9759]},{"a":9768,"t":"code","b":[144,9],"m":"bcc","o":"b_2633","oa":9779},{"a":9770,"t":"code","b":[173,93,38],"m":"lda","o":"a_265D","oa":9821},{"a":9773,"t":"code","b":[141,112,38],"m":"sta","o":"a_2670","oa":9840},{"a":9776,"t":"code","b":[76,60,38],"m":"jmp","o":"r_263C","oa":9788},{"a":9779,"l":"b_2633","t":"code","b":[141,95,38],"m":"sta","o":"a_265F","oa":9823,"x":[9768]},{"a":9782,"t":"code","b":[173,94,38],"m":"lda","o":"a_265E","oa":9822},{"a":9785,"t":"code","b":[141,112,38],"m":"sta","o":"a_2670","oa":9840},{"a":9788,"l":"r_263C","t":"code","b":[96],"m":"rts","x":[9776]},{"a":9789,"l":"load_box","c":"Copies box $266F's eight bytes to $2655-$265C","t":"code","b":[32,163,36],"m":"jsr","o":"boxes_pointer","oa":9379,"x":[9451]},{"a":9792,"t":"code","b":[173,111,38],"m":"lda","o":"a_266F","oa":9839},{"a":9795,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9796,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9797,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9798,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":9800,"t":"code","b":[168],"m":"tay"},{"a":9801,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":9803,"l":"b_264B","t":"code","b":[177,235],"m":"lda","o":"(zpp_EB),y","oa":235,"x":[9810]},{"a":9805,"t":"code","b":[157,85,38],"m":"sta","o":"a_2655,x","oa":9813},{"a":9808,"t":"code","b":[136],"m":"dey"},{"a":9809,"t":"code","b":[202],"m":"dex"},{"a":9810,"t":"code","b":[16,247],"m":"bpl","o":"b_264B","oa":9803},{"a":9812,"t":"code","b":[96],"m":"rts"},{"a":9813,"l":"a_2655","c":"The box being measured: top Y; $2656 bottom Y","t":"byte","b":[0],"x":[9457,9548,9569,9612,9805]},{"a":9814,"l":"a_2656","c":"The box being measured: bottom Y","t":"byte","b":[0],"x":[9462,9511,9536,9618]},{"a":9815,"l":"a_2657","c":"Its top left X; $2658 top right X; $2659 bottom left X; $265A bottom right X","t":"byte","b":[0],"x":[9470,9554,9588]},{"a":9816,"l":"a_2658","c":"Its top right X","t":"byte","b":[0],"x":[9480,9560,9600]},{"a":9817,"l":"a_2659","c":"Its bottom left X","t":"byte","b":[0],"x":[9475,9517,9594]},{"a":9818,"l":"a_265A","c":"Its bottom right X","t":"byte","b":[0],"x":[9485,9523,9606]},{"a":9819,"l":"a_265B","c":"Its mask; $265C its flags","t":"byte","b":[0,0],"x":[9303]},{"a":9821,"l":"a_265D","c":"The box's left and right edges at the point's height ($265E the right)","t":"byte","b":[0],"x":[9520,9557,9632,9675,9693,9711,9740,9770]},{"a":9822,"l":"a_265E","c":"The box's right edge at the point's height","t":"byte","b":[0],"x":[9526,9563,9643,9681,9699,9716,9756,9782]},{"a":9823,"l":"a_265F","c":"The X gap to the box; $2660 the Y gap","t":"byte","b":[0],"x":[9351,9364,9729,9749,9765,9779]},{"a":9824,"l":"a_2660","c":"The Y gap to the box","t":"byte","b":[0],"x":[9345,9348,9354,9359,9372,9539,9576,9664,9732]},{"a":9825,"l":"a_2661","c":"The halving's top and bottom Y ($2662), and the edges' X at each: left $2663 and $2664, right $2665 and $2666","t":"byte","b":[0],"x":[9615,9646,9690]},{"a":9826,"l":"a_2662","c":"The halving's bottom Y","t":"byte","b":[0],"x":[9621,9650,9672]},{"a":9827,"l":"a_2663","c":"The left edge's X at the halving's top","t":"byte","b":[0],"x":[9591,9624,9696]},{"a":9828,"l":"a_2664","c":"The left edge's X at the halving's bottom","t":"byte","b":[0],"x":[9597,9628,9678]},{"a":9829,"l":"a_2665","c":"The right edge's X at the halving's top","t":"byte","b":[0],"x":[9603,9635,9702]},{"a":9830,"l":"a_2666","c":"The right edge's X at the halving's bottom","t":"byte","b":[0],"x":[9609,9639,9684]},{"a":9831,"l":"a_2667","c":"The box's flags, while they are checked","t":"byte","b":[0],"x":[5629,5636,9237,9244]},{"a":9832,"l":"a_2668","c":"The point to measure from: X; $2669 Y","t":"byte","b":[0],"x":[5711,5734,6130,9467,9490,9708,9721,9736,9752]},{"a":9833,"l":"a_2669","c":"The point to measure from: Y","t":"byte","b":[0],"x":[5717,5740,6136,9454,9496,9532,9573,9582,9654]},{"a":9834,"l":"a_266A","c":"The nearest box found; $266B/$266C the point in it; $266D its distance; $266E its mask","t":"byte","b":[0],"x":[6091,6158,9288,9324,10706]},{"a":9835,"l":"a_266B","c":"The nearest box's point: X","t":"byte","b":[0],"x":[6142,9294,9330]},{"a":9836,"l":"a_266C","c":"The nearest box's point: Y","t":"byte","b":[0],"x":[6148,9300,9336]},{"a":9837,"l":"a_266D","c":"The nearest box's distance, the smallest found so far","t":"byte","b":[0],"x":[9228,9282,9313,9318]},{"a":9838,"l":"a_266E","c":"The nearest box's mask","t":"byte","b":[0],"x":[9306]},{"a":9839,"l":"a_266F","c":"The box being tried","t":"byte","b":[0],"x":[5723,5746,9220,9223,9231,9285,9321,9339,9792]},{"a":9840,"l":"a_2670","c":"The nearest point of the box: X; $2671 Y; $2672 its distance","t":"byte","b":[0],"x":[5589,5731,9291,9327,9493,9724,9773,9785]},{"a":9841,"l":"a_2671","c":"The nearest point of the box: Y","t":"byte","b":[0],"x":[5595,5737,9297,9333,9499,9514,9551,9585]},{"a":9842,"l":"a_2672","c":"The nearest point's distance from the point measured, zero inside the box","t":"byte","b":[0],"x":[9277,9310,9375,9504]},{"a":9843,"l":"mask_actor_sprite","c":"Masks the frame just drawn in slot $C5's sprite column with the room's mask, so the actor is hidden behind what stands in front of it: for each sprite row from its foot up to its height (clipped to the 137 rows), the three mask characters under the sprite's three bytes, read from the mask screen ($FC0F/$FC10, a row of 40 for every eight sprite rows, through the row tables at $D440/$D459) from column $FC0C on, are ANDed into the row","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[7640]},{"a":9845,"t":"code","b":[189,218,252],"m":"lda","o":"f_FCDA,x","oa":64730},{"a":9848,"t":"code","b":[133,219],"m":"sta","o":"zpa_DB","oa":219},{"a":9850,"t":"code","b":[165,219],"m":"lda","o":"zpa_DB","oa":219},{"a":9852,"t":"code","b":[56],"m":"sec"},{"a":9853,"t":"code","b":[253,38,253],"m":"sbc","o":"f_FD26,x","oa":64806},{"a":9856,"t":"code","b":[133,220],"m":"sta","o":"zpa_DC","oa":220},{"a":9858,"t":"code","b":[198,220],"m":"dec","o":"zpa_DC","oa":220},{"a":9860,"t":"code","b":[169,137],"m":"lda","o":"#$89"},{"a":9862,"t":"code","b":[197,220],"m":"cmp","o":"zpa_DC","oa":220},{"a":9864,"t":"code","b":[176,14],"m":"bcs","o":"b_2698","oa":9880},{"a":9866,"t":"code","b":[197,219],"m":"cmp","o":"zpa_DB","oa":219},{"a":9868,"t":"code","b":[176,1],"m":"bcs","o":"b_268F","oa":9871},{"a":9870,"t":"code","b":[96],"m":"rts"},{"a":9871,"l":"b_268F","t":"code","b":[165,220],"m":"lda","o":"zpa_DC","oa":220,"x":[9868]},{"a":9873,"t":"code","b":[141,5,252],"m":"sta","o":"a_FC05","oa":64517},{"a":9876,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9878,"t":"code","b":[133,220],"m":"sta","o":"zpa_DC","oa":220},{"a":9880,"l":"b_2698","t":"code","b":[169,137],"m":"lda","o":"#$89","x":[9864]},{"a":9882,"t":"code","b":[197,219],"m":"cmp","o":"zpa_DB","oa":219},{"a":9884,"t":"code","b":[176,4],"m":"bcs","o":"b_26A2","oa":9890},{"a":9886,"t":"code","b":[169,137],"m":"lda","o":"#$89"},{"a":9888,"t":"code","b":[133,219],"m":"sta","o":"zpa_DB","oa":219},{"a":9890,"l":"b_26A2","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[9884]},{"a":9892,"t":"code","b":[188,46,253],"m":"ldy","o":"f_FD2E,x","oa":64814},{"a":9895,"t":"code","b":[32,11,32],"m":"jsr","o":"sprite_column_address","oa":8203},{"a":9898,"t":"code","b":[173,3,252],"m":"lda","o":"a_FC03","oa":64515},{"a":9901,"t":"code","b":[133,230],"m":"sta","o":"zpa_E6","oa":230},{"a":9903,"t":"code","b":[173,4,252],"m":"lda","o":"a_FC04","oa":64516},{"a":9906,"t":"code","b":[133,231],"m":"sta","o":"zpa_E7","oa":231},{"a":9908,"t":"code","b":[165,219],"m":"lda","o":"zpa_DB","oa":219},{"a":9910,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9911,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9912,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9913,"t":"code","b":[170],"m":"tax"},{"a":9914,"t":"code","b":[24],"m":"clc"},{"a":9915,"t":"code","b":[189,64,212],"m":"lda","o":"f_D440,x","oa":54336},{"a":9918,"t":"code","b":[109,15,252],"m":"adc","o":"a_FC0F","oa":64527},{"a":9921,"t":"code","b":[133,114],"m":"sta","o":"zpa_72","oa":114},{"a":9923,"t":"code","b":[189,89,212],"m":"lda","o":"f_D459,x","oa":54361},{"a":9926,"t":"code","b":[109,16,252],"m":"adc","o":"a_FC10","oa":64528},{"a":9929,"t":"code","b":[133,115],"m":"sta","o":"zpa_73","oa":115},{"a":9931,"t":"code","b":[173,12,252],"m":"lda","o":"a_FC0C","oa":64524},{"a":9934,"t":"code","b":[141,13,252],"m":"sta","o":"a_FC0D","oa":64525},{"a":9937,"t":"code","b":[32,27,39],"m":"jsr","o":"mask_char_pointers","oa":10011},{"a":9940,"l":"j_26D4","t":"code","b":[166,219],"m":"ldx","o":"zpa_DB","oa":219,"x":[10007]},{"a":9942,"t":"code","b":[228,220],"m":"cpx","o":"zpa_DC","oa":220},{"a":9944,"t":"code","b":[240,64],"m":"beq","o":"r_271A","oa":10010},{"a":9946,"t":"code","b":[189,176,211],"m":"lda","o":"sprite_row_low,x","oa":54192},{"a":9949,"t":"code","b":[24],"m":"clc"},{"a":9950,"t":"code","b":[101,230],"m":"adc","o":"zpa_E6","oa":230},{"a":9952,"t":"code","b":[133,112],"m":"sta","o":"zpa_70","oa":112},{"a":9954,"t":"code","b":[189,16,211],"m":"lda","o":"sprite_row_high,x","oa":54032},{"a":9957,"t":"code","b":[101,231],"m":"adc","o":"zpa_E7","oa":231},{"a":9959,"t":"code","b":[133,113],"m":"sta","o":"zpa_71","oa":113},{"a":9961,"t":"code","b":[138],"m":"txa"},{"a":9962,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":9964,"t":"code","b":[208,20],"m":"bne","o":"b_2702","oa":9986},{"a":9966,"t":"code","b":[165,114],"m":"lda","o":"zpa_72","oa":114},{"a":9968,"t":"code","b":[56],"m":"sec"},{"a":9969,"t":"code","b":[233,40],"m":"sbc","o":"#$28"},{"a":9971,"t":"code","b":[133,114],"m":"sta","o":"zpa_72","oa":114},{"a":9973,"t":"code","b":[176,2],"m":"bcs","o":"b_26F9","oa":9977},{"a":9975,"t":"code","b":[198,115],"m":"dec","o":"zpa_73","oa":115},{"a":9977,"l":"b_26F9","t":"code","b":[174,12,252],"m":"ldx","o":"a_FC0C","oa":64524,"x":[9973]},{"a":9980,"t":"code","b":[142,13,252],"m":"stx","o":"a_FC0D","oa":64525},{"a":9983,"t":"code","b":[32,27,39],"m":"jsr","o":"mask_char_pointers","oa":10011},{"a":9986,"l":"b_2702","t":"code","b":[166,219],"m":"ldx","o":"zpa_DB","oa":219,"x":[9964]},{"a":9988,"t":"code","b":[228,220],"m":"cpx","o":"zpa_DC","oa":220},{"a":9990,"t":"code","b":[144,18],"m":"bcc","o":"r_271A","oa":10010},{"a":9992,"t":"code","b":[202],"m":"dex"},{"a":9993,"t":"code","b":[134,219],"m":"stx","o":"zpa_DB","oa":219},{"a":9995,"t":"code","b":[138],"m":"txa"},{"a":9996,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":9998,"t":"code","b":[133,233],"m":"sta","o":"zpa_E9","oa":233},{"a":10000,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":10002,"t":"code","b":[132,232],"m":"sty","o":"zpa_E8","oa":232},{"a":10004,"t":"code","b":[32,166,39],"m":"jsr","o":"mask_sprite_row","oa":10150},{"a":10007,"t":"code","b":[76,212,38],"m":"jmp","o":"j_26D4","oa":9940},{"a":10010,"l":"r_271A","t":"code","b":[96],"m":"rts","x":[9944,9990]},{"a":10011,"l":"mask_char_pointers","c":"For the next three mask characters in the mask screen's row ($72/$73, from column $FC0D), the address of each one's eight bytes in the mask character set ($7790/$77B3, past its four-byte header), into $36/$37, $38/$39 and $3A/$3B","t":"code","b":[172,13,252],"m":"ldy","o":"a_FC0D","oa":64525,"x":[9937,9983]},{"a":10014,"t":"code","b":[238,13,252],"m":"inc","o":"a_FC0D","oa":64525},{"a":10017,"t":"code","b":[177,114],"m":"lda","o":"(zpa_72),y","oa":114},{"a":10019,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":10021,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10022,"t":"code","b":[168],"m":"tay"},{"a":10023,"t":"code","b":[138],"m":"txa"},{"a":10024,"t":"code","b":[42],"m":"rol","o":"a"},{"a":10025,"t":"code","b":[170],"m":"tax"},{"a":10026,"t":"code","b":[152],"m":"tya"},{"a":10027,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10028,"t":"code","b":[168],"m":"tay"},{"a":10029,"t":"code","b":[138],"m":"txa"},{"a":10030,"t":"code","b":[42],"m":"rol","o":"a"},{"a":10031,"t":"code","b":[170],"m":"tax"},{"a":10032,"t":"code","b":[152],"m":"tya"},{"a":10033,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10034,"t":"code","b":[168],"m":"tay"},{"a":10035,"t":"code","b":[138],"m":"txa"},{"a":10036,"t":"code","b":[42],"m":"rol","o":"a"},{"a":10037,"t":"code","b":[170],"m":"tax"},{"a":10038,"t":"code","b":[152],"m":"tya"},{"a":10039,"t":"code","b":[24],"m":"clc"},{"a":10040,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":10042,"t":"code","b":[144,1],"m":"bcc","o":"b_273D","oa":10045},{"a":10044,"t":"code","b":[232],"m":"inx"},{"a":10045,"l":"b_273D","t":"code","b":[24],"m":"clc","x":[10042]},{"a":10046,"t":"code","b":[109,179,119],"m":"adc","o":"a_77B3","oa":30643},{"a":10049,"t":"code","b":[133,54],"m":"sta","o":"zpa_36","oa":54},{"a":10051,"t":"code","b":[138],"m":"txa"},{"a":10052,"t":"code","b":[109,144,119],"m":"adc","o":"a_7790","oa":30608},{"a":10055,"t":"code","b":[133,55],"m":"sta","o":"zpa_37","oa":55},{"a":10057,"t":"code","b":[172,13,252],"m":"ldy","o":"a_FC0D","oa":64525},{"a":10060,"t":"code","b":[238,13,252],"m":"inc","o":"a_FC0D","oa":64525},{"a":10063,"t":"code","b":[177,114],"m":"lda","o":"(zpa_72),y","oa":114},{"a":10065,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":10067,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10068,"t":"code","b":[168],"m":"tay"},{"a":10069,"t":"code","b":[138],"m":"txa"},{"a":10070,"t":"code","b":[42],"m":"rol","o":"a"},{"a":10071,"t":"code","b":[170],"m":"tax"},{"a":10072,"t":"code","b":[152],"m":"tya"},{"a":10073,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10074,"t":"code","b":[168],"m":"tay"},{"a":10075,"t":"code","b":[138],"m":"txa"},{"a":10076,"t":"code","b":[42],"m":"rol","o":"a"},{"a":10077,"t":"code","b":[170],"m":"tax"},{"a":10078,"t":"code","b":[152],"m":"tya"},{"a":10079,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10080,"t":"code","b":[168],"m":"tay"},{"a":10081,"t":"code","b":[138],"m":"txa"},{"a":10082,"t":"code","b":[42],"m":"rol","o":"a"},{"a":10083,"t":"code","b":[170],"m":"tax"},{"a":10084,"t":"code","b":[152],"m":"tya"},{"a":10085,"t":"code","b":[24],"m":"clc"},{"a":10086,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":10088,"t":"code","b":[144,1],"m":"bcc","o":"b_276B","oa":10091},{"a":10090,"t":"code","b":[232],"m":"inx"},{"a":10091,"l":"b_276B","t":"code","b":[24],"m":"clc","x":[10088]},{"a":10092,"t":"code","b":[109,179,119],"m":"adc","o":"a_77B3","oa":30643},{"a":10095,"t":"code","b":[133,56],"m":"sta","o":"zpa_38","oa":56},{"a":10097,"t":"code","b":[138],"m":"txa"},{"a":10098,"t":"code","b":[109,144,119],"m":"adc","o":"a_7790","oa":30608},{"a":10101,"t":"code","b":[133,57],"m":"sta","o":"zpa_39","oa":57},{"a":10103,"t":"code","b":[172,13,252],"m":"ldy","o":"a_FC0D","oa":64525},{"a":10106,"t":"code","b":[238,13,252],"m":"inc","o":"a_FC0D","oa":64525},{"a":10109,"t":"code","b":[177,114],"m":"lda","o":"(zpa_72),y","oa":114},{"a":10111,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":10113,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10114,"t":"code","b":[168],"m":"tay"},{"a":10115,"t":"code","b":[138],"m":"txa"},{"a":10116,"t":"code","b":[42],"m":"rol","o":"a"},{"a":10117,"t":"code","b":[170],"m":"tax"},{"a":10118,"t":"code","b":[152],"m":"tya"},{"a":10119,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10120,"t":"code","b":[168],"m":"tay"},{"a":10121,"t":"code","b":[138],"m":"txa"},{"a":10122,"t":"code","b":[42],"m":"rol","o":"a"},{"a":10123,"t":"code","b":[170],"m":"tax"},{"a":10124,"t":"code","b":[152],"m":"tya"},{"a":10125,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10126,"t":"code","b":[168],"m":"tay"},{"a":10127,"t":"code","b":[138],"m":"txa"},{"a":10128,"t":"code","b":[42],"m":"rol","o":"a"},{"a":10129,"t":"code","b":[170],"m":"tax"},{"a":10130,"t":"code","b":[152],"m":"tya"},{"a":10131,"t":"code","b":[24],"m":"clc"},{"a":10132,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":10134,"t":"code","b":[144,1],"m":"bcc","o":"b_2799","oa":10137},{"a":10136,"t":"code","b":[232],"m":"inx"},{"a":10137,"l":"b_2799","t":"code","b":[24],"m":"clc","x":[10134]},{"a":10138,"t":"code","b":[109,179,119],"m":"adc","o":"a_77B3","oa":30643},{"a":10141,"t":"code","b":[133,58],"m":"sta","o":"zpa_3A","oa":58},{"a":10143,"t":"code","b":[138],"m":"txa"},{"a":10144,"t":"code","b":[109,144,119],"m":"adc","o":"a_7790","oa":30608},{"a":10147,"t":"code","b":[133,59],"m":"sta","o":"zpa_3B","oa":59},{"a":10149,"t":"code","b":[96],"m":"rts"},{"a":10150,"l":"mask_sprite_row","c":"ANDs row $E9 of the three mask characters into the sprite row at $70/$71","t":"code","b":[164,233],"m":"ldy","o":"zpa_E9","oa":233,"x":[10004]},{"a":10152,"t":"code","b":[177,54],"m":"lda","o":"(zpa_36),y","oa":54},{"a":10154,"t":"code","b":[164,232],"m":"ldy","o":"zpa_E8","oa":232},{"a":10156,"t":"code","b":[49,112],"m":"and","o":"(zpa_70),y","oa":112},{"a":10158,"t":"code","b":[145,112],"m":"sta","o":"(zpa_70),y","oa":112},{"a":10160,"t":"code","b":[230,232],"m":"inc","o":"zpa_E8","oa":232},{"a":10162,"t":"code","b":[164,233],"m":"ldy","o":"zpa_E9","oa":233},{"a":10164,"t":"code","b":[177,56],"m":"lda","o":"(zpa_38),y","oa":56},{"a":10166,"t":"code","b":[164,232],"m":"ldy","o":"zpa_E8","oa":232},{"a":10168,"t":"code","b":[49,112],"m":"and","o":"(zpa_70),y","oa":112},{"a":10170,"t":"code","b":[145,112],"m":"sta","o":"(zpa_70),y","oa":112},{"a":10172,"t":"code","b":[230,232],"m":"inc","o":"zpa_E8","oa":232},{"a":10174,"t":"code","b":[164,233],"m":"ldy","o":"zpa_E9","oa":233},{"a":10176,"t":"code","b":[177,58],"m":"lda","o":"(zpa_3A),y","oa":58},{"a":10178,"t":"code","b":[164,232],"m":"ldy","o":"zpa_E8","oa":232},{"a":10180,"t":"code","b":[49,112],"m":"and","o":"(zpa_70),y","oa":112},{"a":10182,"t":"code","b":[145,112],"m":"sta","o":"(zpa_70),y","oa":112},{"a":10184,"t":"code","b":[96],"m":"rts"},{"a":10185,"l":"a_27C9","c":"The flashlight's width in columns (6), set by the lights opcode ($5DF9); $27CA the furthest left it may start (40 less the width)","t":"byte","b":[6],"x":[10414,24059,24065,24085]},{"a":10186,"l":"a_27CA","c":"The furthest right the flashlight's patch may start (40 less its width)","t":"byte","b":[34],"x":[10324,10331,24068]},{"a":10187,"l":"a_27CB","c":"The flashlight's height in rows (4); $27CC the furthest down it may start (16 less the height)","t":"byte","b":[4],"x":[10267,10410,24073,24079,24092]},{"a":10188,"l":"a_27CC","c":"The furthest down the flashlight's patch may start","t":"byte","b":[12],"x":[10340,10347,24082]},{"a":10189,"l":"a_27CD","c":"Half the flashlight's width; $27CE half its height","t":"byte","b":[3],"x":[10273,24089]},{"a":10190,"l":"a_27CE","c":"Half the flashlight's height","t":"byte","b":[2],"x":[24096]},{"a":10191,"l":"update_flashlight","c":"While the room is dark with the flashlight on (bit 2 of variable 12, from the main loop): when the room has been drawn again ($3E not $C8) or the cursor has moved ($FC26 X, $FC25 Y), blacks out the lit patch at the old place and lights it at the new","t":"code","b":[165,62],"m":"lda","o":"zpa_3E","oa":62,"x":[1522]},{"a":10193,"t":"code","b":[201,200],"m":"cmp","o":"#$C8"},{"a":10195,"t":"code","b":[208,17],"m":"bne","o":"b_27E6","oa":10214},{"a":10197,"t":"code","b":[173,38,252],"m":"lda","o":"a_FC26","oa":64550},{"a":10200,"t":"code","b":[205,35,252],"m":"cmp","o":"a_FC23","oa":64547},{"a":10203,"t":"code","b":[208,9],"m":"bne","o":"b_27E6","oa":10214},{"a":10205,"t":"code","b":[173,37,252],"m":"lda","o":"a_FC25","oa":64549},{"a":10208,"t":"code","b":[205,36,252],"m":"cmp","o":"a_FC24","oa":64548},{"a":10211,"t":"code","b":[208,1],"m":"bne","o":"b_27E6","oa":10214},{"a":10213,"t":"code","b":[96],"m":"rts"},{"a":10214,"l":"b_27E6","t":"code","b":[32,253,39],"m":"jsr","o":"flashlight_off","oa":10237,"x":[10195,10203,10211]},{"a":10217,"t":"code","b":[173,38,252],"m":"lda","o":"a_FC26","oa":64550},{"a":10220,"t":"code","b":[141,35,252],"m":"sta","o":"a_FC23","oa":64547},{"a":10223,"t":"code","b":[173,37,252],"m":"lda","o":"a_FC25","oa":64549},{"a":10226,"t":"code","b":[141,36,252],"m":"sta","o":"a_FC24","oa":64548},{"a":10229,"t":"code","b":[32,9,40],"m":"jsr","o":"flashlight_on","oa":10249},{"a":10232,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":10234,"t":"code","b":[133,33],"m":"sta","o":"zpa_21","oa":33},{"a":10236,"t":"code","b":[96],"m":"rts"},{"a":10237,"l":"flashlight_off","c":"Blacks out the flashlight's patch at its last place ($FC23/$FC24)","t":"code","b":[174,35,252],"m":"ldx","o":"a_FC23","oa":64547,"x":[10214]},{"a":10240,"t":"code","b":[172,36,252],"m":"ldy","o":"a_FC24","oa":64548},{"a":10243,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10245,"t":"code","b":[32,21,40],"m":"jsr","o":"flashlight_patch","oa":10261},{"a":10248,"t":"code","b":[96],"m":"rts"},{"a":10249,"l":"flashlight_on","c":"Lights the flashlight's patch at its place ($FC23/$FC24)","t":"code","b":[174,35,252],"m":"ldx","o":"a_FC23","oa":64547,"x":[10229]},{"a":10252,"t":"code","b":[172,36,252],"m":"ldy","o":"a_FC24","oa":64548},{"a":10255,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":10257,"t":"code","b":[32,21,40],"m":"jsr","o":"flashlight_patch","oa":10261},{"a":10260,"t":"code","b":[96],"m":"rts"},{"a":10261,"l":"flashlight_patch","c":"The flashlight's patch, centred on the cursor and kept within the room's 40 columns and 16 rows: with $1B set, copies its characters from the hidden screen, where the room is drawn in full, to the shown one; with $1B clear, writes character 0 there, black. The screens are $C850 and $CC50 (row 2 of each), swapped by which one is shown ($22). The two addresses are written into the LDA and STA at $28BB and $28BE","t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27,"x":[10245,10257]},{"a":10263,"t":"code","b":[152],"m":"tya"},{"a":10264,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":10265,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":10266,"t":"code","b":[56],"m":"sec"},{"a":10267,"t":"code","b":[237,203,39],"m":"sbc","o":"a_27CB","oa":10187},{"a":10270,"t":"code","b":[168],"m":"tay"},{"a":10271,"t":"code","b":[138],"m":"txa"},{"a":10272,"t":"code","b":[56],"m":"sec"},{"a":10273,"t":"code","b":[237,205,39],"m":"sbc","o":"a_27CD","oa":10189},{"a":10276,"t":"code","b":[170],"m":"tax"},{"a":10277,"t":"code","b":[165,34],"m":"lda","o":"zpa_22","oa":34},{"a":10279,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":10281,"t":"code","b":[208,19],"m":"bne","o":"b_283E","oa":10302},{"a":10283,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":10285,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":10287,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":10289,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":10291,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":10293,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":10295,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":10297,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":10299,"t":"code","b":[76,78,40],"m":"jmp","o":"j_284E","oa":10318},{"a":10302,"l":"b_283E","t":"code","b":[169,80],"m":"lda","o":"#$50","x":[10281]},{"a":10304,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":10306,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":10308,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":10310,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":10312,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":10314,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":10316,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":10318,"l":"j_284E","t":"code","b":[224,0],"m":"cpx","o":"#$00","x":[10299]},{"a":10320,"t":"code","b":[16,2],"m":"bpl","o":"b_2854","oa":10324},{"a":10322,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":10324,"l":"b_2854","t":"code","b":[236,202,39],"m":"cpx","o":"a_27CA","oa":10186,"x":[10320]},{"a":10327,"t":"code","b":[144,5],"m":"bcc","o":"b_285E","oa":10334},{"a":10329,"t":"code","b":[240,3],"m":"beq","o":"b_285E","oa":10334},{"a":10331,"t":"code","b":[174,202,39],"m":"ldx","o":"a_27CA","oa":10186},{"a":10334,"l":"b_285E","t":"code","b":[192,0],"m":"cpy","o":"#$00","x":[10327,10329]},{"a":10336,"t":"code","b":[16,2],"m":"bpl","o":"b_2864","oa":10340},{"a":10338,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":10340,"l":"b_2864","t":"code","b":[204,204,39],"m":"cpy","o":"a_27CC","oa":10188,"x":[10336]},{"a":10343,"t":"code","b":[144,5],"m":"bcc","o":"b_286E","oa":10350},{"a":10345,"t":"code","b":[240,3],"m":"beq","o":"b_286E","oa":10350},{"a":10347,"t":"code","b":[172,204,39],"m":"ldy","o":"a_27CC","oa":10188},{"a":10350,"l":"b_286E","t":"code","b":[185,120,52],"m":"lda","o":"f_3478,y","oa":13432,"x":[10343,10345]},{"a":10353,"t":"code","b":[24],"m":"clc"},{"a":10354,"t":"code","b":[101,23],"m":"adc","o":"zpa_17","oa":23},{"a":10356,"t":"code","b":[141,191,40],"m":"sta","o":"patch_write_lo","oa":10431},{"a":10359,"t":"code","b":[185,95,52],"m":"lda","o":"f_345F,y","oa":13407},{"a":10362,"t":"code","b":[101,24],"m":"adc","o":"zpa_18","oa":24},{"a":10364,"t":"code","b":[141,192,40],"m":"sta","o":"patch_write_hi","oa":10432},{"a":10367,"t":"code","b":[185,120,52],"m":"lda","o":"f_3478,y","oa":13432},{"a":10370,"t":"code","b":[24],"m":"clc"},{"a":10371,"t":"code","b":[101,25],"m":"adc","o":"zpa_19","oa":25},{"a":10373,"t":"code","b":[141,188,40],"m":"sta","o":"patch_read_lo","oa":10428},{"a":10376,"t":"code","b":[185,95,52],"m":"lda","o":"f_345F,y","oa":13407},{"a":10379,"t":"code","b":[101,26],"m":"adc","o":"zpa_1A","oa":26},{"a":10381,"t":"code","b":[141,189,40],"m":"sta","o":"patch_read_hi","oa":10429},{"a":10384,"t":"code","b":[138],"m":"txa"},{"a":10385,"t":"code","b":[24],"m":"clc"},{"a":10386,"t":"code","b":[109,188,40],"m":"adc","o":"patch_read_lo","oa":10428},{"a":10389,"t":"code","b":[141,188,40],"m":"sta","o":"patch_read_lo","oa":10428},{"a":10392,"t":"code","b":[144,3],"m":"bcc","o":"b_289D","oa":10397},{"a":10394,"t":"code","b":[238,189,40],"m":"inc","o":"patch_read_hi","oa":10429},{"a":10397,"l":"b_289D","t":"code","b":[138],"m":"txa","x":[10392]},{"a":10398,"t":"code","b":[24],"m":"clc"},{"a":10399,"t":"code","b":[109,191,40],"m":"adc","o":"patch_write_lo","oa":10431},{"a":10402,"t":"code","b":[141,191,40],"m":"sta","o":"patch_write_lo","oa":10431},{"a":10405,"t":"code","b":[144,3],"m":"bcc","o":"b_28AA","oa":10410},{"a":10407,"t":"code","b":[238,192,40],"m":"inc","o":"patch_write_hi","oa":10432},{"a":10410,"l":"b_28AA","t":"code","b":[172,203,39],"m":"ldy","o":"a_27CB","oa":10187,"x":[10405]},{"a":10413,"t":"code","b":[136],"m":"dey"},{"a":10414,"l":"b_28AE","t":"code","b":[174,201,39],"m":"ldx","o":"a_27C9","oa":10185,"x":[10471]},{"a":10417,"t":"code","b":[202],"m":"dex"},{"a":10418,"l":"b_28B2","t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27,"x":[10434]},{"a":10420,"t":"code","b":[208,5],"m":"bne","o":"b_28BB","oa":10427},{"a":10422,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10424,"t":"code","b":[76,190,40],"m":"jmp","o":"j_28BE","oa":10430},{"a":10427,"l":"b_28BB","t":"code","b":[189,255,255],"m":"lda","o":"$FFFF,x","oa":65535,"x":[10420]},{"a":10428,"t":"note","l":"patch_read_lo","c":"The address the patch is read from, written into this LDA; $28BF the address written to, in the STA","note":"inside the item at $28BB","x":[10373,10386,10389,10437,10442]},{"a":10429,"t":"note","l":"patch_read_hi","c":"The high byte of the address the patch is read from, in the LDA's operand","note":"inside the item at $28BB","x":[10381,10394,10445,10450]},{"a":10430,"l":"j_28BE","t":"code","b":[157,255,255],"m":"sta","o":"$FFFF,x","oa":65535,"x":[10424]},{"a":10431,"t":"note","l":"patch_write_lo","c":"The low byte of the address the patch is written to, in the STA's operand","note":"inside the item at $28BE","x":[10356,10399,10402,10454,10459]},{"a":10432,"t":"note","l":"patch_write_hi","c":"The high byte of that address. After each row both addresses move on 40 bytes, a screen row, until the patch's rows are done","note":"inside the item at $28BE","x":[10364,10407,10462,10467]},{"a":10433,"t":"code","b":[202],"m":"dex"},{"a":10434,"t":"code","b":[16,238],"m":"bpl","o":"b_28B2","oa":10418},{"a":10436,"t":"code","b":[24],"m":"clc"},{"a":10437,"t":"code","b":[173,188,40],"m":"lda","o":"patch_read_lo","oa":10428},{"a":10440,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":10442,"t":"code","b":[141,188,40],"m":"sta","o":"patch_read_lo","oa":10428},{"a":10445,"t":"code","b":[173,189,40],"m":"lda","o":"patch_read_hi","oa":10429},{"a":10448,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":10450,"t":"code","b":[141,189,40],"m":"sta","o":"patch_read_hi","oa":10429},{"a":10453,"t":"code","b":[24],"m":"clc"},{"a":10454,"t":"code","b":[173,191,40],"m":"lda","o":"patch_write_lo","oa":10431},{"a":10457,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":10459,"t":"code","b":[141,191,40],"m":"sta","o":"patch_write_lo","oa":10431},{"a":10462,"t":"code","b":[173,192,40],"m":"lda","o":"patch_write_hi","oa":10432},{"a":10465,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":10467,"t":"code","b":[141,192,40],"m":"sta","o":"patch_write_hi","oa":10432},{"a":10470,"t":"code","b":[136],"m":"dey"},{"a":10471,"t":"code","b":[16,197],"m":"bpl","o":"b_28AE","oa":10414},{"a":10473,"t":"code","b":[96],"m":"rts"},{"a":10474,"l":"walk_all_actors","c":"Each pass of the main loop while a room is shown: one step of walking for each actor from 12 down to 1 that has a walk slot (walk_actor_step)","t":"code","b":[169,12],"m":"lda","o":"#$0C","x":[1397]},{"a":10476,"t":"code","b":[141,55,42],"m":"sta","o":"a_2A37","oa":10807},{"a":10479,"l":"b_28EF","t":"code","b":[174,55,42],"m":"ldx","o":"a_2A37","oa":10807,"x":[10497]},{"a":10482,"t":"code","b":[134,229],"m":"stx","o":"zpa_E5","oa":229},{"a":10484,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":10487,"t":"code","b":[48,5],"m":"bmi","o":"b_28FE","oa":10494},{"a":10489,"t":"code","b":[133,197],"m":"sta","o":"zpa_C5","oa":197},{"a":10491,"t":"code","b":[32,66,21],"m":"jsr","o":"walk_actor_step","oa":5442},{"a":10494,"l":"b_28FE","t":"code","b":[206,55,42],"m":"dec","o":"a_2A37","oa":10807,"x":[10487]},{"a":10497,"t":"code","b":[208,236],"m":"bne","o":"b_28EF","oa":10479},{"a":10499,"t":"code","b":[96],"m":"rts"},{"a":10500,"l":"draw_all_actors","c":"Each pass of the main loop while a room is shown: for each actor from 12 down to 1 with a costume and a walk slot, checks whether it is on the screen (check_on_screen) and, when its slot is due to be redrawn ($FD22), places its sprite (actor_sprite_position, assign_sprites) and, when it is on the screen, draws its next frame (draw_actor); then swaps the sprite buffer ($FC0E) for the next frame","t":"code","b":[169,12],"m":"lda","o":"#$0C","x":[1471]},{"a":10502,"t":"code","b":[141,55,42],"m":"sta","o":"a_2A37","oa":10807},{"a":10505,"l":"b_2909","t":"code","b":[174,55,42],"m":"ldx","o":"a_2A37","oa":10807,"x":[10555]},{"a":10508,"t":"code","b":[134,229],"m":"stx","o":"zpa_E5","oa":229},{"a":10510,"t":"code","b":[189,144,255],"m":"lda","o":"actor_costume,x","oa":65424},{"a":10513,"t":"code","b":[240,37],"m":"beq","o":"b_2938","oa":10552},{"a":10515,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":10518,"t":"code","b":[48,32],"m":"bmi","o":"b_2938","oa":10552},{"a":10520,"t":"code","b":[133,197],"m":"sta","o":"zpa_C5","oa":197},{"a":10522,"t":"code","b":[170],"m":"tax"},{"a":10523,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10525,"t":"code","b":[157,30,253],"m":"sta","o":"f_FD1E,x","oa":64798},{"a":10528,"t":"code","b":[32,169,53],"m":"jsr","o":"check_on_screen","oa":13737},{"a":10531,"t":"code","b":[189,34,253],"m":"lda","o":"f_FD22,x","oa":64802},{"a":10534,"t":"code","b":[240,16],"m":"beq","o":"b_2938","oa":10552},{"a":10536,"t":"code","b":[32,48,23],"m":"jsr","o":"actor_sprite_position","oa":5936},{"a":10539,"t":"code","b":[32,145,52],"m":"jsr","o":"assign_sprites","oa":13457},{"a":10542,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":10544,"t":"code","b":[189,30,253],"m":"lda","o":"f_FD1E,x","oa":64798},{"a":10547,"t":"code","b":[240,3],"m":"beq","o":"b_2938","oa":10552},{"a":10549,"t":"code","b":[32,140,29],"m":"jsr","o":"draw_actor","oa":7564},{"a":10552,"l":"b_2938","t":"code","b":[206,55,42],"m":"dec","o":"a_2A37","oa":10807,"x":[10513,10518,10534,10547]},{"a":10555,"t":"code","b":[208,204],"m":"bne","o":"b_2909","oa":10505},{"a":10557,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":10559,"t":"code","b":[77,14,252],"m":"eor","o":"a_FC0E","oa":64526},{"a":10562,"t":"code","b":[141,14,252],"m":"sta","o":"a_FC0E","oa":64526},{"a":10565,"t":"code","b":[96],"m":"rts"},{"a":10566,"l":"actor_leaves_room","c":"Takes actor X out of the shown room: its costume's use count goes down, it keeps the slot's position, and the walk slot is freed ($FD56 and $FD4E set to $FF), with its sprite taken off ($3491)","t":"code","b":[189,144,255],"m":"lda","o":"actor_costume,x","oa":65424,"x":[8611,10831,24873]},{"a":10569,"t":"code","b":[168],"m":"tay"},{"a":10570,"t":"code","b":[185,191,114],"m":"lda","o":"f_72BF,y","oa":29375},{"a":10573,"t":"code","b":[56],"m":"sec"},{"a":10574,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":10576,"t":"code","b":[153,191,114],"m":"sta","o":"f_72BF,y","oa":29375},{"a":10579,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":10582,"t":"code","b":[168],"m":"tay"},{"a":10583,"t":"code","b":[185,230,252],"m":"lda","o":"f_FCE6,y","oa":64742},{"a":10586,"t":"code","b":[157,183,255],"m":"sta","o":"actor_x,x","oa":65463},{"a":10589,"t":"code","b":[185,234,252],"m":"lda","o":"f_FCEA,y","oa":64746},{"a":10592,"t":"code","b":[157,170,255],"m":"sta","o":"f_FFAA,x","oa":65450},{"a":10595,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10597,"t":"code","b":[153,30,253],"m":"sta","o":"f_FD1E,y","oa":64798},{"a":10600,"t":"code","b":[153,82,253],"m":"sta","o":"f_FD52,y","oa":64850},{"a":10603,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":10605,"t":"code","b":[157,86,253],"m":"sta","o":"f_FD56,x","oa":64854},{"a":10608,"t":"code","b":[153,78,253],"m":"sta","o":"f_FD4E,y","oa":64846},{"a":10611,"t":"code","b":[32,145,52],"m":"jsr","o":"assign_sprites","oa":13457},{"a":10614,"t":"code","b":[96],"m":"rts"},{"a":10615,"l":"actor_enters_room","c":"Gives actor X a walk slot in the shown room, the first free of the four ($FD4E); when all four are taken it is fatal error 1 (the border flashes). Does nothing while no room is shown","t":"code","b":[173,3,105],"m":"lda","o":"current_room","oa":26883,"x":[8626,11928,24883]},{"a":10618,"t":"code","b":[208,1],"m":"bne","o":"b_297D","oa":10621},{"a":10620,"t":"code","b":[96],"m":"rts"},{"a":10621,"l":"b_297D","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[10618]},{"a":10623,"l":"b_297F","t":"code","b":[185,78,253],"m":"lda","o":"f_FD4E,y","oa":64846,"x":[10635]},{"a":10626,"t":"code","b":[16,4],"m":"bpl","o":"b_2988","oa":10632},{"a":10628,"t":"code","b":[32,155,41],"m":"jsr","o":"take_walk_slot","oa":10651},{"a":10631,"t":"code","b":[96],"m":"rts"},{"a":10632,"l":"b_2988","t":"code","b":[200],"m":"iny","x":[10626]},{"a":10633,"t":"code","b":[192,4],"m":"cpy","o":"#$04"},{"a":10635,"t":"code","b":[208,242],"m":"bne","o":"b_297F","oa":10623},{"a":10637,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":10639,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":10641,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":10643,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":10645,"l":"j_2995","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[10648]},{"a":10648,"t":"code","b":[76,149,41],"m":"jmp","o":"j_2995","oa":10645},{"a":10651,"l":"take_walk_slot","c":"Sets up slot Y for actor X: the actor's position moved into the nearest walk box (adjust_to_box) and copied to the slot, its box and the box's mask ($FD1A), walking cleared and four redraws asked for; its costume's use count goes up and the costume is loaded if it is not in memory ($2EA3); every limb's state is cleared and the actor is set standing, with its head and talking animations, for its direction (its direction plus 4, 8 and $10)","t":"code","b":[138],"m":"txa","x":[10628]},{"a":10652,"t":"code","b":[153,78,253],"m":"sta","o":"f_FD4E,y","oa":64846},{"a":10655,"t":"code","b":[132,197],"m":"sty","o":"zpa_C5","oa":197},{"a":10657,"t":"code","b":[152],"m":"tya"},{"a":10658,"t":"code","b":[157,86,253],"m":"sta","o":"f_FD56,x","oa":64854},{"a":10661,"t":"code","b":[134,229],"m":"stx","o":"zpa_E5","oa":229},{"a":10663,"t":"code","b":[189,183,255],"m":"lda","o":"actor_x,x","oa":65463},{"a":10666,"t":"code","b":[141,51,252],"m":"sta","o":"a_FC33","oa":64563},{"a":10669,"t":"code","b":[189,170,255],"m":"lda","o":"f_FFAA,x","oa":65450},{"a":10672,"t":"code","b":[141,52,252],"m":"sta","o":"a_FC34","oa":64564},{"a":10675,"t":"code","b":[173,3,105],"m":"lda","o":"current_room","oa":26883},{"a":10678,"t":"code","b":[141,53,252],"m":"sta","o":"a_FC35","oa":64565},{"a":10681,"t":"code","b":[32,220,23],"m":"jsr","o":"adjust_to_box","oa":6108},{"a":10684,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":10686,"t":"code","b":[164,197],"m":"ldy","o":"zpa_C5","oa":197},{"a":10688,"t":"code","b":[173,51,252],"m":"lda","o":"a_FC33","oa":64563},{"a":10691,"t":"code","b":[157,183,255],"m":"sta","o":"actor_x,x","oa":65463},{"a":10694,"t":"code","b":[153,230,252],"m":"sta","o":"f_FCE6,y","oa":64742},{"a":10697,"t":"code","b":[173,52,252],"m":"lda","o":"a_FC34","oa":64564},{"a":10700,"t":"code","b":[157,170,255],"m":"sta","o":"f_FFAA,x","oa":65450},{"a":10703,"t":"code","b":[153,234,252],"m":"sta","o":"f_FCEA,y","oa":64746},{"a":10706,"t":"code","b":[173,106,38],"m":"lda","o":"a_266A","oa":9834},{"a":10709,"t":"code","b":[153,6,253],"m":"sta","o":"f_FD06,y","oa":64774},{"a":10712,"t":"code","b":[32,204,36],"m":"jsr","o":"box_mask","oa":9420},{"a":10715,"t":"code","b":[153,26,253],"m":"sta","o":"walk_masked,y","oa":64794},{"a":10718,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10720,"t":"code","b":[153,246,252],"m":"sta","o":"f_FCF6,y","oa":64758},{"a":10723,"t":"code","b":[153,82,253],"m":"sta","o":"f_FD52,y","oa":64850},{"a":10726,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":10728,"t":"code","b":[153,34,253],"m":"sta","o":"f_FD22,y","oa":64802},{"a":10731,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":10733,"t":"code","b":[189,144,255],"m":"lda","o":"actor_costume,x","oa":65424},{"a":10736,"t":"code","b":[170],"m":"tax"},{"a":10737,"t":"code","b":[254,191,114],"m":"inc","o":"f_72BF,x","oa":29375},{"a":10740,"t":"code","b":[32,163,46],"m":"jsr","o":"load_costume","oa":11939},{"a":10743,"t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229},{"a":10745,"t":"code","b":[190,86,253],"m":"ldx","o":"f_FD56,y","oa":64854},{"a":10748,"t":"code","b":[48,56],"m":"bmi","o":"r_2A36","oa":10806},{"a":10750,"t":"code","b":[188,129,32],"m":"ldy","o":"f_2081,x","oa":8321},{"a":10753,"t":"code","b":[162,31],"m":"ldx","o":"#$1F"},{"a":10755,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":10757,"l":"b_2A05","t":"code","b":[153,90,252],"m":"sta","o":"f_FC5A,y","oa":64602,"x":[10762]},{"a":10760,"t":"code","b":[136],"m":"dey"},{"a":10761,"t":"code","b":[202],"m":"dex"},{"a":10762,"t":"code","b":[16,249],"m":"bpl","o":"b_2A05","oa":10757},{"a":10764,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":10766,"t":"code","b":[189,222,255],"m":"lda","o":"actor_facing,x","oa":65502},{"a":10769,"t":"code","b":[24],"m":"clc"},{"a":10770,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":10772,"t":"code","b":[141,27,252],"m":"sta","o":"a_FC1B","oa":64539},{"a":10775,"t":"code","b":[32,138,32],"m":"jsr","o":"start_animation","oa":8330},{"a":10778,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":10780,"t":"code","b":[189,222,255],"m":"lda","o":"actor_facing,x","oa":65502},{"a":10783,"t":"code","b":[24],"m":"clc"},{"a":10784,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":10786,"t":"code","b":[141,27,252],"m":"sta","o":"a_FC1B","oa":64539},{"a":10789,"t":"code","b":[32,138,32],"m":"jsr","o":"start_animation","oa":8330},{"a":10792,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":10794,"t":"code","b":[189,222,255],"m":"lda","o":"actor_facing,x","oa":65502},{"a":10797,"t":"code","b":[24],"m":"clc"},{"a":10798,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":10800,"t":"code","b":[141,27,252],"m":"sta","o":"a_FC1B","oa":64539},{"a":10803,"t":"code","b":[32,138,32],"m":"jsr","o":"start_animation","oa":8330},{"a":10806,"l":"r_2A36","t":"code","b":[96],"m":"rts","x":[10748]},{"a":10807,"l":"a_2A37","c":"The actor walk_all_actors and draw_all_actors are on","t":"byte","b":[0],"x":[10476,10479,10494,10502,10505,10552]},{"a":10808,"l":"enter_room","c":"Goes to room X: runs the room's exit script, stops the room's scripts, clears the sentence, takes every actor out of the room and the cursor's things off ($3116), sets variable 4 to the room, turns the picture off while it loads the room and its graphics (load_room), lets the camera go from column 20 to the room's width less 20 (variables 23 and 24), puts in the actors who are in that room, loads the room's sounds and scripts, runs its entry script and global script 5, asks for the picture to be drawn ($060D) and turns the screen on","t":"code","b":[138],"m":"txa","x":[21633,21710,23436,24415]},{"a":10809,"t":"code","b":[72],"m":"pha"},{"a":10810,"t":"code","b":[32,165,47],"m":"jsr","o":"run_exit_script","oa":12197},{"a":10813,"t":"code","b":[32,57,77],"m":"jsr","o":"stop_room_scripts","oa":19769},{"a":10816,"t":"code","b":[32,101,92],"m":"jsr","o":"reset_sentence","oa":23653},{"a":10819,"t":"code","b":[32,22,49],"m":"jsr","o":"clear_on_screen","oa":12566},{"a":10822,"t":"code","b":[162,12],"m":"ldx","o":"#$0C"},{"a":10824,"l":"b_2A48","t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854,"x":[10837]},{"a":10827,"t":"code","b":[48,7],"m":"bmi","o":"b_2A54","oa":10836},{"a":10829,"t":"code","b":[138],"m":"txa"},{"a":10830,"t":"code","b":[72],"m":"pha"},{"a":10831,"t":"code","b":[32,70,41],"m":"jsr","o":"actor_leaves_room","oa":10566},{"a":10834,"t":"code","b":[104],"m":"pla"},{"a":10835,"t":"code","b":[170],"m":"tax"},{"a":10836,"l":"b_2A54","t":"code","b":[202],"m":"dex","x":[10827]},{"a":10837,"t":"code","b":[208,241],"m":"bne","o":"b_2A48","oa":10824},{"a":10839,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10841,"t":"code","b":[141,186,51],"m":"sta","o":"a_33BA","oa":13242},{"a":10844,"t":"code","b":[104],"m":"pla"},{"a":10845,"t":"code","b":[170],"m":"tax"},{"a":10846,"t":"code","b":[142,114,254],"m":"stx","o":"a_FE72","oa":65138},{"a":10849,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10851,"t":"code","b":[141,115,253],"m":"sta","o":"a_FD73","oa":64883},{"a":10854,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":10856,"t":"code","b":[141,194,203],"m":"sta","o":"camera_x","oa":52162},{"a":10859,"t":"code","b":[32,243,19],"m":"jsr","o":"video_off","oa":5107},{"a":10862,"t":"code","b":[32,150,42],"m":"jsr","o":"load_room","oa":10902},{"a":10865,"t":"code","b":[173,242,104],"m":"lda","o":"a_68F2","oa":26866},{"a":10868,"t":"code","b":[56],"m":"sec"},{"a":10869,"t":"code","b":[233,20],"m":"sbc","o":"#$14"},{"a":10871,"t":"code","b":[141,134,254],"m":"sta","o":"a_FE86","oa":65158},{"a":10874,"t":"code","b":[169,20],"m":"lda","o":"#$14"},{"a":10876,"t":"code","b":[141,133,254],"m":"sta","o":"a_FE85","oa":65157},{"a":10879,"t":"code","b":[32,132,46],"m":"jsr","o":"put_actors_in_room","oa":11908},{"a":10882,"t":"code","b":[32,220,43],"m":"jsr","o":"load_room_resources","oa":11228},{"a":10885,"t":"code","b":[32,123,47],"m":"jsr","o":"run_entry_script","oa":12155},{"a":10888,"t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":10890,"t":"code","b":[32,159,77],"m":"jsr","o":"start_script","oa":19871},{"a":10893,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":10895,"t":"code","b":[141,13,6],"m":"sta","o":"a_060D","oa":1549},{"a":10898,"t":"code","b":[32,47,20],"m":"jsr","o":"video_on","oa":5167},{"a":10901,"t":"code","b":[96],"m":"rts"},{"a":10902,"l":"load_room","c":"Marks the last room's resource as no longer shown: its count in $7344 becomes 1 ($81 when it is locked), so the heap may throw it out. Makes room X the shown one ($6903, variable 4) and its resource ($6902, variable 36: rooms numbered below 0 use the one the table at $7265 gives). Frees the last room's picture and mask set ($77B2 and $77B3). Room 0 is no room: no scripts, and it returns from enter_room too. Otherwise loads the room (load_room_resource), sets its count to 0, the shown room's ($80 when it is locked), reads its header and objects, sets up its colours and characters ($2D17) and its column index ($38D9), and adds one to the count of every room in memory whose count, lock bit aside, is not 0","t":"code","b":[172,2,105],"m":"ldy","o":"room_resource","oa":26882,"x":[10862]},{"a":10905,"t":"code","b":[240,12],"m":"beq","o":"b_2AA7","oa":10919},{"a":10907,"t":"code","b":[185,68,115],"m":"lda","o":"room_counts,y","oa":29508},{"a":10910,"t":"code","b":[16,5],"m":"bpl","o":"b_2AA5","oa":10917},{"a":10912,"t":"code","b":[169,129],"m":"lda","o":"#$81"},{"a":10914,"t":"code","b":[76,167,42],"m":"jmp","o":"b_2AA7","oa":10919},{"a":10917,"l":"b_2AA5","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[10910]},{"a":10919,"l":"b_2AA7","t":"code","b":[153,68,115],"m":"sta","o":"room_counts,y","oa":29508,"x":[10905,10914]},{"a":10922,"t":"code","b":[142,3,105],"m":"stx","o":"current_room","oa":26883},{"a":10925,"t":"code","b":[142,114,254],"m":"stx","o":"a_FE72","oa":65138},{"a":10928,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10930,"t":"code","b":[141,115,253],"m":"sta","o":"a_FD73","oa":64883},{"a":10933,"t":"code","b":[224,0],"m":"cpx","o":"#$00"},{"a":10935,"t":"code","b":[16,4],"m":"bpl","o":"b_2ABD","oa":10941},{"a":10937,"t":"code","b":[189,101,114],"m":"lda","o":"f_7265,x","oa":29285},{"a":10940,"t":"code","b":[170],"m":"tax"},{"a":10941,"l":"b_2ABD","t":"code","b":[142,2,105],"m":"stx","o":"room_resource","oa":26882,"x":[10935]},{"a":10944,"t":"code","b":[142,146,254],"m":"stx","o":"a_FE92","oa":65170},{"a":10947,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10949,"t":"code","b":[141,147,253],"m":"sta","o":"a_FD93","oa":64915},{"a":10952,"t":"code","b":[174,178,119],"m":"ldx","o":"a_77B2","oa":30642},{"a":10955,"t":"code","b":[172,143,119],"m":"ldy","o":"a_778F","oa":30607},{"a":10958,"t":"code","b":[240,3],"m":"beq","o":"b_2AD3","oa":10963},{"a":10960,"t":"code","b":[32,128,212],"m":"jsr","o":"free_block","oa":54400},{"a":10963,"l":"b_2AD3","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[10958]},{"a":10965,"t":"code","b":[141,143,119],"m":"sta","o":"a_778F","oa":30607},{"a":10968,"t":"code","b":[174,179,119],"m":"ldx","o":"a_77B3","oa":30643},{"a":10971,"t":"code","b":[172,144,119],"m":"ldy","o":"a_7790","oa":30608},{"a":10974,"t":"code","b":[240,3],"m":"beq","o":"b_2AE3","oa":10979},{"a":10976,"t":"code","b":[32,128,212],"m":"jsr","o":"free_block","oa":54400},{"a":10979,"l":"b_2AE3","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[10974]},{"a":10981,"t":"code","b":[141,144,119],"m":"sta","o":"a_7790","oa":30608},{"a":10984,"t":"code","b":[174,3,105],"m":"ldx","o":"current_room","oa":26883},{"a":10987,"t":"code","b":[208,17],"m":"bne","o":"b_2AFE","oa":11006},{"a":10989,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10991,"t":"code","b":[141,16,105],"m":"sta","o":"a_6910","oa":26896},{"a":10994,"t":"code","b":[141,17,105],"m":"sta","o":"a_6911","oa":26897},{"a":10997,"t":"code","b":[141,18,105],"m":"sta","o":"a_6912","oa":26898},{"a":11000,"t":"code","b":[141,19,105],"m":"sta","o":"a_6913","oa":26899},{"a":11003,"t":"code","b":[104],"m":"pla"},{"a":11004,"t":"code","b":[104],"m":"pla"},{"a":11005,"t":"code","b":[96],"m":"rts"},{"a":11006,"l":"b_2AFE","t":"code","b":[32,46,46],"m":"jsr","o":"load_room_resource","oa":11822,"x":[10987]},{"a":11009,"t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882},{"a":11012,"t":"code","b":[189,68,115],"m":"lda","o":"room_counts,x","oa":29508},{"a":11015,"t":"code","b":[16,5],"m":"bpl","o":"b_2B0E","oa":11022},{"a":11017,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":11019,"t":"code","b":[76,16,43],"m":"jmp","o":"j_2B10","oa":11024},{"a":11022,"l":"b_2B0E","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[11015]},{"a":11024,"l":"j_2B10","t":"code","b":[157,68,115],"m":"sta","o":"room_counts,x","oa":29508,"x":[11019]},{"a":11027,"t":"code","b":[32,57,43],"m":"jsr","o":"read_room_header","oa":11065},{"a":11030,"t":"code","b":[32,56,44],"m":"jsr","o":"read_room_objects","oa":11320},{"a":11033,"t":"code","b":[32,23,45],"m":"jsr","o":"setup_room_graphics","oa":11543},{"a":11036,"t":"code","b":[32,217,56],"m":"jsr","o":"build_column_index","oa":14553},{"a":11039,"t":"code","b":[162,58],"m":"ldx","o":"#$3A"},{"a":11041,"l":"b_2B21","t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567,"x":[11059]},{"a":11044,"t":"code","b":[240,12],"m":"beq","o":"b_2B32","oa":11058},{"a":11046,"t":"code","b":[189,68,115],"m":"lda","o":"room_counts,x","oa":29508},{"a":11049,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":11051,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":11053,"t":"code","b":[240,3],"m":"beq","o":"b_2B32","oa":11058},{"a":11055,"t":"code","b":[254,68,115],"m":"inc","o":"room_counts,x","oa":29508},{"a":11058,"l":"b_2B32","t":"code","b":[202],"m":"dex","x":[11044,11053]},{"a":11059,"t":"code","b":[208,236],"m":"bne","o":"b_2B21","oa":11041},{"a":11061,"t":"code","b":[174,3,105],"m":"ldx","o":"current_room","oa":26883},{"a":11064,"t":"code","b":[96],"m":"rts"},{"a":11065,"l":"read_room_header","c":"Reads the room's header, past the four-byte resource header: its width in columns ($68F2), its height, its four colours ($68F4 the background and $68F5-$68F7 the three shared ones), the offsets of its parts ($68F8 the character set, $68FA the picture, $68FC the colours, $68FE the mask, $6900 the mask's characters), the exit and entry scripts' offsets ($6910, $6912), and the four common bytes the picture's, the colours' and the mask's streams start with ($6904, $6908, $690C), for decoding them a column at a time later","t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882,"x":[11027]},{"a":11068,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":11071,"t":"code","b":[141,21,105],"m":"sta","o":"a_6915","oa":26901},{"a":11074,"t":"code","b":[133,177],"m":"sta","o":"zpa_B1","oa":177},{"a":11076,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":11079,"t":"code","b":[141,20,105],"m":"sta","o":"a_6914","oa":26900},{"a":11082,"t":"code","b":[133,176],"m":"sta","o":"zpa_B0","oa":176},{"a":11084,"t":"code","b":[24],"m":"clc"},{"a":11085,"t":"code","b":[165,176],"m":"lda","o":"zpa_B0","oa":176},{"a":11087,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":11089,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":11091,"t":"code","b":[165,177],"m":"lda","o":"zpa_B1","oa":177},{"a":11093,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":11095,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":11097,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":11099,"l":"b_2B5B","t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21,"x":[11107]},{"a":11101,"t":"code","b":[153,242,104],"m":"sta","o":"a_68F2,y","oa":26866},{"a":11104,"t":"code","b":[200],"m":"iny"},{"a":11105,"t":"code","b":[192,6],"m":"cpy","o":"#$06"},{"a":11107,"t":"code","b":[208,246],"m":"bne","o":"b_2B5B","oa":11099},{"a":11109,"t":"code","b":[160,6],"m":"ldy","o":"#$06"},{"a":11111,"l":"b_2B67","t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21,"x":[11125]},{"a":11113,"t":"code","b":[153,242,104],"m":"sta","o":"a_68F2,y","oa":26866},{"a":11116,"t":"code","b":[200],"m":"iny"},{"a":11117,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11119,"t":"code","b":[153,242,104],"m":"sta","o":"a_68F2,y","oa":26866},{"a":11122,"t":"code","b":[200],"m":"iny"},{"a":11123,"t":"code","b":[192,16],"m":"cpy","o":"#$10"},{"a":11125,"t":"code","b":[208,240],"m":"bne","o":"b_2B67","oa":11111},{"a":11127,"t":"code","b":[160,20],"m":"ldy","o":"#$14"},{"a":11129,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11131,"t":"code","b":[141,16,105],"m":"sta","o":"a_6910","oa":26896},{"a":11134,"t":"code","b":[200],"m":"iny"},{"a":11135,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11137,"t":"code","b":[141,17,105],"m":"sta","o":"a_6911","oa":26897},{"a":11140,"t":"code","b":[200],"m":"iny"},{"a":11141,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11143,"t":"code","b":[141,18,105],"m":"sta","o":"a_6912","oa":26898},{"a":11146,"t":"code","b":[200],"m":"iny"},{"a":11147,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11149,"t":"code","b":[141,19,105],"m":"sta","o":"a_6913","oa":26899},{"a":11152,"t":"code","b":[24],"m":"clc"},{"a":11153,"t":"code","b":[165,176],"m":"lda","o":"zpa_B0","oa":176},{"a":11155,"t":"code","b":[109,250,104],"m":"adc","o":"a_68FA","oa":26874},{"a":11158,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":11160,"t":"code","b":[165,177],"m":"lda","o":"zpa_B1","oa":177},{"a":11162,"t":"code","b":[109,251,104],"m":"adc","o":"a_68FB","oa":26875},{"a":11165,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":11167,"t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":11169,"l":"b_2BA1","t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21,"x":[11175]},{"a":11171,"t":"code","b":[153,4,105],"m":"sta","o":"f_6904,y","oa":26884},{"a":11174,"t":"code","b":[136],"m":"dey"},{"a":11175,"t":"code","b":[16,248],"m":"bpl","o":"b_2BA1","oa":11169},{"a":11177,"t":"code","b":[24],"m":"clc"},{"a":11178,"t":"code","b":[165,176],"m":"lda","o":"zpa_B0","oa":176},{"a":11180,"t":"code","b":[109,252,104],"m":"adc","o":"a_68FC","oa":26876},{"a":11183,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":11185,"t":"code","b":[165,177],"m":"lda","o":"zpa_B1","oa":177},{"a":11187,"t":"code","b":[109,253,104],"m":"adc","o":"a_68FD","oa":26877},{"a":11190,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":11192,"t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":11194,"l":"b_2BBA","t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21,"x":[11200]},{"a":11196,"t":"code","b":[153,8,105],"m":"sta","o":"f_6908,y","oa":26888},{"a":11199,"t":"code","b":[136],"m":"dey"},{"a":11200,"t":"code","b":[16,248],"m":"bpl","o":"b_2BBA","oa":11194},{"a":11202,"t":"code","b":[24],"m":"clc"},{"a":11203,"t":"code","b":[165,176],"m":"lda","o":"zpa_B0","oa":176},{"a":11205,"t":"code","b":[109,254,104],"m":"adc","o":"a_68FE","oa":26878},{"a":11208,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":11210,"t":"code","b":[165,177],"m":"lda","o":"zpa_B1","oa":177},{"a":11212,"t":"code","b":[109,255,104],"m":"adc","o":"a_68FF","oa":26879},{"a":11215,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":11217,"t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":11219,"l":"b_2BD3","t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21,"x":[11225]},{"a":11221,"t":"code","b":[153,12,105],"m":"sta","o":"f_690C,y","oa":26892},{"a":11224,"t":"code","b":[136],"m":"dey"},{"a":11225,"t":"code","b":[16,248],"m":"bpl","o":"b_2BD3","oa":11219},{"a":11227,"t":"code","b":[96],"m":"rts"},{"a":11228,"l":"load_room_resources","c":"Loads the sounds and then the scripts the room lists after its objects: the counts are its header's bytes $12 and $13 (load_sound, load_script)","t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882,"x":[10882]},{"a":11231,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":11234,"t":"code","b":[24],"m":"clc"},{"a":11235,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":11237,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":11239,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":11242,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":11244,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":11246,"t":"code","b":[160,18],"m":"ldy","o":"#$12"},{"a":11248,"t":"code","b":[177,25],"m":"lda","o":"(zpa_19),y","oa":25},{"a":11250,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":11252,"t":"code","b":[160,19],"m":"ldy","o":"#$13"},{"a":11254,"t":"code","b":[177,25],"m":"lda","o":"(zpa_19),y","oa":25},{"a":11256,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":11258,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":11260,"t":"code","b":[165,23],"m":"lda","o":"zpa_17","oa":23},{"a":11262,"t":"code","b":[240,13],"m":"beq","o":"b_2C0D","oa":11277},{"a":11264,"l":"b_2C00","t":"code","b":[32,31,44],"m":"jsr","o":"room_resource_list","oa":11295,"x":[11275]},{"a":11267,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11269,"t":"code","b":[32,228,46],"m":"jsr","o":"load_sound","oa":12004},{"a":11272,"t":"code","b":[200],"m":"iny"},{"a":11273,"t":"code","b":[198,23],"m":"dec","o":"zpa_17","oa":23},{"a":11275,"t":"code","b":[208,243],"m":"bne","o":"b_2C00","oa":11264},{"a":11277,"l":"b_2C0D","t":"code","b":[165,24],"m":"lda","o":"zpa_18","oa":24,"x":[11262]},{"a":11279,"t":"code","b":[240,13],"m":"beq","o":"r_2C1E","oa":11294},{"a":11281,"l":"b_2C11","t":"code","b":[32,31,44],"m":"jsr","o":"room_resource_list","oa":11295,"x":[11292]},{"a":11284,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11286,"t":"code","b":[32,39,47],"m":"jsr","o":"load_script","oa":12071},{"a":11289,"t":"code","b":[200],"m":"iny"},{"a":11290,"t":"code","b":[198,24],"m":"dec","o":"zpa_18","oa":24},{"a":11292,"t":"code","b":[208,243],"m":"bne","o":"b_2C11","oa":11281},{"a":11294,"l":"r_2C1E","t":"code","b":[96],"m":"rts","x":[11279]},{"a":11295,"l":"room_resource_list","c":"$15/$16: the room's list of sounds and scripts, after its objects' offsets (four bytes an object, from offset $1C)","t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882,"x":[11264,11281]},{"a":11298,"t":"code","b":[173,22,105],"m":"lda","o":"a_6916","oa":26902},{"a":11301,"t":"code","b":[10],"m":"asl","o":"a"},{"a":11302,"t":"code","b":[10],"m":"asl","o":"a"},{"a":11303,"t":"code","b":[24],"m":"clc"},{"a":11304,"t":"code","b":[105,28],"m":"adc","o":"#$1C"},{"a":11306,"t":"code","b":[24],"m":"clc"},{"a":11307,"t":"code","b":[125,186,115],"m":"adc","o":"room_address_lo,x","oa":29626},{"a":11310,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":11312,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":11315,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":11317,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":11319,"t":"code","b":[96],"m":"rts"},{"a":11320,"l":"read_room_objects","c":"Reads the room's objects (the count at $10, into $6916): the offsets of their pictures ($6A98) and their code ($6ADE), then from each one's code its number ($6A2F, $6A0C), X ($6917), Y ($693A, with bit 7, the state its parent must be in, kept in $6A75), width ($695D), parent ($6A52), where to walk to ($69A3, $69C6), the way to face there ($69E9) and its height ($6980)","t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882,"x":[11030]},{"a":11323,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":11326,"t":"code","b":[133,177],"m":"sta","o":"zpa_B1","oa":177},{"a":11328,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":11331,"t":"code","b":[133,176],"m":"sta","o":"zpa_B0","oa":176},{"a":11333,"t":"code","b":[24],"m":"clc"},{"a":11334,"t":"code","b":[165,176],"m":"lda","o":"zpa_B0","oa":176},{"a":11336,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":11338,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":11340,"t":"code","b":[165,177],"m":"lda","o":"zpa_B1","oa":177},{"a":11342,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":11344,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":11346,"t":"code","b":[160,16],"m":"ldy","o":"#$10"},{"a":11348,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11350,"t":"code","b":[133,29],"m":"sta","o":"zpa_1D","oa":29},{"a":11352,"t":"code","b":[141,22,105],"m":"sta","o":"a_6916","oa":26902},{"a":11355,"t":"code","b":[208,3],"m":"bne","o":"b_2C60","oa":11360},{"a":11357,"t":"code","b":[76,22,45],"m":"jmp","o":"r_2D16","oa":11542},{"a":11360,"l":"b_2C60","t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27,"x":[11355]},{"a":11362,"t":"code","b":[160,24],"m":"ldy","o":"#$18"},{"a":11364,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":11366,"l":"b_2C66","t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21,"x":[11382]},{"a":11368,"t":"code","b":[157,152,106],"m":"sta","o":"f_6A98,x","oa":27288},{"a":11371,"t":"code","b":[200],"m":"iny"},{"a":11372,"t":"code","b":[232],"m":"inx"},{"a":11373,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11375,"t":"code","b":[157,152,106],"m":"sta","o":"f_6A98,x","oa":27288},{"a":11378,"t":"code","b":[200],"m":"iny"},{"a":11379,"t":"code","b":[232],"m":"inx"},{"a":11380,"t":"code","b":[198,27],"m":"dec","o":"zpa_1B","oa":27},{"a":11382,"t":"code","b":[208,238],"m":"bne","o":"b_2C66","oa":11366},{"a":11384,"t":"code","b":[165,29],"m":"lda","o":"zpa_1D","oa":29},{"a":11386,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":11388,"t":"code","b":[165,30],"m":"lda","o":"zpa_1E","oa":30},{"a":11390,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":11392,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":11394,"l":"b_2C82","t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21,"x":[11410]},{"a":11396,"t":"code","b":[157,222,106],"m":"sta","o":"f_6ADE,x","oa":27358},{"a":11399,"t":"code","b":[200],"m":"iny"},{"a":11400,"t":"code","b":[232],"m":"inx"},{"a":11401,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11403,"t":"code","b":[157,222,106],"m":"sta","o":"f_6ADE,x","oa":27358},{"a":11406,"t":"code","b":[200],"m":"iny"},{"a":11407,"t":"code","b":[232],"m":"inx"},{"a":11408,"t":"code","b":[198,27],"m":"dec","o":"zpa_1B","oa":27},{"a":11410,"t":"code","b":[208,238],"m":"bne","o":"b_2C82","oa":11394},{"a":11412,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":11414,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":11416,"l":"b_2C98","t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27,"x":[11540]},{"a":11418,"t":"code","b":[10],"m":"asl","o":"a"},{"a":11419,"t":"code","b":[170],"m":"tax"},{"a":11420,"t":"code","b":[189,222,106],"m":"lda","o":"f_6ADE,x","oa":27358},{"a":11423,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":11425,"t":"code","b":[189,223,106],"m":"lda","o":"f_6ADF,x","oa":27359},{"a":11428,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":11430,"t":"code","b":[24],"m":"clc"},{"a":11431,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":11433,"t":"code","b":[101,176],"m":"adc","o":"zpa_B0","oa":176},{"a":11435,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":11437,"t":"code","b":[165,22],"m":"lda","o":"zpa_16","oa":22},{"a":11439,"t":"code","b":[101,177],"m":"adc","o":"zpa_B1","oa":177},{"a":11441,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":11443,"t":"code","b":[166,27],"m":"ldx","o":"zpa_1B","oa":27},{"a":11445,"t":"code","b":[160,5],"m":"ldy","o":"#$05"},{"a":11447,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11449,"t":"code","b":[157,12,106],"m":"sta","o":"f_6A0C,x","oa":27148},{"a":11452,"t":"code","b":[160,4],"m":"ldy","o":"#$04"},{"a":11454,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11456,"t":"code","b":[157,47,106],"m":"sta","o":"f_6A2F,x","oa":27183},{"a":11459,"t":"code","b":[160,9],"m":"ldy","o":"#$09"},{"a":11461,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11463,"t":"code","b":[157,93,105],"m":"sta","o":"f_695D,x","oa":26973},{"a":11466,"t":"code","b":[160,7],"m":"ldy","o":"#$07"},{"a":11468,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11470,"t":"code","b":[157,23,105],"m":"sta","o":"f_6917,x","oa":26903},{"a":11473,"t":"code","b":[160,8],"m":"ldy","o":"#$08"},{"a":11475,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11477,"t":"code","b":[16,5],"m":"bpl","o":"b_2CDC","oa":11484},{"a":11479,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":11481,"t":"code","b":[76,222,44],"m":"jmp","o":"j_2CDE","oa":11486},{"a":11484,"l":"b_2CDC","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[11477]},{"a":11486,"l":"j_2CDE","t":"code","b":[157,117,106],"m":"sta","o":"f_6A75,x","oa":27253,"x":[11481]},{"a":11489,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11491,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":11493,"t":"code","b":[157,58,105],"m":"sta","o":"f_693A,x","oa":26938},{"a":11496,"t":"code","b":[160,10],"m":"ldy","o":"#$0A"},{"a":11498,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11500,"t":"code","b":[157,82,106],"m":"sta","o":"f_6A52,x","oa":27218},{"a":11503,"t":"code","b":[160,11],"m":"ldy","o":"#$0B"},{"a":11505,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11507,"t":"code","b":[157,163,105],"m":"sta","o":"f_69A3,x","oa":27043},{"a":11510,"t":"code","b":[160,12],"m":"ldy","o":"#$0C"},{"a":11512,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11514,"t":"code","b":[41,31],"m":"and","o":"#$1F"},{"a":11516,"t":"code","b":[157,198,105],"m":"sta","o":"f_69C6,x","oa":27078},{"a":11519,"t":"code","b":[160,13],"m":"ldy","o":"#$0D"},{"a":11521,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":11523,"t":"code","b":[72],"m":"pha"},{"a":11524,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":11526,"t":"code","b":[157,233,105],"m":"sta","o":"f_69E9,x","oa":27113},{"a":11529,"t":"code","b":[104],"m":"pla"},{"a":11530,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":11531,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":11532,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":11533,"t":"code","b":[157,128,105],"m":"sta","o":"f_6980,x","oa":27008},{"a":11536,"t":"code","b":[230,27],"m":"inc","o":"zpa_1B","oa":27},{"a":11538,"t":"code","b":[198,29],"m":"dec","o":"zpa_1D","oa":29},{"a":11540,"t":"code","b":[208,130],"m":"bne","o":"b_2C98","oa":11416},{"a":11542,"l":"r_2D16","t":"code","b":[96],"m":"rts","x":[11357]},{"a":11543,"l":"setup_room_graphics","c":"Sets the shared colours ($D022-$D024) and keeps the background's ($7B); decodes the room's character set, 2048 bytes, into the RAM under the I/O chips at $D800; frees the last mask set, and loads the room's mask characters into a heap block of their own ($77B3/$7790), decoding them after the size the stream starts with","t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882,"x":[11033]},{"a":11546,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":11549,"t":"code","b":[133,176],"m":"sta","o":"zpa_B0","oa":176},{"a":11551,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":11554,"t":"code","b":[133,177],"m":"sta","o":"zpa_B1","oa":177},{"a":11556,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":11558,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":11560,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":11562,"l":"b_2D2A","t":"code","b":[189,244,104],"m":"lda","o":"f_68F4,x","oa":26868,"x":[11569]},{"a":11565,"t":"code","b":[157,33,208],"m":"sta","o":"vic_background0,x"},{"a":11568,"t":"code","b":[202],"m":"dex"},{"a":11569,"t":"code","b":[208,247],"m":"bne","o":"b_2D2A","oa":11562},{"a":11571,"t":"code","b":[173,244,104],"m":"lda","o":"f_68F4","oa":26868},{"a":11574,"t":"code","b":[133,123],"m":"sta","o":"zpa_7B","oa":123},{"a":11576,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":11578,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":11580,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11582,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":11584,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":11586,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":11588,"t":"code","b":[24],"m":"clc"},{"a":11589,"t":"code","b":[165,176],"m":"lda","o":"zpa_B0","oa":176},{"a":11591,"t":"code","b":[109,248,104],"m":"adc","o":"a_68F8","oa":26872},{"a":11594,"t":"code","b":[133,38],"m":"sta","o":"zpp_26","oa":38},{"a":11596,"t":"code","b":[165,177],"m":"lda","o":"zpa_B1","oa":177},{"a":11598,"t":"code","b":[109,249,104],"m":"adc","o":"a_68F9","oa":26873},{"a":11601,"t":"code","b":[133,39],"m":"sta","o":"zpa_27","oa":39},{"a":11603,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11605,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":11607,"t":"code","b":[169,216],"m":"lda","o":"#$D8"},{"a":11609,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":11611,"t":"code","b":[32,4,1],"m":"jsr","o":"decode_start","oa":260},{"a":11614,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":11616,"l":"b_2D60","t":"code","b":[32,34,1],"m":"jsr","o":"decode_byte","oa":290,"x":[11639]},{"a":11619,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":11621,"t":"code","b":[230,25],"m":"inc","o":"zpa_19","oa":25},{"a":11623,"t":"code","b":[208,2],"m":"bne","o":"b_2D6B","oa":11627},{"a":11625,"t":"code","b":[230,26],"m":"inc","o":"zpa_1A","oa":26},{"a":11627,"l":"b_2D6B","t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21,"x":[11623]},{"a":11629,"t":"code","b":[208,2],"m":"bne","o":"b_2D71","oa":11633},{"a":11631,"t":"code","b":[198,22],"m":"dec","o":"zpa_16","oa":22},{"a":11633,"l":"b_2D71","t":"code","b":[198,21],"m":"dec","o":"zpa_15","oa":21,"x":[11629]},{"a":11635,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":11637,"t":"code","b":[5,22],"m":"ora","o":"zpa_16","oa":22},{"a":11639,"t":"code","b":[208,231],"m":"bne","o":"b_2D60","oa":11616},{"a":11641,"t":"code","b":[174,179,119],"m":"ldx","o":"a_77B3","oa":30643},{"a":11644,"t":"code","b":[172,144,119],"m":"ldy","o":"a_7790","oa":30608},{"a":11647,"t":"code","b":[240,3],"m":"beq","o":"b_2D84","oa":11652},{"a":11649,"t":"code","b":[32,128,212],"m":"jsr","o":"free_block","oa":54400},{"a":11652,"l":"b_2D84","t":"code","b":[24],"m":"clc","x":[11647]},{"a":11653,"t":"code","b":[165,176],"m":"lda","o":"zpa_B0","oa":176},{"a":11655,"t":"code","b":[109,0,105],"m":"adc","o":"a_6900","oa":26880},{"a":11658,"t":"code","b":[133,38],"m":"sta","o":"zpp_26","oa":38},{"a":11660,"t":"code","b":[165,177],"m":"lda","o":"zpa_B1","oa":177},{"a":11662,"t":"code","b":[109,1,105],"m":"adc","o":"a_6901","oa":26881},{"a":11665,"t":"code","b":[133,39],"m":"sta","o":"zpa_27","oa":39},{"a":11667,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":11669,"t":"code","b":[177,38],"m":"lda","o":"(zpp_26),y","oa":38},{"a":11671,"t":"code","b":[133,29],"m":"sta","o":"zpa_1D","oa":29},{"a":11673,"t":"code","b":[200],"m":"iny"},{"a":11674,"t":"code","b":[177,38],"m":"lda","o":"(zpp_26),y","oa":38},{"a":11676,"t":"code","b":[133,30],"m":"sta","o":"zpa_1E","oa":30},{"a":11678,"t":"code","b":[24],"m":"clc"},{"a":11679,"t":"code","b":[165,29],"m":"lda","o":"zpa_1D","oa":29},{"a":11681,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":11683,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":11685,"t":"code","b":[165,30],"m":"lda","o":"zpa_1E","oa":30},{"a":11687,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":11689,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":11691,"t":"code","b":[166,21],"m":"ldx","o":"zpa_15","oa":21},{"a":11693,"t":"code","b":[164,22],"m":"ldy","o":"zpa_16","oa":22},{"a":11695,"t":"code","b":[32,114,212],"m":"jsr","o":"alloc_block","oa":54386},{"a":11698,"t":"code","b":[134,63],"m":"stx","o":"zpa_3F","oa":63},{"a":11700,"t":"code","b":[132,64],"m":"sty","o":"zpa_40","oa":64},{"a":11702,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":11704,"t":"code","b":[141,8,214],"m":"sta","o":"resource_type","oa":54792},{"a":11707,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":11709,"t":"code","b":[141,7,214],"m":"sta","o":"resource_number","oa":54791},{"a":11712,"t":"code","b":[32,149,213],"m":"jsr","o":"write_block_header","oa":54677},{"a":11715,"t":"code","b":[166,63],"m":"ldx","o":"zpa_3F","oa":63},{"a":11717,"t":"code","b":[164,64],"m":"ldy","o":"zpa_40","oa":64},{"a":11719,"t":"code","b":[142,179,119],"m":"stx","o":"a_77B3","oa":30643},{"a":11722,"t":"code","b":[140,144,119],"m":"sty","o":"a_7790","oa":30608},{"a":11725,"t":"code","b":[134,25],"m":"stx","o":"zpa_19","oa":25},{"a":11727,"t":"code","b":[132,26],"m":"sty","o":"zpa_1A","oa":26},{"a":11729,"t":"code","b":[24],"m":"clc"},{"a":11730,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":11732,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":11734,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":11736,"t":"code","b":[165,26],"m":"lda","o":"zpa_1A","oa":26},{"a":11738,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":11740,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":11742,"t":"code","b":[165,29],"m":"lda","o":"zpa_1D","oa":29},{"a":11744,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":11746,"t":"code","b":[165,30],"m":"lda","o":"zpa_1E","oa":30},{"a":11748,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":11750,"t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882},{"a":11753,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":11756,"t":"code","b":[133,176],"m":"sta","o":"zpa_B0","oa":176},{"a":11758,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":11761,"t":"code","b":[133,177],"m":"sta","o":"zpa_B1","oa":177},{"a":11763,"t":"code","b":[24],"m":"clc"},{"a":11764,"t":"code","b":[165,176],"m":"lda","o":"zpa_B0","oa":176},{"a":11766,"t":"code","b":[109,0,105],"m":"adc","o":"a_6900","oa":26880},{"a":11769,"t":"code","b":[133,38],"m":"sta","o":"zpp_26","oa":38},{"a":11771,"t":"code","b":[165,177],"m":"lda","o":"zpa_B1","oa":177},{"a":11773,"t":"code","b":[109,1,105],"m":"adc","o":"a_6901","oa":26881},{"a":11776,"t":"code","b":[133,39],"m":"sta","o":"zpa_27","oa":39},{"a":11778,"t":"code","b":[24],"m":"clc"},{"a":11779,"t":"code","b":[165,38],"m":"lda","o":"zpp_26","oa":38},{"a":11781,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":11783,"t":"code","b":[133,38],"m":"sta","o":"zpp_26","oa":38},{"a":11785,"t":"code","b":[165,39],"m":"lda","o":"zpa_27","oa":39},{"a":11787,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":11789,"t":"code","b":[133,39],"m":"sta","o":"zpa_27","oa":39},{"a":11791,"t":"code","b":[32,4,1],"m":"jsr","o":"decode_start","oa":260},{"a":11794,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":11796,"l":"b_2E14","t":"code","b":[32,34,1],"m":"jsr","o":"decode_byte","oa":290,"x":[11819]},{"a":11799,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":11801,"t":"code","b":[230,25],"m":"inc","o":"zpa_19","oa":25},{"a":11803,"t":"code","b":[208,2],"m":"bne","o":"b_2E1F","oa":11807},{"a":11805,"t":"code","b":[230,26],"m":"inc","o":"zpa_1A","oa":26},{"a":11807,"l":"b_2E1F","t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21,"x":[11803]},{"a":11809,"t":"code","b":[208,2],"m":"bne","o":"b_2E25","oa":11813},{"a":11811,"t":"code","b":[198,22],"m":"dec","o":"zpa_16","oa":22},{"a":11813,"l":"b_2E25","t":"code","b":[198,21],"m":"dec","o":"zpa_15","oa":21,"x":[11809]},{"a":11815,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":11817,"t":"code","b":[5,22],"m":"ora","o":"zpa_16","oa":22},{"a":11819,"t":"code","b":[208,231],"m":"bne","o":"b_2E14","oa":11796},{"a":11821,"t":"code","b":[96],"m":"rts"},{"a":11822,"l":"load_room_resource","c":"Loads room X's resource when it is not in memory: from the room's own place on its disk side (find_room_on_disk), offset 0, type 3; files its address ($73BA, $737F) and marks it used ($7344, keeping its lock bit 7)","t":"code","b":[224,0],"m":"cpx","o":"#$00","x":[11006,24361]},{"a":11824,"t":"code","b":[16,4],"m":"bpl","o":"b_2E36","oa":11830},{"a":11826,"t":"code","b":[189,101,114],"m":"lda","o":"f_7265,x","oa":29285},{"a":11829,"t":"code","b":[170],"m":"tax"},{"a":11830,"l":"b_2E36","t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567,"x":[11824]},{"a":11833,"t":"code","b":[208,51],"m":"bne","o":"b_2E6E","oa":11886},{"a":11835,"t":"code","b":[142,7,214],"m":"stx","o":"resource_number","oa":54791},{"a":11838,"t":"code","b":[142,128,46],"m":"stx","o":"a_2E80","oa":11904},{"a":11841,"t":"code","b":[32,207,47],"m":"jsr","o":"find_room_on_disk","oa":12239},{"a":11844,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11846,"t":"code","b":[141,9,214],"m":"sta","o":"resource_offset","oa":54793},{"a":11849,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11851,"t":"code","b":[141,10,214],"m":"sta","o":"a_D60A","oa":54794},{"a":11854,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":11856,"t":"code","b":[141,8,214],"m":"sta","o":"resource_type","oa":54792},{"a":11859,"t":"code","b":[32,190,212],"m":"jsr","o":"load_resource","oa":54462},{"a":11862,"t":"code","b":[142,126,46],"m":"stx","o":"a_2E7E","oa":11902},{"a":11865,"t":"code","b":[140,127,46],"m":"sty","o":"a_2E7F","oa":11903},{"a":11868,"t":"code","b":[172,128,46],"m":"ldy","o":"a_2E80","oa":11904},{"a":11871,"t":"code","b":[173,126,46],"m":"lda","o":"a_2E7E","oa":11902},{"a":11874,"t":"code","b":[153,186,115],"m":"sta","o":"room_address_lo,y","oa":29626},{"a":11877,"t":"code","b":[173,127,46],"m":"lda","o":"a_2E7F","oa":11903},{"a":11880,"t":"code","b":[153,127,115],"m":"sta","o":"room_address_hi,y","oa":29567},{"a":11883,"t":"code","b":[172,7,214],"m":"ldy","o":"resource_number","oa":54791},{"a":11886,"l":"b_2E6E","t":"code","b":[185,68,115],"m":"lda","o":"room_counts,y","oa":29508,"x":[11833]},{"a":11889,"t":"code","b":[16,5],"m":"bpl","o":"b_2E78","oa":11896},{"a":11891,"t":"code","b":[169,129],"m":"lda","o":"#$81"},{"a":11893,"t":"code","b":[76,122,46],"m":"jmp","o":"j_2E7A","oa":11898},{"a":11896,"l":"b_2E78","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[11889]},{"a":11898,"l":"j_2E7A","t":"code","b":[153,68,115],"m":"sta","o":"room_counts,y","oa":29508,"x":[11893]},{"a":11901,"t":"code","b":[96],"m":"rts"},{"a":11902,"l":"a_2E7E","c":"The address the room was loaded to ($2E7F high)","t":"byte","b":[0],"x":[11862,11871]},{"a":11903,"l":"a_2E7F","c":"The high byte of the address the room was loaded to","t":"byte","b":[0],"x":[11865,11877]},{"a":11904,"l":"a_2E80","c":"The room being loaded","t":"byte","b":[0,0,0],"x":[11838,11868]},{"a":11907,"l":"a_2E83","c":"A, stored on entry; no instruction in the program reads it back","t":"byte","b":[0],"x":[11908]},{"a":11908,"l":"put_actors_in_room","c":"Gives a walk slot to every actor that is in the shown room and has none (actor_enters_room)","t":"code","b":[141,131,46],"m":"sta","o":"a_2E83","oa":11907,"x":[10879]},{"a":11911,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":11913,"l":"b_2E89","t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854,"x":[11936]},{"a":11916,"t":"code","b":[16,15],"m":"bpl","o":"b_2E9D","oa":11933},{"a":11918,"t":"code","b":[189,157,255],"m":"lda","o":"f_FF9D,x","oa":65437},{"a":11921,"t":"code","b":[205,3,105],"m":"cmp","o":"current_room","oa":26883},{"a":11924,"t":"code","b":[208,7],"m":"bne","o":"b_2E9D","oa":11933},{"a":11926,"t":"code","b":[138],"m":"txa"},{"a":11927,"t":"code","b":[72],"m":"pha"},{"a":11928,"t":"code","b":[32,119,41],"m":"jsr","o":"actor_enters_room","oa":10615},{"a":11931,"t":"code","b":[104],"m":"pla"},{"a":11932,"t":"code","b":[170],"m":"tax"},{"a":11933,"l":"b_2E9D","t":"code","b":[232],"m":"inx","x":[11916,11924]},{"a":11934,"t":"code","b":[224,13],"m":"cpx","o":"#$0D"},{"a":11936,"t":"code","b":[208,231],"m":"bne","o":"b_2E89","oa":11913},{"a":11938,"t":"code","b":[96],"m":"rts"},{"a":11939,"l":"load_costume","c":"Loads costume X when it is not in memory: it is stored in the room the table at $6EFF names, at the offset at $6F25; type 2; its address goes to $741B and $73F5","t":"code","b":[142,7,214],"m":"stx","o":"resource_number","oa":54791,"x":[10740,24349]},{"a":11942,"t":"code","b":[224,0],"m":"cpx","o":"#$00"},{"a":11944,"t":"code","b":[208,1],"m":"bne","o":"b_2EAB","oa":11947},{"a":11946,"t":"code","b":[96],"m":"rts"},{"a":11947,"l":"b_2EAB","t":"code","b":[189,245,115],"m":"lda","o":"f_73F5,x","oa":29685,"x":[11944]},{"a":11950,"t":"code","b":[240,1],"m":"beq","o":"b_2EB1","oa":11953},{"a":11952,"t":"code","b":[96],"m":"rts"},{"a":11953,"l":"b_2EB1","t":"code","b":[134,21],"m":"stx","o":"zpa_15","oa":21,"x":[11950]},{"a":11955,"t":"code","b":[189,255,110],"m":"lda","o":"f_6EFF,x","oa":28415},{"a":11958,"t":"code","b":[170],"m":"tax"},{"a":11959,"t":"code","b":[32,207,47],"m":"jsr","o":"find_room_on_disk","oa":12239},{"a":11962,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":11964,"t":"code","b":[10],"m":"asl","o":"a"},{"a":11965,"t":"code","b":[170],"m":"tax"},{"a":11966,"t":"code","b":[189,37,111],"m":"lda","o":"f_6F25,x","oa":28453},{"a":11969,"t":"code","b":[141,9,214],"m":"sta","o":"resource_offset","oa":54793},{"a":11972,"t":"code","b":[189,38,111],"m":"lda","o":"f_6F26,x","oa":28454},{"a":11975,"t":"code","b":[141,10,214],"m":"sta","o":"a_D60A","oa":54794},{"a":11978,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":11980,"t":"code","b":[141,8,214],"m":"sta","o":"resource_type","oa":54792},{"a":11983,"t":"code","b":[32,190,212],"m":"jsr","o":"load_resource","oa":54462},{"a":11986,"t":"code","b":[134,23],"m":"stx","o":"zpa_17","oa":23},{"a":11988,"t":"code","b":[132,24],"m":"sty","o":"zpa_18","oa":24},{"a":11990,"t":"code","b":[172,7,214],"m":"ldy","o":"resource_number","oa":54791},{"a":11993,"t":"code","b":[165,23],"m":"lda","o":"zpa_17","oa":23},{"a":11995,"t":"code","b":[153,27,116],"m":"sta","o":"f_741B,y","oa":29723},{"a":11998,"t":"code","b":[165,24],"m":"lda","o":"zpa_18","oa":24},{"a":12000,"t":"code","b":[153,245,115],"m":"sta","o":"f_73F5,y","oa":29685},{"a":12003,"t":"code","b":[96],"m":"rts"},{"a":12004,"l":"load_sound","c":"Loads sound A when it is not in memory: from the room $7142 names, at the offset at $71C1; type 6; its address to $74C0 and $7441. Y is kept","t":"code","b":[140,36,49],"m":"sty","o":"a_3124","oa":12580,"x":[11269,22441,22488,24383,25050]},{"a":12007,"t":"code","b":[141,7,214],"m":"sta","o":"resource_number","oa":54791},{"a":12010,"t":"code","b":[170],"m":"tax"},{"a":12011,"t":"code","b":[189,65,116],"m":"lda","o":"f_7441,x","oa":29761},{"a":12014,"t":"code","b":[240,1],"m":"beq","o":"b_2EF1","oa":12017},{"a":12016,"t":"code","b":[96],"m":"rts"},{"a":12017,"l":"b_2EF1","t":"code","b":[134,25],"m":"stx","o":"zpa_19","oa":25,"x":[12014]},{"a":12019,"t":"code","b":[189,66,113],"m":"lda","o":"f_7142,x","oa":28994},{"a":12022,"t":"code","b":[170],"m":"tax"},{"a":12023,"t":"code","b":[32,207,47],"m":"jsr","o":"find_room_on_disk","oa":12239},{"a":12026,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":12028,"t":"code","b":[10],"m":"asl","o":"a"},{"a":12029,"t":"code","b":[170],"m":"tax"},{"a":12030,"t":"code","b":[189,193,113],"m":"lda","o":"f_71C1,x","oa":29121},{"a":12033,"t":"code","b":[141,9,214],"m":"sta","o":"resource_offset","oa":54793},{"a":12036,"t":"code","b":[189,194,113],"m":"lda","o":"f_71C2,x","oa":29122},{"a":12039,"t":"code","b":[141,10,214],"m":"sta","o":"a_D60A","oa":54794},{"a":12042,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":12044,"t":"code","b":[141,8,214],"m":"sta","o":"resource_type","oa":54792},{"a":12047,"t":"code","b":[32,190,212],"m":"jsr","o":"load_resource","oa":54462},{"a":12050,"t":"code","b":[134,25],"m":"stx","o":"zpa_19","oa":25},{"a":12052,"t":"code","b":[132,26],"m":"sty","o":"zpa_1A","oa":26},{"a":12054,"t":"code","b":[172,7,214],"m":"ldy","o":"resource_number","oa":54791},{"a":12057,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":12059,"t":"code","b":[153,192,116],"m":"sta","o":"f_74C0,y","oa":29888},{"a":12062,"t":"code","b":[165,26],"m":"lda","o":"zpa_1A","oa":26},{"a":12064,"t":"code","b":[153,65,116],"m":"sta","o":"f_7441,y","oa":29761},{"a":12067,"t":"code","b":[172,36,49],"m":"ldy","o":"a_3124","oa":12580},{"a":12070,"t":"code","b":[96],"m":"rts"},{"a":12071,"l":"load_script","c":"Loads global script A when it is not in memory: from the room $6F71 names, at the offset at $700C (or $710C for scripts from 128); type 5; its address to $7659 and $75BE. Y is kept","t":"code","b":[140,36,49],"m":"sty","o":"a_3124","oa":12580,"x":[11286,19884,24372]},{"a":12074,"t":"code","b":[141,7,214],"m":"sta","o":"resource_number","oa":54791},{"a":12077,"t":"code","b":[170],"m":"tax"},{"a":12078,"t":"code","b":[189,190,117],"m":"lda","o":"f_75BE,x","oa":30142},{"a":12081,"t":"code","b":[240,1],"m":"beq","o":"b_2F34","oa":12084},{"a":12083,"t":"code","b":[96],"m":"rts"},{"a":12084,"l":"b_2F34","t":"code","b":[134,25],"m":"stx","o":"zpa_19","oa":25,"x":[12081]},{"a":12086,"t":"code","b":[189,113,111],"m":"lda","o":"f_6F71,x","oa":28529},{"a":12089,"t":"code","b":[170],"m":"tax"},{"a":12090,"t":"code","b":[32,207,47],"m":"jsr","o":"find_room_on_disk","oa":12239},{"a":12093,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":12095,"t":"code","b":[10],"m":"asl","o":"a"},{"a":12096,"t":"code","b":[170],"m":"tax"},{"a":12097,"t":"code","b":[144,15],"m":"bcc","o":"b_2F52","oa":12114},{"a":12099,"t":"code","b":[189,12,113],"m":"lda","o":"f_710C,x","oa":28940},{"a":12102,"t":"code","b":[141,9,214],"m":"sta","o":"resource_offset","oa":54793},{"a":12105,"t":"code","b":[189,13,113],"m":"lda","o":"f_710D,x","oa":28941},{"a":12108,"t":"code","b":[141,10,214],"m":"sta","o":"a_D60A","oa":54794},{"a":12111,"t":"code","b":[76,94,47],"m":"jmp","o":"j_2F5E","oa":12126},{"a":12114,"l":"b_2F52","t":"code","b":[189,12,112],"m":"lda","o":"f_700C,x","oa":28684,"x":[12097]},{"a":12117,"t":"code","b":[141,9,214],"m":"sta","o":"resource_offset","oa":54793},{"a":12120,"t":"code","b":[189,13,112],"m":"lda","o":"f_700D,x","oa":28685},{"a":12123,"t":"code","b":[141,10,214],"m":"sta","o":"a_D60A","oa":54794},{"a":12126,"l":"j_2F5E","t":"code","b":[169,5],"m":"lda","o":"#$05","x":[12111]},{"a":12128,"t":"code","b":[141,8,214],"m":"sta","o":"resource_type","oa":54792},{"a":12131,"t":"code","b":[32,190,212],"m":"jsr","o":"load_resource","oa":54462},{"a":12134,"t":"code","b":[134,25],"m":"stx","o":"zpa_19","oa":25},{"a":12136,"t":"code","b":[132,26],"m":"sty","o":"zpa_1A","oa":26},{"a":12138,"t":"code","b":[172,7,214],"m":"ldy","o":"resource_number","oa":54791},{"a":12141,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":12143,"t":"code","b":[153,89,118],"m":"sta","o":"f_7659,y","oa":30297},{"a":12146,"t":"code","b":[165,26],"m":"lda","o":"zpa_1A","oa":26},{"a":12148,"t":"code","b":[153,190,117],"m":"sta","o":"f_75BE,y","oa":30142},{"a":12151,"t":"code","b":[172,36,49],"m":"ldy","o":"a_3124","oa":12580},{"a":12154,"t":"code","b":[96],"m":"rts"},{"a":12155,"l":"run_entry_script","c":"Runs the room's entry script ($6912) at once, in a free slot as script $FE of the room","t":"code","b":[173,18,105],"m":"lda","o":"a_6912","oa":26898,"x":[10885]},{"a":12158,"t":"code","b":[13,19,105],"m":"ora","o":"a_6913","oa":26899},{"a":12161,"t":"code","b":[240,33],"m":"beq","o":"r_2FA4","oa":12196},{"a":12163,"t":"code","b":[32,213,77],"m":"jsr","o":"find_free_slot","oa":19925},{"a":12166,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":12168,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":12171,"t":"code","b":[169,254],"m":"lda","o":"#$FE"},{"a":12173,"t":"code","b":[157,222,104],"m":"sta","o":"f_68DE,x","oa":26846},{"a":12176,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":12178,"t":"code","b":[157,202,104],"m":"sta","o":"f_68CA,x","oa":26826},{"a":12181,"t":"code","b":[173,18,105],"m":"lda","o":"a_6912","oa":26898},{"a":12184,"t":"code","b":[157,102,104],"m":"sta","o":"f_6866,x","oa":26726},{"a":12187,"t":"code","b":[173,19,105],"m":"lda","o":"a_6913","oa":26899},{"a":12190,"t":"code","b":[157,82,104],"m":"sta","o":"f_6852,x","oa":26706},{"a":12193,"t":"code","b":[32,242,77],"m":"jsr","o":"run_nested","oa":19954},{"a":12196,"l":"r_2FA4","t":"code","b":[96],"m":"rts","x":[12161]},{"a":12197,"l":"run_exit_script","c":"Runs the room's exit script ($6910) at once, in a free slot as script $FD of the room","t":"code","b":[173,16,105],"m":"lda","o":"a_6910","oa":26896,"x":[10810]},{"a":12200,"t":"code","b":[13,17,105],"m":"ora","o":"a_6911","oa":26897},{"a":12203,"t":"code","b":[240,33],"m":"beq","o":"r_2FCE","oa":12238},{"a":12205,"t":"code","b":[32,213,77],"m":"jsr","o":"find_free_slot","oa":19925},{"a":12208,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":12210,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":12213,"t":"code","b":[169,253],"m":"lda","o":"#$FD"},{"a":12215,"t":"code","b":[157,222,104],"m":"sta","o":"f_68DE,x","oa":26846},{"a":12218,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":12220,"t":"code","b":[157,202,104],"m":"sta","o":"f_68CA,x","oa":26826},{"a":12223,"t":"code","b":[173,16,105],"m":"lda","o":"a_6910","oa":26896},{"a":12226,"t":"code","b":[157,102,104],"m":"sta","o":"f_6866,x","oa":26726},{"a":12229,"t":"code","b":[173,17,105],"m":"lda","o":"a_6911","oa":26897},{"a":12232,"t":"code","b":[157,82,104],"m":"sta","o":"f_6852,x","oa":26706},{"a":12235,"t":"code","b":[32,242,77],"m":"jsr","o":"run_nested","oa":19954},{"a":12238,"l":"r_2FCE","t":"code","b":[96],"m":"rts","x":[12203]},{"a":12239,"l":"find_room_on_disk","c":"Every resource is kept inside a room's file. Makes sure room X's disk side ($6E4E) is in the drive, asking for it when variable 13 says another is (ask_for_side), then sends the drive to the room's track and sector ($6E89, a word for each room; zero is fatal error 6) with seek ($3A5D)","t":"code","b":[189,78,110],"m":"lda","o":"f_6E4E,x","oa":28238,"x":[11841,11959,12023,12090]},{"a":12242,"t":"code","b":[205,123,254],"m":"cmp","o":"a_FE7B","oa":65147},{"a":12245,"t":"code","b":[240,9],"m":"beq","o":"b_2FE0","oa":12256},{"a":12247,"t":"code","b":[142,37,49],"m":"stx","o":"a_3125","oa":12581},{"a":12250,"t":"code","b":[32,11,48],"m":"jsr","o":"ask_for_side","oa":12299},{"a":12253,"t":"code","b":[174,37,49],"m":"ldx","o":"a_3125","oa":12581},{"a":12256,"l":"b_2FE0","t":"code","b":[138],"m":"txa","x":[12245]},{"a":12257,"t":"code","b":[10],"m":"asl","o":"a"},{"a":12258,"t":"code","b":[170],"m":"tax"},{"a":12259,"t":"code","b":[189,137,110],"m":"lda","o":"f_6E89,x","oa":28297},{"a":12262,"t":"code","b":[29,138,110],"m":"ora","o":"f_6E8A,x","oa":28298},{"a":12265,"t":"code","b":[208,14],"m":"bne","o":"b_2FF9","oa":12281},{"a":12267,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":12269,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":12271,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":12273,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":12275,"l":"j_2FF3","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[12278]},{"a":12278,"t":"code","b":[76,243,47],"m":"jmp","o":"j_2FF3","oa":12275},{"a":12281,"l":"b_2FF9","t":"code","b":[189,137,110],"m":"lda","o":"f_6E89,x","oa":28297,"x":[12265]},{"a":12284,"t":"code","b":[133,29],"m":"sta","o":"zpa_1D","oa":29},{"a":12286,"t":"code","b":[189,138,110],"m":"lda","o":"f_6E8A,x","oa":28298},{"a":12289,"t":"code","b":[133,30],"m":"sta","o":"zpa_1E","oa":30},{"a":12291,"t":"code","b":[166,29],"m":"ldx","o":"zpa_1D","oa":29},{"a":12293,"t":"code","b":[164,30],"m":"ldy","o":"zpa_1E","oa":30},{"a":12295,"t":"code","b":[32,93,58],"m":"jsr","o":"disk_seek","oa":14941},{"a":12298,"t":"code","b":[96],"m":"rts"},{"a":12299,"l":"ask_for_side","c":"Asks for side A until it is in the drive: reads the side's number from track 1, sector 0, and while it is not A shows \"Put in side A and push joystick button.\" ($309E, the number written into it at $30AA) and waits for the button. Variable 13 keeps the side","t":"code","b":[141,170,48],"m":"sta","o":"a_30AA","oa":12458,"x":[1121,12250,54779]},{"a":12302,"t":"code","b":[141,123,254],"m":"sta","o":"a_FE7B","oa":65147},{"a":12305,"l":"j_3011","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[12332]},{"a":12307,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":12309,"t":"code","b":[32,120,58],"m":"jsr","o":"disk_read_start","oa":14968},{"a":12312,"t":"code","b":[32,24,59],"m":"jsr","o":"disk_byte","oa":15128},{"a":12315,"t":"code","b":[205,123,254],"m":"cmp","o":"a_FE7B","oa":65147},{"a":12318,"t":"code","b":[208,1],"m":"bne","o":"b_3021","oa":12321},{"a":12320,"t":"code","b":[96],"m":"rts"},{"a":12321,"l":"b_3021","t":"code","b":[169,158],"m":"lda","o":"#$9E","x":[12318]},{"a":12323,"t":"code","b":[133,199],"m":"sta","o":"zpp_C7","oa":199},{"a":12325,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":12327,"t":"code","b":[133,200],"m":"sta","o":"zpa_C8","oa":200},{"a":12329,"t":"code","b":[32,47,48],"m":"jsr","o":"show_and_wait","oa":12335},{"a":12332,"t":"code","b":[76,17,48],"m":"jmp","o":"j_3011","oa":12305},{"a":12335,"l":"show_and_wait","c":"Shows the message at $C7/$C8 on the top line, the snail as the cursor and the sound off, with the screen turned on for the message when the picture is off ($82); waits for the joystick's button to be let go and pressed, then puts everything back","t":"code","b":[160,37],"m":"ldy","o":"#$25","x":[12329,15106,15264,54671]},{"a":12337,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":12339,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":12341,"t":"code","b":[32,218,19],"m":"jsr","o":"busy_cursor","oa":5082},{"a":12344,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":12346,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":12349,"t":"code","b":[165,130],"m":"lda","o":"zpa_82","oa":130},{"a":12351,"t":"code","b":[240,18],"m":"beq","o":"b_3053","oa":12371},{"a":12353,"t":"code","b":[173,17,208],"m":"lda","o":"vic_control1"},{"a":12356,"t":"code","b":[9,16],"m":"ora","o":"#$10"},{"a":12358,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":12361,"t":"code","b":[169,62],"m":"lda","o":"#$3E"},{"a":12363,"t":"code","b":[160,9],"m":"ldy","o":"#$09"},{"a":12365,"t":"code","b":[141,24,208],"m":"sta","o":"vic_memory"},{"a":12368,"t":"code","b":[140,22,208],"m":"sty","o":"vic_control2"},{"a":12371,"l":"b_3053","t":"code","b":[32,176,34],"m":"jsr","o":"b_22B0","oa":8880,"x":[12351]},{"a":12374,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":12376,"l":"b_3058","t":"code","b":[177,199],"m":"lda","o":"(zpp_C7),y","oa":199,"x":[12389]},{"a":12378,"t":"code","b":[240,11],"m":"beq","o":"b_3067","oa":12391},{"a":12380,"t":"code","b":[153,0,204],"m":"sta","o":"f_CC00,y","oa":52224},{"a":12383,"t":"code","b":[169,14],"m":"lda","o":"#$0E"},{"a":12385,"t":"code","b":[153,0,216],"m":"sta","o":"colour_ram,y"},{"a":12388,"t":"code","b":[200],"m":"iny"},{"a":12389,"t":"code","b":[208,241],"m":"bne","o":"b_3058","oa":12376},{"a":12391,"l":"b_3067","t":"code","b":[32,224,28],"m":"jsr","o":"read_joystick","oa":7392,"x":[12378,12398]},{"a":12394,"t":"code","b":[165,49],"m":"lda","o":"zpa_31","oa":49},{"a":12396,"t":"code","b":[41,16],"m":"and","o":"#$10"},{"a":12398,"t":"code","b":[208,247],"m":"bne","o":"b_3067","oa":12391},{"a":12400,"t":"code","b":[32,176,34],"m":"jsr","o":"b_22B0","oa":8880},{"a":12403,"l":"b_3073","t":"code","b":[32,224,28],"m":"jsr","o":"read_joystick","oa":7392,"x":[12410]},{"a":12406,"t":"code","b":[165,49],"m":"lda","o":"zpa_31","oa":49},{"a":12408,"t":"code","b":[41,16],"m":"and","o":"#$10"},{"a":12410,"t":"code","b":[240,247],"m":"beq","o":"b_3073","oa":12403},{"a":12412,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":12414,"t":"code","b":[141,19,252],"m":"sta","o":"a_FC13","oa":64531},{"a":12417,"t":"code","b":[141,45,252],"m":"sta","o":"a_FC2D","oa":64557},{"a":12420,"t":"code","b":[165,130],"m":"lda","o":"zpa_82","oa":130},{"a":12422,"t":"code","b":[240,8],"m":"beq","o":"b_3090","oa":12432},{"a":12424,"t":"code","b":[173,17,208],"m":"lda","o":"vic_control1"},{"a":12427,"t":"code","b":[41,239],"m":"and","o":"#$EF"},{"a":12429,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":12432,"l":"b_3090","t":"code","b":[173,222,67],"m":"lda","o":"a_43DE","oa":17374,"x":[12422]},{"a":12435,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":12438,"t":"code","b":[32,232,19],"m":"jsr","o":"normal_cursor","oa":5096},{"a":12441,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":12443,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":12445,"t":"code","b":[96],"m":"rts"},{"a":12446,"c":"\"Put in side # and push joystick button.\", ending with 0; the side's number is written over the #","t":"byte","b":[80,117,116,32,105,110,32,115]},{"a":12454,"t":"byte","b":[105,100,101,32]},{"a":12458,"l":"a_30AA","c":"The # in the message, where the side's number goes","t":"byte","b":[35,32,97,110,100,32,112,117],"x":[12299]},{"a":12466,"t":"byte","b":[115,104,32,106,111,121,115,116]},{"a":12474,"t":"byte","b":[105,99,107,32,98,117,116,116]},{"a":12482,"t":"byte","b":[111,110,46,0]},{"a":12486,"l":"disk_error_text","c":"\"Disk Error, push button to continue.\", with three spaces before the 0 that ends it; shown when a sector cannot be read or written","t":"byte","b":[68,105,115,107,32,69,114,114]},{"a":12494,"t":"byte","b":[111,114,44,32,112,117,115,104]},{"a":12502,"t":"byte","b":[32,98,117,116,116,111,110,32]},{"a":12510,"t":"byte","b":[116,111,32,99,111,110,116,105]},{"a":12518,"t":"byte","b":[110,117,101,46,32,32,32,0]},{"a":12526,"l":"f_30EE","c":"\"Game paused, press SPACE to continue.\", ending with 0","t":"byte","b":[71,97,109,101,32,112,97,117],"x":[9116]},{"a":12534,"t":"byte","b":[115,101,100,44,32,112,114,101]},{"a":12542,"t":"byte","b":[115,115,32,83,80,65,67,69]},{"a":12550,"t":"byte","b":[32,116,111,32,99,111,110,116]},{"a":12558,"t":"byte","b":[105,110,117,101,46,32,32,0]},{"a":12566,"l":"clear_on_screen","c":"Marks every walk slot as off the screen ($FD1E) and gives their sprites back (assign_sprites)","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[10819,54825]},{"a":12568,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":12570,"l":"b_311A","t":"code","b":[157,30,253],"m":"sta","o":"f_FD1E,x","oa":64798,"x":[12574]},{"a":12573,"t":"code","b":[202],"m":"dex"},{"a":12574,"t":"code","b":[16,250],"m":"bpl","o":"b_311A","oa":12570},{"a":12576,"t":"code","b":[32,145,52],"m":"jsr","o":"assign_sprites","oa":13457},{"a":12579,"t":"code","b":[96],"m":"rts"},{"a":12580,"l":"a_3124","c":"Y, kept by load_sound and load_script","t":"byte","b":[0],"x":[12004,12067,12071,12151]},{"a":12581,"l":"a_3125","c":"The room find_room_on_disk is working on","t":"byte","b":[0,0,0,0,0],"x":[12247,12253]},{"a":12586,"l":"copy_object_states","c":"Each pass of the main loop while a room is shown: copies each of the room's objects' state, from the table of every object at $6B47, into $6B24 for the room, through the LDA at $3141 whose address it writes","t":"code","b":[174,22,105],"m":"ldx","o":"a_6916","oa":26902,"x":[1403]},{"a":12589,"t":"code","b":[208,1],"m":"bne","o":"b_3130","oa":12592},{"a":12591,"t":"code","b":[96],"m":"rts"},{"a":12592,"l":"b_3130","t":"code","b":[189,47,106],"m":"lda","o":"f_6A2F,x","oa":27183,"x":[12589,12616]},{"a":12595,"t":"code","b":[24],"m":"clc"},{"a":12596,"t":"code","b":[105,71],"m":"adc","o":"#$47"},{"a":12598,"t":"code","b":[141,66,49],"m":"sta","o":"object_state_lo","oa":12610},{"a":12601,"t":"code","b":[189,12,106],"m":"lda","o":"f_6A0C,x","oa":27148},{"a":12604,"t":"code","b":[105,107],"m":"adc","o":"#$6B"},{"a":12606,"t":"code","b":[141,67,49],"m":"sta","o":"object_state_hi","oa":12611},{"a":12609,"t":"code","b":[173,255,255],"m":"lda","o":"$FFFF","oa":65535},{"a":12610,"t":"note","l":"object_state_lo","c":"The low byte of the object's byte in the table at $6B47, written at $3136","note":"inside the item at $3141","x":[12598]},{"a":12611,"t":"note","l":"object_state_hi","c":"The high byte, written at $313E: the byte goes into $6B24 for the room's object X, from the last object down to the first","note":"inside the item at $3141","x":[12606]},{"a":12612,"t":"code","b":[157,36,107],"m":"sta","o":"f_6B24,x","oa":27428},{"a":12615,"t":"code","b":[202],"m":"dex"},{"a":12616,"t":"code","b":[208,230],"m":"bne","o":"b_3130","oa":12592},{"a":12618,"t":"code","b":[96],"m":"rts"},{"a":12619,"l":"find_actor_at","c":"The actor, other than the one the player controls (variable 0), whose sprite covers the point $FC18/$FC19: within four columns of its X and 40 rows above its Y. Returns the actor in X, zero when none, with A zero","t":"code","b":[162,3],"m":"ldx","o":"#$03","x":[24927]},{"a":12621,"l":"b_314D","t":"code","b":[189,78,253],"m":"lda","o":"f_FD4E,x","oa":64846,"x":[12679]},{"a":12624,"t":"code","b":[48,52],"m":"bmi","o":"b_3186","oa":12678},{"a":12626,"t":"code","b":[189,230,252],"m":"lda","o":"f_FCE6,x","oa":64742},{"a":12629,"t":"code","b":[205,24,252],"m":"cmp","o":"a_FC18","oa":64536},{"a":12632,"t":"code","b":[240,2],"m":"beq","o":"b_315C","oa":12636},{"a":12634,"t":"code","b":[176,42],"m":"bcs","o":"b_3186","oa":12678},{"a":12636,"l":"b_315C","t":"code","b":[24],"m":"clc","x":[12632]},{"a":12637,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":12639,"t":"code","b":[205,24,252],"m":"cmp","o":"a_FC18","oa":64536},{"a":12642,"t":"code","b":[144,34],"m":"bcc","o":"b_3186","oa":12678},{"a":12644,"t":"code","b":[189,234,252],"m":"lda","o":"f_FCEA,x","oa":64746},{"a":12647,"t":"code","b":[205,25,252],"m":"cmp","o":"a_FC19","oa":64537},{"a":12650,"t":"code","b":[144,26],"m":"bcc","o":"b_3186","oa":12678},{"a":12652,"t":"code","b":[56],"m":"sec"},{"a":12653,"t":"code","b":[233,40],"m":"sbc","o":"#$28"},{"a":12655,"t":"code","b":[16,2],"m":"bpl","o":"b_3173","oa":12659},{"a":12657,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":12659,"l":"b_3173","t":"code","b":[205,25,252],"m":"cmp","o":"a_FC19","oa":64537,"x":[12655]},{"a":12662,"t":"code","b":[240,2],"m":"beq","o":"b_317A","oa":12666},{"a":12664,"t":"code","b":[176,12],"m":"bcs","o":"b_3186","oa":12678},{"a":12666,"l":"b_317A","t":"code","b":[189,78,253],"m":"lda","o":"f_FD4E,x","oa":64846,"x":[12662]},{"a":12669,"t":"code","b":[205,110,254],"m":"cmp","o":"a_FE6E","oa":65134},{"a":12672,"t":"code","b":[240,4],"m":"beq","o":"b_3186","oa":12678},{"a":12674,"t":"code","b":[170],"m":"tax"},{"a":12675,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":12677,"t":"code","b":[96],"m":"rts"},{"a":12678,"l":"b_3186","t":"code","b":[202],"m":"dex","x":[12624,12634,12642,12650,12664,12672]},{"a":12679,"t":"code","b":[16,196],"m":"bpl","o":"b_314D","oa":12621},{"a":12681,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":12683,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":12685,"t":"code","b":[96],"m":"rts"},{"a":12686,"l":"find_object_at","c":"The room object at the point $FC18/$FC19 (X in columns, Y in rows of the picture, a quarter of the room's Y units): the first, from object 1, that is not hidden from the cursor (bit 5 of its state), whose parents are in the states it needs (bit 7 of each, compared with $6A75 up the chain) and whose rectangle holds the point. Returns its number in X (low) and A (high), zero when none","t":"code","b":[174,22,105],"m":"ldx","o":"a_6916","oa":26902,"x":[24950]},{"a":12689,"t":"code","b":[208,1],"m":"bne","o":"b_3194","oa":12692},{"a":12691,"t":"code","b":[96],"m":"rts"},{"a":12692,"l":"b_3194","t":"code","b":[162,1],"m":"ldx","o":"#$01","x":[12689]},{"a":12694,"l":"b_3196","t":"code","b":[189,36,107],"m":"lda","o":"f_6B24,x","oa":27428,"x":[12737,12739]},{"a":12697,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":12699,"t":"code","b":[208,32],"m":"bne","o":"b_31BD","oa":12733},{"a":12701,"t":"code","b":[142,94,52],"m":"stx","o":"a_345E","oa":13406},{"a":12704,"l":"b_31A0","t":"code","b":[189,117,106],"m":"lda","o":"f_6A75,x","oa":27253,"x":[12728]},{"a":12707,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":12709,"t":"code","b":[189,82,106],"m":"lda","o":"f_6A52,x","oa":27218},{"a":12712,"t":"code","b":[208,6],"m":"bne","o":"b_31B0","oa":12720},{"a":12714,"t":"code","b":[174,94,52],"m":"ldx","o":"a_345E","oa":13406},{"a":12717,"t":"code","b":[76,9,50],"m":"jmp","o":"j_3209","oa":12809},{"a":12720,"l":"b_31B0","t":"code","b":[170],"m":"tax","x":[12712]},{"a":12721,"t":"code","b":[189,36,107],"m":"lda","o":"f_6B24,x","oa":27428},{"a":12724,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":12726,"t":"code","b":[197,21],"m":"cmp","o":"zpa_15","oa":21},{"a":12728,"t":"code","b":[240,230],"m":"beq","o":"b_31A0","oa":12704},{"a":12730,"t":"code","b":[174,94,52],"m":"ldx","o":"a_345E","oa":13406},{"a":12733,"l":"b_31BD","t":"code","b":[232],"m":"inx","x":[12699,12869]},{"a":12734,"t":"code","b":[236,22,105],"m":"cpx","o":"a_6916","oa":26902},{"a":12737,"t":"code","b":[144,211],"m":"bcc","o":"b_3196","oa":12694},{"a":12739,"t":"code","b":[240,209],"m":"beq","o":"b_3196","oa":12694},{"a":12741,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":12743,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":12745,"t":"code","b":[96],"m":"rts"},{"a":12746,"l":"draw_room_objects","c":"Draws the room's objects that are shown (bit 7 of the state) and whose parents are in the states they need, from the last to the first, where they meet what is being drawn: by $3E, the whole width of the view (positive), only its leftmost column (negative, after a scroll to the left) or only its rightmost (zero, after a scroll to the right)","t":"code","b":[174,22,105],"m":"ldx","o":"a_6916","oa":26902,"x":[14154]},{"a":12749,"t":"code","b":[208,1],"m":"bne","o":"b_31D0","oa":12752},{"a":12751,"t":"code","b":[96],"m":"rts"},{"a":12752,"l":"b_31D0","t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882,"x":[12749]},{"a":12755,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":12758,"t":"code","b":[133,176],"m":"sta","o":"zpa_B0","oa":176},{"a":12760,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":12763,"t":"code","b":[133,177],"m":"sta","o":"zpa_B1","oa":177},{"a":12765,"t":"code","b":[174,22,105],"m":"ldx","o":"a_6916","oa":26902},{"a":12768,"l":"b_31E0","t":"code","b":[189,36,107],"m":"lda","o":"f_6B24,x","oa":27428,"x":[12806]},{"a":12771,"t":"code","b":[16,32],"m":"bpl","o":"b_3205","oa":12805},{"a":12773,"t":"code","b":[142,94,52],"m":"stx","o":"a_345E","oa":13406},{"a":12776,"l":"b_31E8","t":"code","b":[189,117,106],"m":"lda","o":"f_6A75,x","oa":27253,"x":[12800]},{"a":12779,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":12781,"t":"code","b":[189,82,106],"m":"lda","o":"f_6A52,x","oa":27218},{"a":12784,"t":"code","b":[208,6],"m":"bne","o":"b_31F8","oa":12792},{"a":12786,"t":"code","b":[174,94,52],"m":"ldx","o":"a_345E","oa":13406},{"a":12789,"t":"code","b":[76,72,50],"m":"jmp","o":"j_3248","oa":12872},{"a":12792,"l":"b_31F8","t":"code","b":[170],"m":"tax","x":[12784]},{"a":12793,"t":"code","b":[189,36,107],"m":"lda","o":"f_6B24,x","oa":27428},{"a":12796,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":12798,"t":"code","b":[197,21],"m":"cmp","o":"zpa_15","oa":21},{"a":12800,"t":"code","b":[240,230],"m":"beq","o":"b_31E8","oa":12776},{"a":12802,"t":"code","b":[174,94,52],"m":"ldx","o":"a_345E","oa":13406},{"a":12805,"l":"b_3205","t":"code","b":[202],"m":"dex","x":[12771,12900,12932,12962,12965]},{"a":12806,"t":"code","b":[208,216],"m":"bne","o":"b_31E0","oa":12768},{"a":12808,"t":"code","b":[96],"m":"rts"},{"a":12809,"l":"j_3209","t":"code","b":[173,25,252],"m":"lda","o":"a_FC19","oa":64537,"x":[12717]},{"a":12812,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":12813,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":12814,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":12816,"t":"code","b":[173,24,252],"m":"lda","o":"a_FC18","oa":64536},{"a":12819,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":12821,"t":"code","b":[189,23,105],"m":"lda","o":"f_6917,x","oa":26903},{"a":12824,"t":"code","b":[197,23],"m":"cmp","o":"zpa_17","oa":23},{"a":12826,"t":"code","b":[240,2],"m":"beq","o":"b_321E","oa":12830},{"a":12828,"t":"code","b":[176,39],"m":"bcs","o":"b_3245","oa":12869},{"a":12830,"l":"b_321E","t":"code","b":[24],"m":"clc","x":[12826]},{"a":12831,"t":"code","b":[125,93,105],"m":"adc","o":"f_695D,x","oa":26973},{"a":12834,"t":"code","b":[197,23],"m":"cmp","o":"zpa_17","oa":23},{"a":12836,"t":"code","b":[144,31],"m":"bcc","o":"b_3245","oa":12869},{"a":12838,"t":"code","b":[240,29],"m":"beq","o":"b_3245","oa":12869},{"a":12840,"t":"code","b":[189,58,105],"m":"lda","o":"f_693A,x","oa":26938},{"a":12843,"t":"code","b":[197,21],"m":"cmp","o":"zpa_15","oa":21},{"a":12845,"t":"code","b":[240,2],"m":"beq","o":"b_3231","oa":12849},{"a":12847,"t":"code","b":[176,20],"m":"bcs","o":"b_3245","oa":12869},{"a":12849,"l":"b_3231","t":"code","b":[24],"m":"clc","x":[12845]},{"a":12850,"t":"code","b":[125,128,105],"m":"adc","o":"f_6980,x","oa":27008},{"a":12853,"t":"code","b":[197,21],"m":"cmp","o":"zpa_15","oa":21},{"a":12855,"t":"code","b":[144,12],"m":"bcc","o":"b_3245","oa":12869},{"a":12857,"t":"code","b":[240,10],"m":"beq","o":"b_3245","oa":12869},{"a":12859,"t":"code","b":[189,12,106],"m":"lda","o":"f_6A0C,x","oa":27148},{"a":12862,"t":"code","b":[72],"m":"pha"},{"a":12863,"t":"code","b":[189,47,106],"m":"lda","o":"f_6A2F,x","oa":27183},{"a":12866,"t":"code","b":[170],"m":"tax"},{"a":12867,"t":"code","b":[104],"m":"pla"},{"a":12868,"t":"code","b":[96],"m":"rts"},{"a":12869,"l":"b_3245","t":"code","b":[76,189,49],"m":"jmp","o":"b_31BD","oa":12733,"x":[12828,12836,12838,12847,12855,12857]},{"a":12872,"l":"j_3248","t":"code","b":[165,62],"m":"lda","o":"zpa_3E","oa":62,"x":[12789]},{"a":12874,"t":"code","b":[208,30],"m":"bne","o":"b_326A","oa":12906},{"a":12876,"t":"code","b":[189,23,105],"m":"lda","o":"f_6917,x","oa":26903},{"a":12879,"t":"code","b":[205,193,203],"m":"cmp","o":"view_right","oa":52161},{"a":12882,"t":"code","b":[240,2],"m":"beq","o":"b_3256","oa":12886},{"a":12884,"t":"code","b":[176,17],"m":"bcs","o":"b_3267","oa":12903},{"a":12886,"l":"b_3256","t":"code","b":[24],"m":"clc","x":[12882]},{"a":12887,"t":"code","b":[125,93,105],"m":"adc","o":"f_695D,x","oa":26973},{"a":12890,"t":"code","b":[205,193,203],"m":"cmp","o":"view_right","oa":52161},{"a":12893,"t":"code","b":[144,8],"m":"bcc","o":"b_3267","oa":12903},{"a":12895,"t":"code","b":[240,6],"m":"beq","o":"b_3267","oa":12903},{"a":12897,"t":"code","b":[32,168,50],"m":"jsr","o":"draw_object","oa":12968},{"a":12900,"t":"code","b":[76,5,50],"m":"jmp","o":"b_3205","oa":12805},{"a":12903,"l":"b_3267","t":"code","b":[76,165,50],"m":"jmp","o":"j_32A5","oa":12965,"x":[12884,12893,12895]},{"a":12906,"l":"b_326A","t":"code","b":[16,30],"m":"bpl","o":"b_328A","oa":12938,"x":[12874]},{"a":12908,"t":"code","b":[189,23,105],"m":"lda","o":"f_6917,x","oa":26903},{"a":12911,"t":"code","b":[205,192,203],"m":"cmp","o":"view_left","oa":52160},{"a":12914,"t":"code","b":[240,2],"m":"beq","o":"b_3276","oa":12918},{"a":12916,"t":"code","b":[176,17],"m":"bcs","o":"b_3287","oa":12935},{"a":12918,"l":"b_3276","t":"code","b":[24],"m":"clc","x":[12914]},{"a":12919,"t":"code","b":[125,93,105],"m":"adc","o":"f_695D,x","oa":26973},{"a":12922,"t":"code","b":[205,192,203],"m":"cmp","o":"view_left","oa":52160},{"a":12925,"t":"code","b":[144,8],"m":"bcc","o":"b_3287","oa":12935},{"a":12927,"t":"code","b":[240,6],"m":"beq","o":"b_3287","oa":12935},{"a":12929,"t":"code","b":[32,168,50],"m":"jsr","o":"draw_object","oa":12968},{"a":12932,"t":"code","b":[76,5,50],"m":"jmp","o":"b_3205","oa":12805},{"a":12935,"l":"b_3287","t":"code","b":[76,165,50],"m":"jmp","o":"j_32A5","oa":12965,"x":[12916,12925,12927]},{"a":12938,"l":"b_328A","t":"code","b":[189,23,105],"m":"lda","o":"f_6917,x","oa":26903,"x":[12906]},{"a":12941,"t":"code","b":[205,193,203],"m":"cmp","o":"view_right","oa":52161},{"a":12944,"t":"code","b":[240,2],"m":"beq","o":"b_3294","oa":12948},{"a":12946,"t":"code","b":[176,17],"m":"bcs","o":"j_32A5","oa":12965},{"a":12948,"l":"b_3294","t":"code","b":[24],"m":"clc","x":[12944]},{"a":12949,"t":"code","b":[125,93,105],"m":"adc","o":"f_695D,x","oa":26973},{"a":12952,"t":"code","b":[205,192,203],"m":"cmp","o":"view_left","oa":52160},{"a":12955,"t":"code","b":[144,8],"m":"bcc","o":"j_32A5","oa":12965},{"a":12957,"t":"code","b":[240,6],"m":"beq","o":"j_32A5","oa":12965},{"a":12959,"t":"code","b":[32,168,50],"m":"jsr","o":"draw_object","oa":12968},{"a":12962,"t":"code","b":[76,5,50],"m":"jmp","o":"b_3205","oa":12805},{"a":12965,"l":"j_32A5","t":"code","b":[76,5,50],"m":"jmp","o":"b_3205","oa":12805,"x":[12903,12935,12946,12955,12957]},{"a":12968,"l":"draw_object","c":"Draws object X's picture over the room in the hidden screen: from its stream, decoded a row at a time, its characters, then its colours into the colour buffer at $64F5, then its mask into the mask screen at $624D, cut at the view's edges ($CBC0, $CBC1) and, by $3E, to a single column","t":"code","b":[189,23,105],"m":"lda","o":"f_6917,x","oa":26903,"x":[12897,12929,12959,13337]},{"a":12971,"t":"code","b":[141,90,52],"m":"sta","o":"a_345A","oa":13402},{"a":12974,"t":"code","b":[189,58,105],"m":"lda","o":"f_693A,x","oa":26938},{"a":12977,"t":"code","b":[141,91,52],"m":"sta","o":"a_345B","oa":13403},{"a":12980,"t":"code","b":[189,93,105],"m":"lda","o":"f_695D,x","oa":26973},{"a":12983,"t":"code","b":[141,92,52],"m":"sta","o":"a_345C","oa":13404},{"a":12986,"t":"code","b":[189,128,105],"m":"lda","o":"f_6980,x","oa":27008},{"a":12989,"t":"code","b":[141,93,52],"m":"sta","o":"a_345D","oa":13405},{"a":12992,"t":"code","b":[138],"m":"txa"},{"a":12993,"t":"code","b":[10],"m":"asl","o":"a"},{"a":12994,"t":"code","b":[168],"m":"tay"},{"a":12995,"t":"code","b":[24],"m":"clc"},{"a":12996,"t":"code","b":[165,176],"m":"lda","o":"zpa_B0","oa":176},{"a":12998,"t":"code","b":[121,152,106],"m":"adc","o":"f_6A98,y","oa":27288},{"a":13001,"t":"code","b":[133,38],"m":"sta","o":"zpp_26","oa":38},{"a":13003,"t":"code","b":[165,177],"m":"lda","o":"zpa_B1","oa":177},{"a":13005,"t":"code","b":[121,153,106],"m":"adc","o":"f_6A99,y","oa":27289},{"a":13008,"t":"code","b":[133,39],"m":"sta","o":"zpa_27","oa":39},{"a":13010,"t":"code","b":[173,192,203],"m":"lda","o":"view_left","oa":52160},{"a":13013,"t":"code","b":[56],"m":"sec"},{"a":13014,"t":"code","b":[237,90,52],"m":"sbc","o":"a_345A","oa":13402},{"a":13017,"t":"code","b":[176,2],"m":"bcs","o":"b_32DD","oa":13021},{"a":13019,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13021,"l":"b_32DD","t":"code","b":[141,87,52],"m":"sta","o":"a_3457","oa":13399,"x":[13017]},{"a":13024,"t":"code","b":[173,92,52],"m":"lda","o":"a_345C","oa":13404},{"a":13027,"t":"code","b":[56],"m":"sec"},{"a":13028,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":13030,"t":"code","b":[24],"m":"clc"},{"a":13031,"t":"code","b":[109,90,52],"m":"adc","o":"a_345A","oa":13402},{"a":13034,"t":"code","b":[56],"m":"sec"},{"a":13035,"t":"code","b":[237,193,203],"m":"sbc","o":"view_right","oa":52161},{"a":13038,"t":"code","b":[176,2],"m":"bcs","o":"b_32F2","oa":13042},{"a":13040,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13042,"l":"b_32F2","t":"code","b":[141,88,52],"m":"sta","o":"a_3458","oa":13400,"x":[13038]},{"a":13045,"t":"code","b":[173,92,52],"m":"lda","o":"a_345C","oa":13404},{"a":13048,"t":"code","b":[56],"m":"sec"},{"a":13049,"t":"code","b":[237,87,52],"m":"sbc","o":"a_3457","oa":13399},{"a":13052,"t":"code","b":[56],"m":"sec"},{"a":13053,"t":"code","b":[237,88,52],"m":"sbc","o":"a_3458","oa":13400},{"a":13056,"t":"code","b":[141,89,52],"m":"sta","o":"a_3459","oa":13401},{"a":13059,"t":"code","b":[165,62],"m":"lda","o":"zpa_3E","oa":62},{"a":13061,"t":"code","b":[208,21],"m":"bne","o":"b_331C","oa":13084},{"a":13063,"t":"code","b":[173,89,52],"m":"lda","o":"a_3459","oa":13401},{"a":13066,"t":"code","b":[56],"m":"sec"},{"a":13067,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":13069,"t":"code","b":[24],"m":"clc"},{"a":13070,"t":"code","b":[109,87,52],"m":"adc","o":"a_3457","oa":13399},{"a":13073,"t":"code","b":[141,87,52],"m":"sta","o":"a_3457","oa":13399},{"a":13076,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":13078,"t":"code","b":[141,89,52],"m":"sta","o":"a_3459","oa":13401},{"a":13081,"t":"code","b":[76,48,51],"m":"jmp","o":"j_3330","oa":13104},{"a":13084,"l":"b_331C","t":"code","b":[16,18],"m":"bpl","o":"j_3330","oa":13104,"x":[13061]},{"a":13086,"t":"code","b":[173,89,52],"m":"lda","o":"a_3459","oa":13401},{"a":13089,"t":"code","b":[56],"m":"sec"},{"a":13090,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":13092,"t":"code","b":[24],"m":"clc"},{"a":13093,"t":"code","b":[109,88,52],"m":"adc","o":"a_3458","oa":13400},{"a":13096,"t":"code","b":[141,88,52],"m":"sta","o":"a_3458","oa":13400},{"a":13099,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":13101,"t":"code","b":[141,89,52],"m":"sta","o":"a_3459","oa":13401},{"a":13104,"l":"j_3330","t":"code","b":[172,91,52],"m":"ldy","o":"a_345B","oa":13403,"x":[13081,13084]},{"a":13107,"t":"code","b":[185,95,52],"m":"lda","o":"f_345F,y","oa":13407},{"a":13110,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":13112,"t":"code","b":[185,120,52],"m":"lda","o":"f_3478,y","oa":13432},{"a":13115,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":13117,"t":"code","b":[173,90,52],"m":"lda","o":"a_345A","oa":13402},{"a":13120,"t":"code","b":[56],"m":"sec"},{"a":13121,"t":"code","b":[237,192,203],"m":"sbc","o":"view_left","oa":52160},{"a":13124,"t":"code","b":[24],"m":"clc"},{"a":13125,"t":"code","b":[109,87,52],"m":"adc","o":"a_3457","oa":13399},{"a":13128,"t":"code","b":[24],"m":"clc"},{"a":13129,"t":"code","b":[101,27],"m":"adc","o":"zpa_1B","oa":27},{"a":13131,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":13133,"t":"code","b":[144,2],"m":"bcc","o":"b_3351","oa":13137},{"a":13135,"t":"code","b":[230,28],"m":"inc","o":"zpa_1C","oa":28},{"a":13137,"l":"b_3351","t":"code","b":[32,4,1],"m":"jsr","o":"decode_start","oa":260,"x":[13133]},{"a":13140,"t":"code","b":[24],"m":"clc"},{"a":13141,"t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27},{"a":13143,"t":"code","b":[101,35],"m":"adc","o":"zpa_23","oa":35},{"a":13145,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":13147,"t":"code","b":[165,28],"m":"lda","o":"zpa_1C","oa":28},{"a":13149,"t":"code","b":[101,36],"m":"adc","o":"zpa_24","oa":36},{"a":13151,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":13153,"t":"code","b":[32,136,51],"m":"jsr","o":"draw_object_layer","oa":13192},{"a":13156,"t":"code","b":[24],"m":"clc"},{"a":13157,"t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27},{"a":13159,"t":"code","b":[105,245],"m":"adc","o":"#$F5"},{"a":13161,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":13163,"t":"code","b":[165,28],"m":"lda","o":"zpa_1C","oa":28},{"a":13165,"t":"code","b":[105,100],"m":"adc","o":"#$64"},{"a":13167,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":13169,"t":"code","b":[32,136,51],"m":"jsr","o":"draw_object_layer","oa":13192},{"a":13172,"t":"code","b":[24],"m":"clc"},{"a":13173,"t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27},{"a":13175,"t":"code","b":[105,77],"m":"adc","o":"#$4D"},{"a":13177,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":13179,"t":"code","b":[165,28],"m":"lda","o":"zpa_1C","oa":28},{"a":13181,"t":"code","b":[105,98],"m":"adc","o":"#$62"},{"a":13183,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":13185,"t":"code","b":[32,136,51],"m":"jsr","o":"draw_object_layer","oa":13192},{"a":13188,"t":"code","b":[174,94,52],"m":"ldx","o":"a_345E","oa":13406},{"a":13191,"t":"code","b":[96],"m":"rts"},{"a":13192,"l":"draw_object_layer","c":"One of the picture's three layers, at $19/$1A: for each of its rows, skips the columns cut on the left, writes the columns shown and skips those cut on the right","t":"code","b":[173,93,52],"m":"lda","o":"a_345D","oa":13405,"x":[13153,13169,13185]},{"a":13195,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":13197,"l":"b_338D","t":"code","b":[173,87,52],"m":"lda","o":"a_3457","oa":13399,"x":[13239]},{"a":13200,"t":"code","b":[133,45],"m":"sta","o":"zpa_2D","oa":45},{"a":13202,"t":"code","b":[32,143,1],"m":"jsr","o":"skip_decoded_short","oa":399},{"a":13205,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":13207,"l":"b_3397","t":"code","b":[32,34,1],"m":"jsr","o":"decode_byte","oa":290,"x":[13216]},{"a":13210,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":13212,"t":"code","b":[200],"m":"iny"},{"a":13213,"t":"code","b":[204,89,52],"m":"cpy","o":"a_3459","oa":13401},{"a":13216,"t":"code","b":[208,245],"m":"bne","o":"b_3397","oa":13207},{"a":13218,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":13220,"t":"code","b":[24],"m":"clc"},{"a":13221,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":13223,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":13225,"t":"code","b":[144,2],"m":"bcc","o":"b_33AD","oa":13229},{"a":13227,"t":"code","b":[230,26],"m":"inc","o":"zpa_1A","oa":26},{"a":13229,"l":"b_33AD","t":"code","b":[173,88,52],"m":"lda","o":"a_3458","oa":13400,"x":[13225]},{"a":13232,"t":"code","b":[133,45],"m":"sta","o":"zpa_2D","oa":45},{"a":13234,"t":"code","b":[32,143,1],"m":"jsr","o":"skip_decoded_short","oa":399},{"a":13237,"t":"code","b":[198,21],"m":"dec","o":"zpa_15","oa":21},{"a":13239,"t":"code","b":[208,212],"m":"bne","o":"b_338D","oa":13197},{"a":13241,"t":"code","b":[96],"m":"rts"},{"a":13242,"l":"a_33BA","c":"The number of objects waiting to be drawn, kept at $33BB","t":"byte","b":[0],"x":[10841,13263,13343,13350,21205,21219,21336,21343,21584]},{"a":13243,"l":"f_33BB","c":"The objects waiting to be drawn, put there by the opcodes that change an object's state","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[13308,21340]},{"a":13251,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":13259,"t":"byte","b":[0,0,0,0]},{"a":13263,"l":"draw_queued_objects","c":"Each pass of the main loop while a room is shown: draws each object waiting to be drawn that is in view (draw_object, the whole view), first copying the shown screen to the hidden one when the room is lit only by the flashlight ($342A), and empties the list","t":"code","b":[173,186,51],"m":"lda","o":"a_33BA","oa":13242,"x":[1455]},{"a":13266,"t":"code","b":[208,1],"m":"bne","o":"b_33D5","oa":13269},{"a":13268,"t":"code","b":[96],"m":"rts"},{"a":13269,"l":"b_33D5","t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882,"x":[13266]},{"a":13272,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":13275,"t":"code","b":[133,176],"m":"sta","o":"zpa_B0","oa":176},{"a":13277,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":13280,"t":"code","b":[133,177],"m":"sta","o":"zpa_B1","oa":177},{"a":13282,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":13284,"t":"code","b":[133,62],"m":"sta","o":"zpa_3E","oa":62},{"a":13286,"t":"code","b":[173,16,6],"m":"lda","o":"a_0610","oa":1552},{"a":13289,"t":"code","b":[208,15],"m":"bne","o":"b_33FA","oa":13306},{"a":13291,"t":"code","b":[173,122,254],"m":"lda","o":"a_FE7A","oa":65146},{"a":13294,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":13296,"t":"code","b":[240,8],"m":"beq","o":"b_33FA","oa":13306},{"a":13298,"t":"code","b":[32,42,52],"m":"jsr","o":"copy_screen_to_hidden","oa":13354},{"a":13301,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":13303,"t":"code","b":[141,16,6],"m":"sta","o":"a_0610","oa":1552},{"a":13306,"l":"b_33FA","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[13289,13296]},{"a":13308,"l":"b_33FC","t":"code","b":[185,187,51],"m":"lda","o":"f_33BB,y","oa":13243,"x":[13346]},{"a":13311,"t":"code","b":[240,29],"m":"beq","o":"b_341E","oa":13342},{"a":13313,"t":"code","b":[170],"m":"tax"},{"a":13314,"t":"code","b":[189,23,105],"m":"lda","o":"f_6917,x","oa":26903},{"a":13317,"t":"code","b":[205,193,203],"m":"cmp","o":"view_right","oa":52161},{"a":13320,"t":"code","b":[240,2],"m":"beq","o":"b_340C","oa":13324},{"a":13322,"t":"code","b":[176,18],"m":"bcs","o":"b_341E","oa":13342},{"a":13324,"l":"b_340C","t":"code","b":[24],"m":"clc","x":[13320]},{"a":13325,"t":"code","b":[125,93,105],"m":"adc","o":"f_695D,x","oa":26973},{"a":13328,"t":"code","b":[205,192,203],"m":"cmp","o":"view_left","oa":52160},{"a":13331,"t":"code","b":[144,9],"m":"bcc","o":"b_341E","oa":13342},{"a":13333,"t":"code","b":[240,7],"m":"beq","o":"b_341E","oa":13342},{"a":13335,"t":"code","b":[152],"m":"tya"},{"a":13336,"t":"code","b":[72],"m":"pha"},{"a":13337,"t":"code","b":[32,168,50],"m":"jsr","o":"draw_object","oa":12968},{"a":13340,"t":"code","b":[104],"m":"pla"},{"a":13341,"t":"code","b":[168],"m":"tay"},{"a":13342,"l":"b_341E","t":"code","b":[200],"m":"iny","x":[13311,13322,13331,13333]},{"a":13343,"t":"code","b":[204,186,51],"m":"cpy","o":"a_33BA","oa":13242},{"a":13346,"t":"code","b":[208,216],"m":"bne","o":"b_33FC","oa":13308},{"a":13348,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13350,"t":"code","b":[141,186,51],"m":"sta","o":"a_33BA","oa":13242},{"a":13353,"t":"code","b":[96],"m":"rts"},{"a":13354,"l":"copy_screen_to_hidden","c":"Copies the room's rows from the screen shown to the hidden one ($38AE)","t":"code","b":[165,34],"m":"lda","o":"zpa_22","oa":34,"x":[13298]},{"a":13356,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":13358,"t":"code","b":[208,19],"m":"bne","o":"b_3443","oa":13379},{"a":13360,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":13362,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":13364,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":13366,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":13368,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":13370,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":13372,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":13374,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":13376,"t":"code","b":[76,83,52],"m":"jmp","o":"j_3453","oa":13395},{"a":13379,"l":"b_3443","t":"code","b":[169,80],"m":"lda","o":"#$50","x":[13358]},{"a":13381,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":13383,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":13385,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":13387,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":13389,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":13391,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":13393,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":13395,"l":"j_3453","t":"code","b":[32,174,56],"m":"jsr","o":"copy_rows","oa":14510,"x":[13376]},{"a":13398,"t":"code","b":[96],"m":"rts"},{"a":13399,"l":"a_3457","c":"The object's columns cut on the left; $3458 on the right; $3459 the columns drawn","t":"byte","b":[0],"x":[13021,13049,13070,13073,13125,13197]},{"a":13400,"l":"a_3458","c":"The object's columns cut on the right","t":"byte","b":[0],"x":[13042,13053,13093,13096,13229]},{"a":13401,"l":"a_3459","c":"The object's columns drawn","t":"byte","b":[0],"x":[13056,13063,13078,13086,13101,13213]},{"a":13402,"l":"a_345A","c":"The object's X; $345B its Y; $345C its width; $345D its height, in characters","t":"byte","b":[0],"x":[12971,13014,13031,13117]},{"a":13403,"l":"a_345B","c":"The object's Y, in characters","t":"byte","b":[0],"x":[12977,13104]},{"a":13404,"l":"a_345C","c":"The object's width, in characters","t":"byte","b":[0],"x":[12983,13024,13045]},{"a":13405,"l":"a_345D","c":"The object's height, in characters","t":"byte","b":[0],"x":[12989,13192]},{"a":13406,"l":"a_345E","c":"The object being tried or drawn","t":"byte","b":[0],"x":[12701,12714,12730,12773,12786,12802,13188]},{"a":13407,"l":"f_345F","c":"The offset of each of the 25 rows of a screen, high bytes ($3478 the low): 40 bytes a row","t":"byte","b":[0,0,0,0,0,0,0,1],"x":[10359,10376,13107,55070,62674,62771]},{"a":13415,"t":"byte","b":[1,1,1,1,1,2,2,2]},{"a":13423,"t":"byte","b":[2,2,2,2,3,3,3,3]},{"a":13431,"t":"byte","b":[3]},{"a":13432,"l":"f_3478","c":"The low bytes of each screen row's offset","t":"byte","b":[0,40,80,120,160,200,240,24],"x":[10350,10367,13112,55063,62667,62764]},{"a":13440,"t":"byte","b":[64,104,144,184,224,8,48,88]},{"a":13448,"t":"byte","b":[128,168,208,248,32,72,112,152]},{"a":13456,"t":"byte","b":[192]},{"a":13457,"l":"assign_sprites","c":"Gives each walk slot on the screen ($FD1E) a sprite column of its own and takes them from slots that are not: a slot leaving the screen has its column cleared in both buffers and given back; one arriving takes the first free of the four (fatal error 13 if none is free). Then orders the sprites by their actors' Y, so the actor nearest the front gets the hardware sprite with the lowest number, which the video chip draws in front, and gives the order to the raster interrupt ($1178)","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[6186,10539,10611,12576]},{"a":13459,"l":"b_3493","t":"code","b":[189,30,253],"m":"lda","o":"f_FD1E,x","oa":64798,"x":[13533]},{"a":13462,"t":"code","b":[208,66],"m":"bne","o":"b_34DA","oa":13530},{"a":13464,"t":"code","b":[188,46,253],"m":"ldy","o":"f_FD2E,x","oa":64814},{"a":13467,"t":"code","b":[192,255],"m":"cpy","o":"#$FF"},{"a":13469,"t":"code","b":[240,59],"m":"beq","o":"b_34DA","oa":13530},{"a":13471,"t":"code","b":[206,57,252],"m":"dec","o":"a_FC39","oa":64569},{"a":13474,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13476,"t":"code","b":[153,99,253],"m":"sta","o":"f_FD63,y","oa":64867},{"a":13479,"t":"code","b":[140,255,53],"m":"sty","o":"a_35FF","oa":13823},{"a":13482,"t":"code","b":[32,11,32],"m":"jsr","o":"sprite_column_address","oa":8203},{"a":13485,"t":"code","b":[172,255,53],"m":"ldy","o":"a_35FF","oa":13823},{"a":13488,"t":"code","b":[32,112,31],"m":"jsr","o":"clear_old_rows","oa":8048},{"a":13491,"t":"code","b":[32,37,32],"m":"jsr","o":"copy_seam_rows","oa":8229},{"a":13494,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":13496,"t":"code","b":[77,14,252],"m":"eor","o":"a_FC0E","oa":64526},{"a":13499,"t":"code","b":[141,14,252],"m":"sta","o":"a_FC0E","oa":64526},{"a":13502,"t":"code","b":[172,255,53],"m":"ldy","o":"a_35FF","oa":13823},{"a":13505,"t":"code","b":[32,11,32],"m":"jsr","o":"sprite_column_address","oa":8203},{"a":13508,"t":"code","b":[172,255,53],"m":"ldy","o":"a_35FF","oa":13823},{"a":13511,"t":"code","b":[32,112,31],"m":"jsr","o":"clear_old_rows","oa":8048},{"a":13514,"t":"code","b":[32,37,32],"m":"jsr","o":"copy_seam_rows","oa":8229},{"a":13517,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":13519,"t":"code","b":[77,14,252],"m":"eor","o":"a_FC0E","oa":64526},{"a":13522,"t":"code","b":[141,14,252],"m":"sta","o":"a_FC0E","oa":64526},{"a":13525,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":13527,"t":"code","b":[157,46,253],"m":"sta","o":"f_FD2E,x","oa":64814},{"a":13530,"l":"b_34DA","t":"code","b":[232],"m":"inx","x":[13462,13469]},{"a":13531,"t":"code","b":[224,4],"m":"cpx","o":"#$04"},{"a":13533,"t":"code","b":[208,180],"m":"bne","o":"b_3493","oa":13459},{"a":13535,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":13537,"l":"b_34E1","t":"code","b":[189,30,253],"m":"lda","o":"f_FD1E,x","oa":64798,"x":[13613]},{"a":13540,"t":"code","b":[240,68],"m":"beq","o":"b_352A","oa":13610},{"a":13542,"t":"code","b":[189,46,253],"m":"lda","o":"f_FD2E,x","oa":64814},{"a":13545,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":13547,"t":"code","b":[208,54],"m":"bne","o":"b_3523","oa":13603},{"a":13549,"t":"code","b":[172,57,252],"m":"ldy","o":"a_FC39","oa":64569},{"a":13552,"t":"code","b":[192,4],"m":"cpy","o":"#$04"},{"a":13554,"t":"code","b":[144,14],"m":"bcc","o":"b_3502","oa":13570},{"a":13556,"t":"code","b":[169,13],"m":"lda","o":"#$0D"},{"a":13558,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":13560,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":13562,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":13564,"l":"j_34FC","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[13567]},{"a":13567,"t":"code","b":[76,252,52],"m":"jmp","o":"j_34FC","oa":13564},{"a":13570,"l":"b_3502","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[13554]},{"a":13572,"l":"b_3504","t":"code","b":[185,99,253],"m":"lda","o":"f_FD63,y","oa":64867,"x":[13598]},{"a":13575,"t":"code","b":[208,18],"m":"bne","o":"b_351B","oa":13595},{"a":13577,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":13579,"t":"code","b":[153,99,253],"m":"sta","o":"f_FD63,y","oa":64867},{"a":13582,"t":"code","b":[152],"m":"tya"},{"a":13583,"t":"code","b":[157,46,253],"m":"sta","o":"f_FD2E,x","oa":64814},{"a":13586,"t":"code","b":[138],"m":"txa"},{"a":13587,"t":"code","b":[153,103,253],"m":"sta","o":"f_FD67,y","oa":64871},{"a":13590,"t":"code","b":[238,57,252],"m":"inc","o":"a_FC39","oa":64569},{"a":13593,"t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":13595,"l":"b_351B","t":"code","b":[200],"m":"iny","x":[13575]},{"a":13596,"t":"code","b":[192,4],"m":"cpy","o":"#$04"},{"a":13598,"t":"code","b":[208,228],"m":"bne","o":"b_3504","oa":13572},{"a":13600,"t":"code","b":[76,42,53],"m":"jmp","o":"b_352A","oa":13610},{"a":13603,"l":"b_3523","t":"code","b":[188,46,253],"m":"ldy","o":"f_FD2E,x","oa":64814,"x":[13547]},{"a":13606,"t":"code","b":[138],"m":"txa"},{"a":13607,"t":"code","b":[153,103,253],"m":"sta","o":"f_FD67,y","oa":64871},{"a":13610,"l":"b_352A","t":"code","b":[232],"m":"inx","x":[13540,13600]},{"a":13611,"t":"code","b":[224,4],"m":"cpx","o":"#$04"},{"a":13613,"t":"code","b":[208,178],"m":"bne","o":"b_34E1","oa":13537},{"a":13615,"t":"code","b":[173,57,252],"m":"lda","o":"a_FC39","oa":64569},{"a":13618,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":13620,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":13622,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":13624,"l":"b_3538","t":"code","b":[190,99,253],"m":"ldx","o":"f_FD63,y","oa":64867,"x":[13638]},{"a":13627,"t":"code","b":[208,6],"m":"bne","o":"b_3543","oa":13635},{"a":13629,"t":"code","b":[153,103,253],"m":"sta","o":"f_FD67,y","oa":64871},{"a":13632,"t":"code","b":[153,107,253],"m":"sta","o":"f_FD6B,y","oa":64875},{"a":13635,"l":"b_3543","t":"code","b":[200],"m":"iny","x":[13627]},{"a":13636,"t":"code","b":[192,4],"m":"cpy","o":"#$04"},{"a":13638,"t":"code","b":[208,240],"m":"bne","o":"b_3538","oa":13624},{"a":13640,"t":"code","b":[198,25],"m":"dec","o":"zpa_19","oa":25},{"a":13642,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":13644,"t":"code","b":[16,3],"m":"bpl","o":"b_3551","oa":13649},{"a":13646,"t":"code","b":[76,136,53],"m":"jmp","o":"j_3588","oa":13704},{"a":13649,"l":"b_3551","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[13644,13702]},{"a":13651,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":13653,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":13655,"l":"b_3557","t":"code","b":[189,103,253],"m":"lda","o":"f_FD67,x","oa":64871,"x":[13681]},{"a":13658,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":13660,"t":"code","b":[240,16],"m":"beq","o":"b_356E","oa":13678},{"a":13662,"t":"code","b":[168],"m":"tay"},{"a":13663,"t":"code","b":[185,234,252],"m":"lda","o":"f_FCEA,y","oa":64746},{"a":13666,"t":"code","b":[197,27],"m":"cmp","o":"zpa_1B","oa":27},{"a":13668,"t":"code","b":[240,2],"m":"beq","o":"b_3568","oa":13672},{"a":13670,"t":"code","b":[176,6],"m":"bcs","o":"b_356E","oa":13678},{"a":13672,"l":"b_3568","t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27,"x":[13668]},{"a":13674,"t":"code","b":[134,29],"m":"stx","o":"zpa_1D","oa":29},{"a":13676,"t":"code","b":[132,30],"m":"sty","o":"zpa_1E","oa":30},{"a":13678,"l":"b_356E","t":"code","b":[232],"m":"inx","x":[13660,13670]},{"a":13679,"t":"code","b":[224,4],"m":"cpx","o":"#$04"},{"a":13681,"t":"code","b":[208,228],"m":"bne","o":"b_3557","oa":13655},{"a":13683,"t":"code","b":[166,29],"m":"ldx","o":"zpa_1D","oa":29},{"a":13685,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":13687,"t":"code","b":[157,103,253],"m":"sta","o":"f_FD67,x","oa":64871},{"a":13690,"t":"code","b":[166,30],"m":"ldx","o":"zpa_1E","oa":30},{"a":13692,"t":"code","b":[188,46,253],"m":"ldy","o":"f_FD2E,x","oa":64814},{"a":13695,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":13697,"t":"code","b":[153,107,253],"m":"sta","o":"f_FD6B,y","oa":64875},{"a":13700,"t":"code","b":[198,25],"m":"dec","o":"zpa_19","oa":25},{"a":13702,"t":"code","b":[16,201],"m":"bpl","o":"b_3551","oa":13649},{"a":13704,"l":"j_3588","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[13646]},{"a":13706,"t":"code","b":[173,57,252],"m":"lda","o":"a_FC39","oa":64569},{"a":13709,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":13711,"l":"b_358F","t":"code","b":[189,107,253],"m":"lda","o":"f_FD6B,x","oa":64875,"x":[13734]},{"a":13714,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":13716,"t":"code","b":[208,10],"m":"bne","o":"b_35A0","oa":13728},{"a":13718,"t":"code","b":[165,23],"m":"lda","o":"zpa_17","oa":23},{"a":13720,"t":"code","b":[157,120,17],"m":"sta","o":"a_1178,x","oa":4472},{"a":13723,"t":"code","b":[230,23],"m":"inc","o":"zpa_17","oa":23},{"a":13725,"t":"code","b":[76,163,53],"m":"jmp","o":"j_35A3","oa":13731},{"a":13728,"l":"b_35A0","t":"code","b":[157,120,17],"m":"sta","o":"a_1178,x","oa":4472,"x":[13716]},{"a":13731,"l":"j_35A3","t":"code","b":[232],"m":"inx","x":[13725]},{"a":13732,"t":"code","b":[224,4],"m":"cpx","o":"#$04"},{"a":13734,"t":"code","b":[208,231],"m":"bne","o":"b_358F","oa":13711},{"a":13736,"t":"code","b":[96],"m":"rts"},{"a":13737,"l":"check_on_screen","c":"Whether actor $E5's slot is on the screen ($FD1E): from two columns left of the view to its right edge. A slot that comes into view at an edge is redrawn four times","t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229,"x":[6175,10528]},{"a":13739,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":13742,"t":"code","b":[16,5],"m":"bpl","o":"b_35B5","oa":13749},{"a":13744,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13746,"t":"code","b":[76,251,53],"m":"jmp","o":"j_35FB","oa":13819},{"a":13749,"l":"b_35B5","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[13742]},{"a":13751,"t":"code","b":[189,230,252],"m":"lda","o":"f_FCE6,x","oa":64742},{"a":13754,"t":"code","b":[56],"m":"sec"},{"a":13755,"t":"code","b":[237,192,203],"m":"sbc","o":"view_left","oa":52160},{"a":13758,"t":"code","b":[201,254],"m":"cmp","o":"#$FE"},{"a":13760,"t":"code","b":[144,16],"m":"bcc","o":"b_35D2","oa":13778},{"a":13762,"t":"code","b":[189,30,253],"m":"lda","o":"f_FD1E,x","oa":64798},{"a":13765,"t":"code","b":[208,11],"m":"bne","o":"b_35D2","oa":13778},{"a":13767,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":13769,"t":"code","b":[157,34,253],"m":"sta","o":"f_FD22,x","oa":64802},{"a":13772,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":13774,"t":"code","b":[157,30,253],"m":"sta","o":"f_FD1E,x","oa":64798},{"a":13777,"t":"code","b":[96],"m":"rts"},{"a":13778,"l":"b_35D2","t":"code","b":[201,0],"m":"cmp","o":"#$00","x":[13760,13765]},{"a":13780,"t":"code","b":[144,35],"m":"bcc","o":"b_35F9","oa":13817},{"a":13782,"t":"code","b":[201,39],"m":"cmp","o":"#$27"},{"a":13784,"t":"code","b":[240,2],"m":"beq","o":"b_35DC","oa":13788},{"a":13786,"t":"code","b":[176,24],"m":"bcs","o":"b_35F4","oa":13812},{"a":13788,"l":"b_35DC","t":"code","b":[208,13],"m":"bne","o":"b_35EB","oa":13803,"x":[13784]},{"a":13790,"l":"b_35DE","t":"code","b":[189,30,253],"m":"lda","o":"f_FD1E,x","oa":64798,"x":[13805]},{"a":13793,"t":"code","b":[208,5],"m":"bne","o":"b_35E8","oa":13800},{"a":13795,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":13797,"t":"code","b":[157,34,253],"m":"sta","o":"f_FD22,x","oa":64802},{"a":13800,"l":"b_35E8","t":"code","b":[76,239,53],"m":"jmp","o":"j_35EF","oa":13807,"x":[13793]},{"a":13803,"l":"b_35EB","t":"code","b":[201,38],"m":"cmp","o":"#$26","x":[13788]},{"a":13805,"t":"code","b":[240,239],"m":"beq","o":"b_35DE","oa":13790},{"a":13807,"l":"j_35EF","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[13800]},{"a":13809,"t":"code","b":[76,251,53],"m":"jmp","o":"j_35FB","oa":13819},{"a":13812,"l":"b_35F4","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[13786]},{"a":13814,"t":"code","b":[76,251,53],"m":"jmp","o":"j_35FB","oa":13819},{"a":13817,"l":"b_35F9","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[13780]},{"a":13819,"l":"j_35FB","t":"code","b":[157,30,253],"m":"sta","o":"f_FD1E,x","oa":64798,"x":[13746,13809,13814]},{"a":13822,"t":"code","b":[96],"m":"rts"},{"a":13823,"l":"a_35FF","c":"The sprite assign_sprites is clearing","t":"byte","b":[0],"x":[13479,13485,13502,13508]},{"a":13824,"l":"f_3600","c":"For each sprite, the foot of the frame last drawn into the first buffer ($FC0E set); $3604 its height","t":"byte","b":[0,0,0,0],"x":[8053,8176]},{"a":13828,"l":"f_3604","c":"For each sprite, the height of the frame last drawn into the first buffer","t":"byte","b":[0,0,0,0],"x":[8060,8182]},{"a":13832,"l":"f_3608","c":"The same for the second buffer: the foot; $360C the height","t":"byte","b":[0,0,0,0],"x":[8066,8190]},{"a":13836,"l":"f_360C","c":"For each sprite, the height of the frame last drawn into the second buffer","t":"byte","b":[0,0,0,0],"x":[8073,8196]},{"a":13840,"l":"draw_room","c":"From the main loop while a room is shown, when the camera has moved since the last pass: rebuilds the column index when the room's resource or the index has moved in the heap ($6914, $FC2E). When the camera has moved one column right ($CBC2 one more than $CBC3), shifts the room left in the screens and decodes only the new rightmost column ($3E zero); one column left, shifts it right and decodes the leftmost ($3E $FF); otherwise decodes all 40 columns ($3E 1). Each column is decoded for its characters into the hidden screen ($23/$24), its colours into the colour buffer at $64F5 and its mask into the mask screen at $624D. Then draws the room's objects over it","t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882,"x":[1418]},{"a":13843,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":13846,"t":"code","b":[205,20,105],"m":"cmp","o":"a_6914","oa":26900},{"a":13849,"t":"code","b":[208,27],"m":"bne","o":"b_3636","oa":13878},{"a":13851,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":13854,"t":"code","b":[205,21,105],"m":"cmp","o":"a_6915","oa":26901},{"a":13857,"t":"code","b":[208,19],"m":"bne","o":"b_3636","oa":13878},{"a":13859,"t":"code","b":[173,178,119],"m":"lda","o":"a_77B2","oa":30642},{"a":13862,"t":"code","b":[205,46,252],"m":"cmp","o":"a_FC2E","oa":64558},{"a":13865,"t":"code","b":[208,11],"m":"bne","o":"b_3636","oa":13878},{"a":13867,"t":"code","b":[173,143,119],"m":"lda","o":"a_778F","oa":30607},{"a":13870,"t":"code","b":[205,47,252],"m":"cmp","o":"a_FC2F","oa":64559},{"a":13873,"t":"code","b":[208,3],"m":"bne","o":"b_3636","oa":13878},{"a":13875,"t":"code","b":[76,69,54],"m":"jmp","o":"j_3645","oa":13893},{"a":13878,"l":"b_3636","t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626,"x":[13849,13857,13865,13873]},{"a":13881,"t":"code","b":[141,20,105],"m":"sta","o":"a_6914","oa":26900},{"a":13884,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":13887,"t":"code","b":[141,21,105],"m":"sta","o":"a_6915","oa":26901},{"a":13890,"t":"code","b":[32,217,56],"m":"jsr","o":"build_column_index","oa":14553},{"a":13893,"l":"j_3645","t":"code","b":[174,194,203],"m":"ldx","o":"camera_x","oa":52162,"x":[13875]},{"a":13896,"t":"code","b":[202],"m":"dex"},{"a":13897,"t":"code","b":[236,195,203],"m":"cpx","o":"camera_drawn","oa":52163},{"a":13900,"t":"code","b":[208,55],"m":"bne","o":"b_3685","oa":13957},{"a":13902,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13904,"t":"code","b":[133,62],"m":"sta","o":"zpa_3E","oa":62},{"a":13906,"t":"code","b":[32,37,56],"m":"jsr","o":"shift_room_left","oa":14373},{"a":13909,"t":"code","b":[24],"m":"clc"},{"a":13910,"t":"code","b":[165,35],"m":"lda","o":"zpa_23","oa":35},{"a":13912,"t":"code","b":[105,39],"m":"adc","o":"#$27"},{"a":13914,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":13916,"t":"code","b":[165,36],"m":"lda","o":"zpa_24","oa":36},{"a":13918,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":13920,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":13922,"t":"code","b":[24],"m":"clc"},{"a":13923,"t":"code","b":[169,245],"m":"lda","o":"#$F5"},{"a":13925,"t":"code","b":[105,39],"m":"adc","o":"#$27"},{"a":13927,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":13929,"t":"code","b":[169,100],"m":"lda","o":"#$64"},{"a":13931,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":13933,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":13935,"t":"code","b":[24],"m":"clc"},{"a":13936,"t":"code","b":[169,77],"m":"lda","o":"#$4D"},{"a":13938,"t":"code","b":[105,39],"m":"adc","o":"#$27"},{"a":13940,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":13942,"t":"code","b":[169,98],"m":"lda","o":"#$62"},{"a":13944,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":13946,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":13948,"t":"code","b":[173,192,203],"m":"lda","o":"view_left","oa":52160},{"a":13951,"t":"code","b":[24],"m":"clc"},{"a":13952,"t":"code","b":[105,39],"m":"adc","o":"#$27"},{"a":13954,"t":"code","b":[76,219,54],"m":"jmp","o":"j_36DB","oa":14043},{"a":13957,"l":"b_3685","t":"code","b":[174,194,203],"m":"ldx","o":"camera_x","oa":52162,"x":[13900]},{"a":13960,"t":"code","b":[232],"m":"inx"},{"a":13961,"t":"code","b":[236,195,203],"m":"cpx","o":"camera_drawn","oa":52163},{"a":13964,"t":"code","b":[208,41],"m":"bne","o":"b_36B7","oa":14007},{"a":13966,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":13968,"t":"code","b":[133,62],"m":"sta","o":"zpa_3E","oa":62},{"a":13970,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13972,"t":"code","b":[133,63],"m":"sta","o":"zpa_3F","oa":63},{"a":13974,"t":"code","b":[32,197,55],"m":"jsr","o":"shift_room_right","oa":14277},{"a":13977,"t":"code","b":[165,35],"m":"lda","o":"zpa_23","oa":35},{"a":13979,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":13981,"t":"code","b":[165,36],"m":"lda","o":"zpa_24","oa":36},{"a":13983,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":13985,"t":"code","b":[169,245],"m":"lda","o":"#$F5"},{"a":13987,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":13989,"t":"code","b":[169,100],"m":"lda","o":"#$64"},{"a":13991,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":13993,"t":"code","b":[169,77],"m":"lda","o":"#$4D"},{"a":13995,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":13997,"t":"code","b":[169,98],"m":"lda","o":"#$62"},{"a":13999,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":14001,"t":"code","b":[173,192,203],"m":"lda","o":"view_left","oa":52160},{"a":14004,"t":"code","b":[76,219,54],"m":"jmp","o":"j_36DB","oa":14043},{"a":14007,"l":"b_36B7","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[13964]},{"a":14009,"t":"code","b":[133,62],"m":"sta","o":"zpa_3E","oa":62},{"a":14011,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":14013,"t":"code","b":[141,196,55],"m":"sta","o":"a_37C4","oa":14276},{"a":14016,"t":"code","b":[165,35],"m":"lda","o":"zpa_23","oa":35},{"a":14018,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14020,"t":"code","b":[165,36],"m":"lda","o":"zpa_24","oa":36},{"a":14022,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14024,"t":"code","b":[169,245],"m":"lda","o":"#$F5"},{"a":14026,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":14028,"t":"code","b":[169,100],"m":"lda","o":"#$64"},{"a":14030,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":14032,"t":"code","b":[169,77],"m":"lda","o":"#$4D"},{"a":14034,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":14036,"t":"code","b":[169,98],"m":"lda","o":"#$62"},{"a":14038,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":14040,"t":"code","b":[173,192,203],"m":"lda","o":"view_left","oa":52160},{"a":14043,"l":"j_36DB","t":"code","b":[168],"m":"tay","x":[13954,14004]},{"a":14044,"t":"code","b":[165,23],"m":"lda","o":"zpa_17","oa":23},{"a":14046,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":14048,"t":"code","b":[165,24],"m":"lda","o":"zpa_18","oa":24},{"a":14050,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":14052,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":14054,"t":"code","b":[141,98,55],"m":"sta","o":"common_bytes_lo","oa":14178},{"a":14057,"t":"code","b":[169,105],"m":"lda","o":"#$69"},{"a":14059,"t":"code","b":[141,99,55],"m":"sta","o":"common_bytes_hi","oa":14179},{"a":14062,"t":"code","b":[177,84],"m":"lda","o":"(zpp_54),y","oa":84},{"a":14064,"t":"code","b":[133,38],"m":"sta","o":"zpp_26","oa":38},{"a":14066,"t":"code","b":[177,86],"m":"lda","o":"(zpp_56),y","oa":86},{"a":14068,"t":"code","b":[133,39],"m":"sta","o":"zpa_27","oa":39},{"a":14070,"t":"code","b":[177,90],"m":"lda","o":"(zpp_5A),y","oa":90},{"a":14072,"t":"code","b":[133,42],"m":"sta","o":"zpa_2A","oa":42},{"a":14074,"t":"code","b":[177,88],"m":"lda","o":"(zpp_58),y","oa":88},{"a":14076,"t":"code","b":[32,78,55],"m":"jsr","o":"decode_column","oa":14158},{"a":14079,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":14081,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":14083,"t":"code","b":[165,26],"m":"lda","o":"zpa_1A","oa":26},{"a":14085,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":14087,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":14089,"t":"code","b":[141,98,55],"m":"sta","o":"common_bytes_lo","oa":14178},{"a":14092,"t":"code","b":[169,105],"m":"lda","o":"#$69"},{"a":14094,"t":"code","b":[141,99,55],"m":"sta","o":"common_bytes_hi","oa":14179},{"a":14097,"t":"code","b":[177,92],"m":"lda","o":"(zpp_5C),y","oa":92},{"a":14099,"t":"code","b":[133,38],"m":"sta","o":"zpp_26","oa":38},{"a":14101,"t":"code","b":[177,94],"m":"lda","o":"(zpp_5E),y","oa":94},{"a":14103,"t":"code","b":[133,39],"m":"sta","o":"zpa_27","oa":39},{"a":14105,"t":"code","b":[177,98],"m":"lda","o":"(zpp_62),y","oa":98},{"a":14107,"t":"code","b":[133,42],"m":"sta","o":"zpa_2A","oa":42},{"a":14109,"t":"code","b":[177,96],"m":"lda","o":"(zpp_60),y","oa":96},{"a":14111,"t":"code","b":[32,78,55],"m":"jsr","o":"decode_column","oa":14158},{"a":14114,"t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27},{"a":14116,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":14118,"t":"code","b":[165,28],"m":"lda","o":"zpa_1C","oa":28},{"a":14120,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":14122,"t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":14124,"t":"code","b":[141,98,55],"m":"sta","o":"common_bytes_lo","oa":14178},{"a":14127,"t":"code","b":[169,105],"m":"lda","o":"#$69"},{"a":14129,"t":"code","b":[141,99,55],"m":"sta","o":"common_bytes_hi","oa":14179},{"a":14132,"t":"code","b":[177,100],"m":"lda","o":"(zpp_64),y","oa":100},{"a":14134,"t":"code","b":[133,38],"m":"sta","o":"zpp_26","oa":38},{"a":14136,"t":"code","b":[177,102],"m":"lda","o":"(zpp_66),y","oa":102},{"a":14138,"t":"code","b":[133,39],"m":"sta","o":"zpa_27","oa":39},{"a":14140,"t":"code","b":[177,106],"m":"lda","o":"(zpp_6A),y","oa":106},{"a":14142,"t":"code","b":[133,42],"m":"sta","o":"zpa_2A","oa":42},{"a":14144,"t":"code","b":[177,104],"m":"lda","o":"(zpp_68),y","oa":104},{"a":14146,"t":"code","b":[32,78,55],"m":"jsr","o":"decode_column","oa":14158},{"a":14149,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14151,"t":"code","b":[141,196,55],"m":"sta","o":"a_37C4","oa":14276},{"a":14154,"t":"code","b":[32,202,49],"m":"jsr","o":"draw_room_objects","oa":12746},{"a":14157,"t":"code","b":[96],"m":"rts"},{"a":14158,"l":"decode_column","c":"Decodes one column from the point in its stream that the column index gives (the pointer in $26/$27, the run under way in A and $2A, the four common bytes from the LDA at $3761, which is pointed at $6904, $6908 or $690C), writing a byte to each of the room's rows ($68F3), 40 bytes apart; or, when $37C4 is set, all 40 columns of the view one after another","t":"code","b":[16,9],"m":"bpl","o":"b_3759","oa":14169,"x":[14076,14111,14146]},{"a":14160,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":14162,"t":"code","b":[133,41],"m":"sta","o":"zpa_29","oa":41},{"a":14164,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":14166,"t":"code","b":[76,93,55],"m":"jmp","o":"j_375D","oa":14173},{"a":14169,"l":"b_3759","t":"code","b":[133,41],"m":"sta","o":"zpa_29","oa":41,"x":[14158]},{"a":14171,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14173,"l":"j_375D","t":"code","b":[133,40],"m":"sta","o":"zpa_28","oa":40,"x":[14166]},{"a":14175,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":14177,"l":"b_3761","t":"code","b":[189,255,255],"m":"lda","o":"$FFFF,x","oa":65535,"x":[14184]},{"a":14178,"t":"note","l":"common_bytes_lo","c":"The address of the stream's four common bytes, written into this LDA by draw_room","note":"inside the item at $3761","x":[14054,14089,14124]},{"a":14179,"t":"note","l":"common_bytes_hi","c":"The high byte of the common bytes' address, written by draw_room ($36EB, $370E, $3731); then the column is decoded a byte to each of the room's rows, 40 bytes apart, or, when $37C4 is set, across all 40 columns of the view one after another ($379B)","note":"inside the item at $3761","x":[14059,14094,14129]},{"a":14180,"t":"code","b":[157,0,1],"m":"sta","o":"f_0100,x","oa":256},{"a":14183,"t":"code","b":[202],"m":"dex"},{"a":14184,"t":"code","b":[16,247],"m":"bpl","o":"b_3761","oa":14177},{"a":14186,"t":"code","b":[173,196,55],"m":"lda","o":"a_37C4","oa":14276},{"a":14189,"t":"code","b":[240,3],"m":"beq","o":"b_3772","oa":14194},{"a":14191,"t":"code","b":[76,155,55],"m":"jmp","o":"j_379B","oa":14235},{"a":14194,"l":"b_3772","t":"code","b":[142,192,55],"m":"stx","o":"a_37C0","oa":14272,"x":[14189,14248]},{"a":14197,"t":"code","b":[140,194,55],"m":"sty","o":"a_37C2","oa":14274},{"a":14200,"t":"code","b":[173,243,104],"m":"lda","o":"a_68F3","oa":26867},{"a":14203,"t":"code","b":[56],"m":"sec"},{"a":14204,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":14206,"t":"code","b":[133,81],"m":"sta","o":"zpa_51","oa":81},{"a":14208,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":14210,"l":"b_3782","t":"code","b":[32,34,1],"m":"jsr","o":"decode_byte","oa":290,"x":[14226]},{"a":14213,"t":"code","b":[145,21],"m":"sta","o":"(zpa_15),y","oa":21},{"a":14215,"t":"code","b":[152],"m":"tya"},{"a":14216,"t":"code","b":[24],"m":"clc"},{"a":14217,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":14219,"t":"code","b":[168],"m":"tay"},{"a":14220,"t":"code","b":[144,2],"m":"bcc","o":"b_3790","oa":14224},{"a":14222,"t":"code","b":[230,22],"m":"inc","o":"zpa_16","oa":22},{"a":14224,"l":"b_3790","t":"code","b":[198,81],"m":"dec","o":"zpa_51","oa":81,"x":[14220]},{"a":14226,"t":"code","b":[16,238],"m":"bpl","o":"b_3782","oa":14210},{"a":14228,"t":"code","b":[174,192,55],"m":"ldx","o":"a_37C0","oa":14272},{"a":14231,"t":"code","b":[172,194,55],"m":"ldy","o":"a_37C2","oa":14274},{"a":14234,"t":"code","b":[96],"m":"rts"},{"a":14235,"l":"j_379B","t":"code","b":[140,195,55],"m":"sty","o":"a_37C3","oa":14275,"x":[14191]},{"a":14238,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":14240,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14242,"t":"code","b":[165,22],"m":"lda","o":"zpa_16","oa":22},{"a":14244,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14246,"t":"code","b":[160,39],"m":"ldy","o":"#$27"},{"a":14248,"l":"b_37A8","t":"code","b":[32,114,55],"m":"jsr","o":"b_3772","oa":14194,"x":[14266]},{"a":14251,"t":"code","b":[230,23],"m":"inc","o":"zpa_17","oa":23},{"a":14253,"t":"code","b":[208,2],"m":"bne","o":"b_37B1","oa":14257},{"a":14255,"t":"code","b":[230,24],"m":"inc","o":"zpa_18","oa":24},{"a":14257,"l":"b_37B1","t":"code","b":[165,23],"m":"lda","o":"zpa_17","oa":23,"x":[14253]},{"a":14259,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":14261,"t":"code","b":[165,24],"m":"lda","o":"zpa_18","oa":24},{"a":14263,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":14265,"t":"code","b":[136],"m":"dey"},{"a":14266,"t":"code","b":[16,236],"m":"bpl","o":"b_37A8","oa":14248},{"a":14268,"t":"code","b":[172,195,55],"m":"ldy","o":"a_37C3","oa":14275},{"a":14271,"t":"code","b":[96],"m":"rts"},{"a":14272,"l":"a_37C0","c":"X kept while a column is decoded; $37C1 not used","t":"byte","b":[0,0],"x":[14194,14228,14920,14926]},{"a":14274,"l":"a_37C2","c":"Y kept while a column is decoded","t":"byte","b":[0],"x":[14197,14231]},{"a":14275,"l":"a_37C3","c":"Y kept while the 40 columns are decoded","t":"byte","b":[0],"x":[14235,14268]},{"a":14276,"l":"a_37C4","c":"Set when the whole view is decoded","t":"byte","b":[0],"x":[14013,14151,14186]},{"a":14277,"l":"shift_room_right","c":"After a scroll to the left: copies the room's 16 rows, each one column further right, from the screen shown (or, while the flashlight is on, from the hidden screen itself) into the hidden screen, and the colour buffer and the mask screen each one column right in place, leaving the left column for the new one","t":"code","b":[165,34],"m":"lda","o":"zpa_22","oa":34,"x":[13974]},{"a":14279,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":14281,"t":"code","b":[208,11],"m":"bne","o":"b_37D6","oa":14294},{"a":14283,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":14285,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14287,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":14289,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14291,"t":"code","b":[76,222,55],"m":"jmp","o":"j_37DE","oa":14302},{"a":14294,"l":"b_37D6","t":"code","b":[169,80],"m":"lda","o":"#$50","x":[14281]},{"a":14296,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14298,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":14300,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14302,"l":"j_37DE","t":"code","b":[165,35],"m":"lda","o":"zpa_23","oa":35,"x":[14291]},{"a":14304,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":14306,"t":"code","b":[165,36],"m":"lda","o":"zpa_24","oa":36},{"a":14308,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":14310,"t":"code","b":[173,122,254],"m":"lda","o":"a_FE7A","oa":65146},{"a":14313,"t":"code","b":[41,4],"m":"and","o":"#$04"},{"a":14315,"t":"code","b":[240,8],"m":"beq","o":"b_37F5","oa":14325},{"a":14317,"t":"code","b":[165,35],"m":"lda","o":"zpa_23","oa":35},{"a":14319,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14321,"t":"code","b":[165,36],"m":"lda","o":"zpa_24","oa":36},{"a":14323,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14325,"l":"b_37F5","t":"code","b":[230,25],"m":"inc","o":"zpa_19","oa":25,"x":[14315]},{"a":14327,"t":"code","b":[208,2],"m":"bne","o":"b_37FB","oa":14331},{"a":14329,"t":"code","b":[230,26],"m":"inc","o":"zpa_1A","oa":26},{"a":14331,"l":"b_37FB","t":"code","b":[32,133,56],"m":"jsr","o":"copy_rows_right","oa":14469,"x":[14327]},{"a":14334,"t":"code","b":[169,245],"m":"lda","o":"#$F5"},{"a":14336,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14338,"t":"code","b":[169,100],"m":"lda","o":"#$64"},{"a":14340,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14342,"t":"code","b":[169,246],"m":"lda","o":"#$F6"},{"a":14344,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":14346,"t":"code","b":[169,100],"m":"lda","o":"#$64"},{"a":14348,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":14350,"t":"code","b":[32,133,56],"m":"jsr","o":"copy_rows_right","oa":14469},{"a":14353,"t":"code","b":[169,77],"m":"lda","o":"#$4D"},{"a":14355,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14357,"t":"code","b":[169,98],"m":"lda","o":"#$62"},{"a":14359,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14361,"t":"code","b":[169,78],"m":"lda","o":"#$4E"},{"a":14363,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":14365,"t":"code","b":[169,98],"m":"lda","o":"#$62"},{"a":14367,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":14369,"t":"code","b":[32,133,56],"m":"jsr","o":"copy_rows_right","oa":14469},{"a":14372,"t":"code","b":[96],"m":"rts"},{"a":14373,"l":"shift_room_left","c":"After a scroll to the right: the same, one column further left, leaving the right column for the new one","t":"code","b":[165,34],"m":"lda","o":"zpa_22","oa":34,"x":[13906]},{"a":14375,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":14377,"t":"code","b":[208,11],"m":"bne","o":"b_3836","oa":14390},{"a":14379,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":14381,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14383,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":14385,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14387,"t":"code","b":[76,62,56],"m":"jmp","o":"j_383E","oa":14398},{"a":14390,"l":"b_3836","t":"code","b":[169,80],"m":"lda","o":"#$50","x":[14377]},{"a":14392,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14394,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":14396,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14398,"l":"j_383E","t":"code","b":[165,35],"m":"lda","o":"zpa_23","oa":35,"x":[14387]},{"a":14400,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":14402,"t":"code","b":[165,36],"m":"lda","o":"zpa_24","oa":36},{"a":14404,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":14406,"t":"code","b":[173,122,254],"m":"lda","o":"a_FE7A","oa":65146},{"a":14409,"t":"code","b":[41,4],"m":"and","o":"#$04"},{"a":14411,"t":"code","b":[240,8],"m":"beq","o":"b_3855","oa":14421},{"a":14413,"t":"code","b":[165,35],"m":"lda","o":"zpa_23","oa":35},{"a":14415,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14417,"t":"code","b":[165,36],"m":"lda","o":"zpa_24","oa":36},{"a":14419,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14421,"l":"b_3855","t":"code","b":[230,23],"m":"inc","o":"zpa_17","oa":23,"x":[14411]},{"a":14423,"t":"code","b":[208,2],"m":"bne","o":"b_385B","oa":14427},{"a":14425,"t":"code","b":[230,24],"m":"inc","o":"zpa_18","oa":24},{"a":14427,"l":"b_385B","t":"code","b":[32,174,56],"m":"jsr","o":"copy_rows","oa":14510,"x":[14423]},{"a":14430,"t":"code","b":[169,246],"m":"lda","o":"#$F6"},{"a":14432,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14434,"t":"code","b":[169,100],"m":"lda","o":"#$64"},{"a":14436,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14438,"t":"code","b":[169,245],"m":"lda","o":"#$F5"},{"a":14440,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":14442,"t":"code","b":[169,100],"m":"lda","o":"#$64"},{"a":14444,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":14446,"t":"code","b":[32,174,56],"m":"jsr","o":"copy_rows","oa":14510},{"a":14449,"t":"code","b":[169,78],"m":"lda","o":"#$4E"},{"a":14451,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14453,"t":"code","b":[169,98],"m":"lda","o":"#$62"},{"a":14455,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14457,"t":"code","b":[169,77],"m":"lda","o":"#$4D"},{"a":14459,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":14461,"t":"code","b":[169,98],"m":"lda","o":"#$62"},{"a":14463,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":14465,"t":"code","b":[32,174,56],"m":"jsr","o":"copy_rows","oa":14510},{"a":14468,"t":"code","b":[96],"m":"rts"},{"a":14469,"l":"copy_rows_right","c":"Copies 16 rows of 39 bytes from $17/$18 to $19/$1A, from the right-hand end, so a copy one byte along does not run over itself","t":"code","b":[162,15],"m":"ldx","o":"#$0F","x":[14331,14350,14369]},{"a":14471,"l":"b_3887","t":"code","b":[160,38],"m":"ldy","o":"#$26","x":[14507]},{"a":14473,"l":"b_3889","t":"code","b":[177,23],"m":"lda","o":"(zpa_17),y","oa":23,"x":[14478]},{"a":14475,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":14477,"t":"code","b":[136],"m":"dey"},{"a":14478,"t":"code","b":[16,249],"m":"bpl","o":"b_3889","oa":14473},{"a":14480,"t":"code","b":[24],"m":"clc"},{"a":14481,"t":"code","b":[165,23],"m":"lda","o":"zpa_17","oa":23},{"a":14483,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":14485,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14487,"t":"code","b":[165,24],"m":"lda","o":"zpa_18","oa":24},{"a":14489,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":14491,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14493,"t":"code","b":[24],"m":"clc"},{"a":14494,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":14496,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":14498,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":14500,"t":"code","b":[165,26],"m":"lda","o":"zpa_1A","oa":26},{"a":14502,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":14504,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":14506,"t":"code","b":[202],"m":"dex"},{"a":14507,"t":"code","b":[16,218],"m":"bpl","o":"b_3887","oa":14471},{"a":14509,"t":"code","b":[96],"m":"rts"},{"a":14510,"l":"copy_rows","c":"Copies 16 rows of 40 bytes from $17/$18 to $19/$1A","t":"code","b":[162,15],"m":"ldx","o":"#$0F","x":[13395,14427,14446,14465]},{"a":14512,"l":"b_38B0","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[14550]},{"a":14514,"l":"b_38B2","t":"code","b":[177,23],"m":"lda","o":"(zpa_17),y","oa":23,"x":[14521]},{"a":14516,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":14518,"t":"code","b":[200],"m":"iny"},{"a":14519,"t":"code","b":[192,40],"m":"cpy","o":"#$28"},{"a":14521,"t":"code","b":[208,247],"m":"bne","o":"b_38B2","oa":14514},{"a":14523,"t":"code","b":[24],"m":"clc"},{"a":14524,"t":"code","b":[165,23],"m":"lda","o":"zpa_17","oa":23},{"a":14526,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":14528,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14530,"t":"code","b":[165,24],"m":"lda","o":"zpa_18","oa":24},{"a":14532,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":14534,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14536,"t":"code","b":[24],"m":"clc"},{"a":14537,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":14539,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":14541,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":14543,"t":"code","b":[165,26],"m":"lda","o":"zpa_1A","oa":26},{"a":14545,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":14547,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":14549,"t":"code","b":[202],"m":"dex"},{"a":14550,"t":"code","b":[16,216],"m":"bpl","o":"b_38B0","oa":14512},{"a":14552,"t":"code","b":[96],"m":"rts"},{"a":14553,"l":"build_column_index","c":"Builds the room's column index, so that a single column can be decoded when the room scrolls: frees the last, takes a heap block of twelve bytes a column ($77B2/$778F, and $FC2E/$FC2F to notice when it moves), and decodes the picture, the colours and the mask from their starts, keeping where each column begins in each stream: the pointer (low and high bytes), the run under way and the byte it repeats, in twelve tables of the room's width pointed to from $54-$6B","t":"code","b":[174,178,119],"m":"ldx","o":"a_77B2","oa":30642,"x":[11036,13890]},{"a":14556,"t":"code","b":[172,143,119],"m":"ldy","o":"a_778F","oa":30607},{"a":14559,"t":"code","b":[240,3],"m":"beq","o":"b_38E4","oa":14564},{"a":14561,"t":"code","b":[32,128,212],"m":"jsr","o":"free_block","oa":54400},{"a":14564,"l":"b_38E4","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[14559]},{"a":14566,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":14568,"t":"code","b":[173,242,104],"m":"lda","o":"a_68F2","oa":26866},{"a":14571,"t":"code","b":[10],"m":"asl","o":"a"},{"a":14572,"t":"code","b":[38,22],"m":"rol","o":"zpa_16","oa":22},{"a":14574,"t":"code","b":[10],"m":"asl","o":"a"},{"a":14575,"t":"code","b":[38,22],"m":"rol","o":"zpa_16","oa":22},{"a":14577,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":14579,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14581,"t":"code","b":[165,22],"m":"lda","o":"zpa_16","oa":22},{"a":14583,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14585,"t":"code","b":[6,21],"m":"asl","o":"zpa_15","oa":21},{"a":14587,"t":"code","b":[38,22],"m":"rol","o":"zpa_16","oa":22},{"a":14589,"t":"code","b":[24],"m":"clc"},{"a":14590,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":14592,"t":"code","b":[101,23],"m":"adc","o":"zpa_17","oa":23},{"a":14594,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":14596,"t":"code","b":[165,22],"m":"lda","o":"zpa_16","oa":22},{"a":14598,"t":"code","b":[101,24],"m":"adc","o":"zpa_18","oa":24},{"a":14600,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":14602,"t":"code","b":[24],"m":"clc"},{"a":14603,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":14605,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":14607,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":14609,"t":"code","b":[165,22],"m":"lda","o":"zpa_16","oa":22},{"a":14611,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":14613,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":14615,"t":"code","b":[166,21],"m":"ldx","o":"zpa_15","oa":21},{"a":14617,"t":"code","b":[164,22],"m":"ldy","o":"zpa_16","oa":22},{"a":14619,"t":"code","b":[32,114,212],"m":"jsr","o":"alloc_block","oa":54386},{"a":14622,"t":"code","b":[134,63],"m":"stx","o":"zpa_3F","oa":63},{"a":14624,"t":"code","b":[132,64],"m":"sty","o":"zpa_40","oa":64},{"a":14626,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":14628,"t":"code","b":[141,8,214],"m":"sta","o":"resource_type","oa":54792},{"a":14631,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14633,"t":"code","b":[141,7,214],"m":"sta","o":"resource_number","oa":54791},{"a":14636,"t":"code","b":[32,149,213],"m":"jsr","o":"write_block_header","oa":54677},{"a":14639,"t":"code","b":[166,63],"m":"ldx","o":"zpa_3F","oa":63},{"a":14641,"t":"code","b":[164,64],"m":"ldy","o":"zpa_40","oa":64},{"a":14643,"t":"code","b":[142,178,119],"m":"stx","o":"a_77B2","oa":30642},{"a":14646,"t":"code","b":[140,143,119],"m":"sty","o":"a_778F","oa":30607},{"a":14649,"t":"code","b":[142,46,252],"m":"stx","o":"a_FC2E","oa":64558},{"a":14652,"t":"code","b":[140,47,252],"m":"sty","o":"a_FC2F","oa":64559},{"a":14655,"t":"code","b":[134,23],"m":"stx","o":"zpa_17","oa":23},{"a":14657,"t":"code","b":[132,24],"m":"sty","o":"zpa_18","oa":24},{"a":14659,"t":"code","b":[24],"m":"clc"},{"a":14660,"t":"code","b":[165,23],"m":"lda","o":"zpa_17","oa":23},{"a":14662,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":14664,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14666,"t":"code","b":[165,24],"m":"lda","o":"zpa_18","oa":24},{"a":14668,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":14670,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14672,"t":"code","b":[173,242,104],"m":"lda","o":"a_68F2","oa":26866},{"a":14675,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":14677,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14679,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":14681,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":14683,"l":"b_395B","t":"code","b":[165,23],"m":"lda","o":"zpa_17","oa":23,"x":[14710]},{"a":14685,"t":"code","b":[153,84,0],"m":"sta","o":"zpp_54,y","oa":84},{"a":14688,"t":"code","b":[165,24],"m":"lda","o":"zpa_18","oa":24},{"a":14690,"t":"code","b":[153,85,0],"m":"sta","o":"f_0055,y","oa":85},{"a":14693,"t":"code","b":[24],"m":"clc"},{"a":14694,"t":"code","b":[165,23],"m":"lda","o":"zpa_17","oa":23},{"a":14696,"t":"code","b":[101,21],"m":"adc","o":"zpa_15","oa":21},{"a":14698,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14700,"t":"code","b":[165,24],"m":"lda","o":"zpa_18","oa":24},{"a":14702,"t":"code","b":[101,22],"m":"adc","o":"zpa_16","oa":22},{"a":14704,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14706,"t":"code","b":[200],"m":"iny"},{"a":14707,"t":"code","b":[200],"m":"iny"},{"a":14708,"t":"code","b":[192,24],"m":"cpy","o":"#$18"},{"a":14710,"t":"code","b":[208,227],"m":"bne","o":"b_395B","oa":14683},{"a":14712,"t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882},{"a":14715,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":14718,"t":"code","b":[141,91,58],"m":"sta","o":"a_3A5B","oa":14939},{"a":14721,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":14724,"t":"code","b":[141,92,58],"m":"sta","o":"a_3A5C","oa":14940},{"a":14727,"t":"code","b":[24],"m":"clc"},{"a":14728,"t":"code","b":[173,91,58],"m":"lda","o":"a_3A5B","oa":14939},{"a":14731,"t":"code","b":[109,250,104],"m":"adc","o":"a_68FA","oa":26874},{"a":14734,"t":"code","b":[133,38],"m":"sta","o":"zpp_26","oa":38},{"a":14736,"t":"code","b":[173,92,58],"m":"lda","o":"a_3A5C","oa":14940},{"a":14739,"t":"code","b":[109,251,104],"m":"adc","o":"a_68FB","oa":26875},{"a":14742,"t":"code","b":[133,39],"m":"sta","o":"zpa_27","oa":39},{"a":14744,"t":"code","b":[165,84],"m":"lda","o":"zpp_54","oa":84},{"a":14746,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14748,"t":"code","b":[165,85],"m":"lda","o":"f_0055","oa":85},{"a":14750,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14752,"t":"code","b":[165,86],"m":"lda","o":"zpp_56","oa":86},{"a":14754,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":14756,"t":"code","b":[165,87],"m":"lda","o":"zpa_57","oa":87},{"a":14758,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":14760,"t":"code","b":[165,88],"m":"lda","o":"zpp_58","oa":88},{"a":14762,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":14764,"t":"code","b":[165,89],"m":"lda","o":"zpa_59","oa":89},{"a":14766,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":14768,"t":"code","b":[165,90],"m":"lda","o":"zpp_5A","oa":90},{"a":14770,"t":"code","b":[133,29],"m":"sta","o":"zpa_1D","oa":29},{"a":14772,"t":"code","b":[165,91],"m":"lda","o":"zpa_5B","oa":91},{"a":14774,"t":"code","b":[133,30],"m":"sta","o":"zpa_1E","oa":30},{"a":14776,"t":"code","b":[32,36,58],"m":"jsr","o":"index_stream","oa":14884},{"a":14779,"t":"code","b":[24],"m":"clc"},{"a":14780,"t":"code","b":[173,91,58],"m":"lda","o":"a_3A5B","oa":14939},{"a":14783,"t":"code","b":[109,252,104],"m":"adc","o":"a_68FC","oa":26876},{"a":14786,"t":"code","b":[133,38],"m":"sta","o":"zpp_26","oa":38},{"a":14788,"t":"code","b":[173,92,58],"m":"lda","o":"a_3A5C","oa":14940},{"a":14791,"t":"code","b":[109,253,104],"m":"adc","o":"a_68FD","oa":26877},{"a":14794,"t":"code","b":[133,39],"m":"sta","o":"zpa_27","oa":39},{"a":14796,"t":"code","b":[165,92],"m":"lda","o":"zpp_5C","oa":92},{"a":14798,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14800,"t":"code","b":[165,93],"m":"lda","o":"zpa_5D","oa":93},{"a":14802,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14804,"t":"code","b":[165,94],"m":"lda","o":"zpp_5E","oa":94},{"a":14806,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":14808,"t":"code","b":[165,95],"m":"lda","o":"zpa_5F","oa":95},{"a":14810,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":14812,"t":"code","b":[165,96],"m":"lda","o":"zpp_60","oa":96},{"a":14814,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":14816,"t":"code","b":[165,97],"m":"lda","o":"zpa_61","oa":97},{"a":14818,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":14820,"t":"code","b":[165,98],"m":"lda","o":"zpp_62","oa":98},{"a":14822,"t":"code","b":[133,29],"m":"sta","o":"zpa_1D","oa":29},{"a":14824,"t":"code","b":[165,99],"m":"lda","o":"zpa_63","oa":99},{"a":14826,"t":"code","b":[133,30],"m":"sta","o":"zpa_1E","oa":30},{"a":14828,"t":"code","b":[32,36,58],"m":"jsr","o":"index_stream","oa":14884},{"a":14831,"t":"code","b":[24],"m":"clc"},{"a":14832,"t":"code","b":[173,91,58],"m":"lda","o":"a_3A5B","oa":14939},{"a":14835,"t":"code","b":[109,254,104],"m":"adc","o":"a_68FE","oa":26878},{"a":14838,"t":"code","b":[133,38],"m":"sta","o":"zpp_26","oa":38},{"a":14840,"t":"code","b":[173,92,58],"m":"lda","o":"a_3A5C","oa":14940},{"a":14843,"t":"code","b":[109,255,104],"m":"adc","o":"a_68FF","oa":26879},{"a":14846,"t":"code","b":[133,39],"m":"sta","o":"zpa_27","oa":39},{"a":14848,"t":"code","b":[165,100],"m":"lda","o":"zpp_64","oa":100},{"a":14850,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":14852,"t":"code","b":[165,101],"m":"lda","o":"zpa_65","oa":101},{"a":14854,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":14856,"t":"code","b":[165,102],"m":"lda","o":"zpp_66","oa":102},{"a":14858,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":14860,"t":"code","b":[165,103],"m":"lda","o":"zpa_67","oa":103},{"a":14862,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":14864,"t":"code","b":[165,104],"m":"lda","o":"zpp_68","oa":104},{"a":14866,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":14868,"t":"code","b":[165,105],"m":"lda","o":"zpa_69","oa":105},{"a":14870,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":14872,"t":"code","b":[165,106],"m":"lda","o":"zpp_6A","oa":106},{"a":14874,"t":"code","b":[133,29],"m":"sta","o":"zpa_1D","oa":29},{"a":14876,"t":"code","b":[165,107],"m":"lda","o":"zpa_6B","oa":107},{"a":14878,"t":"code","b":[133,30],"m":"sta","o":"zpa_1E","oa":30},{"a":14880,"t":"code","b":[32,36,58],"m":"jsr","o":"index_stream","oa":14884},{"a":14883,"t":"code","b":[96],"m":"rts"},{"a":14884,"l":"index_stream","c":"Decodes the stream at $26/$27 a column at a time (the room's height in bytes each), filing at the start of each column the pointer, the run (with bit 7 for a repeat) and its byte into the four tables at $17, $19, $1B and $1D","t":"code","b":[32,4,1],"m":"jsr","o":"decode_start","oa":260,"x":[14776,14828,14880]},{"a":14887,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":14889,"l":"b_3A29","t":"code","b":[165,38],"m":"lda","o":"zpp_26","oa":38,"x":[14936]},{"a":14891,"t":"code","b":[145,23],"m":"sta","o":"(zpa_17),y","oa":23},{"a":14893,"t":"code","b":[165,39],"m":"lda","o":"zpa_27","oa":39},{"a":14895,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":14897,"t":"code","b":[165,40],"m":"lda","o":"zpa_28","oa":40},{"a":14899,"t":"code","b":[16,7],"m":"bpl","o":"b_3A3C","oa":14908},{"a":14901,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":14903,"t":"code","b":[5,41],"m":"ora","o":"zpa_29","oa":41},{"a":14905,"t":"code","b":[76,62,58],"m":"jmp","o":"j_3A3E","oa":14910},{"a":14908,"l":"b_3A3C","t":"code","b":[165,41],"m":"lda","o":"zpa_29","oa":41,"x":[14899]},{"a":14910,"l":"j_3A3E","t":"code","b":[145,27],"m":"sta","o":"(zpa_1B),y","oa":27,"x":[14905]},{"a":14912,"t":"code","b":[165,42],"m":"lda","o":"zpa_2A","oa":42},{"a":14914,"t":"code","b":[145,29],"m":"sta","o":"(zpa_1D),y","oa":29},{"a":14916,"t":"code","b":[174,243,104],"m":"ldx","o":"a_68F3","oa":26867},{"a":14919,"t":"code","b":[202],"m":"dex"},{"a":14920,"l":"b_3A48","t":"code","b":[142,192,55],"m":"stx","o":"a_37C0","oa":14272,"x":[14930]},{"a":14923,"t":"code","b":[32,34,1],"m":"jsr","o":"decode_byte","oa":290},{"a":14926,"t":"code","b":[174,192,55],"m":"ldx","o":"a_37C0","oa":14272},{"a":14929,"t":"code","b":[202],"m":"dex"},{"a":14930,"t":"code","b":[16,244],"m":"bpl","o":"b_3A48","oa":14920},{"a":14932,"t":"code","b":[200],"m":"iny"},{"a":14933,"t":"code","b":[204,242,104],"m":"cpy","o":"a_68F2","oa":26866},{"a":14936,"t":"code","b":[208,207],"m":"bne","o":"b_3A29","oa":14889},{"a":14938,"t":"code","b":[96],"m":"rts"},{"a":14939,"l":"a_3A5B","c":"The room's address, while the column index is built ($3A5C high)","t":"byte","b":[0],"x":[14718,14728,14780,14832]},{"a":14940,"l":"a_3A5C","c":"The high byte of the room's address, while the column index is built","t":"byte","b":[0],"x":[14724,14736,14788,14840]},{"a":14941,"l":"disk_seek","c":"Sets the start of the disk data to sector X of track Y, with nothing read yet. The game's data are laid out in sectors one after another, every byte of each used, with no links between them","t":"code","b":[142,189,59],"m":"stx","o":"a_3BBD","oa":15293,"x":[1128,2654,2678,2702,2726,2750,12295,14968,54724]},{"a":14944,"t":"code","b":[140,190,59],"m":"sty","o":"a_3BBE","oa":15294},{"a":14947,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14949,"t":"code","b":[141,193,59],"m":"sta","o":"a_3BC1","oa":15297},{"a":14952,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14954,"t":"code","b":[141,194,59],"m":"sta","o":"a_3BC2","oa":15298},{"a":14957,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14959,"t":"code","b":[141,196,59],"m":"sta","o":"a_3BC4","oa":15300},{"a":14962,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":14964,"t":"code","b":[141,197,59],"m":"sta","o":"a_3BC5","oa":15301},{"a":14967,"t":"code","b":[96],"m":"rts"},{"a":14968,"l":"disk_read_start","c":"Seeks to sector X of track Y (disk_seek) and reads the first sector there","t":"code","b":[32,93,58],"m":"jsr","o":"disk_seek","oa":14941,"x":[2789,2813,2837,2861,2888,12309]},{"a":14971,"t":"code","b":[174,196,59],"m":"ldx","o":"a_3BC4","oa":15300},{"a":14974,"t":"code","b":[172,197,59],"m":"ldy","o":"a_3BC5","oa":15301},{"a":14977,"l":"disk_read_from","c":"Reads, from the start set by disk_seek, Y sectors further on, and makes byte X of it the next to be read","t":"code","b":[142,196,59],"m":"stx","o":"a_3BC4","oa":15300,"x":[1135,1159,54473,54547,54731]},{"a":14980,"t":"code","b":[140,197,59],"m":"sty","o":"a_3BC5","oa":15301},{"a":14983,"t":"code","b":[173,189,59],"m":"lda","o":"a_3BBD","oa":15293},{"a":14986,"t":"code","b":[141,191,59],"m":"sta","o":"a_3BBF","oa":15295},{"a":14989,"t":"code","b":[173,190,59],"m":"lda","o":"a_3BBE","oa":15294},{"a":14992,"t":"code","b":[141,192,59],"m":"sta","o":"a_3BC0","oa":15296},{"a":14995,"t":"code","b":[173,197,59],"m":"lda","o":"a_3BC5","oa":15301},{"a":14998,"t":"code","b":[240,7],"m":"beq","o":"b_3A9F","oa":15007},{"a":15000,"t":"code","b":[170],"m":"tax"},{"a":15001,"l":"b_3A99","t":"code","b":[32,56,59],"m":"jsr","o":"next_sector","oa":15160,"x":[15005]},{"a":15004,"t":"code","b":[202],"m":"dex"},{"a":15005,"t":"code","b":[208,250],"m":"bne","o":"b_3A99","oa":15001},{"a":15007,"l":"b_3A9F","t":"code","b":[173,196,59],"m":"lda","o":"a_3BC4","oa":15300,"x":[14998]},{"a":15010,"t":"code","b":[141,195,59],"m":"sta","o":"a_3BC3","oa":15299},{"a":15013,"t":"code","b":[32,117,59],"m":"jsr","o":"disk_read_sector","oa":15221},{"a":15016,"t":"code","b":[96],"m":"rts"},{"a":15017,"l":"disk_read_bytes","c":"Copies the number of bytes in $3BC6/$3BC7 from the disk, through disk_byte, to X/Y on (the STA at $3AB2)","t":"code","b":[142,179,58],"m":"stx","o":"read_bytes_to_lo","oa":15027,"x":[1152,1176,2806,2830,2854,2878,54490,54568,54748]},{"a":15020,"t":"code","b":[140,180,58],"m":"sty","o":"read_bytes_to_hi","oa":15028},{"a":15023,"l":"b_3AAF","t":"code","b":[32,24,59],"m":"jsr","o":"disk_byte","oa":15128,"x":[15054]},{"a":15026,"t":"code","b":[141,255,255],"m":"sta","o":"$FFFF","oa":65535},{"a":15027,"t":"note","l":"read_bytes_to_lo","c":"The low byte of where the bytes go, written from X at $3AA9 and stepped after each byte","note":"inside the item at $3AB2","x":[15017,15029]},{"a":15028,"t":"note","l":"read_bytes_to_hi","c":"The high byte, written from Y at $3AAC; the copy runs until the count in $3BC6/$3BC7 is down to zero","note":"inside the item at $3AB2","x":[15020,15034]},{"a":15029,"t":"code","b":[238,179,58],"m":"inc","o":"read_bytes_to_lo","oa":15027},{"a":15032,"t":"code","b":[208,3],"m":"bne","o":"b_3ABD","oa":15037},{"a":15034,"t":"code","b":[238,180,58],"m":"inc","o":"read_bytes_to_hi","oa":15028},{"a":15037,"l":"b_3ABD","t":"code","b":[173,198,59],"m":"lda","o":"a_3BC6","oa":15302,"x":[15032]},{"a":15040,"t":"code","b":[208,3],"m":"bne","o":"b_3AC5","oa":15045},{"a":15042,"t":"code","b":[206,199,59],"m":"dec","o":"a_3BC7","oa":15303},{"a":15045,"l":"b_3AC5","t":"code","b":[206,198,59],"m":"dec","o":"a_3BC6","oa":15302,"x":[15040]},{"a":15048,"t":"code","b":[173,198,59],"m":"lda","o":"a_3BC6","oa":15302},{"a":15051,"t":"code","b":[13,199,59],"m":"ora","o":"a_3BC7","oa":15303},{"a":15054,"t":"code","b":[208,223],"m":"bne","o":"b_3AAF","oa":15023},{"a":15056,"t":"code","b":[96],"m":"rts"},{"a":15057,"l":"disk_write","c":"Writes the bytes from X/Y on to the disk from the start set by disk_seek, 256 bytes to a sector, as many sectors as $3BC6/$3BC7 cover rounded up. The check for a sector the drive would not take (\"Disk Error, push button to continue.\" and another try) is never met: bus_write_sector always returns with the carry clear","t":"code","b":[142,187,59],"m":"stx","o":"a_3BBB","oa":15291,"x":[2671,2695,2719,2743,2767]},{"a":15060,"t":"code","b":[140,188,59],"m":"sty","o":"a_3BBC","oa":15292},{"a":15063,"t":"code","b":[173,189,59],"m":"lda","o":"a_3BBD","oa":15293},{"a":15066,"t":"code","b":[141,191,59],"m":"sta","o":"a_3BBF","oa":15295},{"a":15069,"t":"code","b":[173,190,59],"m":"lda","o":"a_3BBE","oa":15294},{"a":15072,"t":"code","b":[141,192,59],"m":"sta","o":"a_3BC0","oa":15296},{"a":15075,"t":"code","b":[173,198,59],"m":"lda","o":"a_3BC6","oa":15302},{"a":15078,"t":"code","b":[240,3],"m":"beq","o":"b_3AEB","oa":15083},{"a":15080,"t":"code","b":[238,199,59],"m":"inc","o":"a_3BC7","oa":15303},{"a":15083,"l":"b_3AEB","t":"code","b":[160,37],"m":"ldy","o":"#$25","x":[15078,15109,15125]},{"a":15085,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":15087,"t":"code","b":[174,192,59],"m":"ldx","o":"a_3BC0","oa":15296},{"a":15090,"t":"code","b":[172,191,59],"m":"ldy","o":"a_3BBF","oa":15295},{"a":15093,"t":"code","b":[32,203,59],"m":"jsr","o":"bus_write_sector","oa":15307},{"a":15096,"t":"code","b":[144,14],"m":"bcc","o":"b_3B08","oa":15112},{"a":15098,"t":"code","b":[169,198],"m":"lda","o":"#$C6"},{"a":15100,"t":"code","b":[133,199],"m":"sta","o":"zpp_C7","oa":199},{"a":15102,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":15104,"t":"code","b":[133,200],"m":"sta","o":"zpa_C8","oa":200},{"a":15106,"t":"code","b":[32,47,48],"m":"jsr","o":"show_and_wait","oa":12335},{"a":15109,"t":"code","b":[76,235,58],"m":"jmp","o":"b_3AEB","oa":15083},{"a":15112,"l":"b_3B08","t":"code","b":[160,36],"m":"ldy","o":"#$24","x":[15096]},{"a":15114,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":15116,"t":"code","b":[32,56,59],"m":"jsr","o":"next_sector","oa":15160},{"a":15119,"t":"code","b":[238,188,59],"m":"inc","o":"a_3BBC","oa":15292},{"a":15122,"t":"code","b":[206,199,59],"m":"dec","o":"a_3BC7","oa":15303},{"a":15125,"t":"code","b":[208,212],"m":"bne","o":"b_3AEB","oa":15083},{"a":15127,"t":"code","b":[96],"m":"rts"},{"a":15128,"l":"disk_byte","c":"The next byte from the sector read last, in the buffer at $0300; after its 256th the next sector is read. Y is kept","t":"code","b":[140,55,59],"m":"sty","o":"a_3B37","oa":15159,"x":[2891,12312,15023]},{"a":15131,"t":"code","b":[172,195,59],"m":"ldy","o":"a_3BC3","oa":15299},{"a":15134,"t":"code","b":[185,0,3],"m":"lda","o":"f_0300,y","oa":768},{"a":15137,"t":"code","b":[72],"m":"pha"},{"a":15138,"t":"code","b":[238,195,59],"m":"inc","o":"a_3BC3","oa":15299},{"a":15141,"t":"code","b":[208,11],"m":"bne","o":"b_3B32","oa":15154},{"a":15143,"t":"code","b":[32,56,59],"m":"jsr","o":"next_sector","oa":15160},{"a":15146,"t":"code","b":[32,117,59],"m":"jsr","o":"disk_read_sector","oa":15221},{"a":15149,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":15151,"t":"code","b":[141,195,59],"m":"sta","o":"a_3BC3","oa":15299},{"a":15154,"l":"b_3B32","t":"code","b":[172,55,59],"m":"ldy","o":"a_3B37","oa":15159,"x":[15141]},{"a":15157,"t":"code","b":[104],"m":"pla"},{"a":15158,"t":"code","b":[96],"m":"rts"},{"a":15159,"l":"a_3B37","c":"Y, kept by disk_byte","t":"byte","b":[0],"x":[15128,15154]},{"a":15160,"l":"next_sector","c":"Moves on one sector: after the last of a track (the table at $3B51) to sector 0 of the next","t":"code","b":[238,191,59],"m":"inc","o":"a_3BBF","oa":15295,"x":[15001,15116,15143]},{"a":15163,"t":"code","b":[173,191,59],"m":"lda","o":"a_3BBF","oa":15295},{"a":15166,"t":"code","b":[172,192,59],"m":"ldy","o":"a_3BC0","oa":15296},{"a":15169,"t":"code","b":[217,81,59],"m":"cmp","o":"f_3B51,y","oa":15185},{"a":15172,"t":"code","b":[144,10],"m":"bcc","o":"r_3B50","oa":15184},{"a":15174,"t":"code","b":[240,8],"m":"beq","o":"r_3B50","oa":15184},{"a":15176,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":15178,"t":"code","b":[141,191,59],"m":"sta","o":"a_3BBF","oa":15295},{"a":15181,"t":"code","b":[238,192,59],"m":"inc","o":"a_3BC0","oa":15296},{"a":15184,"l":"r_3B50","t":"code","b":[96],"m":"rts","x":[15172,15174]},{"a":15185,"l":"f_3B51","c":"The last sector of each track, by track number: 20 on tracks 1 to 17, 18 on 18 to 24, 17 on 25 to 30, 16 on 31 to 35, as on a 1541 disk","t":"byte","b":[0,20,20,20,20,20,20,20],"x":[15169]},{"a":15193,"t":"byte","b":[20,20,20,20,20,20,20,20]},{"a":15201,"t":"byte","b":[20,20,18,18,18,18,18,18]},{"a":15209,"t":"byte","b":[18,17,17,17,17,17,17,16]},{"a":15217,"t":"byte","b":[16,16,16,16]},{"a":15221,"l":"disk_read_sector","c":"Reads the sector at $3BC0 (track) and $3BBF (sector) into the buffer at $0300 through the drive's program (bus_read_sector); on an error shows \"Disk Error, push button to continue.\" and tries again","t":"code","b":[142,186,59],"m":"stx","o":"a_3BBA","oa":15290,"x":[15013,15146]},{"a":15224,"t":"code","b":[140,185,59],"m":"sty","o":"a_3BB9","oa":15289},{"a":15227,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":15229,"t":"code","b":[141,187,59],"m":"sta","o":"a_3BBB","oa":15291},{"a":15232,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":15234,"t":"code","b":[141,188,59],"m":"sta","o":"a_3BBC","oa":15292},{"a":15237,"l":"j_3B85","t":"code","b":[160,37],"m":"ldy","o":"#$25","x":[15267]},{"a":15239,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":15241,"t":"code","b":[174,192,59],"m":"ldx","o":"a_3BC0","oa":15296},{"a":15244,"t":"code","b":[172,191,59],"m":"ldy","o":"a_3BBF","oa":15295},{"a":15247,"t":"code","b":[32,248,59],"m":"jsr","o":"bus_read_sector","oa":15352},{"a":15250,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":15252,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":15254,"t":"code","b":[144,14],"m":"bcc","o":"b_3BA6","oa":15270},{"a":15256,"t":"code","b":[169,198],"m":"lda","o":"#$C6"},{"a":15258,"t":"code","b":[133,199],"m":"sta","o":"zpp_C7","oa":199},{"a":15260,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":15262,"t":"code","b":[133,200],"m":"sta","o":"zpa_C8","oa":200},{"a":15264,"t":"code","b":[32,47,48],"m":"jsr","o":"show_and_wait","oa":12335},{"a":15267,"t":"code","b":[76,133,59],"m":"jmp","o":"j_3B85","oa":15237},{"a":15270,"l":"b_3BA6","t":"code","b":[173,191,59],"m":"lda","o":"a_3BBF","oa":15295,"x":[15254]},{"a":15273,"t":"code","b":[141,193,59],"m":"sta","o":"a_3BC1","oa":15297},{"a":15276,"t":"code","b":[173,192,59],"m":"lda","o":"a_3BC0","oa":15296},{"a":15279,"t":"code","b":[141,194,59],"m":"sta","o":"a_3BC2","oa":15298},{"a":15282,"t":"code","b":[174,186,59],"m":"ldx","o":"a_3BBA","oa":15290},{"a":15285,"t":"code","b":[172,185,59],"m":"ldy","o":"a_3BB9","oa":15289},{"a":15288,"t":"code","b":[96],"m":"rts"},{"a":15289,"l":"a_3BB9","c":"Y kept by disk_read_sector; $3BBA X","t":"byte","b":[0],"x":[15224,15285]},{"a":15290,"l":"a_3BBA","c":"X, kept by disk_read_sector","t":"byte","b":[0],"x":[15221,15282]},{"a":15291,"l":"a_3BBB","c":"The address the sector goes to or comes from ($3BBC high); $0300 when reading","t":"byte","b":[0],"x":[15057,15229,15313,15358]},{"a":15292,"l":"a_3BBC","c":"The high byte of the address the sector goes to or comes from","t":"byte","b":[0],"x":[15060,15119,15234,15319,15364]},{"a":15293,"l":"a_3BBD","c":"The sector the data start at; $3BBE their track","t":"byte","b":[0],"x":[14941,14983,15063,54712,54787]},{"a":15294,"l":"a_3BBE","c":"The track the data start at","t":"byte","b":[0],"x":[14944,14989,15069,54716,54783]},{"a":15295,"l":"a_3BBF","c":"The sector being read; $3BC0 its track","t":"byte","b":[0],"x":[14986,15066,15090,15160,15163,15178,15244,15270]},{"a":15296,"l":"a_3BC0","c":"The track being read","t":"byte","b":[0],"x":[14992,15072,15087,15166,15181,15241,15276]},{"a":15297,"l":"a_3BC1","c":"The sector read last and its track ($3BC2)","t":"byte","b":[0],"x":[14949,15273]},{"a":15298,"l":"a_3BC2","c":"The track read last","t":"byte","b":[0],"x":[14954,15279]},{"a":15299,"l":"a_3BC3","c":"The next byte to be read in the buffer","t":"byte","b":[0],"x":[15010,15131,15138,15151]},{"a":15300,"l":"a_3BC4","c":"The byte disk_read_from starts at; $3BC5 the sectors it goes on from the start","t":"byte","b":[0],"x":[14959,14971,14977,15007]},{"a":15301,"l":"a_3BC5","c":"The sectors disk_read_from goes on from the start","t":"byte","b":[0],"x":[14964,14974,14980,14995]},{"a":15302,"l":"a_3BC6","c":"The number of bytes to read or write ($3BC7 high)","t":"byte","b":[0],"x":[1144,1168,2663,2687,2711,2735,2759,2798,2822,2846,2870,15037,15045,15048,15075,54482,54559,54740]},{"a":15303,"l":"a_3BC7","c":"The high byte of the number of bytes to read or write","t":"byte","b":[0],"x":[1149,1173,2668,2692,2716,2740,2764,2803,2827,2851,2875,15042,15051,15080,15122,54487,54565,54745]},{"a":15304,"t":"gap","n":3},{"a":15307,"l":"bus_write_sector","c":"Sends the drive's program a write command ($40) for track X, sector Y, and then the 256 bytes from $3BBB/$3BBC (the LDA at $3BE7). Always reports success","t":"code","b":[142,221,60],"m":"stx","o":"a_3CDD","oa":15581,"x":[15093]},{"a":15310,"t":"code","b":[140,222,60],"m":"sty","o":"a_3CDE","oa":15582},{"a":15313,"t":"code","b":[173,187,59],"m":"lda","o":"a_3BBB","oa":15291},{"a":15316,"t":"code","b":[141,232,59],"m":"sta","o":"write_sector_from_lo","oa":15336},{"a":15319,"t":"code","b":[173,188,59],"m":"lda","o":"a_3BBC","oa":15292},{"a":15322,"t":"code","b":[141,233,59],"m":"sta","o":"write_sector_from_hi","oa":15337},{"a":15325,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":15327,"t":"code","b":[32,76,60],"m":"jsr","o":"bus_send_command","oa":15436},{"a":15330,"t":"code","b":[32,102,60],"m":"jsr","o":"bus_handshake","oa":15462},{"a":15333,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":15335,"l":"b_3BE7","t":"code","b":[189,0,64],"m":"lda","o":"voice_envelopes,x","oa":16384,"x":[15342]},{"a":15336,"t":"note","l":"write_sector_from_lo","c":"The low byte of the address the sector is sent from, written at $3BD4 from $3BBB","note":"inside the item at $3BE7","x":[15316]},{"a":15337,"t":"note","l":"write_sector_from_hi","c":"The high byte, written at $3BDA from $3BBC: the 256 bytes go out one at a time, and the write is reported as done (carry clear) whatever the drive did","note":"inside the item at $3BE7","x":[15322]},{"a":15338,"t":"code","b":[32,173,60],"m":"jsr","o":"bus_send_byte","oa":15533},{"a":15341,"t":"code","b":[232],"m":"inx"},{"a":15342,"t":"code","b":[208,247],"m":"bne","o":"b_3BE7","oa":15335},{"a":15344,"t":"code","b":[24],"m":"clc"},{"a":15345,"t":"code","b":[96],"m":"rts"},{"a":15346,"l":"bus_command_20","c":"Sends the drive command $20. Nothing in the program calls it","t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":15348,"t":"code","b":[32,76,60],"m":"jsr","o":"bus_send_command","oa":15436},{"a":15351,"t":"code","b":[96],"m":"rts"},{"a":15352,"l":"bus_read_sector","c":"Sends the drive's program a read command ($30) for track X, sector Y and takes the bytes it sends into $3BBB/$3BBC on (the STA at $3C34). $01 marks a code: $01 again is a $01 in the data, $81 the end (carry clear), $11 an error (carry set), $21 that the drive needs a moment, after which the transfer goes on; any other code stops the machine with the border flashing","t":"code","b":[142,221,60],"m":"stx","o":"a_3CDD","oa":15581,"x":[15247]},{"a":15355,"t":"code","b":[140,222,60],"m":"sty","o":"a_3CDE","oa":15582},{"a":15358,"t":"code","b":[173,187,59],"m":"lda","o":"a_3BBB","oa":15291},{"a":15361,"t":"code","b":[141,53,60],"m":"sta","o":"read_sector_to_lo","oa":15413},{"a":15364,"t":"code","b":[173,188,59],"m":"lda","o":"a_3BBC","oa":15292},{"a":15367,"t":"code","b":[141,54,60],"m":"sta","o":"read_sector_to_hi","oa":15414},{"a":15370,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":15372,"t":"code","b":[32,76,60],"m":"jsr","o":"bus_send_command","oa":15436},{"a":15375,"t":"code","b":[32,102,60],"m":"jsr","o":"bus_handshake","oa":15462},{"a":15378,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":15380,"l":"j_3C14","t":"code","b":[32,125,60],"m":"jsr","o":"bus_receive_byte","oa":15485,"x":[15409,15421]},{"a":15383,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":15385,"t":"code","b":[208,25],"m":"bne","o":"b_3C34","oa":15412},{"a":15387,"t":"code","b":[32,125,60],"m":"jsr","o":"bus_receive_byte","oa":15485},{"a":15390,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":15392,"t":"code","b":[240,18],"m":"beq","o":"b_3C34","oa":15412},{"a":15394,"t":"code","b":[201,129],"m":"cmp","o":"#$81"},{"a":15396,"t":"code","b":[240,28],"m":"beq","o":"b_3C42","oa":15426},{"a":15398,"t":"code","b":[201,17],"m":"cmp","o":"#$11"},{"a":15400,"t":"code","b":[240,22],"m":"beq","o":"b_3C40","oa":15424},{"a":15402,"t":"code","b":[201,33],"m":"cmp","o":"#$21"},{"a":15404,"t":"code","b":[208,22],"m":"bne","o":"b_3C44","oa":15428},{"a":15406,"t":"code","b":[32,102,60],"m":"jsr","o":"bus_handshake","oa":15462},{"a":15409,"t":"code","b":[76,20,60],"m":"jmp","o":"j_3C14","oa":15380},{"a":15412,"l":"b_3C34","t":"code","b":[157,255,255],"m":"sta","o":"$FFFF,x","oa":65535,"x":[15385,15392]},{"a":15413,"t":"note","l":"read_sector_to_lo","c":"The low byte of where the sector's bytes go, written at $3C01 from $3BBB","note":"inside the item at $3C34","x":[15361]},{"a":15414,"t":"note","l":"read_sector_to_hi","c":"The high byte, written at $3C07 and stepped at $3C3A after every 256 bytes; after each byte the next one, or the next code, is taken from the drive","note":"inside the item at $3C34","x":[15367,15418]},{"a":15415,"t":"code","b":[232],"m":"inx"},{"a":15416,"t":"code","b":[208,3],"m":"bne","o":"b_3C3D","oa":15421},{"a":15418,"t":"code","b":[238,54,60],"m":"inc","o":"read_sector_to_hi","oa":15414},{"a":15421,"l":"b_3C3D","t":"code","b":[76,20,60],"m":"jmp","o":"j_3C14","oa":15380,"x":[15416]},{"a":15424,"l":"b_3C40","t":"code","b":[56],"m":"sec","x":[15400]},{"a":15425,"t":"code","b":[96],"m":"rts"},{"a":15426,"l":"b_3C42","t":"code","b":[24],"m":"clc","x":[15396]},{"a":15427,"t":"code","b":[96],"m":"rts"},{"a":15428,"l":"b_3C44","t":"code","b":[169,5],"m":"lda","o":"#$05","x":[15404,15433]},{"a":15430,"t":"code","b":[141,32,208],"m":"sta","o":"vic_border"},{"a":15433,"t":"code","b":[76,68,60],"m":"jmp","o":"b_3C44","oa":15428},{"a":15436,"l":"bus_send_command","c":"Sends the command in A with the track and sector ($3CDD, $3CDE) to the drive's program, after a handshake","t":"code","b":[72],"m":"pha","x":[15327,15348,15372]},{"a":15437,"t":"code","b":[169,36],"m":"lda","o":"#$24"},{"a":15439,"t":"code","b":[141,0,221],"m":"sta","o":"cia2_port_a"},{"a":15442,"t":"code","b":[32,102,60],"m":"jsr","o":"bus_handshake","oa":15462},{"a":15445,"t":"code","b":[173,221,60],"m":"lda","o":"a_3CDD","oa":15581},{"a":15448,"t":"code","b":[32,173,60],"m":"jsr","o":"bus_send_byte","oa":15533},{"a":15451,"t":"code","b":[173,222,60],"m":"lda","o":"a_3CDE","oa":15582},{"a":15454,"t":"code","b":[32,173,60],"m":"jsr","o":"bus_send_byte","oa":15533},{"a":15457,"t":"code","b":[104],"m":"pla"},{"a":15458,"t":"code","b":[32,173,60],"m":"jsr","o":"bus_send_byte","oa":15533},{"a":15461,"t":"code","b":[96],"m":"rts"},{"a":15462,"l":"bus_handshake","c":"Waits a moment, then until the drive raises the clock line (bit 6 of $DD00), then lets the lines go ($0C into $DD00) and waits a moment more","t":"code","b":[160,40],"m":"ldy","o":"#$28","x":[15330,15375,15406,15442]},{"a":15464,"l":"b_3C68","t":"code","b":[136],"m":"dey","x":[15465]},{"a":15465,"t":"code","b":[208,253],"m":"bne","o":"b_3C68","oa":15464},{"a":15467,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":15469,"l":"b_3C6D","t":"code","b":[44,0,221],"m":"bit","o":"cia2_port_a","x":[15472]},{"a":15472,"t":"code","b":[240,251],"m":"beq","o":"b_3C6D","oa":15469},{"a":15474,"t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":15476,"t":"code","b":[141,0,221],"m":"sta","o":"cia2_port_a"},{"a":15479,"t":"code","b":[160,6],"m":"ldy","o":"#$06"},{"a":15481,"l":"b_3C79","t":"code","b":[136],"m":"dey","x":[15482]},{"a":15482,"t":"code","b":[208,253],"m":"bne","o":"b_3C79","oa":15481},{"a":15484,"t":"code","b":[96],"m":"rts"},{"a":15485,"l":"bus_receive_byte","c":"Takes a byte from the drive, two bits at a time (bus_receive_bits, four times)","t":"code","b":[32,141,60],"m":"jsr","o":"bus_receive_bits","oa":15501,"x":[15380,15387]},{"a":15488,"t":"code","b":[32,141,60],"m":"jsr","o":"bus_receive_bits","oa":15501},{"a":15491,"t":"code","b":[32,141,60],"m":"jsr","o":"bus_receive_bits","oa":15501},{"a":15494,"t":"code","b":[32,141,60],"m":"jsr","o":"bus_receive_bits","oa":15501},{"a":15497,"t":"code","b":[173,220,60],"m":"lda","o":"a_3CDC","oa":15580},{"a":15500,"t":"code","b":[96],"m":"rts"},{"a":15501,"l":"bus_receive_bits","c":"Two bits from the data line (bit 7 of $DD00), each read as the clock line (bit 4) is changed, which tells the drive to put the next bit on it","t":"code","b":[160,28],"m":"ldy","o":"#$1C","x":[15485,15488,15491,15494]},{"a":15503,"t":"code","b":[173,0,221],"m":"lda","o":"cia2_port_a"},{"a":15506,"t":"code","b":[140,0,221],"m":"sty","o":"cia2_port_a"},{"a":15509,"t":"code","b":[42],"m":"rol","o":"a"},{"a":15510,"t":"code","b":[46,220,60],"m":"rol","o":"a_3CDC","oa":15580},{"a":15513,"t":"code","b":[152],"m":"tya"},{"a":15514,"t":"code","b":[72],"m":"pha"},{"a":15515,"t":"code","b":[152],"m":"tya"},{"a":15516,"t":"code","b":[104],"m":"pla"},{"a":15517,"t":"code","b":[152],"m":"tya"},{"a":15518,"t":"code","b":[160,12],"m":"ldy","o":"#$0C"},{"a":15520,"t":"code","b":[173,0,221],"m":"lda","o":"cia2_port_a"},{"a":15523,"t":"code","b":[140,0,221],"m":"sty","o":"cia2_port_a"},{"a":15526,"t":"code","b":[42],"m":"rol","o":"a"},{"a":15527,"t":"code","b":[46,220,60],"m":"rol","o":"a_3CDC","oa":15580},{"a":15530,"t":"code","b":[152],"m":"tya"},{"a":15531,"t":"code","b":[168],"m":"tay"},{"a":15532,"t":"code","b":[96],"m":"rts"},{"a":15533,"l":"bus_send_byte","c":"Sends the byte in A to the drive, two bits at a time (bus_send_bits, four times)","t":"code","b":[141,220,60],"m":"sta","o":"a_3CDC","oa":15580,"x":[15338,15448,15454,15458]},{"a":15536,"t":"code","b":[32,189,60],"m":"jsr","o":"bus_send_bits","oa":15549},{"a":15539,"t":"code","b":[32,189,60],"m":"jsr","o":"bus_send_bits","oa":15549},{"a":15542,"t":"code","b":[32,189,60],"m":"jsr","o":"bus_send_bits","oa":15549},{"a":15545,"t":"code","b":[32,189,60],"m":"jsr","o":"bus_send_bits","oa":15549},{"a":15548,"t":"code","b":[96],"m":"rts"},{"a":15549,"l":"bus_send_bits","c":"Two bits of $3CDC on the data line (bit 5 of $DD00), each written with a change of the clock line (bit 4)","t":"code","b":[160,28],"m":"ldy","o":"#$1C","x":[15536,15539,15542,15545]},{"a":15551,"t":"code","b":[46,220,60],"m":"rol","o":"a_3CDC","oa":15580},{"a":15554,"t":"code","b":[144,2],"m":"bcc","o":"b_3CC6","oa":15558},{"a":15556,"t":"code","b":[160,60],"m":"ldy","o":"#$3C"},{"a":15558,"l":"b_3CC6","t":"code","b":[140,0,221],"m":"sty","o":"cia2_port_a","x":[15554]},{"a":15561,"t":"code","b":[138],"m":"txa"},{"a":15562,"t":"code","b":[152],"m":"tya"},{"a":15563,"t":"code","b":[138],"m":"txa"},{"a":15564,"t":"code","b":[168],"m":"tay"},{"a":15565,"t":"code","b":[160,12],"m":"ldy","o":"#$0C"},{"a":15567,"t":"code","b":[46,220,60],"m":"rol","o":"a_3CDC","oa":15580},{"a":15570,"t":"code","b":[144,2],"m":"bcc","o":"b_3CD6","oa":15574},{"a":15572,"t":"code","b":[160,44],"m":"ldy","o":"#$2C"},{"a":15574,"l":"b_3CD6","t":"code","b":[140,0,221],"m":"sty","o":"cia2_port_a","x":[15570]},{"a":15577,"t":"code","b":[138],"m":"txa"},{"a":15578,"t":"code","b":[168],"m":"tay"},{"a":15579,"t":"code","b":[96],"m":"rts"},{"a":15580,"l":"a_3CDC","c":"The byte being sent or received","t":"byte","b":[0],"x":[15497,15510,15527,15533,15551,15567]},{"a":15581,"l":"a_3CDD","c":"The track for the drive's command; $3CDE the sector","t":"byte","b":[69],"x":[15307,15352,15445]},{"a":15582,"l":"a_3CDE","c":"The sector to send with the next drive command","t":"byte","b":[73],"x":[15310,15355,15451]},{"a":15583,"l":"begin_sound","c":"Starts sound effect A, or answers $FF when it cannot: not while the music has all three voices, and not when it needs the filter that a sound of higher priority holds. The sound's first byte gives its priority (bit 7: it may wait for a voice), its second the parts it has: one, two or three voices, a part each for a voice's pulse width and one for the filter. When there are not voices enough, the playing sound of lowest priority is stopped if this one's is as high; otherwise a sound that may wait is kept as the one waiting ($43FA) and the rest are refused. Each part then gets a free voice (start_part)","t":"code","b":[141,236,67],"m":"sta","o":"a_43EC","oa":17388,"x":[16446,16509]},{"a":15586,"t":"code","b":[173,232,67],"m":"lda","o":"a_43E8","oa":17384},{"a":15589,"t":"code","b":[240,12],"m":"beq","o":"b_3CF3","oa":15603},{"a":15591,"t":"code","b":[173,233,67],"m":"lda","o":"a_43E9","oa":17385},{"a":15594,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":15596,"t":"code","b":[201,7],"m":"cmp","o":"#$07"},{"a":15598,"t":"code","b":[208,3],"m":"bne","o":"b_3CF3","oa":15603},{"a":15600,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":15602,"t":"code","b":[96],"m":"rts"},{"a":15603,"l":"b_3CF3","t":"code","b":[174,236,67],"m":"ldx","o":"a_43EC","oa":17388,"x":[15589,15598]},{"a":15606,"t":"code","b":[189,65,116],"m":"lda","o":"f_7441,x","oa":29761},{"a":15609,"t":"code","b":[133,170],"m":"sta","o":"zpa_AA","oa":170},{"a":15611,"t":"code","b":[189,192,116],"m":"lda","o":"f_74C0,x","oa":29888},{"a":15614,"t":"code","b":[133,169],"m":"sta","o":"zpa_A9","oa":169},{"a":15616,"t":"code","b":[160,4],"m":"ldy","o":"#$04"},{"a":15618,"t":"code","b":[177,169],"m":"lda","o":"(zpa_A9),y","oa":169},{"a":15620,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":15622,"t":"code","b":[141,235,67],"m":"sta","o":"a_43EB","oa":17387},{"a":15625,"t":"code","b":[177,169],"m":"lda","o":"(zpa_A9),y","oa":169},{"a":15627,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":15629,"t":"code","b":[141,237,67],"m":"sta","o":"a_43ED","oa":17389},{"a":15632,"t":"code","b":[200],"m":"iny"},{"a":15633,"t":"code","b":[177,169],"m":"lda","o":"(zpa_A9),y","oa":169},{"a":15635,"t":"code","b":[141,238,67],"m":"sta","o":"a_43EE","oa":17390},{"a":15638,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":15640,"t":"code","b":[240,60],"m":"beq","o":"b_3D56","oa":15702},{"a":15642,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":15644,"t":"code","b":[141,239,67],"m":"sta","o":"a_43EF","oa":17391},{"a":15647,"t":"code","b":[173,240,67],"m":"lda","o":"a_43F0","oa":17392},{"a":15650,"t":"code","b":[240,35],"m":"beq","o":"take_filter","oa":15687},{"a":15652,"t":"code","b":[173,235,67],"m":"lda","o":"a_43EB","oa":17387},{"a":15655,"t":"code","b":[205,241,67],"m":"cmp","o":"a_43F1","oa":17393},{"a":15658,"t":"code","b":[144,21],"m":"bcc","o":"b_3D41","oa":15681},{"a":15660,"t":"code","b":[173,240,67],"m":"lda","o":"a_43F0","oa":17392},{"a":15663,"t":"code","b":[32,82,62],"m":"jsr","o":"stop_sound","oa":15954},{"a":15666,"t":"code","b":[173,236,67],"m":"lda","o":"a_43EC","oa":17388},{"a":15669,"t":"code","b":[141,240,67],"m":"sta","o":"a_43F0","oa":17392},{"a":15672,"t":"code","b":[173,235,67],"m":"lda","o":"a_43EB","oa":17387},{"a":15675,"t":"code","b":[141,241,67],"m":"sta","o":"a_43F1","oa":17393},{"a":15678,"t":"code","b":[76,91,61],"m":"jmp","o":"j_3D5B","oa":15707},{"a":15681,"l":"b_3D41","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[15658]},{"a":15683,"t":"code","b":[96],"m":"rts"},{"a":15684,"c":"JMP $3D5B, after the RTS at $3D43: never reached","t":"code","b":[76,91,61],"m":"jmp","o":"j_3D5B","oa":15707},{"a":15687,"l":"take_filter","c":"No sound holds the filter: this one takes it ($43F0, with its priority in $43F1). Then ($3D5B) the voices it needs are counted, one and one more for each of bits 1 and 3 of its second byte, into $43F2; when more are needed than are free ($43F3) and its priority is as high as the lowest playing sound's ($43F7), that sound's address is written into the LDA at $3D93","t":"code","b":[173,236,67],"m":"lda","o":"a_43EC","oa":17388,"x":[15650]},{"a":15690,"t":"code","b":[141,240,67],"m":"sta","o":"a_43F0","oa":17392},{"a":15693,"t":"code","b":[173,235,67],"m":"lda","o":"a_43EB","oa":17387},{"a":15696,"t":"code","b":[141,241,67],"m":"sta","o":"a_43F1","oa":17393},{"a":15699,"t":"code","b":[76,91,61],"m":"jmp","o":"j_3D5B","oa":15707},{"a":15702,"l":"b_3D56","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[15640]},{"a":15704,"t":"code","b":[141,239,67],"m":"sta","o":"a_43EF","oa":17391},{"a":15707,"l":"j_3D5B","t":"code","b":[162,1],"m":"ldx","o":"#$01","x":[15678,15684,15699]},{"a":15709,"t":"code","b":[173,238,67],"m":"lda","o":"a_43EE","oa":17390},{"a":15712,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":15714,"t":"code","b":[240,1],"m":"beq","o":"b_3D65","oa":15717},{"a":15716,"t":"code","b":[232],"m":"inx"},{"a":15717,"l":"b_3D65","t":"code","b":[173,238,67],"m":"lda","o":"a_43EE","oa":17390,"x":[15714]},{"a":15720,"t":"code","b":[41,8],"m":"and","o":"#$08"},{"a":15722,"t":"code","b":[240,1],"m":"beq","o":"b_3D6D","oa":15725},{"a":15724,"t":"code","b":[232],"m":"inx"},{"a":15725,"l":"b_3D6D","t":"code","b":[142,242,67],"m":"stx","o":"a_43F2","oa":17394,"x":[15722]},{"a":15728,"l":"j_3D70","t":"code","b":[174,242,67],"m":"ldx","o":"a_43F2","oa":17394,"x":[15795]},{"a":15731,"t":"code","b":[236,243,67],"m":"cpx","o":"a_43F3","oa":17395},{"a":15734,"t":"code","b":[144,107],"m":"bcc","o":"b_3DE3","oa":15843},{"a":15736,"t":"code","b":[240,105],"m":"beq","o":"b_3DE3","oa":15843},{"a":15738,"t":"code","b":[173,235,67],"m":"lda","o":"a_43EB","oa":17387},{"a":15741,"t":"code","b":[205,247,67],"m":"cmp","o":"a_43F7","oa":17399},{"a":15744,"t":"code","b":[144,55],"m":"bcc","o":"sound_may_wait","oa":15801},{"a":15746,"t":"code","b":[174,248,67],"m":"ldx","o":"a_43F8","oa":17400},{"a":15749,"t":"code","b":[189,192,116],"m":"lda","o":"f_74C0,x","oa":29888},{"a":15752,"t":"code","b":[141,148,61],"m":"sta","o":"lowest_sound_lo","oa":15764},{"a":15755,"t":"code","b":[189,65,116],"m":"lda","o":"f_7441,x","oa":29761},{"a":15758,"t":"code","b":[141,149,61],"m":"sta","o":"lowest_sound_hi","oa":15765},{"a":15761,"t":"code","b":[160,4],"m":"ldy","o":"#$04"},{"a":15763,"t":"code","b":[185,255,255],"m":"lda","o":"$FFFF,y","oa":65535},{"a":15764,"t":"note","l":"lowest_sound_lo","c":"The low byte of the address of the playing sound with the lowest priority ($43F8), written at $3D88","note":"inside the item at $3D93","x":[15752]},{"a":15765,"t":"note","l":"lowest_sound_hi","c":"The high byte, written at $3D8E. That sound's first byte is read: with bit 7 set it may wait, and it becomes the sound waiting for a voice when its priority is above the waiting one's. Either way it is stopped, to free its voices, and the voices are counted again ($3D70)","note":"inside the item at $3D93","x":[15758]},{"a":15766,"t":"code","b":[16,21],"m":"bpl","o":"b_3DAD","oa":15789},{"a":15768,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":15770,"t":"code","b":[205,249,67],"m":"cmp","o":"a_43F9","oa":17401},{"a":15773,"t":"code","b":[144,14],"m":"bcc","o":"b_3DAD","oa":15789},{"a":15775,"t":"code","b":[240,12],"m":"beq","o":"b_3DAD","oa":15789},{"a":15777,"t":"code","b":[173,248,67],"m":"lda","o":"a_43F8","oa":17400},{"a":15780,"t":"code","b":[141,250,67],"m":"sta","o":"a_43FA","oa":17402},{"a":15783,"t":"code","b":[173,247,67],"m":"lda","o":"a_43F7","oa":17399},{"a":15786,"t":"code","b":[141,249,67],"m":"sta","o":"a_43F9","oa":17401},{"a":15789,"l":"b_3DAD","t":"code","b":[173,248,67],"m":"lda","o":"a_43F8","oa":17400,"x":[15766,15773,15775]},{"a":15792,"t":"code","b":[32,101,62],"m":"jsr","o":"stop_sound_channels","oa":15973},{"a":15795,"t":"code","b":[76,112,61],"m":"jmp","o":"j_3D70","oa":15728},{"a":15798,"c":"JMP $3DE3, after the JMP at $3DB3: never reached","t":"code","b":[76,227,61],"m":"jmp","o":"b_3DE3","oa":15843},{"a":15801,"l":"sound_may_wait","c":"Its priority is below every playing sound's: a sound that may wait ($43ED bit 7) becomes the one waiting for a voice, A 0, unless one of higher priority is waiting already, A $FF","t":"code","b":[173,237,67],"m":"lda","o":"a_43ED","oa":17389,"x":[15744]},{"a":15804,"t":"code","b":[16,34],"m":"bpl","o":"sound_refused","oa":15840},{"a":15806,"t":"code","b":[173,250,67],"m":"lda","o":"a_43FA","oa":17402},{"a":15809,"t":"code","b":[240,11],"m":"beq","o":"b_3DCE","oa":15822},{"a":15811,"t":"code","b":[173,235,67],"m":"lda","o":"a_43EB","oa":17387},{"a":15814,"t":"code","b":[205,249,67],"m":"cmp","o":"a_43F9","oa":17401},{"a":15817,"t":"code","b":[176,3],"m":"bcs","o":"b_3DCE","oa":15822},{"a":15819,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":15821,"t":"code","b":[96],"m":"rts"},{"a":15822,"l":"b_3DCE","t":"code","b":[173,235,67],"m":"lda","o":"a_43EB","oa":17387,"x":[15809,15817]},{"a":15825,"t":"code","b":[141,249,67],"m":"sta","o":"a_43F9","oa":17401},{"a":15828,"t":"code","b":[173,236,67],"m":"lda","o":"a_43EC","oa":17388},{"a":15831,"t":"code","b":[141,250,67],"m":"sta","o":"a_43FA","oa":17402},{"a":15834,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":15836,"t":"code","b":[96],"m":"rts"},{"a":15837,"c":"JMP $3DE3, after the RTS at $3DDC: never reached","t":"code","b":[76,227,61],"m":"jmp","o":"b_3DE3","oa":15843},{"a":15840,"l":"sound_refused","c":"Refused, A $FF: not voices enough, and it may not wait. From $3DE3, with voices enough: its priority becomes the lowest playing ($43F7, $43F8) when it is as low as that; each of its voice parts is started on a free voice (0 when it is free, else 2, else 1; 2 when only voice 1 is busy), its filter part, if it has one, on channel 3, and A is 0","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[15804]},{"a":15842,"t":"code","b":[96],"m":"rts"},{"a":15843,"l":"b_3DE3","t":"code","b":[173,235,67],"m":"lda","o":"a_43EB","oa":17387,"x":[15734,15736,15798,15837]},{"a":15846,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":15848,"t":"code","b":[141,235,67],"m":"sta","o":"a_43EB","oa":17387},{"a":15851,"t":"code","b":[205,247,67],"m":"cmp","o":"a_43F7","oa":17399},{"a":15854,"t":"code","b":[240,2],"m":"beq","o":"b_3DF2","oa":15858},{"a":15856,"t":"code","b":[176,12],"m":"bcs","o":"b_3DFE","oa":15870},{"a":15858,"l":"b_3DF2","t":"code","b":[173,235,67],"m":"lda","o":"a_43EB","oa":17387,"x":[15854]},{"a":15861,"t":"code","b":[141,247,67],"m":"sta","o":"a_43F7","oa":17399},{"a":15864,"t":"code","b":[173,236,67],"m":"lda","o":"a_43EC","oa":17388},{"a":15867,"t":"code","b":[141,248,67],"m":"sta","o":"a_43F8","oa":17400},{"a":15870,"l":"b_3DFE","t":"code","b":[174,242,67],"m":"ldx","o":"a_43F2","oa":17394,"x":[15856]},{"a":15873,"t":"code","b":[202],"m":"dex"},{"a":15874,"l":"b_3E02","t":"code","b":[138],"m":"txa","x":[15931]},{"a":15875,"t":"code","b":[72],"m":"pha"},{"a":15876,"t":"code","b":[173,224,67],"m":"lda","o":"a_43E0","oa":17376},{"a":15879,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":15881,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":15883,"t":"code","b":[208,8],"m":"bne","o":"b_3E15","oa":15893},{"a":15885,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":15887,"t":"code","b":[32,46,63],"m":"jsr","o":"start_part","oa":16174},{"a":15890,"t":"code","b":[76,56,62],"m":"jmp","o":"j_3E38","oa":15928},{"a":15893,"l":"b_3E15","t":"code","b":[173,224,67],"m":"lda","o":"a_43E0","oa":17376,"x":[15883]},{"a":15896,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":15898,"t":"code","b":[208,8],"m":"bne","o":"b_3E24","oa":15908},{"a":15900,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":15902,"t":"code","b":[32,46,63],"m":"jsr","o":"start_part","oa":16174},{"a":15905,"t":"code","b":[76,56,62],"m":"jmp","o":"j_3E38","oa":15928},{"a":15908,"l":"b_3E24","t":"code","b":[173,224,67],"m":"lda","o":"a_43E0","oa":17376,"x":[15898]},{"a":15911,"t":"code","b":[41,4],"m":"and","o":"#$04"},{"a":15913,"t":"code","b":[240,8],"m":"beq","o":"b_3E33","oa":15923},{"a":15915,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":15917,"t":"code","b":[32,46,63],"m":"jsr","o":"start_part","oa":16174},{"a":15920,"t":"code","b":[76,56,62],"m":"jmp","o":"j_3E38","oa":15928},{"a":15923,"l":"b_3E33","t":"code","b":[169,2],"m":"lda","o":"#$02","x":[15913]},{"a":15925,"t":"code","b":[32,46,63],"m":"jsr","o":"start_part","oa":16174},{"a":15928,"l":"j_3E38","t":"code","b":[104],"m":"pla","x":[15890,15905,15920]},{"a":15929,"t":"code","b":[170],"m":"tax"},{"a":15930,"t":"code","b":[202],"m":"dex"},{"a":15931,"t":"code","b":[16,197],"m":"bpl","o":"b_3E02","oa":15874},{"a":15933,"t":"code","b":[173,238,67],"m":"lda","o":"a_43EE","oa":17390},{"a":15936,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":15938,"t":"code","b":[240,11],"m":"beq","o":"b_3E4F","oa":15951},{"a":15940,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":15942,"t":"code","b":[141,245,67],"m":"sta","o":"a_43F5","oa":17397},{"a":15945,"t":"code","b":[141,246,67],"m":"sta","o":"a_43F6","oa":17398},{"a":15948,"t":"code","b":[32,74,63],"m":"jsr","o":"start_part_data","oa":16202},{"a":15951,"l":"b_3E4F","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[15938]},{"a":15953,"t":"code","b":[96],"m":"rts"},{"a":15954,"l":"stop_sound","c":"Stops sound A, and forgets it if it was the one waiting for a voice","t":"code","b":[141,244,67],"m":"sta","o":"a_43F4","oa":17396,"x":[15663,22429,22479]},{"a":15957,"t":"code","b":[205,250,67],"m":"cmp","o":"a_43FA","oa":17402},{"a":15960,"t":"code","b":[208,8],"m":"bne","o":"b_3E62","oa":15970},{"a":15962,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":15964,"t":"code","b":[141,250,67],"m":"sta","o":"a_43FA","oa":17402},{"a":15967,"t":"code","b":[141,249,67],"m":"sta","o":"a_43F9","oa":17401},{"a":15970,"l":"b_3E62","t":"code","b":[173,244,67],"m":"lda","o":"a_43F4","oa":17396,"x":[15960]},{"a":15973,"l":"stop_sound_channels","c":"Stops every voice and the filter playing sound $43F4 (stop_channel), and takes it out of the list of sounds waiting to start ($43FB)","t":"code","b":[141,244,67],"m":"sta","o":"a_43F4","oa":17396,"x":[15792]},{"a":15976,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":15978,"l":"b_3E6A","t":"code","b":[189,117,67],"m":"lda","o":"f_4375,x","oa":17269,"x":[15990]},{"a":15981,"t":"code","b":[205,244,67],"m":"cmp","o":"a_43F4","oa":17396},{"a":15984,"t":"code","b":[208,3],"m":"bne","o":"b_3E75","oa":15989},{"a":15986,"t":"code","b":[32,152,62],"m":"jsr","o":"stop_channel","oa":16024},{"a":15989,"l":"b_3E75","t":"code","b":[202],"m":"dex","x":[15984]},{"a":15990,"t":"code","b":[16,242],"m":"bpl","o":"b_3E6A","oa":15978},{"a":15992,"t":"code","b":[174,5,68],"m":"ldx","o":"a_4405","oa":17413},{"a":15995,"t":"code","b":[240,26],"m":"beq","o":"r_3E97","oa":16023},{"a":15997,"l":"b_3E7D","t":"code","b":[189,251,67],"m":"lda","o":"f_43FB,x","oa":17403,"x":[16021]},{"a":16000,"t":"code","b":[205,244,67],"m":"cmp","o":"a_43F4","oa":17396},{"a":16003,"t":"code","b":[208,15],"m":"bne","o":"b_3E94","oa":16020},{"a":16005,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":16007,"t":"code","b":[157,251,67],"m":"sta","o":"f_43FB,x","oa":17403},{"a":16010,"t":"code","b":[138],"m":"txa"},{"a":16011,"t":"code","b":[72],"m":"pha"},{"a":16012,"t":"code","b":[174,244,67],"m":"ldx","o":"a_43F4","oa":17396},{"a":16015,"t":"code","b":[32,40,67],"m":"jsr","o":"sound_used_less","oa":17192},{"a":16018,"t":"code","b":[104],"m":"pla"},{"a":16019,"t":"code","b":[170],"m":"tax"},{"a":16020,"l":"b_3E94","t":"code","b":[202],"m":"dex","x":[16003]},{"a":16021,"t":"code","b":[208,230],"m":"bne","o":"b_3E7D","oa":15997},{"a":16023,"l":"r_3E97","t":"code","b":[96],"m":"rts","x":[15995]},{"a":16024,"l":"stop_channel","c":"Stops channel X (0 to 2 a voice, 3 the filter) and the pulse width part that goes with it (X plus 4): its voice is free again, the sound's use count goes down, the voice is silenced and taken off the filter","t":"code","b":[138],"m":"txa","x":[15986,16533,16828,16869]},{"a":16025,"t":"code","b":[72],"m":"pha"},{"a":16026,"t":"code","b":[189,117,67],"m":"lda","o":"f_4375,x","oa":17269},{"a":16029,"t":"code","b":[141,183,68],"m":"sta","o":"a_44B7","oa":17591},{"a":16032,"t":"code","b":[32,243,62],"m":"jsr","o":"free_channel","oa":16115},{"a":16035,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":16037,"t":"code","b":[16,73],"m":"bpl","o":"b_3EF0","oa":16112},{"a":16039,"t":"code","b":[238,243,67],"m":"inc","o":"a_43F3","oa":17395},{"a":16042,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16044,"t":"code","b":[157,138,67],"m":"sta","o":"f_438A,x","oa":17290},{"a":16047,"t":"code","b":[138],"m":"txa"},{"a":16048,"t":"code","b":[72],"m":"pha"},{"a":16049,"t":"code","b":[174,183,68],"m":"ldx","o":"a_44B7","oa":17591},{"a":16052,"t":"code","b":[240,3],"m":"beq","o":"b_3EB9","oa":16057},{"a":16054,"t":"code","b":[32,40,67],"m":"jsr","o":"sound_used_less","oa":17192},{"a":16057,"l":"b_3EB9","t":"code","b":[189,63,117],"m":"lda","o":"f_753F,x","oa":30015,"x":[16052]},{"a":16060,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":16062,"t":"code","b":[208,10],"m":"bne","o":"b_3ECA","oa":16074},{"a":16064,"t":"code","b":[236,240,67],"m":"cpx","o":"a_43F0","oa":17392},{"a":16067,"t":"code","b":[208,5],"m":"bne","o":"b_3ECA","oa":16074},{"a":16069,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16071,"t":"code","b":[141,240,67],"m":"sta","o":"a_43F0","oa":17392},{"a":16074,"l":"b_3ECA","t":"code","b":[104],"m":"pla","x":[16062,16067]},{"a":16075,"t":"code","b":[170],"m":"tax"},{"a":16076,"t":"code","b":[189,83,67],"m":"lda","o":"f_4353,x","oa":17235},{"a":16079,"t":"code","b":[168],"m":"tay"},{"a":16080,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16082,"t":"code","b":[153,4,212],"m":"sta","o":"sid_v1_control,y"},{"a":16085,"t":"code","b":[153,0,212],"m":"sta","o":"sid_v1_freq_lo,y"},{"a":16088,"t":"code","b":[153,1,212],"m":"sta","o":"sid_v1_freq_hi,y"},{"a":16091,"t":"code","b":[189,201,67],"m":"lda","o":"f_43C9,x","oa":17353},{"a":16094,"t":"code","b":[240,9],"m":"beq","o":"b_3EE9","oa":16105},{"a":16096,"t":"code","b":[173,223,67],"m":"lda","o":"a_43DF","oa":17375},{"a":16099,"t":"code","b":[61,97,67],"m":"and","o":"f_4361,x","oa":17249},{"a":16102,"t":"code","b":[141,223,67],"m":"sta","o":"a_43DF","oa":17375},{"a":16105,"l":"b_3EE9","t":"code","b":[232],"m":"inx","x":[16094]},{"a":16106,"t":"code","b":[232],"m":"inx"},{"a":16107,"t":"code","b":[232],"m":"inx"},{"a":16108,"t":"code","b":[232],"m":"inx"},{"a":16109,"t":"code","b":[32,243,62],"m":"jsr","o":"free_channel","oa":16115},{"a":16112,"l":"b_3EF0","t":"code","b":[104],"m":"pla","x":[16037]},{"a":16113,"t":"code","b":[170],"m":"tax"},{"a":16114,"t":"code","b":[96],"m":"rts"},{"a":16115,"l":"free_channel","c":"Marks channel X free and finds again the playing sound of lowest priority ($43F7, $43F8)","t":"code","b":[173,224,67],"m":"lda","o":"a_43E0","oa":17376,"x":[16032,16109]},{"a":16118,"t":"code","b":[61,97,67],"m":"and","o":"f_4361,x","oa":17249},{"a":16121,"t":"code","b":[141,224,67],"m":"sta","o":"a_43E0","oa":17376},{"a":16124,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16126,"t":"code","b":[157,131,67],"m":"sta","o":"f_4383,x","oa":17283},{"a":16129,"t":"code","b":[157,117,67],"m":"sta","o":"f_4375,x","oa":17269},{"a":16132,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":16134,"t":"code","b":[157,110,67],"m":"sta","o":"f_436E,x","oa":17262},{"a":16137,"t":"code","b":[138],"m":"txa"},{"a":16138,"t":"code","b":[72],"m":"pha"},{"a":16139,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":16141,"t":"code","b":[141,247,67],"m":"sta","o":"a_43F7","oa":17399},{"a":16144,"t":"code","b":[141,248,67],"m":"sta","o":"a_43F8","oa":17400},{"a":16147,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":16149,"l":"b_3F15","t":"code","b":[221,110,67],"m":"cmp","o":"f_436E,x","oa":17262,"x":[16169]},{"a":16152,"t":"code","b":[144,14],"m":"bcc","o":"b_3F28","oa":16168},{"a":16154,"t":"code","b":[240,12],"m":"beq","o":"b_3F28","oa":16168},{"a":16156,"t":"code","b":[189,117,67],"m":"lda","o":"f_4375,x","oa":17269},{"a":16159,"t":"code","b":[141,248,67],"m":"sta","o":"a_43F8","oa":17400},{"a":16162,"t":"code","b":[189,110,67],"m":"lda","o":"f_436E,x","oa":17262},{"a":16165,"t":"code","b":[141,247,67],"m":"sta","o":"a_43F7","oa":17399},{"a":16168,"l":"b_3F28","t":"code","b":[202],"m":"dex","x":[16152,16154]},{"a":16169,"t":"code","b":[16,234],"m":"bpl","o":"b_3F15","oa":16149},{"a":16171,"t":"code","b":[104],"m":"pla"},{"a":16172,"t":"code","b":[170],"m":"tax"},{"a":16173,"t":"code","b":[96],"m":"rts"},{"a":16174,"l":"start_part","c":"Starts part $43F6 of the sound on channel A, with the sound's priority and whether it uses the filter","t":"code","b":[206,243,67],"m":"dec","o":"a_43F3","oa":17395,"x":[15887,15902,15917,15925]},{"a":16177,"t":"code","b":[141,245,67],"m":"sta","o":"a_43F5","oa":17397},{"a":16180,"t":"code","b":[142,246,67],"m":"stx","o":"a_43F6","oa":17398},{"a":16183,"t":"code","b":[174,236,67],"m":"ldx","o":"a_43EC","oa":17388},{"a":16186,"t":"code","b":[254,63,117],"m":"inc","o":"f_753F,x","oa":30015},{"a":16189,"t":"code","b":[170],"m":"tax"},{"a":16190,"t":"code","b":[173,239,67],"m":"lda","o":"a_43EF","oa":17391},{"a":16193,"t":"code","b":[157,201,67],"m":"sta","o":"f_43C9,x","oa":17353},{"a":16196,"t":"code","b":[173,235,67],"m":"lda","o":"a_43EB","oa":17387},{"a":16199,"t":"code","b":[157,110,67],"m":"sta","o":"f_436E,x","oa":17262},{"a":16202,"l":"start_part_data","c":"Finds part $43F6's commands in the sound (the first follows the header, the others' offsets are there, how many by the table at $4502) and, when the part has a pulse width part ($44FA), starts that on channel X plus 4; then starts the channel (start_channel)","t":"code","b":[174,245,67],"m":"ldx","o":"a_43F5","oa":17397,"x":[15948]},{"a":16205,"t":"code","b":[173,224,67],"m":"lda","o":"a_43E0","oa":17376},{"a":16208,"t":"code","b":[29,90,67],"m":"ora","o":"f_435A,x","oa":17242},{"a":16211,"t":"code","b":[141,224,67],"m":"sta","o":"a_43E0","oa":17376},{"a":16214,"t":"code","b":[173,236,67],"m":"lda","o":"a_43EC","oa":17388},{"a":16217,"t":"code","b":[157,117,67],"m":"sta","o":"f_4375,x","oa":17269},{"a":16220,"t":"code","b":[174,246,67],"m":"ldx","o":"a_43F6","oa":17398},{"a":16223,"t":"code","b":[173,238,67],"m":"lda","o":"a_43EE","oa":17390},{"a":16226,"t":"code","b":[61,254,68],"m":"and","o":"f_44FE,x","oa":17662},{"a":16229,"t":"code","b":[170],"m":"tax"},{"a":16230,"t":"code","b":[189,2,69],"m":"lda","o":"f_4502,x","oa":17666},{"a":16233,"t":"code","b":[168],"m":"tay"},{"a":16234,"t":"code","b":[174,245,67],"m":"ldx","o":"a_43F5","oa":17397},{"a":16237,"t":"code","b":[173,246,67],"m":"lda","o":"a_43F6","oa":17398},{"a":16240,"t":"code","b":[240,15],"m":"beq","o":"b_3F81","oa":16257},{"a":16242,"t":"code","b":[177,169],"m":"lda","o":"(zpa_A9),y","oa":169},{"a":16244,"t":"code","b":[157,208,67],"m":"sta","o":"f_43D0,x","oa":17360},{"a":16247,"t":"code","b":[200],"m":"iny"},{"a":16248,"t":"code","b":[177,169],"m":"lda","o":"(zpa_A9),y","oa":169},{"a":16250,"t":"code","b":[157,215,67],"m":"sta","o":"f_43D7,x","oa":17367},{"a":16253,"t":"code","b":[200],"m":"iny"},{"a":16254,"t":"code","b":[76,140,63],"m":"jmp","o":"j_3F8C","oa":16268},{"a":16257,"l":"b_3F81","t":"code","b":[152],"m":"tya","x":[16240]},{"a":16258,"t":"code","b":[157,208,67],"m":"sta","o":"f_43D0,x","oa":17360},{"a":16261,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16263,"t":"code","b":[157,215,67],"m":"sta","o":"f_43D7,x","oa":17367},{"a":16266,"t":"code","b":[160,6],"m":"ldy","o":"#$06"},{"a":16268,"l":"j_3F8C","t":"code","b":[138],"m":"txa","x":[16254]},{"a":16269,"t":"code","b":[72],"m":"pha"},{"a":16270,"t":"code","b":[173,238,67],"m":"lda","o":"a_43EE","oa":17390},{"a":16273,"t":"code","b":[174,246,67],"m":"ldx","o":"a_43F6","oa":17398},{"a":16276,"t":"code","b":[61,250,68],"m":"and","o":"f_44FA,x","oa":17658},{"a":16279,"t":"code","b":[240,48],"m":"beq","o":"b_3FC9","oa":16329},{"a":16281,"t":"code","b":[174,245,67],"m":"ldx","o":"a_43F5","oa":17397},{"a":16284,"t":"code","b":[232],"m":"inx"},{"a":16285,"t":"code","b":[232],"m":"inx"},{"a":16286,"t":"code","b":[232],"m":"inx"},{"a":16287,"t":"code","b":[232],"m":"inx"},{"a":16288,"t":"code","b":[177,169],"m":"lda","o":"(zpa_A9),y","oa":169},{"a":16290,"t":"code","b":[157,208,67],"m":"sta","o":"f_43D0,x","oa":17360},{"a":16293,"t":"code","b":[200],"m":"iny"},{"a":16294,"t":"code","b":[177,169],"m":"lda","o":"(zpa_A9),y","oa":169},{"a":16296,"t":"code","b":[157,215,67],"m":"sta","o":"f_43D7,x","oa":17367},{"a":16299,"t":"code","b":[173,224,67],"m":"lda","o":"a_43E0","oa":17376},{"a":16302,"t":"code","b":[29,90,67],"m":"ora","o":"f_435A,x","oa":17242},{"a":16305,"t":"code","b":[141,224,67],"m":"sta","o":"a_43E0","oa":17376},{"a":16308,"t":"code","b":[173,239,67],"m":"lda","o":"a_43EF","oa":17391},{"a":16311,"t":"code","b":[157,201,67],"m":"sta","o":"f_43C9,x","oa":17353},{"a":16314,"t":"code","b":[173,235,67],"m":"lda","o":"a_43EB","oa":17387},{"a":16317,"t":"code","b":[157,110,67],"m":"sta","o":"f_436E,x","oa":17262},{"a":16320,"t":"code","b":[173,236,67],"m":"lda","o":"a_43EC","oa":17388},{"a":16323,"t":"code","b":[157,117,67],"m":"sta","o":"f_4375,x","oa":17269},{"a":16326,"t":"code","b":[32,191,64],"m":"jsr","o":"start_channel","oa":16575},{"a":16329,"l":"b_3FC9","t":"code","b":[104],"m":"pla","x":[16279]},{"a":16330,"t":"code","b":[170],"m":"tax"},{"a":16331,"t":"code","b":[76,191,64],"m":"jmp","o":"start_channel","oa":16575},{"a":16334,"l":"queue_sound","c":"Puts sound A on the list of sounds to start at the next frame ($43FB, ten at most) and counts it as used","t":"code","b":[174,5,68],"m":"ldx","o":"a_4405","oa":17413,"x":[22493]},{"a":16337,"t":"code","b":[224,10],"m":"cpx","o":"#$0A"},{"a":16339,"t":"code","b":[176,6],"m":"bcs","o":"b_3FDB","oa":16347},{"a":16341,"t":"code","b":[157,251,67],"m":"sta","o":"f_43FB,x","oa":17403},{"a":16344,"t":"code","b":[238,5,68],"m":"inc","o":"a_4405","oa":17413},{"a":16347,"l":"b_3FDB","t":"code","b":[170],"m":"tax","x":[16339]},{"a":16348,"t":"code","b":[254,63,117],"m":"inc","o":"f_753F,x","oa":30015},{"a":16351,"t":"code","b":[96],"m":"rts"},{"a":16352,"l":"sound_frame","c":"Each frame, from the raster interrupt: writes every channel's values to the sound chip (the volume and filter mode $43DE to $D418, the filter's routing $43DF to $D417, the three voices' frequency, control and envelope, the filter's cutoff, the pulse widths), calls the music's own code at $C395 while music plays ($43E8), starts the sounds waiting on the list, steps every channel in use (step_channel) and, when a voice is free, tries the sound waiting for one again","t":"code","b":[173,222,67],"m":"lda","o":"a_43DE","oa":17374,"x":[4948]},{"a":16355,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":16358,"t":"code","b":[173,223,67],"m":"lda","o":"a_43DF","oa":17375},{"a":16361,"t":"code","b":[141,23,212],"m":"sta","o":"sid_filter_resonance"},{"a":16364,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":16366,"l":"b_3FEE","t":"code","b":[189,83,67],"m":"lda","o":"f_4353,x","oa":17235,"x":[16405]},{"a":16369,"t":"code","b":[168],"m":"tay"},{"a":16370,"t":"code","b":[189,159,67],"m":"lda","o":"f_439F,x","oa":17311},{"a":16373,"t":"code","b":[153,0,212],"m":"sta","o":"sid_v1_freq_lo,y"},{"a":16376,"t":"code","b":[189,166,67],"m":"lda","o":"f_43A6,x","oa":17318},{"a":16379,"t":"code","b":[153,1,212],"m":"sta","o":"sid_v1_freq_hi,y"},{"a":16382,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":16384,"l":"voice_envelopes","c":"Voices only (X 0 to 2; channels 3 to 6, the filter and the pulse widths, have no control or envelope): the control and the envelope. The address is also the LDA operand that bus_write_sector writes over at $3BE7 before it sends a sector","t":"code","b":[16,18],"m":"bpl","o":"b_4014","oa":16404,"x":[15335]},{"a":16386,"t":"code","b":[189,138,67],"m":"lda","o":"f_438A,x","oa":17290},{"a":16389,"t":"code","b":[153,4,212],"m":"sta","o":"sid_v1_control,y"},{"a":16392,"t":"code","b":[189,104,67],"m":"lda","o":"f_4368,x","oa":17256},{"a":16395,"t":"code","b":[153,5,212],"m":"sta","o":"sid_v1_attack_decay,y"},{"a":16398,"t":"code","b":[189,107,67],"m":"lda","o":"f_436B,x","oa":17259},{"a":16401,"t":"code","b":[153,6,212],"m":"sta","o":"sid_v1_sustain_release,y"},{"a":16404,"l":"b_4014","t":"code","b":[202],"m":"dex","x":[16384]},{"a":16405,"t":"code","b":[16,215],"m":"bpl","o":"b_3FEE","oa":16366},{"a":16407,"t":"code","b":[173,232,67],"m":"lda","o":"a_43E8","oa":17384},{"a":16410,"t":"code","b":[240,3],"m":"beq","o":"b_401F","oa":16415},{"a":16412,"t":"code","b":[32,149,195],"m":"jsr","o":"s_C395","oa":50069},{"a":16415,"l":"b_401F","t":"code","b":[173,50,252],"m":"lda","o":"a_FC32","oa":64562,"x":[16410]},{"a":16418,"t":"code","b":[240,42],"m":"beq","o":"b_404E","oa":16462},{"a":16420,"t":"code","b":[174,5,68],"m":"ldx","o":"a_4405","oa":17413},{"a":16423,"t":"code","b":[202],"m":"dex"},{"a":16424,"t":"code","b":[48,28],"m":"bmi","o":"b_4046","oa":16454},{"a":16426,"l":"b_402A","t":"code","b":[138],"m":"txa","x":[16452]},{"a":16427,"t":"code","b":[72],"m":"pha"},{"a":16428,"t":"code","b":[189,251,67],"m":"lda","o":"f_43FB,x","oa":17403},{"a":16431,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":16433,"t":"code","b":[240,14],"m":"beq","o":"b_4041","oa":16449},{"a":16435,"t":"code","b":[72],"m":"pha"},{"a":16436,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":16438,"t":"code","b":[157,251,67],"m":"sta","o":"f_43FB,x","oa":17403},{"a":16441,"t":"code","b":[104],"m":"pla"},{"a":16442,"t":"code","b":[170],"m":"tax"},{"a":16443,"t":"code","b":[32,40,67],"m":"jsr","o":"sound_used_less","oa":17192},{"a":16446,"t":"code","b":[32,223,60],"m":"jsr","o":"begin_sound","oa":15583},{"a":16449,"l":"b_4041","t":"code","b":[104],"m":"pla","x":[16433]},{"a":16450,"t":"code","b":[170],"m":"tax"},{"a":16451,"t":"code","b":[202],"m":"dex"},{"a":16452,"t":"code","b":[16,228],"m":"bpl","o":"b_402A","oa":16426},{"a":16454,"l":"b_4046","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[16424]},{"a":16456,"t":"code","b":[141,5,68],"m":"sta","o":"a_4405","oa":17413},{"a":16459,"t":"code","b":[141,50,252],"m":"sta","o":"a_FC32","oa":64562},{"a":16462,"l":"b_404E","t":"code","b":[173,224,67],"m":"lda","o":"a_43E0","oa":17376,"x":[16418]},{"a":16465,"t":"code","b":[240,19],"m":"beq","o":"b_4066","oa":16486},{"a":16467,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":16469,"l":"b_4055","t":"code","b":[173,224,67],"m":"lda","o":"a_43E0","oa":17376,"x":[16484]},{"a":16472,"t":"code","b":[61,90,67],"m":"and","o":"f_435A,x","oa":17242},{"a":16475,"t":"code","b":[240,6],"m":"beq","o":"b_4063","oa":16483},{"a":16477,"t":"code","b":[32,78,65],"m":"jsr","o":"step_channel","oa":16718},{"a":16480,"t":"code","b":[174,225,67],"m":"ldx","o":"a_43E1","oa":17377},{"a":16483,"l":"b_4063","t":"code","b":[202],"m":"dex","x":[16475]},{"a":16484,"t":"code","b":[16,239],"m":"bpl","o":"b_4055","oa":16469},{"a":16486,"l":"b_4066","t":"code","b":[173,224,67],"m":"lda","o":"a_43E0","oa":17376,"x":[16465]},{"a":16489,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":16491,"t":"code","b":[201,7],"m":"cmp","o":"#$07"},{"a":16493,"t":"code","b":[240,17],"m":"beq","o":"r_4080","oa":16512},{"a":16495,"t":"code","b":[174,250,67],"m":"ldx","o":"a_43FA","oa":17402},{"a":16498,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16500,"t":"code","b":[141,250,67],"m":"sta","o":"a_43FA","oa":17402},{"a":16503,"t":"code","b":[141,249,67],"m":"sta","o":"a_43F9","oa":17401},{"a":16506,"t":"code","b":[138],"m":"txa"},{"a":16507,"t":"code","b":[240,3],"m":"beq","o":"r_4080","oa":16512},{"a":16509,"t":"code","b":[32,223,60],"m":"jsr","o":"begin_sound","oa":15583},{"a":16512,"l":"r_4080","t":"code","b":[96],"m":"rts","x":[16493,16507]},{"a":16513,"l":"init_sound","c":"Start-up: silences every register of the sound chip, sets the volume to 15 and clears every channel (reset_sound)","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[32645]},{"a":16515,"t":"code","b":[162,23],"m":"ldx","o":"#$17"},{"a":16517,"l":"b_4085","t":"code","b":[157,0,212],"m":"sta","o":"sid_v1_freq_lo,x","x":[16521]},{"a":16520,"t":"code","b":[202],"m":"dex"},{"a":16521,"t":"code","b":[16,250],"m":"bpl","o":"b_4085","oa":16517},{"a":16523,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":16525,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":16528,"t":"code","b":[141,222,67],"m":"sta","o":"a_43DE","oa":17374},{"a":16531,"l":"reset_sound","c":"Stops every channel, frees all three voices and empties the list of sounds to start; the music is off","t":"code","b":[162,6],"m":"ldx","o":"#$06","x":[1059]},{"a":16533,"l":"b_4095","t":"code","b":[32,152,62],"m":"jsr","o":"stop_channel","oa":16024,"x":[16537]},{"a":16536,"t":"code","b":[202],"m":"dex"},{"a":16537,"t":"code","b":[16,250],"m":"bpl","o":"b_4095","oa":16533},{"a":16539,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":16541,"t":"code","b":[141,243,67],"m":"sta","o":"a_43F3","oa":17395},{"a":16544,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16546,"t":"code","b":[141,5,68],"m":"sta","o":"a_4405","oa":17413},{"a":16549,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":16551,"t":"code","b":[141,247,67],"m":"sta","o":"a_43F7","oa":17399},{"a":16554,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16556,"t":"code","b":[141,249,67],"m":"sta","o":"a_43F9","oa":17401},{"a":16559,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16561,"t":"code","b":[141,232,67],"m":"sta","o":"a_43E8","oa":17384},{"a":16564,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16566,"t":"code","b":[141,234,67],"m":"sta","o":"a_43EA","oa":17386},{"a":16569,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16571,"t":"code","b":[141,233,67],"m":"sta","o":"a_43E9","oa":17385},{"a":16574,"t":"code","b":[96],"m":"rts"},{"a":16575,"l":"start_channel","c":"Starts channel X on its part's commands (the sound's address plus its offset): a voice's first byte is its control register and the second says whether the filter takes it; the filter's set its resonance and volume (filter_settings); then reads the first command (next_command)","t":"code","b":[142,225,67],"m":"stx","o":"a_43E1","oa":17377,"x":[16326,16331]},{"a":16578,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":16580,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":16582,"t":"code","b":[48,2],"m":"bmi","o":"b_40CA","oa":16586},{"a":16584,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16586,"l":"b_40CA","t":"code","b":[141,229,67],"m":"sta","o":"a_43E5","oa":17381,"x":[16582]},{"a":16589,"t":"code","b":[32,17,67],"m":"jsr","o":"channel_pointer","oa":17169},{"a":16592,"t":"code","b":[189,145,67],"m":"lda","o":"f_4391,x","oa":17297},{"a":16595,"t":"code","b":[133,167],"m":"sta","o":"zpa_A7","oa":167},{"a":16597,"t":"code","b":[189,152,67],"m":"lda","o":"f_4398,x","oa":17304},{"a":16600,"t":"code","b":[133,168],"m":"sta","o":"zpa_A8","oa":168},{"a":16602,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":16604,"t":"code","b":[224,4],"m":"cpx","o":"#$04"},{"a":16606,"t":"code","b":[16,43],"m":"bpl","o":"b_410B","oa":16651},{"a":16608,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":16610,"t":"code","b":[208,6],"m":"bne","o":"b_40EA","oa":16618},{"a":16612,"t":"code","b":[32,20,65],"m":"jsr","o":"filter_settings","oa":16660},{"a":16615,"t":"code","b":[76,13,65],"m":"jmp","o":"j_410D","oa":16653},{"a":16618,"l":"b_40EA","t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167,"x":[16610]},{"a":16620,"t":"code","b":[157,138,67],"m":"sta","o":"f_438A,x","oa":17290},{"a":16623,"t":"code","b":[200],"m":"iny"},{"a":16624,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":16626,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":16628,"t":"code","b":[240,9],"m":"beq","o":"b_40FF","oa":16639},{"a":16630,"t":"code","b":[173,223,67],"m":"lda","o":"a_43DF","oa":17375},{"a":16633,"t":"code","b":[29,90,67],"m":"ora","o":"f_435A,x","oa":17242},{"a":16636,"t":"code","b":[76,5,65],"m":"jmp","o":"j_4105","oa":16645},{"a":16639,"l":"b_40FF","t":"code","b":[173,223,67],"m":"lda","o":"a_43DF","oa":17375,"x":[16628]},{"a":16642,"t":"code","b":[61,97,67],"m":"and","o":"f_4361,x","oa":17249},{"a":16645,"l":"j_4105","t":"code","b":[141,223,67],"m":"sta","o":"a_43DF","oa":17375,"x":[16636]},{"a":16648,"t":"code","b":[76,13,65],"m":"jmp","o":"j_410D","oa":16653},{"a":16651,"l":"b_410B","t":"code","b":[160,255],"m":"ldy","o":"#$FF","x":[16606]},{"a":16653,"l":"j_410D","t":"code","b":[32,47,65],"m":"jsr","o":"advance_pointer","oa":16687,"x":[16615,16648]},{"a":16656,"t":"code","b":[32,155,65],"m":"jsr","o":"next_command","oa":16795},{"a":16659,"t":"code","b":[96],"m":"rts"},{"a":16660,"l":"filter_settings","c":"The filter's resonance (the high four bits of the byte) into $43DF, and its mode and volume (the next byte) into $43DE","t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167,"x":[16612,17034]},{"a":16662,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":16664,"t":"code","b":[72],"m":"pha"},{"a":16665,"t":"code","b":[173,223,67],"m":"lda","o":"a_43DF","oa":17375},{"a":16668,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":16670,"t":"code","b":[141,223,67],"m":"sta","o":"a_43DF","oa":17375},{"a":16673,"t":"code","b":[104],"m":"pla"},{"a":16674,"t":"code","b":[13,223,67],"m":"ora","o":"a_43DF","oa":17375},{"a":16677,"t":"code","b":[141,223,67],"m":"sta","o":"a_43DF","oa":17375},{"a":16680,"t":"code","b":[200],"m":"iny"},{"a":16681,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":16683,"t":"code","b":[141,222,67],"m":"sta","o":"a_43DE","oa":17374},{"a":16686,"t":"code","b":[96],"m":"rts"},{"a":16687,"l":"advance_pointer","c":"Moves channel $43E1's pointer and offset on by Y plus 1","t":"code","b":[174,225,67],"m":"ldx","o":"a_43E1","oa":17377,"x":[16653,17110,17165]},{"a":16690,"t":"code","b":[200],"m":"iny"},{"a":16691,"t":"code","b":[152],"m":"tya"},{"a":16692,"t":"code","b":[24],"m":"clc"},{"a":16693,"t":"code","b":[125,145,67],"m":"adc","o":"f_4391,x","oa":17297},{"a":16696,"t":"code","b":[157,145,67],"m":"sta","o":"f_4391,x","oa":17297},{"a":16699,"t":"code","b":[144,3],"m":"bcc","o":"b_4140","oa":16704},{"a":16701,"t":"code","b":[254,152,67],"m":"inc","o":"f_4398,x","oa":17304},{"a":16704,"l":"b_4140","t":"code","b":[152],"m":"tya","x":[16699]},{"a":16705,"t":"code","b":[24],"m":"clc"},{"a":16706,"t":"code","b":[125,208,67],"m":"adc","o":"f_43D0,x","oa":17360},{"a":16709,"t":"code","b":[157,208,67],"m":"sta","o":"f_43D0,x","oa":17360},{"a":16712,"t":"code","b":[144,3],"m":"bcc","o":"r_414D","oa":16717},{"a":16714,"t":"code","b":[254,215,67],"m":"inc","o":"f_43D7,x","oa":17367},{"a":16717,"l":"r_414D","t":"code","b":[96],"m":"rts","x":[16712]},{"a":16718,"l":"step_channel","c":"Each frame, for channel X: counts down the time left on the command; while there is time, adds the slide ($43BB/$43C2) to the value (frequency, cutoff or pulse width); when it runs out, reads the next command","t":"code","b":[142,225,67],"m":"stx","o":"a_43E1","oa":17377,"x":[16477]},{"a":16721,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":16723,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":16725,"t":"code","b":[48,2],"m":"bmi","o":"b_4159","oa":16729},{"a":16727,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16729,"l":"b_4159","t":"code","b":[141,229,67],"m":"sta","o":"a_43E5","oa":17381,"x":[16725]},{"a":16732,"t":"code","b":[189,173,67],"m":"lda","o":"f_43AD,x","oa":17325},{"a":16735,"t":"code","b":[56],"m":"sec"},{"a":16736,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":16738,"t":"code","b":[157,173,67],"m":"sta","o":"f_43AD,x","oa":17325},{"a":16741,"t":"code","b":[176,17],"m":"bcs","o":"b_4178","oa":16760},{"a":16743,"t":"code","b":[189,180,67],"m":"lda","o":"f_43B4,x","oa":17332},{"a":16746,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":16748,"t":"code","b":[157,180,67],"m":"sta","o":"f_43B4,x","oa":17332},{"a":16751,"t":"code","b":[176,4],"m":"bcs","o":"b_4175","oa":16757},{"a":16753,"t":"code","b":[32,155,65],"m":"jsr","o":"next_command","oa":16795},{"a":16756,"t":"code","b":[96],"m":"rts"},{"a":16757,"l":"b_4175","t":"code","b":[76,139,65],"m":"jmp","o":"r_418B","oa":16779,"x":[16751]},{"a":16760,"l":"b_4178","t":"code","b":[189,159,67],"m":"lda","o":"f_439F,x","oa":17311,"x":[16741]},{"a":16763,"t":"code","b":[24],"m":"clc"},{"a":16764,"t":"code","b":[125,187,67],"m":"adc","o":"f_43BB,x","oa":17339},{"a":16767,"t":"code","b":[157,159,67],"m":"sta","o":"f_439F,x","oa":17311},{"a":16770,"t":"code","b":[189,166,67],"m":"lda","o":"f_43A6,x","oa":17318},{"a":16773,"t":"code","b":[125,194,67],"m":"adc","o":"f_43C2,x","oa":17346},{"a":16776,"t":"code","b":[157,166,67],"m":"sta","o":"f_43A6,x","oa":17318},{"a":16779,"l":"r_418B","t":"code","b":[96],"m":"rts","x":[16757]},{"a":16780,"l":"clear_time_slide","c":"Clears channel X's time and slide","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[16922,16928,17059]},{"a":16782,"t":"code","b":[157,173,67],"m":"sta","o":"f_43AD,x","oa":17325},{"a":16785,"t":"code","b":[157,180,67],"m":"sta","o":"f_43B4,x","oa":17332},{"a":16788,"t":"code","b":[157,187,67],"m":"sta","o":"f_43BB,x","oa":17339},{"a":16791,"t":"code","b":[157,194,67],"m":"sta","o":"f_43C2,x","oa":17346},{"a":16794,"t":"code","b":[96],"m":"rts"},{"a":16795,"l":"next_command","c":"Reads channel $43E1's next command; 0 ends the part (stop_channel). Its bits, from bit 0: the voice's gate; stop now; a new value followed (unless bit 6 is set) by a time and a slide; for a voice, a new envelope with the gate started again, or for the filter and pulse width parts a byte saying which of a pulse width, filter settings with a cutoff, or a time follow; a waveform; and with bit 6, a loop back by the byte that follows, as many times as the byte after that says, before the next command is read at once","t":"code","b":[174,225,67],"m":"ldx","o":"a_43E1","oa":17377,"x":[16656,16753,17162]},{"a":16798,"t":"code","b":[32,17,67],"m":"jsr","o":"channel_pointer","oa":17169},{"a":16801,"t":"code","b":[189,145,67],"m":"lda","o":"f_4391,x","oa":17297},{"a":16804,"t":"code","b":[133,167],"m":"sta","o":"zpa_A7","oa":167},{"a":16806,"t":"code","b":[189,152,67],"m":"lda","o":"f_4398,x","oa":17304},{"a":16809,"t":"code","b":[133,168],"m":"sta","o":"zpa_A8","oa":168},{"a":16811,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":16813,"t":"code","b":[141,230,67],"m":"sta","o":"a_43E6","oa":17382},{"a":16816,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":16818,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":16820,"t":"code","b":[208,10],"m":"bne","o":"b_41C0","oa":16832},{"a":16822,"t":"code","b":[141,230,67],"m":"sta","o":"a_43E6","oa":17382},{"a":16825,"t":"code","b":[157,131,67],"m":"sta","o":"f_4383,x","oa":17283},{"a":16828,"t":"code","b":[32,152,62],"m":"jsr","o":"stop_channel","oa":16024},{"a":16831,"t":"code","b":[96],"m":"rts"},{"a":16832,"l":"b_41C0","t":"code","b":[157,124,67],"m":"sta","o":"f_437C,x","oa":17276,"x":[16820]},{"a":16835,"t":"code","b":[141,226,67],"m":"sta","o":"a_43E2","oa":17378},{"a":16838,"t":"code","b":[141,228,67],"m":"sta","o":"a_43E4","oa":17380},{"a":16841,"t":"code","b":[44,229,67],"m":"bit","o":"a_43E5","oa":17381},{"a":16844,"t":"code","b":[78,226,67],"m":"lsr","o":"a_43E2","oa":17378},{"a":16847,"t":"code","b":[80,15],"m":"bvc","o":"b_41E0","oa":16864},{"a":16849,"t":"code","b":[189,138,67],"m":"lda","o":"f_438A,x","oa":17290},{"a":16852,"t":"code","b":[144,5],"m":"bcc","o":"b_41DB","oa":16859},{"a":16854,"t":"code","b":[9,1],"m":"ora","o":"#$01"},{"a":16856,"t":"code","b":[76,221,65],"m":"jmp","o":"j_41DD","oa":16861},{"a":16859,"l":"b_41DB","t":"code","b":[41,254],"m":"and","o":"#$FE","x":[16852]},{"a":16861,"l":"j_41DD","t":"code","b":[157,138,67],"m":"sta","o":"f_438A,x","oa":17290,"x":[16856]},{"a":16864,"l":"b_41E0","t":"code","b":[78,226,67],"m":"lsr","o":"a_43E2","oa":17378,"x":[16847]},{"a":16867,"t":"code","b":[144,4],"m":"bcc","o":"b_41E9","oa":16873},{"a":16869,"t":"code","b":[32,152,62],"m":"jsr","o":"stop_channel","oa":16024},{"a":16872,"t":"code","b":[96],"m":"rts"},{"a":16873,"l":"b_41E9","t":"code","b":[78,226,67],"m":"lsr","o":"a_43E2","oa":17378,"x":[16867]},{"a":16876,"t":"code","b":[44,228,67],"m":"bit","o":"a_43E4","oa":17380},{"a":16879,"t":"code","b":[144,47],"m":"bcc","o":"b_4220","oa":16928},{"a":16881,"t":"code","b":[200],"m":"iny"},{"a":16882,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":16884,"t":"code","b":[157,159,67],"m":"sta","o":"f_439F,x","oa":17311},{"a":16887,"t":"code","b":[200],"m":"iny"},{"a":16888,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":16890,"t":"code","b":[157,166,67],"m":"sta","o":"f_43A6,x","oa":17318},{"a":16893,"t":"code","b":[112,27],"m":"bvs","o":"b_421A","oa":16922},{"a":16895,"t":"code","b":[200],"m":"iny"},{"a":16896,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":16898,"t":"code","b":[157,173,67],"m":"sta","o":"f_43AD,x","oa":17325},{"a":16901,"t":"code","b":[200],"m":"iny"},{"a":16902,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":16904,"t":"code","b":[157,180,67],"m":"sta","o":"f_43B4,x","oa":17332},{"a":16907,"t":"code","b":[200],"m":"iny"},{"a":16908,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":16910,"t":"code","b":[157,187,67],"m":"sta","o":"f_43BB,x","oa":17339},{"a":16913,"t":"code","b":[200],"m":"iny"},{"a":16914,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":16916,"t":"code","b":[157,194,67],"m":"sta","o":"f_43C2,x","oa":17346},{"a":16919,"t":"code","b":[76,35,66],"m":"jmp","o":"j_4223","oa":16931},{"a":16922,"l":"b_421A","t":"code","b":[32,140,65],"m":"jsr","o":"clear_time_slide","oa":16780,"x":[16893]},{"a":16925,"t":"code","b":[76,35,66],"m":"jmp","o":"j_4223","oa":16931},{"a":16928,"l":"b_4220","t":"code","b":[32,140,65],"m":"jsr","o":"clear_time_slide","oa":16780,"x":[16879]},{"a":16931,"l":"j_4223","t":"code","b":[44,229,67],"m":"bit","o":"a_43E5","oa":17381,"x":[16919,16925]},{"a":16934,"t":"code","b":[78,226,67],"m":"lsr","o":"a_43E2","oa":17378},{"a":16937,"t":"code","b":[80,50],"m":"bvc","o":"b_425D","oa":16989},{"a":16939,"t":"code","b":[144,48],"m":"bcc","o":"b_425D","oa":16989},{"a":16941,"t":"code","b":[140,231,67],"m":"sty","o":"a_43E7","oa":17383},{"a":16944,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":16946,"t":"code","b":[16,12],"m":"bpl","o":"b_4240","oa":16960},{"a":16948,"t":"code","b":[189,83,67],"m":"lda","o":"f_4353,x","oa":17235},{"a":16951,"t":"code","b":[168],"m":"tay"},{"a":16952,"t":"code","b":[189,138,67],"m":"lda","o":"f_438A,x","oa":17290},{"a":16955,"t":"code","b":[41,254],"m":"and","o":"#$FE"},{"a":16957,"t":"code","b":[153,4,212],"m":"sta","o":"sid_v1_control,y"},{"a":16960,"l":"b_4240","t":"code","b":[172,231,67],"m":"ldy","o":"a_43E7","oa":17383,"x":[16946]},{"a":16963,"t":"code","b":[174,225,67],"m":"ldx","o":"a_43E1","oa":17377},{"a":16966,"t":"code","b":[200],"m":"iny"},{"a":16967,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":16969,"t":"code","b":[157,104,67],"m":"sta","o":"f_4368,x","oa":17256},{"a":16972,"t":"code","b":[200],"m":"iny"},{"a":16973,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":16975,"t":"code","b":[157,107,67],"m":"sta","o":"f_436B,x","oa":17259},{"a":16978,"t":"code","b":[189,124,67],"m":"lda","o":"f_437C,x","oa":17276},{"a":16981,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":16983,"t":"code","b":[29,138,67],"m":"ora","o":"f_438A,x","oa":17290},{"a":16986,"t":"code","b":[157,138,67],"m":"sta","o":"f_438A,x","oa":17290},{"a":16989,"l":"b_425D","t":"code","b":[78,226,67],"m":"lsr","o":"a_43E2","oa":17378,"x":[16937,16939]},{"a":16992,"t":"code","b":[144,80],"m":"bcc","o":"b_42B2","oa":17074},{"a":16994,"t":"code","b":[200],"m":"iny"},{"a":16995,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":16997,"t":"code","b":[141,227,67],"m":"sta","o":"a_43E3","oa":17379},{"a":17000,"t":"code","b":[44,229,67],"m":"bit","o":"a_43E5","oa":17381},{"a":17003,"t":"code","b":[78,227,67],"m":"lsr","o":"a_43E3","oa":17379},{"a":17006,"t":"code","b":[80,20],"m":"bvc","o":"b_4284","oa":17028},{"a":17008,"t":"code","b":[144,18],"m":"bcc","o":"b_4284","oa":17028},{"a":17010,"t":"code","b":[232],"m":"inx"},{"a":17011,"t":"code","b":[232],"m":"inx"},{"a":17012,"t":"code","b":[232],"m":"inx"},{"a":17013,"t":"code","b":[232],"m":"inx"},{"a":17014,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":17016,"t":"code","b":[157,159,67],"m":"sta","o":"f_439F,x","oa":17311},{"a":17019,"t":"code","b":[200],"m":"iny"},{"a":17020,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":17022,"t":"code","b":[157,166,67],"m":"sta","o":"f_43A6,x","oa":17318},{"a":17025,"t":"code","b":[174,225,67],"m":"ldx","o":"a_43E1","oa":17377},{"a":17028,"l":"b_4284","t":"code","b":[78,227,67],"m":"lsr","o":"a_43E3","oa":17379,"x":[17006,17008]},{"a":17031,"t":"code","b":[144,21],"m":"bcc","o":"b_429E","oa":17054},{"a":17033,"t":"code","b":[200],"m":"iny"},{"a":17034,"t":"code","b":[32,20,65],"m":"jsr","o":"filter_settings","oa":16660},{"a":17037,"t":"code","b":[200],"m":"iny"},{"a":17038,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":17040,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":17042,"t":"code","b":[157,159,67],"m":"sta","o":"f_439F,x","oa":17311},{"a":17045,"t":"code","b":[200],"m":"iny"},{"a":17046,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":17048,"t":"code","b":[157,166,67],"m":"sta","o":"f_43A6,x","oa":17318},{"a":17051,"t":"code","b":[174,225,67],"m":"ldx","o":"a_43E1","oa":17377},{"a":17054,"l":"b_429E","t":"code","b":[78,227,67],"m":"lsr","o":"a_43E3","oa":17379,"x":[17031]},{"a":17057,"t":"code","b":[144,15],"m":"bcc","o":"b_42B2","oa":17074},{"a":17059,"t":"code","b":[32,140,65],"m":"jsr","o":"clear_time_slide","oa":16780},{"a":17062,"t":"code","b":[200],"m":"iny"},{"a":17063,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":17065,"t":"code","b":[157,173,67],"m":"sta","o":"f_43AD,x","oa":17325},{"a":17068,"t":"code","b":[200],"m":"iny"},{"a":17069,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":17071,"t":"code","b":[157,180,67],"m":"sta","o":"f_43B4,x","oa":17332},{"a":17074,"l":"b_42B2","t":"code","b":[78,226,67],"m":"lsr","o":"a_43E2","oa":17378,"x":[16992,17057]},{"a":17077,"t":"code","b":[144,11],"m":"bcc","o":"b_42C2","oa":17090},{"a":17079,"t":"code","b":[189,138,67],"m":"lda","o":"f_438A,x","oa":17290},{"a":17082,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":17084,"t":"code","b":[200],"m":"iny"},{"a":17085,"t":"code","b":[17,167],"m":"ora","o":"(zpa_A7),y","oa":167},{"a":17087,"t":"code","b":[157,138,67],"m":"sta","o":"f_438A,x","oa":17290},{"a":17090,"l":"b_42C2","t":"code","b":[78,226,67],"m":"lsr","o":"a_43E2","oa":17378,"x":[17077]},{"a":17093,"t":"code","b":[78,226,67],"m":"lsr","o":"a_43E2","oa":17378},{"a":17096,"t":"code","b":[144,67],"m":"bcc","o":"b_430D","oa":17165},{"a":17098,"t":"code","b":[189,131,67],"m":"lda","o":"f_4383,x","oa":17283},{"a":17101,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":17103,"t":"code","b":[208,11],"m":"bne","o":"b_42DC","oa":17116},{"a":17105,"t":"code","b":[222,131,67],"m":"dec","o":"f_4383,x","oa":17283},{"a":17108,"t":"code","b":[200],"m":"iny"},{"a":17109,"t":"code","b":[200],"m":"iny"},{"a":17110,"t":"code","b":[32,47,65],"m":"jsr","o":"advance_pointer","oa":16687},{"a":17113,"t":"code","b":[76,10,67],"m":"jmp","o":"j_430A","oa":17162},{"a":17116,"l":"b_42DC","t":"code","b":[200],"m":"iny","x":[17103]},{"a":17117,"t":"code","b":[189,145,67],"m":"lda","o":"f_4391,x","oa":17297},{"a":17120,"t":"code","b":[56],"m":"sec"},{"a":17121,"t":"code","b":[241,167],"m":"sbc","o":"(zpa_A7),y","oa":167},{"a":17123,"t":"code","b":[157,145,67],"m":"sta","o":"f_4391,x","oa":17297},{"a":17126,"t":"code","b":[176,3],"m":"bcs","o":"b_42EB","oa":17131},{"a":17128,"t":"code","b":[222,152,67],"m":"dec","o":"f_4398,x","oa":17304},{"a":17131,"l":"b_42EB","t":"code","b":[189,208,67],"m":"lda","o":"f_43D0,x","oa":17360,"x":[17126]},{"a":17134,"t":"code","b":[56],"m":"sec"},{"a":17135,"t":"code","b":[241,167],"m":"sbc","o":"(zpa_A7),y","oa":167},{"a":17137,"t":"code","b":[157,208,67],"m":"sta","o":"f_43D0,x","oa":17360},{"a":17140,"t":"code","b":[176,3],"m":"bcs","o":"b_42F9","oa":17145},{"a":17142,"t":"code","b":[222,215,67],"m":"dec","o":"f_43D7,x","oa":17367},{"a":17145,"l":"b_42F9","t":"code","b":[200],"m":"iny","x":[17140]},{"a":17146,"t":"code","b":[189,131,67],"m":"lda","o":"f_4383,x","oa":17283},{"a":17149,"t":"code","b":[208,8],"m":"bne","o":"b_4307","oa":17159},{"a":17151,"t":"code","b":[177,167],"m":"lda","o":"(zpa_A7),y","oa":167},{"a":17153,"t":"code","b":[157,131,67],"m":"sta","o":"f_4383,x","oa":17283},{"a":17156,"t":"code","b":[76,10,67],"m":"jmp","o":"j_430A","oa":17162},{"a":17159,"l":"b_4307","t":"code","b":[222,131,67],"m":"dec","o":"f_4383,x","oa":17283,"x":[17149]},{"a":17162,"l":"j_430A","t":"code","b":[76,155,65],"m":"jmp","o":"next_command","oa":16795,"x":[17113,17156]},{"a":17165,"l":"b_430D","t":"code","b":[32,47,65],"m":"jsr","o":"advance_pointer","oa":16687,"x":[17096]},{"a":17168,"t":"code","b":[96],"m":"rts"},{"a":17169,"l":"channel_pointer","c":"Channel X's pointer: its sound's address plus its offset","t":"code","b":[188,117,67],"m":"ldy","o":"f_4375,x","oa":17269,"x":[16589,16798]},{"a":17172,"t":"code","b":[185,192,116],"m":"lda","o":"f_74C0,y","oa":29888},{"a":17175,"t":"code","b":[24],"m":"clc"},{"a":17176,"t":"code","b":[125,208,67],"m":"adc","o":"f_43D0,x","oa":17360},{"a":17179,"t":"code","b":[157,145,67],"m":"sta","o":"f_4391,x","oa":17297},{"a":17182,"t":"code","b":[185,65,116],"m":"lda","o":"f_7441,y","oa":29761},{"a":17185,"t":"code","b":[125,215,67],"m":"adc","o":"f_43D7,x","oa":17367},{"a":17188,"t":"code","b":[157,152,67],"m":"sta","o":"f_4398,x","oa":17304},{"a":17191,"t":"code","b":[96],"m":"rts"},{"a":17192,"l":"sound_used_less","c":"Counts sound X as used once less, for sounds from 6 on: the first five are never let go","t":"code","b":[224,5],"m":"cpx","o":"#$05","x":[16015,16054,16443]},{"a":17194,"t":"code","b":[144,5],"m":"bcc","o":"r_4331","oa":17201},{"a":17196,"t":"code","b":[240,3],"m":"beq","o":"r_4331","oa":17201},{"a":17198,"t":"code","b":[222,63,117],"m":"dec","o":"f_753F,x","oa":30015},{"a":17201,"l":"r_4331","t":"code","b":[96],"m":"rts","x":[17194,17196]},{"a":17202,"l":"stop_music","c":"Stops the music: off ($43E8), its voices given back ($43E9), the music's sound no longer counted as in use, and its state cleared","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[24212]},{"a":17204,"t":"code","b":[141,234,67],"m":"sta","o":"a_43EA","oa":17386},{"a":17207,"t":"code","b":[141,232,67],"m":"sta","o":"a_43E8","oa":17384},{"a":17210,"t":"code","b":[174,166,68],"m":"ldx","o":"a_44A6","oa":17574},{"a":17213,"t":"code","b":[240,5],"m":"beq","o":"b_4344","oa":17220},{"a":17215,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17217,"t":"code","b":[157,63,117],"m":"sta","o":"f_753F,x","oa":30015},{"a":17220,"l":"b_4344","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[17213]},{"a":17222,"t":"code","b":[141,233,67],"m":"sta","o":"a_43E9","oa":17385},{"a":17225,"t":"code","b":[141,160,68],"m":"sta","o":"a_44A0","oa":17568},{"a":17228,"t":"code","b":[141,161,68],"m":"sta","o":"a_44A1","oa":17569},{"a":17231,"t":"code","b":[141,162,68],"m":"sta","o":"a_44A2","oa":17570},{"a":17234,"t":"code","b":[96],"m":"rts"},{"a":17235,"l":"f_4353","c":"The sound chip register each channel writes: the three voices at $D400, $D407 and $D40E, the filter's cutoff at $D415, the three pulse widths at $D402, $D409 and $D410","t":"byte","b":[0,7,14,21,2,9,16],"x":[16076,16366,16948]},{"a":17242,"l":"f_435A","c":"The bit for each channel in $43E0 and $43DF; $4361 the same bits cleared","t":"byte","b":[1,2,4,8,16,32,64],"x":[16208,16302,16472,16633]},{"a":17249,"l":"f_4361","c":"The same bits cleared ($FE, $FD ... $BF), to take a channel out of $43E0 and $43DF","t":"byte","b":[254,253,251,247,239,223,191],"x":[16099,16118,16642]},{"a":17256,"l":"f_4368","c":"Each voice's attack and decay; $436B its sustain and release","t":"byte","b":[0,0,0],"x":[16392,16969]},{"a":17259,"l":"f_436B","c":"Each voice's sustain and release, written to $D406 every frame","t":"byte","b":[0,0,0],"x":[16398,16975]},{"a":17262,"l":"f_436E","c":"Each channel's sound's priority, $FF when free","t":"byte","b":[255,255,255,255,255,255,255],"x":[16134,16149,16162,16199,16317]},{"a":17269,"l":"f_4375","c":"The sound on each channel","t":"byte","b":[0,0,0,0,0,0,0],"x":[15978,16026,16129,16156,16217,16323,17169]},{"a":17276,"l":"f_437C","c":"Each channel's last command","t":"byte","b":[0,0,0,0,0,0,0],"x":[16832,16978]},{"a":17283,"l":"f_4383","c":"Each channel's loop count","t":"byte","b":[0,0,0,0,0,0,0],"x":[16126,16825,17098,17105,17146,17153,17159]},{"a":17290,"l":"f_438A","c":"Each voice's control register: waveform and gate","t":"byte","b":[0,0,0,0,0,0,0],"x":[16044,16386,16620,16849,16861,16952,16983,16986,17079,17087]},{"a":17297,"l":"f_4391","c":"Each channel's pointer into its sound ($4398 high)","t":"byte","b":[0,0,0,0,0,0,0],"x":[16592,16693,16696,16801,17117,17123,17179]},{"a":17304,"l":"f_4398","c":"Each channel's pointer into its sound, high bytes","t":"byte","b":[0,0,0,0,0,0,0],"x":[16597,16701,16806,17128,17188]},{"a":17311,"l":"f_439F","c":"Each channel's value: frequency, cutoff or pulse width ($43A6 high)","t":"byte","b":[0,0,0,0,0,0,0],"x":[16370,16760,16767,16884,17016,17042]},{"a":17318,"l":"f_43A6","c":"Each channel's value, high bytes","t":"byte","b":[0,0,0,0,0,0,0],"x":[16376,16770,16776,16890,17022,17048]},{"a":17325,"l":"f_43AD","c":"Each channel's time left on its command ($43B4 high)","t":"byte","b":[0,0,0,0,0,0,0],"x":[16732,16738,16782,16898,17065]},{"a":17332,"l":"f_43B4","c":"Each channel's time left on its command, high bytes","t":"byte","b":[0,0,0,0,0,0,0],"x":[16743,16748,16785,16904,17071]},{"a":17339,"l":"f_43BB","c":"Each channel's slide, added every frame ($43C2 high)","t":"byte","b":[0,0,0,0,0,0,0],"x":[16764,16788,16910]},{"a":17346,"l":"f_43C2","c":"Each channel's slide, high bytes","t":"byte","b":[0,0,0,0,0,0,0],"x":[16773,16791,16916]},{"a":17353,"l":"f_43C9","c":"Whether each channel's sound uses the filter","t":"byte","b":[0,0,0,0,0,0,0],"x":[16091,16193,16311]},{"a":17360,"l":"f_43D0","c":"Each channel's offset into its sound ($43D7 high)","t":"byte","b":[0,0,0,0,0,0,0],"x":[16244,16258,16290,16706,16709,17131,17137,17176]},{"a":17367,"l":"f_43D7","c":"Each channel's offset into its sound, high bytes","t":"byte","b":[0,0,0,0,0,0,0],"x":[16250,16263,16296,16714,17142,17185]},{"a":17374,"l":"a_43DE","c":"The volume and filter mode, written to $D418 every frame","t":"byte","b":[15],"x":[5224,9151,12432,16352,16528,16683]},{"a":17375,"l":"a_43DF","c":"The filter's resonance and which voices it takes, for $D417","t":"byte","b":[0],"x":[16096,16102,16358,16630,16639,16645,16665,16670,16674,16677]},{"a":17376,"l":"a_43E0","c":"A bit for each channel in use","t":"byte","b":[0],"x":[5145,15876,15893,15908,16115,16121,16205,16211,16299,16305,16462,16469,16486]},{"a":17377,"l":"a_43E1","c":"The channel being worked on","t":"byte","b":[0],"x":[16480,16575,16687,16718,16795,16963,17025,17051]},{"a":17378,"l":"a_43E2","c":"The command's bits, shifted out one at a time; $43E3 the extra byte's","t":"byte","b":[0],"x":[16835,16844,16864,16873,16934,16989,17074,17090,17093]},{"a":17379,"l":"a_43E3","c":"The command's extra byte, its bits shifted out one at a time","t":"byte","b":[0],"x":[16997,17003,17028,17054]},{"a":17380,"l":"a_43E4","c":"The command, for BIT to test its bit 6","t":"byte","b":[0],"x":[16838,16876]},{"a":17381,"l":"a_43E5","c":"$FF when the channel is a voice, 0 otherwise","t":"byte","b":[0],"x":[16586,16729,16841,16931,17000]},{"a":17382,"l":"a_43E6","c":"Cleared when a part ends; $43E7 Y kept","t":"byte","b":[0],"x":[16813,16822]},{"a":17383,"l":"a_43E7","c":"Y, kept by next_command","t":"byte","b":[0],"x":[16941,16960]},{"a":17384,"l":"a_43E8","c":"$FF while the music plays","t":"byte","b":[0],"x":[1362,5107,15586,16407,16561,17207]},{"a":17385,"l":"a_43E9","c":"The voices the music takes; $43EA cleared with them","t":"byte","b":[0],"x":[15591,16571,17222]},{"a":17386,"l":"a_43EA","c":"A byte the music's own code keeps ($C5BC); reset_sound and stop_music clear it","t":"byte","b":[0],"x":[16566,17204]},{"a":17387,"l":"a_43EB","c":"The priority of the sound being started; $43EC the sound; $43ED whether it may wait; $43EE its parts","t":"byte","b":[0],"x":[15622,15652,15672,15693,15738,15811,15822,15843,15848,15858,16196,16314]},{"a":17388,"l":"a_43EC","c":"The sound being started","t":"byte","b":[0],"x":[15583,15603,15666,15687,15828,15864,16183,16214,16320]},{"a":17389,"l":"a_43ED","c":"Whether the sound being started may wait for a voice (bit 7 of its first byte)","t":"byte","b":[0],"x":[15629,15801]},{"a":17390,"l":"a_43EE","c":"The sound's second byte: the parts it has","t":"byte","b":[0],"x":[15635,15709,15717,15933,16223,16270]},{"a":17391,"l":"a_43EF","c":"Whether it uses the filter","t":"byte","b":[0],"x":[15644,15704,16190,16308]},{"a":17392,"l":"a_43F0","c":"The sound that holds the filter; $43F1 its priority","t":"byte","b":[0],"x":[15647,15660,15669,15690,16064,16071]},{"a":17393,"l":"a_43F1","c":"The priority of the sound that holds the filter","t":"byte","b":[0],"x":[15655,15675,15696]},{"a":17394,"l":"a_43F2","c":"The voices the sound needs; $43F3 the voices free","t":"byte","b":[0],"x":[15725,15728,15870]},{"a":17395,"l":"a_43F3","c":"The voices free, 3 at start","t":"byte","b":[3],"x":[15731,16039,16174,16541]},{"a":17396,"l":"a_43F4","c":"The sound being stopped","t":"byte","b":[0],"x":[15954,15970,15973,15981,16000,16012]},{"a":17397,"l":"a_43F5","c":"The channel being started; $43F6 the sound's part","t":"byte","b":[0],"x":[15942,16177,16202,16234,16281]},{"a":17398,"l":"a_43F6","c":"The part of the sound being started","t":"byte","b":[0],"x":[15945,16180,16220,16237,16273]},{"a":17399,"l":"a_43F7","c":"The lowest priority of a playing sound; $43F8 that sound","t":"byte","b":[255],"x":[15741,15783,15851,15861,16141,16165,16551]},{"a":17400,"l":"a_43F8","c":"The playing sound with the lowest priority","t":"byte","b":[255],"x":[15746,15777,15789,15867,16144,16159]},{"a":17401,"l":"a_43F9","c":"The priority of the sound waiting for a voice; $43FA that sound","t":"byte","b":[0],"x":[15770,15786,15814,15825,15967,16503,16556]},{"a":17402,"l":"a_43FA","c":"The sound waiting for a voice, 0 when none","t":"byte","b":[0],"x":[15780,15806,15831,15957,15964,16495,16500]},{"a":17403,"l":"f_43FB","c":"The sounds to start at the next frame, ten at most","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[15997,16007,16341,16428,16438]},{"a":17411,"t":"byte","b":[0,0]},{"a":17413,"l":"a_4405","c":"How many are on the list","t":"byte","b":[0],"x":[15992,16334,16344,16420,16456,16546]},{"a":17414,"l":"builtin_sound_3","c":"Sound 3, built into the program instead of loaded: the start-up points its entry in the sound table here and locks it, and free_unused_sounds never throws it out. It is the music's first voice: the music's code copies each note's instrument and pitch into it ($C49E) and starts it through this engine, at priority $7F. Sounds 4 and 5 follow, 45 bytes each, with the four-byte header of a resource","t":"byte","b":[0,0,0,0,127,1,25,0]},{"a":17422,"t":"byte","b":[0,0,45,0,0,0,0,0]},{"a":17430,"t":"byte","b":[0,0,240,64,16,4,0,0]},{"a":17438,"t":"byte","b":[0,4,39,3,255,255,1,0]},{"a":17446,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17454,"t":"byte","b":[0,0,0,0,0]},{"a":17459,"l":"builtin_sound_4","c":"Sound 4, the music's second voice: the same 45 bytes as sound 3 except two ($4446 $20 where sound 3 has $40, and $4451 2 where it has 1)","t":"byte","b":[0,0,0,0,127,1,25,0]},{"a":17467,"t":"byte","b":[0,0,45,0,0,0,0,0]},{"a":17475,"t":"byte","b":[0,0,240,32,16,4,0,0]},{"a":17483,"t":"byte","b":[0,4,39,3,255,255,2,0]},{"a":17491,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17499,"t":"byte","b":[0,0,0,0,0]},{"a":17504,"l":"builtin_sound_5","c":"Sound 5, the music's third voice: byte for byte the same as sound 4","t":"byte","b":[0,0,0,0,127,1,25,0]},{"a":17512,"t":"byte","b":[0,0,45,0,0,0,0,0]},{"a":17520,"t":"byte","b":[0,0,240,32,16,4,0,0]},{"a":17528,"t":"byte","b":[0,4,39,3,255,255,2,0]},{"a":17536,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17544,"t":"byte","b":[0,0,0,0,0,0]},{"a":17550,"l":"music_state","c":"The music's state, used by the music's own code once it is loaded at $C300: $448E-$4490 6, 8 and 10, where each voice's offset sits in the tune's header; $4491 the voices it plays; $4492-$4494 the sounds it plays them with, 3, 4 and 5; $44A6 the music's sound; $44AD/$44AE its address","t":"byte","b":[6,8,10,0,3,4,5,0]},{"a":17558,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17566,"t":"byte","b":[0,0]},{"a":17568,"l":"a_44A0","c":"The first music voice's byte 4 of its instrument, set by the music's code ($C4BF); cleared by stop_music","t":"byte","b":[0],"x":[17225]},{"a":17569,"l":"a_44A1","c":"The second music voice's byte 4 of its instrument; cleared by stop_music","t":"byte","b":[0],"x":[17228]},{"a":17570,"l":"a_44A2","c":"The third music voice's byte 4 of its instrument; cleared by stop_music, with the music's work bytes after it","t":"byte","b":[0,0,0,0],"x":[17231]},{"a":17574,"l":"a_44A6","c":"The music's sound number, kept by the music's code at $C304. stop_music clears that sound's entry in $753F, its use count, so that the heap may throw it out","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[17210]},{"a":17582,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17590,"t":"byte","b":[0]},{"a":17591,"l":"a_44B7","c":"The sound stop_channel lets go of","t":"byte","b":[0],"x":[16029,16049]},{"a":17592,"l":"music_lengths","c":"The music's note lengths, 33 of them, low bytes here and high bytes at $44D9: built by the music's own code ($C648) from the tune's tempo T as 0, then T less 2, 2T less 2, 3T less 2 and so on, and read at $C415. Zero in the program","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17600,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17608,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17616,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17624,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17632,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17640,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17648,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17656,"t":"byte","b":[0,0]},{"a":17658,"l":"f_44FA","c":"For each of a sound's parts, the bit saying it has a pulse width part with it","t":"byte","b":[1,4,16,0],"x":[16276]},{"a":17662,"l":"f_44FE","c":"For each part, the bits of the sound's second byte that say which parts come before it","t":"byte","b":[63,1,7,31],"x":[16226]},{"a":17666,"l":"f_4502","c":"For each set of parts, where the commands start: the header's length, two bytes for each part's offset","t":"byte","b":[6,8,8,10,8,10,10,12],"x":[16230]},{"a":17674,"t":"byte","b":[8,10,10,12,10,12,12,14]},{"a":17682,"t":"byte","b":[8,10,10,12,10,12,12,14]},{"a":17690,"t":"byte","b":[10,12,12,14,12,14,14,16]},{"a":17698,"t":"byte","b":[8,10,10,12,10,12,12,14]},{"a":17706,"t":"byte","b":[10,12,12,14,12,14,14,16]},{"a":17714,"t":"byte","b":[6,8,8,10,8,10,10,12]},{"a":17722,"t":"byte","b":[6,8,8,10,8,10,10,12]},{"a":17730,"c":"Not used: a zero between the sound's parts table and the heap's work bytes","t":"byte","b":[0]},{"a":17731,"l":"a_4543","c":"The size of the block being looked at ($4544 high)","t":"byte","b":[0],"x":[17750,17760,17806,18141,18151,18169,18183,18318,18331,18388]},{"a":17732,"l":"a_4544","c":"The high byte of the size of the block being looked at","t":"byte","b":[0],"x":[17756,17767,17814,18147,18157,18175,18189,18327,18336,18394]},{"a":17733,"l":"a_4545","c":"A high byte kept while blocks are linked","t":"byte","b":[0],"x":[18372,18381,18405,18414]},{"a":17734,"l":"merge_free_blocks","c":"Walks the list of free blocks, which sort_free_list keeps in address order, and joins each block to the next when it ends where the next begins; the tail ($FFF0) moves with them","t":"code","b":[173,238,255],"m":"lda","o":"heap_first_free","oa":65518,"x":[18525,54445]},{"a":17737,"t":"code","b":[133,63],"m":"sta","o":"zpa_3F","oa":63},{"a":17739,"t":"code","b":[173,239,255],"m":"lda","o":"a_FFEF","oa":65519},{"a":17742,"t":"code","b":[133,64],"m":"sta","o":"zpa_40","oa":64},{"a":17744,"t":"code","b":[240,113],"m":"beq","o":"r_45C3","oa":17859},{"a":17746,"l":"b_4552","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[17857]},{"a":17748,"t":"code","b":[177,63],"m":"lda","o":"(zpa_3F),y","oa":63},{"a":17750,"t":"code","b":[141,67,69],"m":"sta","o":"a_4543","oa":17731},{"a":17753,"t":"code","b":[200],"m":"iny"},{"a":17754,"t":"code","b":[177,63],"m":"lda","o":"(zpa_3F),y","oa":63},{"a":17756,"t":"code","b":[141,68,69],"m":"sta","o":"a_4544","oa":17732},{"a":17759,"t":"code","b":[24],"m":"clc"},{"a":17760,"t":"code","b":[173,67,69],"m":"lda","o":"a_4543","oa":17731},{"a":17763,"t":"code","b":[101,63],"m":"adc","o":"zpa_3F","oa":63},{"a":17765,"t":"code","b":[133,73],"m":"sta","o":"zpa_49","oa":73},{"a":17767,"t":"code","b":[173,68,69],"m":"lda","o":"a_4544","oa":17732},{"a":17770,"t":"code","b":[101,64],"m":"adc","o":"zpa_40","oa":64},{"a":17772,"t":"code","b":[133,74],"m":"sta","o":"zpa_4A","oa":74},{"a":17774,"t":"code","b":[32,125,71],"m":"jsr","o":"block_link","oa":18301},{"a":17777,"t":"code","b":[208,1],"m":"bne","o":"b_4574","oa":17780},{"a":17779,"t":"code","b":[96],"m":"rts"},{"a":17780,"l":"b_4574","t":"code","b":[228,73],"m":"cpx","o":"zpa_49","oa":73,"x":[17777]},{"a":17782,"t":"code","b":[208,2],"m":"bne","o":"b_457A","oa":17786},{"a":17784,"t":"code","b":[196,74],"m":"cpy","o":"zpa_4A","oa":74},{"a":17786,"l":"b_457A","t":"code","b":[208,62],"m":"bne","o":"b_45BA","oa":17850,"x":[17782]},{"a":17788,"t":"code","b":[134,73],"m":"stx","o":"zpa_49","oa":73},{"a":17790,"t":"code","b":[132,74],"m":"sty","o":"zpa_4A","oa":74},{"a":17792,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":17794,"t":"code","b":[177,73],"m":"lda","o":"(zpa_49),y","oa":73},{"a":17796,"t":"code","b":[145,63],"m":"sta","o":"(zpa_3F),y","oa":63},{"a":17798,"t":"code","b":[200],"m":"iny"},{"a":17799,"t":"code","b":[177,73],"m":"lda","o":"(zpa_49),y","oa":73},{"a":17801,"t":"code","b":[145,63],"m":"sta","o":"(zpa_3F),y","oa":63},{"a":17803,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":17805,"t":"code","b":[24],"m":"clc"},{"a":17806,"t":"code","b":[173,67,69],"m":"lda","o":"a_4543","oa":17731},{"a":17809,"t":"code","b":[113,73],"m":"adc","o":"(zpa_49),y","oa":73},{"a":17811,"t":"code","b":[145,63],"m":"sta","o":"(zpa_3F),y","oa":63},{"a":17813,"t":"code","b":[200],"m":"iny"},{"a":17814,"t":"code","b":[173,68,69],"m":"lda","o":"a_4544","oa":17732},{"a":17817,"t":"code","b":[113,73],"m":"adc","o":"(zpa_49),y","oa":73},{"a":17819,"t":"code","b":[145,63],"m":"sta","o":"(zpa_3F),y","oa":63},{"a":17821,"t":"code","b":[165,73],"m":"lda","o":"zpa_49","oa":73},{"a":17823,"t":"code","b":[205,240,255],"m":"cmp","o":"heap_free_tail","oa":65520},{"a":17826,"t":"code","b":[208,17],"m":"bne","o":"b_45B5","oa":17845},{"a":17828,"t":"code","b":[165,74],"m":"lda","o":"zpa_4A","oa":74},{"a":17830,"t":"code","b":[205,241,255],"m":"cmp","o":"a_FFF1","oa":65521},{"a":17833,"t":"code","b":[208,10],"m":"bne","o":"b_45B5","oa":17845},{"a":17835,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":17837,"t":"code","b":[141,240,255],"m":"sta","o":"heap_free_tail","oa":65520},{"a":17840,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":17842,"t":"code","b":[141,241,255],"m":"sta","o":"a_FFF1","oa":65521},{"a":17845,"l":"b_45B5","t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64,"x":[17826,17833]},{"a":17847,"t":"code","b":[76,193,69],"m":"jmp","o":"j_45C1","oa":17857},{"a":17850,"l":"b_45BA","t":"code","b":[32,125,71],"m":"jsr","o":"block_link","oa":18301,"x":[17786]},{"a":17853,"t":"code","b":[134,63],"m":"stx","o":"zpa_3F","oa":63},{"a":17855,"t":"code","b":[132,64],"m":"sty","o":"zpa_40","oa":64},{"a":17857,"l":"j_45C1","t":"code","b":[208,143],"m":"bne","o":"b_4552","oa":17746,"x":[17847]},{"a":17859,"l":"r_45C3","t":"code","b":[96],"m":"rts","x":[17744]},{"a":17860,"l":"a_45C4","c":"The block before the one being tried ($45C5 high), while the list is sorted","t":"byte","b":[0],"x":[17882,17951,17975]},{"a":17861,"l":"a_45C5","c":"The high byte of the block before the one being tried, while the list is sorted","t":"byte","b":[0],"x":[17887,17956,17980]},{"a":17862,"l":"a_45C6","c":"The block after it ($45C7 high)","t":"byte","b":[0],"x":[17915,17961,17983]},{"a":17863,"l":"a_45C7","c":"The high byte of the block after it","t":"byte","b":[0],"x":[17918,17967,17986]},{"a":17864,"l":"a_45C8","c":"The link the lowest block found had ($45C9 high)","t":"byte","b":[0],"x":[17964,18011]},{"a":17865,"l":"a_45C9","c":"The high byte of the link the lowest block found had","t":"byte","b":[0],"x":[17970,18029]},{"a":17866,"l":"sort_free_list","c":"Sorts the list of free blocks by address, after a block has been freed: for each place in the list, from the head, finds the lowest block after it and moves it there, then sets the tail ($FFF0) to the last","t":"code","b":[169,236],"m":"lda","o":"#$EC","x":[54442]},{"a":17868,"t":"code","b":[133,65],"m":"sta","o":"zpa_41","oa":65},{"a":17870,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":17872,"t":"code","b":[133,66],"m":"sta","o":"zpa_42","oa":66},{"a":17874,"l":"j_45D2","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[18051]},{"a":17876,"t":"code","b":[133,69],"m":"sta","o":"zpa_45","oa":69},{"a":17878,"t":"code","b":[133,70],"m":"sta","o":"zpa_46","oa":70},{"a":17880,"t":"code","b":[165,65],"m":"lda","o":"zpa_41","oa":65},{"a":17882,"t":"code","b":[141,196,69],"m":"sta","o":"a_45C4","oa":17860},{"a":17885,"t":"code","b":[165,66],"m":"lda","o":"zpa_42","oa":66},{"a":17887,"t":"code","b":[141,197,69],"m":"sta","o":"a_45C5","oa":17861},{"a":17890,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":17892,"t":"code","b":[177,65],"m":"lda","o":"(zpa_41),y","oa":65},{"a":17894,"t":"code","b":[133,67],"m":"sta","o":"zpa_43","oa":67},{"a":17896,"t":"code","b":[170],"m":"tax"},{"a":17897,"t":"code","b":[200],"m":"iny"},{"a":17898,"t":"code","b":[177,65],"m":"lda","o":"(zpa_41),y","oa":65},{"a":17900,"t":"code","b":[133,68],"m":"sta","o":"zpa_44","oa":68},{"a":17902,"t":"code","b":[168],"m":"tay"},{"a":17903,"t":"code","b":[208,3],"m":"bne","o":"b_45F4","oa":17908},{"a":17905,"t":"code","b":[76,134,70],"m":"jmp","o":"j_4686","oa":18054},{"a":17908,"l":"b_45F4","t":"code","b":[134,63],"m":"stx","o":"zpa_3F","oa":63,"x":[17903,17989]},{"a":17910,"t":"code","b":[132,64],"m":"sty","o":"zpa_40","oa":64},{"a":17912,"t":"code","b":[32,125,71],"m":"jsr","o":"block_link","oa":18301},{"a":17915,"t":"code","b":[142,198,69],"m":"stx","o":"a_45C6","oa":17862},{"a":17918,"t":"code","b":[140,199,69],"m":"sty","o":"a_45C7","oa":17863},{"a":17921,"t":"code","b":[56],"m":"sec"},{"a":17922,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":17924,"t":"code","b":[229,67],"m":"sbc","o":"zpa_43","oa":67},{"a":17926,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":17928,"t":"code","b":[229,68],"m":"sbc","o":"zpa_44","oa":68},{"a":17930,"t":"code","b":[176,41],"m":"bcs","o":"b_4635","oa":17973},{"a":17932,"t":"code","b":[56],"m":"sec"},{"a":17933,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":17935,"t":"code","b":[229,69],"m":"sbc","o":"zpa_45","oa":69},{"a":17937,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":17939,"t":"code","b":[229,70],"m":"sbc","o":"zpa_46","oa":70},{"a":17941,"t":"code","b":[176,30],"m":"bcs","o":"b_4635","oa":17973},{"a":17943,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":17945,"t":"code","b":[133,69],"m":"sta","o":"zpa_45","oa":69},{"a":17947,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":17949,"t":"code","b":[133,70],"m":"sta","o":"zpa_46","oa":70},{"a":17951,"t":"code","b":[173,196,69],"m":"lda","o":"a_45C4","oa":17860},{"a":17954,"t":"code","b":[133,71],"m":"sta","o":"zpa_47","oa":71},{"a":17956,"t":"code","b":[173,197,69],"m":"lda","o":"a_45C5","oa":17861},{"a":17959,"t":"code","b":[133,72],"m":"sta","o":"zpa_48","oa":72},{"a":17961,"t":"code","b":[173,198,69],"m":"lda","o":"a_45C6","oa":17862},{"a":17964,"t":"code","b":[141,200,69],"m":"sta","o":"a_45C8","oa":17864},{"a":17967,"t":"code","b":[173,199,69],"m":"lda","o":"a_45C7","oa":17863},{"a":17970,"t":"code","b":[141,201,69],"m":"sta","o":"a_45C9","oa":17865},{"a":17973,"l":"b_4635","t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63,"x":[17930,17941]},{"a":17975,"t":"code","b":[141,196,69],"m":"sta","o":"a_45C4","oa":17860},{"a":17978,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":17980,"t":"code","b":[141,197,69],"m":"sta","o":"a_45C5","oa":17861},{"a":17983,"t":"code","b":[174,198,69],"m":"ldx","o":"a_45C6","oa":17862},{"a":17986,"t":"code","b":[172,199,69],"m":"ldy","o":"a_45C7","oa":17863},{"a":17989,"t":"code","b":[208,173],"m":"bne","o":"b_45F4","oa":17908},{"a":17991,"t":"code","b":[165,70],"m":"lda","o":"zpa_46","oa":70},{"a":17993,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":17995,"t":"code","b":[240,37],"m":"beq","o":"b_4672","oa":18034},{"a":17997,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":17999,"t":"code","b":[165,69],"m":"lda","o":"zpa_45","oa":69},{"a":18001,"t":"code","b":[145,65],"m":"sta","o":"(zpa_41),y","oa":65},{"a":18003,"t":"code","b":[165,67],"m":"lda","o":"zpa_43","oa":67},{"a":18005,"t":"code","b":[145,71],"m":"sta","o":"(zpa_47),y","oa":71},{"a":18007,"t":"code","b":[177,67],"m":"lda","o":"(zpa_43),y","oa":67},{"a":18009,"t":"code","b":[145,69],"m":"sta","o":"(zpa_45),y","oa":69},{"a":18011,"t":"code","b":[173,200,69],"m":"lda","o":"a_45C8","oa":17864},{"a":18014,"t":"code","b":[145,67],"m":"sta","o":"(zpa_43),y","oa":67},{"a":18016,"t":"code","b":[200],"m":"iny"},{"a":18017,"t":"code","b":[165,70],"m":"lda","o":"zpa_46","oa":70},{"a":18019,"t":"code","b":[145,65],"m":"sta","o":"(zpa_41),y","oa":65},{"a":18021,"t":"code","b":[165,68],"m":"lda","o":"zpa_44","oa":68},{"a":18023,"t":"code","b":[145,71],"m":"sta","o":"(zpa_47),y","oa":71},{"a":18025,"t":"code","b":[177,67],"m":"lda","o":"(zpa_43),y","oa":67},{"a":18027,"t":"code","b":[145,69],"m":"sta","o":"(zpa_45),y","oa":69},{"a":18029,"t":"code","b":[173,201,69],"m":"lda","o":"a_45C9","oa":17865},{"a":18032,"t":"code","b":[145,67],"m":"sta","o":"(zpa_43),y","oa":67},{"a":18034,"l":"b_4672","t":"code","b":[165,65],"m":"lda","o":"zpa_41","oa":65,"x":[17995]},{"a":18036,"t":"code","b":[133,63],"m":"sta","o":"zpa_3F","oa":63},{"a":18038,"t":"code","b":[165,66],"m":"lda","o":"zpa_42","oa":66},{"a":18040,"t":"code","b":[133,64],"m":"sta","o":"zpa_40","oa":64},{"a":18042,"t":"code","b":[32,125,71],"m":"jsr","o":"block_link","oa":18301},{"a":18045,"t":"code","b":[240,7],"m":"beq","o":"j_4686","oa":18054},{"a":18047,"t":"code","b":[134,65],"m":"stx","o":"zpa_41","oa":65},{"a":18049,"t":"code","b":[132,66],"m":"sty","o":"zpa_42","oa":66},{"a":18051,"t":"code","b":[76,210,69],"m":"jmp","o":"j_45D2","oa":17874},{"a":18054,"l":"j_4686","t":"code","b":[165,65],"m":"lda","o":"zpa_41","oa":65,"x":[17905,18045]},{"a":18056,"t":"code","b":[141,240,255],"m":"sta","o":"heap_free_tail","oa":65520},{"a":18059,"t":"code","b":[165,66],"m":"lda","o":"zpa_42","oa":66},{"a":18061,"t":"code","b":[141,241,255],"m":"sta","o":"a_FFF1","oa":65521},{"a":18064,"t":"code","b":[96],"m":"rts"},{"a":18065,"l":"a_4691","c":"The best block found ($4692 high), zero when none","t":"byte","b":[0],"x":[18119,18197,18234,18250]},{"a":18066,"l":"a_4692","c":"The high byte of the best block found","t":"byte","b":[0],"x":[18124,18202,18239,18253]},{"a":18067,"l":"a_4693","c":"Its size ($4694 high), $FFFF before any is found","t":"byte","b":[0],"x":[18111,18166,18186,18312,18419]},{"a":18068,"l":"a_4694","c":"The high byte of the best block's size","t":"byte","b":[0],"x":[18114,18172,18192,18321,18425]},{"a":18069,"l":"a_4695","c":"The block before the one being tried ($4696 high)","t":"byte","b":[0],"x":[18129,18205,18217]},{"a":18070,"l":"a_4696","c":"The high byte of the block before the one being tried","t":"byte","b":[0],"x":[18134,18210,18222]},{"a":18071,"l":"a_4697","c":"The size asked for plus the four-byte header ($4698 high)","t":"byte","b":[0],"x":[18085,18154]},{"a":18072,"l":"a_4698","c":"The high byte of the size asked for plus the header","t":"byte","b":[0],"x":[18093,18160]},{"a":18073,"l":"find_free_block","c":"Finds room for X/Y bytes plus a four-byte header: the smallest free block that is big enough (best fit), taken off the list or split (take_block). Returns its address in X/Y, or zero (Z set) when no block is big enough","t":"code","b":[142,20,252],"m":"stx","o":"a_FC14","oa":64532,"x":[18290,54386]},{"a":18076,"t":"code","b":[140,21,252],"m":"sty","o":"a_FC15","oa":64533},{"a":18079,"t":"code","b":[24],"m":"clc"},{"a":18080,"t":"code","b":[173,20,252],"m":"lda","o":"a_FC14","oa":64532},{"a":18083,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":18085,"t":"code","b":[141,151,70],"m":"sta","o":"a_4697","oa":18071},{"a":18088,"t":"code","b":[173,21,252],"m":"lda","o":"a_FC15","oa":64533},{"a":18091,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":18093,"t":"code","b":[141,152,70],"m":"sta","o":"a_4698","oa":18072},{"a":18096,"t":"code","b":[173,238,255],"m":"lda","o":"heap_first_free","oa":65518},{"a":18099,"t":"code","b":[133,63],"m":"sta","o":"zpa_3F","oa":63},{"a":18101,"t":"code","b":[173,239,255],"m":"lda","o":"a_FFEF","oa":65519},{"a":18104,"t":"code","b":[133,64],"m":"sta","o":"zpa_40","oa":64},{"a":18106,"t":"code","b":[208,1],"m":"bne","o":"b_46BD","oa":18109},{"a":18108,"t":"code","b":[96],"m":"rts"},{"a":18109,"l":"b_46BD","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[18106]},{"a":18111,"t":"code","b":[141,147,70],"m":"sta","o":"a_4693","oa":18067},{"a":18114,"t":"code","b":[141,148,70],"m":"sta","o":"a_4694","oa":18068},{"a":18117,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":18119,"t":"code","b":[141,145,70],"m":"sta","o":"a_4691","oa":18065},{"a":18122,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":18124,"t":"code","b":[141,146,70],"m":"sta","o":"a_4692","oa":18066},{"a":18127,"t":"code","b":[169,236],"m":"lda","o":"#$EC"},{"a":18129,"t":"code","b":[141,149,70],"m":"sta","o":"a_4695","oa":18069},{"a":18132,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":18134,"t":"code","b":[141,150,70],"m":"sta","o":"a_4696","oa":18070},{"a":18137,"l":"b_46D9","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[18232]},{"a":18139,"t":"code","b":[177,63],"m":"lda","o":"(zpa_3F),y","oa":63},{"a":18141,"t":"code","b":[141,67,69],"m":"sta","o":"a_4543","oa":17731},{"a":18144,"t":"code","b":[200],"m":"iny"},{"a":18145,"t":"code","b":[177,63],"m":"lda","o":"(zpa_3F),y","oa":63},{"a":18147,"t":"code","b":[141,68,69],"m":"sta","o":"a_4544","oa":17732},{"a":18150,"t":"code","b":[56],"m":"sec"},{"a":18151,"t":"code","b":[173,67,69],"m":"lda","o":"a_4543","oa":17731},{"a":18154,"t":"code","b":[237,151,70],"m":"sbc","o":"a_4697","oa":18071},{"a":18157,"t":"code","b":[173,68,69],"m":"lda","o":"a_4544","oa":17732},{"a":18160,"t":"code","b":[237,152,70],"m":"sbc","o":"a_4698","oa":18072},{"a":18163,"t":"code","b":[144,50],"m":"bcc","o":"b_4727","oa":18215},{"a":18165,"t":"code","b":[56],"m":"sec"},{"a":18166,"t":"code","b":[173,147,70],"m":"lda","o":"a_4693","oa":18067},{"a":18169,"t":"code","b":[237,67,69],"m":"sbc","o":"a_4543","oa":17731},{"a":18172,"t":"code","b":[173,148,70],"m":"lda","o":"a_4694","oa":18068},{"a":18175,"t":"code","b":[237,68,69],"m":"sbc","o":"a_4544","oa":17732},{"a":18178,"t":"code","b":[144,35],"m":"bcc","o":"b_4727","oa":18215},{"a":18180,"t":"code","b":[32,125,71],"m":"jsr","o":"block_link","oa":18301},{"a":18183,"t":"code","b":[173,67,69],"m":"lda","o":"a_4543","oa":17731},{"a":18186,"t":"code","b":[141,147,70],"m":"sta","o":"a_4693","oa":18067},{"a":18189,"t":"code","b":[173,68,69],"m":"lda","o":"a_4544","oa":17732},{"a":18192,"t":"code","b":[141,148,70],"m":"sta","o":"a_4694","oa":18068},{"a":18195,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":18197,"t":"code","b":[141,145,70],"m":"sta","o":"a_4691","oa":18065},{"a":18200,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18202,"t":"code","b":[141,146,70],"m":"sta","o":"a_4692","oa":18066},{"a":18205,"t":"code","b":[173,149,70],"m":"lda","o":"a_4695","oa":18069},{"a":18208,"t":"code","b":[133,65],"m":"sta","o":"zpa_41","oa":65},{"a":18210,"t":"code","b":[173,150,70],"m":"lda","o":"a_4696","oa":18070},{"a":18213,"t":"code","b":[133,66],"m":"sta","o":"zpa_42","oa":66},{"a":18215,"l":"b_4727","t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63,"x":[18163,18178]},{"a":18217,"t":"code","b":[141,149,70],"m":"sta","o":"a_4695","oa":18069},{"a":18220,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18222,"t":"code","b":[141,150,70],"m":"sta","o":"a_4696","oa":18070},{"a":18225,"t":"code","b":[32,125,71],"m":"jsr","o":"block_link","oa":18301},{"a":18228,"t":"code","b":[134,63],"m":"stx","o":"zpa_3F","oa":63},{"a":18230,"t":"code","b":[132,64],"m":"sty","o":"zpa_40","oa":64},{"a":18232,"t":"code","b":[208,159],"m":"bne","o":"b_46D9","oa":18137},{"a":18234,"t":"code","b":[173,145,70],"m":"lda","o":"a_4691","oa":18065},{"a":18237,"t":"code","b":[133,63],"m":"sta","o":"zpa_3F","oa":63},{"a":18239,"t":"code","b":[173,146,70],"m":"lda","o":"a_4692","oa":18066},{"a":18242,"t":"code","b":[133,64],"m":"sta","o":"zpa_40","oa":64},{"a":18244,"t":"code","b":[208,1],"m":"bne","o":"b_4747","oa":18247},{"a":18246,"t":"code","b":[96],"m":"rts"},{"a":18247,"l":"b_4747","t":"code","b":[32,135,71],"m":"jsr","o":"take_block","oa":18311,"x":[18244]},{"a":18250,"t":"code","b":[174,145,70],"m":"ldx","o":"a_4691","oa":18065},{"a":18253,"t":"code","b":[172,146,70],"m":"ldy","o":"a_4692","oa":18066},{"a":18256,"t":"code","b":[96],"m":"rts"},{"a":18257,"l":"a_4751","c":"The size asked for, kept while the heap is compacted ($4752 high)","t":"byte","b":[0],"x":[18262,18284]},{"a":18258,"l":"a_4752","c":"The high byte of the size asked for, kept while the heap is compacted","t":"byte","b":[0],"x":[18268,18287]},{"a":18259,"l":"alloc_hard","c":"When no free block is big enough: compacts the heap so that all the free space is one block (compact_heap) and tries again; if that fails, throws out resources nobody is using (free_some_resource) and tries again, until it fits or there is nothing left to throw out (Z set)","t":"code","b":[173,20,252],"m":"lda","o":"a_FC14","oa":64532,"x":[18298,24256,25005,25082,54391]},{"a":18262,"t":"code","b":[141,81,71],"m":"sta","o":"a_4751","oa":18257},{"a":18265,"t":"code","b":[173,21,252],"m":"lda","o":"a_FC15","oa":64533},{"a":18268,"t":"code","b":[141,82,71],"m":"sta","o":"a_4752","oa":18258},{"a":18271,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":18273,"t":"code","b":[141,20,252],"m":"sta","o":"a_FC14","oa":64532},{"a":18276,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":18278,"t":"code","b":[141,21,252],"m":"sta","o":"a_FC15","oa":64533},{"a":18281,"t":"code","b":[32,40,72],"m":"jsr","o":"compact_heap","oa":18472},{"a":18284,"t":"code","b":[174,81,71],"m":"ldx","o":"a_4751","oa":18257},{"a":18287,"t":"code","b":[172,82,71],"m":"ldy","o":"a_4752","oa":18258},{"a":18290,"t":"code","b":[32,153,70],"m":"jsr","o":"find_free_block","oa":18073},{"a":18293,"t":"code","b":[208,5],"m":"bne","o":"r_477C","oa":18300},{"a":18295,"t":"code","b":[32,125,73],"m":"jsr","o":"free_some_resource","oa":18813},{"a":18298,"t":"code","b":[208,215],"m":"bne","o":"alloc_hard","oa":18259},{"a":18300,"l":"r_477C","t":"code","b":[96],"m":"rts","x":[18293]},{"a":18301,"l":"block_link","c":"X/Y: bytes 2 and 3 of the block at $3F/$40, a free block's link to the next","t":"code","b":[160,2],"m":"ldy","o":"#$02","x":[17774,17850,17912,18042,18180,18225,18369,18402,18510]},{"a":18303,"t":"code","b":[177,63],"m":"lda","o":"(zpa_3F),y","oa":63},{"a":18305,"t":"code","b":[170],"m":"tax"},{"a":18306,"t":"code","b":[200],"m":"iny"},{"a":18307,"t":"code","b":[177,63],"m":"lda","o":"(zpa_3F),y","oa":63},{"a":18309,"t":"code","b":[168],"m":"tay"},{"a":18310,"t":"code","b":[96],"m":"rts"},{"a":18311,"l":"take_block","c":"Takes the block found for the size $FC14/$FC15: when what is left over is at least a header's four bytes, it becomes a free block of its own in the list where the block was; otherwise the whole block is taken and unlinked. The tail moves when it was the tail","t":"code","b":[56],"m":"sec","x":[18247]},{"a":18312,"t":"code","b":[173,147,70],"m":"lda","o":"a_4693","oa":18067},{"a":18315,"t":"code","b":[237,20,252],"m":"sbc","o":"a_FC14","oa":64532},{"a":18318,"t":"code","b":[141,67,69],"m":"sta","o":"a_4543","oa":17731},{"a":18321,"t":"code","b":[173,148,70],"m":"lda","o":"a_4694","oa":18068},{"a":18324,"t":"code","b":[237,21,252],"m":"sbc","o":"a_FC15","oa":64533},{"a":18327,"t":"code","b":[141,68,69],"m":"sta","o":"a_4544","oa":17732},{"a":18330,"t":"code","b":[56],"m":"sec"},{"a":18331,"t":"code","b":[173,67,69],"m":"lda","o":"a_4543","oa":17731},{"a":18334,"t":"code","b":[233,4],"m":"sbc","o":"#$04"},{"a":18336,"t":"code","b":[173,68,69],"m":"lda","o":"a_4544","oa":17732},{"a":18339,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":18341,"t":"code","b":[144,59],"m":"bcc","o":"b_47E2","oa":18402},{"a":18343,"t":"code","b":[24],"m":"clc"},{"a":18344,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":18346,"t":"code","b":[109,20,252],"m":"adc","o":"a_FC14","oa":64532},{"a":18349,"t":"code","b":[133,69],"m":"sta","o":"zpa_45","oa":69},{"a":18351,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18353,"t":"code","b":[109,21,252],"m":"adc","o":"a_FC15","oa":64533},{"a":18356,"t":"code","b":[133,70],"m":"sta","o":"zpa_46","oa":70},{"a":18358,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":18360,"t":"code","b":[165,69],"m":"lda","o":"zpa_45","oa":69},{"a":18362,"t":"code","b":[145,65],"m":"sta","o":"(zpa_41),y","oa":65},{"a":18364,"t":"code","b":[200],"m":"iny"},{"a":18365,"t":"code","b":[165,70],"m":"lda","o":"zpa_46","oa":70},{"a":18367,"t":"code","b":[145,65],"m":"sta","o":"(zpa_41),y","oa":65},{"a":18369,"t":"code","b":[32,125,71],"m":"jsr","o":"block_link","oa":18301},{"a":18372,"t":"code","b":[140,69,69],"m":"sty","o":"a_4545","oa":17733},{"a":18375,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":18377,"t":"code","b":[138],"m":"txa"},{"a":18378,"t":"code","b":[145,69],"m":"sta","o":"(zpa_45),y","oa":69},{"a":18380,"t":"code","b":[200],"m":"iny"},{"a":18381,"t":"code","b":[173,69,69],"m":"lda","o":"a_4545","oa":17733},{"a":18384,"t":"code","b":[145,69],"m":"sta","o":"(zpa_45),y","oa":69},{"a":18386,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":18388,"t":"code","b":[173,67,69],"m":"lda","o":"a_4543","oa":17731},{"a":18391,"t":"code","b":[145,69],"m":"sta","o":"(zpa_45),y","oa":69},{"a":18393,"t":"code","b":[200],"m":"iny"},{"a":18394,"t":"code","b":[173,68,69],"m":"lda","o":"a_4544","oa":17732},{"a":18397,"t":"code","b":[145,69],"m":"sta","o":"(zpa_45),y","oa":69},{"a":18399,"t":"code","b":[76,7,72],"m":"jmp","o":"j_4807","oa":18439},{"a":18402,"l":"b_47E2","t":"code","b":[32,125,71],"m":"jsr","o":"block_link","oa":18301,"x":[18341]},{"a":18405,"t":"code","b":[140,69,69],"m":"sty","o":"a_4545","oa":17733},{"a":18408,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":18410,"t":"code","b":[138],"m":"txa"},{"a":18411,"t":"code","b":[145,65],"m":"sta","o":"(zpa_41),y","oa":65},{"a":18413,"t":"code","b":[200],"m":"iny"},{"a":18414,"t":"code","b":[173,69,69],"m":"lda","o":"a_4545","oa":17733},{"a":18417,"t":"code","b":[145,65],"m":"sta","o":"(zpa_41),y","oa":65},{"a":18419,"t":"code","b":[173,147,70],"m":"lda","o":"a_4693","oa":18067},{"a":18422,"t":"code","b":[141,20,252],"m":"sta","o":"a_FC14","oa":64532},{"a":18425,"t":"code","b":[173,148,70],"m":"lda","o":"a_4694","oa":18068},{"a":18428,"t":"code","b":[141,21,252],"m":"sta","o":"a_FC15","oa":64533},{"a":18431,"t":"code","b":[165,65],"m":"lda","o":"zpa_41","oa":65},{"a":18433,"t":"code","b":[133,69],"m":"sta","o":"zpa_45","oa":69},{"a":18435,"t":"code","b":[165,66],"m":"lda","o":"zpa_42","oa":66},{"a":18437,"t":"code","b":[133,70],"m":"sta","o":"zpa_46","oa":70},{"a":18439,"l":"j_4807","t":"code","b":[173,240,255],"m":"lda","o":"heap_free_tail","oa":65520,"x":[18399]},{"a":18442,"t":"code","b":[197,63],"m":"cmp","o":"zpa_3F","oa":63},{"a":18444,"t":"code","b":[208,5],"m":"bne","o":"b_4813","oa":18451},{"a":18446,"t":"code","b":[173,241,255],"m":"lda","o":"a_FFF1","oa":65521},{"a":18449,"t":"code","b":[197,64],"m":"cmp","o":"zpa_40","oa":64},{"a":18451,"l":"b_4813","t":"code","b":[208,10],"m":"bne","o":"r_481F","oa":18463,"x":[18444]},{"a":18453,"t":"code","b":[165,69],"m":"lda","o":"zpa_45","oa":69},{"a":18455,"t":"code","b":[141,240,255],"m":"sta","o":"heap_free_tail","oa":65520},{"a":18458,"t":"code","b":[165,70],"m":"lda","o":"zpa_46","oa":70},{"a":18460,"t":"code","b":[141,241,255],"m":"sta","o":"a_FFF1","oa":65521},{"a":18463,"l":"r_481F","t":"code","b":[96],"m":"rts","x":[18451]},{"a":18464,"l":"a_4820","c":"The size of the first free block, while the heap is compacted ($4821 high)","t":"byte","b":[0],"x":[18486,18498,18667]},{"a":18465,"l":"a_4821","c":"The high byte of the first free block's size, while the heap is compacted","t":"byte","b":[0],"x":[18492,18505,18673]},{"a":18466,"l":"a_4822","c":"The size of the block being moved ($4823 high)","t":"byte","b":[0],"x":[18535,18571,18615,18630]},{"a":18467,"l":"a_4823","c":"The high byte of the size of the block being moved","t":"byte","b":[0],"x":[18541,18576,18622,18637]},{"a":18468,"l":"a_4824","c":"The next free block after the first ($4825 high): the blocks up to it are moved down","t":"byte","b":[0],"x":[18516,18645,18679]},{"a":18469,"l":"a_4825","c":"The high byte of the next free block after the first","t":"byte","b":[0],"x":[18519,18650,18685]},{"a":18470,"l":"a_4826","c":"The type of the block being moved; $4827 its number","t":"byte","b":[0],"x":[18547,18603]},{"a":18471,"l":"a_4827","c":"The number of the block being moved","t":"byte","b":[0],"x":[18554,18600]},{"a":18472,"l":"compact_heap","c":"Gathers the free space into one block: while the first free block has another after it, every block in use between the two is moved down into it (move_used_blocks), the first free block ends up after them, and the two are joined (merge_free_blocks)","t":"code","b":[173,238,255],"m":"lda","o":"heap_first_free","oa":65518,"x":[18281,18528]},{"a":18475,"t":"code","b":[133,63],"m":"sta","o":"zpa_3F","oa":63},{"a":18477,"t":"code","b":[173,239,255],"m":"lda","o":"a_FFEF","oa":65519},{"a":18480,"t":"code","b":[133,64],"m":"sta","o":"zpa_40","oa":64},{"a":18482,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":18484,"t":"code","b":[177,63],"m":"lda","o":"(zpa_3F),y","oa":63},{"a":18486,"t":"code","b":[141,32,72],"m":"sta","o":"a_4820","oa":18464},{"a":18489,"t":"code","b":[200],"m":"iny"},{"a":18490,"t":"code","b":[177,63],"m":"lda","o":"(zpa_3F),y","oa":63},{"a":18492,"t":"code","b":[141,33,72],"m":"sta","o":"a_4821","oa":18465},{"a":18495,"t":"code","b":[24],"m":"clc"},{"a":18496,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":18498,"t":"code","b":[109,32,72],"m":"adc","o":"a_4820","oa":18464},{"a":18501,"t":"code","b":[133,71],"m":"sta","o":"zpa_47","oa":71},{"a":18503,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18505,"t":"code","b":[109,33,72],"m":"adc","o":"a_4821","oa":18465},{"a":18508,"t":"code","b":[133,72],"m":"sta","o":"zpa_48","oa":72},{"a":18510,"t":"code","b":[32,125,71],"m":"jsr","o":"block_link","oa":18301},{"a":18513,"t":"code","b":[208,1],"m":"bne","o":"b_4854","oa":18516},{"a":18515,"t":"code","b":[96],"m":"rts"},{"a":18516,"l":"b_4854","t":"code","b":[142,36,72],"m":"stx","o":"a_4824","oa":18468,"x":[18513]},{"a":18519,"t":"code","b":[140,37,72],"m":"sty","o":"a_4825","oa":18469},{"a":18522,"t":"code","b":[32,99,72],"m":"jsr","o":"move_used_blocks","oa":18531},{"a":18525,"t":"code","b":[32,70,69],"m":"jsr","o":"merge_free_blocks","oa":17734},{"a":18528,"t":"code","b":[76,40,72],"m":"jmp","o":"compact_heap","oa":18472},{"a":18531,"l":"move_used_blocks","c":"Moves each block in use, from just after the first free block up to the next free one, down to the first free block's address: copies it (copy_block) and tells its owner where it is now (move_resource_address). A sound that is playing is marked while it moves ($FC31 bit 0), so the music's code knows. Then writes the free block's header after them","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[18522,18653]},{"a":18533,"t":"code","b":[177,71],"m":"lda","o":"(zpa_47),y","oa":71},{"a":18535,"t":"code","b":[141,34,72],"m":"sta","o":"a_4822","oa":18466},{"a":18538,"t":"code","b":[200],"m":"iny"},{"a":18539,"t":"code","b":[177,71],"m":"lda","o":"(zpa_47),y","oa":71},{"a":18541,"t":"code","b":[141,35,72],"m":"sta","o":"a_4823","oa":18467},{"a":18544,"t":"code","b":[200],"m":"iny"},{"a":18545,"t":"code","b":[177,71],"m":"lda","o":"(zpa_47),y","oa":71},{"a":18547,"t":"code","b":[141,38,72],"m":"sta","o":"a_4826","oa":18470},{"a":18550,"t":"code","b":[72],"m":"pha"},{"a":18551,"t":"code","b":[200],"m":"iny"},{"a":18552,"t":"code","b":[177,71],"m":"lda","o":"(zpa_47),y","oa":71},{"a":18554,"t":"code","b":[141,39,72],"m":"sta","o":"a_4827","oa":18471},{"a":18557,"t":"code","b":[168],"m":"tay"},{"a":18558,"t":"code","b":[104],"m":"pla"},{"a":18559,"t":"code","b":[201,6],"m":"cmp","o":"#$06"},{"a":18561,"t":"code","b":[208,8],"m":"bne","o":"b_488B","oa":18571},{"a":18563,"t":"code","b":[185,63,117],"m":"lda","o":"f_753F,y","oa":30015},{"a":18566,"t":"code","b":[240,3],"m":"beq","o":"b_488B","oa":18571},{"a":18568,"t":"code","b":[32,3,73],"m":"jsr","o":"mark_sound_moving","oa":18691},{"a":18571,"l":"b_488B","t":"code","b":[173,34,72],"m":"lda","o":"a_4822","oa":18466,"x":[18561,18566]},{"a":18574,"t":"code","b":[133,75],"m":"sta","o":"zpa_4B","oa":75},{"a":18576,"t":"code","b":[173,35,72],"m":"lda","o":"a_4823","oa":18467},{"a":18579,"t":"code","b":[133,76],"m":"sta","o":"zpa_4C","oa":76},{"a":18581,"t":"code","b":[165,71],"m":"lda","o":"zpa_47","oa":71},{"a":18583,"t":"code","b":[133,77],"m":"sta","o":"zpa_4D","oa":77},{"a":18585,"t":"code","b":[165,72],"m":"lda","o":"zpa_48","oa":72},{"a":18587,"t":"code","b":[133,78],"m":"sta","o":"zpa_4E","oa":78},{"a":18589,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":18591,"t":"code","b":[133,79],"m":"sta","o":"zpa_4F","oa":79},{"a":18593,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18595,"t":"code","b":[133,80],"m":"sta","o":"zpa_50","oa":80},{"a":18597,"t":"code","b":[32,174,74],"m":"jsr","o":"copy_block","oa":19118},{"a":18600,"t":"code","b":[174,39,72],"m":"ldx","o":"a_4827","oa":18471},{"a":18603,"t":"code","b":[172,38,72],"m":"ldy","o":"a_4826","oa":18470},{"a":18606,"t":"code","b":[32,21,73],"m":"jsr","o":"move_resource_address","oa":18709},{"a":18609,"t":"code","b":[32,12,73],"m":"jsr","o":"clear_sound_moving","oa":18700},{"a":18612,"t":"code","b":[24],"m":"clc"},{"a":18613,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":18615,"t":"code","b":[109,34,72],"m":"adc","o":"a_4822","oa":18466},{"a":18618,"t":"code","b":[133,63],"m":"sta","o":"zpa_3F","oa":63},{"a":18620,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18622,"t":"code","b":[109,35,72],"m":"adc","o":"a_4823","oa":18467},{"a":18625,"t":"code","b":[133,64],"m":"sta","o":"zpa_40","oa":64},{"a":18627,"t":"code","b":[24],"m":"clc"},{"a":18628,"t":"code","b":[165,71],"m":"lda","o":"zpa_47","oa":71},{"a":18630,"t":"code","b":[109,34,72],"m":"adc","o":"a_4822","oa":18466},{"a":18633,"t":"code","b":[133,71],"m":"sta","o":"zpa_47","oa":71},{"a":18635,"t":"code","b":[165,72],"m":"lda","o":"zpa_48","oa":72},{"a":18637,"t":"code","b":[109,35,72],"m":"adc","o":"a_4823","oa":18467},{"a":18640,"t":"code","b":[133,72],"m":"sta","o":"zpa_48","oa":72},{"a":18642,"t":"code","b":[56],"m":"sec"},{"a":18643,"t":"code","b":[165,71],"m":"lda","o":"zpa_47","oa":71},{"a":18645,"t":"code","b":[237,36,72],"m":"sbc","o":"a_4824","oa":18468},{"a":18648,"t":"code","b":[165,72],"m":"lda","o":"zpa_48","oa":72},{"a":18650,"t":"code","b":[237,37,72],"m":"sbc","o":"a_4825","oa":18469},{"a":18653,"t":"code","b":[144,132],"m":"bcc","o":"move_used_blocks","oa":18531},{"a":18655,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":18657,"t":"code","b":[141,238,255],"m":"sta","o":"heap_first_free","oa":65518},{"a":18660,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18662,"t":"code","b":[141,239,255],"m":"sta","o":"a_FFEF","oa":65519},{"a":18665,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":18667,"t":"code","b":[173,32,72],"m":"lda","o":"a_4820","oa":18464},{"a":18670,"t":"code","b":[145,63],"m":"sta","o":"(zpa_3F),y","oa":63},{"a":18672,"t":"code","b":[200],"m":"iny"},{"a":18673,"t":"code","b":[173,33,72],"m":"lda","o":"a_4821","oa":18465},{"a":18676,"t":"code","b":[145,63],"m":"sta","o":"(zpa_3F),y","oa":63},{"a":18678,"t":"code","b":[200],"m":"iny"},{"a":18679,"t":"code","b":[173,36,72],"m":"lda","o":"a_4824","oa":18468},{"a":18682,"t":"code","b":[145,63],"m":"sta","o":"(zpa_3F),y","oa":63},{"a":18684,"t":"code","b":[200],"m":"iny"},{"a":18685,"t":"code","b":[173,37,72],"m":"lda","o":"a_4825","oa":18469},{"a":18688,"t":"code","b":[145,63],"m":"sta","o":"(zpa_3F),y","oa":63},{"a":18690,"t":"code","b":[96],"m":"rts"},{"a":18691,"l":"mark_sound_moving","c":"Sets bit 0 of $FC31 while a sound that is playing is moved","t":"code","b":[173,49,252],"m":"lda","o":"a_FC31","oa":64561,"x":[18568]},{"a":18694,"t":"code","b":[9,1],"m":"ora","o":"#$01"},{"a":18696,"t":"code","b":[141,49,252],"m":"sta","o":"a_FC31","oa":64561},{"a":18699,"t":"code","b":[96],"m":"rts"},{"a":18700,"l":"clear_sound_moving","c":"Clears bit 0 of $FC31 again","t":"code","b":[173,49,252],"m":"lda","o":"a_FC31","oa":64561,"x":[18609]},{"a":18703,"t":"code","b":[41,254],"m":"and","o":"#$FE"},{"a":18705,"t":"code","b":[141,49,252],"m":"sta","o":"a_FC31","oa":64561},{"a":18708,"t":"code","b":[96],"m":"rts"},{"a":18709,"l":"move_resource_address","c":"Writes a block's new address ($3F/$40) into its owner's table, by its type (Y) and number (X): 1 an inventory object ($67D9/$6815), 2 a costume ($741B/$73F5), 3 a room ($73BA/$737F), 4 a block of the room's graphics ($77B2/$778F), 5 a script ($7659/$75BE), 6 a sound ($74C0/$7441). Any other type is fatal error 5","t":"code","b":[192,3],"m":"cpy","o":"#$03","x":[18606]},{"a":18711,"t":"code","b":[208,11],"m":"bne","o":"b_4924","oa":18724},{"a":18713,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":18715,"t":"code","b":[157,186,115],"m":"sta","o":"room_address_lo,x","oa":29626},{"a":18718,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18720,"t":"code","b":[157,127,115],"m":"sta","o":"room_address_hi,x","oa":29567},{"a":18723,"t":"code","b":[96],"m":"rts"},{"a":18724,"l":"b_4924","t":"code","b":[192,4],"m":"cpy","o":"#$04","x":[18711]},{"a":18726,"t":"code","b":[208,11],"m":"bne","o":"b_4933","oa":18739},{"a":18728,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":18730,"t":"code","b":[157,178,119],"m":"sta","o":"a_77B2,x","oa":30642},{"a":18733,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18735,"t":"code","b":[157,143,119],"m":"sta","o":"a_778F,x","oa":30607},{"a":18738,"t":"code","b":[96],"m":"rts"},{"a":18739,"l":"b_4933","t":"code","b":[192,2],"m":"cpy","o":"#$02","x":[18726]},{"a":18741,"t":"code","b":[208,11],"m":"bne","o":"b_4942","oa":18754},{"a":18743,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":18745,"t":"code","b":[157,27,116],"m":"sta","o":"f_741B,x","oa":29723},{"a":18748,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18750,"t":"code","b":[157,245,115],"m":"sta","o":"f_73F5,x","oa":29685},{"a":18753,"t":"code","b":[96],"m":"rts"},{"a":18754,"l":"b_4942","t":"code","b":[192,1],"m":"cpy","o":"#$01","x":[18741]},{"a":18756,"t":"code","b":[208,11],"m":"bne","o":"b_4951","oa":18769},{"a":18758,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":18760,"t":"code","b":[157,217,103],"m":"sta","o":"f_67D9,x","oa":26585},{"a":18763,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18765,"t":"code","b":[157,21,104],"m":"sta","o":"f_6815,x","oa":26645},{"a":18768,"t":"code","b":[96],"m":"rts"},{"a":18769,"l":"b_4951","t":"code","b":[192,5],"m":"cpy","o":"#$05","x":[18756]},{"a":18771,"t":"code","b":[208,11],"m":"bne","o":"b_4960","oa":18784},{"a":18773,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":18775,"t":"code","b":[157,89,118],"m":"sta","o":"f_7659,x","oa":30297},{"a":18778,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18780,"t":"code","b":[157,190,117],"m":"sta","o":"f_75BE,x","oa":30142},{"a":18783,"t":"code","b":[96],"m":"rts"},{"a":18784,"l":"b_4960","t":"code","b":[192,6],"m":"cpy","o":"#$06","x":[18771]},{"a":18786,"t":"code","b":[208,11],"m":"bne","o":"b_496F","oa":18799},{"a":18788,"t":"code","b":[165,63],"m":"lda","o":"zpa_3F","oa":63},{"a":18790,"t":"code","b":[157,192,116],"m":"sta","o":"f_74C0,x","oa":29888},{"a":18793,"t":"code","b":[165,64],"m":"lda","o":"zpa_40","oa":64},{"a":18795,"t":"code","b":[157,65,116],"m":"sta","o":"f_7441,x","oa":29761},{"a":18798,"t":"code","b":[96],"m":"rts"},{"a":18799,"l":"b_496F","t":"code","b":[169,5],"m":"lda","o":"#$05","x":[18786]},{"a":18801,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":18803,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":18805,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":18807,"l":"j_4977","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[18810]},{"a":18810,"t":"code","b":[76,119,73],"m":"jmp","o":"j_4977","oa":18807},{"a":18813,"l":"free_some_resource","c":"Throws out resources that are loaded and not in use, one kind at a time, starting after the kind tried last ($FC1E): the oldest room, a costume, every sound, every script. Returns $FF as soon as something has been freed ($FC1D, set by free_block), 0 when a whole round found nothing","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[18295]},{"a":18815,"t":"code","b":[141,29,252],"m":"sta","o":"a_FC1D","oa":64541},{"a":18818,"t":"code","b":[173,30,252],"m":"lda","o":"a_FC1E","oa":64542},{"a":18821,"t":"code","b":[141,31,252],"m":"sta","o":"a_FC1F","oa":64543},{"a":18824,"l":"b_4988","t":"code","b":[173,30,252],"m":"lda","o":"a_FC1E","oa":64542,"x":[18893]},{"a":18827,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":18829,"t":"code","b":[208,6],"m":"bne","o":"b_4995","oa":18837},{"a":18831,"t":"code","b":[32,210,73],"m":"jsr","o":"free_oldest_room","oa":18898},{"a":18834,"t":"code","b":[76,188,73],"m":"jmp","o":"j_49BC","oa":18876},{"a":18837,"l":"b_4995","t":"code","b":[201,1],"m":"cmp","o":"#$01","x":[18829]},{"a":18839,"t":"code","b":[208,6],"m":"bne","o":"b_499F","oa":18847},{"a":18841,"t":"code","b":[32,30,74],"m":"jsr","o":"free_one_costume","oa":18974},{"a":18844,"t":"code","b":[76,188,73],"m":"jmp","o":"j_49BC","oa":18876},{"a":18847,"l":"b_499F","t":"code","b":[201,2],"m":"cmp","o":"#$02","x":[18839]},{"a":18849,"t":"code","b":[208,6],"m":"bne","o":"b_49A9","oa":18857},{"a":18851,"t":"code","b":[32,80,74],"m":"jsr","o":"free_unused_sounds","oa":19024},{"a":18854,"t":"code","b":[76,188,73],"m":"jmp","o":"j_49BC","oa":18876},{"a":18857,"l":"b_49A9","t":"code","b":[201,3],"m":"cmp","o":"#$03","x":[18849]},{"a":18859,"t":"code","b":[208,6],"m":"bne","o":"b_49B3","oa":18867},{"a":18861,"t":"code","b":[32,133,74],"m":"jsr","o":"free_unused_scripts","oa":19077},{"a":18864,"t":"code","b":[76,188,73],"m":"jmp","o":"j_49BC","oa":18876},{"a":18867,"l":"b_49B3","t":"code","b":[201,4],"m":"cmp","o":"#$04","x":[18859]},{"a":18869,"t":"code","b":[144,5],"m":"bcc","o":"j_49BC","oa":18876},{"a":18871,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":18873,"t":"code","b":[141,30,252],"m":"sta","o":"a_FC1E","oa":64542},{"a":18876,"l":"j_49BC","t":"code","b":[238,30,252],"m":"inc","o":"a_FC1E","oa":64542,"x":[18834,18844,18854,18864,18869]},{"a":18879,"t":"code","b":[173,29,252],"m":"lda","o":"a_FC1D","oa":64541},{"a":18882,"t":"code","b":[240,3],"m":"beq","o":"b_49C7","oa":18887},{"a":18884,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":18886,"t":"code","b":[96],"m":"rts"},{"a":18887,"l":"b_49C7","t":"code","b":[173,30,252],"m":"lda","o":"a_FC1E","oa":64542,"x":[18882]},{"a":18890,"t":"code","b":[205,31,252],"m":"cmp","o":"a_FC1F","oa":64543},{"a":18893,"t":"code","b":[208,185],"m":"bne","o":"b_4988","oa":18824},{"a":18895,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":18897,"t":"code","b":[96],"m":"rts"},{"a":18898,"l":"free_oldest_room","c":"Frees the room in memory that has gone longest unshown: the highest count in $7344 (load_room adds one to each count but the shown room's 0 every time a room is entered), leaving out the shown room and any that is locked (bit 7), of rooms 1 to 58","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[18831]},{"a":18900,"t":"code","b":[141,23,252],"m":"sta","o":"a_FC17","oa":64535},{"a":18903,"t":"code","b":[141,22,252],"m":"sta","o":"a_FC16","oa":64534},{"a":18906,"t":"code","b":[162,58],"m":"ldx","o":"#$3A"},{"a":18908,"l":"b_49DC","t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567,"x":[18936]},{"a":18911,"t":"code","b":[240,22],"m":"beq","o":"b_49F7","oa":18935},{"a":18913,"t":"code","b":[189,68,115],"m":"lda","o":"room_counts,x","oa":29508},{"a":18916,"t":"code","b":[48,17],"m":"bmi","o":"b_49F7","oa":18935},{"a":18918,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":18920,"t":"code","b":[240,13],"m":"beq","o":"b_49F7","oa":18935},{"a":18922,"t":"code","b":[205,23,252],"m":"cmp","o":"a_FC17","oa":64535},{"a":18925,"t":"code","b":[144,8],"m":"bcc","o":"b_49F7","oa":18935},{"a":18927,"t":"code","b":[240,6],"m":"beq","o":"b_49F7","oa":18935},{"a":18929,"t":"code","b":[141,23,252],"m":"sta","o":"a_FC17","oa":64535},{"a":18932,"t":"code","b":[142,22,252],"m":"stx","o":"a_FC16","oa":64534},{"a":18935,"l":"b_49F7","t":"code","b":[202],"m":"dex","x":[18911,18916,18920,18925,18927]},{"a":18936,"t":"code","b":[208,226],"m":"bne","o":"b_49DC","oa":18908},{"a":18938,"t":"code","b":[173,22,252],"m":"lda","o":"a_FC16","oa":64534},{"a":18941,"t":"code","b":[208,1],"m":"bne","o":"b_4A00","oa":18944},{"a":18943,"t":"code","b":[96],"m":"rts"},{"a":18944,"l":"b_4A00","t":"code","b":[174,22,252],"m":"ldx","o":"a_FC16","oa":64534,"x":[18941]},{"a":18947,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":18950,"t":"code","b":[168],"m":"tay"},{"a":18951,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":18954,"t":"code","b":[72],"m":"pha"},{"a":18955,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":18957,"t":"code","b":[157,127,115],"m":"sta","o":"room_address_hi,x","oa":29567},{"a":18960,"t":"code","b":[157,186,115],"m":"sta","o":"room_address_lo,x","oa":29626},{"a":18963,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":18965,"t":"code","b":[157,68,115],"m":"sta","o":"room_counts,x","oa":29508},{"a":18968,"t":"code","b":[104],"m":"pla"},{"a":18969,"t":"code","b":[170],"m":"tax"},{"a":18970,"t":"code","b":[32,128,212],"m":"jsr","o":"free_block","oa":54400},{"a":18973,"t":"code","b":[96],"m":"rts"},{"a":18974,"l":"free_one_costume","c":"Frees the first costume, from 37 down, that is loaded, not used by an actor in the room ($72BF) and not the costume of the actor the player controls","t":"code","b":[162,37],"m":"ldx","o":"#$25","x":[18841]},{"a":18976,"l":"b_4A20","t":"code","b":[189,245,115],"m":"lda","o":"f_73F5,x","oa":29685,"x":[19021]},{"a":18979,"t":"code","b":[240,39],"m":"beq","o":"b_4A4C","oa":19020},{"a":18981,"t":"code","b":[189,191,114],"m":"lda","o":"f_72BF,x","oa":29375},{"a":18984,"t":"code","b":[208,34],"m":"bne","o":"b_4A4C","oa":19020},{"a":18986,"t":"code","b":[172,110,254],"m":"ldy","o":"a_FE6E","oa":65134},{"a":18989,"t":"code","b":[138],"m":"txa"},{"a":18990,"t":"code","b":[217,144,255],"m":"cmp","o":"actor_costume,y","oa":65424},{"a":18993,"t":"code","b":[240,25],"m":"beq","o":"b_4A4C","oa":19020},{"a":18995,"t":"code","b":[189,245,115],"m":"lda","o":"f_73F5,x","oa":29685},{"a":18998,"t":"code","b":[168],"m":"tay"},{"a":18999,"t":"code","b":[189,27,116],"m":"lda","o":"f_741B,x","oa":29723},{"a":19002,"t":"code","b":[72],"m":"pha"},{"a":19003,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":19005,"t":"code","b":[157,27,116],"m":"sta","o":"f_741B,x","oa":29723},{"a":19008,"t":"code","b":[157,245,115],"m":"sta","o":"f_73F5,x","oa":29685},{"a":19011,"t":"code","b":[157,191,114],"m":"sta","o":"f_72BF,x","oa":29375},{"a":19014,"t":"code","b":[104],"m":"pla"},{"a":19015,"t":"code","b":[170],"m":"tax"},{"a":19016,"t":"code","b":[32,128,212],"m":"jsr","o":"free_block","oa":54400},{"a":19019,"t":"code","b":[96],"m":"rts"},{"a":19020,"l":"b_4A4C","t":"code","b":[202],"m":"dex","x":[18979,18984,18993]},{"a":19021,"t":"code","b":[208,209],"m":"bne","o":"b_4A20","oa":18976},{"a":19023,"t":"code","b":[96],"m":"rts"},{"a":19024,"l":"free_unused_sounds","c":"Frees every sound, from 126 down, that is loaded and not in use ($753F), except sounds 3, 4 and 5","t":"code","b":[162,126],"m":"ldx","o":"#$7E","x":[18851]},{"a":19026,"l":"b_4A52","t":"code","b":[189,63,117],"m":"lda","o":"f_753F,x","oa":30015,"x":[19074]},{"a":19029,"t":"code","b":[208,42],"m":"bne","o":"b_4A81","oa":19073},{"a":19031,"t":"code","b":[189,65,116],"m":"lda","o":"f_7441,x","oa":29761},{"a":19034,"t":"code","b":[240,37],"m":"beq","o":"b_4A81","oa":19073},{"a":19036,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":19038,"t":"code","b":[240,33],"m":"beq","o":"b_4A81","oa":19073},{"a":19040,"t":"code","b":[224,4],"m":"cpx","o":"#$04"},{"a":19042,"t":"code","b":[240,29],"m":"beq","o":"b_4A81","oa":19073},{"a":19044,"t":"code","b":[224,5],"m":"cpx","o":"#$05"},{"a":19046,"t":"code","b":[240,25],"m":"beq","o":"b_4A81","oa":19073},{"a":19048,"t":"code","b":[138],"m":"txa"},{"a":19049,"t":"code","b":[72],"m":"pha"},{"a":19050,"t":"code","b":[189,65,116],"m":"lda","o":"f_7441,x","oa":29761},{"a":19053,"t":"code","b":[168],"m":"tay"},{"a":19054,"t":"code","b":[189,192,116],"m":"lda","o":"f_74C0,x","oa":29888},{"a":19057,"t":"code","b":[72],"m":"pha"},{"a":19058,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":19060,"t":"code","b":[157,192,116],"m":"sta","o":"f_74C0,x","oa":29888},{"a":19063,"t":"code","b":[157,65,116],"m":"sta","o":"f_7441,x","oa":29761},{"a":19066,"t":"code","b":[104],"m":"pla"},{"a":19067,"t":"code","b":[170],"m":"tax"},{"a":19068,"t":"code","b":[32,128,212],"m":"jsr","o":"free_block","oa":54400},{"a":19071,"t":"code","b":[104],"m":"pla"},{"a":19072,"t":"code","b":[170],"m":"tax"},{"a":19073,"l":"b_4A81","t":"code","b":[202],"m":"dex","x":[19029,19034,19038,19042,19046]},{"a":19074,"t":"code","b":[208,206],"m":"bne","o":"b_4A52","oa":19026},{"a":19076,"t":"code","b":[96],"m":"rts"},{"a":19077,"l":"free_unused_scripts","c":"Frees every global script, from 154 down, that is loaded and not running or locked ($76F4)","t":"code","b":[162,154],"m":"ldx","o":"#$9A","x":[18861]},{"a":19079,"l":"b_4A87","t":"code","b":[189,244,118],"m":"lda","o":"f_76F4,x","oa":30452,"x":[19115]},{"a":19082,"t":"code","b":[208,30],"m":"bne","o":"b_4AAA","oa":19114},{"a":19084,"t":"code","b":[189,190,117],"m":"lda","o":"f_75BE,x","oa":30142},{"a":19087,"t":"code","b":[240,25],"m":"beq","o":"b_4AAA","oa":19114},{"a":19089,"t":"code","b":[138],"m":"txa"},{"a":19090,"t":"code","b":[72],"m":"pha"},{"a":19091,"t":"code","b":[189,190,117],"m":"lda","o":"f_75BE,x","oa":30142},{"a":19094,"t":"code","b":[168],"m":"tay"},{"a":19095,"t":"code","b":[189,89,118],"m":"lda","o":"f_7659,x","oa":30297},{"a":19098,"t":"code","b":[72],"m":"pha"},{"a":19099,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":19101,"t":"code","b":[157,89,118],"m":"sta","o":"f_7659,x","oa":30297},{"a":19104,"t":"code","b":[157,190,117],"m":"sta","o":"f_75BE,x","oa":30142},{"a":19107,"t":"code","b":[104],"m":"pla"},{"a":19108,"t":"code","b":[170],"m":"tax"},{"a":19109,"t":"code","b":[32,128,212],"m":"jsr","o":"free_block","oa":54400},{"a":19112,"t":"code","b":[104],"m":"pla"},{"a":19113,"t":"code","b":[170],"m":"tax"},{"a":19114,"l":"b_4AAA","t":"code","b":[202],"m":"dex","x":[19082,19087]},{"a":19115,"t":"code","b":[208,218],"m":"bne","o":"b_4A87","oa":19079},{"a":19117,"t":"code","b":[96],"m":"rts"},{"a":19118,"l":"copy_block","c":"Copies $4B/$4C bytes from $4D/$4E to $4F/$50, a page at a time from the bottom up, which is safe when a block moves down","t":"code","b":[165,75],"m":"lda","o":"zpa_4B","oa":75,"x":[18597]},{"a":19120,"t":"code","b":[72],"m":"pha"},{"a":19121,"t":"code","b":[166,76],"m":"ldx","o":"zpa_4C","oa":76},{"a":19123,"l":"b_4AB3","t":"code","b":[240,7],"m":"beq","o":"b_4ABC","oa":19132,"x":[19154]},{"a":19125,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":19127,"t":"code","b":[133,75],"m":"sta","o":"zpa_4B","oa":75},{"a":19129,"t":"code","b":[76,194,74],"m":"jmp","o":"j_4AC2","oa":19138},{"a":19132,"l":"b_4ABC","t":"code","b":[104],"m":"pla","x":[19123]},{"a":19133,"t":"code","b":[133,75],"m":"sta","o":"zpa_4B","oa":75},{"a":19135,"t":"code","b":[208,1],"m":"bne","o":"j_4AC2","oa":19138},{"a":19137,"t":"code","b":[96],"m":"rts"},{"a":19138,"l":"j_4AC2","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[19129,19135]},{"a":19140,"l":"b_4AC4","t":"code","b":[177,77],"m":"lda","o":"(zpa_4D),y","oa":77,"x":[19147]},{"a":19142,"t":"code","b":[145,79],"m":"sta","o":"(zpa_4F),y","oa":79},{"a":19144,"t":"code","b":[200],"m":"iny"},{"a":19145,"t":"code","b":[196,75],"m":"cpy","o":"zpa_4B","oa":75},{"a":19147,"t":"code","b":[208,247],"m":"bne","o":"b_4AC4","oa":19140},{"a":19149,"t":"code","b":[230,78],"m":"inc","o":"zpa_4E","oa":78},{"a":19151,"t":"code","b":[230,80],"m":"inc","o":"zpa_50","oa":80},{"a":19153,"t":"code","b":[202],"m":"dex"},{"a":19154,"t":"code","b":[16,223],"m":"bpl","o":"b_4AB3","oa":19123},{"a":19156,"t":"code","b":[96],"m":"rts"},{"a":19157,"t":"gap","n":249},{"a":19406,"l":"init_heap","c":"Start-up: clears the variable area $679D-$77D4 ($1038 bytes) with fill_bytes, then makes the whole heap one free block: a header at $77D5 giving its size, $502B bytes (to $C7FF), and the heap's pointers at $FFEC-$FFF1 all pointing at it","t":"code","b":[169,157],"m":"lda","o":"#$9D","x":[1116]},{"a":19408,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":19410,"t":"code","b":[169,103],"m":"lda","o":"#$67"},{"a":19412,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":19414,"t":"code","b":[169,56],"m":"lda","o":"#$38"},{"a":19416,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":19418,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":19420,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":19422,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":19424,"t":"code","b":[32,230,75],"m":"jsr","o":"fill_bytes","oa":19430},{"a":19427,"t":"code","b":[76,0,76],"m":"jmp","o":"j_4C00","oa":19456},{"a":19430,"l":"fill_bytes","c":"Stores X into the $1B/$1C bytes from the pointer at $19/$1A on; the count must not be zero","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[19424,19453,20106,20127,23649]},{"a":19432,"t":"code","b":[138],"m":"txa"},{"a":19433,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":19435,"t":"code","b":[230,25],"m":"inc","o":"zpa_19","oa":25},{"a":19437,"t":"code","b":[208,2],"m":"bne","o":"b_4BF1","oa":19441},{"a":19439,"t":"code","b":[230,26],"m":"inc","o":"zpa_1A","oa":26},{"a":19441,"l":"b_4BF1","t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27,"x":[19437]},{"a":19443,"t":"code","b":[208,2],"m":"bne","o":"b_4BF7","oa":19447},{"a":19445,"t":"code","b":[198,28],"m":"dec","o":"zpa_1C","oa":28},{"a":19447,"l":"b_4BF7","t":"code","b":[198,27],"m":"dec","o":"zpa_1B","oa":27,"x":[19443]},{"a":19449,"t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27},{"a":19451,"t":"code","b":[5,28],"m":"ora","o":"zpa_1C","oa":28},{"a":19453,"t":"code","b":[208,231],"m":"bne","o":"fill_bytes","oa":19430},{"a":19455,"t":"code","b":[96],"m":"rts"},{"a":19456,"l":"j_4C00","t":"code","b":[169,43],"m":"lda","o":"#$2B","x":[19427]},{"a":19458,"t":"code","b":[141,213,119],"m":"sta","o":"a_77D5","oa":30677},{"a":19461,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":19463,"t":"code","b":[141,214,119],"m":"sta","o":"a_77D6","oa":30678},{"a":19466,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":19468,"t":"code","b":[141,215,119],"m":"sta","o":"a_77D7","oa":30679},{"a":19471,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":19473,"t":"code","b":[141,216,119],"m":"sta","o":"a_77D8","oa":30680},{"a":19476,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":19478,"t":"code","b":[141,236,255],"m":"sta","o":"heap_list_head","oa":65516},{"a":19481,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":19483,"t":"code","b":[141,237,255],"m":"sta","o":"heap_list_head_high","oa":65517},{"a":19486,"t":"code","b":[169,213],"m":"lda","o":"#$D5"},{"a":19488,"t":"code","b":[141,238,255],"m":"sta","o":"heap_first_free","oa":65518},{"a":19491,"t":"code","b":[141,240,255],"m":"sta","o":"heap_free_tail","oa":65520},{"a":19494,"t":"code","b":[169,119],"m":"lda","o":"#$77"},{"a":19496,"t":"code","b":[141,239,255],"m":"sta","o":"a_FFEF","oa":65519},{"a":19499,"t":"code","b":[141,241,255],"m":"sta","o":"a_FFF1","oa":65521},{"a":19502,"t":"code","b":[96],"m":"rts"},{"a":19503,"l":"run_all_scripts","c":"Once a pass of the main loop: calls $624B, only an RTS, then runs every slot from 1 to 19 whose status is 2 (running): makes it current, finds its script with find_script_base and runs it until it yields; the slot number counts in $FC29, which it leaves at 1","t":"code","b":[32,75,98],"m":"jsr","o":"scripts_hook","oa":25163,"x":[1380]},{"a":19506,"l":"b_4C32","t":"code","b":[174,41,252],"m":"ldx","o":"a_FC29","oa":64553,"x":[19536]},{"a":19509,"t":"code","b":[189,122,104],"m":"lda","o":"f_687A,x","oa":26746},{"a":19512,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":19514,"t":"code","b":[208,12],"m":"bne","o":"b_4C48","oa":19528},{"a":19516,"t":"code","b":[142,81,104],"m":"stx","o":"current_slot","oa":26705},{"a":19519,"t":"code","b":[32,202,76],"m":"jsr","o":"find_script_base","oa":19658},{"a":19522,"t":"code","b":[32,137,76],"m":"jsr","o":"set_script_pointer","oa":19593},{"a":19525,"t":"code","b":[32,88,76],"m":"jsr","o":"run_script_loop","oa":19544},{"a":19528,"l":"b_4C48","t":"code","b":[238,41,252],"m":"inc","o":"a_FC29","oa":64553,"x":[19514]},{"a":19531,"t":"code","b":[173,41,252],"m":"lda","o":"a_FC29","oa":64553},{"a":19534,"t":"code","b":[201,20],"m":"cmp","o":"#$14"},{"a":19536,"t":"code","b":[208,224],"m":"bne","o":"b_4C32","oa":19506},{"a":19538,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":19540,"t":"code","b":[141,41,252],"m":"sta","o":"a_FC29","oa":64553},{"a":19543,"t":"code","b":[96],"m":"rts"},{"a":19544,"l":"run_script_loop","c":"The interpreter: fetches the current slot's next opcode with fetch_script_byte, keeps it in current_opcode ($FC2C), looks up its handler in the tables under the I/O chips ($D100 low bytes, $D000 high bytes; the RAM is banked in, as it is in all of play), calls $624A, which is only an RTS, and calls the handler through the JSR at $4C74, whose address it has just written; loops until a handler sets current_slot ($6851) negative","t":"code","b":[173,81,104],"m":"lda","o":"current_slot","oa":26705,"x":[19525,19575,20000]},{"a":19547,"t":"code","b":[16,1],"m":"bpl","o":"b_4C5E","oa":19550},{"a":19549,"t":"code","b":[96],"m":"rts"},{"a":19550,"l":"b_4C5E","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646,"x":[19547]},{"a":19553,"t":"code","b":[141,44,252],"m":"sta","o":"current_opcode","oa":64556},{"a":19556,"t":"code","b":[170],"m":"tax"},{"a":19557,"t":"code","b":[189,0,209],"m":"lda","o":"opcode_handler_low,x","oa":53504},{"a":19560,"t":"code","b":[141,117,76],"m":"sta","o":"handler_call_lo","oa":19573},{"a":19563,"t":"code","b":[189,0,208],"m":"lda","o":"opcode_handler_high,x","oa":53248},{"a":19566,"t":"code","b":[141,118,76],"m":"sta","o":"handler_call_hi","oa":19574},{"a":19569,"t":"code","b":[32,74,98],"m":"jsr","o":"opcode_hook","oa":25162},{"a":19572,"c":"The handler's address is written into this JSR's operand by $4C68 and $4C6E","t":"code","b":[32,0,0],"m":"jsr","o":"$0000"},{"a":19573,"t":"note","l":"handler_call_lo","c":"The low byte of the opcode's handler, written at $4C68 from opcode_handler_low","note":"inside the item at $4C74","x":[19560]},{"a":19574,"t":"note","l":"handler_call_hi","c":"The high byte of the handler, written at $4C6E from opcode_handler_high; after the handler returns, the next opcode","note":"inside the item at $4C74","x":[19566]},{"a":19575,"t":"code","b":[76,88,76],"m":"jmp","o":"run_script_loop","oa":19544},{"a":19578,"l":"refresh_script_pointer","c":"After something may have moved the heap (a load, a compaction): saves the current slot's offset with save_script_offset, finds its script's address again with find_script_base and rebuilds the script pointer with set_script_pointer","t":"code","b":[173,81,104],"m":"lda","o":"current_slot","oa":26705,"x":[19887,21587,21636,22049,22456,22509,22589,22722,22757,23407,24205,24259,24352,24364,24375,24386,24661,24896,25067,25104]},{"a":19581,"t":"code","b":[48,9],"m":"bmi","o":"r_4C88","oa":19592},{"a":19583,"t":"code","b":[32,162,76],"m":"jsr","o":"save_script_offset","oa":19618},{"a":19586,"t":"code","b":[32,202,76],"m":"jsr","o":"find_script_base","oa":19658},{"a":19589,"t":"code","b":[32,137,76],"m":"jsr","o":"set_script_pointer","oa":19593},{"a":19592,"l":"r_4C88","t":"code","b":[96],"m":"rts","x":[19581]},{"a":19593,"l":"set_script_pointer","c":"Builds the address of the current slot's next byte (its base, script_base $FC2A/$FC2B, plus its offset, $6866/$6852) into the operand of fetch_script_byte's LDA; nothing when no slot is current","t":"code","b":[172,81,104],"m":"ldy","o":"current_slot","oa":26705,"x":[19522,19589,19997,20062]},{"a":19596,"t":"code","b":[48,19],"m":"bmi","o":"r_4CA1","oa":19617},{"a":19598,"t":"code","b":[173,42,252],"m":"lda","o":"script_base","oa":64554},{"a":19601,"t":"code","b":[24],"m":"clc"},{"a":19602,"t":"code","b":[121,102,104],"m":"adc","o":"f_6866,y","oa":26726},{"a":19605,"t":"code","b":[141,191,76],"m":"sta","o":"script_byte_lo","oa":19647},{"a":19608,"t":"code","b":[173,43,252],"m":"lda","o":"a_FC2B","oa":64555},{"a":19611,"t":"code","b":[121,82,104],"m":"adc","o":"f_6852,y","oa":26706},{"a":19614,"t":"code","b":[141,192,76],"m":"sta","o":"script_byte_hi","oa":19648},{"a":19617,"l":"r_4CA1","t":"code","b":[96],"m":"rts","x":[19596]},{"a":19618,"l":"save_script_offset","c":"The reverse of set_script_pointer: takes the base off the address in fetch_script_byte's operand and keeps the slot's offset in $6866/$6852","t":"code","b":[172,81,104],"m":"ldy","o":"current_slot","oa":26705,"x":[19583,19957,20686]},{"a":19621,"t":"code","b":[48,19],"m":"bmi","o":"r_4CBA","oa":19642},{"a":19623,"t":"code","b":[173,191,76],"m":"lda","o":"script_byte_lo","oa":19647},{"a":19626,"t":"code","b":[56],"m":"sec"},{"a":19627,"t":"code","b":[237,42,252],"m":"sbc","o":"script_base","oa":64554},{"a":19630,"t":"code","b":[153,102,104],"m":"sta","o":"f_6866,y","oa":26726},{"a":19633,"t":"code","b":[173,192,76],"m":"lda","o":"script_byte_hi","oa":19648},{"a":19636,"t":"code","b":[237,43,252],"m":"sbc","o":"a_FC2B","oa":64555},{"a":19639,"t":"code","b":[153,82,104],"m":"sta","o":"f_6852,y","oa":26706},{"a":19642,"l":"r_4CBA","t":"code","b":[96],"m":"rts","x":[19621]},{"a":19643,"l":"fetch_script_word_skip","c":"Steps over one byte of the script, then falls into fetch_script_byte","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646,"x":[20519,20906,20924,20936,20949,20962,20973,20984,20995,21039,21126,21141,22604]},{"a":19646,"l":"fetch_script_byte","c":"Reads the current script's next byte through the absolute address in its own operand ($4CBF/$4CC0), which set_script_pointer builds, and steps the address on; every script byte the interpreter reads comes through here","t":"code","b":[173,255,255],"m":"lda","o":"$FFFF","oa":65535,"x":[19550,19643,20188,20197,20251,20257,20267,20278,20516,20523,20528,20707,20716,20721,20729,21594,21599,21691,21697,21845,21851,22354,22396,22402,22408,22617,22621,22894,24033,24038,24162,24221,24441,24454,24488,24494,24506,24754,24805,24963]},{"a":19647,"t":"note","l":"script_byte_lo","c":"The low byte of the script's next byte's address, written by set_script_pointer and stepped after every byte","note":"inside the item at $4CBE","x":[19605,19623,19649,20491,20533,20539,20587,20592,20623,20628,20643,20672,22114,22129,24607,24664,24728,24735]},{"a":19648,"t":"note","l":"script_byte_hi","c":"The high byte of the script's next byte's address, stepped when the low byte wraps","note":"inside the item at $4CBE","x":[19614,19633,19654,20501,20542,20547,20595,20600,20631,20636,20648,20679,22119,22134,24612,24669,24740]},{"a":19649,"t":"code","b":[238,191,76],"m":"inc","o":"script_byte_lo","oa":19647},{"a":19652,"t":"code","b":[208,3],"m":"bne","o":"r_4CC9","oa":19657},{"a":19654,"t":"code","b":[238,192,76],"m":"inc","o":"script_byte_hi","oa":19648},{"a":19657,"l":"r_4CC9","t":"code","b":[96],"m":"rts","x":[19652]},{"a":19658,"l":"find_script_base","c":"Sets script_base ($FC2A/$FC2B) for the current slot from what kind of script it runs (the low six bits of $68CA): 2, a global script, at its resource's address from $7659/$75BE plus 4 for the resource header; 1, the room's own script, at the room's address ($73BA/$737F for the current room); 0, an object's verb script, at the inventory object's address ($67D9/$6815). A script that is not in memory stops the slot (stop_current_slot); any other kind is a fatal error, code 8","t":"code","b":[172,81,104],"m":"ldy","o":"current_slot","oa":26705,"x":[19519,19586,19994,20059]},{"a":19661,"t":"code","b":[16,1],"m":"bpl","o":"b_4CD0","oa":19664},{"a":19663,"t":"code","b":[96],"m":"rts"},{"a":19664,"l":"b_4CD0","t":"code","b":[185,202,104],"m":"lda","o":"f_68CA,y","oa":26826,"x":[19661]},{"a":19667,"t":"code","b":[41,63],"m":"and","o":"#$3F"},{"a":19669,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":19671,"t":"code","b":[208,26],"m":"bne","o":"b_4CF3","oa":19699},{"a":19673,"t":"code","b":[190,222,104],"m":"ldx","o":"f_68DE,y","oa":26846},{"a":19676,"t":"code","b":[189,89,118],"m":"lda","o":"f_7659,x","oa":30297},{"a":19679,"t":"code","b":[24],"m":"clc"},{"a":19680,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":19682,"t":"code","b":[141,42,252],"m":"sta","o":"script_base","oa":64554},{"a":19685,"t":"code","b":[189,190,117],"m":"lda","o":"f_75BE,x","oa":30142},{"a":19688,"t":"code","b":[208,3],"m":"bne","o":"b_4CED","oa":19693},{"a":19690,"t":"code","b":[76,46,77],"m":"jmp","o":"stop_current_slot","oa":19758},{"a":19693,"l":"b_4CED","t":"code","b":[105,0],"m":"adc","o":"#$00","x":[19688]},{"a":19695,"t":"code","b":[141,43,252],"m":"sta","o":"a_FC2B","oa":64555},{"a":19698,"t":"code","b":[96],"m":"rts"},{"a":19699,"l":"b_4CF3","t":"code","b":[201,1],"m":"cmp","o":"#$01","x":[19671]},{"a":19701,"t":"code","b":[208,16],"m":"bne","o":"b_4D07","oa":19719},{"a":19703,"t":"code","b":[174,2,105],"m":"ldx","o":"room_resource","oa":26882},{"a":19706,"t":"code","b":[189,186,115],"m":"lda","o":"room_address_lo,x","oa":29626},{"a":19709,"t":"code","b":[141,42,252],"m":"sta","o":"script_base","oa":64554},{"a":19712,"t":"code","b":[189,127,115],"m":"lda","o":"room_address_hi,x","oa":29567},{"a":19715,"t":"code","b":[141,43,252],"m":"sta","o":"a_FC2B","oa":64555},{"a":19718,"t":"code","b":[96],"m":"rts"},{"a":19719,"l":"b_4D07","t":"code","b":[201,0],"m":"cmp","o":"#$00","x":[19701]},{"a":19721,"t":"code","b":[208,21],"m":"bne","o":"fatal_error_stop","oa":19744},{"a":19723,"t":"code","b":[190,222,104],"m":"ldx","o":"f_68DE,y","oa":26846},{"a":19726,"t":"code","b":[189,217,103],"m":"lda","o":"f_67D9,x","oa":26585},{"a":19729,"t":"code","b":[141,42,252],"m":"sta","o":"script_base","oa":64554},{"a":19732,"t":"code","b":[189,21,104],"m":"lda","o":"f_6815,x","oa":26645},{"a":19735,"t":"code","b":[208,3],"m":"bne","o":"b_4D1C","oa":19740},{"a":19737,"t":"code","b":[76,46,77],"m":"jmp","o":"stop_current_slot","oa":19758},{"a":19740,"l":"b_4D1C","t":"code","b":[141,43,252],"m":"sta","o":"a_FC2B","oa":64555,"x":[19735]},{"a":19743,"t":"code","b":[96],"m":"rts"},{"a":19744,"l":"fatal_error_stop","c":"Fatal error: keeps the code in $C9, banks the chips in and changes the border colour for ever; $4D2B never returns","t":"code","b":[169,8],"m":"lda","o":"#$08","x":[19721]},{"a":19746,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":19748,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":19750,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":19752,"l":"j_4D28","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[19755]},{"a":19755,"t":"code","b":[76,40,77],"m":"jmp","o":"j_4D28","oa":19752},{"a":19758,"l":"stop_current_slot","c":"Frees the current slot (status 0) and leaves no slot current","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[19690,19737]},{"a":19760,"t":"code","b":[153,122,104],"m":"sta","o":"f_687A,y","oa":26746},{"a":19763,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":19765,"t":"code","b":[141,81,104],"m":"sta","o":"current_slot","oa":26705},{"a":19768,"t":"code","b":[96],"m":"rts"},{"a":19769,"l":"stop_room_scripts","c":"Frees every slot that runs a room script (kind 1): called when the room changes","t":"code","b":[162,19],"m":"ldx","o":"#$13","x":[10813]},{"a":19771,"l":"b_4D3B","t":"code","b":[189,202,104],"m":"lda","o":"f_68CA,x","oa":26826,"x":[19786]},{"a":19774,"t":"code","b":[41,63],"m":"and","o":"#$3F"},{"a":19776,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":19778,"t":"code","b":[208,5],"m":"bne","o":"b_4D49","oa":19785},{"a":19780,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":19782,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":19785,"l":"b_4D49","t":"code","b":[202],"m":"dex","x":[19778]},{"a":19786,"t":"code","b":[16,239],"m":"bpl","o":"b_4D3B","oa":19771},{"a":19788,"t":"code","b":[96],"m":"rts"},{"a":19789,"l":"stop_script","c":"Stops global script A wherever it runs: frees every running slot (but slot 0) whose script it is, clears its count in $76F4 but for the lock bit, and marks each nested call of it waiting in the call stack ($6225/$622F) as gone ($FF)","t":"code","b":[141,31,98],"m":"sta","o":"a_621F","oa":25119,"x":[19873,20564,21080,21101,22839]},{"a":19792,"t":"code","b":[160,19],"m":"ldy","o":"#$13"},{"a":19794,"l":"b_4D52","t":"code","b":[173,31,98],"m":"lda","o":"a_621F","oa":25119,"x":[19836]},{"a":19797,"t":"code","b":[217,222,104],"m":"cmp","o":"f_68DE,y","oa":26846},{"a":19800,"t":"code","b":[208,33],"m":"bne","o":"b_4D7B","oa":19835},{"a":19802,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":19804,"t":"code","b":[217,202,104],"m":"cmp","o":"f_68CA,y","oa":26826},{"a":19807,"t":"code","b":[208,26],"m":"bne","o":"b_4D7B","oa":19835},{"a":19809,"t":"code","b":[190,122,104],"m":"ldx","o":"f_687A,y","oa":26746},{"a":19812,"t":"code","b":[224,0],"m":"cpx","o":"#$00"},{"a":19814,"t":"code","b":[240,19],"m":"beq","o":"b_4D7B","oa":19835},{"a":19816,"t":"code","b":[190,222,104],"m":"ldx","o":"f_68DE,y","oa":26846},{"a":19819,"t":"code","b":[189,244,118],"m":"lda","o":"f_76F4,x","oa":30452},{"a":19822,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":19824,"t":"code","b":[157,244,118],"m":"sta","o":"f_76F4,x","oa":30452},{"a":19827,"t":"code","b":[153,222,104],"m":"sta","o":"f_68DE,y","oa":26846},{"a":19830,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":19832,"t":"code","b":[153,122,104],"m":"sta","o":"f_687A,y","oa":26746},{"a":19835,"l":"b_4D7B","t":"code","b":[136],"m":"dey","x":[19800,19807,19814]},{"a":19836,"t":"code","b":[208,212],"m":"bne","o":"b_4D52","oa":19794},{"a":19838,"t":"code","b":[172,36,98],"m":"ldy","o":"a_6224","oa":25124},{"a":19841,"t":"code","b":[240,27],"m":"beq","o":"r_4D9E","oa":19870},{"a":19843,"t":"code","b":[136],"m":"dey"},{"a":19844,"l":"b_4D84","t":"code","b":[173,31,98],"m":"lda","o":"a_621F","oa":25119,"x":[19868]},{"a":19847,"t":"code","b":[217,37,98],"m":"cmp","o":"f_6225,y","oa":25125},{"a":19850,"t":"code","b":[208,15],"m":"bne","o":"b_4D9B","oa":19867},{"a":19852,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":19854,"t":"code","b":[217,47,98],"m":"cmp","o":"f_622F,y","oa":25135},{"a":19857,"t":"code","b":[208,8],"m":"bne","o":"b_4D9B","oa":19867},{"a":19859,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":19861,"t":"code","b":[153,37,98],"m":"sta","o":"f_6225,y","oa":25125},{"a":19864,"t":"code","b":[153,47,98],"m":"sta","o":"f_622F,y","oa":25135},{"a":19867,"l":"b_4D9B","t":"code","b":[136],"m":"dey","x":[19850,19857]},{"a":19868,"t":"code","b":[16,230],"m":"bpl","o":"b_4D84","oa":19844},{"a":19870,"l":"r_4D9E","t":"code","b":[96],"m":"rts","x":[19841]},{"a":19871,"l":"start_script","c":"Starts global script A: stops it first if it runs (stop_script), loads it from the disk if it is not in memory ($2F27, then refresh_script_pointer), counts one more use in $76F4, takes a free slot (find_free_slot), sets it to the script's start with status 2 and kind 2, and runs it at once with run_nested","t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21,"x":[1308,1682,2208,10890,21087,21110,21841]},{"a":19873,"t":"code","b":[32,77,77],"m":"jsr","o":"stop_script","oa":19789},{"a":19876,"t":"code","b":[166,21],"m":"ldx","o":"zpa_15","oa":21},{"a":19878,"t":"code","b":[189,190,117],"m":"lda","o":"f_75BE,x","oa":30142},{"a":19881,"t":"code","b":[208,7],"m":"bne","o":"b_4DB2","oa":19890},{"a":19883,"t":"code","b":[138],"m":"txa"},{"a":19884,"t":"code","b":[32,39,47],"m":"jsr","o":"load_script","oa":12071},{"a":19887,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":19890,"l":"b_4DB2","t":"code","b":[166,21],"m":"ldx","o":"zpa_15","oa":21,"x":[19881]},{"a":19892,"t":"code","b":[254,244,118],"m":"inc","o":"f_76F4,x","oa":30452},{"a":19895,"t":"code","b":[32,213,77],"m":"jsr","o":"find_free_slot","oa":19925},{"a":19898,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":19900,"t":"code","b":[157,222,104],"m":"sta","o":"f_68DE,x","oa":26846},{"a":19903,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":19905,"t":"code","b":[157,82,104],"m":"sta","o":"f_6852,x","oa":26706},{"a":19908,"t":"code","b":[157,102,104],"m":"sta","o":"f_6866,x","oa":26726},{"a":19911,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":19913,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":19916,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":19918,"t":"code","b":[157,202,104],"m":"sta","o":"f_68CA,x","oa":26826},{"a":19921,"t":"code","b":[32,242,77],"m":"jsr","o":"run_nested","oa":19954},{"a":19924,"t":"code","b":[96],"m":"rts"},{"a":19925,"l":"find_free_slot","c":"Returns in X the first free script slot from 1 to 19 (status 0); with none free, a fatal error, code 9","t":"code","b":[162,1],"m":"ldx","o":"#$01","x":[12163,12205,19895,23076]},{"a":19927,"l":"b_4DD7","t":"code","b":[189,122,104],"m":"lda","o":"f_687A,x","oa":26746,"x":[19938]},{"a":19930,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":19932,"t":"code","b":[208,1],"m":"bne","o":"b_4DDF","oa":19935},{"a":19934,"t":"code","b":[96],"m":"rts"},{"a":19935,"l":"b_4DDF","t":"code","b":[232],"m":"inx","x":[19932]},{"a":19936,"t":"code","b":[224,20],"m":"cpx","o":"#$14"},{"a":19938,"t":"code","b":[208,243],"m":"bne","o":"b_4DD7","oa":19927},{"a":19940,"c":"Fatal error 9, no free script slot: the border changes colour for ever","t":"code","b":[169,9],"m":"lda","o":"#$09"},{"a":19942,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":19944,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":19946,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":19948,"l":"j_4DEC","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[19951]},{"a":19951,"t":"code","b":[76,236,77],"m":"jmp","o":"j_4DEC","oa":19948},{"a":19954,"l":"run_nested","c":"Runs slot X now, inside the current script: saves the current slot's offset, pushes its script number (or $FF when no slot is current) and kind onto the call stack at $6225/$622F (its depth in $6224), runs slot X until it yields, then pops the caller and makes it current again if it is still running; if it has gone, no slot is current","t":"code","b":[142,30,98],"m":"stx","o":"a_621E","oa":25118,"x":[12193,12235,19921,23158]},{"a":19957,"t":"code","b":[32,162,76],"m":"jsr","o":"save_script_offset","oa":19618},{"a":19960,"t":"code","b":[172,36,98],"m":"ldy","o":"a_6224","oa":25124},{"a":19963,"t":"code","b":[174,81,104],"m":"ldx","o":"current_slot","oa":26705},{"a":19966,"t":"code","b":[16,5],"m":"bpl","o":"b_4E05","oa":19973},{"a":19968,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":19970,"t":"code","b":[76,8,78],"m":"jmp","o":"j_4E08","oa":19976},{"a":19973,"l":"b_4E05","t":"code","b":[189,222,104],"m":"lda","o":"f_68DE,x","oa":26846,"x":[19966]},{"a":19976,"l":"j_4E08","t":"code","b":[153,37,98],"m":"sta","o":"f_6225,y","oa":25125,"x":[19970]},{"a":19979,"t":"code","b":[189,202,104],"m":"lda","o":"f_68CA,x","oa":26826},{"a":19982,"t":"code","b":[153,47,98],"m":"sta","o":"f_622F,y","oa":25135},{"a":19985,"t":"code","b":[238,36,98],"m":"inc","o":"a_6224","oa":25124},{"a":19988,"t":"code","b":[174,30,98],"m":"ldx","o":"a_621E","oa":25118},{"a":19991,"t":"code","b":[142,81,104],"m":"stx","o":"current_slot","oa":26705},{"a":19994,"t":"code","b":[32,202,76],"m":"jsr","o":"find_script_base","oa":19658},{"a":19997,"t":"code","b":[32,137,76],"m":"jsr","o":"set_script_pointer","oa":19593},{"a":20000,"t":"code","b":[32,88,76],"m":"jsr","o":"run_script_loop","oa":19544},{"a":20003,"t":"code","b":[206,36,98],"m":"dec","o":"a_6224","oa":25124},{"a":20006,"t":"code","b":[172,36,98],"m":"ldy","o":"a_6224","oa":25124},{"a":20009,"t":"code","b":[185,37,98],"m":"lda","o":"f_6225,y","oa":25125},{"a":20012,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":20014,"t":"code","b":[208,6],"m":"bne","o":"b_4E36","oa":20022},{"a":20016,"l":"j_4E30","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[20053]},{"a":20018,"t":"code","b":[141,81,104],"m":"sta","o":"current_slot","oa":26705},{"a":20021,"t":"code","b":[96],"m":"rts"},{"a":20022,"l":"b_4E36","t":"code","b":[162,19],"m":"ldx","o":"#$13","x":[20014]},{"a":20024,"l":"b_4E38","t":"code","b":[185,37,98],"m":"lda","o":"f_6225,y","oa":25125,"x":[20051]},{"a":20027,"t":"code","b":[221,222,104],"m":"cmp","o":"f_68DE,x","oa":26846},{"a":20030,"t":"code","b":[208,18],"m":"bne","o":"b_4E52","oa":20050},{"a":20032,"t":"code","b":[185,47,98],"m":"lda","o":"f_622F,y","oa":25135},{"a":20035,"t":"code","b":[221,202,104],"m":"cmp","o":"f_68CA,x","oa":26826},{"a":20038,"t":"code","b":[208,10],"m":"bne","o":"b_4E52","oa":20050},{"a":20040,"t":"code","b":[189,122,104],"m":"lda","o":"f_687A,x","oa":26746},{"a":20043,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":20045,"t":"code","b":[240,3],"m":"beq","o":"b_4E52","oa":20050},{"a":20047,"t":"code","b":[76,88,78],"m":"jmp","o":"j_4E58","oa":20056},{"a":20050,"l":"b_4E52","t":"code","b":[202],"m":"dex","x":[20030,20038,20045]},{"a":20051,"t":"code","b":[16,227],"m":"bpl","o":"b_4E38","oa":20024},{"a":20053,"t":"code","b":[76,48,78],"m":"jmp","o":"j_4E30","oa":20016},{"a":20056,"l":"j_4E58","t":"code","b":[142,81,104],"m":"stx","o":"current_slot","oa":26705,"x":[20047]},{"a":20059,"t":"code","b":[32,202,76],"m":"jsr","o":"find_script_base","oa":19658},{"a":20062,"t":"code","b":[32,137,76],"m":"jsr","o":"set_script_pointer","oa":19593},{"a":20065,"t":"code","b":[96],"m":"rts"},{"a":20066,"l":"redraw_inventory_banked","c":"Redraws the inventory with redraw_inventory ($F380), with the chips banked in and the flag at $FF72 set while it runs, then banks the RAM back","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[21590,22046,24171]},{"a":20068,"t":"code","b":[141,114,255],"m":"sta","o":"interface_drawing","oa":65394},{"a":20071,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":20073,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":20075,"t":"code","b":[32,128,243],"m":"jsr","o":"redraw_inventory","oa":62336},{"a":20078,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":20080,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":20082,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":20084,"t":"code","b":[141,114,255],"m":"sta","o":"interface_drawing","oa":65394},{"a":20087,"t":"code","b":[96],"m":"rts"},{"a":20088,"l":"clear_screen_buffers","c":"Clears the 640 bytes of picture rows from $C850 and the same at $CC50: the room area of both screens","t":"code","b":[169,80],"m":"lda","o":"#$50","x":[24110,54838]},{"a":20090,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":20092,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":20094,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":20096,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":20098,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":20100,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":20102,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":20104,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":20106,"t":"code","b":[32,230,75],"m":"jsr","o":"fill_bytes","oa":19430},{"a":20109,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":20111,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":20113,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":20115,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":20117,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":20119,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":20121,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":20123,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":20125,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":20127,"t":"code","b":[32,230,75],"m":"jsr","o":"fill_bytes","oa":19430},{"a":20130,"t":"code","b":[96],"m":"rts"},{"a":20131,"l":"compare_var_with_operand","c":"For the comparison opcodes: reads a variable's value (read_var) into $BD/$BE, then the opcode's second operand, a word or a variable (read_word_operand_80), into $6215/$6216, and compares them high byte first: carry set when the variable is the larger or equal, zero set when they are equal","t":"code","b":[32,229,78],"m":"jsr","o":"read_var","oa":20197,"x":[20928,20939,20952,20965,20976,20987]},{"a":20134,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":20137,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":20139,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":20142,"t":"code","b":[133,190],"m":"sta","o":"zpa_BE","oa":190},{"a":20144,"t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244},{"a":20147,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":20149,"t":"code","b":[205,22,98],"m":"cmp","o":"a_6216","oa":25110},{"a":20152,"t":"code","b":[208,5],"m":"bne","o":"r_4EBF","oa":20159},{"a":20154,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":20156,"t":"code","b":[205,21,98],"m":"cmp","o":"a_6215","oa":25109},{"a":20159,"l":"r_4EBF","t":"code","b":[96],"m":"rts","x":[20152]},{"a":20160,"l":"read_byte_operand_20","c":"Reads an operand that is a variable when bit 5 of the current opcode is set (read_var) and a byte in the script when it is clear; the value in $6215/$6216 and A","t":"code","b":[173,44,252],"m":"lda","o":"current_opcode","oa":64556,"x":[21273,22653,22705]},{"a":20163,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":20165,"t":"code","b":[76,213,78],"m":"jmp","o":"j_4ED5","oa":20181},{"a":20168,"l":"read_byte_operand_40","c":"The same for bit 6 of the opcode","t":"code","b":[173,44,252],"m":"lda","o":"current_opcode","oa":64556,"x":[21011,21267,21682,21931,22029,22608,22647,22673,22699,22731,23910,24749,24800,24921,24944]},{"a":20171,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":20173,"t":"code","b":[76,213,78],"m":"jmp","o":"j_4ED5","oa":20181},{"a":20176,"l":"read_byte_operand_80","c":"The same for bit 7 of the opcode: the commonest form, an opcode's first operand","t":"code","b":[173,44,252],"m":"lda","o":"current_opcode","oa":64556,"x":[20653,20756,21043,21084,21091,21618,21857,22138,22264,22278,22303,22319,22426,22437,22460,22513,22541,22593,22642,22668,22694,22726,22774,22825,23382,23394,23401,23680,23694,23708,23733,23758,23772,23796,23807,23899,24028,24186,24216,24436,24464,24500,24744,24795,24915,24938]},{"a":20179,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":20181,"l":"j_4ED5","t":"code","b":[208,14],"m":"bne","o":"read_var","oa":20197,"x":[20165,20173]},{"a":20183,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":20185,"t":"code","b":[141,22,98],"m":"sta","o":"a_6216","oa":25110},{"a":20188,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":20191,"t":"code","b":[141,21,98],"m":"sta","o":"a_6215","oa":25109},{"a":20194,"t":"code","b":[76,3,79],"m":"jmp","o":"r_4F03","oa":20227},{"a":20197,"l":"read_var","c":"Reads a variable number from the script and its value into $6215/$6216 (low bytes at $FE6E, high bytes at $FD6F); variables 14, 15 and 16 are indirect: their own value names the variable read","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646,"x":[20131,20181,20264,20892,20910]},{"a":20200,"t":"code","b":[170],"m":"tax"},{"a":20201,"t":"code","b":[224,16],"m":"cpx","o":"#$10"},{"a":20203,"t":"code","b":[240,2],"m":"beq","o":"b_4EEF","oa":20207},{"a":20205,"t":"code","b":[176,8],"m":"bcs","o":"b_4EF7","oa":20215},{"a":20207,"l":"b_4EEF","t":"code","b":[224,14],"m":"cpx","o":"#$0E","x":[20203]},{"a":20209,"t":"code","b":[144,4],"m":"bcc","o":"b_4EF7","oa":20215},{"a":20211,"t":"code","b":[189,110,254],"m":"lda","o":"a_FE6E,x","oa":65134},{"a":20214,"t":"code","b":[170],"m":"tax"},{"a":20215,"l":"b_4EF7","t":"code","b":[189,111,253],"m":"lda","o":"f_FD6F,x","oa":64879,"x":[20205,20209]},{"a":20218,"t":"code","b":[141,22,98],"m":"sta","o":"a_6216","oa":25110},{"a":20221,"t":"code","b":[189,110,254],"m":"lda","o":"a_FE6E,x","oa":65134},{"a":20224,"t":"code","b":[141,21,98],"m":"sta","o":"a_6215","oa":25109},{"a":20227,"l":"r_4F03","t":"code","b":[96],"m":"rts","x":[20194]},{"a":20228,"l":"read_word_operand_20","c":"Reads an operand that is a variable when bit 5 of the current opcode is set and a word in the script, low byte first, when it is clear; the value in $6215/$6216","t":"code","b":[173,44,252],"m":"lda","o":"current_opcode","oa":64556,"x":[22870]},{"a":20231,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":20233,"t":"code","b":[76,25,79],"m":"jmp","o":"j_4F19","oa":20249},{"a":20236,"l":"read_word_operand_40","c":"As read_word_operand_20, for bit 6 of the opcode: a variable when it is set, a word in the script when it is clear","t":"code","b":[173,44,252],"m":"lda","o":"current_opcode","oa":64556,"x":[22165,22518,22546,22855,23812]},{"a":20239,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":20241,"t":"code","b":[76,25,79],"m":"jmp","o":"j_4F19","oa":20249},{"a":20244,"l":"read_word_operand_80","c":"As read_word_operand_20, for bit 7 of the opcode","t":"code","b":[173,44,252],"m":"lda","o":"current_opcode","oa":64556,"x":[20144,20285,20765,20831,20863,20998,21439,21667,22150,22190,22761,22799,23480,24147]},{"a":20247,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":20249,"l":"j_4F19","t":"code","b":[208,13],"m":"bne","o":"b_4F28","oa":20264,"x":[20233,20241]},{"a":20251,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":20254,"t":"code","b":[141,21,98],"m":"sta","o":"a_6215","oa":25109},{"a":20257,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":20260,"t":"code","b":[141,22,98],"m":"sta","o":"a_6216","oa":25110},{"a":20263,"t":"code","b":[96],"m":"rts"},{"a":20264,"l":"b_4F28","t":"code","b":[76,229,78],"m":"jmp","o":"read_var","oa":20197,"x":[20249]},{"a":20267,"l":"read_indirect_result","c":"Reads a variable number from the script and makes the variable it holds the one the opcode's result goes to ($6217)","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646,"x":[20695,20816,20822]},{"a":20270,"t":"code","b":[170],"m":"tax"},{"a":20271,"t":"code","b":[189,110,254],"m":"lda","o":"a_FE6E,x","oa":65134},{"a":20274,"t":"code","b":[141,23,98],"m":"sta","o":"a_6217","oa":25111},{"a":20277,"t":"code","b":[96],"m":"rts"},{"a":20278,"l":"read_result_var","c":"Reads the number of the variable the opcode's result goes to into $6217","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646,"x":[20701,20753,20762,20784,20800,20828,20860,21968,22000,22147,22187,22261,22275,22300,22316,22796,23677,23691,23705,23730,23755,23769,23793,24183,24912,24935]},{"a":20281,"t":"code","b":[141,23,98],"m":"sta","o":"a_6217","oa":25111},{"a":20284,"t":"code","b":[96],"m":"rts"},{"a":20285,"l":"read_object_flags","c":"Reads an object number (read_word_operand_80) and returns its byte in the object table at $6B47 (owner in the low four bits, state flags in the high four) with read_object_byte","t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244,"x":[21116,21131,21178,21189,21250,22003,22012]},{"a":20288,"l":"read_object_byte","c":"Returns the byte for the object in $6215/$6216 from the object table at $6B47; the table's address is written into the LDA at $4F51, so write_object_byte can store back to it","t":"code","b":[24],"m":"clc","x":[21409,21430,21564]},{"a":20289,"t":"code","b":[169,71],"m":"lda","o":"#$47"},{"a":20291,"t":"code","b":[109,21,98],"m":"adc","o":"a_6215","oa":25109},{"a":20294,"t":"code","b":[141,82,79],"m":"sta","o":"object_entry_lo","oa":20306},{"a":20297,"t":"code","b":[169,107],"m":"lda","o":"#$6B"},{"a":20299,"t":"code","b":[109,22,98],"m":"adc","o":"a_6216","oa":25110},{"a":20302,"t":"code","b":[141,83,79],"m":"sta","o":"object_entry_hi","oa":20307},{"a":20305,"t":"code","b":[173,255,255],"m":"lda","o":"$FFFF","oa":65535},{"a":20306,"t":"note","l":"object_entry_lo","c":"The low byte of the object's entry, $6B47 plus the object's number, written at $4F46; write_object_byte copies it","note":"inside the item at $4F51","x":[20294,20310]},{"a":20307,"t":"note","l":"object_entry_hi","c":"The high byte of the object's entry, written at $4F4E","note":"inside the item at $4F51","x":[20302,20316]},{"a":20308,"t":"code","b":[96],"m":"rts"},{"a":20309,"l":"write_object_byte","c":"Stores A back into the object table, at the byte read_object_byte read last (it copies that LDA's operand into the STA at $4F63)","t":"code","b":[72],"m":"pha","x":[21183,21194,21414,21435,21574,22043]},{"a":20310,"t":"code","b":[173,82,79],"m":"lda","o":"object_entry_lo","oa":20306},{"a":20313,"t":"code","b":[141,100,79],"m":"sta","o":"object_store_lo","oa":20324},{"a":20316,"t":"code","b":[173,83,79],"m":"lda","o":"object_entry_hi","oa":20307},{"a":20319,"t":"code","b":[141,101,79],"m":"sta","o":"object_store_hi","oa":20325},{"a":20322,"t":"code","b":[104],"m":"pla"},{"a":20323,"t":"code","b":[141,255,255],"m":"sta","o":"$FFFF","oa":65535},{"a":20324,"t":"note","l":"object_store_lo","c":"The low byte of the entry to store to, copied from $4F52","note":"inside the item at $4F63","x":[20313]},{"a":20325,"t":"note","l":"object_store_hi","c":"The high byte of the entry to store to, copied from $4F53","note":"inside the item at $4F63","x":[20319]},{"a":20326,"t":"code","b":[96],"m":"rts"},{"a":20327,"l":"set_result_byte","c":"Stores A, with a zero high byte, in the opcode's result variable (store_result at $5120)","t":"code","b":[141,21,98],"m":"sta","o":"a_6215","oa":25109,"x":[21996,22008,22183,22257,22271,22296,22312,22350,22815,23687,23701,23726,23751,23765,23789,23803,24202,24931]},{"a":20330,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":20332,"t":"code","b":[141,22,98],"m":"sta","o":"a_6216","oa":25110},{"a":20335,"t":"code","b":[76,32,81],"m":"jmp","o":"store_result","oa":20768},{"a":20338,"l":"find_free_inventory_slot","c":"Returns in Y the first free slot from 1 to 59 in the inventory table at $679D and keeps the highest used in $624C; with none free, a fatal error, code 10","t":"code","b":[160,1],"m":"ldy","o":"#$01","x":[21531]},{"a":20340,"l":"b_4F74","t":"code","b":[185,157,103],"m":"lda","o":"f_679D,y","oa":26525,"x":[20357]},{"a":20343,"t":"code","b":[208,9],"m":"bne","o":"b_4F82","oa":20354},{"a":20345,"t":"code","b":[204,76,98],"m":"cpy","o":"a_624C","oa":25164},{"a":20348,"t":"code","b":[144,3],"m":"bcc","o":"r_4F81","oa":20353},{"a":20350,"t":"code","b":[140,76,98],"m":"sty","o":"a_624C","oa":25164},{"a":20353,"l":"r_4F81","t":"code","b":[96],"m":"rts","x":[20348]},{"a":20354,"l":"b_4F82","t":"code","b":[200],"m":"iny","x":[20343]},{"a":20355,"t":"code","b":[192,60],"m":"cpy","o":"#$3C"},{"a":20357,"t":"code","b":[208,237],"m":"bne","o":"b_4F74","oa":20340},{"a":20359,"t":"code","b":[169,10],"m":"lda","o":"#$0A"},{"a":20361,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":20363,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":20365,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":20367,"l":"j_4F8F","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[20370]},{"a":20370,"t":"code","b":[76,143,79],"m":"jmp","o":"j_4F8F","oa":20367},{"a":20373,"l":"actor_distance","c":"The larger of the X and Y distances between two objects or actors, whose numbers are in $623B/$623C and $623D/$623E: finds each one's position with $08A4 ($FC18/$FC19) and returns the larger difference in A; $FF from $08A4 (not in the room) returns at once","t":"code","b":[174,59,98],"m":"ldx","o":"a_623B","oa":25147,"x":[22180,22226]},{"a":20376,"t":"code","b":[173,60,98],"m":"lda","o":"a_623C","oa":25148},{"a":20379,"t":"code","b":[134,229],"m":"stx","o":"zpa_E5","oa":229},{"a":20381,"t":"code","b":[133,230],"m":"sta","o":"zpa_E6","oa":230},{"a":20383,"t":"code","b":[32,164,8],"m":"jsr","o":"object_or_actor_xy","oa":2212},{"a":20386,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":20388,"t":"code","b":[208,1],"m":"bne","o":"b_4FA7","oa":20391},{"a":20390,"t":"code","b":[96],"m":"rts"},{"a":20391,"l":"b_4FA7","t":"code","b":[173,24,252],"m":"lda","o":"a_FC18","oa":64536,"x":[20388]},{"a":20394,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":20396,"t":"code","b":[173,25,252],"m":"lda","o":"a_FC19","oa":64537},{"a":20399,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":20401,"t":"code","b":[174,61,98],"m":"ldx","o":"a_623D","oa":25149},{"a":20404,"t":"code","b":[173,62,98],"m":"lda","o":"a_623E","oa":25150},{"a":20407,"t":"code","b":[32,164,8],"m":"jsr","o":"object_or_actor_xy","oa":2212},{"a":20410,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":20412,"t":"code","b":[208,1],"m":"bne","o":"b_4FBF","oa":20415},{"a":20414,"t":"code","b":[96],"m":"rts"},{"a":20415,"l":"b_4FBF","t":"code","b":[173,24,252],"m":"lda","o":"a_FC18","oa":64536,"x":[20412]},{"a":20418,"t":"code","b":[133,29],"m":"sta","o":"zpa_1D","oa":29},{"a":20420,"t":"code","b":[173,25,252],"m":"lda","o":"a_FC19","oa":64537},{"a":20423,"t":"code","b":[133,30],"m":"sta","o":"zpa_1E","oa":30},{"a":20425,"t":"code","b":[165,29],"m":"lda","o":"zpa_1D","oa":29},{"a":20427,"t":"code","b":[56],"m":"sec"},{"a":20428,"t":"code","b":[229,27],"m":"sbc","o":"zpa_1B","oa":27},{"a":20430,"t":"code","b":[176,5],"m":"bcs","o":"b_4FD5","oa":20437},{"a":20432,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":20434,"t":"code","b":[24],"m":"clc"},{"a":20435,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":20437,"l":"b_4FD5","t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27,"x":[20430]},{"a":20439,"t":"code","b":[165,30],"m":"lda","o":"zpa_1E","oa":30},{"a":20441,"t":"code","b":[56],"m":"sec"},{"a":20442,"t":"code","b":[229,28],"m":"sbc","o":"zpa_1C","oa":28},{"a":20444,"t":"code","b":[176,5],"m":"bcs","o":"b_4FE3","oa":20451},{"a":20446,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":20448,"t":"code","b":[24],"m":"clc"},{"a":20449,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":20451,"l":"b_4FE3","t":"code","b":[197,27],"m":"cmp","o":"zpa_1B","oa":27,"x":[20444]},{"a":20453,"t":"code","b":[176,2],"m":"bcs","o":"r_4FE9","oa":20457},{"a":20455,"t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27},{"a":20457,"l":"r_4FE9","t":"code","b":[96],"m":"rts","x":[20453]},{"a":20458,"l":"count_script_delays","c":"For every slot from 19 down to 1 whose status is 1 (delayed), counts its three-byte delay ($68B6, $68A2, $688E) up by one; when it reaches zero the slot runs again (status 2)","t":"code","b":[162,19],"m":"ldx","o":"#$13","x":[4829]},{"a":20460,"l":"b_4FEC","t":"code","b":[189,122,104],"m":"lda","o":"f_687A,x","oa":26746,"x":[20488]},{"a":20463,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":20465,"t":"code","b":[208,20],"m":"bne","o":"b_5007","oa":20487},{"a":20467,"t":"code","b":[254,182,104],"m":"inc","o":"f_68B6,x","oa":26806},{"a":20470,"t":"code","b":[208,15],"m":"bne","o":"b_5007","oa":20487},{"a":20472,"t":"code","b":[254,162,104],"m":"inc","o":"f_68A2,x","oa":26786},{"a":20475,"t":"code","b":[208,10],"m":"bne","o":"b_5007","oa":20487},{"a":20477,"t":"code","b":[254,142,104],"m":"inc","o":"f_688E,x","oa":26766},{"a":20480,"t":"code","b":[208,5],"m":"bne","o":"b_5007","oa":20487},{"a":20482,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":20484,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":20487,"l":"b_5007","t":"code","b":[202],"m":"dex","x":[20465,20470,20475,20480]},{"a":20488,"t":"code","b":[208,226],"m":"bne","o":"b_4FEC","oa":20460},{"a":20490,"t":"code","b":[96],"m":"rts"},{"a":20491,"l":"op_begin_override","c":"Opcode $58, beginOverride: keeps where the script will go on (its offset after this opcode, $FF6D/$FF6E) and the slot ($FF70), so that a key press can skip a cut-scene to there; then steps over the jump that follows","t":"code","b":[173,191,76],"m":"lda","o":"script_byte_lo","oa":19647},{"a":20494,"t":"code","b":[56],"m":"sec"},{"a":20495,"t":"code","b":[237,42,252],"m":"sbc","o":"script_base","oa":64554},{"a":20498,"t":"code","b":[141,109,255],"m":"sta","o":"a_FF6D","oa":65389},{"a":20501,"t":"code","b":[173,192,76],"m":"lda","o":"script_byte_hi","oa":19648},{"a":20504,"t":"code","b":[237,43,252],"m":"sbc","o":"a_FC2B","oa":64555},{"a":20507,"t":"code","b":[141,110,255],"m":"sta","o":"a_FF6E","oa":65390},{"a":20510,"t":"code","b":[173,81,104],"m":"lda","o":"current_slot","oa":26705},{"a":20513,"t":"code","b":[141,112,255],"m":"sta","o":"a_FF70","oa":65392},{"a":20516,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":20519,"t":"code","b":[32,187,76],"m":"jsr","o":"fetch_script_word_skip","oa":19643},{"a":20522,"t":"code","b":[96],"m":"rts"},{"a":20523,"l":"op_jump_relative","c":"Opcode $18, jumpRelative, and the jump that every condition opcode takes: reads a 16-bit offset and adds it to the script pointer","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646,"x":[20903,20921,20933,20946,20959,20970,20981,20992,21023,21036,21123,21138]},{"a":20526,"t":"code","b":[133,191],"m":"sta","o":"zpa_BF","oa":191},{"a":20528,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":20531,"t":"code","b":[133,192],"m":"sta","o":"zpa_C0","oa":192},{"a":20533,"t":"code","b":[173,191,76],"m":"lda","o":"script_byte_lo","oa":19647},{"a":20536,"t":"code","b":[24],"m":"clc"},{"a":20537,"t":"code","b":[101,191],"m":"adc","o":"zpa_BF","oa":191},{"a":20539,"t":"code","b":[141,191,76],"m":"sta","o":"script_byte_lo","oa":19647},{"a":20542,"t":"code","b":[173,192,76],"m":"lda","o":"script_byte_hi","oa":19648},{"a":20545,"t":"code","b":[101,192],"m":"adc","o":"zpa_C0","oa":192},{"a":20547,"t":"code","b":[141,192,76],"m":"sta","o":"script_byte_hi","oa":19648},{"a":20550,"t":"code","b":[96],"m":"rts"},{"a":20551,"l":"op_stop_object_code","c":"Opcodes $00 and $A0, stopObjectCode: a global script stops itself with stop_script, which ends every copy of it; any other kind of script frees its slot. No slot is current afterwards","t":"code","b":[174,81,104],"m":"ldx","o":"current_slot","oa":26705,"x":[21075]},{"a":20554,"t":"code","b":[189,202,104],"m":"lda","o":"f_68CA,x","oa":26826},{"a":20557,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":20559,"t":"code","b":[208,9],"m":"bne","o":"b_505A","oa":20570},{"a":20561,"t":"code","b":[189,222,104],"m":"lda","o":"f_68DE,x","oa":26846},{"a":20564,"t":"code","b":[32,77,77],"m":"jsr","o":"stop_script","oa":19789},{"a":20567,"t":"code","b":[76,95,80],"m":"jmp","o":"j_505F","oa":20575},{"a":20570,"l":"b_505A","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[20559]},{"a":20572,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":20575,"l":"j_505F","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[20567]},{"a":20577,"t":"code","b":[141,81,104],"m":"sta","o":"current_slot","oa":26705},{"a":20580,"t":"code","b":[96],"m":"rts"},{"a":20581,"l":"op_wait_for_message","c":"Opcode $AE, waitForMessage: while a message is being shown (variable 3, $FE71, not zero) steps the script back onto this opcode and yields, so it runs again next frame","t":"code","b":[173,113,254],"m":"lda","o":"a_FE71","oa":65137},{"a":20584,"t":"code","b":[240,20],"m":"beq","o":"r_507E","oa":20606},{"a":20586,"t":"code","b":[56],"m":"sec"},{"a":20587,"t":"code","b":[173,191,76],"m":"lda","o":"script_byte_lo","oa":19647},{"a":20590,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":20592,"t":"code","b":[141,191,76],"m":"sta","o":"script_byte_lo","oa":19647},{"a":20595,"t":"code","b":[173,192,76],"m":"lda","o":"script_byte_hi","oa":19648},{"a":20598,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":20600,"t":"code","b":[141,192,76],"m":"sta","o":"script_byte_hi","oa":19648},{"a":20603,"t":"code","b":[76,206,80],"m":"jmp","o":"op_break_here","oa":20686},{"a":20606,"l":"r_507E","t":"code","b":[96],"m":"rts","x":[20584]},{"a":20607,"l":"op_wait_for_sentence","c":"Opcode $4C, waitForSentence: returns at once when no sentence is queued ($094D is $FF) and the sentence script, global script 2, is not running ($76F6); otherwise steps back onto this opcode and yields","t":"code","b":[173,77,9],"m":"lda","o":"a_094D","oa":2381},{"a":20610,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":20612,"t":"code","b":[208,8],"m":"bne","o":"b_508E","oa":20622},{"a":20614,"t":"code","b":[173,246,118],"m":"lda","o":"a_76F6","oa":30454},{"a":20617,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":20619,"t":"code","b":[208,1],"m":"bne","o":"b_508E","oa":20622},{"a":20621,"t":"code","b":[96],"m":"rts"},{"a":20622,"l":"b_508E","t":"code","b":[56],"m":"sec","x":[20612,20619]},{"a":20623,"t":"code","b":[173,191,76],"m":"lda","o":"script_byte_lo","oa":19647},{"a":20626,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":20628,"t":"code","b":[141,191,76],"m":"sta","o":"script_byte_lo","oa":19647},{"a":20631,"t":"code","b":[173,192,76],"m":"lda","o":"script_byte_hi","oa":19648},{"a":20634,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":20636,"t":"code","b":[141,192,76],"m":"sta","o":"script_byte_hi","oa":19648},{"a":20639,"t":"code","b":[76,206,80],"m":"jmp","o":"op_break_here","oa":20686},{"a":20642,"c":"An RTS after the JMP at $509F: never reached","t":"code","b":[96],"m":"rts"},{"a":20643,"l":"op_wait_for_actor","c":"Opcodes $3B and $BB, waitForActor: reads an actor number; while that actor is walking ($FCF6 for its walk record, $FD56) steps back onto this opcode and yields","t":"code","b":[173,191,76],"m":"lda","o":"script_byte_lo","oa":19647},{"a":20646,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":20648,"t":"code","b":[173,192,76],"m":"lda","o":"script_byte_hi","oa":19648},{"a":20651,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":20653,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":20656,"t":"code","b":[170],"m":"tax"},{"a":20657,"t":"code","b":[188,86,253],"m":"ldy","o":"f_FD56,x","oa":64854},{"a":20660,"t":"code","b":[48,23],"m":"bmi","o":"r_50CD","oa":20685},{"a":20662,"t":"code","b":[185,246,252],"m":"lda","o":"f_FCF6,y","oa":64758},{"a":20665,"t":"code","b":[240,18],"m":"beq","o":"r_50CD","oa":20685},{"a":20667,"t":"code","b":[56],"m":"sec"},{"a":20668,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":20670,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":20672,"t":"code","b":[141,191,76],"m":"sta","o":"script_byte_lo","oa":19647},{"a":20675,"t":"code","b":[165,22],"m":"lda","o":"zpa_16","oa":22},{"a":20677,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":20679,"t":"code","b":[141,192,76],"m":"sta","o":"script_byte_hi","oa":19648},{"a":20682,"t":"code","b":[76,206,80],"m":"jmp","o":"op_break_here","oa":20686},{"a":20685,"l":"r_50CD","t":"code","b":[96],"m":"rts","x":[20660,20665]},{"a":20686,"l":"op_break_here","c":"Opcode $80, breakHere, and how every wait yields: saves the slot's offset and leaves no slot current, so the interpreter loop returns","t":"code","b":[32,162,76],"m":"jsr","o":"save_script_offset","oa":19618,"x":[20603,20639,20682,22390,22419]},{"a":20689,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":20691,"t":"code","b":[141,81,104],"m":"sta","o":"current_slot","oa":26705},{"a":20694,"t":"code","b":[96],"m":"rts"},{"a":20695,"l":"op_assign_var_word_indirect","c":"Opcodes $0A and $8A: the variable named by a variable gets a word or variable value","t":"code","b":[32,43,79],"m":"jsr","o":"read_indirect_result","oa":20267},{"a":20698,"t":"code","b":[76,29,81],"m":"jmp","o":"j_511D","oa":20765},{"a":20701,"l":"op_set_var_range","c":"Opcodes $26 and $A6, setVarRange: reads a first variable and a count, then that many values, words when bit 7 of the opcode is set and bytes when it is clear, into consecutive variables","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":20704,"t":"code","b":[172,23,98],"m":"ldy","o":"a_6217","oa":25111},{"a":20707,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":20710,"t":"code","b":[170],"m":"tax"},{"a":20711,"l":"b_50E7","t":"code","b":[173,44,252],"m":"lda","o":"current_opcode","oa":64556,"x":[20750]},{"a":20714,"t":"code","b":[16,13],"m":"bpl","o":"b_50F9","oa":20729},{"a":20716,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":20719,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":20721,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":20724,"t":"code","b":[133,190],"m":"sta","o":"zpa_BE","oa":190},{"a":20726,"t":"code","b":[76,2,81],"m":"jmp","o":"j_5102","oa":20738},{"a":20729,"l":"b_50F9","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646,"x":[20714]},{"a":20732,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":20734,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":20736,"t":"code","b":[133,190],"m":"sta","o":"zpa_BE","oa":190},{"a":20738,"l":"j_5102","t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189,"x":[20726]},{"a":20740,"t":"code","b":[153,110,254],"m":"sta","o":"a_FE6E,y","oa":65134},{"a":20743,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":20745,"t":"code","b":[153,111,253],"m":"sta","o":"f_FD6F,y","oa":64879},{"a":20748,"t":"code","b":[200],"m":"iny"},{"a":20749,"t":"code","b":[202],"m":"dex"},{"a":20750,"t":"code","b":[208,215],"m":"bne","o":"b_50E7","oa":20711},{"a":20752,"t":"code","b":[96],"m":"rts"},{"a":20753,"l":"op_assign_var_byte","c":"Opcode $2C: a variable gets a byte from the script","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":20756,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":20759,"t":"code","b":[76,32,81],"m":"jmp","o":"store_result","oa":20768},{"a":20762,"l":"op_move","c":"Opcodes $1A and $9A, move: a variable gets a word or a variable's value","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":20765,"l":"j_511D","t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244,"x":[20698]},{"a":20768,"l":"store_result","c":"Stores $6215/$6216 in the result variable ($6217)","t":"code","b":[174,23,98],"m":"ldx","o":"a_6217","oa":25111,"x":[20335,20759,20856,20888,24959]},{"a":20771,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":20774,"t":"code","b":[157,110,254],"m":"sta","o":"a_FE6E,x","oa":65134},{"a":20777,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":20780,"t":"code","b":[157,111,253],"m":"sta","o":"f_FD6F,x","oa":64879},{"a":20783,"t":"code","b":[96],"m":"rts"},{"a":20784,"l":"op_increment","c":"Opcode $46: adds one to a variable","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":20787,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":20789,"t":"code","b":[141,21,98],"m":"sta","o":"a_6215","oa":25109},{"a":20792,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":20794,"t":"code","b":[141,22,98],"m":"sta","o":"a_6216","oa":25110},{"a":20797,"t":"code","b":[76,98,81],"m":"jmp","o":"j_5162","oa":20834},{"a":20800,"l":"op_decrement","c":"Opcode $C6: takes one from a variable","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":20803,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":20805,"t":"code","b":[141,21,98],"m":"sta","o":"a_6215","oa":25109},{"a":20808,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":20810,"t":"code","b":[141,22,98],"m":"sta","o":"a_6216","oa":25110},{"a":20813,"t":"code","b":[76,130,81],"m":"jmp","o":"j_5182","oa":20866},{"a":20816,"l":"op_add_indirect","c":"Opcodes $2A and $AA: adds a word or variable to the variable a variable names","t":"code","b":[32,43,79],"m":"jsr","o":"read_indirect_result","oa":20267},{"a":20819,"t":"code","b":[76,95,81],"m":"jmp","o":"j_515F","oa":20831},{"a":20822,"l":"op_sub_indirect","c":"Opcodes $6A and $EA: takes a word or variable from the variable a variable names","t":"code","b":[32,43,79],"m":"jsr","o":"read_indirect_result","oa":20267},{"a":20825,"t":"code","b":[76,127,81],"m":"jmp","o":"j_517F","oa":20863},{"a":20828,"l":"op_add","c":"Opcodes $5A and $DA, add: adds a word or variable to a variable","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":20831,"l":"j_515F","t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244,"x":[20819]},{"a":20834,"l":"j_5162","t":"code","b":[174,23,98],"m":"ldx","o":"a_6217","oa":25111,"x":[20797]},{"a":20837,"t":"code","b":[189,110,254],"m":"lda","o":"a_FE6E,x","oa":65134},{"a":20840,"t":"code","b":[24],"m":"clc"},{"a":20841,"t":"code","b":[109,21,98],"m":"adc","o":"a_6215","oa":25109},{"a":20844,"t":"code","b":[141,21,98],"m":"sta","o":"a_6215","oa":25109},{"a":20847,"t":"code","b":[189,111,253],"m":"lda","o":"f_FD6F,x","oa":64879},{"a":20850,"t":"code","b":[109,22,98],"m":"adc","o":"a_6216","oa":25110},{"a":20853,"t":"code","b":[141,22,98],"m":"sta","o":"a_6216","oa":25110},{"a":20856,"t":"code","b":[32,32,81],"m":"jsr","o":"store_result","oa":20768},{"a":20859,"t":"code","b":[96],"m":"rts"},{"a":20860,"l":"op_subtract","c":"Opcodes $3A and $BA, subtract: takes a word or variable from a variable","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":20863,"l":"j_517F","t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244,"x":[20825]},{"a":20866,"l":"j_5182","t":"code","b":[174,23,98],"m":"ldx","o":"a_6217","oa":25111,"x":[20813]},{"a":20869,"t":"code","b":[189,110,254],"m":"lda","o":"a_FE6E,x","oa":65134},{"a":20872,"t":"code","b":[56],"m":"sec"},{"a":20873,"t":"code","b":[237,21,98],"m":"sbc","o":"a_6215","oa":25109},{"a":20876,"t":"code","b":[141,21,98],"m":"sta","o":"a_6215","oa":25109},{"a":20879,"t":"code","b":[189,111,253],"m":"lda","o":"f_FD6F,x","oa":64879},{"a":20882,"t":"code","b":[237,22,98],"m":"sbc","o":"a_6216","oa":25110},{"a":20885,"t":"code","b":[141,22,98],"m":"sta","o":"a_6216","oa":25110},{"a":20888,"t":"code","b":[32,32,81],"m":"jsr","o":"store_result","oa":20768},{"a":20891,"t":"code","b":[96],"m":"rts"},{"a":20892,"l":"op_equal_zero","c":"Opcode $28: goes on to the next opcode when the variable is zero, and takes the jump that follows when it is not","t":"code","b":[32,229,78],"m":"jsr","o":"read_var","oa":20197},{"a":20895,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":20898,"t":"code","b":[13,22,98],"m":"ora","o":"a_6216","oa":25110},{"a":20901,"t":"code","b":[240,3],"m":"beq","o":"b_51AA","oa":20906},{"a":20903,"t":"code","b":[76,43,80],"m":"jmp","o":"op_jump_relative","oa":20523},{"a":20906,"l":"b_51AA","t":"code","b":[32,187,76],"m":"jsr","o":"fetch_script_word_skip","oa":19643,"x":[20901]},{"a":20909,"t":"code","b":[96],"m":"rts"},{"a":20910,"l":"op_not_equal_zero","c":"Opcode $A8: goes on when the variable is not zero, and jumps when it is","t":"code","b":[32,229,78],"m":"jsr","o":"read_var","oa":20197},{"a":20913,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":20916,"t":"code","b":[13,22,98],"m":"ora","o":"a_6216","oa":25110},{"a":20919,"t":"code","b":[208,3],"m":"bne","o":"b_51BC","oa":20924},{"a":20921,"t":"code","b":[76,43,80],"m":"jmp","o":"op_jump_relative","oa":20523},{"a":20924,"l":"b_51BC","t":"code","b":[32,187,76],"m":"jsr","o":"fetch_script_word_skip","oa":19643,"x":[20919]},{"a":20927,"t":"code","b":[96],"m":"rts"},{"a":20928,"l":"op_is_less_equal","c":"Opcodes $38 and $B8: goes on when the operand is less than or equal to the variable, and jumps otherwise","t":"code","b":[32,163,78],"m":"jsr","o":"compare_var_with_operand","oa":20131},{"a":20931,"t":"code","b":[176,3],"m":"bcs","o":"b_51C8","oa":20936},{"a":20933,"t":"code","b":[76,43,80],"m":"jmp","o":"op_jump_relative","oa":20523},{"a":20936,"l":"b_51C8","t":"code","b":[76,187,76],"m":"jmp","o":"fetch_script_word_skip","oa":19643,"x":[20931]},{"a":20939,"l":"op_is_greater_equal","c":"Opcodes $04 and $84: goes on when the operand is greater than or equal to the variable, and jumps otherwise","t":"code","b":[32,163,78],"m":"jsr","o":"compare_var_with_operand","oa":20131},{"a":20942,"t":"code","b":[144,5],"m":"bcc","o":"b_51D5","oa":20949},{"a":20944,"t":"code","b":[240,3],"m":"beq","o":"b_51D5","oa":20949},{"a":20946,"t":"code","b":[76,43,80],"m":"jmp","o":"op_jump_relative","oa":20523},{"a":20949,"l":"b_51D5","t":"code","b":[76,187,76],"m":"jmp","o":"fetch_script_word_skip","oa":19643,"x":[20942,20944]},{"a":20952,"l":"op_is_less","c":"Opcodes $44 and $C4: goes on when the operand is less than the variable, and jumps otherwise","t":"code","b":[32,163,78],"m":"jsr","o":"compare_var_with_operand","oa":20131},{"a":20955,"t":"code","b":[240,2],"m":"beq","o":"b_51DF","oa":20959},{"a":20957,"t":"code","b":[176,3],"m":"bcs","o":"b_51E2","oa":20962},{"a":20959,"l":"b_51DF","t":"code","b":[76,43,80],"m":"jmp","o":"op_jump_relative","oa":20523,"x":[20955]},{"a":20962,"l":"b_51E2","t":"code","b":[76,187,76],"m":"jmp","o":"fetch_script_word_skip","oa":19643,"x":[20957]},{"a":20965,"l":"op_is_greater","c":"Opcodes $78 and $F8: goes on when the operand is greater than the variable, and jumps otherwise","t":"code","b":[32,163,78],"m":"jsr","o":"compare_var_with_operand","oa":20131},{"a":20968,"t":"code","b":[144,3],"m":"bcc","o":"b_51ED","oa":20973},{"a":20970,"t":"code","b":[76,43,80],"m":"jmp","o":"op_jump_relative","oa":20523},{"a":20973,"l":"b_51ED","t":"code","b":[76,187,76],"m":"jmp","o":"fetch_script_word_skip","oa":19643,"x":[20968]},{"a":20976,"l":"op_is_not_equal","c":"Opcodes $08 and $88: goes on when the operand and the variable differ, and jumps when they are equal","t":"code","b":[32,163,78],"m":"jsr","o":"compare_var_with_operand","oa":20131},{"a":20979,"t":"code","b":[208,3],"m":"bne","o":"b_51F8","oa":20984},{"a":20981,"t":"code","b":[76,43,80],"m":"jmp","o":"op_jump_relative","oa":20523},{"a":20984,"l":"b_51F8","t":"code","b":[76,187,76],"m":"jmp","o":"fetch_script_word_skip","oa":19643,"x":[20979]},{"a":20987,"l":"op_is_equal","c":"Opcodes $48 and $C8: goes on when they are equal, and jumps when they differ","t":"code","b":[32,163,78],"m":"jsr","o":"compare_var_with_operand","oa":20131},{"a":20990,"t":"code","b":[240,3],"m":"beq","o":"b_5203","oa":20995},{"a":20992,"t":"code","b":[76,43,80],"m":"jmp","o":"op_jump_relative","oa":20523},{"a":20995,"l":"b_5203","t":"code","b":[76,187,76],"m":"jmp","o":"fetch_script_word_skip","oa":19643,"x":[20990]},{"a":20998,"l":"op_if_class_of_is","c":"Opcodes $1D, $5D, $9D and $DD: reads an object and a mask of class bits; goes on when the object is in memory and has every bit of the mask in its byte 6, and jumps when it is missing or lacks one","t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244},{"a":21001,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":21004,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":21006,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":21009,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":21011,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":21014,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":21016,"t":"code","b":[32,107,7],"m":"jsr","o":"find_object_in_15","oa":1899},{"a":21019,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":21021,"t":"code","b":[208,3],"m":"bne","o":"b_5222","oa":21026},{"a":21023,"t":"code","b":[76,43,80],"m":"jmp","o":"op_jump_relative","oa":20523},{"a":21026,"l":"b_5222","t":"code","b":[160,6],"m":"ldy","o":"#$06","x":[21021]},{"a":21028,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":21030,"t":"code","b":[37,189],"m":"and","o":"zpa_BD","oa":189},{"a":21032,"t":"code","b":[197,189],"m":"cmp","o":"zpa_BD","oa":189},{"a":21034,"t":"code","b":[240,3],"m":"beq","o":"b_522F","oa":21039},{"a":21036,"t":"code","b":[76,43,80],"m":"jmp","o":"op_jump_relative","oa":20523},{"a":21039,"l":"b_522F","t":"code","b":[32,187,76],"m":"jsr","o":"fetch_script_word_skip","oa":19643,"x":[21034]},{"a":21042,"t":"code","b":[96],"m":"rts"},{"a":21043,"l":"op_stop_script","c":"Opcodes $62 and $E2, stopScript: reads a script number, 0 meaning the current slot's own; a global script stopping itself (in any slot but 0) ends as stopObjectCode does, and any other is stopped wherever it runs with stop_script","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":21046,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":21048,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":21050,"t":"code","b":[208,6],"m":"bne","o":"b_5242","oa":21058},{"a":21052,"t":"code","b":[174,81,104],"m":"ldx","o":"current_slot","oa":26705},{"a":21055,"t":"code","b":[189,222,104],"m":"lda","o":"f_68DE,x","oa":26846},{"a":21058,"l":"b_5242","t":"code","b":[174,81,104],"m":"ldx","o":"current_slot","oa":26705,"x":[21050]},{"a":21061,"t":"code","b":[240,15],"m":"beq","o":"b_5256","oa":21078},{"a":21063,"t":"code","b":[221,222,104],"m":"cmp","o":"f_68DE,x","oa":26846},{"a":21066,"t":"code","b":[208,10],"m":"bne","o":"b_5256","oa":21078},{"a":21068,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":21070,"t":"code","b":[221,202,104],"m":"cmp","o":"f_68CA,x","oa":26826},{"a":21073,"t":"code","b":[208,3],"m":"bne","o":"b_5256","oa":21078},{"a":21075,"t":"code","b":[76,71,80],"m":"jmp","o":"op_stop_object_code","oa":20551},{"a":21078,"l":"b_5256","t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189,"x":[21061,21066,21073]},{"a":21080,"t":"code","b":[32,77,77],"m":"jsr","o":"stop_script","oa":19789},{"a":21083,"t":"code","b":[96],"m":"rts"},{"a":21084,"l":"op_start_script","c":"Opcodes $42 and $C2, startScript: starts the global script whose number is the operand (start_script), which runs at once, nested in this one","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":21087,"t":"code","b":[32,159,77],"m":"jsr","o":"start_script","oa":19871},{"a":21090,"t":"code","b":[96],"m":"rts"},{"a":21091,"l":"op_chain_script","c":"Opcodes $4A and $CA, chainScript: stops the script this slot runs, leaves no slot current and starts the script named by the operand in its place","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":21094,"t":"code","b":[72],"m":"pha"},{"a":21095,"t":"code","b":[174,81,104],"m":"ldx","o":"current_slot","oa":26705},{"a":21098,"t":"code","b":[189,222,104],"m":"lda","o":"f_68DE,x","oa":26846},{"a":21101,"t":"code","b":[32,77,77],"m":"jsr","o":"stop_script","oa":19789},{"a":21104,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":21106,"t":"code","b":[141,81,104],"m":"sta","o":"current_slot","oa":26705},{"a":21109,"t":"code","b":[104],"m":"pla"},{"a":21110,"t":"code","b":[32,159,77],"m":"jsr","o":"start_script","oa":19871},{"a":21113,"t":"code","b":[96],"m":"rts"},{"a":21114,"l":"if_state_set_common","c":"The object state tests that go on when the bit in A is set in the object's byte (read_object_flags) and take the jump when it is clear","t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189,"x":[21150,21158,21162,21174]},{"a":21116,"t":"code","b":[32,61,79],"m":"jsr","o":"read_object_flags","oa":20285},{"a":21119,"t":"code","b":[37,189],"m":"and","o":"zpa_BD","oa":189},{"a":21121,"t":"code","b":[208,3],"m":"bne","o":"b_5286","oa":21126},{"a":21123,"t":"code","b":[76,43,80],"m":"jmp","o":"op_jump_relative","oa":20523},{"a":21126,"l":"b_5286","t":"code","b":[76,187,76],"m":"jmp","o":"fetch_script_word_skip","oa":19643,"x":[21121]},{"a":21129,"l":"if_state_clear_common","c":"The tests that go on when the bit in A is clear and jump when it is set","t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189,"x":[21146,21154,21166,21170]},{"a":21131,"t":"code","b":[32,61,79],"m":"jsr","o":"read_object_flags","oa":20285},{"a":21134,"t":"code","b":[37,189],"m":"and","o":"zpa_BD","oa":189},{"a":21136,"t":"code","b":[240,3],"m":"beq","o":"b_5295","oa":21141},{"a":21138,"t":"code","b":[76,43,80],"m":"jmp","o":"op_jump_relative","oa":20523},{"a":21141,"l":"b_5295","t":"code","b":[76,187,76],"m":"jmp","o":"fetch_script_word_skip","oa":19643,"x":[21136]},{"a":21144,"l":"op_if_state_80_clear","c":"Opcodes $0F and $8F: go on when bit 7 of the object's byte is clear (ScummVM's ifStateIntrinsicOn, whose jump is taken when the bit is set)","t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":21146,"t":"code","b":[208,237],"m":"bne","o":"if_state_clear_common","oa":21129},{"a":21148,"l":"op_if_state_80_set","c":"Opcodes $4F and $CF: go on when bit 7 is set (ScummVM's ifStateIntrinsicOff)","t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":21150,"t":"code","b":[208,218],"m":"bne","o":"if_state_set_common","oa":21114},{"a":21152,"l":"op_if_state_40_clear","c":"Opcodes $2F and $AF: go on when bit 6 is clear (ScummVM's ifStateLocked)","t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":21154,"t":"code","b":[208,229],"m":"bne","o":"if_state_clear_common","oa":21129},{"a":21156,"l":"op_if_state_40_set","c":"Opcodes $6F and $EF: go on when bit 6 is set (ScummVM's ifStateUnlocked)","t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":21158,"t":"code","b":[208,210],"m":"bne","o":"if_state_set_common","oa":21114},{"a":21160,"l":"op_if_state_20_set","c":"Opcodes $1F and $9F: go on when bit 5 is set (ScummVM's ifStateTouchable)","t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":21162,"t":"code","b":[208,206],"m":"bne","o":"if_state_set_common","oa":21114},{"a":21164,"l":"op_if_state_20_clear","c":"Opcodes $5F and $DF: go on when bit 5 is clear (ScummVM's ifStateUntouchable)","t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":21166,"t":"code","b":[208,217],"m":"bne","o":"if_state_clear_common","oa":21129},{"a":21168,"l":"op_if_state_10_clear","c":"Opcodes $3F and $BF: go on when bit 4 is clear (ScummVM's ifStatePickupable)","t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":21170,"t":"code","b":[208,213],"m":"bne","o":"if_state_clear_common","oa":21129},{"a":21172,"l":"op_if_state_10_set","c":"Opcodes $7F and $FF: go on when bit 4 is set (ScummVM's ifStateUnpickupable)","t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":21174,"t":"code","b":[208,194],"m":"bne","o":"if_state_set_common","oa":21114},{"a":21176,"l":"clear_state_common","c":"Clears the bits A leaves clear in the object's byte: ANDs it with A and writes it back","t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189,"x":[21224,21232,21240,21248]},{"a":21178,"t":"code","b":[32,61,79],"m":"jsr","o":"read_object_flags","oa":20285},{"a":21181,"t":"code","b":[37,189],"m":"and","o":"zpa_BD","oa":189},{"a":21183,"t":"code","b":[32,85,79],"m":"jsr","o":"write_object_byte","oa":20309},{"a":21186,"t":"code","b":[96],"m":"rts"},{"a":21187,"l":"set_state_common","c":"Sets the bits of A in the object's byte","t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189,"x":[21210,21228,21236,21244]},{"a":21189,"t":"code","b":[32,61,79],"m":"jsr","o":"read_object_flags","oa":20285},{"a":21192,"t":"code","b":[5,189],"m":"ora","o":"zpa_BD","oa":189},{"a":21194,"t":"code","b":[32,85,79],"m":"jsr","o":"write_object_byte","oa":20309},{"a":21197,"t":"code","b":[96],"m":"rts"},{"a":21198,"l":"op_set_state_80","c":"Opcodes $07 and $87: sets bit 7 of the object's byte (in the room, an object that shows) and has the room redrawn ($CBC3 = $C8, and the list of objects to draw, $33BA, emptied)","t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":21200,"t":"code","b":[141,195,203],"m":"sta","o":"camera_drawn","oa":52163},{"a":21203,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":21205,"t":"code","b":[141,186,51],"m":"sta","o":"a_33BA","oa":13242},{"a":21208,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":21210,"t":"code","b":[208,231],"m":"bne","o":"set_state_common","oa":21187},{"a":21212,"l":"op_clear_state_80","c":"Opcodes $47 and $C7: clears bit 7 and has the room redrawn, as op_set_state_80","t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":21214,"t":"code","b":[141,195,203],"m":"sta","o":"camera_drawn","oa":52163},{"a":21217,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":21219,"t":"code","b":[141,186,51],"m":"sta","o":"a_33BA","oa":13242},{"a":21222,"t":"code","b":[169,127],"m":"lda","o":"#$7F"},{"a":21224,"t":"code","b":[208,206],"m":"bne","o":"clear_state_common","oa":21176},{"a":21226,"l":"op_set_state_40","c":"Opcodes $27 and $A7: sets bit 6 of the object's byte","t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":21228,"t":"code","b":[208,213],"m":"bne","o":"set_state_common","oa":21187},{"a":21230,"l":"op_clear_state_40","c":"Opcodes $67 and $E7: clears bit 6","t":"code","b":[169,191],"m":"lda","o":"#$BF"},{"a":21232,"t":"code","b":[208,198],"m":"bne","o":"clear_state_common","oa":21176},{"a":21234,"l":"op_set_state_20","c":"Opcodes $57 and $D7: sets bit 5","t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":21236,"t":"code","b":[208,205],"m":"bne","o":"set_state_common","oa":21187},{"a":21238,"l":"op_clear_state_20","c":"Opcodes $17 and $97: clears bit 5","t":"code","b":[169,223],"m":"lda","o":"#$DF"},{"a":21240,"t":"code","b":[208,190],"m":"bne","o":"clear_state_common","oa":21176},{"a":21242,"l":"op_set_state_10","c":"Opcodes $37 and $B7: sets bit 4","t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":21244,"t":"code","b":[208,197],"m":"bne","o":"set_state_common","oa":21187},{"a":21246,"l":"op_clear_state_10","c":"Opcodes $77 and $F7: clears bit 4","t":"code","b":[169,239],"m":"lda","o":"#$EF"},{"a":21248,"t":"code","b":[208,182],"m":"bne","o":"clear_state_common","oa":21176},{"a":21250,"l":"op_draw_object","c":"Opcodes $05, $25 ... $E5, drawObject: reads an object, an X and a Y (each a byte or a variable, by bits 6 and 5); when the object is in the room, an X of other than $FF moves it there (its walk-to point moves by the same amount), it goes on the list of objects to draw ($33BB, counted in $33BA), every other room object of the same position and size loses bit 7, and this one gets it","t":"code","b":[32,61,79],"m":"jsr","o":"read_object_flags","oa":20285},{"a":21253,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":21256,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":21258,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":21260,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":21263,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":21265,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":21267,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":21270,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":21273,"t":"code","b":[32,192,78],"m":"jsr","o":"read_byte_operand_20","oa":20160},{"a":21276,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":21279,"t":"code","b":[32,107,7],"m":"jsr","o":"find_object_in_15","oa":1899},{"a":21282,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":21284,"t":"code","b":[240,3],"m":"beq","o":"b_5329","oa":21289},{"a":21286,"t":"code","b":[76,190,83],"m":"jmp","o":"r_53BE","oa":21438},{"a":21289,"l":"b_5329","t":"code","b":[173,24,252],"m":"lda","o":"a_FC18","oa":64536,"x":[21284]},{"a":21292,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":21294,"t":"code","b":[240,40],"m":"beq","o":"b_5358","oa":21336},{"a":21296,"t":"code","b":[185,163,105],"m":"lda","o":"f_69A3,y","oa":27043},{"a":21299,"t":"code","b":[56],"m":"sec"},{"a":21300,"t":"code","b":[249,23,105],"m":"sbc","o":"f_6917,y","oa":26903},{"a":21303,"t":"code","b":[24],"m":"clc"},{"a":21304,"t":"code","b":[109,24,252],"m":"adc","o":"a_FC18","oa":64536},{"a":21307,"t":"code","b":[153,163,105],"m":"sta","o":"f_69A3,y","oa":27043},{"a":21310,"t":"code","b":[173,24,252],"m":"lda","o":"a_FC18","oa":64536},{"a":21313,"t":"code","b":[153,23,105],"m":"sta","o":"f_6917,y","oa":26903},{"a":21316,"t":"code","b":[185,198,105],"m":"lda","o":"f_69C6,y","oa":27078},{"a":21319,"t":"code","b":[56],"m":"sec"},{"a":21320,"t":"code","b":[249,58,105],"m":"sbc","o":"f_693A,y","oa":26938},{"a":21323,"t":"code","b":[24],"m":"clc"},{"a":21324,"t":"code","b":[109,25,252],"m":"adc","o":"a_FC19","oa":64537},{"a":21327,"t":"code","b":[153,198,105],"m":"sta","o":"f_69C6,y","oa":27078},{"a":21330,"t":"code","b":[173,25,252],"m":"lda","o":"a_FC19","oa":64537},{"a":21333,"t":"code","b":[153,58,105],"m":"sta","o":"f_693A,y","oa":26938},{"a":21336,"l":"b_5358","t":"code","b":[174,186,51],"m":"ldx","o":"a_33BA","oa":13242,"x":[21294]},{"a":21339,"t":"code","b":[152],"m":"tya"},{"a":21340,"t":"code","b":[157,187,51],"m":"sta","o":"f_33BB,x","oa":13243},{"a":21343,"t":"code","b":[238,186,51],"m":"inc","o":"a_33BA","oa":13242},{"a":21346,"t":"code","b":[185,23,105],"m":"lda","o":"f_6917,y","oa":26903},{"a":21349,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":21351,"t":"code","b":[185,58,105],"m":"lda","o":"f_693A,y","oa":26938},{"a":21354,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":21356,"t":"code","b":[185,93,105],"m":"lda","o":"f_695D,y","oa":26973},{"a":21359,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":21361,"t":"code","b":[185,128,105],"m":"lda","o":"f_6980,y","oa":27008},{"a":21364,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":21366,"t":"code","b":[174,22,105],"m":"ldx","o":"a_6916","oa":26902},{"a":21369,"l":"b_5379","t":"code","b":[189,23,105],"m":"lda","o":"f_6917,x","oa":26903,"x":[21418]},{"a":21372,"t":"code","b":[197,23],"m":"cmp","o":"zpa_17","oa":23},{"a":21374,"t":"code","b":[208,41],"m":"bne","o":"b_53A9","oa":21417},{"a":21376,"t":"code","b":[189,58,105],"m":"lda","o":"f_693A,x","oa":26938},{"a":21379,"t":"code","b":[197,24],"m":"cmp","o":"zpa_18","oa":24},{"a":21381,"t":"code","b":[208,34],"m":"bne","o":"b_53A9","oa":21417},{"a":21383,"t":"code","b":[189,93,105],"m":"lda","o":"f_695D,x","oa":26973},{"a":21386,"t":"code","b":[197,25],"m":"cmp","o":"zpa_19","oa":25},{"a":21388,"t":"code","b":[208,27],"m":"bne","o":"b_53A9","oa":21417},{"a":21390,"t":"code","b":[189,128,105],"m":"lda","o":"f_6980,x","oa":27008},{"a":21393,"t":"code","b":[197,26],"m":"cmp","o":"zpa_1A","oa":26},{"a":21395,"t":"code","b":[208,20],"m":"bne","o":"b_53A9","oa":21417},{"a":21397,"t":"code","b":[189,47,106],"m":"lda","o":"f_6A2F,x","oa":27183},{"a":21400,"t":"code","b":[141,21,98],"m":"sta","o":"a_6215","oa":25109},{"a":21403,"t":"code","b":[189,12,106],"m":"lda","o":"f_6A0C,x","oa":27148},{"a":21406,"t":"code","b":[141,22,98],"m":"sta","o":"a_6216","oa":25110},{"a":21409,"t":"code","b":[32,64,79],"m":"jsr","o":"read_object_byte","oa":20288},{"a":21412,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":21414,"t":"code","b":[32,85,79],"m":"jsr","o":"write_object_byte","oa":20309},{"a":21417,"l":"b_53A9","t":"code","b":[202],"m":"dex","x":[21374,21381,21388,21395]},{"a":21418,"t":"code","b":[16,205],"m":"bpl","o":"b_5379","oa":21369},{"a":21420,"t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27},{"a":21422,"t":"code","b":[141,21,98],"m":"sta","o":"a_6215","oa":25109},{"a":21425,"t":"code","b":[165,28],"m":"lda","o":"zpa_1C","oa":28},{"a":21427,"t":"code","b":[141,22,98],"m":"sta","o":"a_6216","oa":25110},{"a":21430,"t":"code","b":[32,64,79],"m":"jsr","o":"read_object_byte","oa":20288},{"a":21433,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":21435,"t":"code","b":[32,85,79],"m":"jsr","o":"write_object_byte","oa":20309},{"a":21438,"l":"r_53BE","t":"code","b":[96],"m":"rts","x":[21286]},{"a":21439,"l":"op_pickup_object","c":"Opcodes $50 and $D0, pickupObject: when the object is in the room, copies its record (its size in its first two bytes) into a new block in the heap ($D472), marks the copy (byte 2 = 1), files it in a free inventory slot ($679D numbers, $67D9/$6815 addresses; the slot goes in byte 3), gives the object to the current actor (variable 0) with bits 7 and 5 set, has the room redrawn and redraws the inventory","t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244},{"a":21442,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":21445,"t":"code","b":[133,131],"m":"sta","o":"zpa_83","oa":131},{"a":21447,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":21449,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":21452,"t":"code","b":[133,132],"m":"sta","o":"zpa_84","oa":132},{"a":21454,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":21456,"t":"code","b":[32,107,7],"m":"jsr","o":"find_object_in_15","oa":1899},{"a":21459,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":21461,"t":"code","b":[240,1],"m":"beq","o":"b_53D8","oa":21464},{"a":21463,"t":"code","b":[96],"m":"rts"},{"a":21464,"l":"b_53D8","t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21,"x":[21461]},{"a":21466,"t":"code","b":[133,133],"m":"sta","o":"zpa_85","oa":133},{"a":21468,"t":"code","b":[165,22],"m":"lda","o":"zpa_16","oa":22},{"a":21470,"t":"code","b":[133,134],"m":"sta","o":"zpa_86","oa":134},{"a":21472,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":21474,"t":"code","b":[177,133],"m":"lda","o":"(zpa_85),y","oa":133},{"a":21476,"t":"code","b":[133,137],"m":"sta","o":"zpa_89","oa":137},{"a":21478,"t":"code","b":[200],"m":"iny"},{"a":21479,"t":"code","b":[177,133],"m":"lda","o":"(zpa_85),y","oa":133},{"a":21481,"t":"code","b":[133,138],"m":"sta","o":"zpa_8A","oa":138},{"a":21483,"t":"code","b":[166,137],"m":"ldx","o":"zpa_89","oa":137},{"a":21485,"t":"code","b":[164,138],"m":"ldy","o":"zpa_8A","oa":138},{"a":21487,"t":"code","b":[32,114,212],"m":"jsr","o":"alloc_block","oa":54386},{"a":21490,"t":"code","b":[134,135],"m":"stx","o":"zpa_87","oa":135},{"a":21492,"t":"code","b":[132,136],"m":"sty","o":"zpa_88","oa":136},{"a":21494,"t":"code","b":[165,131],"m":"lda","o":"zpa_83","oa":131},{"a":21496,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":21498,"t":"code","b":[165,132],"m":"lda","o":"zpa_84","oa":132},{"a":21500,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":21502,"t":"code","b":[32,107,7],"m":"jsr","o":"find_object_in_15","oa":1899},{"a":21505,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":21507,"t":"code","b":[133,133],"m":"sta","o":"zpa_85","oa":133},{"a":21509,"t":"code","b":[165,22],"m":"lda","o":"zpa_16","oa":22},{"a":21511,"t":"code","b":[133,134],"m":"sta","o":"zpa_86","oa":134},{"a":21513,"t":"code","b":[164,137],"m":"ldy","o":"zpa_89","oa":137},{"a":21515,"t":"code","b":[136],"m":"dey"},{"a":21516,"l":"b_540C","t":"code","b":[177,133],"m":"lda","o":"(zpa_85),y","oa":133,"x":[21523]},{"a":21518,"t":"code","b":[145,135],"m":"sta","o":"(zpa_87),y","oa":135},{"a":21520,"t":"code","b":[136],"m":"dey"},{"a":21521,"t":"code","b":[192,255],"m":"cpy","o":"#$FF"},{"a":21523,"t":"code","b":[208,247],"m":"bne","o":"b_540C","oa":21516},{"a":21525,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":21527,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":21529,"t":"code","b":[145,135],"m":"sta","o":"(zpa_87),y","oa":135},{"a":21531,"t":"code","b":[32,114,79],"m":"jsr","o":"find_free_inventory_slot","oa":20338},{"a":21534,"t":"code","b":[165,135],"m":"lda","o":"zpa_87","oa":135},{"a":21536,"t":"code","b":[153,217,103],"m":"sta","o":"f_67D9,y","oa":26585},{"a":21539,"t":"code","b":[165,136],"m":"lda","o":"zpa_88","oa":136},{"a":21541,"t":"code","b":[153,21,104],"m":"sta","o":"f_6815,y","oa":26645},{"a":21544,"t":"code","b":[165,131],"m":"lda","o":"zpa_83","oa":131},{"a":21546,"t":"code","b":[153,157,103],"m":"sta","o":"f_679D,y","oa":26525},{"a":21549,"t":"code","b":[152],"m":"tya"},{"a":21550,"t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":21552,"t":"code","b":[145,135],"m":"sta","o":"(zpa_87),y","oa":135},{"a":21554,"t":"code","b":[165,131],"m":"lda","o":"zpa_83","oa":131},{"a":21556,"t":"code","b":[141,21,98],"m":"sta","o":"a_6215","oa":25109},{"a":21559,"t":"code","b":[165,132],"m":"lda","o":"zpa_84","oa":132},{"a":21561,"t":"code","b":[141,22,98],"m":"sta","o":"a_6216","oa":25110},{"a":21564,"t":"code","b":[32,64,79],"m":"jsr","o":"read_object_byte","oa":20288},{"a":21567,"t":"code","b":[9,160],"m":"ora","o":"#$A0"},{"a":21569,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":21571,"t":"code","b":[13,110,254],"m":"ora","o":"a_FE6E","oa":65134},{"a":21574,"t":"code","b":[32,85,79],"m":"jsr","o":"write_object_byte","oa":20309},{"a":21577,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":21579,"t":"code","b":[141,195,203],"m":"sta","o":"camera_drawn","oa":52163},{"a":21582,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":21584,"t":"code","b":[141,186,51],"m":"sta","o":"a_33BA","oa":13242},{"a":21587,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":21590,"t":"code","b":[32,98,78],"m":"jsr","o":"redraw_inventory_banked","oa":20066},{"a":21593,"t":"code","b":[96],"m":"rts"},{"a":21594,"l":"op_pseudo_room","c":"Opcode $CC, pseudoRoom: reads a room number, then a list of bytes ended by zero; each with bit 7 set makes that room number (less $80, the index into $7265) stand for the first room","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":21597,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":21599,"l":"j_545F","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646,"x":[21615]},{"a":21602,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":21604,"t":"code","b":[208,1],"m":"bne","o":"b_5467","oa":21607},{"a":21606,"t":"code","b":[96],"m":"rts"},{"a":21607,"l":"b_5467","t":"code","b":[16,6],"m":"bpl","o":"b_546F","oa":21615,"x":[21604]},{"a":21609,"t":"code","b":[170],"m":"tax"},{"a":21610,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":21612,"t":"code","b":[157,101,114],"m":"sta","o":"f_7265,x","oa":29285},{"a":21615,"l":"b_546F","t":"code","b":[76,95,84],"m":"jmp","o":"j_545F","oa":21599,"x":[21607]},{"a":21618,"l":"op_load_room","c":"Opcodes $72 and $F2, loadRoom: reads a room number; unless it is the room already shown (current_room, $6903), calls $D61E and enters the new room with enter_room ($2A38); then finds the current script again (the heap may have moved) and has the room redrawn","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":21621,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":21623,"t":"code","b":[205,3,105],"m":"cmp","o":"current_room","oa":26883},{"a":21626,"t":"code","b":[240,8],"m":"beq","o":"b_5484","oa":21636},{"a":21628,"t":"code","b":[32,30,214],"m":"jsr","o":"close_room","oa":54814},{"a":21631,"t":"code","b":[166,189],"m":"ldx","o":"zpa_BD","oa":189},{"a":21633,"t":"code","b":[32,56,42],"m":"jsr","o":"enter_room","oa":10808},{"a":21636,"l":"b_5484","t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578,"x":[21626]},{"a":21639,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":21641,"t":"code","b":[141,195,203],"m":"sta","o":"camera_drawn","oa":52163},{"a":21644,"t":"code","b":[96],"m":"rts"},{"a":21645,"l":"op_load_room_with_ego","c":"Opcodes $24, $64, $A4 and $E4, loadRoomWithEgo: reads an object, a room and an X and Y; a room script stops running here; puts the current actor (variable 0) in the room ($FF9D), enters it, places the actor at the object's walk-to point facing back the way it came ($08D8, $216C), points the camera at it and makes it follow ($5B6C), clears the sentence ($5C65), sends the actor walking to the X and Y when they are not negative, and starts global script 5. An object that find_object finds nowhere, in the new room or an inventory, is fatal error 11; one in an inventory passes, and its slot is read as a room object's index","t":"code","b":[174,81,104],"m":"ldx","o":"current_slot","oa":26705},{"a":21648,"t":"code","b":[48,14],"m":"bmi","o":"b_54A0","oa":21664},{"a":21650,"t":"code","b":[189,202,104],"m":"lda","o":"f_68CA,x","oa":26826},{"a":21653,"t":"code","b":[41,63],"m":"and","o":"#$3F"},{"a":21655,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":21657,"t":"code","b":[208,5],"m":"bne","o":"b_54A0","oa":21664},{"a":21659,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":21661,"t":"code","b":[141,81,104],"m":"sta","o":"current_slot","oa":26705},{"a":21664,"l":"b_54A0","t":"code","b":[32,30,214],"m":"jsr","o":"close_room","oa":54814,"x":[21648,21657]},{"a":21667,"t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244},{"a":21670,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":21673,"t":"code","b":[141,34,98],"m":"sta","o":"a_6222","oa":25122},{"a":21676,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":21679,"t":"code","b":[141,35,98],"m":"sta","o":"a_6223","oa":25123},{"a":21682,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":21685,"t":"code","b":[174,110,254],"m":"ldx","o":"a_FE6E","oa":65134},{"a":21688,"t":"code","b":[157,157,255],"m":"sta","o":"f_FF9D,x","oa":65437},{"a":21691,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":21694,"t":"code","b":[141,32,98],"m":"sta","o":"a_6220","oa":25120},{"a":21697,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":21700,"t":"code","b":[141,33,98],"m":"sta","o":"a_6221","oa":25121},{"a":21703,"t":"code","b":[174,110,254],"m":"ldx","o":"a_FE6E","oa":65134},{"a":21706,"t":"code","b":[189,157,255],"m":"lda","o":"f_FF9D,x","oa":65437},{"a":21709,"t":"code","b":[170],"m":"tax"},{"a":21710,"t":"code","b":[32,56,42],"m":"jsr","o":"enter_room","oa":10808},{"a":21713,"t":"code","b":[173,34,98],"m":"lda","o":"a_6222","oa":25122},{"a":21716,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":21718,"t":"code","b":[173,35,98],"m":"lda","o":"a_6223","oa":25123},{"a":21721,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":21723,"t":"code","b":[32,107,7],"m":"jsr","o":"find_object_in_15","oa":1899},{"a":21726,"t":"code","b":[192,255],"m":"cpy","o":"#$FF"},{"a":21728,"t":"code","b":[208,17],"m":"bne","o":"place_actor_at_object","oa":21747},{"a":21730,"t":"code","b":[169,11],"m":"lda","o":"#$0B"},{"a":21732,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":21734,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":21736,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":21738,"l":"j_54EA","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[21741]},{"a":21741,"t":"code","b":[76,234,84],"m":"jmp","o":"j_54EA","oa":21738},{"a":21744,"c":"JMP $5554, after the fatal error's endless loop: never reached","t":"code","b":[76,84,85],"m":"jmp","o":"r_5554","oa":21844},{"a":21747,"l":"place_actor_at_object","c":"The object was found (in the room, or in an inventory, whose slot $08D8 then reads as a room object's index): the actor is placed at that walk-to point ($08D8) facing the other way from it (bit 0 of the direction flipped), its walk slot's X set to $FF so that it is placed afresh; the camera is put on it and follows it, the room is marked to be drawn again ($C8), the input flag and the sentence are cleared, a walk starts when the X given is not negative, and global script 5 starts","t":"code","b":[32,216,8],"m":"jsr","o":"room_object_walk_point","oa":2264,"x":[21728]},{"a":21750,"t":"code","b":[173,110,254],"m":"lda","o":"a_FE6E","oa":65134},{"a":21753,"t":"code","b":[133,229],"m":"sta","o":"zpa_E5","oa":229},{"a":21755,"t":"code","b":[170],"m":"tax"},{"a":21756,"t":"code","b":[173,26,252],"m":"lda","o":"a_FC1A","oa":64538},{"a":21759,"t":"code","b":[73,1],"m":"eor","o":"#$01"},{"a":21761,"t":"code","b":[157,222,255],"m":"sta","o":"actor_facing,x","oa":65502},{"a":21764,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":21766,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":21769,"t":"code","b":[48,6],"m":"bmi","o":"b_5511","oa":21777},{"a":21771,"t":"code","b":[170],"m":"tax"},{"a":21772,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":21774,"t":"code","b":[157,230,252],"m":"sta","o":"f_FCE6,x","oa":64742},{"a":21777,"l":"b_5511","t":"code","b":[173,3,105],"m":"lda","o":"current_room","oa":26883,"x":[21769]},{"a":21780,"t":"code","b":[141,28,252],"m":"sta","o":"a_FC1C","oa":64540},{"a":21783,"t":"code","b":[32,108,33],"m":"jsr","o":"put_actor","oa":8556},{"a":21786,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":21788,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":21791,"t":"code","b":[170],"m":"tax"},{"a":21792,"t":"code","b":[189,230,252],"m":"lda","o":"f_FCE6,x","oa":64742},{"a":21795,"t":"code","b":[141,194,203],"m":"sta","o":"camera_x","oa":52162},{"a":21798,"t":"code","b":[173,110,254],"m":"lda","o":"a_FE6E","oa":65134},{"a":21801,"t":"code","b":[32,108,91],"m":"jsr","o":"camera_follow_actor_refresh","oa":23404},{"a":21804,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":21806,"t":"code","b":[141,195,203],"m":"sta","o":"camera_drawn","oa":52163},{"a":21809,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":21811,"t":"code","b":[141,45,252],"m":"sta","o":"a_FC2D","oa":64557},{"a":21814,"t":"code","b":[32,101,92],"m":"jsr","o":"reset_sentence","oa":23653},{"a":21817,"t":"code","b":[173,32,98],"m":"lda","o":"a_6220","oa":25120},{"a":21820,"t":"code","b":[48,17],"m":"bmi","o":"b_554F","oa":21839},{"a":21822,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":21825,"t":"code","b":[173,33,98],"m":"lda","o":"a_6221","oa":25121},{"a":21828,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":21831,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":21833,"t":"code","b":[141,26,252],"m":"sta","o":"a_FC1A","oa":64538},{"a":21836,"t":"code","b":[32,97,23],"m":"jsr","o":"start_walk","oa":5985},{"a":21839,"l":"b_554F","t":"code","b":[169,5],"m":"lda","o":"#$05","x":[21820]},{"a":21841,"t":"code","b":[32,159,77],"m":"jsr","o":"start_script","oa":19871},{"a":21844,"l":"r_5554","t":"code","b":[96],"m":"rts","x":[21744]},{"a":21845,"l":"decode_bit_var","c":"For the bit-variable opcodes: reads a word and adds the operand (a byte or variable) to make a bit number; sixteen bits make each variable, so the variable is the number divided by 16 ($6247), the bit is the low three bits ($6249) and bit 3 chooses its low byte ($FE6E) or its high byte ($FD6F), whose table's address it leaves in $15/$16","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646,"x":[21928,21971]},{"a":21848,"t":"code","b":[141,71,98],"m":"sta","o":"a_6247","oa":25159},{"a":21851,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":21854,"t":"code","b":[141,72,98],"m":"sta","o":"a_6248","oa":25160},{"a":21857,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":21860,"t":"code","b":[24],"m":"clc"},{"a":21861,"t":"code","b":[109,71,98],"m":"adc","o":"a_6247","oa":25159},{"a":21864,"t":"code","b":[141,71,98],"m":"sta","o":"a_6247","oa":25159},{"a":21867,"t":"code","b":[144,3],"m":"bcc","o":"b_5570","oa":21872},{"a":21869,"t":"code","b":[238,72,98],"m":"inc","o":"a_6248","oa":25160},{"a":21872,"l":"b_5570","t":"code","b":[173,71,98],"m":"lda","o":"a_6247","oa":25159,"x":[21867]},{"a":21875,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":21877,"t":"code","b":[141,73,98],"m":"sta","o":"a_6249","oa":25161},{"a":21880,"t":"code","b":[41,8],"m":"and","o":"#$08"},{"a":21882,"t":"code","b":[208,11],"m":"bne","o":"b_5587","oa":21895},{"a":21884,"t":"code","b":[169,110],"m":"lda","o":"#$6E"},{"a":21886,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":21888,"t":"code","b":[169,254],"m":"lda","o":"#$FE"},{"a":21890,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":21892,"t":"code","b":[76,143,85],"m":"jmp","o":"j_558F","oa":21903},{"a":21895,"l":"b_5587","t":"code","b":[169,111],"m":"lda","o":"#$6F","x":[21882]},{"a":21897,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":21899,"t":"code","b":[169,253],"m":"lda","o":"#$FD"},{"a":21901,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":21903,"l":"j_558F","t":"code","b":[78,72,98],"m":"lsr","o":"a_6248","oa":25160,"x":[21892]},{"a":21906,"t":"code","b":[110,71,98],"m":"ror","o":"a_6247","oa":25159},{"a":21909,"t":"code","b":[78,72,98],"m":"lsr","o":"a_6248","oa":25160},{"a":21912,"t":"code","b":[110,71,98],"m":"ror","o":"a_6247","oa":25159},{"a":21915,"t":"code","b":[78,72,98],"m":"lsr","o":"a_6248","oa":25160},{"a":21918,"t":"code","b":[110,71,98],"m":"ror","o":"a_6247","oa":25159},{"a":21921,"t":"code","b":[78,72,98],"m":"lsr","o":"a_6248","oa":25160},{"a":21924,"t":"code","b":[110,71,98],"m":"ror","o":"a_6247","oa":25159},{"a":21927,"t":"code","b":[96],"m":"rts"},{"a":21928,"l":"op_set_bit_var","c":"Opcodes $1B, $5B, $9B and $DB, setBitVar: sets the bit when the value read is not zero and clears it when it is zero (the bit masks at $623F)","t":"code","b":[32,85,85],"m":"jsr","o":"decode_bit_var","oa":21845},{"a":21931,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":21934,"t":"code","b":[72],"m":"pha"},{"a":21935,"t":"code","b":[173,73,98],"m":"lda","o":"a_6249","oa":25161},{"a":21938,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":21940,"t":"code","b":[170],"m":"tax"},{"a":21941,"t":"code","b":[104],"m":"pla"},{"a":21942,"t":"code","b":[208,13],"m":"bne","o":"b_55C5","oa":21957},{"a":21944,"t":"code","b":[189,63,98],"m":"lda","o":"f_623F,x","oa":25151},{"a":21947,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":21949,"t":"code","b":[172,71,98],"m":"ldy","o":"a_6247","oa":25159},{"a":21952,"t":"code","b":[49,21],"m":"and","o":"(zpa_15),y","oa":21},{"a":21954,"t":"code","b":[76,205,85],"m":"jmp","o":"j_55CD","oa":21965},{"a":21957,"l":"b_55C5","t":"code","b":[189,63,98],"m":"lda","o":"f_623F,x","oa":25151,"x":[21942]},{"a":21960,"t":"code","b":[172,71,98],"m":"ldy","o":"a_6247","oa":25159},{"a":21963,"t":"code","b":[17,21],"m":"ora","o":"(zpa_15),y","oa":21},{"a":21965,"l":"j_55CD","t":"code","b":[145,21],"m":"sta","o":"(zpa_15),y","oa":21,"x":[21954]},{"a":21967,"t":"code","b":[96],"m":"rts"},{"a":21968,"l":"op_get_bit_var","c":"Opcodes $31 and $B1, getBitVar: the result variable gets 1 when the bit is set and 0 when it is clear","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":21971,"t":"code","b":[32,85,85],"m":"jsr","o":"decode_bit_var","oa":21845},{"a":21974,"t":"code","b":[172,71,98],"m":"ldy","o":"a_6247","oa":25159},{"a":21977,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":21979,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":21981,"t":"code","b":[173,73,98],"m":"lda","o":"a_6249","oa":25161},{"a":21984,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":21986,"t":"code","b":[170],"m":"tax"},{"a":21987,"t":"code","b":[189,63,98],"m":"lda","o":"f_623F,x","oa":25151},{"a":21990,"t":"code","b":[37,189],"m":"and","o":"zpa_BD","oa":189},{"a":21992,"t":"code","b":[240,2],"m":"beq","o":"b_55EC","oa":21996},{"a":21994,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":21996,"l":"b_55EC","t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327,"x":[21992]},{"a":21999,"t":"code","b":[96],"m":"rts"},{"a":22000,"l":"op_get_object_owner","c":"Opcodes $10 and $90, getObjectOwner: the result variable gets the object's owner, the low four bits of its byte in the object table","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":22003,"t":"code","b":[32,61,79],"m":"jsr","o":"read_object_flags","oa":20285},{"a":22006,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":22008,"t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327},{"a":22011,"t":"code","b":[96],"m":"rts"},{"a":22012,"l":"op_set_owner_of","c":"Opcodes $29, $69, $A9 and $E9, setOwnerOf: gives an object to a new owner (a byte or variable); an owner of 0 also takes it out of the inventory and frees its copy (remove_from_inventory); then redraws the inventory and finds the current script again","t":"code","b":[32,61,79],"m":"jsr","o":"read_object_flags","oa":20285},{"a":22015,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":22017,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":22019,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":22022,"t":"code","b":[133,131],"m":"sta","o":"zpa_83","oa":131},{"a":22024,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":22027,"t":"code","b":[133,132],"m":"sta","o":"zpa_84","oa":132},{"a":22029,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":22032,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":22034,"t":"code","b":[208,5],"m":"bne","o":"b_5619","oa":22041},{"a":22036,"t":"code","b":[72],"m":"pha"},{"a":22037,"t":"code","b":[32,37,86],"m":"jsr","o":"remove_from_inventory","oa":22053},{"a":22040,"t":"code","b":[104],"m":"pla"},{"a":22041,"l":"b_5619","t":"code","b":[5,189],"m":"ora","o":"zpa_BD","oa":189,"x":[22034]},{"a":22043,"t":"code","b":[32,85,79],"m":"jsr","o":"write_object_byte","oa":20309},{"a":22046,"t":"code","b":[32,98,78],"m":"jsr","o":"redraw_inventory_banked","oa":20066},{"a":22049,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":22052,"t":"code","b":[96],"m":"rts"},{"a":22053,"l":"remove_from_inventory","c":"Looks for the object in $83/$84 among the inventory slots 59 to 1 and, when it is there, frees it with free_inventory_slot","t":"code","b":[160,59],"m":"ldy","o":"#$3B","x":[22037]},{"a":22055,"l":"b_5627","t":"code","b":[185,157,103],"m":"lda","o":"f_679D,y","oa":26525,"x":[22075]},{"a":22058,"t":"code","b":[197,131],"m":"cmp","o":"zpa_83","oa":131},{"a":22060,"t":"code","b":[208,12],"m":"bne","o":"b_563A","oa":22074},{"a":22062,"t":"code","b":[165,132],"m":"lda","o":"zpa_84","oa":132},{"a":22064,"t":"code","b":[208,8],"m":"bne","o":"b_563A","oa":22074},{"a":22066,"t":"code","b":[165,132],"m":"lda","o":"zpa_84","oa":132},{"a":22068,"t":"code","b":[166,131],"m":"ldx","o":"zpa_83","oa":131},{"a":22070,"t":"code","b":[32,62,86],"m":"jsr","o":"free_inventory_slot","oa":22078},{"a":22073,"t":"code","b":[96],"m":"rts"},{"a":22074,"l":"b_563A","t":"code","b":[136],"m":"dey","x":[22060,22064]},{"a":22075,"t":"code","b":[208,234],"m":"bne","o":"b_5627","oa":22055},{"a":22077,"t":"code","b":[96],"m":"rts"},{"a":22078,"l":"free_inventory_slot","c":"For an object held in the inventory (find_object returns 0): frees its copy in the heap ($D480) and empties its slot in $679D, $67D9 and $6815","t":"code","b":[32,103,7],"m":"jsr","o":"find_object","oa":1895,"x":[22070]},{"a":22081,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":22083,"t":"code","b":[208,22],"m":"bne","o":"r_565B","oa":22107},{"a":22085,"t":"code","b":[152],"m":"tya"},{"a":22086,"t":"code","b":[72],"m":"pha"},{"a":22087,"t":"code","b":[166,21],"m":"ldx","o":"zpa_15","oa":21},{"a":22089,"t":"code","b":[164,22],"m":"ldy","o":"zpa_16","oa":22},{"a":22091,"t":"code","b":[32,128,212],"m":"jsr","o":"free_block","oa":54400},{"a":22094,"t":"code","b":[104],"m":"pla"},{"a":22095,"t":"code","b":[170],"m":"tax"},{"a":22096,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":22098,"t":"code","b":[157,157,103],"m":"sta","o":"f_679D,x","oa":26525},{"a":22101,"t":"code","b":[157,21,104],"m":"sta","o":"f_6815,x","oa":26645},{"a":22104,"t":"code","b":[157,217,103],"m":"sta","o":"f_67D9,x","oa":26585},{"a":22107,"l":"r_565B","t":"code","b":[96],"m":"rts","x":[22083]},{"a":22108,"l":"op_print_ego","c":"Opcode $D8, printEgo: prints the message that follows in the script as said by the current actor (variable 0), with print_message_common","t":"code","b":[173,110,254],"m":"lda","o":"a_FE6E","oa":65134},{"a":22111,"t":"code","b":[141,48,252],"m":"sta","o":"a_FC30","oa":64560},{"a":22114,"l":"print_message_common","c":"Hands the script pointer to the message printer ($21BA) in $C7/$C8, which reads the text from the script, and takes back where it stopped","t":"code","b":[173,191,76],"m":"lda","o":"script_byte_lo","oa":19647,"x":[22144]},{"a":22117,"t":"code","b":[133,199],"m":"sta","o":"zpp_C7","oa":199},{"a":22119,"t":"code","b":[173,192,76],"m":"lda","o":"script_byte_hi","oa":19648},{"a":22122,"t":"code","b":[133,200],"m":"sta","o":"zpa_C8","oa":200},{"a":22124,"t":"code","b":[32,186,33],"m":"jsr","o":"print_message","oa":8634},{"a":22127,"t":"code","b":[165,199],"m":"lda","o":"zpp_C7","oa":199},{"a":22129,"t":"code","b":[141,191,76],"m":"sta","o":"script_byte_lo","oa":19647},{"a":22132,"t":"code","b":[165,200],"m":"lda","o":"zpa_C8","oa":200},{"a":22134,"t":"code","b":[141,192,76],"m":"sta","o":"script_byte_hi","oa":19648},{"a":22137,"t":"code","b":[96],"m":"rts"},{"a":22138,"l":"op_print","c":"Opcodes $14 and $94, print: reads the actor who speaks (a byte or a variable) into $FC30, then prints the message that follows","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22141,"t":"code","b":[141,48,252],"m":"sta","o":"a_FC30","oa":64560},{"a":22144,"t":"code","b":[76,98,86],"m":"jmp","o":"print_message_common","oa":22114},{"a":22147,"l":"op_get_dist","c":"Opcodes $34, $74, $B4 and $F4, getDist: the result variable gets the distance between two objects or actors, the larger of the X and Y differences (actor_distance)","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":22150,"t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244},{"a":22153,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":22156,"t":"code","b":[141,59,98],"m":"sta","o":"a_623B","oa":25147},{"a":22159,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":22162,"t":"code","b":[141,60,98],"m":"sta","o":"a_623C","oa":25148},{"a":22165,"t":"code","b":[32,12,79],"m":"jsr","o":"read_word_operand_40","oa":20236},{"a":22168,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":22171,"t":"code","b":[141,61,98],"m":"sta","o":"a_623D","oa":25149},{"a":22174,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":22177,"t":"code","b":[141,62,98],"m":"sta","o":"a_623E","oa":25150},{"a":22180,"t":"code","b":[32,149,79],"m":"jsr","o":"actor_distance","oa":20373},{"a":22183,"t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327},{"a":22186,"t":"code","b":[96],"m":"rts"},{"a":22187,"l":"op_get_closest_obj_actor","c":"Opcodes $66 and $E6, getClosestObjActor: measures from the object to each actor from variable 20 ($FE82) down to variable 19 ($FE81) and gives the result variable the nearest actor's number, or $FF when every distance is $FF","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":22190,"t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244},{"a":22193,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":22196,"t":"code","b":[141,59,98],"m":"sta","o":"a_623B","oa":25147},{"a":22199,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":22202,"t":"code","b":[141,60,98],"m":"sta","o":"a_623C","oa":25148},{"a":22205,"t":"code","b":[173,130,254],"m":"lda","o":"a_FE82","oa":65154},{"a":22208,"t":"code","b":[141,61,98],"m":"sta","o":"a_623D","oa":25149},{"a":22211,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":22213,"t":"code","b":[141,62,98],"m":"sta","o":"a_623E","oa":25150},{"a":22216,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":22218,"t":"code","b":[141,57,98],"m":"sta","o":"a_6239","oa":25145},{"a":22221,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":22223,"t":"code","b":[141,58,98],"m":"sta","o":"a_623A","oa":25146},{"a":22226,"l":"b_56D2","t":"code","b":[32,149,79],"m":"jsr","o":"actor_distance","oa":20373,"x":[22252]},{"a":22229,"t":"code","b":[205,57,98],"m":"cmp","o":"a_6239","oa":25145},{"a":22232,"t":"code","b":[176,9],"m":"bcs","o":"b_56E3","oa":22243},{"a":22234,"t":"code","b":[141,57,98],"m":"sta","o":"a_6239","oa":25145},{"a":22237,"t":"code","b":[173,61,98],"m":"lda","o":"a_623D","oa":25149},{"a":22240,"t":"code","b":[141,58,98],"m":"sta","o":"a_623A","oa":25146},{"a":22243,"l":"b_56E3","t":"code","b":[206,61,98],"m":"dec","o":"a_623D","oa":25149,"x":[22232]},{"a":22246,"t":"code","b":[173,61,98],"m":"lda","o":"a_623D","oa":25149},{"a":22249,"t":"code","b":[205,129,254],"m":"cmp","o":"a_FE81","oa":65153},{"a":22252,"t":"code","b":[176,228],"m":"bcs","o":"b_56D2","oa":22226},{"a":22254,"t":"code","b":[173,58,98],"m":"lda","o":"a_623A","oa":25146},{"a":22257,"t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327},{"a":22260,"t":"code","b":[96],"m":"rts"},{"a":22261,"l":"op_get_random_nr","c":"Opcodes $16 and $96, getRandomNr: the result variable gets a random number from the routine at $D754, given the operand as its limit","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":22264,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22267,"t":"code","b":[170],"m":"tax"},{"a":22268,"t":"code","b":[32,84,215],"m":"jsr","o":"random_number","oa":55124},{"a":22271,"t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327},{"a":22274,"t":"code","b":[96],"m":"rts"},{"a":22275,"l":"op_get_actor_moving","c":"Opcodes $56 and $D6, getActorMoving: the result variable gets the actor's walking state ($FCF6 for its walk record); an actor with no walk record in this room gives 1","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":22278,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22281,"t":"code","b":[170],"m":"tax"},{"a":22282,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":22285,"t":"code","b":[16,5],"m":"bpl","o":"b_5714","oa":22292},{"a":22287,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":22289,"t":"code","b":[76,24,87],"m":"jmp","o":"j_5718","oa":22296},{"a":22292,"l":"b_5714","t":"code","b":[170],"m":"tax","x":[22285]},{"a":22293,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":22296,"l":"j_5718","t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327,"x":[22289]},{"a":22299,"t":"code","b":[96],"m":"rts"},{"a":22300,"l":"op_is_sound_running","c":"Opcodes $7C and $FC, isSoundRunning: the result variable gets the sound's entry in $753F without bit 7","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":22303,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22306,"t":"code","b":[170],"m":"tax"},{"a":22307,"t":"code","b":[189,63,117],"m":"lda","o":"f_753F,x","oa":30015},{"a":22310,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":22312,"t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327},{"a":22315,"t":"code","b":[96],"m":"rts"},{"a":22316,"l":"op_is_script_running","c":"Opcodes $68 and $E8, isScriptRunning: the result variable gets 1 when any slot from 1 to 19 runs the global script, and 0 when none does","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":22319,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22322,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":22324,"t":"code","b":[162,19],"m":"ldx","o":"#$13"},{"a":22326,"l":"b_5736","t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189,"x":[22346]},{"a":22328,"t":"code","b":[221,222,104],"m":"cmp","o":"f_68DE,x","oa":26846},{"a":22331,"t":"code","b":[208,12],"m":"bne","o":"b_5749","oa":22345},{"a":22333,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":22335,"t":"code","b":[221,202,104],"m":"cmp","o":"f_68CA,x","oa":26826},{"a":22338,"t":"code","b":[208,5],"m":"bne","o":"b_5749","oa":22345},{"a":22340,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":22342,"t":"code","b":[76,78,87],"m":"jmp","o":"j_574E","oa":22350},{"a":22345,"l":"b_5749","t":"code","b":[202],"m":"dex","x":[22331,22338]},{"a":22346,"t":"code","b":[208,234],"m":"bne","o":"b_5736","oa":22326},{"a":22348,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":22350,"l":"j_574E","t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327,"x":[22342]},{"a":22353,"t":"code","b":[96],"m":"rts"},{"a":22354,"l":"op_delay_variable","c":"Opcode $2B, delayVariable: puts the slot to sleep (status 1) for as many counts of count_script_delays as the variable's value plus one: its three-byte delay counter is set to minus that, and counts up to zero; then yields","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":22357,"t":"code","b":[168],"m":"tay"},{"a":22358,"t":"code","b":[174,81,104],"m":"ldx","o":"current_slot","oa":26705},{"a":22361,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":22363,"t":"code","b":[56],"m":"sec"},{"a":22364,"t":"code","b":[249,110,254],"m":"sbc","o":"a_FE6E,y","oa":65134},{"a":22367,"t":"code","b":[157,182,104],"m":"sta","o":"f_68B6,x","oa":26806},{"a":22370,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":22372,"t":"code","b":[249,111,253],"m":"sbc","o":"f_FD6F,y","oa":64879},{"a":22375,"t":"code","b":[157,162,104],"m":"sta","o":"f_68A2,x","oa":26786},{"a":22378,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":22380,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":22382,"t":"code","b":[157,142,104],"m":"sta","o":"f_688E,x","oa":26766},{"a":22385,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":22387,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":22390,"t":"code","b":[76,206,80],"m":"jmp","o":"op_break_here","oa":20686},{"a":22393,"l":"op_delay","c":"Opcode $2E, delay: the same with the three-byte count taken from the script, already as the negative number the counter counts up from","t":"code","b":[174,81,104],"m":"ldx","o":"current_slot","oa":26705},{"a":22396,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":22399,"t":"code","b":[157,182,104],"m":"sta","o":"f_68B6,x","oa":26806},{"a":22402,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":22405,"t":"code","b":[157,162,104],"m":"sta","o":"f_68A2,x","oa":26786},{"a":22408,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":22411,"t":"code","b":[157,142,104],"m":"sta","o":"f_688E,x","oa":26766},{"a":22414,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":22416,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":22419,"t":"code","b":[76,206,80],"m":"jmp","o":"op_break_here","oa":20686},{"a":22422,"l":"op_stop_sound","c":"Opcodes $3C and $BC, stopSound: stops the sound named by the operand ($3E52), with the chips banked in","t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":22424,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":22426,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22429,"t":"code","b":[32,82,62],"m":"jsr","o":"stop_sound","oa":15954},{"a":22432,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":22434,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":22436,"t":"code","b":[96],"m":"rts"},{"a":22437,"l":"op_start_music","c":"Opcodes $02 and $82, startMusic: makes sure the sound resource is in memory ($2EE4), then calls the music code at $C304 with its number, with the chips banked in, and finds the current script again","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22440,"t":"code","b":[72],"m":"pha"},{"a":22441,"t":"code","b":[32,228,46],"m":"jsr","o":"load_sound","oa":12004},{"a":22444,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":22446,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":22448,"t":"code","b":[104],"m":"pla"},{"a":22449,"t":"code","b":[32,4,195],"m":"jsr","o":"s_C304","oa":49924},{"a":22452,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":22454,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":22456,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":22459,"t":"code","b":[96],"m":"rts"},{"a":22460,"l":"op_start_sound","c":"Opcodes $1C and $9C, startSound: reads the sound's number and starts it with start_sound","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22463,"l":"start_sound","c":"Starts sound A: sets bit 7 of $FC31 while it works, stops the sound if it is playing (stop_sound, chips banked in), makes sure its resource is in memory (load_sound), puts it on the list to begin at the next frame (queue_sound), clears bit 7 again, keeps the number in variable 37 ($FE93) and finds the current script again","t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189,"x":[1576]},{"a":22465,"t":"code","b":[170],"m":"tax"},{"a":22466,"t":"code","b":[173,49,252],"m":"lda","o":"a_FC31","oa":64561},{"a":22469,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":22471,"t":"code","b":[141,49,252],"m":"sta","o":"a_FC31","oa":64561},{"a":22474,"t":"code","b":[138],"m":"txa"},{"a":22475,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":22477,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":22479,"t":"code","b":[32,82,62],"m":"jsr","o":"stop_sound","oa":15954},{"a":22482,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":22484,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":22486,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":22488,"t":"code","b":[32,228,46],"m":"jsr","o":"load_sound","oa":12004},{"a":22491,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":22493,"t":"code","b":[32,206,63],"m":"jsr","o":"queue_sound","oa":16334},{"a":22496,"t":"code","b":[173,49,252],"m":"lda","o":"a_FC31","oa":64561},{"a":22499,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":22501,"t":"code","b":[141,49,252],"m":"sta","o":"a_FC31","oa":64561},{"a":22504,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":22506,"t":"code","b":[141,147,254],"m":"sta","o":"a_FE93","oa":65171},{"a":22509,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":22512,"t":"code","b":[96],"m":"rts"},{"a":22513,"l":"op_walk_actor_to_object","c":"Opcodes $36, $76, $B6 and $F6, walkActorToObject: finds the object (find_object) and, unless find_object leaves Y at $FF (not found), sends the actor walking ($1761) to the walk-to point that $08D8 reads with Y as an index into the room's objects. An object in an inventory is found too, with Y its inventory slot, so the actor walks to the point of whichever room object has that index; in a room with no objects at all, find_object returns with Y 0 and the walk goes to room object 0's point","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22516,"t":"code","b":[133,229],"m":"sta","o":"zpa_E5","oa":229},{"a":22518,"t":"code","b":[32,12,79],"m":"jsr","o":"read_word_operand_40","oa":20236},{"a":22521,"t":"code","b":[174,21,98],"m":"ldx","o":"a_6215","oa":25109},{"a":22524,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":22527,"t":"code","b":[32,103,7],"m":"jsr","o":"find_object","oa":1895},{"a":22530,"t":"code","b":[192,255],"m":"cpy","o":"#$FF"},{"a":22532,"t":"code","b":[240,6],"m":"beq","o":"r_580C","oa":22540},{"a":22534,"t":"code","b":[32,216,8],"m":"jsr","o":"room_object_walk_point","oa":2264},{"a":22537,"t":"code","b":[32,97,23],"m":"jsr","o":"start_walk","oa":5985},{"a":22540,"l":"r_580C","t":"code","b":[96],"m":"rts","x":[22532]},{"a":22541,"l":"op_put_actor_at_object","c":"Opcodes $0E, $4E, $8E and $CE, putActorAtObject: places the actor ($216C), in the room it is in, at the walk-to point $08D8 reads for the object (with the same mix-up as walkActorToObject for an object in an inventory), or at X 30, Y 60 when the object is not found","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22544,"t":"code","b":[133,229],"m":"sta","o":"zpa_E5","oa":229},{"a":22546,"t":"code","b":[32,12,79],"m":"jsr","o":"read_word_operand_40","oa":20236},{"a":22549,"t":"code","b":[174,21,98],"m":"ldx","o":"a_6215","oa":25109},{"a":22552,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":22555,"t":"code","b":[32,103,7],"m":"jsr","o":"find_object","oa":1895},{"a":22558,"t":"code","b":[192,255],"m":"cpy","o":"#$FF"},{"a":22560,"t":"code","b":[240,6],"m":"beq","o":"b_5828","oa":22568},{"a":22562,"t":"code","b":[32,216,8],"m":"jsr","o":"room_object_walk_point","oa":2264},{"a":22565,"t":"code","b":[76,50,88],"m":"jmp","o":"j_5832","oa":22578},{"a":22568,"l":"b_5828","t":"code","b":[169,30],"m":"lda","o":"#$1E","x":[22560]},{"a":22570,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":22573,"t":"code","b":[169,60],"m":"lda","o":"#$3C"},{"a":22575,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":22578,"l":"j_5832","t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229,"x":[22565]},{"a":22580,"t":"code","b":[189,157,255],"m":"lda","o":"f_FF9D,x","oa":65437},{"a":22583,"t":"code","b":[141,28,252],"m":"sta","o":"a_FC1C","oa":64540},{"a":22586,"t":"code","b":[32,108,33],"m":"jsr","o":"put_actor","oa":8556},{"a":22589,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":22592,"t":"code","b":[96],"m":"rts"},{"a":22593,"l":"op_walk_actor_to_actor","c":"Opcodes $0D, $4D, $8D and $CD, walkActorToActor: reads two actors and a distance; when both are in the room, writes the distance and its negative into $0933 and $0938 and sends the first actor walking to a point that far from the second ($0914, then $1761); otherwise it steps over the operands left","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22596,"t":"code","b":[133,229],"m":"sta","o":"zpa_E5","oa":229},{"a":22598,"t":"code","b":[168],"m":"tay"},{"a":22599,"t":"code","b":[185,86,253],"m":"lda","o":"f_FD56,y","oa":64854},{"a":22602,"t":"code","b":[16,4],"m":"bpl","o":"b_5850","oa":22608},{"a":22604,"t":"code","b":[32,187,76],"m":"jsr","o":"fetch_script_word_skip","oa":19643},{"a":22607,"t":"code","b":[96],"m":"rts"},{"a":22608,"l":"b_5850","t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168,"x":[22602]},{"a":22611,"t":"code","b":[170],"m":"tax"},{"a":22612,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":22615,"t":"code","b":[16,4],"m":"bpl","o":"b_585D","oa":22621},{"a":22617,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":22620,"t":"code","b":[96],"m":"rts"},{"a":22621,"l":"b_585D","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646,"x":[22615]},{"a":22624,"t":"code","b":[141,51,9],"m":"sta","o":"near_actor_right","oa":2355},{"a":22627,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":22629,"t":"code","b":[24],"m":"clc"},{"a":22630,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":22632,"t":"code","b":[141,56,9],"m":"sta","o":"near_actor_left","oa":2360},{"a":22635,"t":"code","b":[32,20,9],"m":"jsr","o":"actor_near_actor","oa":2324},{"a":22638,"t":"code","b":[32,97,23],"m":"jsr","o":"start_walk","oa":5985},{"a":22641,"t":"code","b":[96],"m":"rts"},{"a":22642,"l":"op_walk_actor_to","c":"Opcodes $1E, $3E ... $FE, walkActorTo: sends the actor walking to an X and a Y ($1761), with no direction to face at the end ($FC1A = $FF)","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22645,"t":"code","b":[133,229],"m":"sta","o":"zpa_E5","oa":229},{"a":22647,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":22650,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":22653,"t":"code","b":[32,192,78],"m":"jsr","o":"read_byte_operand_20","oa":20160},{"a":22656,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":22659,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":22661,"t":"code","b":[141,26,252],"m":"sta","o":"a_FC1A","oa":64538},{"a":22664,"t":"code","b":[32,97,23],"m":"jsr","o":"start_walk","oa":5985},{"a":22667,"t":"code","b":[96],"m":"rts"},{"a":22668,"l":"op_set_actor_elevation","c":"Opcodes $3D, $7D, $BD and $FD, setActorElevation: sets the actor's height above the floor ($FFD1) and, when it is in the room, counts its redraw counter ($FD22) up by two","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22671,"t":"code","b":[133,229],"m":"sta","o":"zpa_E5","oa":229},{"a":22673,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":22676,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":22678,"t":"code","b":[157,209,255],"m":"sta","o":"f_FFD1,x","oa":65489},{"a":22681,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":22684,"t":"code","b":[48,7],"m":"bmi","o":"r_58A5","oa":22693},{"a":22686,"t":"code","b":[170],"m":"tax"},{"a":22687,"t":"code","b":[254,34,253],"m":"inc","o":"f_FD22,x","oa":64802},{"a":22690,"t":"code","b":[254,34,253],"m":"inc","o":"f_FD22,x","oa":64802},{"a":22693,"l":"r_58A5","t":"code","b":[96],"m":"rts","x":[22684]},{"a":22694,"l":"op_put_actor","c":"Opcodes $01, $21 ... $E1, putActor: places the actor at an X and a Y in the room it is in ($216C)","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22697,"t":"code","b":[133,229],"m":"sta","o":"zpa_E5","oa":229},{"a":22699,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":22702,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":22705,"t":"code","b":[32,192,78],"m":"jsr","o":"read_byte_operand_20","oa":20160},{"a":22708,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":22711,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":22713,"t":"code","b":[189,157,255],"m":"lda","o":"f_FF9D,x","oa":65437},{"a":22716,"t":"code","b":[141,28,252],"m":"sta","o":"a_FC1C","oa":64540},{"a":22719,"t":"code","b":[32,108,33],"m":"jsr","o":"put_actor","oa":8556},{"a":22722,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":22725,"t":"code","b":[96],"m":"rts"},{"a":22726,"l":"op_put_actor_in_room","c":"Opcodes $2D, $6D, $AD and $ED, putActorInRoom: moves the actor to a room ($FF9D); room 0 also places it at 0, 0 in room 0, taking it out of play","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22729,"t":"code","b":[133,229],"m":"sta","o":"zpa_E5","oa":229},{"a":22731,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":22734,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":22736,"t":"code","b":[157,157,255],"m":"sta","o":"f_FF9D,x","oa":65437},{"a":22739,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":22741,"t":"code","b":[208,14],"m":"bne","o":"b_58E5","oa":22757},{"a":22743,"t":"code","b":[141,28,252],"m":"sta","o":"a_FC1C","oa":64540},{"a":22746,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":22748,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":22751,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":22754,"t":"code","b":[32,108,33],"m":"jsr","o":"put_actor","oa":8556},{"a":22757,"l":"b_58E5","t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578,"x":[22741]},{"a":22760,"t":"code","b":[96],"m":"rts"},{"a":22761,"l":"op_set_obj_preposition","c":"Opcodes $0B, $4B, $8B and $CB, setObjPreposition: when the object is found (object_preposition), puts the preposition number in the top three bits of its byte 12","t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244},{"a":22764,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":22767,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":22769,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":22772,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":22774,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22777,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":22779,"t":"code","b":[32,37,8],"m":"jsr","o":"object_preposition","oa":2085},{"a":22782,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":22784,"t":"code","b":[240,9],"m":"beq","o":"r_590B","oa":22795},{"a":22786,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":22788,"t":"code","b":[10],"m":"asl","o":"a"},{"a":22789,"t":"code","b":[10],"m":"asl","o":"a"},{"a":22790,"t":"code","b":[10],"m":"asl","o":"a"},{"a":22791,"t":"code","b":[10],"m":"asl","o":"a"},{"a":22792,"t":"code","b":[10],"m":"asl","o":"a"},{"a":22793,"t":"code","b":[145,21],"m":"sta","o":"(zpa_15),y","oa":21},{"a":22795,"l":"r_590B","t":"code","b":[96],"m":"rts","x":[22784]},{"a":22796,"l":"op_get_obj_preposition","c":"Opcodes $6C and $EC, getObjPreposition: the result variable gets the object's preposition, the top three bits of its byte 12, or $FF when the object is not found","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":22799,"t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244},{"a":22802,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":22805,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":22807,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":22810,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":22812,"t":"code","b":[32,37,8],"m":"jsr","o":"object_preposition","oa":2085},{"a":22815,"t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327},{"a":22818,"t":"code","b":[96],"m":"rts"},{"a":22819,"l":"op_do_sentence","c":"Opcodes $19, $39 ... $F9, doSentence: verb $FC empties the sentence queue and stops the sentence script (global script 2); verb $FB drops the last queued sentence and clears the sentence line; any other verb is queued at $0954 with its two objects ($095A/$0960, $096C/$0972). A last byte of 1 then runs it at once (run_verb_script), 2 copies it into variables 26 to 29 and shows it on the sentence line, and 0 leaves it queued","t":"code","b":[238,77,9],"m":"inc","o":"a_094D","oa":2381},{"a":22822,"t":"code","b":[172,77,9],"m":"ldy","o":"a_094D","oa":2381},{"a":22825,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":22828,"t":"code","b":[201,252],"m":"cmp","o":"#$FC"},{"a":22830,"t":"code","b":[208,10],"m":"bne","o":"b_593A","oa":22842},{"a":22832,"l":"clear_sentence_queue","c":"Empties the sentence queue ($094D = $FF) and stops global script 2, the sentence script","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[23295]},{"a":22834,"t":"code","b":[141,77,9],"m":"sta","o":"a_094D","oa":2381},{"a":22837,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":22839,"t":"code","b":[76,77,77],"m":"jmp","o":"stop_script","oa":19789},{"a":22842,"l":"b_593A","t":"code","b":[201,251],"m":"cmp","o":"#$FB","x":[22830]},{"a":22844,"t":"code","b":[208,6],"m":"bne","o":"b_5944","oa":22852},{"a":22846,"t":"code","b":[206,77,9],"m":"dec","o":"a_094D","oa":2381},{"a":22849,"t":"code","b":[76,101,92],"m":"jmp","o":"reset_sentence","oa":23653},{"a":22852,"l":"b_5944","t":"code","b":[153,84,9],"m":"sta","o":"f_0954,y","oa":2388,"x":[22844]},{"a":22855,"t":"code","b":[32,12,79],"m":"jsr","o":"read_word_operand_40","oa":20236},{"a":22858,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":22861,"t":"code","b":[153,90,9],"m":"sta","o":"f_095A,y","oa":2394},{"a":22864,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":22867,"t":"code","b":[153,96,9],"m":"sta","o":"f_0960,y","oa":2400},{"a":22870,"t":"code","b":[32,4,79],"m":"jsr","o":"read_word_operand_20","oa":20228},{"a":22873,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":22876,"t":"code","b":[153,108,9],"m":"sta","o":"f_096C,y","oa":2412},{"a":22879,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":22882,"t":"code","b":[153,114,9],"m":"sta","o":"f_0972,y","oa":2418},{"a":22885,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":22888,"t":"code","b":[13,22,98],"m":"ora","o":"a_6216","oa":25110},{"a":22891,"t":"code","b":[153,102,9],"m":"sta","o":"f_0966,y","oa":2406},{"a":22894,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":22897,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":22899,"t":"code","b":[208,40],"m":"bne","o":"b_599D","oa":22941},{"a":22901,"t":"code","b":[172,77,9],"m":"ldy","o":"a_094D","oa":2381},{"a":22904,"t":"code","b":[185,84,9],"m":"lda","o":"f_0954,y","oa":2388},{"a":22907,"t":"code","b":[141,78,9],"m":"sta","o":"a_094E","oa":2382},{"a":22910,"t":"code","b":[185,90,9],"m":"lda","o":"f_095A,y","oa":2394},{"a":22913,"t":"code","b":[141,79,9],"m":"sta","o":"a_094F","oa":2383},{"a":22916,"t":"code","b":[185,96,9],"m":"lda","o":"f_0960,y","oa":2400},{"a":22919,"t":"code","b":[141,80,9],"m":"sta","o":"a_0950","oa":2384},{"a":22922,"t":"code","b":[185,108,9],"m":"lda","o":"f_096C,y","oa":2412},{"a":22925,"t":"code","b":[141,82,9],"m":"sta","o":"a_0952","oa":2386},{"a":22928,"t":"code","b":[185,114,9],"m":"lda","o":"f_0972,y","oa":2418},{"a":22931,"t":"code","b":[141,83,9],"m":"sta","o":"a_0953","oa":2387},{"a":22934,"t":"code","b":[206,77,9],"m":"dec","o":"a_094D","oa":2381},{"a":22937,"t":"code","b":[32,205,89],"m":"jsr","o":"run_verb_script","oa":22989},{"a":22940,"t":"code","b":[96],"m":"rts"},{"a":22941,"l":"b_599D","t":"code","b":[201,2],"m":"cmp","o":"#$02","x":[22899]},{"a":22943,"t":"code","b":[208,39],"m":"bne","o":"r_59C8","oa":22984},{"a":22945,"t":"code","b":[172,77,9],"m":"ldy","o":"a_094D","oa":2381},{"a":22948,"t":"code","b":[185,84,9],"m":"lda","o":"f_0954,y","oa":2388},{"a":22951,"t":"code","b":[141,136,254],"m":"sta","o":"a_FE88","oa":65160},{"a":22954,"t":"code","b":[185,90,9],"m":"lda","o":"f_095A,y","oa":2394},{"a":22957,"t":"code","b":[141,137,254],"m":"sta","o":"a_FE89","oa":65161},{"a":22960,"t":"code","b":[185,96,9],"m":"lda","o":"f_0960,y","oa":2400},{"a":22963,"t":"code","b":[141,138,253],"m":"sta","o":"a_FD8A","oa":64906},{"a":22966,"t":"code","b":[185,108,9],"m":"lda","o":"f_096C,y","oa":2412},{"a":22969,"t":"code","b":[141,138,254],"m":"sta","o":"a_FE8A","oa":65162},{"a":22972,"t":"code","b":[185,114,9],"m":"lda","o":"f_0972,y","oa":2418},{"a":22975,"t":"code","b":[141,139,253],"m":"sta","o":"a_FD8B","oa":64907},{"a":22978,"t":"code","b":[206,77,9],"m":"dec","o":"a_094D","oa":2381},{"a":22981,"t":"code","b":[32,160,6],"m":"jsr","o":"draw_sentence_line","oa":1696},{"a":22984,"l":"r_59C8","t":"code","b":[96],"m":"rts","x":[22943]},{"a":22985,"l":"op_draw_sentence","c":"Opcode $AC, drawSentence: redraws the sentence line from variables 26 to 29 (draw_sentence_line)","t":"code","b":[32,160,6],"m":"jsr","o":"draw_sentence_line","oa":1696},{"a":22988,"t":"code","b":[96],"m":"rts"},{"a":22989,"l":"run_verb_script","c":"Runs the verb script of the object in $094F/$0950 for the verb in $094E, as a sentence: finds the object, in the inventory or in the room; verb $FE stops that object's scripts instead; $FD and $FA mark the script's kind with bit 7 (and bit 6), which other code reads as a script that the sentence does not own. Takes the slot already running a script of that object, or a free one, looks up the verb in the object's verb table (find_verb_entry) and does nothing when it is missing; otherwise sets the slot to start there and, but for $FD, puts the verb and the two objects in variables 8, 9 and 10, then runs it at once (run_nested)","t":"code","b":[174,79,9],"m":"ldx","o":"a_094F","oa":2383,"x":[22937]},{"a":22992,"t":"code","b":[173,80,9],"m":"lda","o":"a_0950","oa":2384},{"a":22995,"t":"code","b":[32,103,7],"m":"jsr","o":"find_object","oa":1895},{"a":22998,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":23000,"t":"code","b":[208,1],"m":"bne","o":"b_59DB","oa":23003},{"a":23002,"t":"code","b":[96],"m":"rts"},{"a":23003,"l":"b_59DB","t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189,"x":[23000]},{"a":23005,"t":"code","b":[132,190],"m":"sty","o":"zpa_BE","oa":190},{"a":23007,"t":"code","b":[173,78,9],"m":"lda","o":"a_094E","oa":2382},{"a":23010,"t":"code","b":[201,253],"m":"cmp","o":"#$FD"},{"a":23012,"t":"code","b":[208,6],"m":"bne","o":"b_59EC","oa":23020},{"a":23014,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":23016,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":23018,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":23020,"l":"b_59EC","t":"code","b":[173,78,9],"m":"lda","o":"a_094E","oa":2382,"x":[23012]},{"a":23023,"t":"code","b":[201,250],"m":"cmp","o":"#$FA"},{"a":23025,"t":"code","b":[208,11],"m":"bne","o":"b_59FE","oa":23038},{"a":23027,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":23029,"t":"code","b":[9,192],"m":"ora","o":"#$C0"},{"a":23031,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":23033,"t":"code","b":[169,253],"m":"lda","o":"#$FD"},{"a":23035,"t":"code","b":[141,78,9],"m":"sta","o":"a_094E","oa":2382},{"a":23038,"l":"b_59FE","t":"code","b":[173,78,9],"m":"lda","o":"a_094E","oa":2382,"x":[23025]},{"a":23041,"t":"code","b":[201,254],"m":"cmp","o":"#$FE"},{"a":23043,"t":"code","b":[208,9],"m":"bne","o":"b_5A0E","oa":23054},{"a":23045,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":23047,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":23049,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":23051,"t":"code","b":[76,153,90],"m":"jmp","o":"stop_object_scripts","oa":23193},{"a":23054,"l":"b_5A0E","t":"code","b":[162,19],"m":"ldx","o":"#$13","x":[23043]},{"a":23056,"l":"b_5A10","t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189,"x":[23074]},{"a":23058,"t":"code","b":[221,202,104],"m":"cmp","o":"f_68CA,x","oa":26826},{"a":23061,"t":"code","b":[208,10],"m":"bne","o":"b_5A21","oa":23073},{"a":23063,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":23065,"t":"code","b":[221,222,104],"m":"cmp","o":"f_68DE,x","oa":26846},{"a":23068,"t":"code","b":[208,3],"m":"bne","o":"b_5A21","oa":23073},{"a":23070,"t":"code","b":[76,39,90],"m":"jmp","o":"j_5A27","oa":23079},{"a":23073,"l":"b_5A21","t":"code","b":[202],"m":"dex","x":[23061,23068]},{"a":23074,"t":"code","b":[208,236],"m":"bne","o":"b_5A10","oa":23056},{"a":23076,"t":"code","b":[32,213,77],"m":"jsr","o":"find_free_slot","oa":19925},{"a":23079,"l":"j_5A27","t":"code","b":[134,191],"m":"stx","o":"zpa_BF","oa":191,"x":[23070]},{"a":23081,"t":"code","b":[173,78,9],"m":"lda","o":"a_094E","oa":2382},{"a":23084,"t":"code","b":[32,123,90],"m":"jsr","o":"find_verb_entry","oa":23163},{"a":23087,"t":"code","b":[240,72],"m":"beq","o":"r_5A79","oa":23161},{"a":23089,"t":"code","b":[166,191],"m":"ldx","o":"zpa_BF","oa":191},{"a":23091,"t":"code","b":[24],"m":"clc"},{"a":23092,"t":"code","b":[101,23],"m":"adc","o":"zpa_17","oa":23},{"a":23094,"t":"code","b":[157,102,104],"m":"sta","o":"f_6866,x","oa":26726},{"a":23097,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23099,"t":"code","b":[101,24],"m":"adc","o":"zpa_18","oa":24},{"a":23101,"t":"code","b":[157,82,104],"m":"sta","o":"f_6852,x","oa":26706},{"a":23104,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":23106,"t":"code","b":[157,222,104],"m":"sta","o":"f_68DE,x","oa":26846},{"a":23109,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":23111,"t":"code","b":[157,202,104],"m":"sta","o":"f_68CA,x","oa":26826},{"a":23114,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":23116,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":23119,"t":"code","b":[173,78,9],"m":"lda","o":"a_094E","oa":2382},{"a":23122,"t":"code","b":[201,253],"m":"cmp","o":"#$FD"},{"a":23124,"t":"code","b":[240,32],"m":"beq","o":"b_5A76","oa":23158},{"a":23126,"t":"code","b":[141,118,254],"m":"sta","o":"a_FE76","oa":65142},{"a":23129,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23131,"t":"code","b":[141,119,253],"m":"sta","o":"a_FD77","oa":64887},{"a":23134,"t":"code","b":[173,79,9],"m":"lda","o":"a_094F","oa":2383},{"a":23137,"t":"code","b":[141,119,254],"m":"sta","o":"a_FE77","oa":65143},{"a":23140,"t":"code","b":[173,80,9],"m":"lda","o":"a_0950","oa":2384},{"a":23143,"t":"code","b":[141,120,253],"m":"sta","o":"a_FD78","oa":64888},{"a":23146,"t":"code","b":[173,82,9],"m":"lda","o":"a_0952","oa":2386},{"a":23149,"t":"code","b":[141,120,254],"m":"sta","o":"a_FE78","oa":65144},{"a":23152,"t":"code","b":[173,83,9],"m":"lda","o":"a_0953","oa":2387},{"a":23155,"t":"code","b":[141,121,253],"m":"sta","o":"a_FD79","oa":64889},{"a":23158,"l":"b_5A76","t":"code","b":[32,242,77],"m":"jsr","o":"run_nested","oa":19954,"x":[23124]},{"a":23161,"l":"r_5A79","t":"code","b":[96],"m":"rts","x":[23087]},{"a":23162,"l":"a_5A7A","c":"The verb find_verb_entry looks for","t":"byte","b":[0],"x":[23163,23184]},{"a":23163,"l":"find_verb_entry","c":"Looks up verb A in the object's verb table, pairs of verb and offset from its byte 15 to a zero; an entry for verb $FF matches any verb. Returns the entry's offset into the object's record, or 0 (zero set) when the verb is not there","t":"code","b":[141,122,90],"m":"sta","o":"a_5A7A","oa":23162,"x":[2200,23084]},{"a":23166,"t":"code","b":[160,13],"m":"ldy","o":"#$0D"},{"a":23168,"l":"b_5A80","t":"code","b":[200],"m":"iny","x":[23187]},{"a":23169,"t":"code","b":[200],"m":"iny"},{"a":23170,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":23172,"t":"code","b":[208,3],"m":"bne","o":"b_5A89","oa":23177},{"a":23174,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23176,"t":"code","b":[96],"m":"rts"},{"a":23177,"l":"b_5A89","t":"code","b":[201,255],"m":"cmp","o":"#$FF","x":[23172]},{"a":23179,"t":"code","b":[208,3],"m":"bne","o":"b_5A90","oa":23184},{"a":23181,"t":"code","b":[76,149,90],"m":"jmp","o":"j_5A95","oa":23189},{"a":23184,"l":"b_5A90","t":"code","b":[205,122,90],"m":"cmp","o":"a_5A7A","oa":23162,"x":[23179]},{"a":23187,"t":"code","b":[208,235],"m":"bne","o":"b_5A80","oa":23168},{"a":23189,"l":"j_5A95","t":"code","b":[200],"m":"iny","x":[23181]},{"a":23190,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":23192,"t":"code","b":[96],"m":"rts"},{"a":23193,"l":"stop_object_scripts","c":"For verb $FE: frees every slot from 19 to 1 that runs a script of this object (its kind, without bit 6, and its number match)","t":"code","b":[162,19],"m":"ldx","o":"#$13","x":[23051]},{"a":23195,"l":"b_5A9B","t":"code","b":[189,202,104],"m":"lda","o":"f_68CA,x","oa":26826,"x":[23217]},{"a":23198,"t":"code","b":[41,191],"m":"and","o":"#$BF"},{"a":23200,"t":"code","b":[197,189],"m":"cmp","o":"zpa_BD","oa":189},{"a":23202,"t":"code","b":[208,12],"m":"bne","o":"b_5AB0","oa":23216},{"a":23204,"t":"code","b":[189,222,104],"m":"lda","o":"f_68DE,x","oa":26846},{"a":23207,"t":"code","b":[197,190],"m":"cmp","o":"zpa_BE","oa":190},{"a":23209,"t":"code","b":[208,5],"m":"bne","o":"b_5AB0","oa":23216},{"a":23211,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23213,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":23216,"l":"b_5AB0","t":"code","b":[202],"m":"dex","x":[23202,23209]},{"a":23217,"t":"code","b":[208,232],"m":"bne","o":"b_5A9B","oa":23195},{"a":23219,"t":"code","b":[96],"m":"rts"},{"a":23220,"l":"freeze_scripts","c":"Sets bit 7 of the status of every script slot, but the current one, that is in use and whose kind lacks bit 6: a status with bit 7 set no longer counts as running","t":"code","b":[162,19],"m":"ldx","o":"#$13","x":[23544]},{"a":23222,"l":"b_5AB6","t":"code","b":[236,81,104],"m":"cpx","o":"current_slot","oa":26705,"x":[23250]},{"a":23225,"t":"code","b":[240,22],"m":"beq","o":"b_5AD1","oa":23249},{"a":23227,"t":"code","b":[189,122,104],"m":"lda","o":"f_687A,x","oa":26746},{"a":23230,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":23232,"t":"code","b":[240,15],"m":"beq","o":"b_5AD1","oa":23249},{"a":23234,"t":"code","b":[189,202,104],"m":"lda","o":"f_68CA,x","oa":26826},{"a":23237,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":23239,"t":"code","b":[208,8],"m":"bne","o":"b_5AD1","oa":23249},{"a":23241,"t":"code","b":[189,122,104],"m":"lda","o":"f_687A,x","oa":26746},{"a":23244,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":23246,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":23249,"l":"b_5AD1","t":"code","b":[202],"m":"dex","x":[23225,23232,23239]},{"a":23250,"t":"code","b":[208,226],"m":"bne","o":"b_5AB6","oa":23222},{"a":23252,"t":"code","b":[96],"m":"rts"},{"a":23253,"l":"unfreeze_scripts","c":"Clears bit 7 of every slot's status, so frozen scripts run again","t":"code","b":[162,19],"m":"ldx","o":"#$13","x":[23538]},{"a":23255,"l":"b_5AD7","t":"code","b":[189,122,104],"m":"lda","o":"f_687A,x","oa":26746,"x":[23264]},{"a":23258,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":23260,"t":"code","b":[157,122,104],"m":"sta","o":"f_687A,x","oa":26746},{"a":23263,"t":"code","b":[202],"m":"dex"},{"a":23264,"t":"code","b":[208,245],"m":"bne","o":"b_5AD7","oa":23255},{"a":23266,"t":"code","b":[96],"m":"rts"},{"a":23267,"l":"op_cutscene","c":"Opcode $40, cutscene: keeps the interface's state ($FF71 in $FF74), the cursor's (variable 21 in $FF73) and the room ($FF75); sets variable 21 to 200, hides the verbs, the inventory and the cursor and freezes the other scripts (set_user_state, $0F), empties the sentence queue, clears the sentence, and keeps the current slot ($FF6F) with no override yet ($FF6D/$FF6E = 0)","t":"code","b":[173,113,255],"m":"lda","o":"user_state","oa":65393},{"a":23270,"t":"code","b":[141,116,255],"m":"sta","o":"a_FF74","oa":65396},{"a":23273,"t":"code","b":[173,131,254],"m":"lda","o":"a_FE83","oa":65155},{"a":23276,"t":"code","b":[141,115,255],"m":"sta","o":"a_FF73","oa":65395},{"a":23279,"t":"code","b":[173,3,105],"m":"lda","o":"current_room","oa":26883},{"a":23282,"t":"code","b":[141,117,255],"m":"sta","o":"a_FF75","oa":65397},{"a":23285,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":23287,"t":"code","b":[141,131,254],"m":"sta","o":"a_FE83","oa":65155},{"a":23290,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":23292,"t":"code","b":[32,206,91],"m":"jsr","o":"set_user_state","oa":23502},{"a":23295,"t":"code","b":[32,48,89],"m":"jsr","o":"clear_sentence_queue","oa":22832},{"a":23298,"t":"code","b":[32,101,92],"m":"jsr","o":"reset_sentence","oa":23653},{"a":23301,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23303,"t":"code","b":[141,19,252],"m":"sta","o":"a_FC13","oa":64531},{"a":23306,"t":"code","b":[141,45,252],"m":"sta","o":"a_FC2D","oa":64557},{"a":23309,"t":"code","b":[173,81,104],"m":"lda","o":"current_slot","oa":26705},{"a":23312,"t":"code","b":[141,111,255],"m":"sta","o":"a_FF6F","oa":65391},{"a":23315,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23317,"t":"code","b":[141,109,255],"m":"sta","o":"a_FF6D","oa":65389},{"a":23320,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23322,"t":"code","b":[141,110,255],"m":"sta","o":"a_FF6E","oa":65390},{"a":23325,"t":"code","b":[96],"m":"rts"},{"a":23326,"l":"op_end_cutscene","c":"Opcode $C0, endCutscene: clears variable 5 (the override) and what the cut-scene kept of the override and its slot, gives variable 21 back its value, sets the interface back as it was (set_user_state with the kept state and bits 0 to 2) and has the camera follow the current actor again ($5B6C)","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23328,"t":"code","b":[141,115,254],"m":"sta","o":"a_FE73","oa":65139},{"a":23331,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23333,"t":"code","b":[141,116,253],"m":"sta","o":"a_FD74","oa":64884},{"a":23336,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23338,"t":"code","b":[141,111,255],"m":"sta","o":"a_FF6F","oa":65391},{"a":23341,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23343,"t":"code","b":[141,112,255],"m":"sta","o":"a_FF70","oa":65392},{"a":23346,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23348,"t":"code","b":[141,109,255],"m":"sta","o":"a_FF6D","oa":65389},{"a":23351,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23353,"t":"code","b":[141,110,255],"m":"sta","o":"a_FF6E","oa":65390},{"a":23356,"t":"code","b":[173,115,255],"m":"lda","o":"a_FF73","oa":65395},{"a":23359,"t":"code","b":[141,131,254],"m":"sta","o":"a_FE83","oa":65155},{"a":23362,"t":"code","b":[173,116,255],"m":"lda","o":"a_FF74","oa":65396},{"a":23365,"t":"code","b":[9,7],"m":"ora","o":"#$07"},{"a":23367,"t":"code","b":[32,206,91],"m":"jsr","o":"set_user_state","oa":23502},{"a":23370,"t":"code","b":[173,110,254],"m":"lda","o":"a_FE6E","oa":65134},{"a":23373,"t":"code","b":[32,108,91],"m":"jsr","o":"camera_follow_actor_refresh","oa":23404},{"a":23376,"t":"code","b":[96],"m":"rts"},{"a":23377,"l":"op_set_camera_at","c":"Opcodes $32 and $B2, setCameraAt: sets the camera's mode ($CBC6) to 3 and moves it to the X column the operand gives ($CB82)","t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":23379,"t":"code","b":[141,198,203],"m":"sta","o":"a_CBC6","oa":52166},{"a":23382,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":23385,"t":"code","b":[32,130,203],"m":"jsr","o":"set_camera_at","oa":52098},{"a":23388,"t":"code","b":[96],"m":"rts"},{"a":23389,"l":"op_pan_camera_to","c":"Opcodes $12 and $92, panCameraTo: sets the camera's mode to 3 and its destination ($CBC8) to the operand, for the camera code to move towards","t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":23391,"t":"code","b":[141,198,203],"m":"sta","o":"a_CBC6","oa":52166},{"a":23394,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":23397,"t":"code","b":[141,200,203],"m":"sta","o":"camera_target","oa":52168},{"a":23400,"t":"code","b":[96],"m":"rts"},{"a":23401,"l":"op_actor_follow_camera","c":"Opcodes $52 and $D2, actorFollowCamera: makes the camera follow the actor named by the operand (camera_follow_actor), then finds the current script again","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":23404,"l":"camera_follow_actor_refresh","c":"camera_follow_actor for actor A, then finds the current script again (the room may have been loaded)","t":"code","b":[32,115,91],"m":"jsr","o":"camera_follow_actor","oa":23411,"x":[21801,23373]},{"a":23407,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":23410,"t":"code","b":[96],"m":"rts"},{"a":23411,"l":"camera_follow_actor","c":"Puts the camera in mode 2, following actor A ($CBC7): when the actor is in another room, enters that room ($D61E, enter_room) and puts the camera on the actor's X; then sets the camera there ($CB82) and counts every actor slot's redraw counter ($FD22) up by two, so all four are drawn again","t":"code","b":[141,199,203],"m":"sta","o":"a_CBC7","oa":52167,"x":[23404]},{"a":23414,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":23416,"t":"code","b":[141,198,203],"m":"sta","o":"a_CBC6","oa":52166},{"a":23419,"t":"code","b":[174,199,203],"m":"ldx","o":"a_CBC7","oa":52167},{"a":23422,"t":"code","b":[189,157,255],"m":"lda","o":"f_FF9D,x","oa":65437},{"a":23425,"t":"code","b":[205,3,105],"m":"cmp","o":"current_room","oa":26883},{"a":23428,"t":"code","b":[240,21],"m":"beq","o":"b_5B9B","oa":23451},{"a":23430,"t":"code","b":[72],"m":"pha"},{"a":23431,"t":"code","b":[32,30,214],"m":"jsr","o":"close_room","oa":54814},{"a":23434,"t":"code","b":[104],"m":"pla"},{"a":23435,"t":"code","b":[170],"m":"tax"},{"a":23436,"t":"code","b":[32,56,42],"m":"jsr","o":"enter_room","oa":10808},{"a":23439,"t":"code","b":[174,199,203],"m":"ldx","o":"a_CBC7","oa":52167},{"a":23442,"t":"code","b":[188,86,253],"m":"ldy","o":"f_FD56,x","oa":64854},{"a":23445,"t":"code","b":[185,230,252],"m":"lda","o":"f_FCE6,y","oa":64742},{"a":23448,"t":"code","b":[141,194,203],"m":"sta","o":"camera_x","oa":52162},{"a":23451,"l":"b_5B9B","t":"code","b":[174,199,203],"m":"ldx","o":"a_CBC7","oa":52167,"x":[23428]},{"a":23454,"t":"code","b":[188,86,253],"m":"ldy","o":"f_FD56,x","oa":64854},{"a":23457,"t":"code","b":[185,230,252],"m":"lda","o":"f_FCE6,y","oa":64742},{"a":23460,"t":"code","b":[32,130,203],"m":"jsr","o":"set_camera_at","oa":52098},{"a":23463,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":23465,"l":"b_5BA9","t":"code","b":[189,78,253],"m":"lda","o":"f_FD4E,x","oa":64846,"x":[23477]},{"a":23468,"t":"code","b":[48,6],"m":"bmi","o":"b_5BB4","oa":23476},{"a":23470,"t":"code","b":[254,34,253],"m":"inc","o":"f_FD22,x","oa":64802},{"a":23473,"t":"code","b":[254,34,253],"m":"inc","o":"f_FD22,x","oa":64802},{"a":23476,"l":"b_5BB4","t":"code","b":[202],"m":"dex","x":[23468]},{"a":23477,"t":"code","b":[16,242],"m":"bpl","o":"b_5BA9","oa":23465},{"a":23479,"t":"code","b":[96],"m":"rts"},{"a":23480,"l":"op_cursor_command","c":"Opcodes $60 and $E0, cursorCommand: reads a word; a low byte other than 0 becomes variable 21, the cursor's state, and the high byte goes to set_user_state","t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244},{"a":23483,"t":"code","b":[173,21,98],"m":"lda","o":"a_6215","oa":25109},{"a":23486,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":23488,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":23491,"t":"code","b":[133,190],"m":"sta","o":"zpa_BE","oa":190},{"a":23493,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":23495,"t":"code","b":[240,3],"m":"beq","o":"b_5BCC","oa":23500},{"a":23497,"t":"code","b":[141,131,254],"m":"sta","o":"a_FE83","oa":65155},{"a":23500,"l":"b_5BCC","t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190,"x":[23495]},{"a":23502,"l":"set_user_state","c":"Changes the interface's state in user_state ($FF71) by the bits of A: bit 2 copies bits 5 to 7 (the sentence line, the inventory, the verbs) into it; bit 0 freezes the other scripts (bit 3 set) or lets them run again; bit 1 copies bit 4, the cursor shown or hidden, and sets $1161/$1162 to 1 when it is hidden and 0 when shown. Then clears rows 18 to 24, redraws the verbs ($F261) and the inventory ($F380) with the chips banked in, and redraws the sentence line","t":"code","b":[133,190],"m":"sta","o":"zpa_BE","oa":190,"x":[23292,23367]},{"a":23504,"t":"code","b":[41,4],"m":"and","o":"#$04"},{"a":23506,"t":"code","b":[240,18],"m":"beq","o":"b_5BE6","oa":23526},{"a":23508,"t":"code","b":[173,113,255],"m":"lda","o":"user_state","oa":65393},{"a":23511,"t":"code","b":[41,31],"m":"and","o":"#$1F"},{"a":23513,"t":"code","b":[141,113,255],"m":"sta","o":"user_state","oa":65393},{"a":23516,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":23518,"t":"code","b":[41,224],"m":"and","o":"#$E0"},{"a":23520,"t":"code","b":[13,113,255],"m":"ora","o":"user_state","oa":65393},{"a":23523,"t":"code","b":[141,113,255],"m":"sta","o":"user_state","oa":65393},{"a":23526,"l":"b_5BE6","t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190,"x":[23506]},{"a":23528,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":23530,"t":"code","b":[240,15],"m":"beq","o":"b_5BFB","oa":23547},{"a":23532,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":23534,"t":"code","b":[41,8],"m":"and","o":"#$08"},{"a":23536,"t":"code","b":[208,6],"m":"bne","o":"b_5BF8","oa":23544},{"a":23538,"t":"code","b":[32,213,90],"m":"jsr","o":"unfreeze_scripts","oa":23253},{"a":23541,"t":"code","b":[76,251,91],"m":"jmp","o":"b_5BFB","oa":23547},{"a":23544,"l":"b_5BF8","t":"code","b":[32,180,90],"m":"jsr","o":"freeze_scripts","oa":23220,"x":[23536]},{"a":23547,"l":"b_5BFB","t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190,"x":[23530,23541]},{"a":23549,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":23551,"t":"code","b":[240,43],"m":"beq","o":"b_5C2C","oa":23596},{"a":23553,"t":"code","b":[173,113,255],"m":"lda","o":"user_state","oa":65393},{"a":23556,"t":"code","b":[41,239],"m":"and","o":"#$EF"},{"a":23558,"t":"code","b":[141,113,255],"m":"sta","o":"user_state","oa":65393},{"a":23561,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":23563,"t":"code","b":[41,16],"m":"and","o":"#$10"},{"a":23565,"t":"code","b":[13,113,255],"m":"ora","o":"user_state","oa":65393},{"a":23568,"t":"code","b":[141,113,255],"m":"sta","o":"user_state","oa":65393},{"a":23571,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":23573,"t":"code","b":[41,16],"m":"and","o":"#$10"},{"a":23575,"t":"code","b":[208,11],"m":"bne","o":"b_5C24","oa":23588},{"a":23577,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":23579,"t":"code","b":[141,97,17],"m":"sta","o":"a_1161","oa":4449},{"a":23582,"t":"code","b":[141,98,17],"m":"sta","o":"a_1162","oa":4450},{"a":23585,"t":"code","b":[76,44,92],"m":"jmp","o":"b_5C2C","oa":23596},{"a":23588,"l":"b_5C24","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[23575]},{"a":23590,"t":"code","b":[141,97,17],"m":"sta","o":"a_1161","oa":4449},{"a":23593,"t":"code","b":[141,98,17],"m":"sta","o":"a_1162","oa":4450},{"a":23596,"l":"b_5C2C","t":"code","b":[32,79,92],"m":"jsr","o":"clear_interface_rows","oa":23631,"x":[23551,23585]},{"a":23599,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":23601,"t":"code","b":[141,114,255],"m":"sta","o":"interface_drawing","oa":65394},{"a":23604,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":23606,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":23608,"t":"code","b":[32,97,242],"m":"jsr","o":"draw_interface","oa":62049},{"a":23611,"t":"code","b":[32,128,243],"m":"jsr","o":"redraw_inventory","oa":62336},{"a":23614,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":23616,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":23618,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":23620,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":23622,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23624,"t":"code","b":[141,114,255],"m":"sta","o":"interface_drawing","oa":65394},{"a":23627,"t":"code","b":[32,160,6],"m":"jsr","o":"draw_sentence_line","oa":1696},{"a":23630,"t":"code","b":[96],"m":"rts"},{"a":23631,"l":"clear_interface_rows","c":"Fills screen rows 18 to 24 ($CED0, 280 bytes) with spaces ($20)","t":"code","b":[169,208],"m":"lda","o":"#$D0","x":[23596,24418]},{"a":23633,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":23635,"t":"code","b":[169,206],"m":"lda","o":"#$CE"},{"a":23637,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":23639,"t":"code","b":[169,24],"m":"lda","o":"#$18"},{"a":23641,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":23643,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":23645,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":23647,"t":"code","b":[162,32],"m":"ldx","o":"#$20"},{"a":23649,"t":"code","b":[32,230,75],"m":"jsr","o":"fill_bytes","oa":19430},{"a":23652,"t":"code","b":[96],"m":"rts"},{"a":23653,"l":"reset_sentence","c":"Empties the sentence: no objects or preposition in variables 27 to 29, and variable 26, the verb, back to variable 38's (the default verb, Walk to)","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[10816,21814,22849,23298]},{"a":23655,"t":"code","b":[141,137,254],"m":"sta","o":"a_FE89","oa":65161},{"a":23658,"t":"code","b":[141,138,253],"m":"sta","o":"a_FD8A","oa":64906},{"a":23661,"t":"code","b":[141,138,254],"m":"sta","o":"a_FE8A","oa":65162},{"a":23664,"t":"code","b":[141,139,253],"m":"sta","o":"a_FD8B","oa":64907},{"a":23667,"t":"code","b":[141,139,254],"m":"sta","o":"a_FE8B","oa":65163},{"a":23670,"t":"code","b":[173,148,254],"m":"lda","o":"a_FE94","oa":65172},{"a":23673,"t":"code","b":[141,136,254],"m":"sta","o":"a_FE88","oa":65160},{"a":23676,"t":"code","b":[96],"m":"rts"},{"a":23677,"l":"op_get_actor_costume","c":"Opcodes $71 and $F1, getActorCostume: the result variable gets the actor's costume ($FF90)","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":23680,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":23683,"t":"code","b":[170],"m":"tax"},{"a":23684,"t":"code","b":[189,144,255],"m":"lda","o":"actor_costume,x","oa":65424},{"a":23687,"t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327},{"a":23690,"t":"code","b":[96],"m":"rts"},{"a":23691,"l":"op_get_actor_room","c":"Opcodes $03 and $83, getActorRoom: the result variable gets the room the actor is in ($FF9D)","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":23694,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":23697,"t":"code","b":[170],"m":"tax"},{"a":23698,"t":"code","b":[189,157,255],"m":"lda","o":"f_FF9D,x","oa":65437},{"a":23701,"t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327},{"a":23704,"t":"code","b":[96],"m":"rts"},{"a":23705,"l":"op_get_actor_x","c":"Opcodes $43 and $C3, getActorX: the result variable gets the actor's X from its walk record ($FCE6) when it is in the room. For one that is not, it reads $FFB7 indexed by Y, which holds $FF, not by the actor: the read wraps round to $00B6","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":23708,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":23711,"t":"code","b":[170],"m":"tax"},{"a":23712,"t":"code","b":[188,86,253],"m":"ldy","o":"f_FD56,x","oa":64854},{"a":23715,"t":"code","b":[48,6],"m":"bmi","o":"b_5CAB","oa":23723},{"a":23717,"t":"code","b":[185,230,252],"m":"lda","o":"f_FCE6,y","oa":64742},{"a":23720,"t":"code","b":[76,174,92],"m":"jmp","o":"j_5CAE","oa":23726},{"a":23723,"l":"b_5CAB","t":"code","b":[185,183,255],"m":"lda","o":"actor_x,y","oa":65463,"x":[23715]},{"a":23726,"l":"j_5CAE","t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327,"x":[23720]},{"a":23729,"t":"code","b":[96],"m":"rts"},{"a":23730,"l":"op_get_actor_y","c":"Opcodes $23 and $A3, getActorY: the same for Y ($FCEA); for an actor not in the room it reads $FFAA plus $FF, which wraps round to $00A9","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":23733,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":23736,"t":"code","b":[170],"m":"tax"},{"a":23737,"t":"code","b":[188,86,253],"m":"ldy","o":"f_FD56,x","oa":64854},{"a":23740,"t":"code","b":[48,6],"m":"bmi","o":"b_5CC4","oa":23748},{"a":23742,"t":"code","b":[185,234,252],"m":"lda","o":"f_FCEA,y","oa":64746},{"a":23745,"t":"code","b":[76,199,92],"m":"jmp","o":"j_5CC7","oa":23751},{"a":23748,"l":"b_5CC4","t":"code","b":[185,170,255],"m":"lda","o":"f_FFAA,y","oa":65450,"x":[23740]},{"a":23751,"l":"j_5CC7","t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327,"x":[23745]},{"a":23754,"t":"code","b":[96],"m":"rts"},{"a":23755,"l":"op_get_actor_elevation","c":"Opcodes $06 and $86, getActorElevation: the result variable gets the actor's height above the floor ($FFD1)","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":23758,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":23761,"t":"code","b":[170],"m":"tax"},{"a":23762,"t":"code","b":[189,209,255],"m":"lda","o":"f_FFD1,x","oa":65489},{"a":23765,"t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327},{"a":23768,"t":"code","b":[96],"m":"rts"},{"a":23769,"l":"op_get_actor_walk_box","c":"Opcodes $7B and $FB, getActorWalkBox: the result variable gets the walk box the actor stands in ($FD06 of its walk record), or $FF when it is not in the room","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":23772,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":23775,"t":"code","b":[170],"m":"tax"},{"a":23776,"t":"code","b":[188,86,253],"m":"ldy","o":"f_FD56,x","oa":64854},{"a":23779,"t":"code","b":[16,5],"m":"bpl","o":"b_5CEA","oa":23786},{"a":23781,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":23783,"t":"code","b":[76,237,92],"m":"jmp","o":"j_5CED","oa":23789},{"a":23786,"l":"b_5CEA","t":"code","b":[185,6,253],"m":"lda","o":"f_FD06,y","oa":64774,"x":[23779]},{"a":23789,"l":"j_5CED","t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327,"x":[23783]},{"a":23792,"t":"code","b":[96],"m":"rts"},{"a":23793,"l":"op_get_actor_facing","c":"Opcodes $63 and $E3, getActorFacing: the result variable gets the direction the actor faces ($FFDE)","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":23796,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":23799,"t":"code","b":[170],"m":"tax"},{"a":23800,"t":"code","b":[189,222,255],"m":"lda","o":"actor_facing,x","oa":65502},{"a":23803,"t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327},{"a":23806,"t":"code","b":[96],"m":"rts"},{"a":23807,"l":"op_face_actor","c":"Opcodes $09, $49, $89 and $C9, faceActor: when the actor is in the room, turns it towards the object or actor ($08A4): 1 when the target is to the right and 0 when it is to the left; within two columns, 2 when the target is lower on the screen and 3 when it is higher. The new direction goes in $FD16 and bit 7 of $FCF6 asks for the turn","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":23810,"t":"code","b":[133,229],"m":"sta","o":"zpa_E5","oa":229},{"a":23812,"t":"code","b":[32,12,79],"m":"jsr","o":"read_word_operand_40","oa":20236},{"a":23815,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":23818,"t":"code","b":[174,21,98],"m":"ldx","o":"a_6215","oa":25109},{"a":23821,"t":"code","b":[32,164,8],"m":"jsr","o":"object_or_actor_xy","oa":2212},{"a":23824,"t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229},{"a":23826,"t":"code","b":[185,86,253],"m":"lda","o":"f_FD56,y","oa":64854},{"a":23829,"t":"code","b":[16,1],"m":"bpl","o":"b_5D18","oa":23832},{"a":23831,"t":"code","b":[96],"m":"rts"},{"a":23832,"l":"b_5D18","t":"code","b":[168],"m":"tay","x":[23829]},{"a":23833,"t":"code","b":[173,24,252],"m":"lda","o":"a_FC18","oa":64536},{"a":23836,"t":"code","b":[56],"m":"sec"},{"a":23837,"t":"code","b":[249,230,252],"m":"sbc","o":"f_FCE6,y","oa":64742},{"a":23840,"t":"code","b":[72],"m":"pha"},{"a":23841,"t":"code","b":[144,7],"m":"bcc","o":"b_5D2A","oa":23850},{"a":23843,"t":"code","b":[240,5],"m":"beq","o":"b_5D2A","oa":23850},{"a":23845,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":23847,"t":"code","b":[76,44,93],"m":"jmp","o":"j_5D2C","oa":23852},{"a":23850,"l":"b_5D2A","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[23841,23843]},{"a":23852,"l":"j_5D2C","t":"code","b":[153,22,253],"m":"sta","o":"f_FD16,y","oa":64790,"x":[23847]},{"a":23855,"t":"code","b":[104],"m":"pla"},{"a":23856,"t":"code","b":[16,5],"m":"bpl","o":"b_5D37","oa":23863},{"a":23858,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":23860,"t":"code","b":[24],"m":"clc"},{"a":23861,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":23863,"l":"b_5D37","t":"code","b":[201,2],"m":"cmp","o":"#$02","x":[23856]},{"a":23865,"t":"code","b":[240,2],"m":"beq","o":"b_5D3D","oa":23869},{"a":23867,"t":"code","b":[176,21],"m":"bcs","o":"b_5D52","oa":23890},{"a":23869,"l":"b_5D3D","t":"code","b":[173,25,252],"m":"lda","o":"a_FC19","oa":64537,"x":[23865]},{"a":23872,"t":"code","b":[56],"m":"sec"},{"a":23873,"t":"code","b":[249,234,252],"m":"sbc","o":"f_FCEA,y","oa":64746},{"a":23876,"t":"code","b":[144,7],"m":"bcc","o":"b_5D4D","oa":23885},{"a":23878,"t":"code","b":[240,5],"m":"beq","o":"b_5D4D","oa":23885},{"a":23880,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":23882,"t":"code","b":[76,79,93],"m":"jmp","o":"j_5D4F","oa":23887},{"a":23885,"l":"b_5D4D","t":"code","b":[169,3],"m":"lda","o":"#$03","x":[23876,23878]},{"a":23887,"l":"j_5D4F","t":"code","b":[153,22,253],"m":"sta","o":"f_FD16,y","oa":64790,"x":[23882]},{"a":23890,"l":"b_5D52","t":"code","b":[185,246,252],"m":"lda","o":"f_FCF6,y","oa":64758,"x":[23867]},{"a":23893,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":23895,"t":"code","b":[153,246,252],"m":"sta","o":"f_FCF6,y","oa":64758},{"a":23898,"t":"code","b":[96],"m":"rts"},{"a":23899,"l":"op_animate_actor","c":"Opcodes $11, $51, $91 and $D1, animateActor: reads an actor and an animation number ($FC1B). $FC-$FF stops a walking actor in the room ($1629); $F8-$FB sets the direction it faces to the low two bits at once ($208A); $F4-$F7 turns a walking actor to that direction (set at once for one not in the room); any other number starts that animation in the direction the actor faces ($208A)","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":23902,"t":"code","b":[133,229],"m":"sta","o":"zpa_E5","oa":229},{"a":23904,"t":"code","b":[168],"m":"tay"},{"a":23905,"t":"code","b":[185,86,253],"m":"lda","o":"f_FD56,y","oa":64854},{"a":23908,"t":"code","b":[133,197],"m":"sta","o":"zpa_C5","oa":197},{"a":23910,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":23913,"t":"code","b":[141,27,252],"m":"sta","o":"a_FC1B","oa":64539},{"a":23916,"t":"code","b":[41,252],"m":"and","o":"#$FC"},{"a":23918,"t":"code","b":[201,252],"m":"cmp","o":"#$FC"},{"a":23920,"t":"code","b":[208,23],"m":"bne","o":"b_5D89","oa":23945},{"a":23922,"t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229},{"a":23924,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":23926,"t":"code","b":[48,16],"m":"bmi","o":"r_5D88","oa":23944},{"a":23928,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":23930,"t":"code","b":[141,19,252],"m":"sta","o":"a_FC13","oa":64531},{"a":23933,"t":"code","b":[141,45,252],"m":"sta","o":"a_FC2D","oa":64557},{"a":23936,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":23938,"t":"code","b":[157,2,253],"m":"sta","o":"f_FD02,x","oa":64770},{"a":23941,"t":"code","b":[32,41,22],"m":"jsr","o":"stop_walking","oa":5673},{"a":23944,"l":"r_5D88","t":"code","b":[96],"m":"rts","x":[23926]},{"a":23945,"l":"b_5D89","t":"code","b":[201,248],"m":"cmp","o":"#$F8","x":[23920]},{"a":23947,"t":"code","b":[208,26],"m":"bne","o":"b_5DA7","oa":23975},{"a":23949,"l":"j_5D8D","t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197,"x":[23991]},{"a":23951,"t":"code","b":[48,11],"m":"bmi","o":"b_5D9C","oa":23964},{"a":23953,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":23956,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":23958,"t":"code","b":[157,246,252],"m":"sta","o":"f_FCF6,x","oa":64758},{"a":23961,"t":"code","b":[32,138,32],"m":"jsr","o":"start_animation","oa":8330},{"a":23964,"l":"b_5D9C","t":"code","b":[164,229],"m":"ldy","o":"zpa_E5","oa":229,"x":[23951]},{"a":23966,"t":"code","b":[173,27,252],"m":"lda","o":"a_FC1B","oa":64539},{"a":23969,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":23971,"t":"code","b":[153,222,255],"m":"sta","o":"actor_facing,y","oa":65502},{"a":23974,"t":"code","b":[96],"m":"rts"},{"a":23975,"l":"b_5DA7","t":"code","b":[201,244],"m":"cmp","o":"#$F4","x":[23947]},{"a":23977,"t":"code","b":[208,32],"m":"bne","o":"b_5DCB","oa":24011},{"a":23979,"t":"code","b":[166,197],"m":"ldx","o":"zpa_C5","oa":197},{"a":23981,"t":"code","b":[16,11],"m":"bpl","o":"b_5DBA","oa":23994},{"a":23983,"t":"code","b":[173,27,252],"m":"lda","o":"a_FC1B","oa":64539},{"a":23986,"t":"code","b":[9,248],"m":"ora","o":"#$F8"},{"a":23988,"t":"code","b":[141,27,252],"m":"sta","o":"a_FC1B","oa":64539},{"a":23991,"t":"code","b":[76,141,93],"m":"jmp","o":"j_5D8D","oa":23949},{"a":23994,"l":"b_5DBA","t":"code","b":[173,27,252],"m":"lda","o":"a_FC1B","oa":64539,"x":[23981]},{"a":23997,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":23999,"t":"code","b":[157,22,253],"m":"sta","o":"f_FD16,x","oa":64790},{"a":24002,"t":"code","b":[189,246,252],"m":"lda","o":"f_FCF6,x","oa":64758},{"a":24005,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":24007,"t":"code","b":[157,246,252],"m":"sta","o":"f_FCF6,x","oa":64758},{"a":24010,"t":"code","b":[96],"m":"rts"},{"a":24011,"l":"b_5DCB","t":"code","b":[173,27,252],"m":"lda","o":"a_FC1B","oa":64539,"x":[23977]},{"a":24014,"t":"code","b":[41,252],"m":"and","o":"#$FC"},{"a":24016,"t":"code","b":[166,229],"m":"ldx","o":"zpa_E5","oa":229},{"a":24018,"t":"code","b":[29,222,255],"m":"ora","o":"actor_facing,x","oa":65502},{"a":24021,"t":"code","b":[141,27,252],"m":"sta","o":"a_FC1B","oa":64539},{"a":24024,"t":"code","b":[32,138,32],"m":"jsr","o":"start_animation","oa":8330},{"a":24027,"t":"code","b":[96],"m":"rts"},{"a":24028,"l":"op_lights","c":"Opcodes $70 and $F0, lights: reads a value (a byte or variable) and two bytes. With a last byte of 0 the value becomes variable 12, the lights; with 1 the value and the next byte set the flashlight's width and height ($27C9 and $27CB, with 40 and 16 less them and their halves at $27CA-$27CE). Then, with the chips banked in, clears both screens' room rows when bit 1 of the lights is clear (dark), sets the sprites' shared colours (black and light red when bit 0 is set, black and dark grey when it is clear) and has the room redrawn","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":24031,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":24033,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":24036,"t":"code","b":[133,190],"m":"sta","o":"zpa_BE","oa":190},{"a":24038,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":24041,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":24043,"t":"code","b":[208,8],"m":"bne","o":"b_5DF5","oa":24053},{"a":24045,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":24047,"t":"code","b":[141,122,254],"m":"sta","o":"a_FE7A","oa":65146},{"a":24050,"t":"code","b":[76,35,94],"m":"jmp","o":"j_5E23","oa":24099},{"a":24053,"l":"b_5DF5","t":"code","b":[201,1],"m":"cmp","o":"#$01","x":[24043]},{"a":24055,"t":"code","b":[208,42],"m":"bne","o":"j_5E23","oa":24099},{"a":24057,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":24059,"t":"code","b":[141,201,39],"m":"sta","o":"a_27C9","oa":10185},{"a":24062,"t":"code","b":[169,40],"m":"lda","o":"#$28"},{"a":24064,"t":"code","b":[56],"m":"sec"},{"a":24065,"t":"code","b":[237,201,39],"m":"sbc","o":"a_27C9","oa":10185},{"a":24068,"t":"code","b":[141,202,39],"m":"sta","o":"a_27CA","oa":10186},{"a":24071,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":24073,"t":"code","b":[141,203,39],"m":"sta","o":"a_27CB","oa":10187},{"a":24076,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":24078,"t":"code","b":[56],"m":"sec"},{"a":24079,"t":"code","b":[237,203,39],"m":"sbc","o":"a_27CB","oa":10187},{"a":24082,"t":"code","b":[141,204,39],"m":"sta","o":"a_27CC","oa":10188},{"a":24085,"t":"code","b":[173,201,39],"m":"lda","o":"a_27C9","oa":10185},{"a":24088,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":24089,"t":"code","b":[141,205,39],"m":"sta","o":"a_27CD","oa":10189},{"a":24092,"t":"code","b":[173,203,39],"m":"lda","o":"a_27CB","oa":10187},{"a":24095,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":24096,"t":"code","b":[141,206,39],"m":"sta","o":"a_27CE","oa":10190},{"a":24099,"l":"j_5E23","t":"code","b":[160,37],"m":"ldy","o":"#$25","x":[24050,24055]},{"a":24101,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":24103,"t":"code","b":[173,122,254],"m":"lda","o":"a_FE7A","oa":65146},{"a":24106,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":24108,"t":"code","b":[208,3],"m":"bne","o":"b_5E31","oa":24113},{"a":24110,"t":"code","b":[32,120,78],"m":"jsr","o":"clear_screen_buffers","oa":20088},{"a":24113,"l":"b_5E31","t":"code","b":[173,122,254],"m":"lda","o":"a_FE7A","oa":65146,"x":[24108]},{"a":24116,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":24118,"t":"code","b":[208,7],"m":"bne","o":"b_5E3F","oa":24127},{"a":24120,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":24122,"t":"code","b":[162,11],"m":"ldx","o":"#$0B"},{"a":24124,"t":"code","b":[76,67,94],"m":"jmp","o":"j_5E43","oa":24131},{"a":24127,"l":"b_5E3F","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[24118]},{"a":24129,"t":"code","b":[160,10],"m":"ldy","o":"#$0A"},{"a":24131,"l":"j_5E43","t":"code","b":[140,37,208],"m":"sty","o":"vic_sprite_mc0","x":[24124]},{"a":24134,"t":"code","b":[142,38,208],"m":"stx","o":"vic_sprite_mc1"},{"a":24137,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":24139,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":24141,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":24143,"t":"code","b":[141,195,203],"m":"sta","o":"camera_drawn","oa":52163},{"a":24146,"t":"code","b":[96],"m":"rts"},{"a":24147,"l":"op_set_object_name","c":"Opcodes $54 and $D4, setObjectName: copies the zero-ended name that follows in the script over the object's name ($0720 finds it), with no check of its length, and redraws the inventory","t":"code","b":[32,20,79],"m":"jsr","o":"read_word_operand_80","oa":20244},{"a":24150,"t":"code","b":[174,21,98],"m":"ldx","o":"a_6215","oa":25109},{"a":24153,"t":"code","b":[173,22,98],"m":"lda","o":"a_6216","oa":25110},{"a":24156,"t":"code","b":[32,32,7],"m":"jsr","o":"object_name_pointer","oa":1824},{"a":24159,"t":"code","b":[160,255],"m":"ldy","o":"#$FF"},{"a":24161,"l":"b_5E61","t":"code","b":[200],"m":"iny","x":[24169]},{"a":24162,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":24165,"t":"code","b":[145,21],"m":"sta","o":"(zpa_15),y","oa":21},{"a":24167,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":24169,"t":"code","b":[208,246],"m":"bne","o":"b_5E61","oa":24161},{"a":24171,"t":"code","b":[32,98,78],"m":"jsr","o":"redraw_inventory_banked","oa":20066},{"a":24174,"t":"code","b":[96],"m":"rts"},{"a":24175,"l":"op_save_load_game","c":"Opcodes $22 and $A2, saveLoadGame: turns the picture off (video_off), sets variable 13 to $30, reads the result variable and an operand; 1 calls $0AD5 and anything else $0A53, whose answer goes in the result variable; then finds the current script again and turns the picture back on","t":"code","b":[32,243,19],"m":"jsr","o":"video_off","oa":5107},{"a":24178,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":24180,"t":"code","b":[141,123,254],"m":"sta","o":"a_FE7B","oa":65147},{"a":24183,"t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":24186,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":24189,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":24191,"t":"code","b":[208,6],"m":"bne","o":"b_5E87","oa":24199},{"a":24193,"t":"code","b":[32,213,10],"m":"jsr","o":"load_game","oa":2773},{"a":24196,"t":"code","b":[76,138,94],"m":"jmp","o":"j_5E8A","oa":24202},{"a":24199,"l":"b_5E87","t":"code","b":[32,83,10],"m":"jsr","o":"save_game","oa":2643,"x":[24191]},{"a":24202,"l":"j_5E8A","t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327,"x":[24196]},{"a":24205,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":24208,"t":"code","b":[32,47,20],"m":"jsr","o":"video_on","oa":5167},{"a":24211,"t":"code","b":[96],"m":"rts"},{"a":24212,"l":"op_stop_music","c":"Opcode $20, stopMusic: stops the music ($4332)","t":"code","b":[32,50,67],"m":"jsr","o":"stop_music","oa":17202},{"a":24215,"t":"code","b":[96],"m":"rts"},{"a":24216,"l":"op_resource_routines","c":"Opcodes $0C and $8C, resourceRoutines: reads a resource number and a byte whose high four bits give its type ($20 costume, $30 room, $50 script, $60 sound) and low four what to do: 1 loads it if it is not in memory ($2EA3, $2E2E, $2F27 or $2EE4); 4 calls $4753 with $FC14/$FC15 = $0000/$FF00; 0 does nothing; any other sets (odd) or clears (even) bit 7, the lock, of its entry in the use counts: $72BF costumes, $7344 rooms, $76F4 scripts, $753F sounds","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":24219,"t":"code","b":[133,191],"m":"sta","o":"zpa_BF","oa":191},{"a":24221,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":24224,"t":"code","b":[133,192],"m":"sta","o":"zpa_C0","oa":192},{"a":24226,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":24228,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":24230,"t":"code","b":[208,3],"m":"bne","o":"b_5EAB","oa":24235},{"a":24232,"t":"code","b":[76,71,95],"m":"jmp","o":"compare_x_steps","oa":24391},{"a":24235,"l":"b_5EAB","t":"code","b":[201,1],"m":"cmp","o":"#$01","x":[24230]},{"a":24237,"t":"code","b":[208,3],"m":"bne","o":"b_5EB2","oa":24242},{"a":24239,"t":"code","b":[76,17,95],"m":"jmp","o":"j_5F11","oa":24337},{"a":24242,"l":"b_5EB2","t":"code","b":[201,4],"m":"cmp","o":"#$04","x":[24237]},{"a":24244,"t":"code","b":[208,16],"m":"bne","o":"b_5EC6","oa":24262},{"a":24246,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":24248,"t":"code","b":[141,20,252],"m":"sta","o":"a_FC14","oa":64532},{"a":24251,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":24253,"t":"code","b":[141,21,252],"m":"sta","o":"a_FC15","oa":64533},{"a":24256,"t":"code","b":[32,83,71],"m":"jsr","o":"alloc_hard","oa":18259},{"a":24259,"t":"code","b":[76,122,76],"m":"jmp","o":"refresh_script_pointer","oa":19578},{"a":24262,"l":"b_5EC6","t":"code","b":[165,192],"m":"lda","o":"zpa_C0","oa":192,"x":[24244]},{"a":24264,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":24266,"t":"code","b":[170],"m":"tax"},{"a":24267,"t":"code","b":[224,96],"m":"cpx","o":"#$60"},{"a":24269,"t":"code","b":[208,8],"m":"bne","o":"b_5ED7","oa":24279},{"a":24271,"t":"code","b":[169,63],"m":"lda","o":"#$3F"},{"a":24273,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":24275,"t":"code","b":[169,117],"m":"lda","o":"#$75"},{"a":24277,"t":"code","b":[133,190],"m":"sta","o":"zpa_BE","oa":190},{"a":24279,"l":"b_5ED7","t":"code","b":[224,80],"m":"cpx","o":"#$50","x":[24269]},{"a":24281,"t":"code","b":[208,8],"m":"bne","o":"b_5EE3","oa":24291},{"a":24283,"t":"code","b":[169,244],"m":"lda","o":"#$F4"},{"a":24285,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":24287,"t":"code","b":[169,118],"m":"lda","o":"#$76"},{"a":24289,"t":"code","b":[133,190],"m":"sta","o":"zpa_BE","oa":190},{"a":24291,"l":"b_5EE3","t":"code","b":[224,32],"m":"cpx","o":"#$20","x":[24281]},{"a":24293,"t":"code","b":[208,8],"m":"bne","o":"b_5EEF","oa":24303},{"a":24295,"t":"code","b":[169,191],"m":"lda","o":"#$BF"},{"a":24297,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":24299,"t":"code","b":[169,114],"m":"lda","o":"#$72"},{"a":24301,"t":"code","b":[133,190],"m":"sta","o":"zpa_BE","oa":190},{"a":24303,"l":"b_5EEF","t":"code","b":[224,48],"m":"cpx","o":"#$30","x":[24293]},{"a":24305,"t":"code","b":[208,8],"m":"bne","o":"b_5EFB","oa":24315},{"a":24307,"t":"code","b":[169,68],"m":"lda","o":"#$44"},{"a":24309,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":24311,"t":"code","b":[169,115],"m":"lda","o":"#$73"},{"a":24313,"t":"code","b":[133,190],"m":"sta","o":"zpa_BE","oa":190},{"a":24315,"l":"b_5EFB","t":"code","b":[164,191],"m":"ldy","o":"zpa_BF","oa":191,"x":[24305]},{"a":24317,"t":"code","b":[165,192],"m":"lda","o":"zpa_C0","oa":192},{"a":24319,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":24321,"t":"code","b":[208,7],"m":"bne","o":"b_5F0A","oa":24330},{"a":24323,"t":"code","b":[177,189],"m":"lda","o":"(zpa_BD),y","oa":189},{"a":24325,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":24327,"t":"code","b":[145,189],"m":"sta","o":"(zpa_BD),y","oa":189},{"a":24329,"t":"code","b":[96],"m":"rts"},{"a":24330,"l":"b_5F0A","t":"code","b":[177,189],"m":"lda","o":"(zpa_BD),y","oa":189,"x":[24321]},{"a":24332,"t":"code","b":[9,128],"m":"ora","o":"#$80"},{"a":24334,"t":"code","b":[145,189],"m":"sta","o":"(zpa_BD),y","oa":189},{"a":24336,"t":"code","b":[96],"m":"rts"},{"a":24337,"l":"j_5F11","t":"code","b":[165,192],"m":"lda","o":"zpa_C0","oa":192,"x":[24239]},{"a":24339,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":24341,"t":"code","b":[170],"m":"tax"},{"a":24342,"t":"code","b":[165,191],"m":"lda","o":"zpa_BF","oa":191},{"a":24344,"t":"code","b":[224,32],"m":"cpx","o":"#$20"},{"a":24346,"t":"code","b":[208,8],"m":"bne","o":"b_5F24","oa":24356},{"a":24348,"t":"code","b":[170],"m":"tax"},{"a":24349,"t":"code","b":[32,163,46],"m":"jsr","o":"load_costume","oa":11939},{"a":24352,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":24355,"t":"code","b":[96],"m":"rts"},{"a":24356,"l":"b_5F24","t":"code","b":[224,48],"m":"cpx","o":"#$30","x":[24346]},{"a":24358,"t":"code","b":[208,8],"m":"bne","o":"b_5F30","oa":24368},{"a":24360,"t":"code","b":[170],"m":"tax"},{"a":24361,"t":"code","b":[32,46,46],"m":"jsr","o":"load_room_resource","oa":11822},{"a":24364,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":24367,"t":"code","b":[96],"m":"rts"},{"a":24368,"l":"b_5F30","t":"code","b":[224,80],"m":"cpx","o":"#$50","x":[24358]},{"a":24370,"t":"code","b":[208,7],"m":"bne","o":"b_5F3B","oa":24379},{"a":24372,"t":"code","b":[32,39,47],"m":"jsr","o":"load_script","oa":12071},{"a":24375,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":24378,"t":"code","b":[96],"m":"rts"},{"a":24379,"l":"b_5F3B","t":"code","b":[224,96],"m":"cpx","o":"#$60","x":[24370]},{"a":24381,"t":"code","b":[208,7],"m":"bne","o":"r_5F46","oa":24390},{"a":24383,"t":"code","b":[32,228,46],"m":"jsr","o":"load_sound","oa":12004},{"a":24386,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":24389,"t":"code","b":[96],"m":"rts"},{"a":24390,"l":"r_5F46","t":"code","b":[96],"m":"rts","x":[24381]},{"a":24391,"l":"compare_x_steps","c":"Low four bits 0: a row of comparisons of X with 2, 3, 5 and 6, each of whose branches goes to the next instruction; it does nothing","t":"code","b":[165,191],"m":"lda","o":"zpa_BF","oa":191,"x":[24232]},{"a":24393,"t":"code","b":[224,2],"m":"cpx","o":"#$02"},{"a":24395,"t":"code","b":[208,0],"m":"bne","o":"b_5F4D","oa":24397},{"a":24397,"l":"b_5F4D","t":"code","b":[224,3],"m":"cpx","o":"#$03","x":[24395]},{"a":24399,"t":"code","b":[208,0],"m":"bne","o":"b_5F51","oa":24401},{"a":24401,"l":"b_5F51","t":"code","b":[224,5],"m":"cpx","o":"#$05","x":[24399]},{"a":24403,"t":"code","b":[208,0],"m":"bne","o":"b_5F55","oa":24405},{"a":24405,"l":"b_5F55","t":"code","b":[224,6],"m":"cpx","o":"#$06","x":[24403]},{"a":24407,"t":"code","b":[208,0],"m":"bne","o":"r_5F59","oa":24409},{"a":24409,"l":"r_5F59","t":"code","b":[96],"m":"rts","x":[24407]},{"a":24410,"l":"op_restart","c":"Opcode $98, restart: leaves the room ($D61E), enters room 0, clears the interface rows, resets the stack and jumps back into the start-up at $0418","t":"code","b":[32,30,214],"m":"jsr","o":"close_room","oa":54814},{"a":24413,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":24415,"t":"code","b":[32,56,42],"m":"jsr","o":"enter_room","oa":10808},{"a":24418,"t":"code","b":[32,79,92],"m":"jsr","o":"clear_interface_rows","oa":23631},{"a":24421,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":24423,"t":"code","b":[154],"m":"txs"},{"a":24424,"t":"code","b":[76,24,4],"m":"jmp","o":"restart","oa":1048},{"a":24427,"l":"op_dummy","c":"Opcodes $5C and $DC: does nothing","t":"code","b":[96],"m":"rts"},{"a":24428,"l":"op_video_off","c":"Opcode $6E: turns the picture and sprites off (video_off), as the scripts do around a disk access","t":"code","b":[32,243,19],"m":"jsr","o":"video_off","oa":5107},{"a":24431,"t":"code","b":[96],"m":"rts"},{"a":24432,"l":"op_video_on","c":"Opcode $EE: turns the picture back on (video_on)","t":"code","b":[32,47,20],"m":"jsr","o":"video_on","oa":5167},{"a":24435,"t":"code","b":[96],"m":"rts"},{"a":24436,"l":"op_set_box_flags","c":"Opcodes $30 and $B0, setBoxFlags: reads a walk box and a value, and writes the value into the box's flags byte ($24DE finds it)","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":24439,"t":"code","b":[133,29],"m":"sta","o":"zpa_1D","oa":29},{"a":24441,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":24444,"t":"code","b":[72],"m":"pha"},{"a":24445,"t":"code","b":[165,29],"m":"lda","o":"zpa_1D","oa":29},{"a":24447,"t":"code","b":[32,222,36],"m":"jsr","o":"box_flags","oa":9438},{"a":24450,"t":"code","b":[104],"m":"pla"},{"a":24451,"t":"code","b":[145,235],"m":"sta","o":"(zpp_EB),y","oa":235},{"a":24453,"t":"code","b":[96],"m":"rts"},{"a":24454,"l":"op_verb_ops","c":"Opcodes $7A and $FA, verbOps: a first byte of 0 deletes the verb in a slot (a byte or variable): frees its name (free_name_block) and clears its number in $F149. Any other first byte is a new verb's number: then come its column and row, its slot, and a preposition; its name, which follows in the script, goes into a block of its own (copy_name_to_heap), and the slot gets its rows ($F0D9, $F0F5), its first and last columns ($F111, $F12D), its preposition ($F165) and its number ($F149)","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":24457,"t":"code","b":[141,25,98],"m":"sta","o":"a_6219","oa":25113},{"a":24460,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":24462,"t":"code","b":[208,24],"m":"bne","o":"b_5FA8","oa":24488},{"a":24464,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":24467,"t":"code","b":[141,28,98],"m":"sta","o":"a_621C","oa":25116},{"a":24470,"t":"code","b":[24],"m":"clc"},{"a":24471,"t":"code","b":[105,15],"m":"adc","o":"#$0F"},{"a":24473,"t":"code","b":[141,27,98],"m":"sta","o":"a_621B","oa":25115},{"a":24476,"t":"code","b":[32,248,95],"m":"jsr","o":"free_name_block","oa":24568},{"a":24479,"t":"code","b":[174,28,98],"m":"ldx","o":"a_621C","oa":25116},{"a":24482,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":24484,"t":"code","b":[157,73,241],"m":"sta","o":"slot_number,x","oa":61769},{"a":24487,"t":"code","b":[96],"m":"rts"},{"a":24488,"l":"b_5FA8","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646,"x":[24462]},{"a":24491,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":24494,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":24497,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":24500,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":24503,"t":"code","b":[141,28,98],"m":"sta","o":"a_621C","oa":25116},{"a":24506,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":24509,"t":"code","b":[141,29,98],"m":"sta","o":"a_621D","oa":25117},{"a":24512,"t":"code","b":[173,28,98],"m":"lda","o":"a_621C","oa":25116},{"a":24515,"t":"code","b":[24],"m":"clc"},{"a":24516,"t":"code","b":[105,15],"m":"adc","o":"#$0F"},{"a":24518,"t":"code","b":[141,27,98],"m":"sta","o":"a_621B","oa":25115},{"a":24521,"t":"code","b":[32,25,96],"m":"jsr","o":"copy_name_to_heap","oa":24601},{"a":24524,"t":"code","b":[174,28,98],"m":"ldx","o":"a_621C","oa":25116},{"a":24527,"t":"code","b":[173,29,98],"m":"lda","o":"a_621D","oa":25117},{"a":24530,"t":"code","b":[157,101,241],"m":"sta","o":"f_F165,x","oa":61797},{"a":24533,"t":"code","b":[173,25,252],"m":"lda","o":"a_FC19","oa":64537},{"a":24536,"t":"code","b":[157,217,240],"m":"sta","o":"slot_top,x","oa":61657},{"a":24539,"t":"code","b":[24],"m":"clc"},{"a":24540,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":24542,"t":"code","b":[157,245,240],"m":"sta","o":"slot_bottom,x","oa":61685},{"a":24545,"t":"code","b":[173,24,252],"m":"lda","o":"a_FC18","oa":64536},{"a":24548,"t":"code","b":[157,17,241],"m":"sta","o":"slot_left,x","oa":61713},{"a":24551,"t":"code","b":[24],"m":"clc"},{"a":24552,"t":"code","b":[109,26,98],"m":"adc","o":"a_621A","oa":25114},{"a":24555,"t":"code","b":[56],"m":"sec"},{"a":24556,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":24558,"t":"code","b":[157,45,241],"m":"sta","o":"slot_right,x","oa":61741},{"a":24561,"t":"code","b":[173,25,98],"m":"lda","o":"a_6219","oa":25113},{"a":24564,"t":"code","b":[157,73,241],"m":"sta","o":"slot_number,x","oa":61769},{"a":24567,"t":"code","b":[96],"m":"rts"},{"a":24568,"l":"free_name_block","c":"Frees the heap block that holds name number X ($778F high bytes, $77B2 low bytes: the actors' names from 2, the verbs' from 15) and clears its entry","t":"code","b":[174,27,98],"m":"ldx","o":"a_621B","oa":25115,"x":[24476,24604]},{"a":24571,"t":"code","b":[189,143,119],"m":"lda","o":"a_778F,x","oa":30607},{"a":24574,"t":"code","b":[29,178,119],"m":"ora","o":"a_77B2,x","oa":30642},{"a":24577,"t":"code","b":[240,21],"m":"beq","o":"r_6018","oa":24600},{"a":24579,"t":"code","b":[188,143,119],"m":"ldy","o":"a_778F,x","oa":30607},{"a":24582,"t":"code","b":[189,178,119],"m":"lda","o":"a_77B2,x","oa":30642},{"a":24585,"t":"code","b":[170],"m":"tax"},{"a":24586,"t":"code","b":[32,128,212],"m":"jsr","o":"free_block","oa":54400},{"a":24589,"t":"code","b":[174,27,98],"m":"ldx","o":"a_621B","oa":25115},{"a":24592,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":24594,"t":"code","b":[157,143,119],"m":"sta","o":"a_778F,x","oa":30607},{"a":24597,"t":"code","b":[157,178,119],"m":"sta","o":"a_77B2,x","oa":30642},{"a":24600,"l":"r_6018","t":"code","b":[96],"m":"rts","x":[24577]},{"a":24601,"l":"copy_name_to_heap","c":"Copies the zero-ended name at the script pointer into a new heap block for name number $621B: frees the old one, measures the new (its length with the zero in $621A), takes a block four bytes longer ($D472), files its address, finds the script again, copies the name in after a four-byte header (the block's size, type 4 and the name's number) and steps the script past it. An empty name gets no block","t":"code","b":[174,27,98],"m":"ldx","o":"a_621B","oa":25115,"x":[24521,24858]},{"a":24604,"t":"code","b":[32,248,95],"m":"jsr","o":"free_name_block","oa":24568},{"a":24607,"t":"code","b":[173,191,76],"m":"lda","o":"script_byte_lo","oa":19647},{"a":24610,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":24612,"t":"code","b":[173,192,76],"m":"lda","o":"script_byte_hi","oa":19648},{"a":24615,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":24617,"t":"code","b":[160,255],"m":"ldy","o":"#$FF"},{"a":24619,"l":"b_602B","t":"code","b":[200],"m":"iny","x":[24622]},{"a":24620,"t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21},{"a":24622,"t":"code","b":[208,251],"m":"bne","o":"b_602B","oa":24619},{"a":24624,"t":"code","b":[200],"m":"iny"},{"a":24625,"t":"code","b":[140,26,98],"m":"sty","o":"a_621A","oa":25114},{"a":24628,"t":"code","b":[192,1],"m":"cpy","o":"#$01"},{"a":24630,"t":"code","b":[240,96],"m":"beq","o":"b_6098","oa":24728},{"a":24632,"t":"code","b":[173,26,98],"m":"lda","o":"a_621A","oa":25114},{"a":24635,"t":"code","b":[24],"m":"clc"},{"a":24636,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":24638,"t":"code","b":[170],"m":"tax"},{"a":24639,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":24641,"t":"code","b":[32,114,212],"m":"jsr","o":"alloc_block","oa":54386},{"a":24644,"t":"code","b":[134,25],"m":"stx","o":"zpa_19","oa":25},{"a":24646,"t":"code","b":[132,26],"m":"sty","o":"zpa_1A","oa":26},{"a":24648,"t":"code","b":[174,27,98],"m":"ldx","o":"a_621B","oa":25115},{"a":24651,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":24653,"t":"code","b":[157,178,119],"m":"sta","o":"a_77B2,x","oa":30642},{"a":24656,"t":"code","b":[165,26],"m":"lda","o":"zpa_1A","oa":26},{"a":24658,"t":"code","b":[157,143,119],"m":"sta","o":"a_778F,x","oa":30607},{"a":24661,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":24664,"t":"code","b":[173,191,76],"m":"lda","o":"script_byte_lo","oa":19647},{"a":24667,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":24669,"t":"code","b":[173,192,76],"m":"lda","o":"script_byte_hi","oa":19648},{"a":24672,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":24674,"t":"code","b":[24],"m":"clc"},{"a":24675,"t":"code","b":[165,25],"m":"lda","o":"zpa_19","oa":25},{"a":24677,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":24679,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":24681,"t":"code","b":[165,26],"m":"lda","o":"zpa_1A","oa":26},{"a":24683,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":24685,"t":"code","b":[133,24],"m":"sta","o":"zpa_18","oa":24},{"a":24687,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":24689,"l":"b_6071","t":"code","b":[177,21],"m":"lda","o":"(zpa_15),y","oa":21,"x":[24697]},{"a":24691,"t":"code","b":[145,23],"m":"sta","o":"(zpa_17),y","oa":23},{"a":24693,"t":"code","b":[200],"m":"iny"},{"a":24694,"t":"code","b":[204,26,98],"m":"cpy","o":"a_621A","oa":25114},{"a":24697,"t":"code","b":[208,246],"m":"bne","o":"b_6071","oa":24689},{"a":24699,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":24701,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":24703,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":24705,"t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":24707,"t":"code","b":[173,27,98],"m":"lda","o":"a_621B","oa":25115},{"a":24710,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":24712,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":24714,"t":"code","b":[173,26,98],"m":"lda","o":"a_621A","oa":25114},{"a":24717,"t":"code","b":[24],"m":"clc"},{"a":24718,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":24720,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":24722,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":24724,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":24726,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":24728,"l":"b_6098","t":"code","b":[173,191,76],"m":"lda","o":"script_byte_lo","oa":19647,"x":[24630]},{"a":24731,"t":"code","b":[24],"m":"clc"},{"a":24732,"t":"code","b":[109,26,98],"m":"adc","o":"a_621A","oa":25114},{"a":24735,"t":"code","b":[141,191,76],"m":"sta","o":"script_byte_lo","oa":19647},{"a":24738,"t":"code","b":[144,3],"m":"bcc","o":"r_60A7","oa":24743},{"a":24740,"t":"code","b":[238,192,76],"m":"inc","o":"script_byte_hi","oa":19648},{"a":24743,"l":"r_60A7","t":"code","b":[96],"m":"rts","x":[24738]},{"a":24744,"l":"op_room_ops","c":"Opcodes $33, $73, $B3 and $F3, roomOps: reads two values and a sub-opcode: 1 sets the camera's limits, variables 23 and 24; 2 sets the room's two shared background colours ($D022, $D023)","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":24747,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":24749,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":24752,"t":"code","b":[133,190],"m":"sta","o":"zpa_BE","oa":190},{"a":24754,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":24757,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":24759,"t":"code","b":[208,11],"m":"bne","o":"b_60C4","oa":24772},{"a":24761,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":24763,"t":"code","b":[141,133,254],"m":"sta","o":"a_FE85","oa":65157},{"a":24766,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":24768,"t":"code","b":[141,134,254],"m":"sta","o":"a_FE86","oa":65158},{"a":24771,"t":"code","b":[96],"m":"rts"},{"a":24772,"l":"b_60C4","t":"code","b":[201,2],"m":"cmp","o":"#$02","x":[24759]},{"a":24774,"t":"code","b":[208,18],"m":"bne","o":"r_60DA","oa":24794},{"a":24776,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":24778,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":24780,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":24782,"t":"code","b":[141,34,208],"m":"sta","o":"vic_background1"},{"a":24785,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":24787,"t":"code","b":[141,35,208],"m":"sta","o":"vic_background2"},{"a":24790,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":24792,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":24794,"l":"r_60DA","t":"code","b":[96],"m":"rts","x":[24774]},{"a":24795,"l":"op_actor_ops","c":"Opcodes $13, $53, $93 and $D3, actorOps: reads an actor, a value and a sub-opcode: 1 the actor's sound ($FF83); 2 its colour ($FF76), and a redraw when it is in the room; 3 its name, which follows in the script (name number actor + 2); 4 its costume ($FF90), taking the old one off and putting the new one on ($2946, $2977) when the actor is in the room; 5 its talking colour ($FFC4)","t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":24798,"t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189},{"a":24800,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":24803,"t":"code","b":[133,190],"m":"sta","o":"zpa_BE","oa":190},{"a":24805,"t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":24808,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":24810,"t":"code","b":[208,8],"m":"bne","o":"b_60F4","oa":24820},{"a":24812,"t":"code","b":[166,189],"m":"ldx","o":"zpa_BD","oa":189},{"a":24814,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":24816,"t":"code","b":[157,131,255],"m":"sta","o":"f_FF83,x","oa":65411},{"a":24819,"t":"code","b":[96],"m":"rts"},{"a":24820,"l":"b_60F4","t":"code","b":[201,2],"m":"cmp","o":"#$02","x":[24810]},{"a":24822,"t":"code","b":[208,22],"m":"bne","o":"b_610E","oa":24846},{"a":24824,"t":"code","b":[166,189],"m":"ldx","o":"zpa_BD","oa":189},{"a":24826,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":24828,"t":"code","b":[157,118,255],"m":"sta","o":"f_FF76,x","oa":65398},{"a":24831,"t":"code","b":[188,86,253],"m":"ldy","o":"f_FD56,x","oa":64854},{"a":24834,"t":"code","b":[48,9],"m":"bmi","o":"r_610D","oa":24845},{"a":24836,"t":"code","b":[185,34,253],"m":"lda","o":"f_FD22,y","oa":64802},{"a":24839,"t":"code","b":[24],"m":"clc"},{"a":24840,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":24842,"t":"code","b":[153,34,253],"m":"sta","o":"f_FD22,y","oa":64802},{"a":24845,"l":"r_610D","t":"code","b":[96],"m":"rts","x":[24834]},{"a":24846,"l":"b_610E","t":"code","b":[201,3],"m":"cmp","o":"#$03","x":[24822]},{"a":24848,"t":"code","b":[208,12],"m":"bne","o":"b_611E","oa":24862},{"a":24850,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":24852,"t":"code","b":[24],"m":"clc"},{"a":24853,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":24855,"t":"code","b":[141,27,98],"m":"sta","o":"a_621B","oa":25115},{"a":24858,"t":"code","b":[32,25,96],"m":"jsr","o":"copy_name_to_heap","oa":24601},{"a":24861,"t":"code","b":[96],"m":"rts"},{"a":24862,"l":"b_611E","t":"code","b":[201,4],"m":"cmp","o":"#$04","x":[24848]},{"a":24864,"t":"code","b":[208,34],"m":"bne","o":"b_6144","oa":24900},{"a":24866,"t":"code","b":[166,189],"m":"ldx","o":"zpa_BD","oa":189},{"a":24868,"t":"code","b":[189,86,253],"m":"lda","o":"f_FD56,x","oa":64854},{"a":24871,"t":"code","b":[48,16],"m":"bmi","o":"b_6139","oa":24889},{"a":24873,"t":"code","b":[32,70,41],"m":"jsr","o":"actor_leaves_room","oa":10566},{"a":24876,"t":"code","b":[166,189],"m":"ldx","o":"zpa_BD","oa":189},{"a":24878,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":24880,"t":"code","b":[157,144,255],"m":"sta","o":"actor_costume,x","oa":65424},{"a":24883,"t":"code","b":[32,119,41],"m":"jsr","o":"actor_enters_room","oa":10615},{"a":24886,"t":"code","b":[76,64,97],"m":"jmp","o":"j_6140","oa":24896},{"a":24889,"l":"b_6139","t":"code","b":[166,189],"m":"ldx","o":"zpa_BD","oa":189,"x":[24871]},{"a":24891,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":24893,"t":"code","b":[157,144,255],"m":"sta","o":"actor_costume,x","oa":65424},{"a":24896,"l":"j_6140","t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578,"x":[24886]},{"a":24899,"t":"code","b":[96],"m":"rts"},{"a":24900,"l":"b_6144","t":"code","b":[201,5],"m":"cmp","o":"#$05","x":[24864]},{"a":24902,"t":"code","b":[208,7],"m":"bne","o":"r_614F","oa":24911},{"a":24904,"t":"code","b":[166,189],"m":"ldx","o":"zpa_BD","oa":189},{"a":24906,"t":"code","b":[165,190],"m":"lda","o":"zpa_BE","oa":190},{"a":24908,"t":"code","b":[157,196,255],"m":"sta","o":"f_FFC4,x","oa":65476},{"a":24911,"l":"r_614F","t":"code","b":[96],"m":"rts","x":[24902]},{"a":24912,"l":"op_actor_from_pos","c":"Opcodes $15, $55, $95 and $D5, actorFromPos: the result variable gets the actor at an X and a Y ($314B)","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":24915,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":24918,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":24921,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":24924,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":24927,"t":"code","b":[32,75,49],"m":"jsr","o":"find_actor_at","oa":12619},{"a":24930,"t":"code","b":[138],"m":"txa"},{"a":24931,"t":"code","b":[32,103,79],"m":"jsr","o":"set_result_byte","oa":20327},{"a":24934,"t":"code","b":[96],"m":"rts"},{"a":24935,"l":"op_find_object","c":"Opcodes $35, $75, $B5 and $F5, findObject: the result variable gets the object at an X and a Y ($318E), a word","t":"code","b":[32,54,79],"m":"jsr","o":"read_result_var","oa":20278},{"a":24938,"t":"code","b":[32,208,78],"m":"jsr","o":"read_byte_operand_80","oa":20176},{"a":24941,"t":"code","b":[141,24,252],"m":"sta","o":"a_FC18","oa":64536},{"a":24944,"t":"code","b":[32,200,78],"m":"jsr","o":"read_byte_operand_40","oa":20168},{"a":24947,"t":"code","b":[141,25,252],"m":"sta","o":"a_FC19","oa":64537},{"a":24950,"t":"code","b":[32,142,49],"m":"jsr","o":"find_object_at","oa":12686},{"a":24953,"t":"code","b":[142,21,98],"m":"stx","o":"a_6215","oa":25109},{"a":24956,"t":"code","b":[141,22,98],"m":"sta","o":"a_6216","oa":25110},{"a":24959,"t":"code","b":[32,32,81],"m":"jsr","o":"store_result","oa":20768},{"a":24962,"t":"code","b":[96],"m":"rts"},{"a":24963,"l":"op_music_memory","c":"Opcode $AB (ScummVM's switchCostumeSet): with 1, takes $500 bytes, five pages, off the top of the heap's last block (fatal error 4 when it is too small) and loads sound 1 into them ($2EE4, with $61EF set so the loader puts it there), then forgets the sound's entry in the resource tables, so the heap never moves it: the music player, at $C300. With 2, gives the five pages back","t":"code","b":[32,190,76],"m":"jsr","o":"fetch_script_byte","oa":19646},{"a":24966,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":24968,"t":"code","b":[208,3],"m":"bne","o":"b_618D","oa":24973},{"a":24970,"t":"code","b":[76,163,97],"m":"jmp","o":"j_61A3","oa":24995},{"a":24973,"l":"b_618D","t":"code","b":[201,2],"m":"cmp","o":"#$02","x":[24968]},{"a":24975,"t":"code","b":[208,3],"m":"bne","o":"r_6194","oa":24980},{"a":24977,"t":"code","b":[76,240,97],"m":"jmp","o":"music_memory_free","oa":25072},{"a":24980,"l":"r_6194","t":"code","b":[96],"m":"rts","x":[24975]},{"a":24981,"l":"op_fatal_12","c":"Opcodes $6B and $EB (ScummVM's dummy): fatal error 12; no script should use them","t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":24983,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":24985,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":24987,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":24989,"l":"j_619D","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[24992]},{"a":24992,"t":"code","b":[76,157,97],"m":"jmp","o":"j_619D","oa":24989},{"a":24995,"l":"j_61A3","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[24970]},{"a":24997,"t":"code","b":[141,20,252],"m":"sta","o":"a_FC14","oa":64532},{"a":25000,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":25002,"t":"code","b":[141,21,252],"m":"sta","o":"a_FC15","oa":64533},{"a":25005,"t":"code","b":[32,83,71],"m":"jsr","o":"alloc_hard","oa":18259},{"a":25008,"t":"code","b":[173,240,255],"m":"lda","o":"heap_free_tail","oa":65520},{"a":25011,"t":"code","b":[133,71],"m":"sta","o":"zpa_47","oa":71},{"a":25013,"t":"code","b":[173,241,255],"m":"lda","o":"a_FFF1","oa":65521},{"a":25016,"t":"code","b":[133,72],"m":"sta","o":"zpa_48","oa":72},{"a":25018,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":25020,"t":"code","b":[177,71],"m":"lda","o":"(zpa_47),y","oa":71},{"a":25022,"t":"code","b":[56],"m":"sec"},{"a":25023,"t":"code","b":[233,5],"m":"sbc","o":"#$05"},{"a":25025,"t":"code","b":[16,14],"m":"bpl","o":"b_61D1","oa":25041},{"a":25027,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":25029,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":25031,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":25033,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":25035,"l":"j_61CB","t":"code","b":[141,32,208],"m":"sta","o":"vic_border","x":[25038]},{"a":25038,"t":"code","b":[76,203,97],"m":"jmp","o":"j_61CB","oa":25035},{"a":25041,"l":"b_61D1","t":"code","b":[145,71],"m":"sta","o":"(zpa_47),y","oa":71,"x":[25025]},{"a":25043,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":25045,"t":"code","b":[141,239,97],"m":"sta","o":"a_61EF","oa":25071},{"a":25048,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":25050,"t":"code","b":[32,228,46],"m":"jsr","o":"load_sound","oa":12004},{"a":25053,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":25055,"t":"code","b":[141,239,97],"m":"sta","o":"a_61EF","oa":25071},{"a":25058,"t":"code","b":[141,66,116],"m":"sta","o":"a_7442","oa":29762},{"a":25061,"t":"code","b":[141,193,116],"m":"sta","o":"a_74C1","oa":29889},{"a":25064,"t":"code","b":[141,64,117],"m":"sta","o":"a_7540","oa":30016},{"a":25067,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":25070,"t":"code","b":[96],"m":"rts"},{"a":25071,"l":"a_61EF","c":"1 while op_music_memory loads the music player: the loader reads it ($D4E8)","t":"byte","b":[0],"x":[25045,25055,54504]},{"a":25072,"l":"music_memory_free","c":"With 2: compacts the heap (alloc_hard asked for $FF00 bytes, more than it has) and gives the five pages back to the heap's last free block, whose size grows by $500","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[24977]},{"a":25074,"t":"code","b":[141,20,252],"m":"sta","o":"a_FC14","oa":64532},{"a":25077,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":25079,"t":"code","b":[141,21,252],"m":"sta","o":"a_FC15","oa":64533},{"a":25082,"t":"code","b":[32,83,71],"m":"jsr","o":"alloc_hard","oa":18259},{"a":25085,"t":"code","b":[173,240,255],"m":"lda","o":"heap_free_tail","oa":65520},{"a":25088,"t":"code","b":[133,71],"m":"sta","o":"zpa_47","oa":71},{"a":25090,"t":"code","b":[173,241,255],"m":"lda","o":"a_FFF1","oa":65521},{"a":25093,"t":"code","b":[133,72],"m":"sta","o":"zpa_48","oa":72},{"a":25095,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":25097,"t":"code","b":[177,71],"m":"lda","o":"(zpa_47),y","oa":71},{"a":25099,"t":"code","b":[24],"m":"clc"},{"a":25100,"t":"code","b":[105,5],"m":"adc","o":"#$05"},{"a":25102,"t":"code","b":[145,71],"m":"sta","o":"(zpa_47),y","oa":71},{"a":25104,"t":"code","b":[32,122,76],"m":"jsr","o":"refresh_script_pointer","oa":19578},{"a":25107,"t":"code","b":[96],"m":"rts"},{"a":25108,"t":"gap","n":43},{"a":25151,"l":"f_623F","c":"The bit for each of the eight bit numbers, 1 to $80, for the bit-variable opcodes","t":"byte","b":[1,2,4,8,16,32,64,128],"x":[21944,21957,21987]},{"a":25159,"t":"gap","n":3,"x":[21848,21861,21864,21872,21906,21912,21918,21924,21949,21960,21974]},{"a":25162,"l":"opcode_hook","c":"An RTS, called by run_script_loop before every opcode's handler: a hook that does nothing","t":"code","b":[96],"m":"rts","x":[19569]},{"a":25163,"l":"scripts_hook","c":"An RTS, called by run_all_scripts once a pass: a hook that does nothing","t":"code","b":[96],"m":"rts","x":[19503]},{"a":25164,"t":"gap","n":5513,"x":[20345,20350]},{"a":26705,"t":"note","l":"current_slot","c":"The script slot running now, negative when none","note":"outside the tracked image","x":[1209,1573,2185,19516,19544,19578,19593,19618,19658,19765,19963,19991,20018,20056,20510,20551,20577,20691,21052,21058,21095,21106,21645,21661,22358,22393,23222,23309]},{"a":26882,"t":"note","l":"room_resource","c":"The shown room's resource number (also variable 36): rooms numbered below 0 use the one the table at $7265 gives","note":"outside the tracked image","x":[1999,9385,10902,10941,11009,11065,11228,11295,11320,11543,11750,12752,13269,13840,14712,19703]},{"a":26883,"t":"note","l":"current_room","c":"The room shown (also kept in variable 4)","note":"outside the tracked image","x":[1389,2298,6028,6115,8619,10615,10675,10922,10984,11061,11921,21623,21777,23279,23425]},{"a":29508,"t":"note","l":"room_counts","c":"Each room resource's count, 1 to 58: 0 for the room shown; once it is left, 1, and one more each time a room is entered (load_room), so the highest is the room that has gone longest unshown, the one free_oldest_room throws out. Bit 7 locks the room in memory","note":"outside the tracked image","x":[10907,10919,11012,11024,11046,11055,11886,11898,18913,18965]},{"a":29567,"t":"note","l":"room_address_hi","c":"The high byte of each room's address in the heap, 0 when it is not in memory ($73BA the low bytes)","note":"outside the tracked image","x":[2010,9388,11041,11068,11239,11312,11323,11551,11758,11830,11880,12760,13277,13851,13884,14721,18720,18908,18947,18957,19712]},{"a":29626,"t":"note","l":"room_address_lo","c":"The low byte of each room's address in the heap","note":"outside the tracked image","x":[2002,9393,11076,11231,11307,11328,11546,11753,11874,12755,13272,13843,13878,14715,18715,18951,18960,19706]},{"a":30677,"l":"a_77D5","c":"The heap's first block's header, its size: $502B at start-up ($77D6 high), written by init_heap at $4C02","t":"byte","b":[0],"x":[19458]},{"a":30678,"l":"a_77D6","c":"The high byte of the heap's first block's size","t":"byte","b":[0],"x":[19463]},{"a":30679,"l":"a_77D7","c":"The heap's first block's link to the next free block, zero: there is none ($77D8 high)","t":"byte","b":[0],"x":[19468]},{"a":30680,"l":"a_77D8","c":"The high byte of the heap's first block's link","t":"byte","b":[0],"x":[19473]},{"a":30681,"t":"gap","n":1152},{"a":31833,"l":"send_drive_program","c":"With the KERNAL banked in and its vectors put back: sends the drive \"I0\", then the 512 bytes from $7D7B to the drive's memory at $0500 in sixteen M-W commands of 32 bytes, then \"U3\", which starts it there; then sets the serial lines as the game's own transfer wants them and waits about a quarter of a second (192 times 256 turns of a five-cycle loop) for the drive to be ready","t":"code","b":[169,7],"m":"lda","o":"#$07","x":[32587]},{"a":31835,"t":"code","b":[133,0],"m":"sta","o":"cpu_port_ddr","oa":0},{"a":31837,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":31839,"t":"code","b":[133,1],"m":"sta","o":"zpa_01","oa":1},{"a":31841,"t":"code","b":[120],"m":"sei"},{"a":31842,"t":"code","b":[169,49],"m":"lda","o":"#$31"},{"a":31844,"t":"code","b":[141,20,3],"m":"sta","o":"a_0314","oa":788},{"a":31847,"t":"code","b":[169,234],"m":"lda","o":"#$EA"},{"a":31849,"t":"code","b":[141,21,3],"m":"sta","o":"a_0315","oa":789},{"a":31852,"t":"code","b":[169,49],"m":"lda","o":"#$31"},{"a":31854,"t":"code","b":[141,22,3],"m":"sta","o":"a_0316","oa":790},{"a":31857,"t":"code","b":[169,234],"m":"lda","o":"#$EA"},{"a":31859,"t":"code","b":[141,23,3],"m":"sta","o":"a_0317","oa":791},{"a":31862,"t":"code","b":[169,71],"m":"lda","o":"#$47"},{"a":31864,"t":"code","b":[141,24,3],"m":"sta","o":"a_0318","oa":792},{"a":31867,"t":"code","b":[169,254],"m":"lda","o":"#$FE"},{"a":31869,"t":"code","b":[141,25,3],"m":"sta","o":"a_0319","oa":793},{"a":31872,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":31874,"t":"code","b":[141,13,221],"m":"sta","o":"cia2_interrupt"},{"a":31877,"t":"code","b":[173,3,221],"m":"lda","o":"cia2_ddr_b"},{"a":31880,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":31882,"t":"code","b":[141,3,221],"m":"sta","o":"cia2_ddr_b"},{"a":31885,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":31887,"t":"code","b":[141,0,221],"m":"sta","o":"cia2_port_a"},{"a":31890,"t":"code","b":[169,63],"m":"lda","o":"#$3F"},{"a":31892,"t":"code","b":[141,2,221],"m":"sta","o":"cia2_ddr_a"},{"a":31895,"t":"code","b":[32,35,125],"m":"jsr","o":"send_i0","oa":32035},{"a":31898,"t":"code","b":[169,123],"m":"lda","o":"#$7B"},{"a":31900,"t":"code","b":[133,254],"m":"sta","o":"zpa_FE","oa":254},{"a":31902,"t":"code","b":[169,125],"m":"lda","o":"#$7D"},{"a":31904,"t":"code","b":[133,255],"m":"sta","o":"zpa_FF","oa":255},{"a":31906,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":31908,"t":"code","b":[133,252],"m":"sta","o":"zpa_FC","oa":252},{"a":31910,"t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":31912,"t":"code","b":[133,253],"m":"sta","o":"zpa_FD","oa":253},{"a":31914,"t":"code","b":[162,16],"m":"ldx","o":"#$10"},{"a":31916,"l":"b_7CAC","t":"code","b":[134,250],"m":"stx","o":"zpa_FA","oa":250,"x":[31949]},{"a":31918,"t":"code","b":[32,255,124],"m":"jsr","o":"send_mw","oa":31999},{"a":31921,"l":"b_7CB1","t":"code","b":[132,251],"m":"sty","o":"zpa_FB","oa":251,"x":[31933]},{"a":31923,"t":"code","b":[177,254],"m":"lda","o":"(zpa_FE),y","oa":254},{"a":31925,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":31928,"t":"code","b":[164,251],"m":"ldy","o":"zpa_FB","oa":251},{"a":31930,"t":"code","b":[200],"m":"iny"},{"a":31931,"t":"code","b":[192,32],"m":"cpy","o":"#$20"},{"a":31933,"t":"code","b":[208,242],"m":"bne","o":"b_7CB1","oa":31921},{"a":31935,"t":"code","b":[169,13],"m":"lda","o":"#$0D"},{"a":31937,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":31940,"t":"code","b":[32,83,125],"m":"jsr","o":"close_command_channel","oa":32083},{"a":31943,"t":"code","b":[32,56,125],"m":"jsr","o":"next_32_bytes","oa":32056},{"a":31946,"t":"code","b":[166,250],"m":"ldx","o":"zpa_FA","oa":250},{"a":31948,"t":"code","b":[202],"m":"dex"},{"a":31949,"t":"code","b":[208,221],"m":"bne","o":"b_7CAC","oa":31916},{"a":31951,"t":"code","b":[32,234,124],"m":"jsr","o":"send_u3","oa":31978},{"a":31954,"t":"code","b":[76,91,125],"m":"jmp","o":"set_serial_lines","oa":32091},{"a":31957,"l":"open_command_channel","c":"Opens the drive's command channel (file 15, device 8, secondary address 15, no name) and makes it the output","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[31978,31999,32035]},{"a":31959,"t":"code","b":[32,189,255],"m":"jsr","o":"KERNAL_SETNAM","oa":65469},{"a":31962,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":31964,"t":"code","b":[162,8],"m":"ldx","o":"#$08"},{"a":31966,"t":"code","b":[168],"m":"tay"},{"a":31967,"t":"code","b":[32,186,255],"m":"jsr","o":"KERNAL_SETLFS","oa":65466},{"a":31970,"t":"code","b":[32,192,255],"m":"jsr","o":"KERNAL_OPEN","oa":65472},{"a":31973,"t":"code","b":[162,15],"m":"ldx","o":"#$0F"},{"a":31975,"t":"code","b":[76,201,255],"m":"jmp","o":"KERNAL_CHKOUT","oa":65481},{"a":31978,"l":"send_u3","c":"Sends \"U3\" and a RETURN: the drive jumps to $0500","t":"code","b":[32,213,124],"m":"jsr","o":"open_command_channel","oa":31957,"x":[31951]},{"a":31981,"t":"code","b":[169,85],"m":"lda","o":"#$55"},{"a":31983,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":31986,"t":"code","b":[169,51],"m":"lda","o":"#$33"},{"a":31988,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":31991,"t":"code","b":[169,13],"m":"lda","o":"#$0D"},{"a":31993,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":31996,"t":"code","b":[76,83,125],"m":"jmp","o":"close_command_channel","oa":32083},{"a":31999,"l":"send_mw","c":"Starts an M-W command for 32 bytes at the drive address $FC/$FD; the 32 bytes follow it from $FE/$FF","t":"code","b":[32,213,124],"m":"jsr","o":"open_command_channel","oa":31957,"x":[31918]},{"a":32002,"t":"code","b":[169,77],"m":"lda","o":"#$4D"},{"a":32004,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":32007,"t":"code","b":[169,45],"m":"lda","o":"#$2D"},{"a":32009,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":32012,"t":"code","b":[169,87],"m":"lda","o":"#$57"},{"a":32014,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":32017,"t":"code","b":[165,252],"m":"lda","o":"zpa_FC","oa":252},{"a":32019,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":32022,"t":"code","b":[165,253],"m":"lda","o":"zpa_FD","oa":253},{"a":32024,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":32027,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":32029,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":32032,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":32034,"t":"code","b":[96],"m":"rts"},{"a":32035,"l":"send_i0","c":"Sends \"I0\" and a RETURN, the drive's initialise command","t":"code","b":[32,213,124],"m":"jsr","o":"open_command_channel","oa":31957,"x":[31895]},{"a":32038,"t":"code","b":[169,73],"m":"lda","o":"#$49"},{"a":32040,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":32043,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":32045,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":32048,"t":"code","b":[169,13],"m":"lda","o":"#$0D"},{"a":32050,"t":"code","b":[32,210,255],"m":"jsr","o":"KERNAL_CHROUT","oa":65490},{"a":32053,"t":"code","b":[76,83,125],"m":"jmp","o":"close_command_channel","oa":32083},{"a":32056,"l":"next_32_bytes","c":"Moves the source ($FE/$FF) and the drive address ($FC/$FD) on 32 bytes","t":"code","b":[165,254],"m":"lda","o":"zpa_FE","oa":254,"x":[31943]},{"a":32058,"t":"code","b":[24],"m":"clc"},{"a":32059,"t":"code","b":[105,32],"m":"adc","o":"#$20"},{"a":32061,"t":"code","b":[133,254],"m":"sta","o":"zpa_FE","oa":254},{"a":32063,"t":"code","b":[165,255],"m":"lda","o":"zpa_FF","oa":255},{"a":32065,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":32067,"t":"code","b":[133,255],"m":"sta","o":"zpa_FF","oa":255},{"a":32069,"t":"code","b":[165,252],"m":"lda","o":"zpa_FC","oa":252},{"a":32071,"t":"code","b":[24],"m":"clc"},{"a":32072,"t":"code","b":[105,32],"m":"adc","o":"#$20"},{"a":32074,"t":"code","b":[133,252],"m":"sta","o":"zpa_FC","oa":252},{"a":32076,"t":"code","b":[165,253],"m":"lda","o":"zpa_FD","oa":253},{"a":32078,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":32080,"t":"code","b":[133,253],"m":"sta","o":"zpa_FD","oa":253},{"a":32082,"t":"code","b":[96],"m":"rts"},{"a":32083,"l":"close_command_channel","c":"Ends the output and closes file 15","t":"code","b":[32,204,255],"m":"jsr","o":"KERNAL_CLRCHN","oa":65484,"x":[31940,31996,32053]},{"a":32086,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":32088,"t":"code","b":[76,195,255],"m":"jmp","o":"KERNAL_CLOSE","oa":65475},{"a":32091,"l":"set_serial_lines","c":"The serial lines set for the game's transfer: bits 2 to 5 of $DD00 made outputs, and set, with a long wait","t":"code","b":[173,2,221],"m":"lda","o":"cia2_ddr_a","x":[31954]},{"a":32094,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":32096,"t":"code","b":[9,60],"m":"ora","o":"#$3C"},{"a":32098,"t":"code","b":[141,2,221],"m":"sta","o":"cia2_ddr_a"},{"a":32101,"t":"code","b":[173,0,221],"m":"lda","o":"cia2_port_a"},{"a":32104,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":32106,"t":"code","b":[9,12],"m":"ora","o":"#$0C"},{"a":32108,"t":"code","b":[141,0,221],"m":"sta","o":"cia2_port_a"},{"a":32111,"t":"code","b":[162,192],"m":"ldx","o":"#$C0"},{"a":32113,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":32115,"l":"b_7D73","t":"code","b":[136],"m":"dey","x":[32116,32119]},{"a":32116,"t":"code","b":[208,253],"m":"bne","o":"b_7D73","oa":32115},{"a":32118,"t":"code","b":[202],"m":"dex"},{"a":32119,"t":"code","b":[208,250],"m":"bne","o":"b_7D73","oa":32115},{"a":32121,"t":"code","b":[120],"m":"sei"},{"a":32122,"t":"code","b":[96],"m":"rts"},{"a":32123,"t":"gap","n":464},{"a":32587,"l":"setup_machine","c":"Start-up: sends the drive its program, then clears the screens, the colour RAM, zero page from $15 and $FC00-$FFF1, sets the border, the sprites' shared colours, sprites 0 to 6 multicolour, the sprite pointers' base ($78/$79 = $CBF8), the sprite area $E000-$EFFF clear, the NMI vector to an RTI ($1479) and the sound. Then the raster interrupt (frame_irq at $117C, line $FA), the screen at $C800 with the character set at $D800, multicolour text, video bank 3, every sprite on. Then the copies: $77D9 to $F040 ($80 bytes), $7859 to $F800 (the interface's character set), $9800 to $82D7 and from there $800 bytes to $D000 (the opcode tables and the code under the I/O chips), $8A53 to $F0C0 ($64A bytes, the interface's code), $823C to $0100 (the decoder) and $4AD5 to $CAD0 (the camera). Last, the interface's starting values ($F1A3, $F1A5, $F1AC, $F5AE), the interrupts on and the screen on","t":"code","b":[32,89,124],"m":"jsr","o":"send_drive_program","oa":31833,"x":[1042]},{"a":32590,"t":"code","b":[120],"m":"sei"},{"a":32591,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":32593,"t":"code","b":[133,0],"m":"sta","o":"cpu_port_ddr","oa":0},{"a":32595,"t":"code","b":[173,17,208],"m":"lda","o":"vic_control1"},{"a":32598,"t":"code","b":[41,239],"m":"and","o":"#$EF"},{"a":32600,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":32603,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":32605,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":32607,"t":"code","b":[32,120,129],"m":"jsr","o":"clear_screens","oa":33144},{"a":32610,"t":"code","b":[32,220,128],"m":"jsr","o":"clear_zero_page","oa":32988},{"a":32613,"t":"code","b":[32,231,128],"m":"jsr","o":"clear_variables_high","oa":32999},{"a":32616,"t":"code","b":[32,110,129],"m":"jsr","o":"clear_input","oa":33134},{"a":32619,"t":"code","b":[32,120,129],"m":"jsr","o":"clear_screens","oa":33144},{"a":32622,"t":"code","b":[32,26,129],"m":"jsr","o":"setup_colours","oa":33050},{"a":32625,"t":"code","b":[32,50,129],"m":"jsr","o":"setup_sprites","oa":33074},{"a":32628,"t":"code","b":[169,121],"m":"lda","o":"#$79"},{"a":32630,"t":"code","b":[141,250,255],"m":"sta","o":"cpu_vectors","oa":65530},{"a":32633,"t":"code","b":[169,20],"m":"lda","o":"#$14"},{"a":32635,"t":"code","b":[141,251,255],"m":"sta","o":"$FFFB","oa":65531},{"a":32638,"t":"code","b":[32,202,129],"m":"jsr","o":"setup_sprite_columns","oa":33226},{"a":32641,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":32643,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":32645,"t":"code","b":[32,129,64],"m":"jsr","o":"init_sound","oa":16513},{"a":32648,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":32650,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":32652,"t":"code","b":[120],"m":"sei"},{"a":32653,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":32655,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":32657,"t":"code","b":[169,124],"m":"lda","o":"#$7C"},{"a":32659,"t":"code","b":[141,254,255],"m":"sta","o":"$FFFE","oa":65534},{"a":32662,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":32664,"t":"code","b":[141,255,255],"m":"sta","o":"$FFFF","oa":65535},{"a":32667,"t":"code","b":[169,11],"m":"lda","o":"#$0B"},{"a":32669,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":32672,"t":"code","b":[169,38],"m":"lda","o":"#$26"},{"a":32674,"t":"code","b":[133,32],"m":"sta","o":"zpa_20","oa":32},{"a":32676,"t":"code","b":[133,171],"m":"sta","o":"zpa_AB","oa":171},{"a":32678,"t":"code","b":[141,24,208],"m":"sta","o":"vic_memory"},{"a":32681,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":32683,"t":"code","b":[133,34],"m":"sta","o":"zpa_22","oa":34},{"a":32685,"t":"code","b":[169,24],"m":"lda","o":"#$18"},{"a":32687,"t":"code","b":[141,22,208],"m":"sta","o":"vic_control2"},{"a":32690,"t":"code","b":[169,250],"m":"lda","o":"#$FA"},{"a":32692,"t":"code","b":[141,18,208],"m":"sta","o":"vic_raster"},{"a":32695,"t":"code","b":[169,129],"m":"lda","o":"#$81"},{"a":32697,"t":"code","b":[141,25,208],"m":"sta","o":"vic_irq_status"},{"a":32700,"t":"code","b":[141,26,208],"m":"sta","o":"vic_irq_enable"},{"a":32703,"t":"code","b":[173,13,220],"m":"lda","o":"cia1_interrupt"},{"a":32706,"t":"code","b":[173,0,221],"m":"lda","o":"cia2_port_a"},{"a":32709,"t":"code","b":[41,252],"m":"and","o":"#$FC"},{"a":32711,"t":"code","b":[9,0],"m":"ora","o":"#$00"},{"a":32713,"t":"code","b":[141,0,221],"m":"sta","o":"cia2_port_a"},{"a":32716,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":32718,"t":"code","b":[141,14,220],"m":"sta","o":"cia1_control_a"},{"a":32721,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":32723,"t":"code","b":[141,15,220],"m":"sta","o":"cia1_control_b"},{"a":32726,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":32728,"t":"code","b":[141,21,208],"m":"sta","o":"vic_sprite_enable"},{"a":32731,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":32733,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":32735,"t":"code","b":[169,217],"m":"lda","o":"#$D9"},{"a":32737,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":32739,"t":"code","b":[169,119],"m":"lda","o":"#$77"},{"a":32741,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":32743,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":32745,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":32747,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":32749,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":32751,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":32753,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":32755,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32757,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":32759,"t":"code","b":[32,253,127],"m":"jsr","o":"copy_bytes","oa":32765},{"a":32762,"t":"code","b":[76,30,128],"m":"jmp","o":"j_801E","oa":32798},{"a":32765,"l":"copy_bytes","c":"Copies $15/$16 bytes from $19/$1A to $1B/$1C, from the bottom up","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[32759,32795,32822,32849,32876,32903,32930,32957]},{"a":32767,"t":"code","b":[177,25],"m":"lda","o":"(zpa_19),y","oa":25},{"a":32769,"t":"code","b":[145,27],"m":"sta","o":"(zpa_1B),y","oa":27},{"a":32771,"t":"code","b":[230,25],"m":"inc","o":"zpa_19","oa":25},{"a":32773,"t":"code","b":[208,2],"m":"bne","o":"b_8009","oa":32777},{"a":32775,"t":"code","b":[230,26],"m":"inc","o":"zpa_1A","oa":26},{"a":32777,"l":"b_8009","t":"code","b":[230,27],"m":"inc","o":"zpa_1B","oa":27,"x":[32773]},{"a":32779,"t":"code","b":[208,2],"m":"bne","o":"b_800F","oa":32783},{"a":32781,"t":"code","b":[230,28],"m":"inc","o":"zpa_1C","oa":28},{"a":32783,"l":"b_800F","t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21,"x":[32779]},{"a":32785,"t":"code","b":[208,2],"m":"bne","o":"b_8015","oa":32789},{"a":32787,"t":"code","b":[198,22],"m":"dec","o":"zpa_16","oa":22},{"a":32789,"l":"b_8015","t":"code","b":[198,21],"m":"dec","o":"zpa_15","oa":21,"x":[32785]},{"a":32791,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":32793,"t":"code","b":[5,22],"m":"ora","o":"zpa_16","oa":22},{"a":32795,"t":"code","b":[208,224],"m":"bne","o":"copy_bytes","oa":32765},{"a":32797,"t":"code","b":[96],"m":"rts"},{"a":32798,"l":"j_801E","t":"code","b":[169,89],"m":"lda","o":"#$59","x":[32762]},{"a":32800,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":32802,"t":"code","b":[169,120],"m":"lda","o":"#$78"},{"a":32804,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":32806,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32808,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":32810,"t":"code","b":[169,248],"m":"lda","o":"#$F8"},{"a":32812,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":32814,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32816,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":32818,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":32820,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":32822,"t":"code","b":[32,253,127],"m":"jsr","o":"copy_bytes","oa":32765},{"a":32825,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32827,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":32829,"t":"code","b":[169,152],"m":"lda","o":"#$98"},{"a":32831,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":32833,"t":"code","b":[169,215],"m":"lda","o":"#$D7"},{"a":32835,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":32837,"t":"code","b":[169,130],"m":"lda","o":"#$82"},{"a":32839,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":32841,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32843,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":32845,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":32847,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":32849,"t":"code","b":[32,253,127],"m":"jsr","o":"copy_bytes","oa":32765},{"a":32852,"t":"code","b":[169,215],"m":"lda","o":"#$D7"},{"a":32854,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":32856,"t":"code","b":[169,130],"m":"lda","o":"#$82"},{"a":32858,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":32860,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32862,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":32864,"t":"code","b":[169,208],"m":"lda","o":"#$D0"},{"a":32866,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":32868,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32870,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":32872,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":32874,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":32876,"t":"code","b":[32,253,127],"m":"jsr","o":"copy_bytes","oa":32765},{"a":32879,"t":"code","b":[169,83],"m":"lda","o":"#$53"},{"a":32881,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":32883,"t":"code","b":[169,138],"m":"lda","o":"#$8A"},{"a":32885,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":32887,"t":"code","b":[169,192],"m":"lda","o":"#$C0"},{"a":32889,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":32891,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":32893,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":32895,"t":"code","b":[169,74],"m":"lda","o":"#$4A"},{"a":32897,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":32899,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":32901,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":32903,"t":"code","b":[32,253,127],"m":"jsr","o":"copy_bytes","oa":32765},{"a":32906,"t":"code","b":[169,60],"m":"lda","o":"#$3C"},{"a":32908,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":32910,"t":"code","b":[169,130],"m":"lda","o":"#$82"},{"a":32912,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":32914,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32916,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":32918,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":32920,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":32922,"t":"code","b":[169,155],"m":"lda","o":"#$9B"},{"a":32924,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":32926,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32928,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":32930,"t":"code","b":[32,253,127],"m":"jsr","o":"copy_bytes","oa":32765},{"a":32933,"t":"code","b":[169,213],"m":"lda","o":"#$D5"},{"a":32935,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":32937,"t":"code","b":[169,74],"m":"lda","o":"#$4A"},{"a":32939,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":32941,"t":"code","b":[169,208],"m":"lda","o":"#$D0"},{"a":32943,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":32945,"t":"code","b":[169,202],"m":"lda","o":"#$CA"},{"a":32947,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":32949,"t":"code","b":[169,249],"m":"lda","o":"#$F9"},{"a":32951,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":32953,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32955,"t":"code","b":[133,22],"m":"sta","o":"zpa_16","oa":22},{"a":32957,"t":"code","b":[32,253,127],"m":"jsr","o":"copy_bytes","oa":32765},{"a":32960,"t":"code","b":[169,13],"m":"lda","o":"#$0D"},{"a":32962,"t":"code","b":[141,163,241],"m":"sta","o":"a_F1A3","oa":61859},{"a":32965,"t":"code","b":[169,28],"m":"lda","o":"#$1C"},{"a":32967,"t":"code","b":[141,165,241],"m":"sta","o":"a_F1A5","oa":61861},{"a":32970,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32972,"t":"code","b":[141,172,241],"m":"sta","o":"slot_under_cursor","oa":61868},{"a":32975,"t":"code","b":[32,174,245],"m":"jsr","o":"set_cursor_feel","oa":62894},{"a":32978,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":32980,"t":"code","b":[141,97,17],"m":"sta","o":"a_1161","oa":4449},{"a":32983,"t":"code","b":[88],"m":"cli"},{"a":32984,"t":"code","b":[32,47,20],"m":"jsr","o":"video_on","oa":5167},{"a":32987,"t":"code","b":[96],"m":"rts"},{"a":32988,"l":"clear_zero_page","c":"Clears zero page from $15 to $FF","t":"code","b":[160,21],"m":"ldy","o":"#$15","x":[32610]},{"a":32990,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":32992,"l":"b_80E0","t":"code","b":[153,0,0],"m":"sta","o":"cpu_port_ddr,y","oa":0,"x":[32996]},{"a":32995,"t":"code","b":[200],"m":"iny"},{"a":32996,"t":"code","b":[208,250],"m":"bne","o":"b_80E0","oa":32992},{"a":32998,"t":"code","b":[96],"m":"rts"},{"a":32999,"l":"clear_variables_high","c":"Clears $FC00-$FFF1, the actors' and the interpreter's variables","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[32613]},{"a":33001,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":33003,"t":"code","b":[169,252],"m":"lda","o":"#$FC"},{"a":33005,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":33007,"t":"code","b":[169,242],"m":"lda","o":"#$F2"},{"a":33009,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":33011,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":33013,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":33015,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":33017,"t":"code","b":[32,255,128],"m":"jsr","o":"fill_x_bytes","oa":33023},{"a":33020,"t":"code","b":[76,25,129],"m":"jmp","o":"r_8119","oa":33049},{"a":33023,"l":"fill_x_bytes","c":"A third copy of fill_x ($0442) and fill_bytes ($4BE6), in the start-up code that runs once: stores X into the $1B/$1C bytes from $19/$1A on","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[33017,33046,33130,33162,33183,33204]},{"a":33025,"t":"code","b":[138],"m":"txa"},{"a":33026,"t":"code","b":[145,25],"m":"sta","o":"(zpa_19),y","oa":25},{"a":33028,"t":"code","b":[230,25],"m":"inc","o":"zpa_19","oa":25},{"a":33030,"t":"code","b":[208,2],"m":"bne","o":"b_810A","oa":33034},{"a":33032,"t":"code","b":[230,26],"m":"inc","o":"zpa_1A","oa":26},{"a":33034,"l":"b_810A","t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27,"x":[33030]},{"a":33036,"t":"code","b":[208,2],"m":"bne","o":"b_8110","oa":33040},{"a":33038,"t":"code","b":[198,28],"m":"dec","o":"zpa_1C","oa":28},{"a":33040,"l":"b_8110","t":"code","b":[198,27],"m":"dec","o":"zpa_1B","oa":27,"x":[33036]},{"a":33042,"t":"code","b":[165,27],"m":"lda","o":"zpa_1B","oa":27},{"a":33044,"t":"code","b":[5,28],"m":"ora","o":"zpa_1C","oa":28},{"a":33046,"t":"code","b":[208,231],"m":"bne","o":"fill_x_bytes","oa":33023},{"a":33048,"t":"code","b":[96],"m":"rts"},{"a":33049,"l":"r_8119","t":"code","b":[96],"m":"rts","x":[33020]},{"a":33050,"l":"setup_colours","c":"Border black, the sprites' shared colours 0 and 10","t":"code","b":[160,37],"m":"ldy","o":"#$25","x":[32622]},{"a":33052,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":33054,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33056,"t":"code","b":[141,32,208],"m":"sta","o":"vic_border"},{"a":33059,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33061,"t":"code","b":[141,38,208],"m":"sta","o":"vic_sprite_mc1"},{"a":33064,"t":"code","b":[169,10],"m":"lda","o":"#$0A"},{"a":33066,"t":"code","b":[141,37,208],"m":"sta","o":"vic_sprite_mc0"},{"a":33069,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":33071,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":33073,"t":"code","b":[96],"m":"rts"},{"a":33074,"l":"setup_sprites","c":"Sprites not expanded, in front of the picture, sprites 0 to 6 multicolour; zero is also written to the collision registers $D01E and $D01F, which does nothing, as they can only be read; sprite pointers at $CBF8 ($78/$79); the sprite area $E000-$EFFF cleared","t":"code","b":[160,37],"m":"ldy","o":"#$25","x":[32625]},{"a":33076,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":33078,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33080,"t":"code","b":[141,29,208],"m":"sta","o":"vic_sprite_expand_x"},{"a":33083,"t":"code","b":[141,23,208],"m":"sta","o":"vic_sprite_expand_y"},{"a":33086,"t":"code","b":[141,27,208],"m":"sta","o":"vic_sprite_priority"},{"a":33089,"t":"code","b":[141,30,208],"m":"sta","o":"vic_sprite_collision"},{"a":33092,"t":"code","b":[141,31,208],"m":"sta","o":"vic_sprite_bg_collision"},{"a":33095,"t":"code","b":[169,127],"m":"lda","o":"#$7F"},{"a":33097,"t":"code","b":[141,28,208],"m":"sta","o":"vic_sprite_multicolour"},{"a":33100,"t":"code","b":[169,248],"m":"lda","o":"#$F8"},{"a":33102,"t":"code","b":[133,120],"m":"sta","o":"zpp_78","oa":120},{"a":33104,"t":"code","b":[169,203],"m":"lda","o":"#$CB"},{"a":33106,"t":"code","b":[133,121],"m":"sta","o":"zpa_79","oa":121},{"a":33108,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":33110,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":33112,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33114,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":33116,"t":"code","b":[169,224],"m":"lda","o":"#$E0"},{"a":33118,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":33120,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33122,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":33124,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":33126,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":33128,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":33130,"t":"code","b":[32,255,128],"m":"jsr","o":"fill_x_bytes","oa":33023},{"a":33133,"t":"code","b":[96],"m":"rts"},{"a":33134,"l":"clear_input","c":"$21 cleared and a click flagged ($FC13)","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[32616]},{"a":33136,"t":"code","b":[133,33],"m":"sta","o":"zpa_21","oa":33},{"a":33138,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":33140,"t":"code","b":[141,19,252],"m":"sta","o":"a_FC13","oa":64531},{"a":33143,"t":"code","b":[96],"m":"rts"},{"a":33144,"l":"clear_screens","c":"Clears both screens ($C800 and $CC00) and the 2048 bytes at $D800 (the RAM under the colour RAM, where the room's characters go), then sets the top line's colour to light blue","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[32607,32619]},{"a":33146,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":33148,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":33150,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":33152,"t":"code","b":[169,232],"m":"lda","o":"#$E8"},{"a":33154,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":33156,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":33158,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":33160,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":33162,"t":"code","b":[32,255,128],"m":"jsr","o":"fill_x_bytes","oa":33023},{"a":33165,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33167,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":33169,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":33171,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":33173,"t":"code","b":[169,232],"m":"lda","o":"#$E8"},{"a":33175,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":33177,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":33179,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":33181,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":33183,"t":"code","b":[32,255,128],"m":"jsr","o":"fill_x_bytes","oa":33023},{"a":33186,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33188,"t":"code","b":[133,25],"m":"sta","o":"zpa_19","oa":25},{"a":33190,"t":"code","b":[169,216],"m":"lda","o":"#$D8"},{"a":33192,"t":"code","b":[133,26],"m":"sta","o":"zpa_1A","oa":26},{"a":33194,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33196,"t":"code","b":[133,27],"m":"sta","o":"zpa_1B","oa":27},{"a":33198,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":33200,"t":"code","b":[133,28],"m":"sta","o":"zpa_1C","oa":28},{"a":33202,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":33204,"t":"code","b":[32,255,128],"m":"jsr","o":"fill_x_bytes","oa":33023},{"a":33207,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":33209,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":33211,"t":"code","b":[160,39],"m":"ldy","o":"#$27"},{"a":33213,"l":"b_81BD","t":"code","b":[169,14],"m":"lda","o":"#$0E","x":[33219]},{"a":33215,"t":"code","b":[153,0,216],"m":"sta","o":"colour_ram,y"},{"a":33218,"t":"code","b":[136],"m":"dey"},{"a":33219,"t":"code","b":[16,248],"m":"bpl","o":"b_81BD","oa":33213},{"a":33221,"t":"code","b":[160,36],"m":"ldy","o":"#$24"},{"a":33223,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":33225,"t":"code","b":[96],"m":"rts"},{"a":33226,"l":"setup_sprite_columns","c":"The sprite column base ($FC04 = $E0), the mask screen ($FC0F/$FC10 = $624D), and no slot with a sprite","t":"code","b":[169,224],"m":"lda","o":"#$E0","x":[32638]},{"a":33228,"t":"code","b":[141,4,252],"m":"sta","o":"a_FC04","oa":64516},{"a":33231,"t":"code","b":[169,77],"m":"lda","o":"#$4D"},{"a":33233,"t":"code","b":[141,15,252],"m":"sta","o":"a_FC0F","oa":64527},{"a":33236,"t":"code","b":[169,98],"m":"lda","o":"#$62"},{"a":33238,"t":"code","b":[141,16,252],"m":"sta","o":"a_FC10","oa":64528},{"a":33241,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":33243,"l":"b_81DB","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[33251]},{"a":33245,"t":"code","b":[153,46,253],"m":"sta","o":"f_FD2E,y","oa":64814},{"a":33248,"t":"code","b":[200],"m":"iny"},{"a":33249,"t":"code","b":[192,4],"m":"cpy","o":"#$04"},{"a":33251,"t":"code","b":[208,246],"m":"bne","o":"b_81DB","oa":33243},{"a":33253,"t":"code","b":[96],"m":"rts"},{"a":33254,"l":"init_game","c":"The game's starting values: no sentence waiting ($094D), a message's base time 30 frames and speed 6, the idle count 18,000 frames, variable 12 (the lights) $0B, no key waiting, the camera not drawn ($CBC3 = $C8), every actor facing the player with no walk slot, every slot free, $CA/$CB = $974D, and each actor dressed in the costume with its own number","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[1045]},{"a":33256,"t":"code","b":[141,77,9],"m":"sta","o":"a_094D","oa":2381},{"a":33259,"t":"code","b":[169,30],"m":"lda","o":"#$1E"},{"a":33261,"t":"code","b":[133,186],"m":"sta","o":"zpa_BA","oa":186},{"a":33263,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33265,"t":"code","b":[133,187],"m":"sta","o":"zpa_BB","oa":187},{"a":33267,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":33269,"t":"code","b":[133,188],"m":"sta","o":"zpa_BC","oa":188},{"a":33271,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":33273,"t":"code","b":[141,32,252],"m":"sta","o":"a_FC20","oa":64544},{"a":33276,"t":"code","b":[169,70],"m":"lda","o":"#$46"},{"a":33278,"t":"code","b":[141,33,252],"m":"sta","o":"a_FC21","oa":64545},{"a":33281,"t":"code","b":[169,11],"m":"lda","o":"#$0B"},{"a":33283,"t":"code","b":[141,122,254],"m":"sta","o":"a_FE7A","oa":65146},{"a":33286,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":33288,"t":"code","b":[141,174,27],"m":"sta","o":"a_1BAE","oa":7086},{"a":33291,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":33293,"t":"code","b":[141,195,203],"m":"sta","o":"camera_drawn","oa":52163},{"a":33296,"t":"code","b":[162,12],"m":"ldx","o":"#$0C"},{"a":33298,"l":"b_8212","t":"code","b":[169,2],"m":"lda","o":"#$02","x":[33309]},{"a":33300,"t":"code","b":[157,222,255],"m":"sta","o":"actor_facing,x","oa":65502},{"a":33303,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":33305,"t":"code","b":[157,86,253],"m":"sta","o":"f_FD56,x","oa":64854},{"a":33308,"t":"code","b":[202],"m":"dex"},{"a":33309,"t":"code","b":[16,243],"m":"bpl","o":"b_8212","oa":33298},{"a":33311,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":33313,"l":"b_8221","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[33319]},{"a":33315,"t":"code","b":[157,78,253],"m":"sta","o":"f_FD4E,x","oa":64846},{"a":33318,"t":"code","b":[202],"m":"dex"},{"a":33319,"t":"code","b":[16,248],"m":"bpl","o":"b_8221","oa":33313},{"a":33321,"t":"code","b":[169,77],"m":"lda","o":"#$4D"},{"a":33323,"t":"code","b":[133,202],"m":"sta","o":"zpa_CA","oa":202},{"a":33325,"t":"code","b":[169,151],"m":"lda","o":"#$97"},{"a":33327,"t":"code","b":[133,203],"m":"sta","o":"zpa_CB","oa":203},{"a":33329,"t":"code","b":[162,12],"m":"ldx","o":"#$0C"},{"a":33331,"l":"b_8233","t":"code","b":[138],"m":"txa","x":[33336]},{"a":33332,"t":"code","b":[157,144,255],"m":"sta","o":"actor_costume,x","oa":65424},{"a":33335,"t":"code","b":[202],"m":"dex"},{"a":33336,"t":"code","b":[16,249],"m":"bpl","o":"b_8233","oa":33331},{"a":33338,"t":"code","b":[96],"m":"rts"},{"a":33339,"c":"A NOP ($EA) after the last RTS, which nothing runs","t":"byte","b":[234]},{"a":33340,"t":"gap","n":18580},{"a":51920,"l":"move_camera","c":"Each pass of the main loop while a room is shown: moves the camera's centre ($CBC2) one column at a time: back inside variables 23 and 24 when it is outside them; otherwise towards its target ($CBC8), which, when it follows an actor ($CBC6 = 2, actor $CBC7), is set to the actor's column whenever the actor is closer than $CBC4 (10) columns to the view's left edge or further than $CBC5 (30); the target is kept within variables 23 and 24. The centre stays 20 columns from each end of the room; the view runs from the centre less 20 ($CBC0) to 19 more ($CBC1)","t":"code","b":[173,194,203],"m":"lda","o":"camera_x","oa":52162,"x":[1400]},{"a":51923,"t":"code","b":[205,133,254],"m":"cmp","o":"a_FE85","oa":65157},{"a":51926,"t":"code","b":[176,9],"m":"bcs","o":"b_CAE1","oa":51937},{"a":51928,"t":"code","b":[238,194,203],"m":"inc","o":"camera_x","oa":52162},{"a":51931,"t":"code","b":[76,80,203],"m":"jmp","o":"j_CB50","oa":52048},{"a":51934,"c":"A JMP $CAEE straight after another jump, which nothing reaches","t":"code","b":[76,238,202],"m":"jmp","o":"j_CAEE","oa":51950},{"a":51937,"l":"b_CAE1","t":"code","b":[205,134,254],"m":"cmp","o":"a_FE86","oa":65158,"x":[51926]},{"a":51940,"t":"code","b":[144,8],"m":"bcc","o":"j_CAEE","oa":51950},{"a":51942,"t":"code","b":[240,6],"m":"beq","o":"j_CAEE","oa":51950},{"a":51944,"t":"code","b":[206,194,203],"m":"dec","o":"camera_x","oa":52162},{"a":51947,"t":"code","b":[76,80,203],"m":"jmp","o":"j_CB50","oa":52048},{"a":51950,"l":"j_CAEE","t":"code","b":[173,198,203],"m":"lda","o":"a_CBC6","oa":52166,"x":[51934,51940,51942]},{"a":51953,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":51955,"t":"code","b":[208,40],"m":"bne","o":"b_CB1D","oa":51997},{"a":51957,"t":"code","b":[174,199,203],"m":"ldx","o":"a_CBC7","oa":52167},{"a":51960,"t":"code","b":[188,86,253],"m":"ldy","o":"f_FD56,x","oa":64854},{"a":51963,"t":"code","b":[185,230,252],"m":"lda","o":"f_FCE6,y","oa":64742},{"a":51966,"t":"code","b":[56],"m":"sec"},{"a":51967,"t":"code","b":[237,192,203],"m":"sbc","o":"view_left","oa":52160},{"a":51970,"t":"code","b":[205,196,203],"m":"cmp","o":"a_CBC4","oa":52164},{"a":51973,"t":"code","b":[176,9],"m":"bcs","o":"b_CB10","oa":51984},{"a":51975,"t":"code","b":[185,230,252],"m":"lda","o":"f_FCE6,y","oa":64742},{"a":51978,"t":"code","b":[141,200,203],"m":"sta","o":"camera_target","oa":52168},{"a":51981,"t":"code","b":[76,29,203],"m":"jmp","o":"b_CB1D","oa":51997},{"a":51984,"l":"b_CB10","t":"code","b":[205,197,203],"m":"cmp","o":"a_CBC5","oa":52165,"x":[51973]},{"a":51987,"t":"code","b":[144,8],"m":"bcc","o":"b_CB1D","oa":51997},{"a":51989,"t":"code","b":[240,6],"m":"beq","o":"b_CB1D","oa":51997},{"a":51991,"t":"code","b":[185,230,252],"m":"lda","o":"f_FCE6,y","oa":64742},{"a":51994,"t":"code","b":[141,200,203],"m":"sta","o":"camera_target","oa":52168},{"a":51997,"l":"b_CB1D","t":"code","b":[173,200,203],"m":"lda","o":"camera_target","oa":52168,"x":[51955,51981,51987,51989]},{"a":52000,"t":"code","b":[205,133,254],"m":"cmp","o":"a_FE85","oa":65157},{"a":52003,"t":"code","b":[176,6],"m":"bcs","o":"b_CB2B","oa":52011},{"a":52005,"t":"code","b":[173,133,254],"m":"lda","o":"a_FE85","oa":65157},{"a":52008,"t":"code","b":[141,200,203],"m":"sta","o":"camera_target","oa":52168},{"a":52011,"l":"b_CB2B","t":"code","b":[173,200,203],"m":"lda","o":"camera_target","oa":52168,"x":[52003]},{"a":52014,"t":"code","b":[205,134,254],"m":"cmp","o":"a_FE86","oa":65158},{"a":52017,"t":"code","b":[144,8],"m":"bcc","o":"b_CB3B","oa":52027},{"a":52019,"t":"code","b":[240,6],"m":"beq","o":"b_CB3B","oa":52027},{"a":52021,"t":"code","b":[173,134,254],"m":"lda","o":"a_FE86","oa":65158},{"a":52024,"t":"code","b":[141,200,203],"m":"sta","o":"camera_target","oa":52168},{"a":52027,"l":"b_CB3B","t":"code","b":[173,194,203],"m":"lda","o":"camera_x","oa":52162,"x":[52017,52019]},{"a":52030,"t":"code","b":[205,200,203],"m":"cmp","o":"camera_target","oa":52168},{"a":52033,"t":"code","b":[176,6],"m":"bcs","o":"b_CB49","oa":52041},{"a":52035,"t":"code","b":[238,194,203],"m":"inc","o":"camera_x","oa":52162},{"a":52038,"t":"code","b":[76,80,203],"m":"jmp","o":"j_CB50","oa":52048},{"a":52041,"l":"b_CB49","t":"code","b":[144,5],"m":"bcc","o":"j_CB50","oa":52048,"x":[52033]},{"a":52043,"t":"code","b":[240,3],"m":"beq","o":"j_CB50","oa":52048},{"a":52045,"t":"code","b":[206,194,203],"m":"dec","o":"camera_x","oa":52162},{"a":52048,"l":"j_CB50","t":"code","b":[173,194,203],"m":"lda","o":"camera_x","oa":52162,"x":[51931,51947,52038,52041,52043]},{"a":52051,"t":"code","b":[201,20],"m":"cmp","o":"#$14"},{"a":52053,"t":"code","b":[176,5],"m":"bcs","o":"b_CB5C","oa":52060},{"a":52055,"t":"code","b":[169,20],"m":"lda","o":"#$14"},{"a":52057,"t":"code","b":[141,194,203],"m":"sta","o":"camera_x","oa":52162},{"a":52060,"l":"b_CB5C","t":"code","b":[173,194,203],"m":"lda","o":"camera_x","oa":52162,"x":[52053]},{"a":52063,"t":"code","b":[24],"m":"clc"},{"a":52064,"t":"code","b":[105,20],"m":"adc","o":"#$14"},{"a":52066,"t":"code","b":[205,242,104],"m":"cmp","o":"a_68F2","oa":26866},{"a":52069,"t":"code","b":[144,11],"m":"bcc","o":"b_CB72","oa":52082},{"a":52071,"t":"code","b":[240,9],"m":"beq","o":"b_CB72","oa":52082},{"a":52073,"t":"code","b":[173,242,104],"m":"lda","o":"a_68F2","oa":26866},{"a":52076,"t":"code","b":[56],"m":"sec"},{"a":52077,"t":"code","b":[233,20],"m":"sbc","o":"#$14"},{"a":52079,"t":"code","b":[141,194,203],"m":"sta","o":"camera_x","oa":52162},{"a":52082,"l":"b_CB72","t":"code","b":[173,194,203],"m":"lda","o":"camera_x","oa":52162,"x":[52069,52071]},{"a":52085,"t":"code","b":[56],"m":"sec"},{"a":52086,"t":"code","b":[233,20],"m":"sbc","o":"#$14"},{"a":52088,"t":"code","b":[141,192,203],"m":"sta","o":"view_left","oa":52160},{"a":52091,"t":"code","b":[24],"m":"clc"},{"a":52092,"t":"code","b":[105,39],"m":"adc","o":"#$27"},{"a":52094,"t":"code","b":[141,193,203],"m":"sta","o":"view_right","oa":52161},{"a":52097,"t":"code","b":[96],"m":"rts"},{"a":52098,"l":"set_camera_at","c":"Points the camera at column A: the target, and the centre too when A is more than 20 columns from it; the centre is kept within variables 23 and 24","t":"code","b":[133,189],"m":"sta","o":"zpa_BD","oa":189,"x":[23385,23460]},{"a":52100,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":52102,"t":"code","b":[56],"m":"sec"},{"a":52103,"t":"code","b":[237,194,203],"m":"sbc","o":"camera_x","oa":52162},{"a":52106,"t":"code","b":[176,5],"m":"bcs","o":"b_CB91","oa":52113},{"a":52108,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":52110,"t":"code","b":[24],"m":"clc"},{"a":52111,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":52113,"l":"b_CB91","t":"code","b":[201,20],"m":"cmp","o":"#$14","x":[52106]},{"a":52115,"t":"code","b":[144,7],"m":"bcc","o":"b_CB9C","oa":52124},{"a":52117,"t":"code","b":[240,5],"m":"beq","o":"b_CB9C","oa":52124},{"a":52119,"t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189},{"a":52121,"t":"code","b":[141,194,203],"m":"sta","o":"camera_x","oa":52162},{"a":52124,"l":"b_CB9C","t":"code","b":[165,189],"m":"lda","o":"zpa_BD","oa":189,"x":[52115,52117]},{"a":52126,"t":"code","b":[141,200,203],"m":"sta","o":"camera_target","oa":52168},{"a":52129,"t":"code","b":[173,194,203],"m":"lda","o":"camera_x","oa":52162},{"a":52132,"t":"code","b":[205,133,254],"m":"cmp","o":"a_FE85","oa":65157},{"a":52135,"t":"code","b":[176,6],"m":"bcs","o":"b_CBAF","oa":52143},{"a":52137,"t":"code","b":[173,133,254],"m":"lda","o":"a_FE85","oa":65157},{"a":52140,"t":"code","b":[141,194,203],"m":"sta","o":"camera_x","oa":52162},{"a":52143,"l":"b_CBAF","t":"code","b":[173,194,203],"m":"lda","o":"camera_x","oa":52162,"x":[52135]},{"a":52146,"t":"code","b":[205,134,254],"m":"cmp","o":"a_FE86","oa":65158},{"a":52149,"t":"code","b":[144,8],"m":"bcc","o":"r_CBBF","oa":52159},{"a":52151,"t":"code","b":[240,6],"m":"beq","o":"r_CBBF","oa":52159},{"a":52153,"t":"code","b":[173,134,254],"m":"lda","o":"a_FE86","oa":65158},{"a":52156,"t":"code","b":[141,194,203],"m":"sta","o":"camera_x","oa":52162},{"a":52159,"l":"r_CBBF","t":"code","b":[96],"m":"rts","x":[52149,52151]},{"a":52160,"l":"view_left","c":"The room column at the view's left edge","t":"byte","b":[0],"x":[1336,5947,12911,12922,12952,13010,13121,13328,13755,13948,14001,14040,51967,52088]},{"a":52161,"l":"view_right","c":"The room column at the view's right edge","t":"byte","b":[0],"x":[12879,12890,12941,13035,13317,52094]},{"a":52162,"l":"camera_x","c":"The room column the camera is centred on","t":"byte","b":[0],"x":[1351,1410,1533,10856,13893,13957,21795,23448,51920,51928,51944,52027,52035,52045,52048,52057,52060,52079,52082,52103,52121,52129,52140,52143,52156]},{"a":52163,"l":"camera_drawn","c":"Where the camera was when the room was last drawn; $C8 before any room is","t":"byte","b":[200],"x":[1413,1536,13897,13961,21200,21214,21579,21641,21806,24143,33293]},{"a":52164,"l":"a_CBC4","c":"The camera follows the actor once it is closer than this to the view's left edge; $CBC5 further than this","t":"byte","b":[10],"x":[51970]},{"a":52165,"l":"a_CBC5","c":"The camera follows the actor once it is further than this from the view's left edge, 30","t":"byte","b":[30],"x":[51984]},{"a":52166,"l":"a_CBC6","c":"2 when the camera follows an actor; $CBC7 that actor","t":"byte","b":[0],"x":[1198,23379,23391,23416,51950]},{"a":52167,"l":"a_CBC7","c":"The actor the camera follows","t":"byte","b":[0],"x":[1204,23411,23419,23439,23451,51957]},{"a":52168,"l":"camera_target","c":"The column the camera moves towards; $CBC9 not used","t":"byte","b":[0,0],"x":[23397,51978,51994,51997,52008,52011,52024,52030,52126]},{"a":52170,"t":"gap","n":53},{"a":52223,"l":"a_CBFF","c":"Sprite 7's pointer for the screen at $C800, the cursor's: raster_top writes it here and at $CFFF, so that the cursor is right on either screen","t":"byte","b":[255],"x":[3206]},{"a":52224,"t":"gap","n":1024,"x":[8884,9002,12380]},{"a":53248,"l":"opcode_handler_high","c":"The high byte of the routine for each of the 256 opcodes of the script language, read by run_script_loop with the chips banked out; $D100 the low bytes","t":"byte","b":[80,88,87,92,81,83,92,82],"x":[19563]},{"a":53256,"t":"byte","b":[81,92,80,88,94,88,88,82]},{"a":53264,"t":"byte","b":[85,93,91,96,86,97,86,82]},{"a":53272,"t":"byte","b":[80,89,81,85,87,82,88,82]},{"a":53280,"t":"byte","b":[94,88,94,92,84,83,80,82],"x":[54767]},{"a":53288,"t":"byte","b":[81,85,81,87,81,88,87,82]},{"a":53296,"t":"byte","b":[95,85,91,96,86,97,87,82]},{"a":53304,"t":"byte","b":[81,89,81,80,87,88,88,82]},{"a":53312,"t":"byte","b":[90,88,82,92,81,83,81,82]},{"a":53320,"t":"byte","b":[81,92,82,88,80,88,88,82]},{"a":53328,"t":"byte","b":[83,93,91,96,94,97,87,82]},{"a":53336,"t":"byte","b":[80,89,81,85,95,82,88,82]},{"a":53344,"t":"byte","b":[91,88,82,92,84,83,86,82]},{"a":53352,"t":"byte","b":[87,85,81,97,89,88,95,82]},{"a":53360,"t":"byte","b":[93,92,84,96,86,97,87,82]},{"a":53368,"t":"byte","b":[81,89,95,92,87,88,88,82]},{"a":53376,"t":"byte","b":[80,88,87,92,81,83,92,82]},{"a":53384,"t":"byte","b":[81,92,80,88,94,88,88,82]},{"a":53392,"t":"byte","b":[85,93,91,96,86,97,86,82]},{"a":53400,"t":"byte","b":[95,89,81,85,87,82,88,82]},{"a":53408,"t":"byte","b":[80,88,94,92,84,83,80,82]},{"a":53416,"t":"byte","b":[81,85,81,97,89,88,80,82]},{"a":53424,"t":"byte","b":[95,85,91,96,86,97,87,82]},{"a":53432,"t":"byte","b":[81,89,81,80,87,88,88,82]},{"a":53440,"t":"byte","b":[91,88,82,92,81,83,81,82]},{"a":53448,"t":"byte","b":[81,92,82,88,84,88,88,82]},{"a":53456,"t":"byte","b":[83,93,91,96,94,97,87,82]},{"a":53464,"t":"byte","b":[86,89,81,85,95,82,88,82]},{"a":53472,"t":"byte","b":[91,88,82,92,84,83,86,82]},{"a":53480,"t":"byte","b":[87,85,81,97,89,88,95,82]},{"a":53488,"t":"byte","b":[93,92,84,96,86,97,87,82]},{"a":53496,"t":"byte","b":[81,89,95,92,87,88,88,82]},{"a":53504,"l":"opcode_handler_low","c":"The low byte of the routine for each opcode","t":"byte","b":[71,166,165,139,203,2,203,206],"x":[19557]},{"a":53512,"t":"byte","b":[240,255,215,233,152,65,13,152]},{"a":53520,"t":"byte","b":[240,91,93,219,122,80,245,246]},{"a":53528,"t":"byte","b":[43,35,26,168,188,6,114,168]},{"a":53536,"t":"byte","b":[148,166,111,178,141,2,221,234]},{"a":53544,"t":"byte","b":[156,252,80,82,17,198,121,160]},{"a":53552,"t":"byte","b":[116,208,81,168,131,103,241,250]},{"a":53560,"t":"byte","b":[192,35,124,163,150,140,114,176]},{"a":53568,"t":"byte","b":[227,166,92,153,216,2,48,220]},{"a":53576,"t":"byte","b":[251,255,99,233,127,65,13,156]},{"a":53584,"t":"byte","b":[191,91,105,219,83,80,3,242]},{"a":53592,"t":"byte","b":[11,35,92,168,107,6,114,172]},{"a":53600,"t":"byte","b":[184,166,51,241,141,2,171,238]},{"a":53608,"t":"byte","b":[44,252,86,149,12,198,108,164]},{"a":53616,"t":"byte","b":[220,125,114,168,131,103,241,254]},{"a":53624,"t":"byte","b":[229,35,134,217,28,140,114,180]},{"a":53632,"t":"byte","b":[206,166,165,139,203,2,203,206]},{"a":53640,"t":"byte","b":[240,255,215,233,152,65,13,152]},{"a":53648,"t":"byte","b":[240,91,93,219,122,80,245,246]},{"a":53656,"t":"byte","b":[90,35,26,168,188,6,114,168]},{"a":53664,"t":"byte","b":[71,166,111,178,141,2,221,234]},{"a":53672,"t":"byte","b":[174,252,80,131,201,198,101,160]},{"a":53680,"t":"byte","b":[116,208,81,168,131,103,241,250]},{"a":53688,"t":"byte","b":[192,35,124,163,150,140,114,176]},{"a":53696,"t":"byte","b":[30,166,92,153,216,2,64,220]},{"a":53704,"t":"byte","b":[251,255,99,233,90,65,13,156]},{"a":53712,"t":"byte","b":[191,91,105,219,83,80,3,242]},{"a":53720,"t":"byte","b":[92,35,92,168,107,6,114,172]},{"a":53728,"t":"byte","b":[184,166,51,241,141,2,171,238]},{"a":53736,"t":"byte","b":[44,252,86,149,12,198,112,164]},{"a":53744,"t":"byte","b":[220,125,114,168,131,103,241,254]},{"a":53752,"t":"byte","b":[229,35,134,217,28,140,114,180]},{"a":53760,"l":"mirror_table","c":"For each byte of a multicolour picture, the byte with its four pixels in the opposite order, for drawing an actor facing left","t":"byte","b":[0,64,128,192,16,80,144,208],"x":[6666,6727]},{"a":53768,"t":"byte","b":[32,96,160,224,48,112,176,240]},{"a":53776,"t":"byte","b":[4,68,132,196,20,84,148,212]},{"a":53784,"t":"byte","b":[36,100,164,228,52,116,180,244]},{"a":53792,"t":"byte","b":[8,72,136,200,24,88,152,216]},{"a":53800,"t":"byte","b":[40,104,168,232,56,120,184,248]},{"a":53808,"t":"byte","b":[12,76,140,204,28,92,156,220]},{"a":53816,"t":"byte","b":[44,108,172,236,60,124,188,252]},{"a":53824,"t":"byte","b":[1,65,129,193,17,81,145,209]},{"a":53832,"t":"byte","b":[33,97,161,225,49,113,177,241]},{"a":53840,"t":"byte","b":[5,69,133,197,21,85,149,213]},{"a":53848,"t":"byte","b":[37,101,165,229,53,117,181,245]},{"a":53856,"t":"byte","b":[9,73,137,201,25,89,153,217]},{"a":53864,"t":"byte","b":[41,105,169,233,57,121,185,249]},{"a":53872,"t":"byte","b":[13,77,141,205,29,93,157,221]},{"a":53880,"t":"byte","b":[45,109,173,237,61,125,189,253]},{"a":53888,"t":"byte","b":[2,66,130,194,18,82,146,210]},{"a":53896,"t":"byte","b":[34,98,162,226,50,114,178,242]},{"a":53904,"t":"byte","b":[6,70,134,198,22,86,150,214]},{"a":53912,"t":"byte","b":[38,102,166,230,54,118,182,246]},{"a":53920,"t":"byte","b":[10,74,138,202,26,90,154,218]},{"a":53928,"t":"byte","b":[42,106,170,234,58,122,186,250]},{"a":53936,"t":"byte","b":[14,78,142,206,30,94,158,222]},{"a":53944,"t":"byte","b":[46,110,174,238,62,126,190,254]},{"a":53952,"t":"byte","b":[3,67,131,195,19,83,147,211]},{"a":53960,"t":"byte","b":[35,99,163,227,51,115,179,243]},{"a":53968,"t":"byte","b":[7,71,135,199,23,87,151,215]},{"a":53976,"t":"byte","b":[39,103,167,231,55,119,183,247]},{"a":53984,"t":"byte","b":[11,75,139,203,27,91,155,219]},{"a":53992,"t":"byte","b":[43,107,171,235,59,123,187,251]},{"a":54000,"t":"byte","b":[15,79,143,207,31,95,159,223]},{"a":54008,"t":"byte","b":[47,111,175,239,63,127,191,255]},{"a":54016,"c":"The high bytes of the sprite column's row offsets for sixteen rows above its first, which nothing reads; the table proper starts at $D310","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":54024,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":54032,"l":"sprite_row_high","c":"For each of the 144 rows of an actor's sprite column, the high byte of its offset from the column's base: which band's block holds it, 256 bytes apart (draw_limb_picture counts rows from 1 and reads from $D311)","t":"byte","b":[0],"x":[8135,8275,9954]},{"a":54033,"l":"sprite_row_high_from_1","c":"The high byte table seen from its second row: draw_limb_picture counts its rows from 1, so its reads ($19FE, $1A5F) start here, and run to the table's end at $D39F","t":"byte","b":[0,0,1,1,1,1,1,1],"x":[6654,6751]},{"a":54041,"t":"byte","b":[1,1,1,1,1,1,1,1]},{"a":54049,"t":"byte","b":[1,1,1,1,1,1,2,2]},{"a":54057,"t":"byte","b":[2,2,2,2,2,2,2,2]},{"a":54065,"t":"byte","b":[2,2,2,2,2,2,2,2]},{"a":54073,"t":"byte","b":[2,2,3,3,3,3,3,3]},{"a":54081,"t":"byte","b":[3,3,3,3,3,3,3,3]},{"a":54089,"t":"byte","b":[3,3,3,3,3,3,4,4]},{"a":54097,"t":"byte","b":[4,4,4,4,4,4,4,4]},{"a":54105,"t":"byte","b":[4,4,4,4,4,4,4,4]},{"a":54113,"t":"byte","b":[4,4,5,5,5,5,5,5]},{"a":54121,"t":"byte","b":[5,5,5,5,5,5,5,5]},{"a":54129,"t":"byte","b":[5,5,5,5,5,5,6,6]},{"a":54137,"t":"byte","b":[6,6,6,6,6,6,6,6]},{"a":54145,"t":"byte","b":[6,6,6,6,6,6,6,6]},{"a":54153,"t":"byte","b":[6,6,7,7,7,7,7,7]},{"a":54161,"t":"byte","b":[7,7,7,7,7,7,7,7]},{"a":54169,"t":"byte","b":[7,7,7,7,7,7,7]},{"a":54176,"c":"The low bytes for the sixteen rows nothing reads","t":"byte","b":[0,3,6,9,12,15,18,21]},{"a":54184,"t":"byte","b":[24,27,30,33,36,39,42,45]},{"a":54192,"l":"sprite_row_low","c":"The low byte of each row's offset: three bytes a row within its block. A block holds 21 rows; the last three rows of each band are kept in rows 18 to 20 of the next band's block, because the raster interrupt switches the pointer to that block three lines before the band ends","t":"byte","b":[48],"x":[8126,8266,9946]},{"a":54193,"l":"sprite_row_low_from_1","c":"The low byte table seen from its second row, read by draw_limb_picture at $19F7 and $1A58, to the table's end at $D43F","t":"byte","b":[51,54,57,60,0,3,6,9],"x":[6647,6744]},{"a":54201,"t":"byte","b":[12,15,18,21,24,27,30,33]},{"a":54209,"t":"byte","b":[36,39,42,45,48,51,54,57]},{"a":54217,"t":"byte","b":[60,0,3,6,9,12,15,18]},{"a":54225,"t":"byte","b":[21,24,27,30,33,36,39,42]},{"a":54233,"t":"byte","b":[45,48,51,54,57,60,0,3]},{"a":54241,"t":"byte","b":[6,9,12,15,18,21,24,27]},{"a":54249,"t":"byte","b":[30,33,36,39,42,45,48,51]},{"a":54257,"t":"byte","b":[54,57,60,0,3,6,9,12]},{"a":54265,"t":"byte","b":[15,18,21,24,27,30,33,36]},{"a":54273,"t":"byte","b":[39,42,45,48,51,54,57,60]},{"a":54281,"t":"byte","b":[0,3,6,9,12,15,18,21]},{"a":54289,"t":"byte","b":[24,27,30,33,36,39,42,45]},{"a":54297,"t":"byte","b":[48,51,54,57,60,0,3,6]},{"a":54305,"t":"byte","b":[9,12,15,18,21,24,27,30]},{"a":54313,"t":"byte","b":[33,36,39,42,45,48,51,54]},{"a":54321,"t":"byte","b":[57,60,0,3,6,9,12,15]},{"a":54329,"t":"byte","b":[18,21,24,27,30,33,36]},{"a":54336,"l":"f_D440","c":"The offset of each of the 25 screen rows, 40 bytes apart, low bytes ($D459 high), for the mask screen","t":"byte","b":[0,40,80,120,160,200,240,24],"x":[9915]},{"a":54344,"t":"byte","b":[64,104,144,184,224,8,48,88]},{"a":54352,"t":"byte","b":[128,168,208,248,32,72,112,152]},{"a":54360,"t":"byte","b":[192]},{"a":54361,"l":"f_D459","c":"The high bytes of each screen row's offset","t":"byte","b":[0,0,0,0,0,0,0,1],"x":[9923]},{"a":54369,"t":"byte","b":[1,1,1,1,1,2,2,2]},{"a":54377,"t":"byte","b":[2,2,2,2,3,3,3,3]},{"a":54385,"t":"byte","b":[3]},{"a":54386,"l":"alloc_block","c":"Finds room in the heap for X/Y bytes and a header (find_free_block), compacting it and throwing out resources when it must (alloc_hard); when even that fails it is fatal error 4. Returns the block in X/Y","t":"code","b":[32,153,70],"m":"jsr","o":"find_free_block","oa":18073,"x":[11695,14619,21487,24641,54515]},{"a":54389,"t":"code","b":[208,8],"m":"bne","o":"r_D47F","oa":54399},{"a":54391,"t":"code","b":[32,83,71],"m":"jsr","o":"alloc_hard","oa":18259},{"a":54394,"t":"code","b":[208,3],"m":"bne","o":"r_D47F","oa":54399},{"a":54396,"t":"code","b":[32,103,6],"m":"jsr","o":"fatal_error_4","oa":1639},{"a":54399,"l":"r_D47F","t":"code","b":[96],"m":"rts","x":[54389,54394]},{"a":54400,"l":"free_block","c":"Gives the heap block at X/Y back: it goes after the last free block ($FFF0), the list is sorted by address and neighbours joined; $FC1D notes that something was freed","t":"code","b":[173,240,255],"m":"lda","o":"heap_free_tail","oa":65520,"x":[10960,10976,11649,14561,18970,19016,19068,19109,22091,24586]},{"a":54403,"t":"code","b":[133,81],"m":"sta","o":"zpa_51","oa":81},{"a":54405,"t":"code","b":[173,241,255],"m":"lda","o":"a_FFF1","oa":65521},{"a":54408,"t":"code","b":[133,82],"m":"sta","o":"zpa_52","oa":82},{"a":54410,"t":"code","b":[142,240,255],"m":"stx","o":"heap_free_tail","oa":65520},{"a":54413,"t":"code","b":[140,241,255],"m":"sty","o":"a_FFF1","oa":65521},{"a":54416,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":54418,"t":"code","b":[173,240,255],"m":"lda","o":"heap_free_tail","oa":65520},{"a":54421,"t":"code","b":[145,81],"m":"sta","o":"(zpa_51),y","oa":81},{"a":54423,"t":"code","b":[200],"m":"iny"},{"a":54424,"t":"code","b":[173,241,255],"m":"lda","o":"a_FFF1","oa":65521},{"a":54427,"t":"code","b":[145,81],"m":"sta","o":"(zpa_51),y","oa":81},{"a":54429,"t":"code","b":[134,81],"m":"stx","o":"zpa_51","oa":81},{"a":54431,"t":"code","b":[133,82],"m":"sta","o":"zpa_52","oa":82},{"a":54433,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":54435,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":54437,"t":"code","b":[145,81],"m":"sta","o":"(zpa_51),y","oa":81},{"a":54439,"t":"code","b":[200],"m":"iny"},{"a":54440,"t":"code","b":[145,81],"m":"sta","o":"(zpa_51),y","oa":81},{"a":54442,"t":"code","b":[32,202,69],"m":"jsr","o":"sort_free_list","oa":17866},{"a":54445,"t":"code","b":[32,70,69],"m":"jsr","o":"merge_free_blocks","oa":17734},{"a":54448,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":54450,"t":"code","b":[141,29,252],"m":"sta","o":"a_FC1D","oa":64541},{"a":54453,"t":"code","b":[96],"m":"rts"},{"a":54454,"c":"Not used","t":"byte","b":[0,0]},{"a":54456,"l":"a_D4B8","c":"The resource's size as its header on the disk gives it, low byte ($D4B9 high)","t":"byte","b":[0],"x":[54509,54556,54582]},{"a":54457,"l":"a_D4B9","c":"The high byte of the resource's size from its header on the disk","t":"byte","b":[0],"x":[54512,54562,54589]},{"a":54458,"l":"a_D4BA","c":"The header's third byte, which is 0 for a resource: anything else means the wrong data was read; $D4BB its fourth, the check byte","t":"byte","b":[0,0],"x":[54493]},{"a":54460,"l":"a_D4BC","c":"The address the resource is loaded to ($D4BD high)","t":"byte","b":[0],"x":[54518,54529,54550,54571,54597,54702]},{"a":54461,"l":"a_D4BD","c":"The high byte of the address the resource is loaded to","t":"byte","b":[0],"x":[54521,54534,54553,54576,54604,54705]},{"a":54462,"l":"load_resource","c":"Loads resource $D607 of type $D608 from offset $D609/$D60A in its room's data (the drive already sent there by find_room_on_disk), with the snail as the cursor. Reads the four-byte header first: a third byte other than 0 means the side in the drive is wrong (check_side) and it starts again. Takes a heap block of the size it gives, except that a music resource asked for with $61EF set goes to $C300, the top of the heap kept for it. Then reads the whole resource into it and adds up its bytes after the header with exclusive OR; when the sum is not the header's fourth byte it reads it again, showing \"Disk Error, push button to continue.\" each time. Last, writes the heap's header over the disk's (write_block_header)","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[11859,11983,12047,12131,54501]},{"a":54464,"t":"code","b":[32,218,19],"m":"jsr","o":"busy_cursor","oa":5082},{"a":54467,"t":"code","b":[174,9,214],"m":"ldx","o":"resource_offset","oa":54793},{"a":54470,"t":"code","b":[172,10,214],"m":"ldy","o":"a_D60A","oa":54794},{"a":54473,"t":"code","b":[32,129,58],"m":"jsr","o":"disk_read_from","oa":14977},{"a":54476,"t":"code","b":[162,184],"m":"ldx","o":"#$B8"},{"a":54478,"t":"code","b":[160,212],"m":"ldy","o":"#$D4"},{"a":54480,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":54482,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":54485,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":54487,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":54490,"t":"code","b":[32,169,58],"m":"jsr","o":"disk_read_bytes","oa":15017},{"a":54493,"t":"code","b":[173,186,212],"m":"lda","o":"a_D4BA","oa":54458},{"a":54496,"t":"code","b":[240,6],"m":"beq","o":"b_D4E8","oa":54504},{"a":54498,"t":"code","b":[32,184,213],"m":"jsr","o":"check_side","oa":54712},{"a":54501,"t":"code","b":[76,190,212],"m":"jmp","o":"load_resource","oa":54462},{"a":54504,"l":"b_D4E8","t":"code","b":[173,239,97],"m":"lda","o":"a_61EF","oa":25071,"x":[54496]},{"a":54507,"t":"code","b":[208,18],"m":"bne","o":"b_D4FF","oa":54527},{"a":54509,"t":"code","b":[174,184,212],"m":"ldx","o":"a_D4B8","oa":54456},{"a":54512,"t":"code","b":[172,185,212],"m":"ldy","o":"a_D4B9","oa":54457},{"a":54515,"t":"code","b":[32,114,212],"m":"jsr","o":"alloc_block","oa":54386},{"a":54518,"t":"code","b":[142,188,212],"m":"stx","o":"a_D4BC","oa":54460},{"a":54521,"t":"code","b":[140,189,212],"m":"sty","o":"a_D4BD","oa":54461},{"a":54524,"t":"code","b":[76,9,213],"m":"jmp","o":"j_D509","oa":54537},{"a":54527,"l":"b_D4FF","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[54507]},{"a":54529,"t":"code","b":[141,188,212],"m":"sta","o":"a_D4BC","oa":54460},{"a":54532,"t":"code","b":[169,195],"m":"lda","o":"#$C3"},{"a":54534,"t":"code","b":[141,189,212],"m":"sta","o":"a_D4BD","oa":54461},{"a":54537,"l":"j_D509","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[54524]},{"a":54539,"t":"code","b":[133,215],"m":"sta","o":"zpa_D7","oa":215},{"a":54541,"l":"j_D50D","t":"code","b":[174,9,214],"m":"ldx","o":"resource_offset","oa":54793,"x":[54674]},{"a":54544,"t":"code","b":[172,10,214],"m":"ldy","o":"a_D60A","oa":54794},{"a":54547,"t":"code","b":[32,129,58],"m":"jsr","o":"disk_read_from","oa":14977},{"a":54550,"t":"code","b":[174,188,212],"m":"ldx","o":"a_D4BC","oa":54460},{"a":54553,"t":"code","b":[172,189,212],"m":"ldy","o":"a_D4BD","oa":54461},{"a":54556,"t":"code","b":[173,184,212],"m":"lda","o":"a_D4B8","oa":54456},{"a":54559,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":54562,"t":"code","b":[173,185,212],"m":"lda","o":"a_D4B9","oa":54457},{"a":54565,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":54568,"t":"code","b":[32,169,58],"m":"jsr","o":"disk_read_bytes","oa":15017},{"a":54571,"t":"code","b":[173,188,212],"m":"lda","o":"a_D4BC","oa":54460},{"a":54574,"t":"code","b":[133,63],"m":"sta","o":"zpa_3F","oa":63},{"a":54576,"t":"code","b":[173,189,212],"m":"lda","o":"a_D4BD","oa":54461},{"a":54579,"t":"code","b":[133,64],"m":"sta","o":"zpa_40","oa":64},{"a":54581,"t":"code","b":[56],"m":"sec"},{"a":54582,"t":"code","b":[173,184,212],"m":"lda","o":"a_D4B8","oa":54456},{"a":54585,"t":"code","b":[233,4],"m":"sbc","o":"#$04"},{"a":54587,"t":"code","b":[133,211],"m":"sta","o":"zpa_D3","oa":211},{"a":54589,"t":"code","b":[173,185,212],"m":"lda","o":"a_D4B9","oa":54457},{"a":54592,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":54594,"t":"code","b":[133,212],"m":"sta","o":"zpa_D4","oa":212},{"a":54596,"t":"code","b":[24],"m":"clc"},{"a":54597,"t":"code","b":[173,188,212],"m":"lda","o":"a_D4BC","oa":54460},{"a":54600,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":54602,"t":"code","b":[133,209],"m":"sta","o":"zpa_D1","oa":209},{"a":54604,"t":"code","b":[173,189,212],"m":"lda","o":"a_D4BD","oa":54461},{"a":54607,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":54609,"t":"code","b":[133,210],"m":"sta","o":"zpa_D2","oa":210},{"a":54611,"t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":54613,"t":"code","b":[177,63],"m":"lda","o":"(zpa_3F),y","oa":63},{"a":54615,"t":"code","b":[133,214],"m":"sta","o":"zpa_D6","oa":214},{"a":54617,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":54619,"t":"code","b":[133,213],"m":"sta","o":"zpa_D5","oa":213},{"a":54621,"l":"b_D55D","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[54647]},{"a":54623,"t":"code","b":[165,213],"m":"lda","o":"zpa_D5","oa":213},{"a":54625,"t":"code","b":[81,209],"m":"eor","o":"(zpa_D1),y","oa":209},{"a":54627,"t":"code","b":[133,213],"m":"sta","o":"zpa_D5","oa":213},{"a":54629,"t":"code","b":[230,209],"m":"inc","o":"zpa_D1","oa":209},{"a":54631,"t":"code","b":[208,2],"m":"bne","o":"b_D56B","oa":54635},{"a":54633,"t":"code","b":[230,210],"m":"inc","o":"zpa_D2","oa":210},{"a":54635,"l":"b_D56B","t":"code","b":[165,211],"m":"lda","o":"zpa_D3","oa":211,"x":[54631]},{"a":54637,"t":"code","b":[208,2],"m":"bne","o":"b_D571","oa":54641},{"a":54639,"t":"code","b":[198,212],"m":"dec","o":"zpa_D4","oa":212},{"a":54641,"l":"b_D571","t":"code","b":[198,211],"m":"dec","o":"zpa_D3","oa":211,"x":[54637]},{"a":54643,"t":"code","b":[165,211],"m":"lda","o":"zpa_D3","oa":211},{"a":54645,"t":"code","b":[5,212],"m":"ora","o":"zpa_D4","oa":212},{"a":54647,"t":"code","b":[208,228],"m":"bne","o":"b_D55D","oa":54621},{"a":54649,"t":"code","b":[165,213],"m":"lda","o":"zpa_D5","oa":213},{"a":54651,"t":"code","b":[197,214],"m":"cmp","o":"zpa_D6","oa":214},{"a":54653,"t":"code","b":[240,22],"m":"beq","o":"write_block_header","oa":54677},{"a":54655,"t":"code","b":[198,215],"m":"dec","o":"zpa_D7","oa":215},{"a":54657,"t":"code","b":[208,15],"m":"bne","o":"b_D592","oa":54674},{"a":54659,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":54661,"t":"code","b":[133,215],"m":"sta","o":"zpa_D7","oa":215},{"a":54663,"t":"code","b":[169,198],"m":"lda","o":"#$C6"},{"a":54665,"t":"code","b":[133,199],"m":"sta","o":"zpp_C7","oa":199},{"a":54667,"t":"code","b":[169,48],"m":"lda","o":"#$30"},{"a":54669,"t":"code","b":[133,200],"m":"sta","o":"zpa_C8","oa":200},{"a":54671,"t":"code","b":[32,47,48],"m":"jsr","o":"show_and_wait","oa":12335},{"a":54674,"l":"b_D592","t":"code","b":[76,13,213],"m":"jmp","o":"j_D50D","oa":54541,"x":[54657]},{"a":54677,"l":"write_block_header","c":"Writes a heap block's header at $3F/$40: its size ($FC14/$FC15), type ($D608) and number ($D607); returns the block in X/Y, and the cursor is the arrow again","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[11712,14636,54653]},{"a":54679,"t":"code","b":[173,20,252],"m":"lda","o":"a_FC14","oa":64532},{"a":54682,"t":"code","b":[145,63],"m":"sta","o":"(zpa_3F),y","oa":63},{"a":54684,"t":"code","b":[200],"m":"iny"},{"a":54685,"t":"code","b":[173,21,252],"m":"lda","o":"a_FC15","oa":64533},{"a":54688,"t":"code","b":[145,63],"m":"sta","o":"(zpa_3F),y","oa":63},{"a":54690,"t":"code","b":[200],"m":"iny"},{"a":54691,"t":"code","b":[173,8,214],"m":"lda","o":"resource_type","oa":54792},{"a":54694,"t":"code","b":[145,63],"m":"sta","o":"(zpa_3F),y","oa":63},{"a":54696,"t":"code","b":[200],"m":"iny"},{"a":54697,"t":"code","b":[173,7,214],"m":"lda","o":"resource_number","oa":54791},{"a":54700,"t":"code","b":[145,63],"m":"sta","o":"(zpa_3F),y","oa":63},{"a":54702,"t":"code","b":[174,188,212],"m":"ldx","o":"a_D4BC","oa":54460},{"a":54705,"t":"code","b":[172,189,212],"m":"ldy","o":"a_D4BD","oa":54461},{"a":54708,"t":"code","b":[32,232,19],"m":"jsr","o":"normal_cursor","oa":5096},{"a":54711,"t":"code","b":[96],"m":"rts"},{"a":54712,"l":"check_side","c":"After a bad read: reads the side's number from track 1, sector 0 into $D60B; when it is the side variable 13 says is in the drive, the data itself is bad and it is fatal error 3; otherwise asks for the right side. The start of the disk data is kept","t":"code","b":[173,189,59],"m":"lda","o":"a_3BBD","oa":15293,"x":[54498]},{"a":54715,"t":"code","b":[72],"m":"pha"},{"a":54716,"t":"code","b":[173,190,59],"m":"lda","o":"a_3BBE","oa":15294},{"a":54719,"t":"code","b":[72],"m":"pha"},{"a":54720,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":54722,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":54724,"t":"code","b":[32,93,58],"m":"jsr","o":"disk_seek","oa":14941},{"a":54727,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":54729,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":54731,"t":"code","b":[32,129,58],"m":"jsr","o":"disk_read_from","oa":14977},{"a":54734,"t":"code","b":[162,11],"m":"ldx","o":"#$0B"},{"a":54736,"t":"code","b":[160,214],"m":"ldy","o":"#$D6"},{"a":54738,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":54740,"t":"code","b":[141,198,59],"m":"sta","o":"a_3BC6","oa":15302},{"a":54743,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":54745,"t":"code","b":[141,199,59],"m":"sta","o":"a_3BC7","oa":15303},{"a":54748,"t":"code","b":[32,169,58],"m":"jsr","o":"disk_read_bytes","oa":15017},{"a":54751,"t":"code","b":[173,123,254],"m":"lda","o":"a_FE7B","oa":65147},{"a":54754,"t":"code","b":[205,11,214],"m":"cmp","o":"a_D60B","oa":54795},{"a":54757,"t":"code","b":[208,17],"m":"bne","o":"b_D5F8","oa":54776},{"a":54759,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":54761,"t":"code","b":[133,201],"m":"sta","o":"zpa_C9","oa":201},{"a":54763,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":54765,"t":"code","b":[132,1],"m":"sty","o":"zpa_01","oa":1},{"a":54767,"l":"j_D5EF","t":"code","b":[141,32,208],"m":"sta","o":"$D020","oa":53280,"x":[54770]},{"a":54770,"t":"code","b":[76,239,213],"m":"jmp","o":"j_D5EF","oa":54767},{"a":54773,"c":"A JMP $D5FE after the endless loop, which nothing reaches","t":"code","b":[76,254,213],"m":"jmp","o":"j_D5FE","oa":54782},{"a":54776,"l":"b_D5F8","t":"code","b":[173,123,254],"m":"lda","o":"a_FE7B","oa":65147,"x":[54757]},{"a":54779,"t":"code","b":[32,11,48],"m":"jsr","o":"ask_for_side","oa":12299},{"a":54782,"l":"j_D5FE","t":"code","b":[104],"m":"pla","x":[54773]},{"a":54783,"t":"code","b":[141,190,59],"m":"sta","o":"a_3BBE","oa":15294},{"a":54786,"t":"code","b":[104],"m":"pla"},{"a":54787,"t":"code","b":[141,189,59],"m":"sta","o":"a_3BBD","oa":15293},{"a":54790,"t":"code","b":[96],"m":"rts"},{"a":54791,"l":"resource_number","c":"The number of the resource being loaded","t":"byte","b":[0],"x":[11709,11835,11883,11939,11990,12007,12054,12074,12138,14633,54697]},{"a":54792,"l":"resource_type","c":"Its type: 1 an inventory object, 2 a costume, 3 a room, 4 a block of the room's graphics, 5 a script, 6 a sound","t":"byte","b":[0],"x":[11704,11856,11980,12044,12128,14628,54691]},{"a":54793,"l":"resource_offset","c":"Where it starts in its room's data, the byte in the sector ($D60A the sectors after the room's first)","t":"byte","b":[0],"x":[11846,11969,12033,12102,12117,54467,54541]},{"a":54794,"l":"a_D60A","c":"The sectors after the room's first sector","t":"byte","b":[0],"x":[11851,11975,12039,12108,12123,54470,54544]},{"a":54795,"l":"a_D60B","c":"The side's number read back from the disk","t":"byte","b":[0],"x":[54754]},{"a":54796,"l":"iris_closing","c":"The iris that closes a room: its rectangle's left and top columns and rows, right and bottom (0, 0, 39, 15), how each moves at every step (1, 1, -1, -1) and the steps (8)","t":"byte","b":[0,0,39,15,1,1,255,255],"x":[54971]},{"a":54804,"t":"byte","b":[8]},{"a":54805,"l":"iris_opening","c":"The iris that opens a room: from the middle (7, 7, 32, 8) outwards (-1, -1, 1, 1), eight steps","t":"byte","b":[7,7,32,8,255,255,1,1]},{"a":54813,"t":"byte","b":[8]},{"a":54814,"l":"close_room","c":"Before a room changes: hides the cursor (keeping its state in $1162), takes the actors' sprites off, stops the message, closes the iris on the room to black, clears both screens' picture rows and makes $C800 the screen to draw on, then waits for a frame","t":"code","b":[173,97,17],"m":"lda","o":"a_1161","oa":4449,"x":[21628,21664,23431,24410]},{"a":54817,"t":"code","b":[141,98,17],"m":"sta","o":"a_1162","oa":4450},{"a":54820,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":54822,"t":"code","b":[141,97,17],"m":"sta","o":"a_1161","oa":4449},{"a":54825,"t":"code","b":[32,22,49],"m":"jsr","o":"clear_on_screen","oa":12566},{"a":54828,"t":"code","b":[32,139,34],"m":"jsr","o":"stop_message","oa":8843},{"a":54831,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":54833,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":54835,"t":"code","b":[32,180,214],"m":"jsr","o":"iris","oa":54964},{"a":54838,"t":"code","b":[32,120,78],"m":"jsr","o":"clear_screen_buffers","oa":20088},{"a":54841,"t":"code","b":[32,71,6],"m":"jsr","o":"show_screen_cc00","oa":1607},{"a":54844,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":54846,"t":"code","b":[133,122],"m":"sta","o":"zpa_7A","oa":122},{"a":54848,"l":"b_D640","t":"code","b":[165,122],"m":"lda","o":"zpa_7A","oa":122,"x":[54850]},{"a":54850,"t":"code","b":[208,252],"m":"bne","o":"b_D640","oa":54848},{"a":54852,"t":"code","b":[96],"m":"rts"},{"a":54853,"l":"open_room","c":"After a room is drawn: opens the iris from the middle out, then gives the cursor its state back","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[1495]},{"a":54855,"t":"code","b":[162,9],"m":"ldx","o":"#$09"},{"a":54857,"t":"code","b":[32,180,214],"m":"jsr","o":"iris","oa":54964},{"a":54860,"t":"code","b":[173,98,17],"m":"lda","o":"a_1162","oa":4450},{"a":54863,"t":"code","b":[141,97,17],"m":"sta","o":"a_1161","oa":4449},{"a":54866,"t":"code","b":[96],"m":"rts"},{"a":54867,"l":"iris_screens","c":"Sets the iris's screens by which one is shown ($22): closing, it blacks out the picture rows of the one shown; opening, it copies the room's characters from the other screen, after copying the room's colours from $64F5 into the colour RAM","t":"code","b":[165,164],"m":"lda","o":"zpa_A4","oa":164,"x":[54966]},{"a":54869,"t":"code","b":[208,28],"m":"bne","o":"b_D673","oa":54899},{"a":54871,"t":"code","b":[165,34],"m":"lda","o":"zpa_22","oa":34},{"a":54873,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":54875,"t":"code","b":[208,11],"m":"bne","o":"b_D668","oa":54888},{"a":54877,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":54879,"t":"code","b":[133,141],"m":"sta","o":"zpa_8D","oa":141},{"a":54881,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":54883,"t":"code","b":[133,142],"m":"sta","o":"zpa_8E","oa":142},{"a":54885,"t":"code","b":[76,163,214],"m":"jmp","o":"j_D6A3","oa":54947},{"a":54888,"l":"b_D668","t":"code","b":[169,80],"m":"lda","o":"#$50","x":[54875]},{"a":54890,"t":"code","b":[133,141],"m":"sta","o":"zpa_8D","oa":141},{"a":54892,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":54894,"t":"code","b":[133,142],"m":"sta","o":"zpa_8E","oa":142},{"a":54896,"t":"code","b":[76,163,214],"m":"jmp","o":"j_D6A3","oa":54947},{"a":54899,"l":"b_D673","t":"code","b":[165,34],"m":"lda","o":"zpa_22","oa":34,"x":[54869]},{"a":54901,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":54903,"t":"code","b":[208,19],"m":"bne","o":"b_D68C","oa":54924},{"a":54905,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":54907,"t":"code","b":[133,141],"m":"sta","o":"zpa_8D","oa":141},{"a":54909,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":54911,"t":"code","b":[133,142],"m":"sta","o":"zpa_8E","oa":142},{"a":54913,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":54915,"t":"code","b":[133,139],"m":"sta","o":"zpa_8B","oa":139},{"a":54917,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":54919,"t":"code","b":[133,140],"m":"sta","o":"zpa_8C","oa":140},{"a":54921,"t":"code","b":[76,156,214],"m":"jmp","o":"j_D69C","oa":54940},{"a":54924,"l":"b_D68C","t":"code","b":[169,80],"m":"lda","o":"#$50","x":[54903]},{"a":54926,"t":"code","b":[133,141],"m":"sta","o":"zpa_8D","oa":141},{"a":54928,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":54930,"t":"code","b":[133,142],"m":"sta","o":"zpa_8E","oa":142},{"a":54932,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":54934,"t":"code","b":[133,139],"m":"sta","o":"zpa_8B","oa":139},{"a":54936,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":54938,"t":"code","b":[133,140],"m":"sta","o":"zpa_8C","oa":140},{"a":54940,"l":"j_D69C","t":"code","b":[138],"m":"txa","x":[54921]},{"a":54941,"t":"code","b":[72],"m":"pha"},{"a":54942,"t":"code","b":[32,99,19],"m":"jsr","o":"copy_room_colours_banked","oa":4963},{"a":54945,"t":"code","b":[104],"m":"pla"},{"a":54946,"t":"code","b":[170],"m":"tax"},{"a":54947,"l":"j_D6A3","t":"code","b":[169,245],"m":"lda","o":"#$F5","x":[54885,54896]},{"a":54949,"t":"code","b":[133,143],"m":"sta","o":"zpa_8F","oa":143},{"a":54951,"t":"code","b":[169,100],"m":"lda","o":"#$64"},{"a":54953,"t":"code","b":[133,144],"m":"sta","o":"zpa_90","oa":144},{"a":54955,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":54957,"t":"code","b":[133,145],"m":"sta","o":"zpp_91","oa":145},{"a":54959,"t":"code","b":[169,216],"m":"lda","o":"#$D8"},{"a":54961,"t":"code","b":[133,146],"m":"sta","o":"zpa_92","oa":146},{"a":54963,"t":"code","b":[96],"m":"rts"},{"a":54964,"l":"iris","c":"Runs an iris from the table at $D60C plus X (A: 0 closing to black, 1 opening): each step, after a frame, goes round the rectangle's edge, its top left to right, its right side down, its bottom right to left and its left side up, and moves the edges in or out","t":"code","b":[133,164],"m":"sta","o":"zpa_A4","oa":164,"x":[54835,54857]},{"a":54966,"t":"code","b":[32,83,214],"m":"jsr","o":"iris_screens","oa":54867},{"a":54969,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":54971,"l":"b_D6BB","t":"code","b":[189,12,214],"m":"lda","o":"iris_closing,x","oa":54796,"x":[54981]},{"a":54974,"t":"code","b":[153,155,0],"m":"sta","o":"f_009B,y","oa":155},{"a":54977,"t":"code","b":[232],"m":"inx"},{"a":54978,"t":"code","b":[200],"m":"iny"},{"a":54979,"t":"code","b":[192,9],"m":"cpy","o":"#$09"},{"a":54981,"t":"code","b":[208,244],"m":"bne","o":"b_D6BB","oa":54971},{"a":54983,"l":"b_D6C7","t":"code","b":[32,58,215],"m":"jsr","o":"wait_frame","oa":55098,"x":[55051]},{"a":54986,"t":"code","b":[166,155],"m":"ldx","o":"f_009B","oa":155},{"a":54988,"t":"code","b":[164,156],"m":"ldy","o":"zpa_9C","oa":156},{"a":54990,"t":"code","b":[32,14,215],"m":"jsr","o":"iris_cell","oa":55054},{"a":54993,"l":"j_D6D1","t":"code","b":[228,157],"m":"cpx","o":"zpa_9D","oa":157,"x":[55001]},{"a":54995,"t":"code","b":[240,7],"m":"beq","o":"b_D6DC","oa":55004},{"a":54997,"t":"code","b":[32,14,215],"m":"jsr","o":"iris_cell","oa":55054},{"a":55000,"t":"code","b":[232],"m":"inx"},{"a":55001,"t":"code","b":[76,209,214],"m":"jmp","o":"j_D6D1","oa":54993},{"a":55004,"l":"b_D6DC","t":"code","b":[196,158],"m":"cpy","o":"zpa_9E","oa":158,"x":[54995,55012]},{"a":55006,"t":"code","b":[240,7],"m":"beq","o":"b_D6E7","oa":55015},{"a":55008,"t":"code","b":[32,14,215],"m":"jsr","o":"iris_cell","oa":55054},{"a":55011,"t":"code","b":[200],"m":"iny"},{"a":55012,"t":"code","b":[76,220,214],"m":"jmp","o":"b_D6DC","oa":55004},{"a":55015,"l":"b_D6E7","t":"code","b":[228,155],"m":"cpx","o":"f_009B","oa":155,"x":[55006,55023]},{"a":55017,"t":"code","b":[240,7],"m":"beq","o":"b_D6F2","oa":55026},{"a":55019,"t":"code","b":[32,14,215],"m":"jsr","o":"iris_cell","oa":55054},{"a":55022,"t":"code","b":[202],"m":"dex"},{"a":55023,"t":"code","b":[76,231,214],"m":"jmp","o":"b_D6E7","oa":55015},{"a":55026,"l":"b_D6F2","t":"code","b":[196,156],"m":"cpy","o":"zpa_9C","oa":156,"x":[55017,55034]},{"a":55028,"t":"code","b":[240,7],"m":"beq","o":"b_D6FD","oa":55037},{"a":55030,"t":"code","b":[32,14,215],"m":"jsr","o":"iris_cell","oa":55054},{"a":55033,"t":"code","b":[136],"m":"dey"},{"a":55034,"t":"code","b":[76,242,214],"m":"jmp","o":"b_D6F2","oa":55026},{"a":55037,"l":"b_D6FD","t":"code","b":[162,3],"m":"ldx","o":"#$03","x":[55028]},{"a":55039,"l":"b_D6FF","t":"code","b":[24],"m":"clc","x":[55047]},{"a":55040,"t":"code","b":[181,155],"m":"lda","o":"f_009B,x","oa":155},{"a":55042,"t":"code","b":[117,159],"m":"adc","o":"zpf_9F,x","oa":159},{"a":55044,"t":"code","b":[149,155],"m":"sta","o":"f_009B,x","oa":155},{"a":55046,"t":"code","b":[202],"m":"dex"},{"a":55047,"t":"code","b":[16,246],"m":"bpl","o":"b_D6FF","oa":55039},{"a":55049,"t":"code","b":[198,163],"m":"dec","o":"zpa_A3","oa":163},{"a":55051,"t":"code","b":[208,186],"m":"bne","o":"b_D6C7","oa":54983},{"a":55053,"t":"code","b":[96],"m":"rts"},{"a":55054,"l":"iris_cell","c":"One character of the iris at column X, row Y: black (0) when closing, the room's character from the other screen when opening","t":"code","b":[152],"m":"tya","x":[54990,54997,55008,55019,55030]},{"a":55055,"t":"code","b":[72],"m":"pha"},{"a":55056,"t":"code","b":[138],"m":"txa"},{"a":55057,"t":"code","b":[72],"m":"pha"},{"a":55058,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":55060,"l":"b_D714","t":"code","b":[181,139],"m":"lda","o":"zpa_8B,x","oa":139,"x":[55077]},{"a":55062,"t":"code","b":[24],"m":"clc"},{"a":55063,"t":"code","b":[121,120,52],"m":"adc","o":"f_3478,y","oa":13432},{"a":55066,"t":"code","b":[149,147],"m":"sta","o":"zpf_93,x","oa":147},{"a":55068,"t":"code","b":[181,140],"m":"lda","o":"zpa_8C,x","oa":140},{"a":55070,"t":"code","b":[121,95,52],"m":"adc","o":"f_345F,y","oa":13407},{"a":55073,"t":"code","b":[149,148],"m":"sta","o":"zpf_94,x","oa":148},{"a":55075,"t":"code","b":[202],"m":"dex"},{"a":55076,"t":"code","b":[202],"m":"dex"},{"a":55077,"t":"code","b":[16,237],"m":"bpl","o":"b_D714","oa":55060},{"a":55079,"t":"code","b":[104],"m":"pla"},{"a":55080,"t":"code","b":[170],"m":"tax"},{"a":55081,"t":"code","b":[168],"m":"tay"},{"a":55082,"t":"code","b":[165,164],"m":"lda","o":"zpa_A4","oa":164},{"a":55084,"t":"code","b":[208,5],"m":"bne","o":"b_D733","oa":55091},{"a":55086,"t":"code","b":[145,149],"m":"sta","o":"(zpp_95),y","oa":149},{"a":55088,"t":"code","b":[76,55,215],"m":"jmp","o":"j_D737","oa":55095},{"a":55091,"l":"b_D733","t":"code","b":[177,147],"m":"lda","o":"(zpf_93),y","oa":147,"x":[55084]},{"a":55093,"t":"code","b":[145,149],"m":"sta","o":"(zpp_95),y","oa":149},{"a":55095,"l":"j_D737","t":"code","b":[104],"m":"pla","x":[55088]},{"a":55096,"t":"code","b":[168],"m":"tay"},{"a":55097,"t":"code","b":[96],"m":"rts"},{"a":55098,"l":"wait_frame","c":"Turns the screen on if it is off, then waits X plus one frames ($1160, cleared by the frame interrupt)","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[54983]},{"a":55100,"l":"j_D73C","t":"code","b":[165,130],"m":"lda","o":"zpa_82","oa":130,"x":[55107]},{"a":55102,"t":"code","b":[240,6],"m":"beq","o":"b_D746","oa":55110},{"a":55104,"t":"code","b":[32,47,20],"m":"jsr","o":"video_on","oa":5167},{"a":55107,"t":"code","b":[76,60,215],"m":"jmp","o":"j_D73C","oa":55100},{"a":55110,"l":"b_D746","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[55102,55121]},{"a":55112,"t":"code","b":[141,96,17],"m":"sta","o":"a_1160","oa":4448},{"a":55115,"l":"b_D74B","t":"code","b":[173,96,17],"m":"lda","o":"a_1160","oa":4448,"x":[55118]},{"a":55118,"t":"code","b":[208,251],"m":"bne","o":"b_D74B","oa":55115},{"a":55120,"t":"code","b":[202],"m":"dex"},{"a":55121,"t":"code","b":[16,243],"m":"bpl","o":"b_D746","oa":55110},{"a":55123,"t":"code","b":[96],"m":"rts"},{"a":55124,"l":"random_number","c":"A random number: eight steps of the 24-bit shift register at $CA-$CC, then the new byte scaled to X (about the byte times X divided by 256)","t":"code","b":[160,7],"m":"ldy","o":"#$07","x":[22268]},{"a":55126,"l":"b_D756","t":"code","b":[165,202],"m":"lda","o":"zpa_CA","oa":202,"x":[55139]},{"a":55128,"t":"code","b":[10],"m":"asl","o":"a"},{"a":55129,"t":"code","b":[69,203],"m":"eor","o":"zpa_CB","oa":203},{"a":55131,"t":"code","b":[10],"m":"asl","o":"a"},{"a":55132,"t":"code","b":[38,202],"m":"rol","o":"zpa_CA","oa":202},{"a":55134,"t":"code","b":[38,203],"m":"rol","o":"zpa_CB","oa":203},{"a":55136,"t":"code","b":[38,204],"m":"rol","o":"zpa_CC","oa":204},{"a":55138,"t":"code","b":[136],"m":"dey"},{"a":55139,"t":"code","b":[16,241],"m":"bpl","o":"b_D756","oa":55126},{"a":55141,"t":"code","b":[165,204],"m":"lda","o":"zpa_CC","oa":204},{"a":55143,"t":"code","b":[133,207],"m":"sta","o":"zpa_CF","oa":207},{"a":55145,"t":"code","b":[134,206],"m":"stx","o":"zpa_CE","oa":206},{"a":55147,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":55149,"t":"code","b":[240,4],"m":"beq","o":"b_D773","oa":55155},{"a":55151,"l":"b_D76F","t":"code","b":[70,206],"m":"lsr","o":"zpa_CE","oa":206,"x":[55157]},{"a":55153,"t":"code","b":[101,206],"m":"adc","o":"zpa_CE","oa":206},{"a":55155,"l":"b_D773","t":"code","b":[6,207],"m":"asl","o":"zpa_CF","oa":207,"x":[55149,55161]},{"a":55157,"t":"code","b":[176,248],"m":"bcs","o":"b_D76F","oa":55151},{"a":55159,"t":"code","b":[70,206],"m":"lsr","o":"zpa_CE","oa":206},{"a":55161,"t":"code","b":[208,248],"m":"bne","o":"b_D773","oa":55155},{"a":55163,"t":"code","b":[96],"m":"rts"},{"a":55164,"c":"What is left of the start-up's copy here: the same bytes as $F0C0-$F143, the interface's first tables, which nothing reads at this address","t":"byte","b":[0,0,240,240,240,240,0,203]},{"a":55172,"t":"byte","b":[206,211,214,105,110,0,119,105]},{"a":55180,"t":"byte","b":[116,104,0,111,110,0,116,111]},{"a":55188,"t":"byte","b":[0,255,255,255,255,255,255,255]},{"a":55196,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":55204,"t":"byte","b":[255,255,255,255,255,1,18,22]},{"a":55212,"t":"byte","b":[22,22,23,23,23,0,0,0]},{"a":55220,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":55228,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":55236,"t":"byte","b":[0,18,19,23,23,23,24,24]},{"a":55244,"t":"byte","b":[24,0,0,0,0,0,0,0]},{"a":55252,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":55260,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":55268,"t":"byte","b":[18,22,0,18,22,0,0,0]},{"a":55276,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":55284,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":55292,"t":"byte","b":[0,40,40,18]},{"a":55296,"t":"gap","n":6208},{"a":61504,"l":"cursor_cross","c":"The cursor's sprite (pointer $C1): a cross of four arrows pointing in at the middle, 21 rows of three bytes","t":"byte","b":[0,16,0,0,16,0,0,16]},{"a":61512,"t":"byte","b":[0,0,16,0,0,146,0,0]},{"a":61520,"t":"byte","b":[124,0,0,56,0,16,16,16]},{"a":61528,"t":"byte","b":[8,0,32,12,0,96,254,0]},{"a":61536,"t":"byte","b":[254,12,0,96,8,0,32,16]},{"a":61544,"t":"byte","b":[16,16,0,56,0,0,124,0]},{"a":61552,"t":"byte","b":[0,146,0,0,16,0,0,16]},{"a":61560,"t":"byte","b":[0,0,16,0,0,16,0,0]},{"a":61568,"l":"cursor_snail","c":"The snail the cursor becomes while the disk is read or the game is paused (pointer $C2)","t":"byte","b":[0,0,0,0,0,0,204,0]},{"a":61576,"t":"byte","b":[0,136,0,0,136,0,0,72]},{"a":61584,"t":"byte","b":[3,224,104,15,248,56,30,60]},{"a":61592,"t":"byte","b":[124,29,222,126,61,239,7,94]},{"a":61600,"t":"byte","b":[111,3,215,223,1,200,63,1]},{"a":61608,"t":"byte","b":[239,254,0,223,253,0,63,251]},{"a":61616,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":61624,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":61632,"c":"A zero byte: an empty name, shown in a slot that has nothing in it","t":"byte","b":[0]},{"a":61633,"l":"f_F0C1","c":"The prepositions' addresses, high bytes, for prepositions 1 to 4; $F0C6 the low bytes","t":"byte","b":[0,240,240,240,240],"x":[1748]},{"a":61638,"l":"f_F0C6","c":"The prepositions' addresses, low bytes, for prepositions 1 to 4","t":"byte","b":[0,203,206,211,214],"x":[1753]},{"a":61643,"c":"The prepositions, each ending with 0: \"in\", \"with\" ($F0CE), \"on\" ($F0D3), \"to\" ($F0D6)","t":"byte","b":[105,110,0,119,105,116,104,0]},{"a":61651,"t":"byte","b":[111,110,0,116,111,0]},{"a":61657,"l":"slot_top","c":"Each of the interface's 28 slots, the places on the screen the cursor can point at: its top row ($FF for a slot not in use). Slots 0 to 19 are the verbs, placed by the verb opcode; 20 is the room's picture, rows 1 to 17; 21 the sentence line; 22 to 27 the inventory's four items and its two arrows, on rows 22 and 23","t":"byte","b":[255,255,255,255,255,255,255,255],"x":[24536,62660,62754,62849]},{"a":61665,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":61673,"t":"byte","b":[255,255,255,255,1,18,22,22]},{"a":61681,"t":"byte","b":[22,23,23,23]},{"a":61685,"l":"slot_bottom","c":"Each slot's row below its last","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[24542,62748,62854]},{"a":61693,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":61701,"t":"byte","b":[0,0,0,0,18,19,23,23]},{"a":61709,"t":"byte","b":[23,24,24,24]},{"a":61713,"l":"slot_left","c":"Each slot's first column","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[24548,62684,62697,62778,62862]},{"a":61721,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":61729,"t":"byte","b":[0,0,0,0,0,0,0,18]},{"a":61737,"t":"byte","b":[22,0,18,22]},{"a":61741,"l":"slot_right","c":"Each slot's column after its last: the inventory's items are 18 columns wide, its arrows four, between them","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[24558,62694,62742,62867]},{"a":61749,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":61757,"t":"byte","b":[0,0,0,0,40,40,18,22]},{"a":61765,"t":"byte","b":[40,18,22,40]},{"a":61769,"l":"slot_number","c":"What each slot holds: a verb's number, the inventory item's place (1 to 4) or the arrow (1 up, 2 down); 0 for a slot not in use","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[1784,24484,24564,62211,62256,62296,62416,62444,62525,62654,62841]},{"a":61777,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":61785,"t":"byte","b":[0,0,0,0,255,255,1,1]},{"a":61793,"t":"byte","b":[2,3,2,4]},{"a":61797,"l":"f_F165","c":"Each verb's preposition, set with it by the verb opcode","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[24530]},{"a":61805,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":61813,"t":"byte","b":[0,0,0,0]},{"a":61817,"l":"slot_kind","c":"Each slot's kind: 0 the room, 1 a verb, 2 an inventory item, 3 an inventory arrow, 4 the sentence line","t":"byte","b":[1,1,1,1,1,1,1,1],"x":[61962,61996,62028,62061,62142,62157,62371,62906]},{"a":61825,"t":"byte","b":[1,1,1,1,1,1,1,1]},{"a":61833,"t":"byte","b":[1,1,1,1,0,4,2,3]},{"a":61841,"t":"byte","b":[2,2,3,2]},{"a":61845,"l":"f_F195","c":"The colour of each kind of slot: 5 (green) for verbs, 4 (purple) for inventory items, 6 (blue) for the arrows; $F19A the colour of one under the cursor, 7 (yellow)","t":"byte","b":[0,5,4,6,4],"x":[62160]},{"a":61850,"l":"f_F19A","c":"The colour of a slot under the cursor, by kind: 0 for the room, whose highlight routine ($F2BA) does nothing, and 7 (yellow) for verbs, inventory items, arrows and the sentence line","t":"byte","b":[0,7,7,7,7],"x":[62145]},{"a":61855,"l":"a_F19F","c":"The cursor's push from the joystick, across ($F1A0 up and down)","t":"byte","b":[250],"x":[62915,63096]},{"a":61856,"l":"a_F1A0","c":"The cursor's push from the joystick, up and down","t":"byte","b":[255],"x":[62921,63123]},{"a":61857,"l":"a_F1A1","c":"How strongly the cursor's speed dies away: each frame it loses its own value shifted left this many times and divided by 256 (7: half)","t":"byte","b":[7],"x":[62927,62977,63033]},{"a":61858,"l":"a_F1A2","c":"The cursor's X, fraction ($F1A3 whole: 0 to 159, a multicolour pixel each)","t":"byte","b":[0],"x":[62109,63140,63181]},{"a":61859,"l":"a_F1A3","c":"The cursor's X, whole: 0 to 159, a multicolour pixel each","t":"byte","b":[13],"x":[32962,62117,62800,62822,63147,63178]},{"a":61860,"l":"a_F1A4","c":"The cursor's Y, fraction ($F1A5 whole: 16 to 191)","t":"byte","b":[0],"x":[63185,63226]},{"a":61861,"l":"a_F1A5","c":"The cursor's Y, whole: 16 to 191","t":"byte","b":[28],"x":[32967,62094,62809,62830,63192,63223,63229,63238]},{"a":61862,"l":"a_F1A6","c":"The cursor's speed across ($F1A7 high); $F1A8 its speed up and down ($F1A9 high)","t":"byte","b":[0],"x":[62965,63003,63009,63099,63102,63143,63162]},{"a":61863,"l":"a_F1A7","c":"The high byte of the cursor's speed across","t":"byte","b":[0],"x":[62971,63012,63018,63106,63109,63150,63159,63165]},{"a":61864,"l":"a_F1A8","c":"The cursor's speed up and down","t":"byte","b":[0],"x":[63021,63059,63065,63126,63129,63188,63207]},{"a":61865,"l":"a_F1A9","c":"The high byte of the cursor's speed up and down","t":"byte","b":[0],"x":[63027,63068,63074,63133,63136,63195,63204,63210]},{"a":61866,"l":"a_F1AA","c":"The cursor's column; $F1AB its row","t":"byte","b":[0],"x":[62827,62859]},{"a":61867,"l":"a_F1AB","c":"The cursor's row","t":"byte","b":[0],"x":[62836,62846]},{"a":61868,"l":"slot_under_cursor","c":"The slot under the cursor; 28 for none","t":"byte","b":[0],"x":[32972,61948,61955,61983,61989,62021,62051,62054,62081,62084,62139,62154,62208,62253,62293,62359,62365,62368,62391,62394,62402,62413,62441,62480,62522,62646,62734,62894]},{"a":61869,"l":"a_F1AD","c":"The joystick's button the frame before ($10 when let go); $F1AE not used","t":"byte","b":[0,0],"x":[62884,62887,62890]},{"a":61871,"l":"inventory_scroll","c":"The first of the actor's inventory items shown, in steps of two","t":"byte","b":[0],"x":[62308,62313,62320,62329,62346,62356,62422,62434,62575]},{"a":61872,"l":"a_F1B0","c":"Work bytes ($F1B1, $F1B2) for the cursor's speed and the inventory","t":"byte","b":[0],"x":[62114,62125,62578,62598,62614,62634,62642,62760,62791,62968,62982,62997,63024,63038,63053]},{"a":61873,"l":"a_F1B1","c":"A second work byte for the cursor's speed and its sprite's X","t":"byte","b":[0],"x":[62122,62129,62974,62985,63006,63030,63041,63062]},{"a":61874,"l":"a_F1B2","c":"A third work byte, for the cursor's speed","t":"byte","b":[0],"x":[63000,63015,63056,63071]},{"a":61875,"l":"a_F1B3","c":"The colour colour_slot fills a slot with","t":"byte","b":[0],"x":[62148,62163,62781]},{"a":61876,"l":"f_F1B4","c":"For each kind of slot, which of the two settings of the cursor's feel at $F1ED to use","t":"byte","b":[1,0,0,0,0],"x":[62909]},{"a":61881,"c":"The inventory's arrows as text: a space and characters 1 and 2 (up), then a space and characters 3 and 4 ($F1BD, down)","t":"byte","b":[32,1,2,0,32,3,4,0]},{"a":61889,"l":"f_F1C1","c":"The arrows' texts' addresses, low bytes ($F1C3 high)","t":"byte","b":[185,189],"x":[62448]},{"a":61891,"l":"f_F1C3","c":"The arrows' texts' addresses, high bytes","t":"byte","b":[241,241],"x":[62453]},{"a":61893,"l":"f_F1C5","c":"For each kind of slot, the routine that highlights it ($F1C6 high bytes): highlight_slot, or for the room an RTS","t":"byte","b":[186],"x":[62001]},{"a":61894,"l":"f_F1C6","c":"The high bytes of the highlight routines","t":"byte","b":[242,187,242,187,242,187,242,187],"x":[62007]},{"a":61902,"t":"byte","b":[242]},{"a":61903,"l":"f_F1CF","c":"For each kind, the routine a click on it runs ($F1D0 high)","t":"byte","b":[238],"x":[62033]},{"a":61904,"l":"f_F1D0","c":"The high bytes of the click routines","t":"byte","b":[242,249,242,38,243,78,243,20],"x":[62039]},{"a":61912,"t":"byte","b":[243]},{"a":61913,"l":"f_F1D9","c":"For each kind, the routine that gives a slot back its colour when the cursor leaves it ($F1DA high)","t":"byte","b":[186],"x":[61967]},{"a":61914,"l":"f_F1DA","c":"The high bytes of the routines that give a slot back its colour","t":"byte","b":[242,202,242,202,242,202,242,202],"x":[61973]},{"a":61922,"t":"byte","b":[242]},{"a":61923,"l":"f_F1E3","c":"For each kind, the routine that draws it ($F1E4 high)","t":"byte","b":[186],"x":[62066]},{"a":61924,"l":"f_F1E4","c":"The high bytes of the draw routines","t":"byte","b":[242,217,242,223,242,229,242,235],"x":[62072]},{"a":61932,"t":"byte","b":[242]},{"a":61933,"l":"f_F1ED","c":"The cursor's feel: its push across ($FA), up and down ($F1EF, $FF) and how its speed dies away ($F1F1, 7), two settings that are the same","t":"byte","b":[250,250],"x":[62912]},{"a":61935,"l":"f_F1EF","c":"The cursor's push up and down, for each setting","t":"byte","b":[255,255],"x":[62918]},{"a":61937,"l":"f_F1F1","c":"How the cursor's speed dies away, for each setting","t":"byte","b":[7,7],"x":[62924]},{"a":61939,"l":"update_cursor","c":"From the frame interrupt, each frame that the room's colours were not copied ($116D), the interface is not being drawn ($FF72) and the cursor is not hidden ($1161): moves the cursor (move_cursor), works out where it points in the room (cursor_room_point) and which slot it is over (find_slot). When that slot has changed, gives the last one back its colour and highlights the new one, through the routines for their kinds. When the button has just been pressed over a slot, runs that kind's click routine. The JSRs at $F21B, $F23D and $F25D are written with the routines' addresses","t":"code","b":[32,245,245],"m":"jsr","o":"move_cursor","oa":62965,"x":[4890]},{"a":61942,"t":"code","b":[32,80,245],"m":"jsr","o":"cursor_room_point","oa":62800},{"a":61945,"t":"code","b":[32,102,245],"m":"jsr","o":"find_slot","oa":62822},{"a":61948,"t":"code","b":[236,172,241],"m":"cpx","o":"slot_under_cursor","oa":61868},{"a":61951,"t":"code","b":[240,63],"m":"beq","o":"b_F240","oa":62016},{"a":61953,"t":"code","b":[138],"m":"txa"},{"a":61954,"t":"code","b":[72],"m":"pha"},{"a":61955,"t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868},{"a":61958,"t":"code","b":[224,28],"m":"cpx","o":"#$1C"},{"a":61960,"t":"code","b":[240,20],"m":"beq","o":"b_F21E","oa":61982},{"a":61962,"t":"code","b":[189,121,241],"m":"lda","o":"slot_kind,x","oa":61817},{"a":61965,"t":"code","b":[10],"m":"asl","o":"a"},{"a":61966,"t":"code","b":[168],"m":"tay"},{"a":61967,"t":"code","b":[185,217,241],"m":"lda","o":"f_F1D9,y","oa":61913},{"a":61970,"t":"code","b":[141,28,242],"m":"sta","o":"unhighlight_call_lo","oa":61980},{"a":61973,"t":"code","b":[185,218,241],"m":"lda","o":"f_F1DA,y","oa":61914},{"a":61976,"t":"code","b":[141,29,242],"m":"sta","o":"unhighlight_call_hi","oa":61981},{"a":61979,"t":"code","b":[32,0,0],"m":"jsr","o":"$0000"},{"a":61980,"t":"note","l":"unhighlight_call_lo","c":"The address of the routine that gives the slot back its colour, written into the JSR at $F21B ($F21D high)","note":"inside the item at $F21B","x":[61970]},{"a":61981,"t":"note","l":"unhighlight_call_hi","c":"The high byte of the routine that gives the old slot back its colour, written at $F218","note":"inside the item at $F21B","x":[61976]},{"a":61982,"l":"b_F21E","t":"code","b":[104],"m":"pla","x":[61960]},{"a":61983,"t":"code","b":[141,172,241],"m":"sta","o":"slot_under_cursor","oa":61868},{"a":61986,"t":"code","b":[32,174,245],"m":"jsr","o":"set_cursor_feel","oa":62894},{"a":61989,"t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868},{"a":61992,"t":"code","b":[224,28],"m":"cpx","o":"#$1C"},{"a":61994,"t":"code","b":[240,20],"m":"beq","o":"b_F240","oa":62016},{"a":61996,"t":"code","b":[189,121,241],"m":"lda","o":"slot_kind,x","oa":61817},{"a":61999,"t":"code","b":[10],"m":"asl","o":"a"},{"a":62000,"t":"code","b":[168],"m":"tay"},{"a":62001,"t":"code","b":[185,197,241],"m":"lda","o":"f_F1C5,y","oa":61893},{"a":62004,"t":"code","b":[141,62,242],"m":"sta","o":"highlight_call_lo","oa":62014},{"a":62007,"t":"code","b":[185,198,241],"m":"lda","o":"f_F1C6,y","oa":61894},{"a":62010,"t":"code","b":[141,63,242],"m":"sta","o":"highlight_call_hi","oa":62015},{"a":62013,"t":"code","b":[32,0,0],"m":"jsr","o":"$0000"},{"a":62014,"t":"note","l":"highlight_call_lo","c":"The address of the routine that highlights the slot, written into the JSR at $F23D ($F23F high)","note":"inside the item at $F23D","x":[62004]},{"a":62015,"t":"note","l":"highlight_call_hi","c":"The high byte of the highlight routine, written at $F23A; after it the button is checked, and a click runs the slot's kind's click routine","note":"inside the item at $F23D","x":[62010]},{"a":62016,"l":"b_F240","t":"code","b":[32,159,245],"m":"jsr","o":"button_pressed","oa":62879,"x":[61951,61994]},{"a":62019,"t":"code","b":[240,27],"m":"beq","o":"r_F260","oa":62048},{"a":62021,"t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868},{"a":62024,"t":"code","b":[224,28],"m":"cpx","o":"#$1C"},{"a":62026,"t":"code","b":[240,20],"m":"beq","o":"r_F260","oa":62048},{"a":62028,"t":"code","b":[189,121,241],"m":"lda","o":"slot_kind,x","oa":61817},{"a":62031,"t":"code","b":[10],"m":"asl","o":"a"},{"a":62032,"t":"code","b":[168],"m":"tay"},{"a":62033,"t":"code","b":[185,207,241],"m":"lda","o":"f_F1CF,y","oa":61903},{"a":62036,"t":"code","b":[141,94,242],"m":"sta","o":"click_call_lo","oa":62046},{"a":62039,"t":"code","b":[185,208,241],"m":"lda","o":"f_F1D0,y","oa":61904},{"a":62042,"t":"code","b":[141,95,242],"m":"sta","o":"click_call_hi","oa":62047},{"a":62045,"t":"code","b":[32,0,0],"m":"jsr","o":"$0000"},{"a":62046,"t":"note","l":"click_call_lo","c":"The address of the click routine, written into the JSR at $F25D ($F25F high)","note":"inside the item at $F25D","x":[62036]},{"a":62047,"t":"note","l":"click_call_hi","c":"The high byte of the click routine, written at $F25A","note":"inside the item at $F25D","x":[62042]},{"a":62048,"l":"r_F260","t":"code","b":[96],"m":"rts","x":[62019,62026]},{"a":62049,"l":"draw_interface","c":"Draws every slot, each through its kind's routine (the JSR at $F27E, whose address it writes), then sets the cursor's feel","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[23608]},{"a":62051,"t":"code","b":[141,172,241],"m":"sta","o":"slot_under_cursor","oa":61868},{"a":62054,"l":"b_F266","t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868,"x":[62089]},{"a":62057,"t":"code","b":[224,28],"m":"cpx","o":"#$1C"},{"a":62059,"t":"code","b":[240,20],"m":"beq","o":"b_F281","oa":62081},{"a":62061,"t":"code","b":[189,121,241],"m":"lda","o":"slot_kind,x","oa":61817},{"a":62064,"t":"code","b":[10],"m":"asl","o":"a"},{"a":62065,"t":"code","b":[168],"m":"tay"},{"a":62066,"t":"code","b":[185,227,241],"m":"lda","o":"f_F1E3,y","oa":61923},{"a":62069,"t":"code","b":[141,127,242],"m":"sta","o":"draw_call_lo","oa":62079},{"a":62072,"t":"code","b":[185,228,241],"m":"lda","o":"f_F1E4,y","oa":61924},{"a":62075,"t":"code","b":[141,128,242],"m":"sta","o":"draw_call_hi","oa":62080},{"a":62078,"t":"code","b":[32,0,0],"m":"jsr","o":"$0000"},{"a":62079,"t":"note","l":"draw_call_lo","c":"The address of the draw routine, written into the JSR at $F27E ($F280 high)","note":"inside the item at $F27E","x":[62069]},{"a":62080,"t":"note","l":"draw_call_hi","c":"The high byte of the draw routine, written at $F27B; then the next slot, until all 28 are drawn, and the cursor's feel is set","note":"inside the item at $F27E","x":[62075]},{"a":62081,"l":"b_F281","t":"code","b":[238,172,241],"m":"inc","o":"slot_under_cursor","oa":61868,"x":[62059]},{"a":62084,"t":"code","b":[173,172,241],"m":"lda","o":"slot_under_cursor","oa":61868},{"a":62087,"t":"code","b":[201,28],"m":"cmp","o":"#$1C"},{"a":62089,"t":"code","b":[208,219],"m":"bne","o":"b_F266","oa":62054},{"a":62091,"t":"code","b":[76,174,245],"m":"jmp","o":"set_cursor_feel","oa":62894},{"a":62094,"l":"cursor_sprite_position","c":"The cursor's sprite position for the frame interrupt: its Y ($F1A5) plus 40, one more from Y 8 on and one more again from Y $90 on, in Y; its X, the whole and fraction moved on by 6.5 columns' worth and doubled, in X with bit 8 in A","t":"code","b":[173,165,241],"m":"lda","o":"a_F1A5","oa":61861,"x":[4893]},{"a":62097,"t":"code","b":[201,144],"m":"cmp","o":"#$90"},{"a":62099,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":62101,"t":"code","b":[201,8],"m":"cmp","o":"#$08"},{"a":62103,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":62105,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":62107,"t":"code","b":[168],"m":"tay"},{"a":62108,"t":"code","b":[24],"m":"clc"},{"a":62109,"t":"code","b":[173,162,241],"m":"lda","o":"a_F1A2","oa":61858},{"a":62112,"t":"code","b":[105,128],"m":"adc","o":"#$80"},{"a":62114,"t":"code","b":[141,176,241],"m":"sta","o":"a_F1B0","oa":61872},{"a":62117,"t":"code","b":[173,163,241],"m":"lda","o":"a_F1A3","oa":61859},{"a":62120,"t":"code","b":[105,6],"m":"adc","o":"#$06"},{"a":62122,"t":"code","b":[141,177,241],"m":"sta","o":"a_F1B1","oa":61873},{"a":62125,"t":"code","b":[173,176,241],"m":"lda","o":"a_F1B0","oa":61872},{"a":62128,"t":"code","b":[10],"m":"asl","o":"a"},{"a":62129,"t":"code","b":[173,177,241],"m":"lda","o":"a_F1B1","oa":61873},{"a":62132,"t":"code","b":[42],"m":"rol","o":"a"},{"a":62133,"t":"code","b":[170],"m":"tax"},{"a":62134,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":62136,"t":"code","b":[42],"m":"rol","o":"a"},{"a":62137,"t":"code","b":[96],"m":"rts"},{"a":62138,"c":"An RTS: the room needs no highlighting or redrawing","t":"code","b":[96],"m":"rts"},{"a":62139,"l":"highlight_slot","c":"Colours the slot under the cursor in its kind's highlight colour ($F19A)","t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868},{"a":62142,"t":"code","b":[188,121,241],"m":"ldy","o":"slot_kind,x","oa":61817},{"a":62145,"t":"code","b":[185,154,241],"m":"lda","o":"f_F19A,y","oa":61850},{"a":62148,"t":"code","b":[141,179,241],"m":"sta","o":"a_F1B3","oa":61875},{"a":62151,"t":"code","b":[76,14,245],"m":"jmp","o":"colour_slot","oa":62734},{"a":62154,"l":"unhighlight_slot","c":"Colours the slot in its kind's own colour ($F195)","t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868,"x":[62172,62178,62184,62187]},{"a":62157,"t":"code","b":[188,121,241],"m":"ldy","o":"slot_kind,x","oa":61817},{"a":62160,"t":"code","b":[185,149,241],"m":"lda","o":"f_F195,y","oa":61845},{"a":62163,"t":"code","b":[141,179,241],"m":"sta","o":"a_F1B3","oa":61875},{"a":62166,"t":"code","b":[76,14,245],"m":"jmp","o":"colour_slot","oa":62734},{"a":62169,"l":"draw_verb_slot","c":"Draws a verb's name in its slot and colours it","t":"code","b":[32,9,244],"m":"jsr","o":"draw_verb","oa":62473},{"a":62172,"t":"code","b":[76,202,242],"m":"jmp","o":"unhighlight_slot","oa":62154},{"a":62175,"l":"draw_item_slot","c":"Draws an inventory item's name in its slot and colours it","t":"code","b":[32,51,244],"m":"jsr","o":"draw_item","oa":62515},{"a":62178,"t":"code","b":[76,202,242],"m":"jmp","o":"unhighlight_slot","oa":62154},{"a":62181,"l":"draw_arrow_slot","c":"Draws an inventory arrow and colours it","t":"code","b":[32,198,243],"m":"jsr","o":"draw_arrow","oa":62406},{"a":62184,"t":"code","b":[76,202,242],"m":"jmp","o":"unhighlight_slot","oa":62154},{"a":62187,"c":"A slot of the sentence line is only coloured","t":"code","b":[76,202,242],"m":"jmp","o":"unhighlight_slot","oa":62154},{"a":62190,"l":"click_room","c":"A click in the room: flags the click ($FC13) with variable 32 (where it came from) set to 2","t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":62192,"t":"code","b":[141,19,252],"m":"sta","o":"a_FC13","oa":64531},{"a":62195,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":62197,"t":"code","b":[141,142,254],"m":"sta","o":"a_FE8E","oa":65166},{"a":62200,"t":"code","b":[96],"m":"rts"},{"a":62201,"l":"click_verb","c":"A click on a verb, while the verbs are shown (bit 7 of user_state): variable 33 becomes the verb's number, and the click is flagged with variable 32 set to 1","t":"code","b":[173,113,255],"m":"lda","o":"user_state","oa":65393},{"a":62204,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":62206,"t":"code","b":[240,19],"m":"beq","o":"r_F313","oa":62227},{"a":62208,"t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868},{"a":62211,"t":"code","b":[189,73,241],"m":"lda","o":"slot_number,x","oa":61769},{"a":62214,"t":"code","b":[141,143,254],"m":"sta","o":"a_FE8F","oa":65167},{"a":62217,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":62219,"t":"code","b":[141,19,252],"m":"sta","o":"a_FC13","oa":64531},{"a":62222,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":62224,"t":"code","b":[141,142,254],"m":"sta","o":"a_FE8E","oa":65166},{"a":62227,"l":"r_F313","t":"code","b":[96],"m":"rts","x":[62206]},{"a":62228,"l":"click_sentence","c":"A click on the sentence line, while the verbs are shown: flagged with variable 32 set to 5","t":"code","b":[173,113,255],"m":"lda","o":"user_state","oa":65393},{"a":62231,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":62233,"t":"code","b":[240,10],"m":"beq","o":"r_F325","oa":62245},{"a":62235,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":62237,"t":"code","b":[141,19,252],"m":"sta","o":"a_FC13","oa":64531},{"a":62240,"t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":62242,"t":"code","b":[141,142,254],"m":"sta","o":"a_FE8E","oa":65166},{"a":62245,"l":"r_F325","t":"code","b":[96],"m":"rts","x":[62233]},{"a":62246,"l":"click_item","c":"A click on an inventory item, while the inventory is shown (bit 6 of user_state): variable 35 becomes the object in that place of the actor's inventory (find_inventory_item), and the click is flagged with variable 32 set to 3. Nothing happens at an empty place","t":"code","b":[173,113,255],"m":"lda","o":"user_state","oa":65393},{"a":62249,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":62251,"t":"code","b":[240,32],"m":"beq","o":"r_F34D","oa":62285},{"a":62253,"t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868},{"a":62256,"t":"code","b":[189,73,241],"m":"lda","o":"slot_number,x","oa":61769},{"a":62259,"t":"code","b":[56],"m":"sec"},{"a":62260,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":62262,"t":"code","b":[32,110,244],"m":"jsr","o":"find_inventory_item","oa":62574},{"a":62265,"t":"code","b":[176,18],"m":"bcs","o":"r_F34D","oa":62285},{"a":62267,"t":"code","b":[142,145,254],"m":"stx","o":"a_FE91","oa":65169},{"a":62270,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":62272,"t":"code","b":[141,146,253],"m":"sta","o":"a_FD92","oa":64914},{"a":62275,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":62277,"t":"code","b":[141,19,252],"m":"sta","o":"a_FC13","oa":64531},{"a":62280,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":62282,"t":"code","b":[141,142,254],"m":"sta","o":"a_FE8E","oa":65166},{"a":62285,"l":"r_F34D","t":"code","b":[96],"m":"rts","x":[62251,62265]},{"a":62286,"l":"click_arrow","c":"A click on an inventory arrow, while the inventory is shown: scrolls it two items up (arrow 1, not past the first) or down (arrow 2), then redraws it at $F380","t":"code","b":[173,113,255],"m":"lda","o":"user_state","oa":65393},{"a":62289,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":62291,"t":"code","b":[240,42],"m":"beq","o":"r_F37F","oa":62335},{"a":62293,"t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868},{"a":62296,"t":"code","b":[189,73,241],"m":"lda","o":"slot_number,x","oa":61769},{"a":62299,"t":"code","b":[56],"m":"sec"},{"a":62300,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":62302,"t":"code","b":[208,3],"m":"bne","o":"b_F363","oa":62307},{"a":62304,"t":"code","b":[76,111,243],"m":"jmp","o":"j_F36F","oa":62319},{"a":62307,"l":"b_F363","t":"code","b":[24],"m":"clc","x":[62302]},{"a":62308,"t":"code","b":[173,175,241],"m":"lda","o":"inventory_scroll","oa":61871},{"a":62311,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":62313,"t":"code","b":[141,175,241],"m":"sta","o":"inventory_scroll","oa":61871},{"a":62316,"t":"code","b":[76,128,243],"m":"jmp","o":"redraw_inventory","oa":62336},{"a":62319,"l":"j_F36F","t":"code","b":[56],"m":"sec","x":[62304]},{"a":62320,"t":"code","b":[173,175,241],"m":"lda","o":"inventory_scroll","oa":61871},{"a":62323,"t":"code","b":[233,2],"m":"sbc","o":"#$02"},{"a":62325,"t":"code","b":[16,2],"m":"bpl","o":"b_F379","oa":62329},{"a":62327,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":62329,"l":"b_F379","t":"code","b":[141,175,241],"m":"sta","o":"inventory_scroll","oa":61871,"x":[62325]},{"a":62332,"t":"code","b":[76,128,243],"m":"jmp","o":"redraw_inventory","oa":62336},{"a":62335,"l":"r_F37F","t":"code","b":[96],"m":"rts","x":[62291]},{"a":62336,"l":"redraw_inventory","c":"Keeps the inventory's scroll from passing the items the actor holds: when it is more than the count less four (0 at least), it becomes that, rounded up to an even number, so an odd count can leave three items below it. Then draws the inventory's items and arrows again, slot by slot","t":"code","b":[32,148,244],"m":"jsr","o":"count_inventory","oa":62612,"x":[20075,23611,62316,62332]},{"a":62339,"t":"code","b":[56],"m":"sec"},{"a":62340,"t":"code","b":[233,4],"m":"sbc","o":"#$04"},{"a":62342,"t":"code","b":[16,2],"m":"bpl","o":"b_F38A","oa":62346},{"a":62344,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":62346,"l":"b_F38A","t":"code","b":[205,175,241],"m":"cmp","o":"inventory_scroll","oa":61871,"x":[62342]},{"a":62349,"t":"code","b":[16,8],"m":"bpl","o":"b_F397","oa":62359},{"a":62351,"t":"code","b":[24],"m":"clc"},{"a":62352,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":62354,"t":"code","b":[41,254],"m":"and","o":"#$FE"},{"a":62356,"t":"code","b":[141,175,241],"m":"sta","o":"inventory_scroll","oa":61871},{"a":62359,"l":"b_F397","t":"code","b":[173,172,241],"m":"lda","o":"slot_under_cursor","oa":61868,"x":[62349]},{"a":62362,"t":"code","b":[72],"m":"pha"},{"a":62363,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":62365,"t":"code","b":[141,172,241],"m":"sta","o":"slot_under_cursor","oa":61868},{"a":62368,"l":"b_F3A0","t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868,"x":[62399]},{"a":62371,"t":"code","b":[189,121,241],"m":"lda","o":"slot_kind,x","oa":61817},{"a":62374,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":62376,"t":"code","b":[208,6],"m":"bne","o":"b_F3B0","oa":62384},{"a":62378,"t":"code","b":[32,51,244],"m":"jsr","o":"draw_item","oa":62515},{"a":62381,"t":"code","b":[76,183,243],"m":"jmp","o":"j_F3B7","oa":62391},{"a":62384,"l":"b_F3B0","t":"code","b":[201,3],"m":"cmp","o":"#$03","x":[62376]},{"a":62386,"t":"code","b":[208,3],"m":"bne","o":"j_F3B7","oa":62391},{"a":62388,"t":"code","b":[32,198,243],"m":"jsr","o":"draw_arrow","oa":62406},{"a":62391,"l":"j_F3B7","t":"code","b":[238,172,241],"m":"inc","o":"slot_under_cursor","oa":61868,"x":[62381,62386]},{"a":62394,"t":"code","b":[173,172,241],"m":"lda","o":"slot_under_cursor","oa":61868},{"a":62397,"t":"code","b":[201,28],"m":"cmp","o":"#$1C"},{"a":62399,"t":"code","b":[208,223],"m":"bne","o":"b_F3A0","oa":62368},{"a":62401,"t":"code","b":[104],"m":"pla"},{"a":62402,"t":"code","b":[141,172,241],"m":"sta","o":"slot_under_cursor","oa":61868},{"a":62405,"t":"code","b":[96],"m":"rts"},{"a":62406,"l":"draw_arrow","c":"While the inventory is shown: draws the up arrow when the inventory is scrolled down, the down arrow when more than four items lie below the first shown, a blank otherwise","t":"code","b":[173,113,255],"m":"lda","o":"user_state","oa":65393,"x":[62181,62388]},{"a":62409,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":62411,"t":"code","b":[240,59],"m":"beq","o":"r_F408","oa":62472},{"a":62413,"t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868},{"a":62416,"t":"code","b":[188,73,241],"m":"ldy","o":"slot_number,x","oa":61769},{"a":62419,"t":"code","b":[136],"m":"dey"},{"a":62420,"t":"code","b":[208,8],"m":"bne","o":"b_F3DE","oa":62430},{"a":62422,"t":"code","b":[173,175,241],"m":"lda","o":"inventory_scroll","oa":61871},{"a":62425,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":62427,"t":"code","b":[76,231,243],"m":"jmp","o":"j_F3E7","oa":62439},{"a":62430,"l":"b_F3DE","t":"code","b":[32,148,244],"m":"jsr","o":"count_inventory","oa":62612,"x":[62420]},{"a":62433,"t":"code","b":[56],"m":"sec"},{"a":62434,"t":"code","b":[237,175,241],"m":"sbc","o":"inventory_scroll","oa":61871},{"a":62437,"t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":62439,"l":"j_F3E7","t":"code","b":[144,20],"m":"bcc","o":"b_F3FD","oa":62461,"x":[62427]},{"a":62441,"t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868},{"a":62444,"t":"code","b":[188,73,241],"m":"ldy","o":"slot_number,x","oa":61769},{"a":62447,"t":"code","b":[136],"m":"dey"},{"a":62448,"t":"code","b":[185,193,241],"m":"lda","o":"f_F1C1,y","oa":61889},{"a":62451,"t":"code","b":[133,178],"m":"sta","o":"zpa_B2","oa":178},{"a":62453,"t":"code","b":[185,195,241],"m":"lda","o":"f_F1C3,y","oa":61891},{"a":62456,"t":"code","b":[133,179],"m":"sta","o":"zpa_B3","oa":179},{"a":62458,"t":"code","b":[76,5,244],"m":"jmp","o":"j_F405","oa":62469},{"a":62461,"l":"b_F3FD","t":"code","b":[169,13],"m":"lda","o":"#$0D","x":[62439]},{"a":62463,"t":"code","b":[133,178],"m":"sta","o":"zpa_B2","oa":178},{"a":62465,"t":"code","b":[169,245],"m":"lda","o":"#$F5"},{"a":62467,"t":"code","b":[133,179],"m":"sta","o":"zpa_B3","oa":179},{"a":62469,"l":"j_F405","t":"code","b":[76,182,244],"m":"jmp","o":"draw_slot_text","oa":62646,"x":[62458]},{"a":62472,"l":"r_F408","t":"code","b":[96],"m":"rts","x":[62411]},{"a":62473,"l":"draw_verb","c":"While the verbs are shown: draws the name of the verb in the slot (the verbs' names start at name 15: $77C1, $779E), or a blank when the slot has none","t":"code","b":[173,113,255],"m":"lda","o":"user_state","oa":65393,"x":[62169]},{"a":62476,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":62478,"t":"code","b":[240,34],"m":"beq","o":"r_F432","oa":62514},{"a":62480,"t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868},{"a":62483,"t":"code","b":[189,193,119],"m":"lda","o":"f_77C1,x","oa":30657},{"a":62486,"t":"code","b":[24],"m":"clc"},{"a":62487,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":62489,"t":"code","b":[133,178],"m":"sta","o":"zpa_B2","oa":178},{"a":62491,"t":"code","b":[189,158,119],"m":"lda","o":"f_779E,x","oa":30622},{"a":62494,"t":"code","b":[208,11],"m":"bne","o":"b_F42B","oa":62507},{"a":62496,"t":"code","b":[169,192],"m":"lda","o":"#$C0"},{"a":62498,"t":"code","b":[133,178],"m":"sta","o":"zpa_B2","oa":178},{"a":62500,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":62502,"t":"code","b":[133,179],"m":"sta","o":"zpa_B3","oa":179},{"a":62504,"t":"code","b":[76,47,244],"m":"jmp","o":"j_F42F","oa":62511},{"a":62507,"l":"b_F42B","t":"code","b":[105,0],"m":"adc","o":"#$00","x":[62494]},{"a":62509,"t":"code","b":[133,179],"m":"sta","o":"zpa_B3","oa":179},{"a":62511,"l":"j_F42F","t":"code","b":[76,182,244],"m":"jmp","o":"draw_slot_text","oa":62646,"x":[62504]},{"a":62514,"l":"r_F432","t":"code","b":[96],"m":"rts","x":[62478]},{"a":62515,"l":"draw_item","c":"While the inventory is shown: draws the name of the item in the slot's place (its object's copy in the heap, the name at the offset its byte $0E gives), or a blank","t":"code","b":[173,113,255],"m":"lda","o":"user_state","oa":65393,"x":[62175,62378]},{"a":62518,"t":"code","b":[41,64],"m":"and","o":"#$40"},{"a":62520,"t":"code","b":[240,51],"m":"beq","o":"r_F46D","oa":62573},{"a":62522,"t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868},{"a":62525,"t":"code","b":[189,73,241],"m":"lda","o":"slot_number,x","oa":61769},{"a":62528,"t":"code","b":[56],"m":"sec"},{"a":62529,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":62531,"t":"code","b":[32,110,244],"m":"jsr","o":"find_inventory_item","oa":62574},{"a":62534,"t":"code","b":[144,11],"m":"bcc","o":"b_F453","oa":62547},{"a":62536,"t":"code","b":[169,13],"m":"lda","o":"#$0D"},{"a":62538,"t":"code","b":[133,178],"m":"sta","o":"zpa_B2","oa":178},{"a":62540,"t":"code","b":[169,245],"m":"lda","o":"#$F5"},{"a":62542,"t":"code","b":[133,179],"m":"sta","o":"zpa_B3","oa":179},{"a":62544,"t":"code","b":[76,106,244],"m":"jmp","o":"j_F46A","oa":62570},{"a":62547,"l":"b_F453","t":"code","b":[185,217,103],"m":"lda","o":"f_67D9,y","oa":26585,"x":[62534]},{"a":62550,"t":"code","b":[133,178],"m":"sta","o":"zpa_B2","oa":178},{"a":62552,"t":"code","b":[185,21,104],"m":"lda","o":"f_6815,y","oa":26645},{"a":62555,"t":"code","b":[133,179],"m":"sta","o":"zpa_B3","oa":179},{"a":62557,"t":"code","b":[160,14],"m":"ldy","o":"#$0E"},{"a":62559,"t":"code","b":[24],"m":"clc"},{"a":62560,"t":"code","b":[165,178],"m":"lda","o":"zpa_B2","oa":178},{"a":62562,"t":"code","b":[113,178],"m":"adc","o":"(zpa_B2),y","oa":178},{"a":62564,"t":"code","b":[133,178],"m":"sta","o":"zpa_B2","oa":178},{"a":62566,"t":"code","b":[144,2],"m":"bcc","o":"j_F46A","oa":62570},{"a":62568,"t":"code","b":[230,179],"m":"inc","o":"zpa_B3","oa":179},{"a":62570,"l":"j_F46A","t":"code","b":[76,182,244],"m":"jmp","o":"draw_slot_text","oa":62646,"x":[62544,62566]},{"a":62573,"l":"r_F46D","t":"code","b":[96],"m":"rts","x":[62520]},{"a":62574,"l":"find_inventory_item","c":"The inventory entry (in Y) of the A-th item, counted from the scroll, among the 60 at $679D that the actor the player controls owns (the low four bits of the object's owner, $6B47); carry set when there is none","t":"code","b":[24],"m":"clc","x":[62262,62531]},{"a":62575,"t":"code","b":[109,175,241],"m":"adc","o":"inventory_scroll","oa":61871},{"a":62578,"t":"code","b":[141,176,241],"m":"sta","o":"a_F1B0","oa":61872},{"a":62581,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":62583,"l":"b_F477","t":"code","b":[190,157,103],"m":"ldx","o":"f_679D,y","oa":26525,"x":[62608]},{"a":62586,"t":"code","b":[240,17],"m":"beq","o":"b_F48D","oa":62605},{"a":62588,"t":"code","b":[189,71,107],"m":"lda","o":"f_6B47,x","oa":27463},{"a":62591,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":62593,"t":"code","b":[205,110,254],"m":"cmp","o":"a_FE6E","oa":65134},{"a":62596,"t":"code","b":[208,7],"m":"bne","o":"b_F48D","oa":62605},{"a":62598,"t":"code","b":[206,176,241],"m":"dec","o":"a_F1B0","oa":61872},{"a":62601,"t":"code","b":[16,2],"m":"bpl","o":"b_F48D","oa":62605},{"a":62603,"t":"code","b":[24],"m":"clc"},{"a":62604,"t":"code","b":[96],"m":"rts"},{"a":62605,"l":"b_F48D","t":"code","b":[200],"m":"iny","x":[62586,62596,62601]},{"a":62606,"t":"code","b":[192,60],"m":"cpy","o":"#$3C"},{"a":62608,"t":"code","b":[208,229],"m":"bne","o":"b_F477","oa":62583},{"a":62610,"t":"code","b":[56],"m":"sec"},{"a":62611,"t":"code","b":[96],"m":"rts"},{"a":62612,"l":"count_inventory","c":"The number of the 60 inventory entries that the actor the player controls owns, in A and $F1B0","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[62336,62430]},{"a":62614,"t":"code","b":[141,176,241],"m":"sta","o":"a_F1B0","oa":61872},{"a":62617,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":62619,"l":"b_F49B","t":"code","b":[190,157,103],"m":"ldx","o":"f_679D,y","oa":26525,"x":[62640]},{"a":62622,"t":"code","b":[240,13],"m":"beq","o":"b_F4AD","oa":62637},{"a":62624,"t":"code","b":[189,71,107],"m":"lda","o":"f_6B47,x","oa":27463},{"a":62627,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":62629,"t":"code","b":[205,110,254],"m":"cmp","o":"a_FE6E","oa":65134},{"a":62632,"t":"code","b":[208,3],"m":"bne","o":"b_F4AD","oa":62637},{"a":62634,"t":"code","b":[238,176,241],"m":"inc","o":"a_F1B0","oa":61872},{"a":62637,"l":"b_F4AD","t":"code","b":[200],"m":"iny","x":[62622,62632]},{"a":62638,"t":"code","b":[192,60],"m":"cpy","o":"#$3C"},{"a":62640,"t":"code","b":[208,233],"m":"bne","o":"b_F49B","oa":62619},{"a":62642,"t":"code","b":[173,176,241],"m":"lda","o":"a_F1B0","oa":61872},{"a":62645,"t":"code","b":[96],"m":"rts"},{"a":62646,"l":"draw_slot_text","c":"Writes the text at $B2/$B3 into the slot under the cursor's place on the screen at $CC00, from its first column to its last: an @ or a 0 ends the text, and the rest is filled with spaces. A slot with no number or no row is left alone","t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868,"x":[62469,62511,62570]},{"a":62649,"t":"code","b":[224,28],"m":"cpx","o":"#$1C"},{"a":62651,"t":"code","b":[208,1],"m":"bne","o":"b_F4BE","oa":62654},{"a":62653,"t":"code","b":[96],"m":"rts"},{"a":62654,"l":"b_F4BE","t":"code","b":[189,73,241],"m":"lda","o":"slot_number,x","oa":61769,"x":[62651]},{"a":62657,"t":"code","b":[208,1],"m":"bne","o":"b_F4C4","oa":62660},{"a":62659,"t":"code","b":[96],"m":"rts"},{"a":62660,"l":"b_F4C4","t":"code","b":[188,217,240],"m":"ldy","o":"slot_top,x","oa":61657,"x":[62657]},{"a":62663,"t":"code","b":[16,1],"m":"bpl","o":"b_F4CA","oa":62666},{"a":62665,"t":"code","b":[96],"m":"rts"},{"a":62666,"l":"b_F4CA","t":"code","b":[24],"m":"clc","x":[62663]},{"a":62667,"t":"code","b":[185,120,52],"m":"lda","o":"f_3478,y","oa":13432},{"a":62670,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":62672,"t":"code","b":[133,180],"m":"sta","o":"zpa_B4","oa":180},{"a":62674,"t":"code","b":[185,95,52],"m":"lda","o":"f_345F,y","oa":13407},{"a":62677,"t":"code","b":[105,204],"m":"adc","o":"#$CC"},{"a":62679,"t":"code","b":[133,181],"m":"sta","o":"zpa_B5","oa":181},{"a":62681,"t":"code","b":[24],"m":"clc"},{"a":62682,"t":"code","b":[165,180],"m":"lda","o":"zpa_B4","oa":180},{"a":62684,"t":"code","b":[125,17,241],"m":"adc","o":"slot_left,x","oa":61713},{"a":62687,"t":"code","b":[133,180],"m":"sta","o":"zpa_B4","oa":180},{"a":62689,"t":"code","b":[144,2],"m":"bcc","o":"b_F4E5","oa":62693},{"a":62691,"t":"code","b":[230,181],"m":"inc","o":"zpa_B5","oa":181},{"a":62693,"l":"b_F4E5","t":"code","b":[56],"m":"sec","x":[62689]},{"a":62694,"t":"code","b":[189,45,241],"m":"lda","o":"slot_right,x","oa":61741},{"a":62697,"t":"code","b":[253,17,241],"m":"sbc","o":"slot_left,x","oa":61713},{"a":62700,"t":"code","b":[141,9,245],"m":"sta","o":"slot_width_cpy","oa":62729},{"a":62703,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":62705,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":62707,"l":"b_F4F3","t":"code","b":[138],"m":"txa","x":[62730]},{"a":62708,"t":"code","b":[208,15],"m":"bne","o":"b_F505","oa":62725},{"a":62710,"t":"code","b":[177,178],"m":"lda","o":"(zpa_B2),y","oa":178},{"a":62712,"t":"code","b":[201,64],"m":"cmp","o":"#$40"},{"a":62714,"t":"code","b":[208,2],"m":"bne","o":"b_F4FE","oa":62718},{"a":62716,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":62718,"l":"b_F4FE","t":"code","b":[201,0],"m":"cmp","o":"#$00","x":[62714]},{"a":62720,"t":"code","b":[208,3],"m":"bne","o":"b_F505","oa":62725},{"a":62722,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":62724,"t":"code","b":[170],"m":"tax"},{"a":62725,"l":"b_F505","t":"code","b":[145,180],"m":"sta","o":"(zpa_B4),y","oa":180,"x":[62708,62720]},{"a":62727,"t":"code","b":[200],"m":"iny"},{"a":62728,"t":"code","b":[192,0],"m":"cpy","o":"#$00"},{"a":62729,"t":"note","l":"slot_width_cpy","c":"The slot's width, written into this CPY","note":"inside the item at $F508","x":[62700]},{"a":62730,"t":"code","b":[208,231],"m":"bne","o":"b_F4F3","oa":62707},{"a":62732,"t":"code","b":[96],"m":"rts"},{"a":62733,"c":"A zero byte: the blank shown when an arrow is not needed","t":"byte","b":[0]},{"a":62734,"l":"colour_slot","c":"Fills the slot's rows and columns in the colour RAM with the colour in $F1B3","t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868,"x":[62151,62166]},{"a":62737,"t":"code","b":[224,28],"m":"cpx","o":"#$1C"},{"a":62739,"t":"code","b":[208,1],"m":"bne","o":"b_F516","oa":62742},{"a":62741,"t":"code","b":[96],"m":"rts"},{"a":62742,"l":"b_F516","t":"code","b":[189,45,241],"m":"lda","o":"slot_right,x","oa":61741,"x":[62739]},{"a":62745,"t":"code","b":[141,68,245],"m":"sta","o":"slot_right_cpy","oa":62788},{"a":62748,"t":"code","b":[189,245,240],"m":"lda","o":"slot_bottom,x","oa":61685},{"a":62751,"t":"code","b":[141,76,245],"m":"sta","o":"slot_bottom_cpy","oa":62796},{"a":62754,"t":"code","b":[188,217,240],"m":"ldy","o":"slot_top,x","oa":61657},{"a":62757,"t":"code","b":[16,1],"m":"bpl","o":"b_F528","oa":62760},{"a":62759,"t":"code","b":[96],"m":"rts"},{"a":62760,"l":"b_F528","t":"code","b":[140,176,241],"m":"sty","o":"a_F1B0","oa":61872,"x":[62757,62797]},{"a":62763,"t":"code","b":[24],"m":"clc"},{"a":62764,"t":"code","b":[185,120,52],"m":"lda","o":"f_3478,y","oa":13432},{"a":62767,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":62769,"t":"code","b":[133,180],"m":"sta","o":"zpa_B4","oa":180},{"a":62771,"t":"code","b":[185,95,52],"m":"lda","o":"f_345F,y","oa":13407},{"a":62774,"t":"code","b":[105,216],"m":"adc","o":"#$D8"},{"a":62776,"t":"code","b":[133,181],"m":"sta","o":"zpa_B5","oa":181},{"a":62778,"t":"code","b":[188,17,241],"m":"ldy","o":"slot_left,x","oa":61713},{"a":62781,"t":"code","b":[173,179,241],"m":"lda","o":"a_F1B3","oa":61875},{"a":62784,"l":"b_F540","t":"code","b":[145,180],"m":"sta","o":"(zpa_B4),y","oa":180,"x":[62789]},{"a":62786,"t":"code","b":[200],"m":"iny"},{"a":62787,"t":"code","b":[192,0],"m":"cpy","o":"#$00"},{"a":62788,"t":"note","l":"slot_right_cpy","c":"The column after the slot's last, written into this CPY from slot_right","note":"inside the item at $F543","x":[62745]},{"a":62789,"t":"code","b":[208,249],"m":"bne","o":"b_F540","oa":62784},{"a":62791,"t":"code","b":[172,176,241],"m":"ldy","o":"a_F1B0","oa":61872},{"a":62794,"t":"code","b":[200],"m":"iny"},{"a":62795,"t":"code","b":[192,0],"m":"cpy","o":"#$00"},{"a":62796,"t":"note","l":"slot_bottom_cpy","c":"The row below the slot's last, written into this CPY from slot_bottom at $F51F","note":"inside the item at $F54B","x":[62751]},{"a":62797,"t":"code","b":[208,217],"m":"bne","o":"b_F528","oa":62760},{"a":62799,"t":"code","b":[96],"m":"rts"},{"a":62800,"l":"cursor_room_point","c":"Where the cursor points in the room: its column ($FC26, X divided by 4) and its row in the room's units ($FC25, Y plus 8, halved, less 4)","t":"code","b":[173,163,241],"m":"lda","o":"a_F1A3","oa":61859,"x":[61942]},{"a":62803,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":62804,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":62805,"t":"code","b":[141,38,252],"m":"sta","o":"a_FC26","oa":64550},{"a":62808,"t":"code","b":[24],"m":"clc"},{"a":62809,"t":"code","b":[173,165,241],"m":"lda","o":"a_F1A5","oa":61861},{"a":62812,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":62814,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":62815,"t":"code","b":[56],"m":"sec"},{"a":62816,"t":"code","b":[233,4],"m":"sbc","o":"#$04"},{"a":62818,"t":"code","b":[141,37,252],"m":"sta","o":"a_FC25","oa":64549},{"a":62821,"t":"code","b":[96],"m":"rts"},{"a":62822,"l":"find_slot","c":"The slot whose rectangle holds the cursor's row and column, in X; 28 when there is none","t":"code","b":[173,163,241],"m":"lda","o":"a_F1A3","oa":61859,"x":[61945]},{"a":62825,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":62826,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":62827,"t":"code","b":[141,170,241],"m":"sta","o":"a_F1AA","oa":61866},{"a":62830,"t":"code","b":[173,165,241],"m":"lda","o":"a_F1A5","oa":61861},{"a":62833,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":62834,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":62835,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":62836,"t":"code","b":[141,171,241],"m":"sta","o":"a_F1AB","oa":61867},{"a":62839,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":62841,"l":"b_F579","t":"code","b":[189,73,241],"m":"lda","o":"slot_number,x","oa":61769,"x":[62876]},{"a":62844,"t":"code","b":[240,27],"m":"beq","o":"b_F599","oa":62873},{"a":62846,"t":"code","b":[173,171,241],"m":"lda","o":"a_F1AB","oa":61867},{"a":62849,"t":"code","b":[221,217,240],"m":"cmp","o":"slot_top,x","oa":61657},{"a":62852,"t":"code","b":[144,19],"m":"bcc","o":"b_F599","oa":62873},{"a":62854,"t":"code","b":[221,245,240],"m":"cmp","o":"slot_bottom,x","oa":61685},{"a":62857,"t":"code","b":[176,14],"m":"bcs","o":"b_F599","oa":62873},{"a":62859,"t":"code","b":[173,170,241],"m":"lda","o":"a_F1AA","oa":61866},{"a":62862,"t":"code","b":[221,17,241],"m":"cmp","o":"slot_left,x","oa":61713},{"a":62865,"t":"code","b":[144,6],"m":"bcc","o":"b_F599","oa":62873},{"a":62867,"t":"code","b":[221,45,241],"m":"cmp","o":"slot_right,x","oa":61741},{"a":62870,"t":"code","b":[176,1],"m":"bcs","o":"b_F599","oa":62873},{"a":62872,"t":"code","b":[96],"m":"rts"},{"a":62873,"l":"b_F599","t":"code","b":[232],"m":"inx","x":[62844,62852,62857,62865,62870]},{"a":62874,"t":"code","b":[224,28],"m":"cpx","o":"#$1C"},{"a":62876,"t":"code","b":[208,219],"m":"bne","o":"b_F579","oa":62841},{"a":62878,"t":"code","b":[96],"m":"rts"},{"a":62879,"l":"button_pressed","c":"Not zero when the joystick's button is pressed this frame and was not the frame before","t":"code","b":[165,49],"m":"lda","o":"zpa_31","oa":49,"x":[62016]},{"a":62881,"t":"code","b":[41,16],"m":"and","o":"#$10"},{"a":62883,"t":"code","b":[170],"m":"tax"},{"a":62884,"t":"code","b":[77,173,241],"m":"eor","o":"a_F1AD","oa":61869},{"a":62887,"t":"code","b":[45,173,241],"m":"and","o":"a_F1AD","oa":61869},{"a":62890,"t":"code","b":[142,173,241],"m":"stx","o":"a_F1AD","oa":61869},{"a":62893,"t":"code","b":[96],"m":"rts"},{"a":62894,"l":"set_cursor_feel","c":"Sets the cursor's push and how its speed dies away for the kind of slot under it (from $F1B4), or the room's when it is over none","t":"code","b":[174,172,241],"m":"ldx","o":"slot_under_cursor","oa":61868,"x":[32975,61986,62091]},{"a":62897,"t":"code","b":[224,28],"m":"cpx","o":"#$1C"},{"a":62899,"t":"code","b":[208,5],"m":"bne","o":"b_F5BA","oa":62906},{"a":62901,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":62903,"t":"code","b":[76,192,245],"m":"jmp","o":"j_F5C0","oa":62912},{"a":62906,"l":"b_F5BA","t":"code","b":[188,121,241],"m":"ldy","o":"slot_kind,x","oa":61817,"x":[62899]},{"a":62909,"t":"code","b":[190,180,241],"m":"ldx","o":"f_F1B4,y","oa":61876},{"a":62912,"l":"j_F5C0","t":"code","b":[189,237,241],"m":"lda","o":"f_F1ED,x","oa":61933,"x":[62903]},{"a":62915,"t":"code","b":[141,159,241],"m":"sta","o":"a_F19F","oa":61855},{"a":62918,"t":"code","b":[189,239,241],"m":"lda","o":"f_F1EF,x","oa":61935},{"a":62921,"t":"code","b":[141,160,241],"m":"sta","o":"a_F1A0","oa":61856},{"a":62924,"t":"code","b":[189,241,241],"m":"lda","o":"f_F1F1,x","oa":61937},{"a":62927,"t":"code","b":[141,161,241],"m":"sta","o":"a_F1A1","oa":61857},{"a":62930,"t":"code","b":[96],"m":"rts"},{"a":62931,"l":"f_F5D3","c":"For each of the joystick's sixteen readings of its four direction bits, the direction pushed (0 none, 1 to 8)","t":"byte","b":[0,0,0,0,0,6,8,7],"x":[63082]},{"a":62939,"t":"byte","b":[0,4,2,3,0,5,1,0]},{"a":62947,"l":"f_F5E3","c":"For each direction, the push across: $FF left, 0, 1 right; $F5EC the push up and down","t":"byte","b":[0,0,255,255,255,0,1,1],"x":[63085]},{"a":62955,"t":"byte","b":[1]},{"a":62956,"l":"f_F5EC","c":"For each direction, the push up and down: $FF up, 0, 1 down","t":"byte","b":[0,255,255,0,1,1,1,0],"x":[63112]},{"a":62964,"t":"byte","b":[255]},{"a":62965,"l":"move_cursor","c":"Each frame the cursor moves (update_cursor): the cursor's speed across and up and down dies away by its own value shifted by $F1A1, then the joystick pushes it ($F19F, $F1A0), and the position moves by the speed. At X 0 and 159, and at Y 0 and 191, it stops with the speed cleared; a Y below 16, at the top, is put back to 16 and the speed is kept","t":"code","b":[173,166,241],"m":"lda","o":"a_F1A6","oa":61862,"x":[61939]},{"a":62968,"t":"code","b":[141,176,241],"m":"sta","o":"a_F1B0","oa":61872},{"a":62971,"t":"code","b":[173,167,241],"m":"lda","o":"a_F1A7","oa":61863},{"a":62974,"t":"code","b":[141,177,241],"m":"sta","o":"a_F1B1","oa":61873},{"a":62977,"t":"code","b":[174,161,241],"m":"ldx","o":"a_F1A1","oa":61857},{"a":62980,"t":"code","b":[240,9],"m":"beq","o":"b_F60F","oa":62991},{"a":62982,"l":"b_F606","t":"code","b":[14,176,241],"m":"asl","o":"a_F1B0","oa":61872,"x":[62989]},{"a":62985,"t":"code","b":[46,177,241],"m":"rol","o":"a_F1B1","oa":61873},{"a":62988,"t":"code","b":[202],"m":"dex"},{"a":62989,"t":"code","b":[208,247],"m":"bne","o":"b_F606","oa":62982},{"a":62991,"l":"b_F60F","t":"code","b":[144,4],"m":"bcc","o":"b_F615","oa":62997,"x":[62980]},{"a":62993,"t":"code","b":[202],"m":"dex"},{"a":62994,"t":"code","b":[76,24,246],"m":"jmp","o":"j_F618","oa":63000},{"a":62997,"l":"b_F615","t":"code","b":[236,176,241],"m":"cpx","o":"a_F1B0","oa":61872,"x":[62991]},{"a":63000,"l":"j_F618","t":"code","b":[142,178,241],"m":"stx","o":"a_F1B2","oa":61874,"x":[62994]},{"a":63003,"t":"code","b":[173,166,241],"m":"lda","o":"a_F1A6","oa":61862},{"a":63006,"t":"code","b":[237,177,241],"m":"sbc","o":"a_F1B1","oa":61873},{"a":63009,"t":"code","b":[141,166,241],"m":"sta","o":"a_F1A6","oa":61862},{"a":63012,"t":"code","b":[173,167,241],"m":"lda","o":"a_F1A7","oa":61863},{"a":63015,"t":"code","b":[237,178,241],"m":"sbc","o":"a_F1B2","oa":61874},{"a":63018,"t":"code","b":[141,167,241],"m":"sta","o":"a_F1A7","oa":61863},{"a":63021,"t":"code","b":[173,168,241],"m":"lda","o":"a_F1A8","oa":61864},{"a":63024,"t":"code","b":[141,176,241],"m":"sta","o":"a_F1B0","oa":61872},{"a":63027,"t":"code","b":[173,169,241],"m":"lda","o":"a_F1A9","oa":61865},{"a":63030,"t":"code","b":[141,177,241],"m":"sta","o":"a_F1B1","oa":61873},{"a":63033,"t":"code","b":[174,161,241],"m":"ldx","o":"a_F1A1","oa":61857},{"a":63036,"t":"code","b":[240,9],"m":"beq","o":"b_F647","oa":63047},{"a":63038,"l":"b_F63E","t":"code","b":[14,176,241],"m":"asl","o":"a_F1B0","oa":61872,"x":[63045]},{"a":63041,"t":"code","b":[46,177,241],"m":"rol","o":"a_F1B1","oa":61873},{"a":63044,"t":"code","b":[202],"m":"dex"},{"a":63045,"t":"code","b":[208,247],"m":"bne","o":"b_F63E","oa":63038},{"a":63047,"l":"b_F647","t":"code","b":[144,4],"m":"bcc","o":"b_F64D","oa":63053,"x":[63036]},{"a":63049,"t":"code","b":[202],"m":"dex"},{"a":63050,"t":"code","b":[76,80,246],"m":"jmp","o":"j_F650","oa":63056},{"a":63053,"l":"b_F64D","t":"code","b":[236,176,241],"m":"cpx","o":"a_F1B0","oa":61872,"x":[63047]},{"a":63056,"l":"j_F650","t":"code","b":[142,178,241],"m":"stx","o":"a_F1B2","oa":61874,"x":[63050]},{"a":63059,"t":"code","b":[173,168,241],"m":"lda","o":"a_F1A8","oa":61864},{"a":63062,"t":"code","b":[237,177,241],"m":"sbc","o":"a_F1B1","oa":61873},{"a":63065,"t":"code","b":[141,168,241],"m":"sta","o":"a_F1A8","oa":61864},{"a":63068,"t":"code","b":[173,169,241],"m":"lda","o":"a_F1A9","oa":61865},{"a":63071,"t":"code","b":[237,178,241],"m":"sbc","o":"a_F1B2","oa":61874},{"a":63074,"t":"code","b":[141,169,241],"m":"sta","o":"a_F1A9","oa":61865},{"a":63077,"t":"code","b":[165,49],"m":"lda","o":"zpa_31","oa":49},{"a":63079,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":63081,"t":"code","b":[170],"m":"tax"},{"a":63082,"t":"code","b":[188,211,245],"m":"ldy","o":"f_F5D3,x","oa":62931},{"a":63085,"t":"code","b":[185,227,245],"m":"lda","o":"f_F5E3,y","oa":62947},{"a":63088,"t":"code","b":[240,22],"m":"beq","o":"b_F688","oa":63112},{"a":63090,"t":"code","b":[201,128],"m":"cmp","o":"#$80"},{"a":63092,"t":"code","b":[8],"m":"php"},{"a":63093,"t":"code","b":[106],"m":"ror","o":"a"},{"a":63094,"t":"code","b":[40],"m":"plp"},{"a":63095,"t":"code","b":[72],"m":"pha"},{"a":63096,"t":"code","b":[77,159,241],"m":"eor","o":"a_F19F","oa":61855},{"a":63099,"t":"code","b":[109,166,241],"m":"adc","o":"a_F1A6","oa":61862},{"a":63102,"t":"code","b":[141,166,241],"m":"sta","o":"a_F1A6","oa":61862},{"a":63105,"t":"code","b":[104],"m":"pla"},{"a":63106,"t":"code","b":[109,167,241],"m":"adc","o":"a_F1A7","oa":61863},{"a":63109,"t":"code","b":[141,167,241],"m":"sta","o":"a_F1A7","oa":61863},{"a":63112,"l":"b_F688","t":"code","b":[185,236,245],"m":"lda","o":"f_F5EC,y","oa":62956,"x":[63088]},{"a":63115,"t":"code","b":[240,22],"m":"beq","o":"b_F6A3","oa":63139},{"a":63117,"t":"code","b":[201,128],"m":"cmp","o":"#$80"},{"a":63119,"t":"code","b":[8],"m":"php"},{"a":63120,"t":"code","b":[106],"m":"ror","o":"a"},{"a":63121,"t":"code","b":[40],"m":"plp"},{"a":63122,"t":"code","b":[72],"m":"pha"},{"a":63123,"t":"code","b":[77,160,241],"m":"eor","o":"a_F1A0","oa":61856},{"a":63126,"t":"code","b":[109,168,241],"m":"adc","o":"a_F1A8","oa":61864},{"a":63129,"t":"code","b":[141,168,241],"m":"sta","o":"a_F1A8","oa":61864},{"a":63132,"t":"code","b":[104],"m":"pla"},{"a":63133,"t":"code","b":[109,169,241],"m":"adc","o":"a_F1A9","oa":61865},{"a":63136,"t":"code","b":[141,169,241],"m":"sta","o":"a_F1A9","oa":61865},{"a":63139,"l":"b_F6A3","t":"code","b":[24],"m":"clc","x":[63115]},{"a":63140,"t":"code","b":[173,162,241],"m":"lda","o":"a_F1A2","oa":61858},{"a":63143,"t":"code","b":[109,166,241],"m":"adc","o":"a_F1A6","oa":61862},{"a":63146,"t":"code","b":[170],"m":"tax"},{"a":63147,"t":"code","b":[173,163,241],"m":"lda","o":"a_F1A3","oa":61859},{"a":63150,"t":"code","b":[109,167,241],"m":"adc","o":"a_F1A7","oa":61863},{"a":63153,"t":"code","b":[201,160],"m":"cmp","o":"#$A0"},{"a":63155,"t":"code","b":[144,21],"m":"bcc","o":"b_F6CA","oa":63178},{"a":63157,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":63159,"t":"code","b":[173,167,241],"m":"lda","o":"a_F1A7","oa":61863},{"a":63162,"t":"code","b":[142,166,241],"m":"stx","o":"a_F1A6","oa":61862},{"a":63165,"t":"code","b":[142,167,241],"m":"stx","o":"a_F1A7","oa":61863},{"a":63168,"t":"code","b":[16,5],"m":"bpl","o":"b_F6C7","oa":63175},{"a":63170,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":63172,"t":"code","b":[76,202,246],"m":"jmp","o":"b_F6CA","oa":63178},{"a":63175,"l":"b_F6C7","t":"code","b":[169,159],"m":"lda","o":"#$9F","x":[63168]},{"a":63177,"t":"code","b":[202],"m":"dex"},{"a":63178,"l":"b_F6CA","t":"code","b":[141,163,241],"m":"sta","o":"a_F1A3","oa":61859,"x":[63155,63172]},{"a":63181,"t":"code","b":[142,162,241],"m":"stx","o":"a_F1A2","oa":61858},{"a":63184,"t":"code","b":[24],"m":"clc"},{"a":63185,"t":"code","b":[173,164,241],"m":"lda","o":"a_F1A4","oa":61860},{"a":63188,"t":"code","b":[109,168,241],"m":"adc","o":"a_F1A8","oa":61864},{"a":63191,"t":"code","b":[170],"m":"tax"},{"a":63192,"t":"code","b":[173,165,241],"m":"lda","o":"a_F1A5","oa":61861},{"a":63195,"t":"code","b":[109,169,241],"m":"adc","o":"a_F1A9","oa":61865},{"a":63198,"t":"code","b":[201,192],"m":"cmp","o":"#$C0"},{"a":63200,"t":"code","b":[144,21],"m":"bcc","o":"b_F6F7","oa":63223},{"a":63202,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":63204,"t":"code","b":[173,169,241],"m":"lda","o":"a_F1A9","oa":61865},{"a":63207,"t":"code","b":[142,168,241],"m":"stx","o":"a_F1A8","oa":61864},{"a":63210,"t":"code","b":[142,169,241],"m":"stx","o":"a_F1A9","oa":61865},{"a":63213,"t":"code","b":[16,5],"m":"bpl","o":"b_F6F4","oa":63220},{"a":63215,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":63217,"t":"code","b":[76,247,246],"m":"jmp","o":"b_F6F7","oa":63223},{"a":63220,"l":"b_F6F4","t":"code","b":[169,191],"m":"lda","o":"#$BF","x":[63213]},{"a":63222,"t":"code","b":[202],"m":"dex"},{"a":63223,"l":"b_F6F7","t":"code","b":[141,165,241],"m":"sta","o":"a_F1A5","oa":61861,"x":[63200,63217]},{"a":63226,"t":"code","b":[142,164,241],"m":"stx","o":"a_F1A4","oa":61860},{"a":63229,"t":"code","b":[173,165,241],"m":"lda","o":"a_F1A5","oa":61861},{"a":63232,"t":"code","b":[201,16],"m":"cmp","o":"#$10"},{"a":63234,"t":"code","b":[176,5],"m":"bcs","o":"r_F709","oa":63241},{"a":63236,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":63238,"t":"code","b":[141,165,241],"m":"sta","o":"a_F1A5","oa":61861},{"a":63241,"l":"r_F709","t":"code","b":[96],"m":"rts","x":[63234]},{"a":63242,"c":"Not used: the byte after the interface's code","t":"byte","b":[0]},{"a":63243,"t":"gap","n":245},{"a":63488,"l":"interface_charset","c":"The interface's character set, copied from $7859: characters 1 to 4 draw the inventory's two arrows, 14 to 31 lines and boxes, 32 to 127 the letters, digits and signs in ASCII's order (capitals from 65, small letters from 97). Characters 128 to 255 are blank, but for stray bytes in 18 of them that look like leftover tables, not pictures","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63496,"t":"byte","b":[1,3,6,12,24,62,3,0]},{"a":63504,"t":"byte","b":[128,192,96,48,24,124,192,0]},{"a":63512,"t":"byte","b":[0,3,62,24,12,6,3,1]},{"a":63520,"t":"byte","b":[0,192,124,24,48,96,192,128]},{"a":63528,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63536,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63544,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63552,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63560,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63568,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63576,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63584,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63592,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63600,"t":"byte","b":[0,0,0,248,248,24,24,24]},{"a":63608,"t":"byte","b":[24,24,24,248,248,0,0,0]},{"a":63616,"t":"byte","b":[24,24,24,31,31,0,0,0]},{"a":63624,"t":"byte","b":[0,0,0,3,7,12,24,24]},{"a":63632,"t":"byte","b":[0,0,0,192,224,48,24,24]},{"a":63640,"t":"byte","b":[24,24,48,224,192,0,0,0]},{"a":63648,"t":"byte","b":[24,24,12,7,3,0,0,0]},{"a":63656,"t":"byte","b":[24,24,24,31,31,24,24,24]},{"a":63664,"t":"byte","b":[24,24,24,248,248,24,24,24]},{"a":63672,"t":"byte","b":[24,24,24,255,255,0,0,0]},{"a":63680,"t":"byte","b":[0,0,0,255,255,24,24,24]},{"a":63688,"t":"byte","b":[24,24,24,255,255,24,24,24]},{"a":63696,"t":"byte","b":[24,24,24,24,24,24,24,24]},{"a":63704,"t":"byte","b":[0,0,0,255,255,0,0,0]},{"a":63712,"t":"byte","b":[24,60,102,195,195,102,60,24]},{"a":63720,"t":"byte","b":[24,60,126,255,255,126,60,24]},{"a":63728,"t":"byte","b":[24,102,195,219,219,195,102,24]},{"a":63736,"t":"byte","b":[0,0,0,0,0,255,255,255]},{"a":63744,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63752,"t":"byte","b":[24,24,24,24,0,0,24,0]},{"a":63760,"t":"byte","b":[102,102,102,0,0,0,0,0]},{"a":63768,"t":"byte","b":[102,102,255,102,255,102,102,0]},{"a":63776,"t":"byte","b":[16,124,80,124,20,124,16,0]},{"a":63784,"t":"byte","b":[98,102,12,24,48,102,70,0]},{"a":63792,"t":"byte","b":[60,102,60,56,103,102,63,0]},{"a":63800,"t":"byte","b":[6,12,24,0,0,0,0,0]},{"a":63808,"t":"byte","b":[12,24,48,48,48,24,12,0]},{"a":63816,"t":"byte","b":[48,24,12,12,12,24,48,0]},{"a":63824,"t":"byte","b":[0,102,60,255,60,102,0,0]},{"a":63832,"t":"byte","b":[0,24,24,126,24,24,0,0]},{"a":63840,"t":"byte","b":[0,0,0,0,0,24,24,48]},{"a":63848,"t":"byte","b":[0,0,0,126,0,0,0,0]},{"a":63856,"t":"byte","b":[0,0,0,0,0,24,24,0]},{"a":63864,"t":"byte","b":[0,3,6,12,24,48,96,0]},{"a":63872,"t":"byte","b":[60,102,102,102,102,102,60,0]},{"a":63880,"t":"byte","b":[24,24,56,24,24,24,126,0]},{"a":63888,"t":"byte","b":[60,102,6,12,48,96,126,0]},{"a":63896,"t":"byte","b":[60,102,6,28,6,102,60,0]},{"a":63904,"t":"byte","b":[6,14,30,102,127,6,6,0]},{"a":63912,"t":"byte","b":[126,96,124,6,6,102,60,0]},{"a":63920,"t":"byte","b":[60,102,96,124,102,102,60,0]},{"a":63928,"t":"byte","b":[126,102,12,24,24,24,24,0]},{"a":63936,"t":"byte","b":[60,102,102,60,102,102,60,0]},{"a":63944,"t":"byte","b":[60,102,102,62,6,102,60,0]},{"a":63952,"t":"byte","b":[0,0,24,0,0,24,0,0]},{"a":63960,"t":"byte","b":[0,0,24,0,0,24,24,48]},{"a":63968,"t":"byte","b":[14,24,48,96,48,24,14,0]},{"a":63976,"t":"byte","b":[124,130,186,162,162,186,130,124]},{"a":63984,"t":"byte","b":[112,24,12,6,12,24,112,0]},{"a":63992,"t":"byte","b":[60,102,6,12,24,0,24,0]},{"a":64000,"t":"byte","b":[0,0,0,255,255,0,0,0]},{"a":64008,"t":"byte","b":[24,60,102,126,102,102,102,0]},{"a":64016,"t":"byte","b":[124,102,102,124,102,102,124,0]},{"a":64024,"t":"byte","b":[60,102,96,96,96,102,60,0]},{"a":64032,"t":"byte","b":[120,108,102,102,102,108,120,0]},{"a":64040,"t":"byte","b":[126,96,96,120,96,96,126,0]},{"a":64048,"t":"byte","b":[126,96,96,120,96,96,96,0]},{"a":64056,"t":"byte","b":[60,102,96,110,102,102,60,0]},{"a":64064,"t":"byte","b":[102,102,102,126,102,102,102,0]},{"a":64072,"t":"byte","b":[60,24,24,24,24,24,60,0]},{"a":64080,"t":"byte","b":[30,12,12,12,12,108,56,0]},{"a":64088,"t":"byte","b":[102,108,120,112,120,108,102,0]},{"a":64096,"t":"byte","b":[96,96,96,96,96,96,126,0]},{"a":64104,"t":"byte","b":[99,119,127,107,99,99,99,0]},{"a":64112,"t":"byte","b":[102,118,126,126,110,102,102,0]},{"a":64120,"t":"byte","b":[60,102,102,102,102,102,60,0]},{"a":64128,"t":"byte","b":[124,102,102,124,96,96,96,0]},{"a":64136,"t":"byte","b":[60,102,102,102,102,60,14,0]},{"a":64144,"t":"byte","b":[124,102,102,124,120,108,102,0]},{"a":64152,"t":"byte","b":[60,102,96,60,6,102,60,0]},{"a":64160,"t":"byte","b":[126,24,24,24,24,24,24,0]},{"a":64168,"t":"byte","b":[102,102,102,102,102,102,60,0]},{"a":64176,"t":"byte","b":[102,102,102,102,102,60,24,0]},{"a":64184,"t":"byte","b":[99,99,99,107,127,119,99,0]},{"a":64192,"t":"byte","b":[102,102,60,24,60,102,102,0]},{"a":64200,"t":"byte","b":[102,102,102,60,24,24,24,0]},{"a":64208,"t":"byte","b":[126,6,12,24,48,96,126,0]},{"a":64216,"t":"byte","b":[60,48,48,48,48,48,60,0]},{"a":64224,"t":"byte","b":[12,18,48,124,48,98,252,0]},{"a":64232,"t":"byte","b":[60,12,12,12,12,12,60,0]},{"a":64240,"t":"byte","b":[0,0,0,0,0,84,84,0]},{"a":64248,"t":"byte","b":[0,16,48,127,127,48,16,0]},{"a":64256,"t":"byte","b":[102,102,102,0,0,0,0,0]},{"a":64264,"t":"byte","b":[0,0,60,6,62,102,62,0]},{"a":64272,"t":"byte","b":[0,96,96,124,102,102,124,0]},{"a":64280,"t":"byte","b":[0,0,60,96,96,96,60,0]},{"a":64288,"t":"byte","b":[0,6,6,62,102,102,62,0]},{"a":64296,"t":"byte","b":[0,0,60,102,126,96,60,0]},{"a":64304,"t":"byte","b":[0,14,24,62,24,24,24,0]},{"a":64312,"t":"byte","b":[0,0,62,102,102,62,6,124]},{"a":64320,"t":"byte","b":[0,96,96,124,102,102,102,0]},{"a":64328,"t":"byte","b":[0,24,0,56,24,24,60,0]},{"a":64336,"t":"byte","b":[0,6,0,6,6,6,6,60]},{"a":64344,"t":"byte","b":[0,96,96,108,120,108,102,0]},{"a":64352,"t":"byte","b":[0,56,24,24,24,24,60,0]},{"a":64360,"t":"byte","b":[0,0,102,127,127,107,99,0]},{"a":64368,"t":"byte","b":[0,0,124,102,102,102,102,0]},{"a":64376,"t":"byte","b":[0,0,60,102,102,102,60,0]},{"a":64384,"t":"byte","b":[0,0,124,102,102,124,96,96]},{"a":64392,"t":"byte","b":[0,0,62,102,102,62,6,6]},{"a":64400,"t":"byte","b":[0,0,124,102,96,96,96,0]},{"a":64408,"t":"byte","b":[0,0,62,96,60,6,124,0]},{"a":64416,"t":"byte","b":[0,24,126,24,24,24,14,0]},{"a":64424,"t":"byte","b":[0,0,102,102,102,102,62,0]},{"a":64432,"t":"byte","b":[0,0,102,102,102,60,24,0]},{"a":64440,"t":"byte","b":[0,0,99,107,127,62,54,0]},{"a":64448,"t":"byte","b":[0,0,102,60,24,60,102,0]},{"a":64456,"t":"byte","b":[0,0,102,102,102,62,12,120]},{"a":64464,"t":"byte","b":[0,0,126,12,24,48,126,0]},{"a":64472,"t":"byte","b":[1,3,6,108,120,112,96,0]},{"a":64480,"t":"byte","b":[24,60,126,255,24,24,24,24]},{"a":64488,"t":"byte","b":[24,24,24,24,255,126,60,24]},{"a":64496,"t":"byte","b":[16,48,112,255,255,112,48,16]},{"a":64504,"t":"byte","b":[8,12,14,255,255,14,12,8]},{"a":64512,"t":"gap","n":1018,"x":[7695,7924,7949]},{"a":64554,"t":"note","l":"script_base","c":"The address of the current slot's script ($FC2B high), which its offsets are counted from","note":"outside the tracked image","x":[19598,19627,19682,19709,19729,20495]},{"a":64556,"t":"note","l":"current_opcode","c":"The opcode the interpreter is carrying out, whose high bits say which operands are variables","note":"outside the tracked image","x":[19553,20160,20168,20176,20228,20236,20244,20711]},{"a":64738,"t":"note","l":"walk_sprite_x_high","c":"Bit 8 of each walking slot's sprite X position (four slots)","note":"outside the tracked image","x":[5940,5959,6228,7591,7648]},{"a":64794,"t":"note","l":"walk_masked","c":"Not zero while the slot's actor stands behind something in the room, so its sprite column is masked after each frame (mask_actor_sprite)","note":"outside the tracked image","x":[1439,5535,7635,10715]},{"a":65393,"t":"note","l":"user_state","c":"The interface's state, set by set_user_state: bit 7 the verbs shown, 6 the inventory, 5 the sentence line, 4 the cursor, 3 the other scripts frozen","note":"outside the tracked image","x":[1673,1704,23267,23508,23513,23520,23523,23553,23558,23565,23568,62201,62228,62246,62286,62406,62473,62515]},{"a":65394,"t":"note","l":"interface_drawing","c":"1 while the verbs and the inventory are drawn again (set_user_state, redraw_inventory_banked); the frame interrupt does not move the cursor meanwhile","note":"outside the tracked image","x":[4880,20068,20084,23601,23624]},{"a":65424,"t":"note","l":"actor_costume","c":"Each actor's costume number (13 actors), zero for none","note":"outside the tracked image","x":[1222,7986,8332,10510,10566,10733,18990,23684,24880,24893,33332]},{"a":65463,"t":"note","l":"actor_x","c":"Each actor's X position in the room, in character columns (13 actors)","note":"outside the tracked image","x":[1231,5995,8567,8583,8599,10586,10663,10691,23723]},{"a":65502,"t":"note","l":"actor_facing","c":"Each actor's direction (13 actors): 0 left, 1 right, 2 towards the player, 3 away","note":"outside the tracked image","x":[1237,5456,5498,5682,5801,5817,6009,6061,7708,8514,8665,8863,10766,10780,10794,21761,23800,23971,24018,33300]},{"a":65516,"t":"note","l":"heap_list_head","c":"The head of the heap's list of free blocks, laid out like a free block: a size of 4 ($FFEC/$FFED), then the first free block ($FFEE/$FFEF), $77D5 after init_heap","note":"outside the tracked image","x":[19478]},{"a":65517,"t":"note","l":"heap_list_head_high","c":"The high byte of the list head's size, 0: the KERNAL's SCREEN entry in the ROM, but RAM here, with the ROMs banked out","note":"outside the tracked image","x":[19483]},{"a":65518,"t":"note","l":"heap_first_free","c":"The first block on the list of free blocks ($FFEF high), the head's link","note":"outside the tracked image","x":[17734,18096,18472,18657,19488]},{"a":65520,"t":"note","l":"heap_free_tail","c":"The last block on the list of free blocks ($FFF1 its high byte), after which a block that is freed is put","note":"outside the tracked image","x":[17823,17837,18056,18439,18455,19491,25008,25085,54400,54410,54418]},{"a":65530,"l":"cpu_vectors","c":"The 6502's vectors in the RAM under the KERNAL, which it reads while the ROMs are banked out: NMI $1479, an RTI, set at $7F76, so RESTORE does nothing; reset $0000, never used, as a reset brings the ROMs back; IRQ, which every raster interrupt rewrites with the next one's handler ($0C1C, raster_top, here)","t":"byte","b":[121,20,0,0,28,12],"x":[32630]}]}