{"schema":1,"platform":"c16","game":"prospector-pete","title":"Prospector Pete","build":"Mastertronic cassette, Novaload N103131, from the TOSEC raw tape (2016-11-11)","symbols_sha256":"28c918a01febecafa4fba565f21ace3305814b575473a6f3c6f09e1a369ad855","snapshot":{"file":"work/entry.p4emu","sha256":"b3c3fa961fd1d7be78d40776700f4703de252616e489ed890874f3af91459ef2"},"index":[{"a":4096,"n":"chr_earth","k":"table","len":40,"c":true},{"a":4136,"n":"chr_digging","k":"table","len":384,"c":true},{"a":4520,"n":"chr_walls","k":"table","len":40,"c":true},{"a":4560,"n":"chr_surface","k":"table","len":176,"c":true},{"a":4736,"n":"chr_ladder","k":"table","len":96,"c":true},{"a":4832,"n":"chr_water","k":"table","len":136,"c":true},{"a":4984,"n":"chr_dynamite","k":"variable","len":1,"c":true},{"a":4985,"n":"chr_dynamite_row1","k":"table","len":7,"c":true},{"a":4992,"n":"chr_goodies","k":"table","len":160,"c":true},{"a":5152,"n":"chr_goodies_square","k":"table","len":224,"c":true},{"a":5376,"n":"chr_pete_stand","k":"table","len":16,"c":true},{"a":5400,"n":"chr_debris","k":"table","len":8,"c":true},{"a":5408,"n":"chr_pattern","k":"variable","len":1,"c":true},{"a":5409,"n":"chr_pattern_rows","k":"table","len":6,"c":true},{"a":5415,"n":"chr_pattern_last","k":"variable","len":1,"c":true},{"a":5416,"n":"chr_box_lines","k":"table","len":72,"c":true},{"a":5552,"n":"chr_brackets","k":"table","len":80,"c":true},{"a":5632,"n":"chr_frames","k":"table","len":48,"c":true},{"a":5680,"n":"chr_scroller","k":"table","len":8,"c":true},{"a":5688,"n":"chr_scroller_next","k":"table","len":56,"c":true},{"a":5744,"n":"chr_figures","k":"table","len":72,"c":true},{"a":5816,"n":"chr_scroller_in","k":"table","len":8,"c":true},{"a":5824,"n":"chr_letters","k":"table","len":320,"c":true},{"a":6144,"n":"start","k":"routine","len":76,"c":true},{"a":6159,"n":"b_180F","k":"branch","len":1,"c":false},{"a":6220,"n":"main_loop","k":"routine","len":217,"c":true},{"a":6223,"n":"b_184F","k":"branch","len":1,"c":false},{"a":6226,"n":"b_1852","k":"branch","len":1,"c":false},{"a":6228,"n":"b_1854","k":"branch","len":1,"c":false},{"a":6255,"n":"b_186F","k":"branch","len":1,"c":false},{"a":6271,"n":"b_187F","k":"branch","len":1,"c":false},{"a":6290,"n":"b_1892","k":"branch","len":1,"c":false},{"a":6341,"n":"b_18C5","k":"branch","len":1,"c":false},{"a":6349,"n":"b_18CD","k":"branch","len":1,"c":false},{"a":6367,"n":"b_18DF","k":"branch","len":1,"c":false},{"a":6401,"n":"b_1901","k":"branch","len":1,"c":false},{"a":6410,"n":"b_190A","k":"branch","len":1,"c":false},{"a":6418,"n":"b_1912","k":"branch","len":1,"c":false},{"a":6426,"n":"b_191A","k":"branch","len":1,"c":false},{"a":6430,"n":"b_191E","k":"branch","len":1,"c":false},{"a":6437,"n":"swap_face","k":"routine","len":82,"c":true},{"a":6443,"n":"r_192B","k":"branch","len":1,"c":false},{"a":6444,"n":"b_192C","k":"branch","len":1,"c":false},{"a":6485,"n":"b_1955","k":"branch","len":1,"c":false},{"a":6494,"n":"b_195E","k":"branch","len":1,"c":false},{"a":6519,"n":"check_big_charge","k":"routine","len":26,"c":true},{"a":6530,"n":"b_1982","k":"branch","len":1,"c":false},{"a":6544,"n":"r_1990","k":"branch","len":1,"c":false},{"a":6545,"n":"irq_play","k":"routine","len":364,"c":true},{"a":6577,"n":"b_19B1","k":"branch","len":1,"c":false},{"a":6606,"n":"b_19CE","k":"branch","len":1,"c":false},{"a":6656,"n":"b_1A00","k":"branch","len":1,"c":false},{"a":6670,"n":"b_1A0E","k":"branch","len":1,"c":false},{"a":6676,"n":"b_1A14","k":"branch","len":1,"c":false},{"a":6712,"n":"b_1A38","k":"branch","len":1,"c":false},{"a":6729,"n":"b_1A49","k":"branch","len":1,"c":false},{"a":6736,"n":"b_1A50","k":"branch","len":1,"c":false},{"a":6787,"n":"b_1A83","k":"branch","len":1,"c":false},{"a":6791,"n":"b_1A87","k":"branch","len":1,"c":false},{"a":6793,"n":"b_1A89","k":"branch","len":1,"c":false},{"a":6821,"n":"b_1AA5","k":"branch","len":1,"c":false},{"a":6825,"n":"b_1AA9","k":"branch","len":1,"c":false},{"a":6827,"n":"b_1AAB","k":"branch","len":1,"c":false},{"a":6839,"n":"b_1AB7","k":"branch","len":1,"c":false},{"a":6842,"n":"b_1ABA","k":"branch","len":1,"c":false},{"a":6867,"n":"b_1AD3","k":"branch","len":1,"c":false},{"a":6878,"n":"b_1ADE","k":"branch","len":1,"c":false},{"a":6889,"n":"b_1AE9","k":"branch","len":1,"c":false},{"a":6894,"n":"j_1AEE","k":"branch","len":1,"c":false},{"a":6909,"n":"sky_background","k":"table","len":16,"c":true},{"a":6925,"n":"sky_colour1","k":"table","len":16,"c":true},{"a":6941,"n":"sky_colour2","k":"table","len":16,"c":true},{"a":6957,"n":"scroll_view","k":"routine","len":140,"c":true},{"a":6974,"n":"b_1B3E","k":"branch","len":1,"c":false},{"a":6988,"n":"b_1B4C","k":"branch","len":1,"c":false},{"a":6994,"n":"b_1B52","k":"branch","len":1,"c":false},{"a":7003,"n":"b_1B5B","k":"branch","len":1,"c":false},{"a":7015,"n":"b_1B67","k":"branch","len":1,"c":false},{"a":7044,"n":"b_1B84","k":"branch","len":1,"c":false},{"a":7050,"n":"b_1B8A","k":"branch","len":1,"c":false},{"a":7068,"n":"b_1B9C","k":"branch","len":1,"c":false},{"a":7074,"n":"b_1BA2","k":"branch","len":1,"c":false},{"a":7088,"n":"b_1BB0","k":"branch","len":1,"c":false},{"a":7092,"n":"b_1BB4","k":"branch","len":1,"c":false},{"a":7096,"n":"r_1BB8","k":"branch","len":1,"c":false},{"a":7097,"n":"draw_view","k":"routine","len":155,"c":true},{"a":7101,"n":"b_1BBD","k":"branch","len":1,"c":false},{"a":7175,"n":"b_1C07","k":"branch","len":1,"c":false},{"a":7252,"n":"start_level","k":"routine","len":493,"c":true},{"a":7331,"n":"b_1CA3","k":"branch","len":1,"c":false},{"a":7429,"n":"b_1D05","k":"branch","len":1,"c":false},{"a":7461,"n":"b_1D25","k":"branch","len":1,"c":false},{"a":7519,"n":"b_1D5F","k":"branch","len":1,"c":false},{"a":7567,"n":"b_1D8F","k":"branch","len":1,"c":false},{"a":7588,"n":"b_1DA4","k":"branch","len":1,"c":false},{"a":7590,"n":"b_1DA6","k":"branch","len":1,"c":false},{"a":7640,"n":"b_1DD8","k":"branch","len":1,"c":false},{"a":7678,"n":"b_1DFE","k":"branch","len":1,"c":false},{"a":7703,"n":"b_1E17","k":"branch","len":1,"c":false},{"a":7727,"n":"b_1E2F","k":"branch","len":1,"c":false},{"a":7745,"n":"status_line_text","k":"table","len":40,"c":true},{"a":7785,"n":"print_level","k":"routine","len":31,"c":true},{"a":7807,"n":"b_1E7F","k":"branch","len":1,"c":false},{"a":7816,"n":"print_men","k":"routine","len":10,"c":true},{"a":7822,"n":"b_1E8E","k":"branch","len":1,"c":false},{"a":7826,"n":"print_bcd","k":"routine","len":21,"c":true},{"a":7847,"n":"print_sticks","k":"routine","len":8,"c":true},{"a":7855,"n":"print_score","k":"routine","len":26,"c":true},{"a":7881,"n":"level_sticks","k":"table","len":16,"c":true},{"a":7897,"n":"level_release","k":"table","len":16,"c":true},{"a":7913,"n":"level_water_speed","k":"table","len":16,"c":true},{"a":7929,"n":"level_creature_day","k":"table","len":16,"c":true},{"a":7945,"n":"level_creature_night","k":"table","len":16,"c":true},{"a":7961,"n":"level_creatures","k":"table","len":16,"c":true},{"a":7977,"n":"level_small_goodies","k":"table","len":16,"c":true},{"a":7993,"n":"level_wide_goodies","k":"table","len":16,"c":true},{"a":8009,"n":"level_tall_goodies","k":"table","len":16,"c":true},{"a":8025,"n":"level_large_goodies","k":"table","len":16,"c":true},{"a":8041,"n":"level_fuse","k":"table","len":16,"c":true},{"a":8057,"n":"level_big_fuse","k":"table","len":16,"c":true},{"a":8073,"n":"move_pete","k":"routine","len":286,"c":true},{"a":8107,"n":"b_1FAB","k":"branch","len":1,"c":false},{"a":8109,"n":"b_1FAD","k":"branch","len":1,"c":false},{"a":8111,"n":"r_1FAF","k":"branch","len":1,"c":false},{"a":8112,"n":"b_1FB0","k":"branch","len":1,"c":false},{"a":8116,"n":"b_1FB4","k":"branch","len":1,"c":false},{"a":8124,"n":"b_1FBC","k":"branch","len":1,"c":false},{"a":8135,"n":"b_1FC7","k":"branch","len":1,"c":false},{"a":8143,"n":"b_1FCF","k":"branch","len":1,"c":false},{"a":8153,"n":"b_1FD9","k":"branch","len":1,"c":false},{"a":8168,"n":"b_1FE8","k":"branch","len":1,"c":false},{"a":8179,"n":"b_1FF3","k":"branch","len":1,"c":false},{"a":8223,"n":"b_201F","k":"branch","len":1,"c":false},{"a":8228,"n":"b_2024","k":"branch","len":1,"c":false},{"a":8268,"n":"b_204C","k":"branch","len":1,"c":false},{"a":8273,"n":"b_2051","k":"branch","len":1,"c":false},{"a":8282,"n":"b_205A","k":"branch","len":1,"c":false},{"a":8317,"n":"b_207D","k":"branch","len":1,"c":false},{"a":8323,"n":"r_2083","k":"branch","len":1,"c":false},{"a":8324,"n":"b_2084","k":"branch","len":1,"c":false},{"a":8359,"n":"read_controls","k":"routine","len":115,"c":true},{"a":8394,"n":"b_20CA","k":"branch","len":1,"c":false},{"a":8399,"n":"b_20CF","k":"branch","len":1,"c":false},{"a":8404,"n":"b_20D4","k":"branch","len":1,"c":false},{"a":8409,"n":"b_20D9","k":"branch","len":1,"c":false},{"a":8416,"n":"b_20E0","k":"branch","len":1,"c":false},{"a":8428,"n":"b_20EC","k":"branch","len":1,"c":false},{"a":8435,"n":"b_20F3","k":"branch","len":1,"c":false},{"a":8447,"n":"b_20FF","k":"branch","len":1,"c":false},{"a":8454,"n":"b_2106","k":"branch","len":1,"c":false},{"a":8469,"n":"b_2115","k":"branch","len":1,"c":false},{"a":8474,"n":"read_key_row","k":"routine","len":10,"c":true},{"a":8484,"n":"key_p","k":"variable","len":1,"c":true},{"a":8485,"n":"key_l_a","k":"variable","len":1,"c":true},{"a":8486,"n":"key_space_esc","k":"variable","len":1,"c":true},{"a":8487,"n":"key_s","k":"variable","len":1,"c":true},{"a":8488,"n":"check_ring","k":"routine","len":92,"c":true},{"a":8505,"n":"b_2139","k":"branch","len":1,"c":false},{"a":8532,"n":"b_2154","k":"branch","len":1,"c":false},{"a":8536,"n":"b_2158","k":"branch","len":1,"c":false},{"a":8538,"n":"b_215A","k":"branch","len":1,"c":false},{"a":8578,"n":"b_2182","k":"branch","len":1,"c":false},{"a":8580,"n":"ring_offsets","k":"table","len":8,"c":true},{"a":8588,"n":"can_enter","k":"routine","len":57,"c":true},{"a":8607,"n":"b_219F","k":"branch","len":1,"c":false},{"a":8610,"n":"b_21A2","k":"branch","len":1,"c":false},{"a":8628,"n":"b_21B4","k":"branch","len":1,"c":false},{"a":8645,"n":"let_water_in","k":"routine","len":113,"c":true},{"a":8671,"n":"b_21DF","k":"branch","len":1,"c":false},{"a":8703,"n":"b_21FF","k":"branch","len":1,"c":false},{"a":8720,"n":"b_2210","k":"branch","len":1,"c":false},{"a":8732,"n":"b_221C","k":"branch","len":1,"c":false},{"a":8744,"n":"b_2228","k":"branch","len":1,"c":false},{"a":8757,"n":"r_2235","k":"branch","len":1,"c":false},{"a":8758,"n":"build_figures","k":"routine","len":363,"c":true},{"a":8781,"n":"b_224D","k":"branch","len":1,"c":false},{"a":8794,"n":"b_225A","k":"branch","len":1,"c":false},{"a":8821,"n":"b_2275","k":"branch","len":1,"c":false},{"a":8831,"n":"b_227F","k":"branch","len":1,"c":false},{"a":8833,"n":"b_2281","k":"branch","len":1,"c":false},{"a":8884,"n":"b_22B4","k":"branch","len":1,"c":false},{"a":8894,"n":"b_22BE","k":"branch","len":1,"c":false},{"a":8896,"n":"b_22C0","k":"branch","len":1,"c":false},{"a":8948,"n":"b_22F4","k":"branch","len":1,"c":false},{"a":8968,"n":"b_2308","k":"branch","len":1,"c":false},{"a":8970,"n":"b_230A","k":"branch","len":1,"c":false},{"a":8972,"n":"b_230C","k":"branch","len":1,"c":false},{"a":9059,"n":"b_2363","k":"branch","len":1,"c":false},{"a":9097,"n":"b_2389","k":"branch","len":1,"c":false},{"a":9121,"n":"shift_frames","k":"routine","len":82,"c":true},{"a":9152,"n":"b_23C0","k":"branch","len":1,"c":false},{"a":9154,"n":"b_23C2","k":"branch","len":1,"c":false},{"a":9203,"n":"water_step","k":"routine","len":37,"c":true},{"a":9217,"n":"b_2401","k":"branch","len":1,"c":false},{"a":9235,"n":"b_2413","k":"branch","len":1,"c":false},{"a":9240,"n":"water_fill","k":"routine","len":54,"c":true},{"a":9248,"n":"b_2420","k":"branch","len":1,"c":false},{"a":9284,"n":"b_2444","k":"branch","len":1,"c":false},{"a":9293,"n":"r_244D","k":"branch","len":1,"c":false},{"a":9294,"n":"water_flow","k":"routine","len":195,"c":true},{"a":9300,"n":"j_2454","k":"branch","len":1,"c":false},{"a":9402,"n":"b_24BA","k":"branch","len":1,"c":false},{"a":9422,"n":"b_24CE","k":"branch","len":1,"c":false},{"a":9442,"n":"b_24E2","k":"branch","len":1,"c":false},{"a":9458,"n":"b_24F2","k":"branch","len":1,"c":false},{"a":9460,"n":"j_24F4","k":"branch","len":1,"c":false},{"a":9472,"n":"b_2500","k":"branch","len":1,"c":false},{"a":9479,"n":"j_2507","k":"branch","len":1,"c":false},{"a":9483,"n":"b_250B","k":"branch","len":1,"c":false},{"a":9486,"n":"b_250E","k":"branch","len":1,"c":false},{"a":9489,"n":"flow_left","k":"routine","len":26,"c":true},{"a":9493,"n":"b_2515","k":"branch","len":1,"c":false},{"a":9502,"n":"b_251E","k":"branch","len":1,"c":false},{"a":9515,"n":"flow_right","k":"routine","len":26,"c":true},{"a":9519,"n":"b_252F","k":"branch","len":1,"c":false},{"a":9528,"n":"b_2538","k":"branch","len":1,"c":false},{"a":9541,"n":"flow_down","k":"routine","len":39,"c":true},{"a":9545,"n":"b_2549","k":"branch","len":1,"c":false},{"a":9567,"n":"b_255F","k":"branch","len":1,"c":false},{"a":9580,"n":"flow_up","k":"routine","len":61,"c":true},{"a":9596,"n":"b_257C","k":"branch","len":1,"c":false},{"a":9614,"n":"b_258E","k":"branch","len":1,"c":false},{"a":9636,"n":"b_25A4","k":"branch","len":1,"c":false},{"a":9641,"n":"drop_water","k":"routine","len":38,"c":true},{"a":9643,"n":"b_25AB","k":"branch","len":1,"c":false},{"a":9678,"n":"r_25CE","k":"branch","len":1,"c":false},{"a":9679,"n":"add_water","k":"routine","len":93,"c":true},{"a":9681,"n":"b_25D1","k":"branch","len":1,"c":false},{"a":9695,"n":"b_25DF","k":"branch","len":1,"c":false},{"a":9699,"n":"b_25E3","k":"branch","len":1,"c":false},{"a":9728,"n":"b_2600","k":"branch","len":1,"c":false},{"a":9731,"n":"b_2603","k":"branch","len":1,"c":false},{"a":9759,"n":"b_261F","k":"branch","len":1,"c":false},{"a":9766,"n":"b_2626","k":"branch","len":1,"c":false},{"a":9772,"n":"draw_figures","k":"routine","len":156,"c":true},{"a":9776,"n":"j_2630","k":"branch","len":1,"c":false},{"a":9785,"n":"b_2639","k":"branch","len":1,"c":false},{"a":9834,"n":"b_266A","k":"branch","len":1,"c":false},{"a":9902,"n":"b_26AE","k":"branch","len":1,"c":false},{"a":9904,"n":"b_26B0","k":"branch","len":1,"c":false},{"a":9927,"n":"b_26C7","k":"branch","len":1,"c":false},{"a":9928,"n":"bg1_lo","k":"routine","len":1,"c":true},{"a":9929,"n":"bg1_hi","k":"routine","len":2,"c":true},{"a":9931,"n":"mask1_lo","k":"routine","len":1,"c":true},{"a":9932,"n":"mask1_page","k":"routine","len":2,"c":true},{"a":9934,"n":"pic1_lo","k":"routine","len":1,"c":true},{"a":9935,"n":"pic1_page","k":"routine","len":2,"c":true},{"a":9937,"n":"out1_lo","k":"routine","len":3,"c":true},{"a":9940,"n":"bg2_lo","k":"routine","len":1,"c":true},{"a":9941,"n":"bg2_hi","k":"routine","len":2,"c":true},{"a":9943,"n":"mask2_lo","k":"routine","len":1,"c":true},{"a":9944,"n":"mask2_page","k":"routine","len":2,"c":true},{"a":9946,"n":"pic2_lo","k":"routine","len":1,"c":true},{"a":9947,"n":"pic2_page","k":"routine","len":2,"c":true},{"a":9949,"n":"out2_lo","k":"routine","len":13,"c":true},{"a":9954,"n":"j_26E2","k":"branch","len":1,"c":false},{"a":9961,"n":"r_26E9","k":"branch","len":1,"c":false},{"a":9962,"n":"step_offsets","k":"table","len":4,"c":true},{"a":9966,"n":"draw_standing","k":"routine","len":13,"c":true},{"a":9978,"n":"b_26FA","k":"branch","len":1,"c":false},{"a":9979,"n":"stand_bg_lo","k":"routine","len":1,"c":true},{"a":9980,"n":"stand_bg_hi","k":"routine","len":14,"c":true},{"a":9994,"n":"stamp_figures","k":"routine","len":66,"c":true},{"a":9998,"n":"b_270E","k":"branch","len":1,"c":false},{"a":10038,"n":"b_2736","k":"branch","len":1,"c":false},{"a":10055,"n":"b_2747","k":"branch","len":1,"c":false},{"a":10060,"n":"unstamp_figures","k":"routine","len":44,"c":true},{"a":10064,"n":"b_2750","k":"branch","len":1,"c":false},{"a":10095,"n":"b_276F","k":"branch","len":1,"c":false},{"a":10104,"n":"move_creatures","k":"routine","len":60,"c":true},{"a":10112,"n":"j_2780","k":"branch","len":1,"c":false},{"a":10118,"n":"b_2786","k":"branch","len":1,"c":false},{"a":10121,"n":"b_2789","k":"branch","len":1,"c":false},{"a":10141,"n":"b_279D","k":"branch","len":1,"c":false},{"a":10164,"n":"a_27B4","k":"routine","len":139,"c":true},{"a":10180,"n":"b_27C4","k":"branch","len":1,"c":false},{"a":10201,"n":"b_27D9","k":"branch","len":1,"c":false},{"a":10203,"n":"b_27DB","k":"branch","len":1,"c":false},{"a":10247,"n":"b_2807","k":"branch","len":1,"c":false},{"a":10257,"n":"b_2811","k":"branch","len":1,"c":false},{"a":10270,"n":"b_281E","k":"branch","len":1,"c":false},{"a":10277,"n":"b_2825","k":"branch","len":1,"c":false},{"a":10281,"n":"b_2829","k":"branch","len":1,"c":false},{"a":10292,"n":"b_2834","k":"branch","len":1,"c":false},{"a":10295,"n":"j_2837","k":"branch","len":1,"c":false},{"a":10302,"n":"r_283E","k":"branch","len":1,"c":false},{"a":10303,"n":"move_creature","k":"routine","len":65,"c":true},{"a":10338,"n":"b_2862","k":"branch","len":1,"c":false},{"a":10342,"n":"b_2866","k":"branch","len":1,"c":false},{"a":10348,"n":"b_286C","k":"branch","len":1,"c":false},{"a":10350,"n":"b_286E","k":"branch","len":1,"c":false},{"a":10368,"n":"chase_across","k":"routine","len":25,"c":true},{"a":10375,"n":"b_2887","k":"branch","len":1,"c":false},{"a":10386,"n":"b_2892","k":"branch","len":1,"c":false},{"a":10391,"n":"b_2897","k":"branch","len":1,"c":false},{"a":10393,"n":"chase_updown","k":"routine","len":19,"c":true},{"a":10400,"n":"b_28A0","k":"branch","len":1,"c":false},{"a":10412,"n":"f_28AC","k":"routine","len":1,"c":true},{"a":10413,"n":"creature_ways","k":"table","len":4,"c":true},{"a":10417,"n":"reverse_way","k":"table","len":4,"c":true},{"a":10421,"n":"creature_blast","k":"routine","len":36,"c":true},{"a":10441,"n":"b_28C9","k":"branch","len":1,"c":false},{"a":10448,"n":"b_28D0","k":"branch","len":1,"c":false},{"a":10457,"n":"count_goodie","k":"routine","len":21,"c":true},{"a":10465,"n":"b_28E1","k":"branch","len":1,"c":false},{"a":10477,"n":"r_28ED","k":"branch","len":1,"c":false},{"a":10478,"n":"clear_goodie","k":"routine","len":129,"c":true},{"a":10497,"n":"b_2901","k":"branch","len":1,"c":false},{"a":10502,"n":"b_2906","k":"branch","len":1,"c":false},{"a":10507,"n":"b_290B","k":"branch","len":1,"c":false},{"a":10512,"n":"b_2910","k":"branch","len":1,"c":false},{"a":10528,"n":"b_2920","k":"branch","len":1,"c":false},{"a":10538,"n":"b_292A","k":"branch","len":1,"c":false},{"a":10544,"n":"b_2930","k":"branch","len":1,"c":false},{"a":10571,"n":"r_294B","k":"branch","len":1,"c":false},{"a":10572,"n":"b_294C","k":"branch","len":1,"c":false},{"a":10586,"n":"b_295A","k":"branch","len":1,"c":false},{"a":10607,"n":"earth_beside_base","k":"routine","len":1,"c":true},{"a":10611,"n":"earth_diagonal_base","k":"table","len":4,"c":true},{"a":10615,"n":"earth_below_base","k":"table","len":5,"c":true},{"a":10620,"n":"earth_beside_of","k":"routine","len":5,"c":true},{"a":10625,"n":"earth_diagonal_of","k":"routine","len":5,"c":true},{"a":10630,"n":"goodie_left","k":"routine","len":25,"c":true},{"a":10652,"n":"b_299C","k":"branch","len":1,"c":false},{"a":10655,"n":"goodie_up","k":"routine","len":26,"c":true},{"a":10664,"n":"b_29A8","k":"branch","len":1,"c":false},{"a":10678,"n":"b_29B6","k":"branch","len":1,"c":false},{"a":10681,"n":"goodie_up_square","k":"routine","len":12,"c":true},{"a":10693,"n":"earth_at","k":"routine","len":21,"c":true},{"a":10703,"n":"b_29CF","k":"branch","len":1,"c":false},{"a":10713,"n":"r_29D9","k":"branch","len":1,"c":false},{"a":10714,"n":"check_death","k":"routine","len":62,"c":true},{"a":10720,"n":"b_29E0","k":"branch","len":1,"c":false},{"a":10734,"n":"b_29EE","k":"branch","len":1,"c":false},{"a":10740,"n":"b_29F4","k":"branch","len":1,"c":false},{"a":10776,"n":"die_where_he_was","k":"routine","len":8,"c":true},{"a":10784,"n":"death","k":"routine","len":90,"c":true},{"a":10819,"n":"b_2A43","k":"branch","len":1,"c":false},{"a":10824,"n":"b_2A48","k":"branch","len":1,"c":false},{"a":10840,"n":"b_2A58","k":"branch","len":1,"c":false},{"a":10864,"n":"b_2A70","k":"branch","len":1,"c":false},{"a":10869,"n":"b_2A75","k":"branch","len":1,"c":false},{"a":10874,"n":"creature_touch","k":"routine","len":189,"c":true},{"a":10904,"n":"j_2A98","k":"branch","len":1,"c":false},{"a":10913,"n":"b_2AA1","k":"branch","len":1,"c":false},{"a":10969,"n":"b_2AD9","k":"branch","len":1,"c":false},{"a":10990,"n":"b_2AEE","k":"branch","len":1,"c":false},{"a":11028,"n":"b_2B14","k":"branch","len":1,"c":false},{"a":11038,"n":"b_2B1E","k":"branch","len":1,"c":false},{"a":11052,"n":"b_2B2C","k":"branch","len":1,"c":false},{"a":11054,"n":"j_2B2E","k":"branch","len":1,"c":false},{"a":11061,"n":"b_2B35","k":"branch","len":1,"c":false},{"a":11063,"n":"to_quarters","k":"routine","len":92,"c":true},{"a":11082,"n":"b_2B4A","k":"branch","len":1,"c":false},{"a":11095,"n":"b_2B57","k":"branch","len":1,"c":false},{"a":11103,"n":"b_2B5F","k":"branch","len":1,"c":false},{"a":11120,"n":"b_2B70","k":"branch","len":1,"c":false},{"a":11129,"n":"b_2B79","k":"branch","len":1,"c":false},{"a":11141,"n":"b_2B85","k":"branch","len":1,"c":false},{"a":11155,"n":"dynamite","k":"routine","len":181,"c":true},{"a":11161,"n":"b_2B99","k":"branch","len":1,"c":false},{"a":11191,"n":"b_2BB7","k":"branch","len":1,"c":false},{"a":11205,"n":"b_2BC5","k":"branch","len":1,"c":false},{"a":11207,"n":"b_2BC7","k":"branch","len":1,"c":false},{"a":11231,"n":"b_2BDF","k":"branch","len":1,"c":false},{"a":11263,"n":"b_2BFF","k":"branch","len":1,"c":false},{"a":11335,"n":"r_2C47","k":"branch","len":1,"c":false},{"a":11336,"n":"place_goodies","k":"routine","len":131,"c":true},{"a":11357,"n":"b_2C5D","k":"branch","len":1,"c":false},{"a":11395,"n":"b_2C83","k":"branch","len":1,"c":false},{"a":11418,"n":"b_2C9A","k":"branch","len":1,"c":false},{"a":11423,"n":"b_2C9F","k":"branch","len":1,"c":false},{"a":11467,"n":"put_square","k":"routine","len":22,"c":true},{"a":11489,"n":"put_wide","k":"routine","len":11,"c":true},{"a":11500,"n":"put_tall","k":"routine","len":12,"c":true},{"a":11512,"n":"row_address_lo","k":"variable","len":1,"c":true},{"a":11513,"n":"row_address_hi","k":"table","len":35,"c":true},{"a":11548,"n":"random_below","k":"routine","len":35,"c":true},{"a":11573,"n":"j_2D35","k":"branch","len":1,"c":false},{"a":11578,"n":"b_2D3A","k":"branch","len":1,"c":false},{"a":11583,"n":"find_space","k":"routine","len":129,"c":true},{"a":11585,"n":"b_2D41","k":"branch","len":1,"c":false},{"a":11613,"n":"b_2D5D","k":"branch","len":1,"c":false},{"a":11625,"n":"b_2D69","k":"branch","len":1,"c":false},{"a":11637,"n":"b_2D75","k":"branch","len":1,"c":false},{"a":11654,"n":"b_2D86","k":"branch","len":1,"c":false},{"a":11685,"n":"b_2DA5","k":"branch","len":1,"c":false},{"a":11687,"n":"b_2DA7","k":"branch","len":1,"c":false},{"a":11712,"n":"release_creature","k":"routine","len":56,"c":true},{"a":11716,"n":"b_2DC4","k":"branch","len":1,"c":false},{"a":11763,"n":"b_2DF3","k":"branch","len":1,"c":false},{"a":11768,"n":"pete_touches","k":"routine","len":67,"c":true},{"a":11786,"n":"b_2E0A","k":"branch","len":1,"c":false},{"a":11813,"n":"b_2E25","k":"branch","len":1,"c":false},{"a":11832,"n":"b_2E38","k":"branch","len":1,"c":false},{"a":11835,"n":"score_item","k":"routine","len":79,"c":true},{"a":11853,"n":"b_2E4D","k":"branch","len":1,"c":false},{"a":11858,"n":"b_2E52","k":"branch","len":1,"c":false},{"a":11865,"n":"b_2E59","k":"branch","len":1,"c":false},{"a":11872,"n":"b_2E60","k":"branch","len":1,"c":false},{"a":11883,"n":"b_2E6B","k":"branch","len":1,"c":false},{"a":11899,"n":"b_2E7B","k":"branch","len":1,"c":false},{"a":11911,"n":"b_2E87","k":"branch","len":1,"c":false},{"a":11914,"n":"points_lo","k":"variable","len":1,"c":true},{"a":11915,"n":"points_hi","k":"table","len":37,"c":true},{"a":11952,"n":"add_score","k":"routine","len":61,"c":true},{"a":11970,"n":"b_2EC2","k":"branch","len":1,"c":false},{"a":12009,"n":"b_2EE9","k":"branch","len":1,"c":false},{"a":12013,"n":"kill_bonus","k":"routine","len":19,"c":true},{"a":12018,"n":"b_2EF2","k":"branch","len":1,"c":false},{"a":12032,"n":"title","k":"routine","len":384,"c":true},{"a":12083,"n":"b_2F33","k":"branch","len":1,"c":false},{"a":12116,"n":"b_2F54","k":"branch","len":1,"c":false},{"a":12139,"n":"b_2F6B","k":"branch","len":1,"c":false},{"a":12233,"n":"b_2FC9","k":"branch","len":1,"c":false},{"a":12244,"n":"b_2FD4","k":"branch","len":1,"c":false},{"a":12266,"n":"b_2FEA","k":"branch","len":1,"c":false},{"a":12278,"n":"b_2FF6","k":"branch","len":1,"c":false},{"a":12319,"n":"b_301F","k":"branch","len":1,"c":false},{"a":12331,"n":"b_302B","k":"branch","len":1,"c":false},{"a":12341,"n":"b_3035","k":"branch","len":1,"c":false},{"a":12351,"n":"b_303F","k":"branch","len":1,"c":false},{"a":12355,"n":"b_3043","k":"branch","len":1,"c":false},{"a":12382,"n":"j_305E","k":"branch","len":1,"c":false},{"a":12384,"n":"b_3060","k":"branch","len":1,"c":false},{"a":12407,"n":"b_3077","k":"branch","len":1,"c":false},{"a":12416,"n":"irq_title","k":"routine","len":181,"c":true},{"a":12431,"n":"b_308F","k":"branch","len":1,"c":false},{"a":12436,"n":"b_3094","k":"branch","len":1,"c":false},{"a":12450,"n":"b_30A2","k":"branch","len":1,"c":false},{"a":12516,"n":"b_30E4","k":"branch","len":1,"c":false},{"a":12534,"n":"b_30F6","k":"branch","len":1,"c":false},{"a":12554,"n":"b_310A","k":"branch","len":1,"c":false},{"a":12562,"n":"b_3112","k":"branch","len":1,"c":false},{"a":12566,"n":"b_3116","k":"branch","len":1,"c":false},{"a":12577,"n":"j_3121","k":"branch","len":1,"c":false},{"a":12597,"n":"draw_box","k":"routine","len":108,"c":true},{"a":12607,"n":"b_313F","k":"branch","len":1,"c":false},{"a":12619,"n":"b_314B","k":"branch","len":1,"c":false},{"a":12621,"n":"b_314D","k":"branch","len":1,"c":false},{"a":12648,"n":"b_3168","k":"branch","len":1,"c":false},{"a":12671,"n":"b_317F","k":"branch","len":1,"c":false},{"a":12691,"n":"b_3193","k":"branch","len":1,"c":false},{"a":12705,"n":"print_script","k":"routine","len":97,"c":true},{"a":12709,"n":"b_31A5","k":"branch","len":1,"c":false},{"a":12722,"n":"b_31B2","k":"branch","len":1,"c":false},{"a":12738,"n":"b_31C2","k":"branch","len":1,"c":false},{"a":12746,"n":"b_31CA","k":"branch","len":1,"c":false},{"a":12782,"n":"b_31EE","k":"branch","len":1,"c":false},{"a":12802,"n":"title_script","k":"table","len":100,"c":true},{"a":12902,"n":"control_names","k":"table","len":16,"c":true},{"a":12918,"n":"scroller_text","k":"table","len":541,"c":true},{"a":13459,"n":"hiscore_names","k":"variable","len":1,"c":true},{"a":13460,"n":"hiscore_compare_mid","k":"variable","len":1,"c":true},{"a":13461,"n":"hiscore_compare_lo","k":"table","len":7,"c":true},{"a":13468,"n":"hiscore_2nd","k":"table","len":9,"c":true},{"a":13477,"n":"hiscore_3rd","k":"table","len":9,"c":true},{"a":13486,"n":"hiscore_4th","k":"table","len":9,"c":true},{"a":13495,"n":"hiscore_5th","k":"table","len":18,"c":true},{"a":13513,"n":"high_scores","k":"routine","len":198,"c":true},{"a":13519,"n":"b_34CF","k":"branch","len":1,"c":false},{"a":13544,"n":"b_34E8","k":"branch","len":1,"c":false},{"a":13563,"n":"b_34FB","k":"branch","len":1,"c":false},{"a":13571,"n":"b_3503","k":"branch","len":1,"c":false},{"a":13589,"n":"b_3515","k":"branch","len":1,"c":false},{"a":13620,"n":"b_3534","k":"branch","len":1,"c":false},{"a":13633,"n":"b_3541","k":"branch","len":1,"c":false},{"a":13635,"n":"b_3543","k":"branch","len":1,"c":false},{"a":13647,"n":"b_354F","k":"branch","len":1,"c":false},{"a":13668,"n":"b_3564","k":"branch","len":1,"c":false},{"a":13675,"n":"b_356B","k":"branch","len":1,"c":false},{"a":13684,"n":"b_3574","k":"branch","len":1,"c":false},{"a":13691,"n":"b_357B","k":"branch","len":1,"c":false},{"a":13711,"n":"draw_hiscores","k":"routine","len":110,"c":true},{"a":13715,"n":"b_3593","k":"branch","len":1,"c":false},{"a":13735,"n":"b_35A7","k":"branch","len":1,"c":false},{"a":13788,"n":"b_35DC","k":"branch","len":1,"c":false},{"a":13821,"n":"print_hiscore","k":"routine","len":46,"c":true},{"a":13827,"n":"b_3603","k":"branch","len":1,"c":false},{"a":13867,"n":"show_controls","k":"routine","len":21,"c":true},{"a":13877,"n":"b_3635","k":"branch","len":1,"c":false},{"a":13888,"n":"toggle_controls","k":"routine","len":22,"c":true},{"a":13909,"n":"r_3655","k":"branch","len":1,"c":false},{"a":13910,"n":"change_level","k":"routine","len":31,"c":true},{"a":13918,"n":"b_365E","k":"branch","len":1,"c":false},{"a":13926,"n":"b_3666","k":"branch","len":1,"c":false},{"a":13928,"n":"b_3668","k":"branch","len":1,"c":false},{"a":13941,"n":"next_direction","k":"routine","len":20,"c":true},{"a":13945,"n":"b_3679","k":"branch","len":1,"c":false},{"a":13950,"n":"b_367E","k":"branch","len":1,"c":false},{"a":13961,"n":"sound","k":"routine","len":351,"c":true},{"a":13976,"n":"b_3698","k":"branch","len":1,"c":false},{"a":13983,"n":"b_369F","k":"branch","len":1,"c":false},{"a":13990,"n":"r_36A6","k":"branch","len":1,"c":false},{"a":13991,"n":"b_36A7","k":"branch","len":1,"c":false},{"a":14022,"n":"b_36C6","k":"branch","len":1,"c":false},{"a":14055,"n":"b_36E7","k":"branch","len":1,"c":false},{"a":14063,"n":"b_36EF","k":"branch","len":1,"c":false},{"a":14084,"n":"b_3704","k":"branch","len":1,"c":false},{"a":14087,"n":"r_3707","k":"branch","len":1,"c":false},{"a":14088,"n":"b_3708","k":"branch","len":1,"c":false},{"a":14137,"n":"b_3739","k":"branch","len":1,"c":false},{"a":14158,"n":"r_374E","k":"branch","len":1,"c":false},{"a":14159,"n":"b_374F","k":"branch","len":1,"c":false},{"a":14203,"n":"b_377B","k":"branch","len":1,"c":false},{"a":14224,"n":"b_3790","k":"branch","len":1,"c":false},{"a":14234,"n":"b_379A","k":"branch","len":1,"c":false},{"a":14263,"n":"b_37B7","k":"branch","len":1,"c":false},{"a":14296,"n":"j_37D8","k":"branch","len":1,"c":false},{"a":14314,"n":"map_surface","k":"table","len":90,"c":true},{"a":14404,"n":"map_surface_row1","k":"table","len":90,"c":true},{"a":14494,"n":"map_surface_row2","k":"table","len":90,"c":true}],"records":[{"a":0,"t":"gap","n":4096,"x":[11063,11069,11073,11130,11132,11141,11146]},{"a":2,"t":"note","l":"view_right","c":"The map column at the right edge of the view, 38 to 89 (scroll_view, draw_view).","note":"outside the tracked image","x":[6159,6974,6980,7003,7009,7015,7032,7054,7097,7171,7274]},{"a":3,"t":"note","l":"scroll_ff07","c":"The value for TED's $FF07 in the play area: multicolour, 38 columns, the fine scroll in bits 0-2 (scroll_view).","note":"outside the tracked image","x":[6556,6963,6971,6984,6994,7000,7013,7038,7060,7270]},{"a":4,"t":"note","l":"irq_state","c":"Which of irq_play's four raster interrupts comes next, 0 to 3.","note":"outside the tracked image","x":[6552,6602,6725,6741,6904,7298]},{"a":6,"t":"note","l":"pete_col","c":"Pete's column in the map, 1 to 88.","note":"outside the tracked image","x":[6298,7026,7441,8185,8200,8228,8243,10141,10486,10882]},{"a":7,"t":"note","l":"pete_row","c":"Pete's row in the map, 4 to 21.","note":"outside the tracked image","x":[6304,7437,8275,8291,8317,8333,8658,10147,10488,10895]},{"a":8,"t":"note","l":"scroll_dir","c":"Which way the view is scrolling: $FF left, 1 right, 0 still.","note":"outside the tracked image","x":[6957,6990,7046,7070,7078,7094,7278]},{"a":9,"t":"note","l":"joy_x","c":"Left ($FF) or right (1) from the controls, 0 for neither (read_controls).","note":"outside the tracked image","x":[8172,8179,8359,8365,8402,8407,8445,8452,13941]},{"a":10,"t":"note","l":"joy_y","c":"Up ($FF) or down (1) from the controls, 0 for neither (read_controls).","note":"outside the tracked image","x":[6294,8174,8268,8367,8392,8397,8426,8433]},{"a":11,"t":"note","l":"fire","c":"Fire this frame, 8 when held (read_controls).","note":"outside the tracked image","x":[8369,8413,8466,8471,11278,12364,12388,13639]},{"a":12,"t":"note","l":"fire_last","c":"Fire the frame before, so that only a new press counts.","note":"outside the tracked image","x":[8371,11282,11288,12366,12392,13643]},{"a":34,"t":"note","l":"figure_on","c":"Whether each figure is in play, five bytes: Pete, then creatures 1 to 4.","note":"outside the tracked image","x":[7331,7457,9778,10000,10066]},{"a":39,"t":"note","l":"figure_step","c":"Each figure's step through a move, 0 to 3, five bytes.","note":"outside the tracked image","x":[7333,8079,8085,8225,9828,10740,10790,10828,10836,11002,11038,11091]},{"a":44,"t":"note","l":"pete_cell","c":"Pete's cell, the one he is moving into (two bytes), then the cell he is leaving at $2E; each creature's pair follows four bytes on.","note":"outside the tracked image","x":[7447,8087,8109,8143,8151,8160,8210,8216,8253,8259,8301,8307,8343,8349,8490,8645,10015,10040,10084,10720,10758,10774,10778,11008,11024,11028,11036,11046]},{"a":46,"t":"note","l":"pete_from","c":"The cell Pete is leaving, or his cell when he stands still.","note":"outside the tracked image","x":[7449,8162,8212,8255,8303,8345,10020,10053,10093,10746,10776,11044,11290,11306,11313]},{"a":64,"t":"note","l":"under_figures","c":"The map characters stamp_figures saves from under each figure, two for each.","note":"outside the tracked image","x":[9873,10017,10081]},{"a":74,"t":"note","l":"figure_dir","c":"Each figure's direction, five bytes: 0 standing, 1 up, 2 down, 3 left, 4 right.","note":"outside the tracked image","x":[6310,7335,8073,8095,8124,8158,8204,8247,8295,8337,9800,9885,9923,10027,10046,10071,10716,10788,10880,10893,10998,14263]},{"a":87,"t":"note","l":"water_top","c":"The highest row the water has reached (flow_up).","note":"outside the tracked image","x":[7507,9599,9630,9634]},{"a":88,"t":"note","l":"water_filling","c":"The deepest row still filling, 0 when none is (water_fill).","note":"outside the tracked image","x":[9210,9231,9246,9282,9560,9564,9603]},{"a":91,"t":"note","l":"water_last","c":"The index of the last cell on the water list, three bytes a cell.","note":"outside the tracked image","x":[7280,9240,9479,9664,9670,9676,9697,9746,9751]},{"a":100,"t":"note","l":"frame_count","c":"Counted up once a frame by the interrupt; the game's loops wait on it.","note":"outside the tracked image","x":[6226,6228,6345,6349,6405,6410,6426,6430,6561,6637,7282,10819,10824,10864,10869,12382,12384,12421,12423,13633,13635,13995]},{"a":101,"t":"note","l":"pete_bumped","c":"The character Pete bumped into (can_enter), for pete_touches.","note":"outside the tracked image","x":[7284,8170,8628,10512,10553,11771,11800]},{"a":106,"t":"note","l":"flood_on","c":"Set when the big charge has burst the floor and the water flows (check_big_charge).","note":"outside the tracked image","x":[6248,6542,6827,7286]},{"a":122,"t":"note","l":"random_seed","c":"The running random byte (random_below), seeded at start.","note":"outside the tracked image","x":[6215,6629,11561,11563]},{"a":123,"t":"note","l":"release_count","c":"Seconds until main_loop sets it again from $7C and, once the flood has begun, lets a creature out (release_creature). irq_play counts it down once every 50 frames ($7E, set again from $7D), from the start of the level.","note":"outside the tracked image","x":[6236,6242,6656,6668,7721,7727,7733]},{"a":131,"t":"note","l":"pete_dead","c":"Set when Pete dies (death); main_loop then takes a man.","note":"outside the tracked image","x":[6271,6767,7294,10756,10784,10994,11806,11869]},{"a":138,"t":"note","l":"creature_col","c":"The creatures' columns, four bytes.","note":"outside the tracked image","x":[10143,10150,10344,10348,10917,11750]},{"a":142,"t":"note","l":"creature_row","c":"The creatures' rows, four bytes.","note":"outside the tracked image","x":[10334,10338,10932,11746]},{"a":157,"t":"note","l":"creature_max","c":"The highest creature number the level lets out (level_creatures).","note":"outside the tracked image","x":[7386,11712]},{"a":158,"t":"note","l":"dynamite_end","c":"The length of the dynamite list at $0700, three bytes a stick.","note":"outside the tracked image","x":[7328,11214,11222,11227,11266,11294,11321]},{"a":159,"t":"note","l":"sticks","c":"Sticks of dynamite left, binary-coded decimal.","note":"outside the tracked image","x":[6353,6370,6376,6414,7349,7847,11274,11323,11329]},{"a":160,"t":"note","l":"day_step","c":"The step of the day, 0 to 15 (irq_play).","note":"outside the tracked image","x":[6569,6571,6575,6577,6808,7296]},{"a":163,"t":"note","l":"controls","c":"Bit 7 set for the keyboard, clear for the joystick.","note":"outside the tracked image","x":[6183,8373,13871,13900,13904]},{"a":167,"t":"note","l":"level","c":"The level, 0 to 15 (LEVEL 01 to 16).","note":"outside the tracked image","x":[6181,6418,6424,6437,6703,6778,7344,7509,7789,11377,13922,13926,13928,13932]},{"a":168,"t":"note","l":"level_on","c":"Set while a level is being played.","note":"outside the tracked image","x":[6316,6565,6755,7300,7735]},{"a":169,"t":"note","l":"men","c":"Men left, binary-coded decimal.","note":"outside the tracked image","x":[6275,6281,7820,11998,12003,12404]},{"a":170,"t":"note","l":"score","c":"The score, three bytes of binary-coded decimal, low first.","note":"outside the tracked image","x":[6185,7873,11977,11979,12301,12396,13537,13606]},{"a":173,"t":"note","l":"points","c":"Points to add, two bytes of binary-coded decimal (add_score).","note":"outside the tracked image","x":[6365,11895,11904,11958,11960,11962,11975,12028]},{"a":175,"t":"note","l":"double_points","c":"Set by the x2 goodie: points are doubled for the rest of the level.","note":"outside the tracked image","x":[6359,7302,11862,11952]},{"a":181,"t":"note","l":"goodies_left","c":"Goodies still to collect on this level.","note":"outside the tracked image","x":[6290,7415,10468,11393]},{"a":186,"t":"note","l":"esc_up","c":"The ESC key's row bit, 0 while ESC is held (irq_play): main_loop then returns to the title.","note":"outside the tracked image","x":[6232,6723]},{"a":188,"t":"note","l":"fuse","c":"Frames a stick burns (level_fuse).","note":"outside the tracked image","x":[7420,11296]},{"a":4096,"l":"chr_earth","c":"The character set, 256 multicolour characters at $1000-$17FF (TED reads them from $1000, $FF13 = $11, 256 at once by bit 7 of $FF07). Characters $00-$04: the tunnel (blank) and the four characters of earth, tiled two by two over the mine (start_level, earth_at).","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":4104,"t":"byte","b":[42,166,170,105,170,152,170,102]},{"a":4112,"t":"byte","b":[170,106,152,170,153,170,102,170]},{"a":4120,"t":"byte","b":[106,162,170,166,138,170,105,170]},{"a":4128,"t":"byte","b":[154,170,98,170,166,106,170,166]},{"a":4136,"l":"chr_digging","c":"Characters $05-$34: earth being dug, three stages for each way Pete moves (up $05-$10, down $11-$1C, left $1D-$28, right $29-$34), each stage in the four forms of the earth's tiling (move_pete).","t":"byte","b":[42,166,170,105,170,152,0,0]},{"a":4144,"t":"byte","b":[170,106,152,170,153,170,0,0]},{"a":4152,"t":"byte","b":[106,162,170,166,138,170,0,0]},{"a":4160,"t":"byte","b":[154,170,98,170,166,106,0,0]},{"a":4168,"t":"byte","b":[42,166,170,105,0,0,0,0]},{"a":4176,"t":"byte","b":[170,106,152,170,0,0,0,0]},{"a":4184,"t":"byte","b":[106,162,170,166,0,0,0,0]},{"a":4192,"t":"byte","b":[154,170,98,170,0,0,0,0]},{"a":4200,"t":"byte","b":[42,166,0,0,0,0,0,0]},{"a":4208,"t":"byte","b":[170,106,0,0,0,0,0,0]},{"a":4216,"t":"byte","b":[106,162,0,0,0,0,0,0]},{"a":4224,"t":"byte","b":[154,170,0,0,0,0,0,0]},{"a":4232,"t":"byte","b":[0,0,170,105,170,152,170,102]},{"a":4240,"t":"byte","b":[0,0,152,170,153,170,102,170]},{"a":4248,"t":"byte","b":[0,0,170,166,138,170,105,170]},{"a":4256,"t":"byte","b":[0,0,98,170,166,106,170,166]},{"a":4264,"t":"byte","b":[0,0,0,0,170,152,170,102]},{"a":4272,"t":"byte","b":[0,0,0,0,153,170,102,170]},{"a":4280,"t":"byte","b":[0,0,0,0,138,170,105,170]},{"a":4288,"t":"byte","b":[0,0,0,0,166,106,170,166]},{"a":4296,"t":"byte","b":[0,0,0,0,0,0,170,102]},{"a":4304,"t":"byte","b":[0,0,0,0,0,0,102,170]},{"a":4312,"t":"byte","b":[0,0,0,0,0,0,105,170]},{"a":4320,"t":"byte","b":[0,0,0,0,0,0,170,166]},{"a":4328,"t":"byte","b":[40,164,168,104,168,152,168,100]},{"a":4336,"t":"byte","b":[168,104,152,168,152,168,100,168]},{"a":4344,"t":"byte","b":[104,160,168,164,136,168,104,168]},{"a":4352,"t":"byte","b":[152,168,96,168,164,104,168,164]},{"a":4360,"t":"byte","b":[32,160,160,96,160,144,160,96]},{"a":4368,"t":"byte","b":[160,96,144,160,144,160,96,160]},{"a":4376,"t":"byte","b":[96,160,160,160,128,160,96,160]},{"a":4384,"t":"byte","b":[144,160,96,160,160,96,160,160]},{"a":4392,"t":"byte","b":[0,128,128,64,128,128,128,64]},{"a":4400,"t":"byte","b":[128,64,128,128,128,128,64,128]},{"a":4408,"t":"byte","b":[64,128,128,128,128,128,64,128]},{"a":4416,"t":"byte","b":[128,128,64,128,128,64,128,128]},{"a":4424,"t":"byte","b":[42,38,42,41,42,24,42,38]},{"a":4432,"t":"byte","b":[42,42,24,42,25,42,38,42]},{"a":4440,"t":"byte","b":[42,34,42,38,10,42,41,42]},{"a":4448,"t":"byte","b":[26,42,34,42,38,42,42,38]},{"a":4456,"t":"byte","b":[10,6,10,9,10,8,10,6]},{"a":4464,"t":"byte","b":[10,10,8,10,9,10,6,10]},{"a":4472,"t":"byte","b":[10,2,10,6,10,10,9,10]},{"a":4480,"t":"byte","b":[10,10,2,10,6,10,10,6]},{"a":4488,"t":"byte","b":[2,2,2,1,2,0,2,2]},{"a":4496,"t":"byte","b":[2,2,0,2,1,2,2,2]},{"a":4504,"t":"byte","b":[2,2,2,2,2,2,1,2]},{"a":4512,"t":"byte","b":[2,2,2,2,2,2,2,2]},{"a":4520,"l":"chr_walls","c":"Characters $35-$39: the mine's rock walls and floor, $35-$38 in turn by row or column (start_level), and $39, the floor under the shaft as the water breaks in (check_big_charge).","t":"byte","b":[21,68,85,69,81,21,81,69]},{"a":4528,"t":"byte","b":[85,81,69,5,84,21,85,68]},{"a":4536,"t":"byte","b":[85,84,69,21,81,85,4,69]},{"a":4544,"t":"byte","b":[21,81,84,21,69,84,21,81]},{"a":4552,"t":"byte","b":[93,93,93,116,93,23,93,125]},{"a":4560,"l":"chr_surface","c":"Characters $3A-$4F: the surface above the mine, drawn by the map's first three rows ($37EA): the brown mountains with snow on their peaks, the hut ($4E, $4F) and the pithead over the shaft ($3A-$3D with $5A and $5B, round column 44). The sky is the blank character $00; the clouds are $51-$56, $58 and $59 (chr_ladder).","t":"byte","b":[15,12,12,12,15,60,51,48]},{"a":4568,"t":"byte","b":[240,48,48,48,240,60,204,12]},{"a":4576,"t":"byte","b":[48,63,60,63,228,198,239,249]},{"a":4584,"t":"byte","b":[12,252,60,252,171,91,247,159]},{"a":4592,"t":"byte","b":[1,1,5,214,246,157,101,85]},{"a":4600,"t":"byte","b":[16,16,52,40,105,117,109,167]},{"a":4608,"t":"byte","b":[213,87,86,89,89,103,157,85]},{"a":4616,"t":"byte","b":[128,128,80,84,106,219,125,167]},{"a":4624,"t":"byte","b":[8,20,24,36,90,171,117,90]},{"a":4632,"t":"byte","b":[0,0,4,5,7,133,154,117]},{"a":4640,"t":"byte","b":[6,38,53,169,102,106,85,149]},{"a":4648,"t":"byte","b":[0,96,84,212,122,85,229,85]},{"a":4656,"t":"byte","b":[0,0,0,0,0,64,148,186]},{"a":4664,"t":"byte","b":[0,0,0,0,0,9,36,166]},{"a":4672,"t":"byte","b":[0,2,6,10,25,102,171,110]},{"a":4680,"t":"byte","b":[48,172,90,153,121,106,218,122]},{"a":4688,"t":"byte","b":[5,21,155,165,85,182,186,219]},{"a":4696,"t":"byte","b":[109,110,171,107,214,90,173,175]},{"a":4704,"t":"byte","b":[0,0,8,8,4,12,34,17]},{"a":4712,"t":"byte","b":[96,100,170,170,230,235,187,165]},{"a":4720,"t":"byte","b":[5,21,85,255,235,235,254,254]},{"a":4728,"t":"byte","b":[80,84,85,255,235,235,191,191]},{"a":4736,"l":"chr_ladder","c":"Character $50: the ladder count_goodie puts at the top of the shaft when the last goodie is collected. Then $51-$5B, more of the surface: the white clouds ($51-$56, $58, $59), a piece of mountain ($57) and two pieces of the pithead ($5A, $5B).","t":"byte","b":[85,65,85,65,85,65,85,65]},{"a":4744,"t":"byte","b":[0,15,255,63,3,0,0,0]},{"a":4752,"t":"byte","b":[0,252,255,243,63,0,0,0]},{"a":4760,"t":"byte","b":[0,0,240,255,192,0,0,0]},{"a":4768,"t":"byte","b":[0,0,51,15,3,3,15,0]},{"a":4776,"t":"byte","b":[0,192,243,252,255,207,63,195]},{"a":4784,"t":"byte","b":[0,0,0,60,255,243,204,0]},{"a":4792,"t":"byte","b":[94,217,118,175,89,165,154,101]},{"a":4800,"t":"byte","b":[0,192,252,255,243,192,0,0]},{"a":4808,"t":"byte","b":[0,0,63,243,255,240,0,0]},{"a":4816,"t":"byte","b":[255,0,160,106,255,255,106,153]},{"a":4824,"t":"byte","b":[255,60,60,195,0,0,0,255]},{"a":4832,"l":"chr_water","c":"Characters $5C-$6C: the water, four stages each for rising from below ($5C-$5F), falling ($60-$63), flowing left ($64-$67) and flowing right ($68-$6B), and $6C full (water_fill, water_flow).","t":"byte","b":[0,0,0,0,3,192,60,207]},{"a":4840,"t":"byte","b":[0,12,0,195,60,207,252,255]},{"a":4848,"t":"byte","b":[204,51,255,207,255,255,255,255]},{"a":4856,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":4864,"t":"byte","b":[243,60,243,48,0,0,0,0]},{"a":4872,"t":"byte","b":[255,207,255,51,204,3,48,0]},{"a":4880,"t":"byte","b":[255,255,255,243,63,207,63,204]},{"a":4888,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":4896,"t":"byte","b":[0,3,3,51,15,12,207,15]},{"a":4904,"t":"byte","b":[3,3,15,207,15,60,63,51]},{"a":4912,"t":"byte","b":[207,63,51,63,255,252,255,207]},{"a":4920,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":4928,"t":"byte","b":[0,192,204,192,192,240,48,240]},{"a":4936,"t":"byte","b":[192,240,192,204,240,60,252,243]},{"a":4944,"t":"byte","b":[204,240,252,60,252,207,255,204]},{"a":4952,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":4960,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":4968,"t":"gap","n":16,"x":[7570,9984,10840,10859]},{"a":4984,"l":"chr_dynamite","c":"Character $6F: a stick of dynamite with its fuse. Every fourth frame irq_play copies the top row to the second and flips bits 2 to 5 of the top row ($3C), so the two rows trade places and the fuse flickers.","t":"byte","b":[48],"x":[6645,6653]},{"a":4985,"l":"chr_dynamite_row1","c":"The second row of the dynamite's character, which takes the top row's last value as the fuse flickers (irq_play).","t":"byte","b":[12,40,20,40,20,40,20],"x":[6648]},{"a":4992,"l":"chr_goodies","c":"Characters $70-$9F: the goodies (place_goodies). $70-$73: small lumps, one cell each. Two wide: OIL ($74-$75), a pale lump ($76-$77), a dark lump ($78-$79), x2 ($7A-$7B). Two tall: three seams ($7C-$81) and GAS ($82-$83).","t":"byte","b":[138,166,186,252,254,186,166,42]},{"a":5000,"t":"byte","b":[174,62,191,254,250,185,162,170]},{"a":5008,"t":"byte","b":[170,57,254,184,174,191,108,170]},{"a":5016,"t":"byte","b":[186,252,254,191,63,174,42,166]},{"a":5024,"t":"byte","b":[0,252,204,204,204,204,252,0]},{"a":5032,"t":"byte","b":[0,204,204,204,204,204,207,0]},{"a":5040,"t":"byte","b":[41,174,191,252,179,174,106,162]},{"a":5048,"t":"byte","b":[170,154,168,234,174,191,174,40]},{"a":5056,"t":"byte","b":[170,96,128,0,128,130,161,26]},{"a":5064,"t":"byte","b":[146,41,10,2,2,1,138,164]},{"a":5072,"t":"byte","b":[204,204,56,56,204,204,0,0]},{"a":5080,"t":"byte","b":[60,195,195,12,48,192,255,0]},{"a":5088,"t":"byte","b":[184,254,255,191,47,174,226,250]},{"a":5096,"t":"byte","b":[254,255,191,142,42,184,254,58]},{"a":5104,"t":"byte","b":[162,190,255,190,168,110,191,172]},{"a":5112,"t":"byte","b":[58,254,184,106,190,255,190,41]},{"a":5120,"t":"byte","b":[98,129,2,0,0,128,162,38]},{"a":5128,"t":"byte","b":[38,8,0,0,130,128,160,106]},{"a":5136,"t":"byte","b":[255,192,195,195,255,0,255,195]},{"a":5144,"t":"byte","b":[255,195,0,255,192,255,3,255]},{"a":5152,"l":"chr_goodies_square","c":"Characters $84-$9F, the two-by-two goodies, four characters each: a white vein ($84), white crystals ($88), dark lumps ($8C), a money bag ($90), the grinning face that kills ($94, swap_face), a question mark ($98) and pale crystals ($9C).","t":"byte","b":[171,47,191,255,191,172,139,186]},{"a":5160,"t":"byte","b":[170,233,250,206,56,234,174,191]},{"a":5168,"t":"byte","b":[254,186,171,143,191,175,107,162]},{"a":5176,"t":"byte","b":[174,234,248,254,243,206,56,234]},{"a":5184,"t":"byte","b":[174,191,255,191,46,168,186,254]},{"a":5192,"t":"byte","b":[170,162,234,174,191,174,104,170]},{"a":5200,"t":"byte","b":[186,171,47,171,186,254,186,106]},{"a":5208,"t":"byte","b":[232,250,254,250,232,174,191,46]},{"a":5216,"t":"byte","b":[73,2,2,9,170,98,130,1]},{"a":5224,"t":"byte","b":[162,130,2,137,162,130,128,161]},{"a":5232,"t":"byte","b":[138,104,168,138,1,0,130,154]},{"a":5240,"t":"byte","b":[42,9,10,42,96,130,130,169]},{"a":5248,"t":"byte","b":[170,150,165,165,185,239,165,148]},{"a":5256,"t":"byte","b":[170,106,86,90,111,250,90,86]},{"a":5264,"t":"byte","b":[80,68,80,84,64,84,149,165]},{"a":5272,"t":"byte","b":[6,86,21,69,21,85,86,90]},{"a":5280,"t":"byte","b":[101,149,85,65,65,85,148,101]},{"a":5288,"t":"byte","b":[89,86,85,65,65,85,22,90]},{"a":5296,"t":"byte","b":[21,144,144,148,165,169,162,106]},{"a":5304,"t":"byte","b":[84,6,6,22,90,106,162,106]},{"a":5312,"t":"byte","b":[165,159,127,125,118,154,169,167]},{"a":5320,"t":"byte","b":[90,246,253,253,125,125,246,218]},{"a":5328,"t":"byte","b":[103,135,167,105,170,105,167,169]},{"a":5336,"t":"byte","b":[98,106,105,170,162,106,217,106]},{"a":5344,"t":"byte","b":[43,186,254,186,171,239,171,186]},{"a":5352,"t":"byte","b":[171,170,174,191,174,234,174,170]},{"a":5360,"t":"byte","b":[171,186,254,186,171,238,191,174]},{"a":5368,"t":"byte","b":[186,254,186,170,174,191,174,170]},{"a":5376,"l":"chr_pete_stand","c":"Characters $A0 and $A1: Pete standing still, his picture and mask, which start_level copies to $6D and $6E ($1368) for draw_figures; death moves the copy down as he sinks.","t":"byte","b":[20,85,60,105,105,215,20,60],"x":[7567]},{"a":5384,"t":"byte","b":[195,0,195,0,0,0,195,195]},{"a":5392,"t":"gap","n":8,"x":[6615]},{"a":5400,"l":"chr_debris","c":"Character $A3: the debris an explosion leaves (dynamite), which water flows into and Pete clears by walking into.","t":"byte","b":[0,8,34,24,168,156,164,16]},{"a":5408,"l":"chr_pattern","c":"Character $A4, a diagonal pattern: the title's background and its frame's source. irq_title rolls its rows up by one every other frame; the frame characters $AE-$B5 ($1570-$15AF) are built from it there.","t":"byte","b":[89],"x":[12431,12439,12450]},{"a":5409,"l":"chr_pattern_rows","c":"Rows 1 to 7 of the patterned character $A4, which irq_title moves up a row each time (the top row going to the bottom, $1527).","t":"byte","b":[105,165,150,105,89,90],"x":[12436]},{"a":5415,"l":"chr_pattern_last","c":"The last row of the patterned character $A4, where irq_title puts the top row as it rolls them.","t":"byte","b":[90],"x":[12447]},{"a":5416,"l":"chr_box_lines","c":"Characters $A5-$AD: the title's box lines, corners and sides (draw_box), and $AD, the boxes' shadow, a solid band in multicolour (draw_box).","t":"byte","b":[255,192,192,192,192,192,192,192]},{"a":5424,"t":"byte","b":[255,0,0,0,0,0,0,0]},{"a":5432,"t":"byte","b":[255,3,3,3,3,3,3,3]},{"a":5440,"t":"byte","b":[192,192,192,192,192,192,192,192]},{"a":5448,"t":"byte","b":[192,192,192,192,192,192,192,255]},{"a":5456,"t":"byte","b":[0,0,0,0,0,0,0,255]},{"a":5464,"t":"byte","b":[3,3,3,3,3,3,3,255]},{"a":5472,"t":"byte","b":[3,3,3,3,3,3,3,3]},{"a":5480,"t":"byte","b":[170,170,170,170,170,170,170,170]},{"a":5488,"t":"gap","n":64,"x":[12462]},{"a":5552,"l":"chr_brackets","c":"Characters $B6-$BF: the bar ($B6) under the title, the brackets ( and ) of (C)1986 ($B7, $B8), and seven blank characters ($B9-$BF).","t":"byte","b":[0,255,255,0,0,0,0,0]},{"a":5560,"t":"byte","b":[14,28,56,56,56,28,14,0]},{"a":5568,"t":"byte","b":[224,112,56,56,56,112,224,0]},{"a":5576,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":5584,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":5592,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":5600,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":5608,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":5616,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":5624,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":5632,"l":"chr_frames","c":"Characters $C0-$D7, as loaded: the frames build_figures shifts for the moving figures, each a picture character and its mask. Pete up and down $C0-$C3, a creature up and down $C4-$C7; Pete left $C8-$CB, a creature left $CC-$CF; Pete right $D0-$D3, a creature right $D4-$D7. Once build_figures has run they are reused: on the title as the scroller's strip, in play $CE-$D7 for the figures as drawn (draw_figures).","t":"byte","b":[20,85,60,105,233,23,28,48],"x":[9936,9948]},{"a":5640,"t":"byte","b":[195,0,195,0,0,192,195,207]},{"a":5648,"t":"byte","b":[20,85,60,105,107,212,52,12]},{"a":5656,"t":"byte","b":[195,0,195,0,0,3,195,243]},{"a":5664,"t":"byte","b":[20,105,105,20,20,65,65,64]},{"a":5672,"t":"byte","b":[195,0,0,195,195,60,60,63]},{"a":5680,"l":"chr_scroller","c":"From character $C6: the title's scroller, 18 characters ($1630-$16BF) that irq_title shifts left a pixel at a time and title clears; until build_figures has run, the creature's second up-and-down frame and the left and right frames.","t":"byte","b":[20,105,105,20,20,65,65,1],"x":[12268,12570]},{"a":5688,"l":"chr_scroller_next","c":"One character on from the scroller's start: irq_title takes the bit that comes into each byte from the byte here, the same row of the character to the right.","t":"byte","b":[195,0,0,195,195,60,60,252],"x":[12566]},{"a":5696,"t":"byte","b":[20,85,60,36,228,23,84,199]},{"a":5704,"t":"byte","b":[195,0,195,195,3,192,3,48]},{"a":5712,"t":"byte","b":[20,85,60,36,55,20,28,48]},{"a":5720,"t":"byte","b":[195,0,195,195,192,195,195,207]},{"a":5728,"t":"byte","b":[84,165,165,84,20,84,68,68]},{"a":5736,"t":"byte","b":[3,0,0,3,195,3,51,51]},{"a":5744,"l":"chr_figures","c":"From character $CE ($1670): in play, the characters draw_figures builds for Pete and the creatures, two for each, $CE + 2X for figure X; as loaded, Pete's and a creature's left and right frames.","t":"byte","b":[84,165,165,84,21,17,17,16],"x":[9987]},{"a":5752,"t":"byte","b":[3,0,0,3,192,204,204,207]},{"a":5760,"t":"byte","b":[20,85,60,24,27,212,21,211]},{"a":5768,"t":"byte","b":[195,0,195,195,192,3,192,12]},{"a":5776,"t":"byte","b":[20,85,60,24,220,20,52,12]},{"a":5784,"t":"byte","b":[195,0,195,195,3,195,195,243]},{"a":5792,"t":"byte","b":[21,90,90,21,20,21,17,17]},{"a":5800,"t":"byte","b":[192,0,0,192,195,192,204,204]},{"a":5808,"t":"byte","b":[21,90,90,21,84,68,68,4]},{"a":5816,"l":"chr_scroller_in","c":"Character $D7: where irq_title puts the scroller's next letter, just right of the 16 that show; as loaded, the last of a creature's right-moving frames.","t":"byte","b":[192,0,0,192,3,51,51,243],"x":[12556]},{"a":5824,"l":"chr_letters","c":"Characters $D8-$FF: the game's alphabet, a full stop ($D8), an exclamation mark ($D9), a question mark ($DA), a blank ($DB), A to Z ($DC-$F5) and 0 to 9 ($F6-$FF).","t":"byte","b":[0,0,0,0,0,24,24,0]},{"a":5832,"t":"byte","b":[60,60,60,24,0,24,24,0]},{"a":5840,"t":"byte","b":[124,238,14,28,56,0,56,0]},{"a":5848,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":5856,"t":"byte","b":[56,124,238,238,254,238,238,0]},{"a":5864,"t":"byte","b":[252,238,238,252,238,238,252,0]},{"a":5872,"t":"byte","b":[124,238,224,224,224,238,124,0]},{"a":5880,"t":"byte","b":[248,236,238,238,238,236,248,0]},{"a":5888,"t":"byte","b":[254,238,224,248,224,238,254,0]},{"a":5896,"t":"byte","b":[254,238,224,248,224,224,224,0]},{"a":5904,"t":"byte","b":[124,238,224,224,238,238,126,0]},{"a":5912,"t":"byte","b":[238,238,238,254,238,238,238,0]},{"a":5920,"t":"byte","b":[124,56,56,56,56,56,124,0]},{"a":5928,"t":"byte","b":[62,14,14,14,238,238,124,0]},{"a":5936,"t":"byte","b":[230,238,252,248,252,238,230,0]},{"a":5944,"t":"byte","b":[224,224,224,224,224,238,254,0]},{"a":5952,"t":"byte","b":[198,238,254,254,214,198,198,0]},{"a":5960,"t":"byte","b":[198,230,246,254,222,206,198,0]},{"a":5968,"t":"byte","b":[124,238,238,238,238,238,124,0]},{"a":5976,"t":"byte","b":[252,238,238,238,252,224,224,0]},{"a":5984,"t":"byte","b":[124,238,238,238,238,124,14,0]},{"a":5992,"t":"byte","b":[252,238,238,238,252,238,238,0]},{"a":6000,"t":"byte","b":[126,238,240,124,30,238,252,0]},{"a":6008,"t":"byte","b":[254,56,56,56,56,56,56,0]},{"a":6016,"t":"byte","b":[238,238,238,238,238,238,124,0]},{"a":6024,"t":"byte","b":[238,238,238,238,238,108,56,0]},{"a":6032,"t":"byte","b":[198,198,198,214,254,238,198,0]},{"a":6040,"t":"byte","b":[238,238,124,56,124,238,238,0]},{"a":6048,"t":"byte","b":[238,238,238,124,56,56,56,0]},{"a":6056,"t":"byte","b":[254,238,28,56,112,238,254,0]},{"a":6064,"t":"byte","b":[124,238,238,238,238,238,124,0]},{"a":6072,"t":"byte","b":[24,56,120,24,24,24,126,0]},{"a":6080,"t":"byte","b":[124,238,14,28,112,224,254,0]},{"a":6088,"t":"byte","b":[124,238,14,28,14,238,124,0]},{"a":6096,"t":"byte","b":[224,224,224,236,236,254,12,0]},{"a":6104,"t":"byte","b":[254,238,224,252,14,238,252,0]},{"a":6112,"t":"byte","b":[124,238,224,252,238,238,124,0]},{"a":6120,"t":"byte","b":[254,238,14,28,56,56,56,0]},{"a":6128,"t":"byte","b":[124,238,238,124,238,238,124,0]},{"a":6136,"t":"byte","b":[124,238,238,126,6,238,124,0]},{"a":6144,"l":"start","c":"The game's first instruction: Novaload's loader jumps here (JSR $1800) once the one turbo block, $1000-$3FFE, is in. Stops interrupts, sets the stack to $01FF, starts TED's timer 1 at $FFFF and clears zero page from $02 to $FF. Seeds timers 2 and 3 and the random byte at $7A from the raster position, so every game plays differently; sets the border black, the level to 0 (LEVEL 01), the score to 0 and joystick control. Turns on the raster interrupt only ($FF0A = $02), sets voice 1's high frequency bits, and points TED at the character set at $1000 ($FF13 = $11; its bit 1 clear leaves the processor on the double clock where TED allows it, and bit 0, the ROMs' status, is read only, so the write leaves them as they are). Then builds the moving figures' shifted frames once (build_figures) and falls into main_loop.","t":"code","b":[120],"m":"sei"},{"a":6145,"t":"code","b":[216],"m":"cld"},{"a":6146,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":6148,"t":"code","b":[154],"m":"txs"},{"a":6149,"t":"code","b":[142,0,255],"m":"stx","o":"ted_timer1_lo"},{"a":6152,"t":"code","b":[142,1,255],"m":"stx","o":"ted_timer1_hi"},{"a":6155,"t":"code","b":[162,254],"m":"ldx","o":"#$FE"},{"a":6157,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":6159,"l":"b_180F","t":"code","b":[149,2],"m":"sta","oa":2,"o":"view_right,x","x":[6162]},{"a":6161,"t":"code","b":[202],"m":"dex"},{"a":6162,"t":"code","b":[208,251],"m":"bne","oa":6159,"o":"b_180F"},{"a":6164,"t":"code","b":[173,30,255],"m":"lda","o":"ted_hpos"},{"a":6167,"t":"code","b":[141,3,255],"m":"sta","o":"ted_timer2_hi"},{"a":6170,"t":"code","b":[173,29,255],"m":"lda","o":"ted_raster_lo"},{"a":6173,"t":"code","b":[141,5,255],"m":"sta","o":"ted_timer3_hi"},{"a":6176,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":6178,"t":"code","b":[141,25,255],"m":"sta","o":"ted_border"},{"a":6181,"t":"code","b":[133,167],"m":"sta","oa":167,"o":"level"},{"a":6183,"t":"code","b":[133,163],"m":"sta","oa":163,"o":"controls"},{"a":6185,"t":"code","b":[133,170],"m":"sta","oa":170,"o":"score"},{"a":6187,"t":"code","b":[133,171],"m":"sta","oa":171,"o":"zpa_AB"},{"a":6189,"t":"code","b":[133,172],"m":"sta","oa":172,"o":"zpa_AC"},{"a":6191,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":6193,"t":"code","b":[141,10,255],"m":"sta","o":"ted_irq_mask"},{"a":6196,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":6198,"t":"code","b":[141,18,255],"m":"sta","o":"ted_bitmap_voice1_hi"},{"a":6201,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":6203,"t":"code","b":[141,19,255],"m":"sta","o":"ted_charset"},{"a":6206,"t":"code","b":[173,29,255],"m":"lda","o":"ted_raster_lo"},{"a":6209,"t":"code","b":[77,30,255],"m":"eor","o":"ted_hpos"},{"a":6212,"t":"code","b":[109,0,255],"m":"adc","o":"ted_timer1_lo"},{"a":6215,"t":"code","b":[133,122],"m":"sta","oa":122,"o":"random_seed"},{"a":6217,"t":"code","b":[32,54,34],"m":"jsr","oa":8758,"o":"build_figures"},{"a":6220,"l":"main_loop","c":"The game's loop. The title screen (title) returns when fire is pressed; start_level builds the mine; then once a frame (when the interrupt moves frame_count) it works the game: back to the title when ESC is held (esc_up, $BA, is 0); each time the count of seconds at $7B runs out (irq_play counts it down) sets it again from $7C and, once the flood has begun ($6A), lets a creature out at the bottom of the shaft (release_creature); counts down every lit stick of dynamite and lays a new one when fire is pressed (dynamite); scores what Pete bumped into and checks whether he has died (pete_touches); starts the flood when the big charge at the bottom of the shaft has gone off (check_big_charge); on level 6 and later swaps a face in for one of the large goodies now and then (swap_face). A death takes a man ($A9, binary-coded decimal) and rebuilds the level, or, below 00, goes back to the title: three lives in all. With every goodie gone ($B5 = 0), Pete standing still at the top of the shaft (column 44, row 4) and the stick pushed up, the level is complete: a short jingle, 50 points and a tone for each stick left, then the next level after 130 frames. The level stops rising at 15 (LEVEL 16), which then repeats for ever.","t":"code","b":[32,0,47],"m":"jsr","oa":12032,"o":"title","x":[6234,6288]},{"a":6223,"l":"b_184F","t":"code","b":[32,84,28],"m":"jsr","oa":7252,"o":"start_level","x":[6286,6434]},{"a":6226,"l":"b_1852","t":"code","b":[165,100],"m":"lda","oa":100,"o":"frame_count","x":[6292,6296,6302,6308,6312]},{"a":6228,"l":"b_1854","t":"code","b":[197,100],"m":"cmp","oa":100,"o":"frame_count","x":[6230]},{"a":6230,"t":"code","b":[240,252],"m":"beq","oa":6228,"o":"b_1854"},{"a":6232,"t":"code","b":[165,186],"m":"lda","oa":186,"o":"esc_up"},{"a":6234,"t":"code","b":[240,240],"m":"beq","oa":6220,"o":"main_loop"},{"a":6236,"t":"code","b":[165,123],"m":"lda","oa":123,"o":"release_count"},{"a":6238,"t":"code","b":[208,15],"m":"bne","oa":6255,"o":"b_186F"},{"a":6240,"t":"code","b":[165,124],"m":"lda","oa":124,"o":"zpa_7C"},{"a":6242,"t":"code","b":[133,123],"m":"sta","oa":123,"o":"release_count"},{"a":6244,"t":"code","b":[165,125],"m":"lda","oa":125,"o":"zpa_7D"},{"a":6246,"t":"code","b":[133,126],"m":"sta","oa":126,"o":"zpa_7E"},{"a":6248,"t":"code","b":[165,106],"m":"lda","oa":106,"o":"flood_on"},{"a":6250,"t":"code","b":[240,3],"m":"beq","oa":6255,"o":"b_186F"},{"a":6252,"t":"code","b":[32,192,45],"m":"jsr","oa":11712,"o":"release_creature"},{"a":6255,"l":"b_186F","t":"code","b":[32,147,43],"m":"jsr","oa":11155,"o":"dynamite","x":[6238,6250]},{"a":6258,"t":"code","b":[32,248,45],"m":"jsr","oa":11768,"o":"pete_touches"},{"a":6261,"t":"code","b":[32,119,25],"m":"jsr","oa":6519,"o":"check_big_charge"},{"a":6264,"t":"code","b":[198,185],"m":"dec","oa":185,"o":"zpa_B9"},{"a":6266,"t":"code","b":[208,3],"m":"bne","oa":6271,"o":"b_187F"},{"a":6268,"t":"code","b":[32,37,25],"m":"jsr","oa":6437,"o":"swap_face"},{"a":6271,"l":"b_187F","t":"code","b":[165,131],"m":"lda","oa":131,"o":"pete_dead","x":[6266]},{"a":6273,"t":"code","b":[240,15],"m":"beq","oa":6290,"o":"b_1892"},{"a":6275,"t":"code","b":[165,169],"m":"lda","oa":169,"o":"men"},{"a":6277,"t":"code","b":[248],"m":"sed"},{"a":6278,"t":"code","b":[56],"m":"sec"},{"a":6279,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":6281,"t":"code","b":[133,169],"m":"sta","oa":169,"o":"men"},{"a":6283,"t":"code","b":[216],"m":"cld"},{"a":6284,"t":"code","b":[201,153],"m":"cmp","o":"#$99"},{"a":6286,"t":"code","b":[208,191],"m":"bne","oa":6223,"o":"b_184F"},{"a":6288,"t":"code","b":[240,186],"m":"beq","oa":6220,"o":"main_loop"},{"a":6290,"l":"b_1892","t":"code","b":[165,181],"m":"lda","oa":181,"o":"goodies_left","x":[6273]},{"a":6292,"t":"code","b":[208,188],"m":"bne","oa":6226,"o":"b_1852"},{"a":6294,"t":"code","b":[165,10],"m":"lda","oa":10,"o":"joy_y"},{"a":6296,"t":"code","b":[16,184],"m":"bpl","oa":6226,"o":"b_1852"},{"a":6298,"t":"code","b":[165,6],"m":"lda","oa":6,"o":"pete_col"},{"a":6300,"t":"code","b":[201,44],"m":"cmp","o":"#$2C"},{"a":6302,"t":"code","b":[208,178],"m":"bne","oa":6226,"o":"b_1852"},{"a":6304,"t":"code","b":[165,7],"m":"lda","oa":7,"o":"pete_row"},{"a":6306,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":6308,"t":"code","b":[208,172],"m":"bne","oa":6226,"o":"b_1852"},{"a":6310,"t":"code","b":[165,74],"m":"lda","oa":74,"o":"figure_dir"},{"a":6312,"t":"code","b":[208,168],"m":"bne","oa":6226,"o":"b_1852"},{"a":6314,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":6316,"t":"code","b":[133,168],"m":"sta","oa":168,"o":"level_on"},{"a":6318,"t":"code","b":[169,60],"m":"lda","o":"#$3C"},{"a":6320,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":6323,"t":"code","b":[133,197],"m":"sta","oa":197,"o":"zpa_C5"},{"a":6325,"t":"code","b":[141,14,255],"m":"sta","o":"ted_voice1_freq_lo"},{"a":6328,"t":"code","b":[141,15,255],"m":"sta","o":"ted_voice2_freq_lo"},{"a":6331,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":6333,"t":"code","b":[173,16,255],"m":"lda","o":"ted_voice2_freq_hi"},{"a":6336,"t":"code","b":[169,11],"m":"lda","o":"#$0B"},{"a":6338,"t":"code","b":[141,18,255],"m":"sta","o":"ted_bitmap_voice1_hi"},{"a":6341,"l":"b_18C5","t":"code","b":[165,197],"m":"lda","oa":197,"o":"zpa_C5","x":[6343]},{"a":6343,"t":"code","b":[208,252],"m":"bne","oa":6341,"o":"b_18C5"},{"a":6345,"t":"code","b":[165,100],"m":"lda","oa":100,"o":"frame_count"},{"a":6347,"t":"code","b":[105,45],"m":"adc","o":"#$2D"},{"a":6349,"l":"b_18CD","t":"code","b":[197,100],"m":"cmp","oa":100,"o":"frame_count","x":[6351]},{"a":6351,"t":"code","b":[208,252],"m":"bne","oa":6349,"o":"b_18CD"},{"a":6353,"t":"code","b":[165,159],"m":"lda","oa":159,"o":"sticks"},{"a":6355,"t":"code","b":[240,61],"m":"beq","oa":6418,"o":"b_1912"},{"a":6357,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":6359,"t":"code","b":[133,175],"m":"sta","oa":175,"o":"double_points"},{"a":6361,"t":"code","b":[133,174],"m":"sta","oa":174,"o":"zpa_AE"},{"a":6363,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":6365,"t":"code","b":[133,173],"m":"sta","oa":173,"o":"points"},{"a":6367,"l":"b_18DF","t":"code","b":[32,176,46],"m":"jsr","oa":11952,"o":"add_score","x":[6416]},{"a":6370,"t":"code","b":[165,159],"m":"lda","oa":159,"o":"sticks"},{"a":6372,"t":"code","b":[56],"m":"sec"},{"a":6373,"t":"code","b":[248],"m":"sed"},{"a":6374,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":6376,"t":"code","b":[133,159],"m":"sta","oa":159,"o":"sticks"},{"a":6378,"t":"code","b":[216],"m":"cld"},{"a":6379,"t":"code","b":[32,167,30],"m":"jsr","oa":7847,"o":"print_sticks"},{"a":6382,"t":"code","b":[169,72],"m":"lda","o":"#$48"},{"a":6384,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":6387,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":6389,"t":"code","b":[133,189],"m":"sta","oa":189,"o":"zpa_BD"},{"a":6391,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":6393,"t":"code","b":[141,16,255],"m":"sta","o":"ted_voice2_freq_hi"},{"a":6396,"t":"code","b":[169,229],"m":"lda","o":"#$E5"},{"a":6398,"t":"code","b":[141,15,255],"m":"sta","o":"ted_voice2_freq_lo"},{"a":6401,"l":"b_1901","t":"code","b":[165,189],"m":"lda","oa":189,"o":"zpa_BD","x":[6403]},{"a":6403,"t":"code","b":[208,252],"m":"bne","oa":6401,"o":"b_1901"},{"a":6405,"t":"code","b":[165,100],"m":"lda","oa":100,"o":"frame_count"},{"a":6407,"t":"code","b":[24],"m":"clc"},{"a":6408,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":6410,"l":"b_190A","t":"code","b":[197,100],"m":"cmp","oa":100,"o":"frame_count","x":[6412]},{"a":6412,"t":"code","b":[208,252],"m":"bne","oa":6410,"o":"b_190A"},{"a":6414,"t":"code","b":[165,159],"m":"lda","oa":159,"o":"sticks"},{"a":6416,"t":"code","b":[208,205],"m":"bne","oa":6367,"o":"b_18DF"},{"a":6418,"l":"b_1912","t":"code","b":[165,167],"m":"lda","oa":167,"o":"level","x":[6355]},{"a":6420,"t":"code","b":[201,15],"m":"cmp","o":"#$0F"},{"a":6422,"t":"code","b":[240,2],"m":"beq","oa":6426,"o":"b_191A"},{"a":6424,"t":"code","b":[230,167],"m":"inc","oa":167,"o":"level"},{"a":6426,"l":"b_191A","t":"code","b":[165,100],"m":"lda","oa":100,"o":"frame_count","x":[6422]},{"a":6428,"t":"code","b":[105,130],"m":"adc","o":"#$82"},{"a":6430,"l":"b_191E","t":"code","b":[197,100],"m":"cmp","oa":100,"o":"frame_count","x":[6432]},{"a":6432,"t":"code","b":[208,252],"m":"bne","oa":6430,"o":"b_191E"},{"a":6434,"t":"code","b":[76,79,24],"m":"jmp","oa":6223,"o":"b_184F"},{"a":6437,"l":"swap_face","c":"Level 6 and later (level index $A7 of 5 or more), each time the countdown at $B9 runs out (32 to 47 frames, set again here from the timers): if the large goodie at the pointer $B7/$B8 is still there it is saved in $B6 and replaced by the grinning face, characters $94-$97, which kills Pete if he touches it (score_item). If the face is there now, the saved goodie is put back (the BIT at $1954 hides LDA $B6 at $1955 for that path) and another large goodie is picked at random from the list at $0316 (place_goodies). One that has been collected (earth under the pointer) is passed over for another at once.","t":"code","b":[165,167],"m":"lda","oa":167,"o":"level","x":[6268]},{"a":6439,"t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":6441,"t":"code","b":[176,1],"m":"bcs","oa":6444,"o":"b_192C"},{"a":6443,"l":"r_192B","t":"code","b":[96],"m":"rts","x":[6492]},{"a":6444,"l":"b_192C","t":"code","b":[165,184],"m":"lda","oa":184,"o":"zpa_B8","x":[6441]},{"a":6446,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":6448,"t":"code","b":[165,183],"m":"lda","oa":183,"o":"zpa_B7"},{"a":6450,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":6452,"t":"code","b":[173,0,255],"m":"lda","o":"ted_timer1_lo"},{"a":6455,"t":"code","b":[109,29,255],"m":"adc","o":"ted_raster_lo"},{"a":6458,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":6460,"t":"code","b":[9,32],"m":"ora","o":"#$20"},{"a":6462,"t":"code","b":[133,185],"m":"sta","oa":185,"o":"zpa_B9"},{"a":6464,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":6466,"t":"code","b":[132,27],"m":"sty","oa":27,"o":"zpa_1B"},{"a":6468,"t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y"},{"a":6470,"t":"code","b":[201,112],"m":"cmp","o":"#$70"},{"a":6472,"t":"code","b":[144,20],"m":"bcc","oa":6494,"o":"b_195E"},{"a":6474,"t":"code","b":[201,148],"m":"cmp","o":"#$94"},{"a":6476,"t":"code","b":[240,7],"m":"beq","oa":6485,"o":"b_1955"},{"a":6478,"t":"code","b":[230,27],"m":"inc","oa":27,"o":"zpa_1B"},{"a":6480,"t":"code","b":[133,182],"m":"sta","oa":182,"o":"zpa_B6"},{"a":6482,"t":"code","b":[169,148],"m":"lda","o":"#$94"},{"a":6484,"t":"code","b":[44,165,182],"m":"bit","o":"$B6A5"},{"a":6487,"t":"code","b":[32,203,44],"m":"jsr","oa":11467,"o":"put_square"},{"a":6490,"t":"code","b":[165,27],"m":"lda","oa":27,"o":"zpa_1B"},{"a":6492,"t":"code","b":[208,205],"m":"bne","oa":6443,"o":"r_192B"},{"a":6494,"l":"b_195E","t":"code","b":[173,0,255],"m":"lda","o":"ted_timer1_lo","x":[6472,6504]},{"a":6497,"t":"code","b":[109,30,255],"m":"adc","o":"ted_hpos"},{"a":6500,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":6502,"t":"code","b":[197,180],"m":"cmp","oa":180,"o":"zpa_B4"},{"a":6504,"t":"code","b":[176,244],"m":"bcs","oa":6494,"o":"b_195E"},{"a":6506,"t":"code","b":[10],"m":"asl","o":"a"},{"a":6507,"t":"code","b":[170],"m":"tax"},{"a":6508,"t":"code","b":[189,22,3],"m":"lda","oa":790,"o":"f_0316,x"},{"a":6511,"t":"code","b":[133,183],"m":"sta","oa":183,"o":"zpa_B7"},{"a":6513,"t":"code","b":[189,23,3],"m":"lda","oa":791,"o":"f_0317,x"},{"a":6516,"t":"code","b":[133,184],"m":"sta","oa":184,"o":"zpa_B8"},{"a":6518,"t":"code","b":[96],"m":"rts"},{"a":6519,"l":"check_big_charge","c":"Called by main_loop every frame. Starts the flood: once the cell at $3F78, the bottom of the shaft where start_level put the big charge, holds the debris of its explosion ($A3) or nothing, the floor beneath it ($3FD2) becomes the broken floor, character $39, the cell itself water ($5C), and the flag at $6A tells the interrupt to start spreading water and main_loop to let the creatures out.","t":"code","b":[173,120,63],"m":"lda","oa":16248,"o":"a_3F78","x":[6261]},{"a":6522,"t":"code","b":[201,163],"m":"cmp","o":"#$A3"},{"a":6524,"t":"code","b":[240,4],"m":"beq","oa":6530,"o":"b_1982"},{"a":6526,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":6528,"t":"code","b":[208,14],"m":"bne","oa":6544,"o":"r_1990"},{"a":6530,"l":"b_1982","t":"code","b":[169,57],"m":"lda","o":"#$39","x":[6524]},{"a":6532,"t":"code","b":[141,210,63],"m":"sta","oa":16338,"o":"a_3FD2"},{"a":6535,"t":"code","b":[169,92],"m":"lda","o":"#$5C"},{"a":6537,"t":"code","b":[141,120,63],"m":"sta","oa":16248,"o":"a_3F78"},{"a":6540,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":6542,"t":"code","b":[133,106],"m":"sta","oa":106,"o":"flood_on"},{"a":6544,"l":"r_1990","t":"code","b":[96],"m":"rts","x":[6528]},{"a":6545,"l":"irq_play","c":"The interrupt during play, entered through the KERNAL's vector at $0314 (start_level puts it there): four raster interrupts a frame, chained through $04. State 0, at line 0: sets the fine scroll ($03 into $FF07); counts frame_count ($64) and, every 256 frames while the level runs, moves the day on one of its 16 steps ($A0); colours the surface rows from the tables at $1AFD, $1B0D and $1B1D, so the sky darkens to night and lightens again; sets the next interrupt at line $1A; sparkles the explosion's character ($1510-$1517) from the timers; plays the sound effects (sound); flickers the dynamite's fuse (character $6F's top row) every fourth frame; and counts the 50-frame seconds that release the creatures ($7B). State 1, line $1A, below the surface: the mine's colours (black, $41 and $39), the next interrupt at line $AC, the scroll (twice a frame from level 10), the controls, and the ESC key into $BA. State 2, line $AC: next at line $BA; stamps the figures into the map, draws their frames, copies the view to the screen and takes the figures out again; then moves Pete every other frame (every frame from level 10, counted in $BB), the creatures every $81 frames by day and every $A2 frames at night (counted in $82), and, once the flood has begun, the water every $7F frames (counted in $80), each guarded by a busy flag of its own ($6D, $6C, $6B) so that a pass that runs past the next interrupt is not entered twice. State 3, line $BA, above the status line: 40 columns and no scroll, and back to line 0.","t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":6547,"t":"code","b":[141,9,255],"m":"sta","o":"ted_irq_flags"},{"a":6550,"t":"code","b":[216],"m":"cld"},{"a":6551,"t":"code","b":[88],"m":"cli"},{"a":6552,"t":"code","b":[165,4],"m":"lda","oa":4,"o":"irq_state"},{"a":6554,"t":"code","b":[208,120],"m":"bne","oa":6676,"o":"b_1A14"},{"a":6556,"t":"code","b":[165,3],"m":"lda","oa":3,"o":"scroll_ff07"},{"a":6558,"t":"code","b":[141,7,255],"m":"sta","o":"ted_control2"},{"a":6561,"t":"code","b":[230,100],"m":"inc","oa":100,"o":"frame_count"},{"a":6563,"t":"code","b":[208,12],"m":"bne","oa":6577,"o":"b_19B1"},{"a":6565,"t":"code","b":[165,168],"m":"lda","oa":168,"o":"level_on"},{"a":6567,"t":"code","b":[240,8],"m":"beq","oa":6577,"o":"b_19B1"},{"a":6569,"t":"code","b":[230,160],"m":"inc","oa":160,"o":"day_step"},{"a":6571,"t":"code","b":[165,160],"m":"lda","oa":160,"o":"day_step"},{"a":6573,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":6575,"t":"code","b":[133,160],"m":"sta","oa":160,"o":"day_step"},{"a":6577,"l":"b_19B1","t":"code","b":[166,160],"m":"ldx","oa":160,"o":"day_step","x":[6563,6567]},{"a":6579,"t":"code","b":[189,253,26],"m":"lda","oa":6909,"o":"sky_background,x"},{"a":6582,"t":"code","b":[141,21,255],"m":"sta","o":"ted_background"},{"a":6585,"t":"code","b":[189,13,27],"m":"lda","oa":6925,"o":"sky_colour1,x"},{"a":6588,"t":"code","b":[141,22,255],"m":"sta","o":"ted_colour1"},{"a":6591,"t":"code","b":[189,29,27],"m":"lda","oa":6941,"o":"sky_colour2,x"},{"a":6594,"t":"code","b":[141,23,255],"m":"sta","o":"ted_colour2"},{"a":6597,"t":"code","b":[169,26],"m":"lda","o":"#$1A"},{"a":6599,"t":"code","b":[141,11,255],"m":"sta","o":"ted_raster_compare"},{"a":6602,"t":"code","b":[230,4],"m":"inc","oa":4,"o":"irq_state"},{"a":6604,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":6606,"l":"b_19CE","t":"code","b":[173,1,255],"m":"lda","o":"ted_timer1_hi","x":[6621]},{"a":6609,"t":"code","b":[13,4,255],"m":"ora","o":"ted_timer3_lo"},{"a":6612,"t":"code","b":[61,17,21],"m":"and","oa":5393,"o":"f_1511,x"},{"a":6615,"t":"code","b":[157,16,21],"m":"sta","oa":5392,"o":"f_1510,x"},{"a":6618,"t":"code","b":[232],"m":"inx"},{"a":6619,"t":"code","b":[224,7],"m":"cpx","o":"#$07"},{"a":6621,"t":"code","b":[208,239],"m":"bne","oa":6606,"o":"b_19CE"},{"a":6623,"t":"code","b":[173,0,255],"m":"lda","o":"ted_timer1_lo"},{"a":6626,"t":"code","b":[109,1,255],"m":"adc","o":"ted_timer1_hi"},{"a":6629,"t":"code","b":[69,122],"m":"eor","oa":122,"o":"random_seed"},{"a":6631,"t":"code","b":[141,23,21],"m":"sta","oa":5399,"o":"a_1517"},{"a":6634,"t":"code","b":[32,137,54],"m":"jsr","oa":13961,"o":"sound"},{"a":6637,"t":"code","b":[165,100],"m":"lda","oa":100,"o":"frame_count"},{"a":6639,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":6641,"t":"code","b":[201,3],"m":"cmp","o":"#$03"},{"a":6643,"t":"code","b":[208,11],"m":"bne","oa":6656,"o":"b_1A00"},{"a":6645,"t":"code","b":[173,120,19],"m":"lda","oa":4984,"o":"chr_dynamite"},{"a":6648,"t":"code","b":[141,121,19],"m":"sta","oa":4985,"o":"chr_dynamite_row1"},{"a":6651,"t":"code","b":[73,60],"m":"eor","o":"#$3C"},{"a":6653,"t":"code","b":[141,120,19],"m":"sta","oa":4984,"o":"chr_dynamite"},{"a":6656,"l":"b_1A00","t":"code","b":[165,123],"m":"lda","oa":123,"o":"release_count","x":[6643]},{"a":6658,"t":"code","b":[240,10],"m":"beq","oa":6670,"o":"b_1A0E"},{"a":6660,"t":"code","b":[198,126],"m":"dec","oa":126,"o":"zpa_7E"},{"a":6662,"t":"code","b":[208,6],"m":"bne","oa":6670,"o":"b_1A0E"},{"a":6664,"t":"code","b":[165,125],"m":"lda","oa":125,"o":"zpa_7D"},{"a":6666,"t":"code","b":[133,126],"m":"sta","oa":126,"o":"zpa_7E"},{"a":6668,"t":"code","b":[198,123],"m":"dec","oa":123,"o":"release_count"},{"a":6670,"l":"b_1A0E","t":"code","b":[104],"m":"pla","x":[6658,6662,6727,6757,6839,6875,6891,6906]},{"a":6671,"t":"code","b":[168],"m":"tay"},{"a":6672,"t":"code","b":[104],"m":"pla"},{"a":6673,"t":"code","b":[170],"m":"tax"},{"a":6674,"t":"code","b":[104],"m":"pla"},{"a":6675,"t":"code","b":[64],"m":"rti"},{"a":6676,"l":"b_1A14","t":"code","b":[201,1],"m":"cmp","o":"#$01","x":[6554]},{"a":6678,"t":"code","b":[208,49],"m":"bne","oa":6729,"o":"b_1A49"},{"a":6680,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":6682,"t":"code","b":[141,21,255],"m":"sta","o":"ted_background"},{"a":6685,"t":"code","b":[169,65],"m":"lda","o":"#$41"},{"a":6687,"t":"code","b":[141,22,255],"m":"sta","o":"ted_colour1"},{"a":6690,"t":"code","b":[169,57],"m":"lda","o":"#$39"},{"a":6692,"t":"code","b":[141,23,255],"m":"sta","o":"ted_colour2"},{"a":6695,"t":"code","b":[169,172],"m":"lda","o":"#$AC"},{"a":6697,"t":"code","b":[141,11,255],"m":"sta","o":"ted_raster_compare"},{"a":6700,"t":"code","b":[32,45,27],"m":"jsr","oa":6957,"o":"scroll_view"},{"a":6703,"t":"code","b":[166,167],"m":"ldx","oa":167,"o":"level"},{"a":6705,"t":"code","b":[224,9],"m":"cpx","o":"#$09"},{"a":6707,"t":"code","b":[144,3],"m":"bcc","oa":6712,"o":"b_1A38"},{"a":6709,"t":"code","b":[32,45,27],"m":"jsr","oa":6957,"o":"scroll_view"},{"a":6712,"l":"b_1A38","t":"code","b":[32,167,32],"m":"jsr","oa":8359,"o":"read_controls","x":[6707]},{"a":6715,"t":"code","b":[169,191],"m":"lda","o":"#$BF"},{"a":6717,"t":"code","b":[32,26,33],"m":"jsr","oa":8474,"o":"read_key_row"},{"a":6720,"t":"code","b":[45,38,33],"m":"and","oa":8486,"o":"key_space_esc"},{"a":6723,"t":"code","b":[133,186],"m":"sta","oa":186,"o":"esc_up"},{"a":6725,"t":"code","b":[230,4],"m":"inc","oa":4,"o":"irq_state"},{"a":6727,"t":"code","b":[208,197],"m":"bne","oa":6670,"o":"b_1A0E"},{"a":6729,"l":"b_1A49","t":"code","b":[201,2],"m":"cmp","o":"#$02","x":[6678]},{"a":6731,"t":"code","b":[240,3],"m":"beq","oa":6736,"o":"b_1A50"},{"a":6733,"t":"code","b":[76,238,26],"m":"jmp","oa":6894,"o":"j_1AEE"},{"a":6736,"l":"b_1A50","t":"code","b":[169,186],"m":"lda","o":"#$BA","x":[6731]},{"a":6738,"t":"code","b":[141,11,255],"m":"sta","o":"ted_raster_compare"},{"a":6741,"t":"code","b":[230,4],"m":"inc","oa":4,"o":"irq_state"},{"a":6743,"t":"code","b":[32,10,39],"m":"jsr","oa":9994,"o":"stamp_figures"},{"a":6746,"t":"code","b":[32,44,38],"m":"jsr","oa":9772,"o":"draw_figures"},{"a":6749,"t":"code","b":[32,185,27],"m":"jsr","oa":7097,"o":"draw_view"},{"a":6752,"t":"code","b":[32,76,39],"m":"jsr","oa":10060,"o":"unstamp_figures"},{"a":6755,"t":"code","b":[165,168],"m":"lda","oa":168,"o":"level_on"},{"a":6757,"t":"code","b":[240,167],"m":"beq","oa":6670,"o":"b_1A0E"},{"a":6759,"t":"code","b":[165,187],"m":"lda","oa":187,"o":"zpa_BB"},{"a":6761,"t":"code","b":[208,28],"m":"bne","oa":6791,"o":"b_1A87"},{"a":6763,"t":"code","b":[165,109],"m":"lda","oa":109,"o":"zpa_6D"},{"a":6765,"t":"code","b":[208,26],"m":"bne","oa":6793,"o":"b_1A89"},{"a":6767,"t":"code","b":[165,131],"m":"lda","oa":131,"o":"pete_dead"},{"a":6769,"t":"code","b":[208,22],"m":"bne","oa":6793,"o":"b_1A89"},{"a":6771,"t":"code","b":[230,109],"m":"inc","oa":109,"o":"zpa_6D"},{"a":6773,"t":"code","b":[32,137,31],"m":"jsr","oa":8073,"o":"move_pete"},{"a":6776,"t":"code","b":[198,109],"m":"dec","oa":109,"o":"zpa_6D"},{"a":6778,"t":"code","b":[166,167],"m":"ldx","oa":167,"o":"level"},{"a":6780,"t":"code","b":[224,9],"m":"cpx","o":"#$09"},{"a":6782,"t":"code","b":[144,3],"m":"bcc","oa":6787,"o":"b_1A83"},{"a":6784,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":6786,"t":"code","b":[44,169,2],"m":"bit","oa":681,"o":"a_02A9"},{"a":6789,"t":"code","b":[133,187],"m":"sta","oa":187,"o":"zpa_BB"},{"a":6791,"l":"b_1A87","t":"code","b":[198,187],"m":"dec","oa":187,"o":"zpa_BB","x":[6761]},{"a":6793,"l":"b_1A89","t":"code","b":[165,130],"m":"lda","oa":130,"o":"zpa_82","x":[6765,6769]},{"a":6795,"t":"code","b":[208,28],"m":"bne","oa":6825,"o":"b_1AA9"},{"a":6797,"t":"code","b":[165,108],"m":"lda","oa":108,"o":"zpa_6C"},{"a":6799,"t":"code","b":[208,26],"m":"bne","oa":6827,"o":"b_1AAB"},{"a":6801,"t":"code","b":[230,108],"m":"inc","oa":108,"o":"zpa_6C"},{"a":6803,"t":"code","b":[32,120,39],"m":"jsr","oa":10104,"o":"move_creatures"},{"a":6806,"t":"code","b":[198,108],"m":"dec","oa":108,"o":"zpa_6C"},{"a":6808,"t":"code","b":[165,160],"m":"lda","oa":160,"o":"day_step"},{"a":6810,"t":"code","b":[201,6],"m":"cmp","o":"#$06"},{"a":6812,"t":"code","b":[144,7],"m":"bcc","oa":6821,"o":"b_1AA5"},{"a":6814,"t":"code","b":[201,10],"m":"cmp","o":"#$0A"},{"a":6816,"t":"code","b":[176,3],"m":"bcs","oa":6821,"o":"b_1AA5"},{"a":6818,"t":"code","b":[165,162],"m":"lda","oa":162,"o":"zpa_A2"},{"a":6820,"t":"code","b":[44,165,129],"m":"bit","o":"$81A5"},{"a":6823,"t":"code","b":[133,130],"m":"sta","oa":130,"o":"zpa_82"},{"a":6825,"l":"b_1AA9","t":"code","b":[198,130],"m":"dec","oa":130,"o":"zpa_82","x":[6795]},{"a":6827,"l":"b_1AAB","t":"code","b":[165,106],"m":"lda","oa":106,"o":"flood_on","x":[6799]},{"a":6829,"t":"code","b":[240,8],"m":"beq","oa":6839,"o":"b_1AB7"},{"a":6831,"t":"code","b":[165,137],"m":"lda","oa":137,"o":"zpa_89"},{"a":6833,"t":"code","b":[240,32],"m":"beq","oa":6867,"o":"b_1AD3"},{"a":6835,"t":"code","b":[165,107],"m":"lda","oa":107,"o":"zpa_6B"},{"a":6837,"t":"code","b":[240,3],"m":"beq","oa":6842,"o":"b_1ABA"},{"a":6839,"l":"b_1AB7","t":"code","b":[76,14,26],"m":"jmp","oa":6670,"o":"b_1A0E","x":[6829]},{"a":6842,"l":"b_1ABA","t":"code","b":[230,107],"m":"inc","oa":107,"o":"zpa_6B","x":[6837]},{"a":6844,"t":"code","b":[165,134],"m":"lda","oa":134,"o":"zpa_86"},{"a":6846,"t":"code","b":[133,90],"m":"sta","oa":90,"o":"zpa_5A"},{"a":6848,"t":"code","b":[165,135],"m":"lda","oa":135,"o":"zpa_87"},{"a":6850,"t":"code","b":[133,112],"m":"sta","oa":112,"o":"zpa_70"},{"a":6852,"t":"code","b":[165,136],"m":"lda","oa":136,"o":"zpa_88"},{"a":6854,"t":"code","b":[133,113],"m":"sta","oa":113,"o":"zpa_71"},{"a":6856,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":6858,"t":"code","b":[134,93],"m":"stx","oa":93,"o":"zpa_5D"},{"a":6860,"t":"code","b":[134,137],"m":"stx","oa":137,"o":"zpa_89"},{"a":6862,"t":"code","b":[32,207,37],"m":"jsr","oa":9679,"o":"add_water"},{"a":6865,"t":"code","b":[198,107],"m":"dec","oa":107,"o":"zpa_6B"},{"a":6867,"l":"b_1AD3","t":"code","b":[165,128],"m":"lda","oa":128,"o":"zpa_80","x":[6833]},{"a":6869,"t":"code","b":[208,18],"m":"bne","oa":6889,"o":"b_1AE9"},{"a":6871,"t":"code","b":[165,107],"m":"lda","oa":107,"o":"zpa_6B"},{"a":6873,"t":"code","b":[240,3],"m":"beq","oa":6878,"o":"b_1ADE"},{"a":6875,"t":"code","b":[76,14,26],"m":"jmp","oa":6670,"o":"b_1A0E"},{"a":6878,"l":"b_1ADE","t":"code","b":[230,107],"m":"inc","oa":107,"o":"zpa_6B","x":[6873]},{"a":6880,"t":"code","b":[32,243,35],"m":"jsr","oa":9203,"o":"water_step"},{"a":6883,"t":"code","b":[198,107],"m":"dec","oa":107,"o":"zpa_6B"},{"a":6885,"t":"code","b":[165,127],"m":"lda","oa":127,"o":"zpa_7F"},{"a":6887,"t":"code","b":[133,128],"m":"sta","oa":128,"o":"zpa_80"},{"a":6889,"l":"b_1AE9","t":"code","b":[198,128],"m":"dec","oa":128,"o":"zpa_80","x":[6869]},{"a":6891,"t":"code","b":[76,14,26],"m":"jmp","oa":6670,"o":"b_1A0E"},{"a":6894,"l":"j_1AEE","t":"code","b":[169,152],"m":"lda","o":"#$98","x":[6733]},{"a":6896,"t":"code","b":[141,7,255],"m":"sta","o":"ted_control2"},{"a":6899,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":6901,"t":"code","b":[141,11,255],"m":"sta","o":"ted_raster_compare"},{"a":6904,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"irq_state"},{"a":6906,"t":"code","b":[76,14,26],"m":"jmp","oa":6670,"o":"b_1A0E"},{"a":6909,"l":"sky_background","c":"Background colour ($FF15) of the surface rows for each of the 16 steps of the day, which irq_play moves on every 256 frames: light blue ($56) by day, down to black ($00) at steps 7 to 9 and back. Steps 6 to 9 are the night, when the creatures move at their faster rate ($A2).","t":"byte","b":[86,70,70,65,49,33,17,0],"x":[6579]},{"a":6917,"t":"byte","b":[0,0,1,33,49,65,70,86]},{"a":6925,"l":"sky_colour1","c":"Multicolour 1 ($FF16) of the surface rows for each of the 16 steps of the day: orange-browns ($48, $38, $28), grey at dusk and dawn ($31 at step 6, $41 at step 10), and $11 at night.","t":"byte","b":[72,72,72,56,56,40,49,17],"x":[6585]},{"a":6933,"t":"byte","b":[17,17,65,56,56,56,72,72]},{"a":6941,"l":"sky_colour2","c":"Multicolour 2 ($FF17) of the surface rows for each of the 16 steps of the day: browns ($29, $19) darkening to dark grey ($01) at night and back.","t":"byte","b":[41,41,41,25,25,25,33,1],"x":[6591]},{"a":6949,"t":"byte","b":[1,1,17,17,25,25,41,41]},{"a":6957,"l":"scroll_view","c":"The horizontal scroll, called from irq_play (twice a frame from level 10). The view shows 39 columns of the 90-column map; $02 is the map column at its right edge (38 to 89) and $03 holds TED's $FF07 value, whose low three bits are the fine scroll. $08 says which way the view is moving ($FF left, 1 right, 0 still): one pixel a call, and a whole column when the fine scroll wraps; the move stops when the view reaches either end of the map. When the view is still it starts moving once Pete's column ($06) comes within 10 columns of either edge, and it stops when Pete is back in the middle. At the left end the start is refused when the view is already there; the test for the right end compares $02 with $77 (119), which it never reaches, so at the right end the move is asked for on every call and stopped at the start of the next, with nothing to see.","t":"code","b":[165,8],"m":"lda","oa":8,"o":"scroll_dir","x":[6700,6709]},{"a":6959,"t":"code","b":[240,54],"m":"beq","oa":7015,"o":"b_1B67"},{"a":6961,"t":"code","b":[16,31],"m":"bpl","oa":6994,"o":"b_1B52"},{"a":6963,"t":"code","b":[165,3],"m":"lda","oa":3,"o":"scroll_ff07"},{"a":6965,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":6967,"t":"code","b":[201,7],"m":"cmp","o":"#$07"},{"a":6969,"t":"code","b":[240,3],"m":"beq","oa":6974,"o":"b_1B3E"},{"a":6971,"t":"code","b":[230,3],"m":"inc","oa":3,"o":"scroll_ff07"},{"a":6973,"t":"code","b":[96],"m":"rts"},{"a":6974,"l":"b_1B3E","t":"code","b":[165,2],"m":"lda","oa":2,"o":"view_right","x":[6969]},{"a":6976,"t":"code","b":[201,38],"m":"cmp","o":"#$26"},{"a":6978,"t":"code","b":[240,8],"m":"beq","oa":6988,"o":"b_1B4C"},{"a":6980,"t":"code","b":[198,2],"m":"dec","oa":2,"o":"view_right"},{"a":6982,"t":"code","b":[169,144],"m":"lda","o":"#$90"},{"a":6984,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scroll_ff07"},{"a":6986,"t":"code","b":[208,27],"m":"bne","oa":7015,"o":"b_1B67"},{"a":6988,"l":"b_1B4C","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[6978,7007]},{"a":6990,"t":"code","b":[133,8],"m":"sta","oa":8,"o":"scroll_dir"},{"a":6992,"t":"code","b":[240,21],"m":"beq","oa":7015,"o":"b_1B67"},{"a":6994,"l":"b_1B52","t":"code","b":[165,3],"m":"lda","oa":3,"o":"scroll_ff07","x":[6961]},{"a":6996,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":6998,"t":"code","b":[240,3],"m":"beq","oa":7003,"o":"b_1B5B"},{"a":7000,"t":"code","b":[198,3],"m":"dec","oa":3,"o":"scroll_ff07"},{"a":7002,"t":"code","b":[96],"m":"rts"},{"a":7003,"l":"b_1B5B","t":"code","b":[165,2],"m":"lda","oa":2,"o":"view_right","x":[6998]},{"a":7005,"t":"code","b":[201,89],"m":"cmp","o":"#$59"},{"a":7007,"t":"code","b":[240,235],"m":"beq","oa":6988,"o":"b_1B4C"},{"a":7009,"t":"code","b":[230,2],"m":"inc","oa":2,"o":"view_right"},{"a":7011,"t":"code","b":[169,151],"m":"lda","o":"#$97"},{"a":7013,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scroll_ff07"},{"a":7015,"l":"b_1B67","t":"code","b":[165,2],"m":"lda","oa":2,"o":"view_right","x":[6959,6986,6992]},{"a":7017,"t":"code","b":[56],"m":"sec"},{"a":7018,"t":"code","b":[233,10],"m":"sbc","o":"#$0A"},{"a":7020,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"zpa_20"},{"a":7022,"t":"code","b":[233,18],"m":"sbc","o":"#$12"},{"a":7024,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"zpa_1F"},{"a":7026,"t":"code","b":[166,6],"m":"ldx","oa":6,"o":"pete_col"},{"a":7028,"t":"code","b":[228,31],"m":"cpx","oa":31,"o":"zpa_1F"},{"a":7030,"t":"code","b":[176,18],"m":"bcs","oa":7050,"o":"b_1B8A"},{"a":7032,"t":"code","b":[165,2],"m":"lda","oa":2,"o":"view_right"},{"a":7034,"t":"code","b":[201,39],"m":"cmp","o":"#$27"},{"a":7036,"t":"code","b":[176,6],"m":"bcs","oa":7044,"o":"b_1B84"},{"a":7038,"t":"code","b":[165,3],"m":"lda","oa":3,"o":"scroll_ff07"},{"a":7040,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":7042,"t":"code","b":[208,52],"m":"bne","oa":7096,"o":"r_1BB8"},{"a":7044,"l":"b_1B84","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[7036]},{"a":7046,"t":"code","b":[133,8],"m":"sta","oa":8,"o":"scroll_dir"},{"a":7048,"t":"code","b":[208,46],"m":"bne","oa":7096,"o":"r_1BB8"},{"a":7050,"l":"b_1B8A","t":"code","b":[228,32],"m":"cpx","oa":32,"o":"zpa_20","x":[7030]},{"a":7052,"t":"code","b":[144,20],"m":"bcc","oa":7074,"o":"b_1BA2"},{"a":7054,"t":"code","b":[165,2],"m":"lda","oa":2,"o":"view_right"},{"a":7056,"t":"code","b":[201,119],"m":"cmp","o":"#$77"},{"a":7058,"t":"code","b":[144,8],"m":"bcc","oa":7068,"o":"b_1B9C"},{"a":7060,"t":"code","b":[165,3],"m":"lda","oa":3,"o":"scroll_ff07"},{"a":7062,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":7064,"t":"code","b":[201,7],"m":"cmp","o":"#$07"},{"a":7066,"t":"code","b":[240,28],"m":"beq","oa":7096,"o":"r_1BB8"},{"a":7068,"l":"b_1B9C","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[7058]},{"a":7070,"t":"code","b":[133,8],"m":"sta","oa":8,"o":"scroll_dir"},{"a":7072,"t":"code","b":[208,22],"m":"bne","oa":7096,"o":"r_1BB8"},{"a":7074,"l":"b_1BA2","t":"code","b":[138],"m":"txa","x":[7052]},{"a":7075,"t":"code","b":[56],"m":"sec"},{"a":7076,"t":"code","b":[229,31],"m":"sbc","oa":31,"o":"zpa_1F"},{"a":7078,"t":"code","b":[166,8],"m":"ldx","oa":8,"o":"scroll_dir"},{"a":7080,"t":"code","b":[48,6],"m":"bmi","oa":7088,"o":"b_1BB0"},{"a":7082,"t":"code","b":[201,9],"m":"cmp","o":"#$09"},{"a":7084,"t":"code","b":[176,10],"m":"bcs","oa":7096,"o":"r_1BB8"},{"a":7086,"t":"code","b":[144,4],"m":"bcc","oa":7092,"o":"b_1BB4"},{"a":7088,"l":"b_1BB0","t":"code","b":[201,9],"m":"cmp","o":"#$09","x":[7080]},{"a":7090,"t":"code","b":[144,4],"m":"bcc","oa":7096,"o":"r_1BB8"},{"a":7092,"l":"b_1BB4","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[7086]},{"a":7094,"t":"code","b":[133,8],"m":"sta","oa":8,"o":"scroll_dir"},{"a":7096,"l":"r_1BB8","t":"code","b":[96],"m":"rts","x":[7042,7048,7066,7072,7084,7090]},{"a":7097,"l":"draw_view","c":"Copies the view, 39 columns wide and 23 rows deep, from the map at $37EA (90 columns a row) to the screen's characters at $0C00: map columns $02-38 to $02 into screen columns 0 to 38. Called once a frame from irq_play, between stamping the figures into the map and taking them out again.","t":"code","b":[166,2],"m":"ldx","oa":2,"o":"view_right","x":[6749]},{"a":7099,"t":"code","b":[160,38],"m":"ldy","o":"#$26"},{"a":7101,"l":"b_1BBD","t":"code","b":[189,234,55],"m":"lda","oa":14314,"o":"map_surface,x","x":[7169]},{"a":7104,"t":"code","b":[153,0,12],"m":"sta","oa":3072,"o":"f_0C00,y"},{"a":7107,"t":"code","b":[189,68,56],"m":"lda","oa":14404,"o":"map_surface_row1,x"},{"a":7110,"t":"code","b":[153,40,12],"m":"sta","oa":3112,"o":"f_0C28,y"},{"a":7113,"t":"code","b":[189,158,56],"m":"lda","oa":14494,"o":"map_surface_row2,x"},{"a":7116,"t":"code","b":[153,80,12],"m":"sta","oa":3152,"o":"f_0C50,y"},{"a":7119,"t":"code","b":[189,248,56],"m":"lda","oa":14584,"o":"f_38F8,x"},{"a":7122,"t":"code","b":[153,120,12],"m":"sta","oa":3192,"o":"f_0C78,y"},{"a":7125,"t":"code","b":[189,82,57],"m":"lda","oa":14674,"o":"f_3952,x"},{"a":7128,"t":"code","b":[153,160,12],"m":"sta","oa":3232,"o":"f_0CA0,y"},{"a":7131,"t":"code","b":[189,172,57],"m":"lda","oa":14764,"o":"f_39AC,x"},{"a":7134,"t":"code","b":[153,200,12],"m":"sta","oa":3272,"o":"f_0CC8,y"},{"a":7137,"t":"code","b":[189,6,58],"m":"lda","oa":14854,"o":"f_3A06,x"},{"a":7140,"t":"code","b":[153,240,12],"m":"sta","oa":3312,"o":"f_0CF0,y"},{"a":7143,"t":"code","b":[189,96,58],"m":"lda","oa":14944,"o":"f_3A60,x"},{"a":7146,"t":"code","b":[153,24,13],"m":"sta","oa":3352,"o":"f_0D18,y"},{"a":7149,"t":"code","b":[189,186,58],"m":"lda","oa":15034,"o":"f_3ABA,x"},{"a":7152,"t":"code","b":[153,64,13],"m":"sta","oa":3392,"o":"f_0D40,y"},{"a":7155,"t":"code","b":[189,20,59],"m":"lda","oa":15124,"o":"f_3B14,x"},{"a":7158,"t":"code","b":[153,104,13],"m":"sta","oa":3432,"o":"f_0D68,y"},{"a":7161,"t":"code","b":[189,110,59],"m":"lda","oa":15214,"o":"f_3B6E,x"},{"a":7164,"t":"code","b":[153,144,13],"m":"sta","oa":3472,"o":"f_0D90,y"},{"a":7167,"t":"code","b":[202],"m":"dex"},{"a":7168,"t":"code","b":[136],"m":"dey"},{"a":7169,"t":"code","b":[16,186],"m":"bpl","oa":7101,"o":"b_1BBD"},{"a":7171,"t":"code","b":[166,2],"m":"ldx","oa":2,"o":"view_right"},{"a":7173,"t":"code","b":[160,38],"m":"ldy","o":"#$26"},{"a":7175,"l":"b_1C07","t":"code","b":[189,200,59],"m":"lda","oa":15304,"o":"f_3BC8,x","x":[7249]},{"a":7178,"t":"code","b":[153,184,13],"m":"sta","oa":3512,"o":"f_0DB8,y"},{"a":7181,"t":"code","b":[189,34,60],"m":"lda","oa":15394,"o":"f_3C22,x"},{"a":7184,"t":"code","b":[153,224,13],"m":"sta","oa":3552,"o":"f_0DE0,y"},{"a":7187,"t":"code","b":[189,124,60],"m":"lda","oa":15484,"o":"f_3C7C,x"},{"a":7190,"t":"code","b":[153,8,14],"m":"sta","oa":3592,"o":"f_0E08,y"},{"a":7193,"t":"code","b":[189,214,60],"m":"lda","oa":15574,"o":"f_3CD6,x"},{"a":7196,"t":"code","b":[153,48,14],"m":"sta","oa":3632,"o":"f_0E30,y"},{"a":7199,"t":"code","b":[189,48,61],"m":"lda","oa":15664,"o":"f_3D30,x"},{"a":7202,"t":"code","b":[153,88,14],"m":"sta","oa":3672,"o":"f_0E58,y"},{"a":7205,"t":"code","b":[189,138,61],"m":"lda","oa":15754,"o":"f_3D8A,x"},{"a":7208,"t":"code","b":[153,128,14],"m":"sta","oa":3712,"o":"f_0E80,y"},{"a":7211,"t":"code","b":[189,228,61],"m":"lda","oa":15844,"o":"f_3DE4,x"},{"a":7214,"t":"code","b":[153,168,14],"m":"sta","oa":3752,"o":"f_0EA8,y"},{"a":7217,"t":"code","b":[189,62,62],"m":"lda","oa":15934,"o":"f_3E3E,x"},{"a":7220,"t":"code","b":[153,208,14],"m":"sta","oa":3792,"o":"f_0ED0,y"},{"a":7223,"t":"code","b":[189,152,62],"m":"lda","oa":16024,"o":"f_3E98,x"},{"a":7226,"t":"code","b":[153,248,14],"m":"sta","oa":3832,"o":"f_0EF8,y"},{"a":7229,"t":"code","b":[189,242,62],"m":"lda","oa":16114,"o":"f_3EF2,x"},{"a":7232,"t":"code","b":[153,32,15],"m":"sta","oa":3872,"o":"f_0F20,y"},{"a":7235,"t":"code","b":[189,76,63],"m":"lda","oa":16204,"o":"f_3F4C,x"},{"a":7238,"t":"code","b":[153,72,15],"m":"sta","oa":3912,"o":"f_0F48,y"},{"a":7241,"t":"code","b":[189,166,63],"m":"lda","oa":16294,"o":"f_3FA6,x"},{"a":7244,"t":"code","b":[153,112,15],"m":"sta","oa":3952,"o":"f_0F70,y"},{"a":7247,"t":"code","b":[202],"m":"dex"},{"a":7248,"t":"code","b":[136],"m":"dey"},{"a":7249,"t":"code","b":[16,180],"m":"bpl","oa":7175,"o":"b_1C07"},{"a":7251,"t":"code","b":[96],"m":"rts"},{"a":7252,"l":"start_level","c":"Builds a level, the one in $A7, from the start and starts it; main_loop calls it for a new game, after each death and after each level. Switches the screen off, points the interrupt at irq_play, and clears the flags, the figures and the sound. Reads the level's settings from the 16-entry tables at $1EC9-$1F88: sticks of dynamite, the creatures' release interval and speeds, the water's speed, how many creatures, how many goodies of each kind and the fuse length; the sum of the four kinds is the goodies to collect ($B5). Puts Pete at column 44, row 4 (map $397E), at the top of the shaft; colours the play area $7E and the surface rows $79; empties the water list at $0200 but for its first entry, the bottom of the shaft ($3F78, row 21), and the dynamite list at $0700 but for the big charge, there, with the level's fuse from $1F79. Writes the status line with the level, men, sticks and score; restores Pete's frames ($1500 to $1368). Fills rows 3 to 22 of the map with earth, places the goodies (place_goodies), digs the shaft at column 44 and lays the side walls and the floor (characters $35-$38). Then switches the interrupt on, waits about a second with the screen off and two seconds with it on, starts the level ($A8) and lights the big charge ($6F at $3F78).","t":"code","b":[120],"m":"sei","x":[6223]},{"a":7253,"t":"code","b":[169,11],"m":"lda","o":"#$0B"},{"a":7255,"t":"code","b":[141,6,255],"m":"sta","o":"ted_control1"},{"a":7258,"t":"code","b":[169,145],"m":"lda","o":"#$91"},{"a":7260,"t":"code","b":[162,25],"m":"ldx","o":"#$19"},{"a":7262,"t":"code","b":[141,20,3],"m":"sta","oa":788,"o":"a_0314"},{"a":7265,"t":"code","b":[142,21,3],"m":"stx","oa":789,"o":"a_0315"},{"a":7268,"t":"code","b":[169,151],"m":"lda","o":"#$97"},{"a":7270,"t":"code","b":[133,3],"m":"sta","oa":3,"o":"scroll_ff07"},{"a":7272,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":7274,"t":"code","b":[133,2],"m":"sta","oa":2,"o":"view_right"},{"a":7276,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7278,"t":"code","b":[133,8],"m":"sta","oa":8,"o":"scroll_dir"},{"a":7280,"t":"code","b":[133,91],"m":"sta","oa":91,"o":"water_last"},{"a":7282,"t":"code","b":[133,100],"m":"sta","oa":100,"o":"frame_count"},{"a":7284,"t":"code","b":[133,101],"m":"sta","oa":101,"o":"pete_bumped"},{"a":7286,"t":"code","b":[133,106],"m":"sta","oa":106,"o":"flood_on"},{"a":7288,"t":"code","b":[133,107],"m":"sta","oa":107,"o":"zpa_6B"},{"a":7290,"t":"code","b":[133,109],"m":"sta","oa":109,"o":"zpa_6D"},{"a":7292,"t":"code","b":[133,108],"m":"sta","oa":108,"o":"zpa_6C"},{"a":7294,"t":"code","b":[133,131],"m":"sta","oa":131,"o":"pete_dead"},{"a":7296,"t":"code","b":[133,160],"m":"sta","oa":160,"o":"day_step"},{"a":7298,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"irq_state"},{"a":7300,"t":"code","b":[133,168],"m":"sta","oa":168,"o":"level_on"},{"a":7302,"t":"code","b":[133,175],"m":"sta","oa":175,"o":"double_points"},{"a":7304,"t":"code","b":[133,176],"m":"sta","oa":176,"o":"zpa_B0"},{"a":7306,"t":"code","b":[133,189],"m":"sta","oa":189,"o":"zpa_BD"},{"a":7308,"t":"code","b":[133,190],"m":"sta","oa":190,"o":"zpa_BE"},{"a":7310,"t":"code","b":[133,191],"m":"sta","oa":191,"o":"zpa_BF"},{"a":7312,"t":"code","b":[133,192],"m":"sta","oa":192,"o":"zpa_C0"},{"a":7314,"t":"code","b":[133,193],"m":"sta","oa":193,"o":"zpa_C1"},{"a":7316,"t":"code","b":[133,195],"m":"sta","oa":195,"o":"zpa_C3"},{"a":7318,"t":"code","b":[133,197],"m":"sta","oa":197,"o":"zpa_C5"},{"a":7320,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":7323,"t":"code","b":[141,11,255],"m":"sta","o":"ted_raster_compare"},{"a":7326,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":7328,"t":"code","b":[134,158],"m":"stx","oa":158,"o":"dynamite_end"},{"a":7330,"t":"code","b":[232],"m":"inx"},{"a":7331,"l":"b_1CA3","t":"code","b":[149,34],"m":"sta","oa":34,"o":"figure_on,x","x":[7338]},{"a":7333,"t":"code","b":[149,39],"m":"sta","oa":39,"o":"figure_step,x"},{"a":7335,"t":"code","b":[149,74],"m":"sta","oa":74,"o":"figure_dir,x"},{"a":7337,"t":"code","b":[202],"m":"dex"},{"a":7338,"t":"code","b":[16,247],"m":"bpl","oa":7331,"o":"b_1CA3"},{"a":7340,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":7342,"t":"code","b":[133,196],"m":"sta","oa":196,"o":"zpa_C4"},{"a":7344,"t":"code","b":[166,167],"m":"ldx","oa":167,"o":"level"},{"a":7346,"t":"code","b":[189,201,30],"m":"lda","oa":7881,"o":"level_sticks,x"},{"a":7349,"t":"code","b":[133,159],"m":"sta","oa":159,"o":"sticks"},{"a":7351,"t":"code","b":[169,50],"m":"lda","o":"#$32"},{"a":7353,"t":"code","b":[133,125],"m":"sta","oa":125,"o":"zpa_7D"},{"a":7355,"t":"code","b":[133,126],"m":"sta","oa":126,"o":"zpa_7E"},{"a":7357,"t":"code","b":[189,217,30],"m":"lda","oa":7897,"o":"level_release,x"},{"a":7360,"t":"code","b":[133,124],"m":"sta","oa":124,"o":"zpa_7C"},{"a":7362,"t":"code","b":[189,233,30],"m":"lda","oa":7913,"o":"level_water_speed,x"},{"a":7365,"t":"code","b":[133,127],"m":"sta","oa":127,"o":"zpa_7F"},{"a":7367,"t":"code","b":[133,128],"m":"sta","oa":128,"o":"zpa_80"},{"a":7369,"t":"code","b":[189,249,30],"m":"lda","oa":7929,"o":"level_creature_day,x"},{"a":7372,"t":"code","b":[133,129],"m":"sta","oa":129,"o":"zpa_81"},{"a":7374,"t":"code","b":[133,130],"m":"sta","oa":130,"o":"zpa_82"},{"a":7376,"t":"code","b":[133,161],"m":"sta","oa":161,"o":"zpa_A1"},{"a":7378,"t":"code","b":[189,9,31],"m":"lda","oa":7945,"o":"level_creature_night,x"},{"a":7381,"t":"code","b":[133,162],"m":"sta","oa":162,"o":"zpa_A2"},{"a":7383,"t":"code","b":[189,25,31],"m":"lda","oa":7961,"o":"level_creatures,x"},{"a":7386,"t":"code","b":[133,157],"m":"sta","oa":157,"o":"creature_max"},{"a":7388,"t":"code","b":[189,41,31],"m":"lda","oa":7977,"o":"level_small_goodies,x"},{"a":7391,"t":"code","b":[133,177],"m":"sta","oa":177,"o":"zpa_B1"},{"a":7393,"t":"code","b":[189,57,31],"m":"lda","oa":7993,"o":"level_wide_goodies,x"},{"a":7396,"t":"code","b":[133,178],"m":"sta","oa":178,"o":"zpa_B2"},{"a":7398,"t":"code","b":[189,73,31],"m":"lda","oa":8009,"o":"level_tall_goodies,x"},{"a":7401,"t":"code","b":[133,179],"m":"sta","oa":179,"o":"zpa_B3"},{"a":7403,"t":"code","b":[189,89,31],"m":"lda","oa":8025,"o":"level_large_goodies,x"},{"a":7406,"t":"code","b":[133,180],"m":"sta","oa":180,"o":"zpa_B4"},{"a":7408,"t":"code","b":[24],"m":"clc"},{"a":7409,"t":"code","b":[101,179],"m":"adc","oa":179,"o":"zpa_B3"},{"a":7411,"t":"code","b":[101,178],"m":"adc","oa":178,"o":"zpa_B2"},{"a":7413,"t":"code","b":[101,177],"m":"adc","oa":177,"o":"zpa_B1"},{"a":7415,"t":"code","b":[133,181],"m":"sta","oa":181,"o":"goodies_left"},{"a":7417,"t":"code","b":[189,105,31],"m":"lda","oa":8041,"o":"level_fuse,x"},{"a":7420,"t":"code","b":[133,188],"m":"sta","oa":188,"o":"fuse"},{"a":7422,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":7424,"t":"code","b":[224,9],"m":"cpx","o":"#$09"},{"a":7426,"t":"code","b":[176,1],"m":"bcs","oa":7429,"o":"b_1D05"},{"a":7428,"t":"code","b":[200],"m":"iny"},{"a":7429,"l":"b_1D05","t":"code","b":[132,187],"m":"sty","oa":187,"o":"zpa_BB","x":[7426]},{"a":7431,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":7433,"t":"code","b":[133,89],"m":"sta","oa":89,"o":"zpa_59"},{"a":7435,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":7437,"t":"code","b":[133,7],"m":"sta","oa":7,"o":"pete_row"},{"a":7439,"t":"code","b":[169,44],"m":"lda","o":"#$2C"},{"a":7441,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"pete_col"},{"a":7443,"t":"code","b":[169,126],"m":"lda","o":"#$7E"},{"a":7445,"t":"code","b":[162,57],"m":"ldx","o":"#$39"},{"a":7447,"t":"code","b":[133,44],"m":"sta","oa":44,"o":"pete_cell"},{"a":7449,"t":"code","b":[133,46],"m":"sta","oa":46,"o":"pete_from"},{"a":7451,"t":"code","b":[134,45],"m":"stx","oa":45,"o":"zpa_2D"},{"a":7453,"t":"code","b":[134,47],"m":"stx","oa":47,"o":"zpa_2F"},{"a":7455,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":7457,"t":"code","b":[133,34],"m":"sta","oa":34,"o":"figure_on"},{"a":7459,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":7461,"l":"b_1D25","t":"code","b":[169,126],"m":"lda","o":"#$7E","x":[7484]},{"a":7463,"t":"code","b":[157,0,8],"m":"sta","oa":2048,"o":"f_0800,x"},{"a":7466,"t":"code","b":[157,0,9],"m":"sta","oa":2304,"o":"f_0900,x"},{"a":7469,"t":"code","b":[157,0,10],"m":"sta","oa":2560,"o":"f_0A00,x"},{"a":7472,"t":"code","b":[157,0,11],"m":"sta","oa":2816,"o":"f_0B00,x"},{"a":7475,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7477,"t":"code","b":[157,0,2],"m":"sta","oa":512,"o":"f_0200,x"},{"a":7480,"t":"code","b":[157,0,7],"m":"sta","oa":1792,"o":"f_0700,x"},{"a":7483,"t":"code","b":[232],"m":"inx"},{"a":7484,"t":"code","b":[208,231],"m":"bne","oa":7461,"o":"b_1D25"},{"a":7486,"t":"code","b":[169,120],"m":"lda","o":"#$78"},{"a":7488,"t":"code","b":[162,63],"m":"ldx","o":"#$3F"},{"a":7490,"t":"code","b":[141,0,2],"m":"sta","oa":512,"o":"f_0200"},{"a":7493,"t":"code","b":[141,0,7],"m":"sta","oa":1792,"o":"f_0700"},{"a":7496,"t":"code","b":[142,1,2],"m":"stx","oa":513,"o":"a_0201"},{"a":7499,"t":"code","b":[142,1,7],"m":"stx","oa":1793,"o":"a_0701"},{"a":7502,"t":"code","b":[169,21],"m":"lda","o":"#$15"},{"a":7504,"t":"code","b":[141,2,2],"m":"sta","oa":514,"o":"a_0202"},{"a":7507,"t":"code","b":[133,87],"m":"sta","oa":87,"o":"water_top"},{"a":7509,"t":"code","b":[166,167],"m":"ldx","oa":167,"o":"level"},{"a":7511,"t":"code","b":[189,121,31],"m":"lda","oa":8057,"o":"level_big_fuse,x"},{"a":7514,"t":"code","b":[141,2,7],"m":"sta","oa":1794,"o":"a_0702"},{"a":7517,"t":"code","b":[162,39],"m":"ldx","o":"#$27"},{"a":7519,"l":"b_1D5F","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[7547]},{"a":7521,"t":"code","b":[157,152,15],"m":"sta","oa":3992,"o":"f_0F98,x"},{"a":7524,"t":"code","b":[169,119],"m":"lda","o":"#$77"},{"a":7526,"t":"code","b":[157,192,11],"m":"sta","oa":3008,"o":"f_0BC0,x"},{"a":7529,"t":"code","b":[189,65,30],"m":"lda","oa":7745,"o":"status_line_text,x"},{"a":7532,"t":"code","b":[157,192,15],"m":"sta","oa":4032,"o":"f_0FC0,x"},{"a":7535,"t":"code","b":[169,121],"m":"lda","o":"#$79"},{"a":7537,"t":"code","b":[157,0,8],"m":"sta","oa":2048,"o":"f_0800,x"},{"a":7540,"t":"code","b":[157,40,8],"m":"sta","oa":2088,"o":"f_0828,x"},{"a":7543,"t":"code","b":[157,80,8],"m":"sta","oa":2128,"o":"f_0850,x"},{"a":7546,"t":"code","b":[202],"m":"dex"},{"a":7547,"t":"code","b":[16,226],"m":"bpl","oa":7519,"o":"b_1D5F"},{"a":7549,"t":"code","b":[169,230],"m":"lda","o":"#$E6"},{"a":7551,"t":"code","b":[162,15],"m":"ldx","o":"#$0F"},{"a":7553,"t":"code","b":[32,105,30],"m":"jsr","oa":7785,"o":"print_level"},{"a":7556,"t":"code","b":[32,136,30],"m":"jsr","oa":7816,"o":"print_men"},{"a":7559,"t":"code","b":[32,167,30],"m":"jsr","oa":7847,"o":"print_sticks"},{"a":7562,"t":"code","b":[32,175,30],"m":"jsr","oa":7855,"o":"print_score"},{"a":7565,"t":"code","b":[162,15],"m":"ldx","o":"#$0F"},{"a":7567,"l":"b_1D8F","t":"code","b":[189,0,21],"m":"lda","oa":5376,"o":"chr_pete_stand,x","x":[7574]},{"a":7570,"t":"code","b":[157,104,19],"m":"sta","oa":4968,"o":"f_1368,x"},{"a":7573,"t":"code","b":[202],"m":"dex"},{"a":7574,"t":"code","b":[16,247],"m":"bpl","oa":7567,"o":"b_1D8F"},{"a":7576,"t":"code","b":[169,249],"m":"lda","o":"#$F9"},{"a":7578,"t":"code","b":[162,56],"m":"ldx","o":"#$38"},{"a":7580,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":7582,"t":"code","b":[134,14],"m":"stx","oa":14,"o":"zpa_0E"},{"a":7584,"t":"code","b":[169,10],"m":"lda","o":"#$0A"},{"a":7586,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":7588,"l":"b_1DA4","t":"code","b":[162,44],"m":"ldx","o":"#$2C","x":[7625]},{"a":7590,"l":"b_1DA6","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[7608]},{"a":7592,"t":"code","b":[32,203,44],"m":"jsr","oa":11467,"o":"put_square"},{"a":7595,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":7597,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":7599,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":7601,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":7603,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":7605,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":7607,"t":"code","b":[202],"m":"dex"},{"a":7608,"t":"code","b":[208,236],"m":"bne","oa":7590,"o":"b_1DA6"},{"a":7610,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":7612,"t":"code","b":[24],"m":"clc"},{"a":7613,"t":"code","b":[105,92],"m":"adc","o":"#$5C"},{"a":7615,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":7617,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":7619,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":7621,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":7623,"t":"code","b":[198,15],"m":"dec","oa":15,"o":"zpa_0F"},{"a":7625,"t":"code","b":[208,217],"m":"bne","oa":7588,"o":"b_1DA4"},{"a":7627,"t":"code","b":[32,72,44],"m":"jsr","oa":11336,"o":"place_goodies"},{"a":7630,"t":"code","b":[169,248],"m":"lda","o":"#$F8"},{"a":7632,"t":"code","b":[162,56],"m":"ldx","o":"#$38"},{"a":7634,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":7636,"t":"code","b":[134,14],"m":"stx","oa":14,"o":"zpa_0E"},{"a":7638,"t":"code","b":[162,20],"m":"ldx","o":"#$14"},{"a":7640,"l":"b_1DD8","t":"code","b":[160,44],"m":"ldy","o":"#$2C","x":[7674]},{"a":7642,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":7644,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":7646,"t":"code","b":[138],"m":"txa"},{"a":7647,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":7649,"t":"code","b":[24],"m":"clc"},{"a":7650,"t":"code","b":[105,53],"m":"adc","o":"#$35"},{"a":7652,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":7654,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":7656,"t":"code","b":[160,89],"m":"ldy","o":"#$59"},{"a":7658,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":7660,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":7662,"t":"code","b":[24],"m":"clc"},{"a":7663,"t":"code","b":[105,90],"m":"adc","o":"#$5A"},{"a":7665,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":7667,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":7669,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":7671,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":7673,"t":"code","b":[202],"m":"dex"},{"a":7674,"t":"code","b":[208,220],"m":"bne","oa":7640,"o":"b_1DD8"},{"a":7676,"t":"code","b":[162,89],"m":"ldx","o":"#$59"},{"a":7678,"l":"b_1DFE","t":"code","b":[138],"m":"txa","x":[7688]},{"a":7679,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":7681,"t":"code","b":[24],"m":"clc"},{"a":7682,"t":"code","b":[105,53],"m":"adc","o":"#$35"},{"a":7684,"t":"code","b":[157,166,63],"m":"sta","oa":16294,"o":"f_3FA6,x"},{"a":7687,"t":"code","b":[202],"m":"dex"},{"a":7688,"t":"code","b":[16,244],"m":"bpl","oa":7678,"o":"b_1DFE"},{"a":7690,"t":"code","b":[173,9,255],"m":"lda","o":"ted_irq_flags"},{"a":7693,"t":"code","b":[141,9,255],"m":"sta","o":"ted_irq_flags"},{"a":7696,"t":"code","b":[88],"m":"cli"},{"a":7697,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":7699,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":7701,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":7703,"l":"b_1E17","t":"code","b":[136],"m":"dey","x":[7704,7707,7712]},{"a":7704,"t":"code","b":[208,253],"m":"bne","oa":7703,"o":"b_1E17"},{"a":7706,"t":"code","b":[202],"m":"dex"},{"a":7707,"t":"code","b":[208,250],"m":"bne","oa":7703,"o":"b_1E17"},{"a":7709,"t":"code","b":[56],"m":"sec"},{"a":7710,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":7712,"t":"code","b":[208,245],"m":"bne","oa":7703,"o":"b_1E17"},{"a":7714,"t":"code","b":[169,27],"m":"lda","o":"#$1B"},{"a":7716,"t":"code","b":[141,6,255],"m":"sta","o":"ted_control1"},{"a":7719,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":7721,"t":"code","b":[133,123],"m":"sta","oa":123,"o":"release_count"},{"a":7723,"t":"code","b":[169,50],"m":"lda","o":"#$32"},{"a":7725,"t":"code","b":[133,126],"m":"sta","oa":126,"o":"zpa_7E"},{"a":7727,"l":"b_1E2F","t":"code","b":[165,123],"m":"lda","oa":123,"o":"release_count","x":[7729]},{"a":7729,"t":"code","b":[208,252],"m":"bne","oa":7727,"o":"b_1E2F"},{"a":7731,"t":"code","b":[165,124],"m":"lda","oa":124,"o":"zpa_7C"},{"a":7733,"t":"code","b":[133,123],"m":"sta","oa":123,"o":"release_count"},{"a":7735,"t":"code","b":[133,168],"m":"sta","oa":168,"o":"level_on"},{"a":7737,"t":"code","b":[169,111],"m":"lda","o":"#$6F"},{"a":7739,"t":"code","b":[141,120,63],"m":"sta","oa":16248,"o":"a_3F78"},{"a":7742,"t":"code","b":[133,195],"m":"sta","oa":195,"o":"zpa_C3"},{"a":7744,"t":"code","b":[96],"m":"rts"},{"a":7745,"l":"status_line_text","c":"The status line, 40 characters in the game's alphabet, which start_level copies to the bottom row ($0FC0): \"SCORE 000000  MEN 00  STICKS 00  LEVL 00\". The numbers are written over it by print_score, print_men, print_sticks and print_level.","t":"byte","b":[238,222,234,237,224,0,246,246],"x":[7529]},{"a":7753,"t":"byte","b":[246,246,246,246,0,0,232,224]},{"a":7761,"t":"byte","b":[233,0,246,246,0,0,238,239]},{"a":7769,"t":"byte","b":[228,222,230,238,0,246,246,0]},{"a":7777,"t":"byte","b":[0,231,224,241,231,0,246,246]},{"a":7785,"l":"print_level","c":"Writes the level number, $A7 + 1, as two digits at the screen address in A (low) and X (high): the status line's LEVL (start_level) and the title's LEVEL (title, change_level).","t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D","x":[7553,12261,13938]},{"a":7787,"t":"code","b":[134,14],"m":"stx","oa":14,"o":"zpa_0E"},{"a":7789,"t":"code","b":[166,167],"m":"ldx","oa":167,"o":"level"},{"a":7791,"t":"code","b":[232],"m":"inx"},{"a":7792,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":7794,"t":"code","b":[169,246],"m":"lda","o":"#$F6"},{"a":7796,"t":"code","b":[224,10],"m":"cpx","o":"#$0A"},{"a":7798,"t":"code","b":[144,7],"m":"bcc","oa":7807,"o":"b_1E7F"},{"a":7800,"t":"code","b":[138],"m":"txa"},{"a":7801,"t":"code","b":[233,10],"m":"sbc","o":"#$0A"},{"a":7803,"t":"code","b":[170],"m":"tax"},{"a":7804,"t":"code","b":[169,247],"m":"lda","o":"#$F7"},{"a":7806,"t":"code","b":[24],"m":"clc"},{"a":7807,"l":"b_1E7F","t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y","x":[7798]},{"a":7809,"t":"code","b":[200],"m":"iny"},{"a":7810,"t":"code","b":[138],"m":"txa"},{"a":7811,"t":"code","b":[105,246],"m":"adc","o":"#$F6"},{"a":7813,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":7815,"t":"code","b":[96],"m":"rts"},{"a":7816,"l":"print_men","c":"Writes the men left ($A9, binary-coded decimal) as two digits on the status line at $0FD2. The entry b_1E8E, shared by print_sticks and print_score, takes the screen address in X and Y and the byte in A.","t":"code","b":[162,210],"m":"ldx","o":"#$D2","x":[7556,12006]},{"a":7818,"t":"code","b":[160,15],"m":"ldy","o":"#$0F"},{"a":7820,"t":"code","b":[165,169],"m":"lda","oa":169,"o":"men"},{"a":7822,"l":"b_1E8E","t":"code","b":[134,13],"m":"stx","oa":13,"o":"zpa_0D","x":[7853,7861]},{"a":7824,"t":"code","b":[132,14],"m":"sty","oa":14,"o":"zpa_0E"},{"a":7826,"l":"print_bcd","c":"Writes the byte in A as two decimal digits, high digit first, at the screen address in $0D/$0E: digits are the game's characters $F6-$FF.","t":"code","b":[72],"m":"pha","x":[7870,7879]},{"a":7827,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":7829,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":7830,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":7831,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":7832,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":7833,"t":"code","b":[24],"m":"clc"},{"a":7834,"t":"code","b":[105,246],"m":"adc","o":"#$F6"},{"a":7836,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":7838,"t":"code","b":[104],"m":"pla"},{"a":7839,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":7841,"t":"code","b":[105,246],"m":"adc","o":"#$F6"},{"a":7843,"t":"code","b":[200],"m":"iny"},{"a":7844,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":7846,"t":"code","b":[96],"m":"rts"},{"a":7847,"l":"print_sticks","c":"Writes the sticks of dynamite left ($9F, binary-coded decimal) on the status line at $0FDD.","t":"code","b":[165,159],"m":"lda","oa":159,"o":"sticks","x":[6379,7559,11332]},{"a":7849,"t":"code","b":[162,221],"m":"ldx","o":"#$DD"},{"a":7851,"t":"code","b":[160,15],"m":"ldy","o":"#$0F"},{"a":7853,"t":"code","b":[208,223],"m":"bne","oa":7822,"o":"b_1E8E"},{"a":7855,"l":"print_score","c":"Writes the six-digit score, $AC $AB $AA (binary-coded decimal, high byte first), on the status line at $0FC6.","t":"code","b":[165,172],"m":"lda","oa":172,"o":"zpa_AC","x":[7562,12010]},{"a":7857,"t":"code","b":[162,198],"m":"ldx","o":"#$C6"},{"a":7859,"t":"code","b":[160,15],"m":"ldy","o":"#$0F"},{"a":7861,"t":"code","b":[32,142,30],"m":"jsr","oa":7822,"o":"b_1E8E"},{"a":7864,"t":"code","b":[230,13],"m":"inc","oa":13,"o":"zpa_0D"},{"a":7866,"t":"code","b":[230,13],"m":"inc","oa":13,"o":"zpa_0D"},{"a":7868,"t":"code","b":[165,171],"m":"lda","oa":171,"o":"zpa_AB"},{"a":7870,"t":"code","b":[32,146,30],"m":"jsr","oa":7826,"o":"print_bcd"},{"a":7873,"t":"code","b":[165,170],"m":"lda","oa":170,"o":"score"},{"a":7875,"t":"code","b":[230,13],"m":"inc","oa":13,"o":"zpa_0D"},{"a":7877,"t":"code","b":[230,13],"m":"inc","oa":13,"o":"zpa_0D"},{"a":7879,"t":"code","b":[208,201],"m":"bne","oa":7826,"o":"print_bcd"},{"a":7881,"l":"level_sticks","c":"Sticks of dynamite Pete starts each level with, binary-coded decimal, one byte for each of the 16 levels (start_level copies it to $9F): 5, 5, 6, 7, 8, 9, 9, 9, 10, 10, 11, 12, 13, 14, 15, 16.","t":"byte","b":[5,5,6,7,8,9,9,9],"x":[7346]},{"a":7889,"t":"byte","b":[16,16,17,18,19,20,21,22]},{"a":7897,"l":"level_release","c":"Seconds between creatures once the flood has begun, one byte a level (start_level, to $7C; main_loop sets the count at $7B from it, and irq_play counts that down once every 50 frames): 7 on levels 1 and 2, falling to 4 from level 13.","t":"byte","b":[7,7,6,6,6,6,5,5],"x":[7357]},{"a":7905,"t":"byte","b":[5,5,5,5,4,4,4,4]},{"a":7913,"l":"level_water_speed","c":"Frames between steps of the water, one byte a level (start_level, to $7F and $80; irq_play counts it): 5 on level 1, 4 on levels 2 to 8, 3 on levels 9 to 15, 2 on level 16.","t":"byte","b":[5,4,4,4,4,4,4,4],"x":[7362]},{"a":7921,"t":"byte","b":[3,3,3,3,3,3,3,2]},{"a":7929,"l":"level_creature_day","c":"Frames between steps of the creatures by day, one byte a level (start_level, to $81, $82 and $A1; irq_play reloads $82 from $81 on steps 0 to 5 and 10 to 15 of the day): 4 on level 1, 3 on levels 2 to 9, 2 from level 10.","t":"byte","b":[4,3,3,3,3,3,3,3],"x":[7369]},{"a":7937,"t":"byte","b":[3,2,2,2,2,2,2,2]},{"a":7945,"l":"level_creature_night","c":"Frames between steps of the creatures at night, steps 6 to 9 of the day, one byte a level (start_level, to $A2): 3 on level 1, 2 on levels 2 to 10, 1 from level 11.","t":"byte","b":[3,2,2,2,2,2,2,2],"x":[7378]},{"a":7953,"t":"byte","b":[2,2,1,1,1,1,1,1]},{"a":7961,"l":"level_creatures","c":"The highest creature number for the level, one byte a level (start_level, to $9D; release_creature lets one out only while a slot from 0 to this is free): one creature on level 1, two on levels 2 and 3, three on levels 4 to 8, four from level 9.","t":"byte","b":[0,1,1,2,2,2,2,2],"x":[7383]},{"a":7969,"t":"byte","b":[3,3,3,3,3,3,3,3]},{"a":7977,"l":"level_small_goodies","c":"How many one-cell goodies (characters $70-$73) place_goodies scatters, one byte a level (start_level, to $B1): 2 on level 1, rising to 12.","t":"byte","b":[2,3,3,4,5,7,9,10],"x":[7388]},{"a":7985,"t":"byte","b":[10,10,10,10,11,12,12,12]},{"a":7993,"l":"level_wide_goodies","c":"How many goodies two cells wide (OIL and two others, characters $74-$79) place_goodies scatters, one byte a level (start_level, to $B2).","t":"byte","b":[2,4,7,5,6,7,8,7],"x":[7393]},{"a":8001,"t":"byte","b":[7,8,8,5,8,9,9,11]},{"a":8009,"l":"level_tall_goodies","c":"How many goodies two cells tall (GAS and the three others, characters $7C-$83) place_goodies scatters, one byte a level (start_level, to $B3).","t":"byte","b":[3,5,7,8,3,5,6,3],"x":[7398]},{"a":8017,"t":"byte","b":[7,9,5,9,10,6,11,11]},{"a":8025,"l":"level_large_goodies","c":"How many goodies two cells square (characters $84-$93 and $98-$9F, the money bag and the question mark among them) place_goodies scatters, one byte a level (start_level, to $B4).","t":"byte","b":[5,5,4,5,6,5,6,6],"x":[7403]},{"a":8033,"t":"byte","b":[7,7,8,8,9,9,9,10]},{"a":8041,"l":"level_fuse","c":"Frames a stick of dynamite burns before it goes off, one byte a level (start_level, to $BC): 120 on level 1 down to 60 on level 16.","t":"byte","b":[120,110,110,105,100,90,95,80],"x":[7417]},{"a":8049,"t":"byte","b":[80,80,75,70,65,65,65,60]},{"a":8057,"l":"level_big_fuse","c":"Frames the big charge at the bottom of the shaft burns before the flood, one byte a level (start_level, into the dynamite list at $0702): 255 on level 1 down to 90 on level 16.","t":"byte","b":[255,250,240,230,220,215,210,210],"x":[7511]},{"a":8065,"t":"byte","b":[210,200,180,160,140,120,100,90]},{"a":8073,"l":"move_pete","c":"Pete's step, called from irq_play every other frame (every frame from level 10). A move takes four steps ($27, 0 to 3) from the cell he leaves ($2E/$2F) to the one he enters ($2C/$2D). On the first three the cell he is entering, if it is earth, is eaten away one stage, the stage characters chosen by direction ($05-$10 up, $11-$1C down, $1D-$28 left, $29-$34 right, each in the four forms of the earth's tiling); on the fourth the cell becomes tunnel (0), the water is let in if it stands beside it (let_water_in), and the move ends. With no move under way it reads the controls ($09 left or right, $0A up or down; left and right first) and starts one if can_enter allows: columns 1 to 88, rows 4 to 21. Clears $65, which can_enter sets to whatever Pete bumped into.","t":"code","b":[165,74],"m":"lda","oa":74,"o":"figure_dir","x":[6773]},{"a":8075,"t":"code","b":[240,91],"m":"beq","oa":8168,"o":"b_1FE8"},{"a":8077,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":8079,"t":"code","b":[165,39],"m":"lda","oa":39,"o":"figure_step"},{"a":8081,"t":"code","b":[201,3],"m":"cmp","o":"#$03"},{"a":8083,"t":"code","b":[240,58],"m":"beq","oa":8143,"o":"b_1FCF"},{"a":8085,"t":"code","b":[230,39],"m":"inc","oa":39,"o":"figure_step"},{"a":8087,"t":"code","b":[177,44],"m":"lda","oa":44,"o":"(pete_cell),y"},{"a":8089,"t":"code","b":[240,20],"m":"beq","oa":8111,"o":"r_1FAF"},{"a":8091,"t":"code","b":[201,53],"m":"cmp","o":"#$35"},{"a":8093,"t":"code","b":[176,16],"m":"bcs","oa":8111,"o":"r_1FAF"},{"a":8095,"t":"code","b":[166,74],"m":"ldx","oa":74,"o":"figure_dir"},{"a":8097,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":8099,"t":"code","b":[144,23],"m":"bcc","oa":8124,"o":"b_1FBC"},{"a":8101,"t":"code","b":[208,13],"m":"bne","oa":8116,"o":"b_1FB4"},{"a":8103,"t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":8105,"t":"code","b":[144,5],"m":"bcc","oa":8112,"o":"b_1FB0"},{"a":8107,"l":"b_1FAB","t":"code","b":[105,3],"m":"adc","o":"#$03","x":[8118,8137]},{"a":8109,"l":"b_1FAD","t":"code","b":[145,44],"m":"sta","oa":44,"o":"(pete_cell),y","x":[8114,8122,8133,8141]},{"a":8111,"l":"r_1FAF","t":"code","b":[96],"m":"rts","x":[8089,8093]},{"a":8112,"l":"b_1FB0","t":"code","b":[105,28],"m":"adc","o":"#$1C","x":[8105]},{"a":8114,"t":"code","b":[208,249],"m":"bne","oa":8109,"o":"b_1FAD"},{"a":8116,"l":"b_1FB4","t":"code","b":[201,5],"m":"cmp","o":"#$05","x":[8101]},{"a":8118,"t":"code","b":[176,243],"m":"bcs","oa":8107,"o":"b_1FAB"},{"a":8120,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":8122,"t":"code","b":[208,241],"m":"bne","oa":8109,"o":"b_1FAD"},{"a":8124,"l":"b_1FBC","t":"code","b":[166,74],"m":"ldx","oa":74,"o":"figure_dir","x":[8099]},{"a":8126,"t":"code","b":[224,2],"m":"cpx","o":"#$02"},{"a":8128,"t":"code","b":[240,5],"m":"beq","oa":8135,"o":"b_1FC7"},{"a":8130,"t":"code","b":[24],"m":"clc"},{"a":8131,"t":"code","b":[105,4],"m":"adc","o":"#$04"},{"a":8133,"t":"code","b":[208,230],"m":"bne","oa":8109,"o":"b_1FAD"},{"a":8135,"l":"b_1FC7","t":"code","b":[201,5],"m":"cmp","o":"#$05","x":[8128]},{"a":8137,"t":"code","b":[176,224],"m":"bcs","oa":8107,"o":"b_1FAB"},{"a":8139,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":8141,"t":"code","b":[208,222],"m":"bne","oa":8109,"o":"b_1FAD"},{"a":8143,"l":"b_1FCF","t":"code","b":[177,44],"m":"lda","oa":44,"o":"(pete_cell),y","x":[8083]},{"a":8145,"t":"code","b":[201,53],"m":"cmp","o":"#$35"},{"a":8147,"t":"code","b":[176,4],"m":"bcs","oa":8153,"o":"b_1FD9"},{"a":8149,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8151,"t":"code","b":[145,44],"m":"sta","oa":44,"o":"(pete_cell),y"},{"a":8153,"l":"b_1FD9","t":"code","b":[32,197,33],"m":"jsr","oa":8645,"o":"let_water_in","x":[8147]},{"a":8156,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8158,"t":"code","b":[133,74],"m":"sta","oa":74,"o":"figure_dir"},{"a":8160,"t":"code","b":[165,44],"m":"lda","oa":44,"o":"pete_cell"},{"a":8162,"t":"code","b":[133,46],"m":"sta","oa":46,"o":"pete_from"},{"a":8164,"t":"code","b":[165,45],"m":"lda","oa":45,"o":"zpa_2D"},{"a":8166,"t":"code","b":[133,47],"m":"sta","oa":47,"o":"zpa_2F"},{"a":8168,"l":"b_1FE8","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[8075]},{"a":8170,"t":"code","b":[133,101],"m":"sta","oa":101,"o":"pete_bumped"},{"a":8172,"t":"code","b":[165,9],"m":"lda","oa":9,"o":"joy_x"},{"a":8174,"t":"code","b":[5,10],"m":"ora","oa":10,"o":"joy_y"},{"a":8176,"t":"code","b":[208,1],"m":"bne","oa":8179,"o":"b_1FF3"},{"a":8178,"t":"code","b":[96],"m":"rts"},{"a":8179,"l":"b_1FF3","t":"code","b":[165,9],"m":"lda","oa":9,"o":"joy_x","x":[8176]},{"a":8181,"t":"code","b":[240,85],"m":"beq","oa":8268,"o":"b_204C"},{"a":8183,"t":"code","b":[16,43],"m":"bpl","oa":8228,"o":"b_2024"},{"a":8185,"t":"code","b":[165,6],"m":"lda","oa":6,"o":"pete_col"},{"a":8187,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":8189,"t":"code","b":[240,77],"m":"beq","oa":8268,"o":"b_204C"},{"a":8191,"t":"code","b":[169,92],"m":"lda","o":"#$5C"},{"a":8193,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":8195,"t":"code","b":[32,140,33],"m":"jsr","oa":8588,"o":"can_enter"},{"a":8198,"t":"code","b":[176,68],"m":"bcs","oa":8268,"o":"b_204C"},{"a":8200,"t":"code","b":[198,6],"m":"dec","oa":6,"o":"pete_col"},{"a":8202,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":8204,"t":"code","b":[133,74],"m":"sta","oa":74,"o":"figure_dir"},{"a":8206,"t":"code","b":[166,45],"m":"ldx","oa":45,"o":"zpa_2D"},{"a":8208,"t":"code","b":[134,47],"m":"stx","oa":47,"o":"zpa_2F"},{"a":8210,"t":"code","b":[165,44],"m":"lda","oa":44,"o":"pete_cell"},{"a":8212,"t":"code","b":[133,46],"m":"sta","oa":46,"o":"pete_from"},{"a":8214,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":8216,"t":"code","b":[133,44],"m":"sta","oa":44,"o":"pete_cell"},{"a":8218,"t":"code","b":[138],"m":"txa"},{"a":8219,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":8221,"t":"code","b":[133,45],"m":"sta","oa":45,"o":"zpa_2D"},{"a":8223,"l":"b_201F","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[8266,8314,8356]},{"a":8225,"t":"code","b":[132,39],"m":"sty","oa":39,"o":"figure_step"},{"a":8227,"t":"code","b":[96],"m":"rts"},{"a":8228,"l":"b_2024","t":"code","b":[165,6],"m":"lda","oa":6,"o":"pete_col","x":[8183]},{"a":8230,"t":"code","b":[201,88],"m":"cmp","o":"#$58"},{"a":8232,"t":"code","b":[240,34],"m":"beq","oa":8268,"o":"b_204C"},{"a":8234,"t":"code","b":[169,90],"m":"lda","o":"#$5A"},{"a":8236,"t":"code","b":[162,4],"m":"ldx","o":"#$04"},{"a":8238,"t":"code","b":[32,140,33],"m":"jsr","oa":8588,"o":"can_enter"},{"a":8241,"t":"code","b":[176,25],"m":"bcs","oa":8268,"o":"b_204C"},{"a":8243,"t":"code","b":[230,6],"m":"inc","oa":6,"o":"pete_col"},{"a":8245,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":8247,"t":"code","b":[133,74],"m":"sta","oa":74,"o":"figure_dir"},{"a":8249,"t":"code","b":[166,45],"m":"ldx","oa":45,"o":"zpa_2D"},{"a":8251,"t":"code","b":[134,47],"m":"stx","oa":47,"o":"zpa_2F"},{"a":8253,"t":"code","b":[165,44],"m":"lda","oa":44,"o":"pete_cell"},{"a":8255,"t":"code","b":[133,46],"m":"sta","oa":46,"o":"pete_from"},{"a":8257,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":8259,"t":"code","b":[133,44],"m":"sta","oa":44,"o":"pete_cell"},{"a":8261,"t":"code","b":[138],"m":"txa"},{"a":8262,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":8264,"t":"code","b":[133,45],"m":"sta","oa":45,"o":"zpa_2D"},{"a":8266,"t":"code","b":[208,211],"m":"bne","oa":8223,"o":"b_201F"},{"a":8268,"l":"b_204C","t":"code","b":[165,10],"m":"lda","oa":10,"o":"joy_y","x":[8181,8189,8198,8232,8241]},{"a":8270,"t":"code","b":[208,1],"m":"bne","oa":8273,"o":"b_2051"},{"a":8272,"t":"code","b":[96],"m":"rts"},{"a":8273,"l":"b_2051","t":"code","b":[16,42],"m":"bpl","oa":8317,"o":"b_207D","x":[8270]},{"a":8275,"t":"code","b":[165,7],"m":"lda","oa":7,"o":"pete_row"},{"a":8277,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":8279,"t":"code","b":[208,1],"m":"bne","oa":8282,"o":"b_205A"},{"a":8281,"t":"code","b":[96],"m":"rts"},{"a":8282,"l":"b_205A","t":"code","b":[169,181],"m":"lda","o":"#$B5","x":[8279]},{"a":8284,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":8286,"t":"code","b":[32,140,33],"m":"jsr","oa":8588,"o":"can_enter"},{"a":8289,"t":"code","b":[176,32],"m":"bcs","oa":8323,"o":"r_2083"},{"a":8291,"t":"code","b":[198,7],"m":"dec","oa":7,"o":"pete_row"},{"a":8293,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":8295,"t":"code","b":[133,74],"m":"sta","oa":74,"o":"figure_dir"},{"a":8297,"t":"code","b":[166,45],"m":"ldx","oa":45,"o":"zpa_2D"},{"a":8299,"t":"code","b":[134,47],"m":"stx","oa":47,"o":"zpa_2F"},{"a":8301,"t":"code","b":[165,44],"m":"lda","oa":44,"o":"pete_cell"},{"a":8303,"t":"code","b":[133,46],"m":"sta","oa":46,"o":"pete_from"},{"a":8305,"t":"code","b":[233,89],"m":"sbc","o":"#$59"},{"a":8307,"t":"code","b":[133,44],"m":"sta","oa":44,"o":"pete_cell"},{"a":8309,"t":"code","b":[138],"m":"txa"},{"a":8310,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":8312,"t":"code","b":[133,45],"m":"sta","oa":45,"o":"zpa_2D"},{"a":8314,"t":"code","b":[76,31,32],"m":"jmp","oa":8223,"o":"b_201F"},{"a":8317,"l":"b_207D","t":"code","b":[165,7],"m":"lda","oa":7,"o":"pete_row","x":[8273]},{"a":8319,"t":"code","b":[201,21],"m":"cmp","o":"#$15"},{"a":8321,"t":"code","b":[208,1],"m":"bne","oa":8324,"o":"b_2084"},{"a":8323,"l":"r_2083","t":"code","b":[96],"m":"rts","x":[8289,8331]},{"a":8324,"l":"b_2084","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[8321]},{"a":8326,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":8328,"t":"code","b":[32,140,33],"m":"jsr","oa":8588,"o":"can_enter"},{"a":8331,"t":"code","b":[176,246],"m":"bcs","oa":8323,"o":"r_2083"},{"a":8333,"t":"code","b":[230,7],"m":"inc","oa":7,"o":"pete_row"},{"a":8335,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":8337,"t":"code","b":[133,74],"m":"sta","oa":74,"o":"figure_dir"},{"a":8339,"t":"code","b":[166,45],"m":"ldx","oa":45,"o":"zpa_2D"},{"a":8341,"t":"code","b":[134,47],"m":"stx","oa":47,"o":"zpa_2F"},{"a":8343,"t":"code","b":[165,44],"m":"lda","oa":44,"o":"pete_cell"},{"a":8345,"t":"code","b":[133,46],"m":"sta","oa":46,"o":"pete_from"},{"a":8347,"t":"code","b":[105,90],"m":"adc","o":"#$5A"},{"a":8349,"t":"code","b":[133,44],"m":"sta","oa":44,"o":"pete_cell"},{"a":8351,"t":"code","b":[138],"m":"txa"},{"a":8352,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":8354,"t":"code","b":[133,45],"m":"sta","oa":45,"o":"zpa_2D"},{"a":8356,"t":"code","b":[76,31,32],"m":"jmp","oa":8223,"o":"b_201F"},{"a":8359,"l":"read_controls","c":"Reads the controls into $09 (left $FF, right 1), $0A (up $FF, down 1) and $0B (fire, 8), keeping the last fire in $0C and the last $09 in $A6, for irq_play and the title's interrupt. With bit 7 of $A3 clear it reads the joystick in port 2 (all keyboard rows off at $FD30, then $FF08 written $FD); set, the keys A and S for left and right, P and L for up and down, and SPACE to fire.","t":"code","b":[165,9],"m":"lda","oa":9,"o":"joy_x","x":[6712,12577]},{"a":8361,"t":"code","b":[133,166],"m":"sta","oa":166,"o":"zpa_A6"},{"a":8363,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":8365,"t":"code","b":[134,9],"m":"stx","oa":9,"o":"joy_x"},{"a":8367,"t":"code","b":[134,10],"m":"stx","oa":10,"o":"joy_y"},{"a":8369,"t":"code","b":[165,11],"m":"lda","oa":11,"o":"fire"},{"a":8371,"t":"code","b":[133,12],"m":"sta","oa":12,"o":"fire_last"},{"a":8373,"t":"code","b":[36,163],"m":"bit","oa":163,"o":"controls"},{"a":8375,"t":"code","b":[48,39],"m":"bmi","oa":8416,"o":"b_20E0"},{"a":8377,"t":"code","b":[202],"m":"dex"},{"a":8378,"t":"code","b":[142,48,253],"m":"stx","o":"keyboard_latch"},{"a":8381,"t":"code","b":[169,253],"m":"lda","o":"#$FD"},{"a":8383,"t":"code","b":[141,8,255],"m":"sta","o":"ted_keyboard"},{"a":8386,"t":"code","b":[173,8,255],"m":"lda","o":"ted_keyboard"},{"a":8389,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":8390,"t":"code","b":[176,2],"m":"bcs","oa":8394,"o":"b_20CA"},{"a":8392,"t":"code","b":[198,10],"m":"dec","oa":10,"o":"joy_y"},{"a":8394,"l":"b_20CA","t":"code","b":[74],"m":"lsr","o":"a","x":[8390]},{"a":8395,"t":"code","b":[176,2],"m":"bcs","oa":8399,"o":"b_20CF"},{"a":8397,"t":"code","b":[230,10],"m":"inc","oa":10,"o":"joy_y"},{"a":8399,"l":"b_20CF","t":"code","b":[74],"m":"lsr","o":"a","x":[8395]},{"a":8400,"t":"code","b":[176,2],"m":"bcs","oa":8404,"o":"b_20D4"},{"a":8402,"t":"code","b":[198,9],"m":"dec","oa":9,"o":"joy_x"},{"a":8404,"l":"b_20D4","t":"code","b":[74],"m":"lsr","o":"a","x":[8400]},{"a":8405,"t":"code","b":[176,2],"m":"bcs","oa":8409,"o":"b_20D9"},{"a":8407,"t":"code","b":[230,9],"m":"inc","oa":9,"o":"joy_x"},{"a":8409,"l":"b_20D9","t":"code","b":[73,8],"m":"eor","o":"#$08","x":[8405]},{"a":8411,"t":"code","b":[41,8],"m":"and","o":"#$08"},{"a":8413,"t":"code","b":[133,11],"m":"sta","oa":11,"o":"fire"},{"a":8415,"t":"code","b":[96],"m":"rts"},{"a":8416,"l":"b_20E0","t":"code","b":[169,223],"m":"lda","o":"#$DF","x":[8375]},{"a":8418,"t":"code","b":[32,26,33],"m":"jsr","oa":8474,"o":"read_key_row"},{"a":8421,"t":"code","b":[44,36,33],"m":"bit","oa":8484,"o":"key_p"},{"a":8424,"t":"code","b":[208,2],"m":"bne","oa":8428,"o":"b_20EC"},{"a":8426,"t":"code","b":[198,10],"m":"dec","oa":10,"o":"joy_y"},{"a":8428,"l":"b_20EC","t":"code","b":[44,37,33],"m":"bit","oa":8485,"o":"key_l_a","x":[8424]},{"a":8431,"t":"code","b":[208,2],"m":"bne","oa":8435,"o":"b_20F3"},{"a":8433,"t":"code","b":[230,10],"m":"inc","oa":10,"o":"joy_y"},{"a":8435,"l":"b_20F3","t":"code","b":[169,253],"m":"lda","o":"#$FD","x":[8431]},{"a":8437,"t":"code","b":[32,26,33],"m":"jsr","oa":8474,"o":"read_key_row"},{"a":8440,"t":"code","b":[44,37,33],"m":"bit","oa":8485,"o":"key_l_a"},{"a":8443,"t":"code","b":[208,2],"m":"bne","oa":8447,"o":"b_20FF"},{"a":8445,"t":"code","b":[198,9],"m":"dec","oa":9,"o":"joy_x"},{"a":8447,"l":"b_20FF","t":"code","b":[44,39,33],"m":"bit","oa":8487,"o":"key_s","x":[8443]},{"a":8450,"t":"code","b":[208,2],"m":"bne","oa":8454,"o":"b_2106"},{"a":8452,"t":"code","b":[230,9],"m":"inc","oa":9,"o":"joy_x"},{"a":8454,"l":"b_2106","t":"code","b":[169,127],"m":"lda","o":"#$7F","x":[8450]},{"a":8456,"t":"code","b":[32,26,33],"m":"jsr","oa":8474,"o":"read_key_row"},{"a":8459,"t":"code","b":[44,38,33],"m":"bit","oa":8486,"o":"key_space_esc"},{"a":8462,"t":"code","b":[208,5],"m":"bne","oa":8469,"o":"b_2115"},{"a":8464,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":8466,"t":"code","b":[133,11],"m":"sta","oa":11,"o":"fire"},{"a":8468,"t":"code","b":[96],"m":"rts"},{"a":8469,"l":"b_2115","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[8462]},{"a":8471,"t":"code","b":[133,11],"m":"sta","oa":11,"o":"fire"},{"a":8473,"t":"code","b":[96],"m":"rts"},{"a":8474,"l":"read_key_row","c":"Reads one row of the keyboard: the row's select byte in A goes to $FD30 and $FF08, and the row's keys come back in A, 0 for a key held (kit/skills/c16/c16-reference, \"Keyboard and joysticks\").","t":"code","b":[141,48,253],"m":"sta","o":"keyboard_latch","x":[6717,8418,8437,8456,12586]},{"a":8477,"t":"code","b":[141,8,255],"m":"sta","o":"ted_keyboard"},{"a":8480,"t":"code","b":[173,8,255],"m":"lda","o":"ted_keyboard"},{"a":8483,"t":"code","b":[96],"m":"rts"},{"a":8484,"l":"key_p","c":"Keyboard bit masks read_controls tests, one byte each. $02 is P in row $DF (up).","t":"byte","b":[2],"x":[8421]},{"a":8485,"l":"key_l_a","c":"$04: L in row $DF (down) and A in row $FD (left), read_controls.","t":"byte","b":[4],"x":[8428,8440]},{"a":8486,"l":"key_space_esc","c":"$10: SPACE in row $7F (fire, read_controls) and ESC in row $BF (back to the title, irq_play).","t":"byte","b":[16],"x":[6720,8459]},{"a":8487,"l":"key_s","c":"$20: S in row $FD (right), read_controls.","t":"byte","b":[32],"x":[8447]},{"a":8488,"l":"check_ring","c":"Classifies the eight cells round a cell of the map, which is at $2C/$2D, Pete's cell, less the offset in A: the ring is read through the offsets at $2184 into $4F-$56, 0 for open (tunnel, water, a stick or an explosion, or its debris) and 1 for anything else. Returns carry set when any corner and its two sides are all open (top left, top right, bottom right or bottom left), carry clear when none is. can_enter calls it with the ring centred on the cell Pete wants to enter, so he cannot dig a tunnel that would open a two-by-two hole.","t":"code","b":[133,96],"m":"sta","oa":96,"o":"zpa_60","x":[8594]},{"a":8490,"t":"code","b":[165,44],"m":"lda","oa":44,"o":"pete_cell"},{"a":8492,"t":"code","b":[56],"m":"sec"},{"a":8493,"t":"code","b":[229,96],"m":"sbc","oa":96,"o":"zpa_60"},{"a":8495,"t":"code","b":[133,94],"m":"sta","oa":94,"o":"zpa_5E"},{"a":8497,"t":"code","b":[165,45],"m":"lda","oa":45,"o":"zpa_2D"},{"a":8499,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":8501,"t":"code","b":[133,95],"m":"sta","oa":95,"o":"zpa_5F"},{"a":8503,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":8505,"l":"b_2139","t":"code","b":[188,132,33],"m":"ldy","oa":8580,"o":"ring_offsets,x","x":[8541]},{"a":8508,"t":"code","b":[177,94],"m":"lda","oa":94,"o":"(zpa_5E),y"},{"a":8510,"t":"code","b":[240,26],"m":"beq","oa":8538,"o":"b_215A"},{"a":8512,"t":"code","b":[201,162],"m":"cmp","o":"#$A2"},{"a":8514,"t":"code","b":[240,16],"m":"beq","oa":8532,"o":"b_2154"},{"a":8516,"t":"code","b":[201,163],"m":"cmp","o":"#$A3"},{"a":8518,"t":"code","b":[240,12],"m":"beq","oa":8532,"o":"b_2154"},{"a":8520,"t":"code","b":[201,111],"m":"cmp","o":"#$6F"},{"a":8522,"t":"code","b":[240,8],"m":"beq","oa":8532,"o":"b_2154"},{"a":8524,"t":"code","b":[201,92],"m":"cmp","o":"#$5C"},{"a":8526,"t":"code","b":[144,8],"m":"bcc","oa":8536,"o":"b_2158"},{"a":8528,"t":"code","b":[201,109],"m":"cmp","o":"#$6D"},{"a":8530,"t":"code","b":[176,4],"m":"bcs","oa":8536,"o":"b_2158"},{"a":8532,"l":"b_2154","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[8514,8518,8522]},{"a":8534,"t":"code","b":[240,2],"m":"beq","oa":8538,"o":"b_215A"},{"a":8536,"l":"b_2158","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[8526,8530]},{"a":8538,"l":"b_215A","t":"code","b":[149,79],"m":"sta","oa":79,"o":"zpf_4F,x","x":[8510,8534]},{"a":8540,"t":"code","b":[202],"m":"dex"},{"a":8541,"t":"code","b":[16,218],"m":"bpl","oa":8505,"o":"b_2139"},{"a":8543,"t":"code","b":[24],"m":"clc"},{"a":8544,"t":"code","b":[165,79],"m":"lda","oa":79,"o":"zpf_4F"},{"a":8546,"t":"code","b":[101,80],"m":"adc","oa":80,"o":"zpa_50"},{"a":8548,"t":"code","b":[101,86],"m":"adc","oa":86,"o":"zpa_56"},{"a":8550,"t":"code","b":[240,26],"m":"beq","oa":8578,"o":"b_2182"},{"a":8552,"t":"code","b":[165,80],"m":"lda","oa":80,"o":"zpa_50"},{"a":8554,"t":"code","b":[101,81],"m":"adc","oa":81,"o":"zpa_51"},{"a":8556,"t":"code","b":[101,82],"m":"adc","oa":82,"o":"zpa_52"},{"a":8558,"t":"code","b":[240,18],"m":"beq","oa":8578,"o":"b_2182"},{"a":8560,"t":"code","b":[165,82],"m":"lda","oa":82,"o":"zpa_52"},{"a":8562,"t":"code","b":[101,83],"m":"adc","oa":83,"o":"zpa_53"},{"a":8564,"t":"code","b":[101,84],"m":"adc","oa":84,"o":"zpa_54"},{"a":8566,"t":"code","b":[240,10],"m":"beq","oa":8578,"o":"b_2182"},{"a":8568,"t":"code","b":[165,84],"m":"lda","oa":84,"o":"zpa_54"},{"a":8570,"t":"code","b":[101,85],"m":"adc","oa":85,"o":"zpa_55"},{"a":8572,"t":"code","b":[101,86],"m":"adc","oa":86,"o":"zpa_56"},{"a":8574,"t":"code","b":[240,2],"m":"beq","oa":8578,"o":"b_2182"},{"a":8576,"t":"code","b":[24],"m":"clc"},{"a":8577,"t":"code","b":[96],"m":"rts"},{"a":8578,"l":"b_2182","t":"code","b":[56],"m":"sec","x":[8550,8558,8566,8574]},{"a":8579,"t":"code","b":[96],"m":"rts"},{"a":8580,"l":"ring_offsets","c":"The eight cells round a cell, as offsets from the cell above and to the left of it, clockwise from there: 0, 1, 2 along the top, $5C on the right, $B6, $B5, $B4 along the bottom and $5A on the left (a map row is $5A, 90, cells long). Read by check_ring.","t":"byte","b":[0,1,2,92,182,181,180,90],"x":[8505]},{"a":8588,"l":"can_enter","c":"Whether Pete can step into the next cell in a direction; A holds the offset that puts the cell at the centre of check_ring's ring, X the direction (1 up, 2 down, 3 left, 4 right), kept in $69. Earth, tunnel, a stick, an explosion or debris (cleared to tunnel here) are entered unless check_ring finds the move would open a corner: carry clear to go. Anything else stops him (carry set), and is left in $65 with its address in $66/$67 for pete_touches: water kills him, a goodie is collected, a wall is only in the way.","t":"code","b":[134,105],"m":"stx","oa":105,"o":"zpa_69","x":[8195,8238,8286,8328]},{"a":8590,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":8592,"t":"code","b":[134,104],"m":"stx","oa":104,"o":"zpa_68"},{"a":8594,"t":"code","b":[32,40,33],"m":"jsr","oa":8488,"o":"check_ring"},{"a":8597,"t":"code","b":[38,104],"m":"rol","oa":104,"o":"zpa_68"},{"a":8599,"t":"code","b":[160,91],"m":"ldy","o":"#$5B"},{"a":8601,"t":"code","b":[177,94],"m":"lda","oa":94,"o":"(zpa_5E),y"},{"a":8603,"t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":8605,"t":"code","b":[176,3],"m":"bcs","oa":8610,"o":"b_21A2"},{"a":8607,"l":"b_219F","t":"code","b":[70,104],"m":"lsr","oa":104,"o":"zpa_68","x":[8612,8616,8626]},{"a":8609,"t":"code","b":[96],"m":"rts"},{"a":8610,"l":"b_21A2","t":"code","b":[201,111],"m":"cmp","o":"#$6F","x":[8605]},{"a":8612,"t":"code","b":[240,249],"m":"beq","oa":8607,"o":"b_219F"},{"a":8614,"t":"code","b":[201,162],"m":"cmp","o":"#$A2"},{"a":8616,"t":"code","b":[240,245],"m":"beq","oa":8607,"o":"b_219F"},{"a":8618,"t":"code","b":[201,163],"m":"cmp","o":"#$A3"},{"a":8620,"t":"code","b":[208,6],"m":"bne","oa":8628,"o":"b_21B4"},{"a":8622,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8624,"t":"code","b":[145,94],"m":"sta","oa":94,"o":"(zpa_5E),y"},{"a":8626,"t":"code","b":[240,235],"m":"beq","oa":8607,"o":"b_219F"},{"a":8628,"l":"b_21B4","t":"code","b":[133,101],"m":"sta","oa":101,"o":"pete_bumped","x":[8620]},{"a":8630,"t":"code","b":[165,94],"m":"lda","oa":94,"o":"zpa_5E"},{"a":8632,"t":"code","b":[24],"m":"clc"},{"a":8633,"t":"code","b":[105,91],"m":"adc","o":"#$5B"},{"a":8635,"t":"code","b":[133,102],"m":"sta","oa":102,"o":"zpa_66"},{"a":8637,"t":"code","b":[165,95],"m":"lda","oa":95,"o":"zpa_5F"},{"a":8639,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":8641,"t":"code","b":[133,103],"m":"sta","oa":103,"o":"zpa_67"},{"a":8643,"t":"code","b":[56],"m":"sec"},{"a":8644,"t":"code","b":[96],"m":"rts"},{"a":8645,"l":"let_water_in","c":"Called by move_pete when Pete has dug out a cell. If full water ($6C) stands above, beside or below the new tunnel, that water cell is turned back into the edge of a flow ($63 above, $6B left, $67 right, $5F below) and put on the water list (add_water), or, while the water is mid-step in the interrupt ($6B set), left for irq_play in $86-$89, so the flood runs on into the tunnel.","t":"code","b":[165,44],"m":"lda","oa":44,"o":"pete_cell","x":[8153]},{"a":8647,"t":"code","b":[56],"m":"sec"},{"a":8648,"t":"code","b":[233,90],"m":"sbc","o":"#$5A"},{"a":8650,"t":"code","b":[133,94],"m":"sta","oa":94,"o":"zpa_5E"},{"a":8652,"t":"code","b":[165,45],"m":"lda","oa":45,"o":"zpa_2D"},{"a":8654,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":8656,"t":"code","b":[133,95],"m":"sta","oa":95,"o":"zpa_5F"},{"a":8658,"t":"code","b":[166,7],"m":"ldx","oa":7,"o":"pete_row"},{"a":8660,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":8662,"t":"code","b":[177,94],"m":"lda","oa":94,"o":"(zpa_5E),y"},{"a":8664,"t":"code","b":[201,108],"m":"cmp","o":"#$6C"},{"a":8666,"t":"code","b":[208,52],"m":"bne","oa":8720,"o":"b_2210"},{"a":8668,"t":"code","b":[169,99],"m":"lda","o":"#$63"},{"a":8670,"t":"code","b":[202],"m":"dex"},{"a":8671,"l":"b_21DF","t":"code","b":[145,94],"m":"sta","oa":94,"o":"(zpa_5E),y","x":[8730,8742,8755]},{"a":8673,"t":"code","b":[36,107],"m":"bit","oa":107,"o":"zpa_6B"},{"a":8675,"t":"code","b":[208,26],"m":"bne","oa":8703,"o":"b_21FF"},{"a":8677,"t":"code","b":[230,107],"m":"inc","oa":107,"o":"zpa_6B"},{"a":8679,"t":"code","b":[134,90],"m":"stx","oa":90,"o":"zpa_5A"},{"a":8681,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":8683,"t":"code","b":[134,93],"m":"stx","oa":93,"o":"zpa_5D"},{"a":8685,"t":"code","b":[24],"m":"clc"},{"a":8686,"t":"code","b":[152],"m":"tya"},{"a":8687,"t":"code","b":[101,94],"m":"adc","oa":94,"o":"zpa_5E"},{"a":8689,"t":"code","b":[133,112],"m":"sta","oa":112,"o":"zpa_70"},{"a":8691,"t":"code","b":[165,95],"m":"lda","oa":95,"o":"zpa_5F"},{"a":8693,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":8695,"t":"code","b":[133,113],"m":"sta","oa":113,"o":"zpa_71"},{"a":8697,"t":"code","b":[32,207,37],"m":"jsr","oa":9679,"o":"add_water"},{"a":8700,"t":"code","b":[198,107],"m":"dec","oa":107,"o":"zpa_6B"},{"a":8702,"t":"code","b":[96],"m":"rts"},{"a":8703,"l":"b_21FF","t":"code","b":[134,134],"m":"stx","oa":134,"o":"zpa_86","x":[8675]},{"a":8705,"t":"code","b":[24],"m":"clc"},{"a":8706,"t":"code","b":[152],"m":"tya"},{"a":8707,"t":"code","b":[101,94],"m":"adc","oa":94,"o":"zpa_5E"},{"a":8709,"t":"code","b":[133,135],"m":"sta","oa":135,"o":"zpa_87"},{"a":8711,"t":"code","b":[165,95],"m":"lda","oa":95,"o":"zpa_5F"},{"a":8713,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":8715,"t":"code","b":[133,136],"m":"sta","oa":136,"o":"zpa_88"},{"a":8717,"t":"code","b":[133,137],"m":"sta","oa":137,"o":"zpa_89"},{"a":8719,"t":"code","b":[96],"m":"rts"},{"a":8720,"l":"b_2210","t":"code","b":[160,89],"m":"ldy","o":"#$59","x":[8666]},{"a":8722,"t":"code","b":[177,94],"m":"lda","oa":94,"o":"(zpa_5E),y"},{"a":8724,"t":"code","b":[201,108],"m":"cmp","o":"#$6C"},{"a":8726,"t":"code","b":[208,4],"m":"bne","oa":8732,"o":"b_221C"},{"a":8728,"t":"code","b":[169,107],"m":"lda","o":"#$6B"},{"a":8730,"t":"code","b":[208,195],"m":"bne","oa":8671,"o":"b_21DF"},{"a":8732,"l":"b_221C","t":"code","b":[160,91],"m":"ldy","o":"#$5B","x":[8726]},{"a":8734,"t":"code","b":[177,94],"m":"lda","oa":94,"o":"(zpa_5E),y"},{"a":8736,"t":"code","b":[201,108],"m":"cmp","o":"#$6C"},{"a":8738,"t":"code","b":[208,4],"m":"bne","oa":8744,"o":"b_2228"},{"a":8740,"t":"code","b":[169,103],"m":"lda","o":"#$67"},{"a":8742,"t":"code","b":[208,183],"m":"bne","oa":8671,"o":"b_21DF"},{"a":8744,"l":"b_2228","t":"code","b":[160,180],"m":"ldy","o":"#$B4","x":[8738]},{"a":8746,"t":"code","b":[177,94],"m":"lda","oa":94,"o":"(zpa_5E),y"},{"a":8748,"t":"code","b":[201,108],"m":"cmp","o":"#$6C"},{"a":8750,"t":"code","b":[208,5],"m":"bne","oa":8757,"o":"r_2235"},{"a":8752,"t":"code","b":[169,95],"m":"lda","o":"#$5F"},{"a":8754,"t":"code","b":[232],"m":"inx"},{"a":8755,"t":"code","b":[208,170],"m":"bne","oa":8671,"o":"b_21DF"},{"a":8757,"l":"r_2235","t":"code","b":[96],"m":"rts","x":[8750]},{"a":8758,"l":"build_figures","c":"Run once by start before the title. Builds the frames Pete and the creatures are drawn from, pre-shifted for each step of a move, in three pages: $0400 for up and down, $0500 for left, $0600 for right. Each page holds Pete's four steps at $00-$7F and a creature's at $80-$FF, $20 bytes a step: two characters of picture and two of mask (8 bytes each, picture, picture, mask, mask), the mask's ones keeping the earth behind. It clears the picture bytes and sets the masks to $FF, then copies each figure's two frames (a picture character and its mask character, from $1600-$16BF) into alternate steps: for up and down two rows lower each step, so the pair of characters is one above the other; for left and right side by side, then shifted right (shift_frames) 8, 6, 4 and 2 pixels for left's steps and 2, 4 and 6 for right's, two pixels (one multicolour pixel) a step.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[6217]},{"a":8760,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":8762,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":8764,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":8766,"t":"code","b":[162,4],"m":"ldx","o":"#$04"},{"a":8768,"t":"code","b":[134,14],"m":"stx","oa":14,"o":"zpa_0E"},{"a":8770,"t":"code","b":[232],"m":"inx"},{"a":8771,"t":"code","b":[134,16],"m":"stx","oa":16,"o":"zpa_10"},{"a":8773,"t":"code","b":[232],"m":"inx"},{"a":8774,"t":"code","b":[134,18],"m":"stx","oa":18,"o":"zpa_12"},{"a":8776,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":8778,"t":"code","b":[152],"m":"tya"},{"a":8779,"t":"code","b":[162,16],"m":"ldx","o":"#$10"},{"a":8781,"l":"b_224D","t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y","x":[8795]},{"a":8783,"t":"code","b":[145,15],"m":"sta","oa":15,"o":"(zpa_0F),y"},{"a":8785,"t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y"},{"a":8787,"t":"code","b":[202],"m":"dex"},{"a":8788,"t":"code","b":[208,4],"m":"bne","oa":8794,"o":"b_225A"},{"a":8790,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":8792,"t":"code","b":[162,16],"m":"ldx","o":"#$10"},{"a":8794,"l":"b_225A","t":"code","b":[200],"m":"iny","x":[8788]},{"a":8795,"t":"code","b":[208,240],"m":"bne","oa":8781,"o":"b_224D"},{"a":8797,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":8799,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":8801,"t":"code","b":[133,20],"m":"sta","oa":20,"o":"zpa_14"},{"a":8803,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8805,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":8807,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":8809,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":8811,"t":"code","b":[169,22],"m":"lda","o":"#$16"},{"a":8813,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":8815,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"zpa_10"},{"a":8817,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":8819,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"zpa_1F"},{"a":8821,"l":"b_2275","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[8870]},{"a":8823,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":8825,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":8827,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":8829,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":8831,"l":"b_227F","t":"code","b":[160,7],"m":"ldy","o":"#$07","x":[8866]},{"a":8833,"l":"b_2281","t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y","x":[8842]},{"a":8835,"t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y"},{"a":8837,"t":"code","b":[177,15],"m":"lda","oa":15,"o":"(zpa_0F),y"},{"a":8839,"t":"code","b":[145,19],"m":"sta","oa":19,"o":"(zpa_13),y"},{"a":8841,"t":"code","b":[136],"m":"dey"},{"a":8842,"t":"code","b":[16,245],"m":"bpl","oa":8833,"o":"b_2281"},{"a":8844,"t":"code","b":[24],"m":"clc"},{"a":8845,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":8847,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":8849,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":8851,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":8853,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":8855,"t":"code","b":[165,17],"m":"lda","oa":17,"o":"zpa_11"},{"a":8857,"t":"code","b":[105,34],"m":"adc","o":"#$22"},{"a":8859,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":8861,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":8863,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":8865,"t":"code","b":[202],"m":"dex"},{"a":8866,"t":"code","b":[208,219],"m":"bne","oa":8831,"o":"b_227F"},{"a":8868,"t":"code","b":[198,31],"m":"dec","oa":31,"o":"zpa_1F"},{"a":8870,"t":"code","b":[208,205],"m":"bne","oa":8821,"o":"b_2275"},{"a":8872,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":8874,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":8876,"t":"code","b":[169,144],"m":"lda","o":"#$90"},{"a":8878,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":8880,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":8882,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"zpa_1F"},{"a":8884,"l":"b_22B4","t":"code","b":[169,32],"m":"lda","o":"#$20","x":[8932]},{"a":8886,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":8888,"t":"code","b":[169,40],"m":"lda","o":"#$28"},{"a":8890,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":8892,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":8894,"l":"b_22BE","t":"code","b":[160,7],"m":"ldy","o":"#$07","x":[8928]},{"a":8896,"l":"b_22C0","t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y","x":[8905]},{"a":8898,"t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y"},{"a":8900,"t":"code","b":[177,15],"m":"lda","oa":15,"o":"(zpa_0F),y"},{"a":8902,"t":"code","b":[145,19],"m":"sta","oa":19,"o":"(zpa_13),y"},{"a":8904,"t":"code","b":[136],"m":"dey"},{"a":8905,"t":"code","b":[16,245],"m":"bpl","oa":8896,"o":"b_22C0"},{"a":8907,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":8909,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":8911,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":8913,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":8915,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":8917,"t":"code","b":[165,17],"m":"lda","oa":17,"o":"zpa_11"},{"a":8919,"t":"code","b":[105,34],"m":"adc","o":"#$22"},{"a":8921,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":8923,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":8925,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":8927,"t":"code","b":[202],"m":"dex"},{"a":8928,"t":"code","b":[208,220],"m":"bne","oa":8894,"o":"b_22BE"},{"a":8930,"t":"code","b":[198,31],"m":"dec","oa":31,"o":"zpa_1F"},{"a":8932,"t":"code","b":[208,206],"m":"bne","oa":8884,"o":"b_22B4"},{"a":8934,"t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":8936,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":8938,"t":"code","b":[133,20],"m":"sta","oa":20,"o":"zpa_14"},{"a":8940,"t":"code","b":[133,22],"m":"sta","oa":22,"o":"zpa_16"},{"a":8942,"t":"code","b":[133,24],"m":"sta","oa":24,"o":"zpa_18"},{"a":8944,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":8946,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"zpa_20"},{"a":8948,"l":"b_22F4","t":"code","b":[169,2],"m":"lda","o":"#$02","x":[9053]},{"a":8950,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"zpa_1F"},{"a":8952,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":8954,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":8956,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":8958,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":8960,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":8962,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":8964,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":8966,"t":"code","b":[133,23],"m":"sta","oa":23,"o":"zpa_17"},{"a":8968,"l":"b_2308","t":"code","b":[162,2],"m":"ldx","o":"#$02","x":[9039]},{"a":8970,"l":"b_230A","t":"code","b":[160,7],"m":"ldy","o":"#$07","x":[9016]},{"a":8972,"l":"b_230C","t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y","x":[8985]},{"a":8974,"t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y"},{"a":8976,"t":"code","b":[145,21],"m":"sta","oa":21,"o":"(zpa_15),y"},{"a":8978,"t":"code","b":[177,15],"m":"lda","oa":15,"o":"(zpa_0F),y"},{"a":8980,"t":"code","b":[145,19],"m":"sta","oa":19,"o":"(zpa_13),y"},{"a":8982,"t":"code","b":[145,23],"m":"sta","oa":23,"o":"(zpa_17),y"},{"a":8984,"t":"code","b":[136],"m":"dey"},{"a":8985,"t":"code","b":[16,241],"m":"bpl","oa":8972,"o":"b_230C"},{"a":8987,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":8989,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":8991,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":8993,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":8995,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":8997,"t":"code","b":[165,17],"m":"lda","oa":17,"o":"zpa_11"},{"a":8999,"t":"code","b":[105,32],"m":"adc","o":"#$20"},{"a":9001,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":9003,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":9005,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":9007,"t":"code","b":[105,48],"m":"adc","o":"#$30"},{"a":9009,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":9011,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":9013,"t":"code","b":[133,23],"m":"sta","oa":23,"o":"zpa_17"},{"a":9015,"t":"code","b":[202],"m":"dex"},{"a":9016,"t":"code","b":[208,208],"m":"bne","oa":8970,"o":"b_230A"},{"a":9018,"t":"code","b":[165,17],"m":"lda","oa":17,"o":"zpa_11"},{"a":9020,"t":"code","b":[105,64],"m":"adc","o":"#$40"},{"a":9022,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":9024,"t":"code","b":[24],"m":"clc"},{"a":9025,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":9027,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":9029,"t":"code","b":[105,48],"m":"adc","o":"#$30"},{"a":9031,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":9033,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":9035,"t":"code","b":[133,23],"m":"sta","oa":23,"o":"zpa_17"},{"a":9037,"t":"code","b":[198,31],"m":"dec","oa":31,"o":"zpa_1F"},{"a":9039,"t":"code","b":[208,183],"m":"bne","oa":8968,"o":"b_2308"},{"a":9041,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":9043,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":9045,"t":"code","b":[133,20],"m":"sta","oa":20,"o":"zpa_14"},{"a":9047,"t":"code","b":[133,22],"m":"sta","oa":22,"o":"zpa_16"},{"a":9049,"t":"code","b":[133,24],"m":"sta","oa":24,"o":"zpa_18"},{"a":9051,"t":"code","b":[198,32],"m":"dec","oa":32,"o":"zpa_20"},{"a":9053,"t":"code","b":[208,149],"m":"bne","oa":8948,"o":"b_22F4"},{"a":9055,"t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":9057,"t":"code","b":[162,15],"m":"ldx","o":"#$0F"},{"a":9059,"l":"b_2363","t":"code","b":[149,13],"m":"sta","oa":13,"o":"zpa_0D,x","x":[9063]},{"a":9061,"t":"code","b":[202],"m":"dex"},{"a":9062,"t":"code","b":[202],"m":"dex"},{"a":9063,"t":"code","b":[16,250],"m":"bpl","oa":9059,"o":"b_2363"},{"a":9065,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9067,"t":"code","b":[162,8],"m":"ldx","o":"#$08"},{"a":9069,"t":"code","b":[32,161,35],"m":"jsr","oa":9121,"o":"shift_frames"},{"a":9072,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":9074,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":9076,"t":"code","b":[32,161,35],"m":"jsr","oa":9121,"o":"shift_frames"},{"a":9079,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":9081,"t":"code","b":[162,4],"m":"ldx","o":"#$04"},{"a":9083,"t":"code","b":[32,161,35],"m":"jsr","oa":9121,"o":"shift_frames"},{"a":9086,"t":"code","b":[169,96],"m":"lda","o":"#$60"},{"a":9088,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":9090,"t":"code","b":[32,161,35],"m":"jsr","oa":9121,"o":"shift_frames"},{"a":9093,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":9095,"t":"code","b":[162,15],"m":"ldx","o":"#$0F"},{"a":9097,"l":"b_2389","t":"code","b":[149,13],"m":"sta","oa":13,"o":"zpa_0D,x","x":[9101]},{"a":9099,"t":"code","b":[202],"m":"dex"},{"a":9100,"t":"code","b":[202],"m":"dex"},{"a":9101,"t":"code","b":[16,250],"m":"bpl","oa":9097,"o":"b_2389"},{"a":9103,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":9105,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":9107,"t":"code","b":[32,161,35],"m":"jsr","oa":9121,"o":"shift_frames"},{"a":9110,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":9112,"t":"code","b":[162,4],"m":"ldx","o":"#$04"},{"a":9114,"t":"code","b":[32,161,35],"m":"jsr","oa":9121,"o":"shift_frames"},{"a":9117,"t":"code","b":[169,96],"m":"lda","o":"#$60"},{"a":9119,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":9121,"l":"shift_frames","c":"Shifts one step's frames in a page of build_figures' right by one pixel, X times: Pete's (at the low byte in A) and the creature's ($80 on), each two characters side by side, the picture with zeros coming in on the left and the mask with ones. The page is the high byte already in the odd pointers $0E-$1C.","t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D","x":[9069,9076,9083,9090,9107,9114]},{"a":9123,"t":"code","b":[24],"m":"clc"},{"a":9124,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":9126,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":9128,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":9130,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":9132,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":9134,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":9136,"t":"code","b":[105,104],"m":"adc","o":"#$68"},{"a":9138,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":9140,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":9142,"t":"code","b":[133,23],"m":"sta","oa":23,"o":"zpa_17"},{"a":9144,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":9146,"t":"code","b":[133,25],"m":"sta","oa":25,"o":"zpa_19"},{"a":9148,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":9150,"t":"code","b":[133,27],"m":"sta","oa":27,"o":"zpa_1B"},{"a":9152,"l":"b_23C0","t":"code","b":[160,7],"m":"ldy","o":"#$07","x":[9200]},{"a":9154,"l":"b_23C2","t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y","x":[9197]},{"a":9156,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9157,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":9159,"t":"code","b":[177,15],"m":"lda","oa":15,"o":"(zpa_0F),y"},{"a":9161,"t":"code","b":[106],"m":"ror","o":"a"},{"a":9162,"t":"code","b":[145,15],"m":"sta","oa":15,"o":"(zpa_0F),y"},{"a":9164,"t":"code","b":[177,17],"m":"lda","oa":17,"o":"(zpa_11),y"},{"a":9166,"t":"code","b":[56],"m":"sec"},{"a":9167,"t":"code","b":[106],"m":"ror","o":"a"},{"a":9168,"t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y"},{"a":9170,"t":"code","b":[177,19],"m":"lda","oa":19,"o":"(zpa_13),y"},{"a":9172,"t":"code","b":[106],"m":"ror","o":"a"},{"a":9173,"t":"code","b":[145,19],"m":"sta","oa":19,"o":"(zpa_13),y"},{"a":9175,"t":"code","b":[177,21],"m":"lda","oa":21,"o":"(zpa_15),y"},{"a":9177,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9178,"t":"code","b":[145,21],"m":"sta","oa":21,"o":"(zpa_15),y"},{"a":9180,"t":"code","b":[177,23],"m":"lda","oa":23,"o":"(zpa_17),y"},{"a":9182,"t":"code","b":[106],"m":"ror","o":"a"},{"a":9183,"t":"code","b":[145,23],"m":"sta","oa":23,"o":"(zpa_17),y"},{"a":9185,"t":"code","b":[177,25],"m":"lda","oa":25,"o":"(zpa_19),y"},{"a":9187,"t":"code","b":[56],"m":"sec"},{"a":9188,"t":"code","b":[106],"m":"ror","o":"a"},{"a":9189,"t":"code","b":[145,25],"m":"sta","oa":25,"o":"(zpa_19),y"},{"a":9191,"t":"code","b":[177,27],"m":"lda","oa":27,"o":"(zpa_1B),y"},{"a":9193,"t":"code","b":[106],"m":"ror","o":"a"},{"a":9194,"t":"code","b":[145,27],"m":"sta","oa":27,"o":"(zpa_1B),y"},{"a":9196,"t":"code","b":[136],"m":"dey"},{"a":9197,"t":"code","b":[16,211],"m":"bpl","oa":9154,"o":"b_23C2"},{"a":9199,"t":"code","b":[202],"m":"dex"},{"a":9200,"t":"code","b":[208,206],"m":"bne","oa":9152,"o":"b_23C0"},{"a":9202,"t":"code","b":[96],"m":"rts"},{"a":9203,"l":"water_step","c":"One step of the flood, called from irq_play every $7F frames (the level's water speed) once it has begun. For up to three steps in a row ($59) it fills the cells on the water list one stage (water_fill), and returns while any is still filling; after the third, or as soon as none is, it lets every cell that has filled flow on (water_flow). When that adds nothing to the list and the list is not empty, it clears $58 (nothing filling, so the water may rise) and flows again in the same step. The water is four characters to a stage: $5C-$5F rising from below, $60-$63 falling from above, $64-$67 flowing left, $68-$6B flowing right; $6C is full water.","t":"code","b":[165,89],"m":"lda","oa":89,"o":"zpa_59","x":[6880]},{"a":9205,"t":"code","b":[240,10],"m":"beq","oa":9217,"o":"b_2401"},{"a":9207,"t":"code","b":[32,24,36],"m":"jsr","oa":9240,"o":"water_fill"},{"a":9210,"t":"code","b":[165,88],"m":"lda","oa":88,"o":"water_filling"},{"a":9212,"t":"code","b":[240,3],"m":"beq","oa":9217,"o":"b_2401"},{"a":9214,"t":"code","b":[198,89],"m":"dec","oa":89,"o":"zpa_59"},{"a":9216,"t":"code","b":[96],"m":"rts"},{"a":9217,"l":"b_2401","t":"code","b":[32,78,36],"m":"jsr","oa":9294,"o":"water_flow","x":[9205,9212,9233]},{"a":9220,"t":"code","b":[165,110],"m":"lda","oa":110,"o":"zpa_6E"},{"a":9222,"t":"code","b":[208,11],"m":"bne","oa":9235,"o":"b_2413"},{"a":9224,"t":"code","b":[173,2,2],"m":"lda","oa":514,"o":"a_0202"},{"a":9227,"t":"code","b":[240,6],"m":"beq","oa":9235,"o":"b_2413"},{"a":9229,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9231,"t":"code","b":[133,88],"m":"sta","oa":88,"o":"water_filling"},{"a":9233,"t":"code","b":[240,238],"m":"beq","oa":9217,"o":"b_2401"},{"a":9235,"l":"b_2413","t":"code","b":[169,3],"m":"lda","o":"#$03","x":[9222,9227]},{"a":9237,"t":"code","b":[133,89],"m":"sta","oa":89,"o":"zpa_59"},{"a":9239,"t":"code","b":[96],"m":"rts"},{"a":9240,"l":"water_fill","c":"Moves every cell on the water list ($0200, three bytes each: address, then row) whose character has not reached the last of its four ($5F, $63, $67 or $6B) on by one. Leaves in $58 the row of the deepest cell it moved, or 0 when none was filling.","t":"code","b":[165,91],"m":"lda","oa":91,"o":"water_last","x":[9207]},{"a":9242,"t":"code","b":[133,93],"m":"sta","oa":93,"o":"zpa_5D"},{"a":9244,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9246,"t":"code","b":[133,88],"m":"sta","oa":88,"o":"water_filling"},{"a":9248,"l":"b_2420","t":"code","b":[164,93],"m":"ldy","oa":93,"o":"zpa_5D","x":[9291]},{"a":9250,"t":"code","b":[185,0,2],"m":"lda","oa":512,"o":"f_0200,y"},{"a":9253,"t":"code","b":[133,112],"m":"sta","oa":112,"o":"zpa_70"},{"a":9255,"t":"code","b":[185,1,2],"m":"lda","oa":513,"o":"a_0201,y"},{"a":9258,"t":"code","b":[133,113],"m":"sta","oa":113,"o":"zpa_71"},{"a":9260,"t":"code","b":[190,2,2],"m":"ldx","oa":514,"o":"a_0202,y"},{"a":9263,"t":"code","b":[240,28],"m":"beq","oa":9293,"o":"r_244D"},{"a":9265,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":9267,"t":"code","b":[177,112],"m":"lda","oa":112,"o":"(zpa_70),y"},{"a":9269,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":9271,"t":"code","b":[201,3],"m":"cmp","o":"#$03"},{"a":9273,"t":"code","b":[240,9],"m":"beq","oa":9284,"o":"b_2444"},{"a":9275,"t":"code","b":[177,112],"m":"lda","oa":112,"o":"(zpa_70),y"},{"a":9277,"t":"code","b":[24],"m":"clc"},{"a":9278,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":9280,"t":"code","b":[145,112],"m":"sta","oa":112,"o":"(zpa_70),y"},{"a":9282,"t":"code","b":[134,88],"m":"stx","oa":88,"o":"water_filling"},{"a":9284,"l":"b_2444","t":"code","b":[165,93],"m":"lda","oa":93,"o":"zpa_5D","x":[9273]},{"a":9286,"t":"code","b":[56],"m":"sec"},{"a":9287,"t":"code","b":[233,3],"m":"sbc","o":"#$03"},{"a":9289,"t":"code","b":[133,93],"m":"sta","oa":93,"o":"zpa_5D"},{"a":9291,"t":"code","b":[176,211],"m":"bcs","oa":9248,"o":"b_2420"},{"a":9293,"l":"r_244D","t":"code","b":[96],"m":"rts","x":[9263,9317]},{"a":9294,"l":"water_flow","c":"Goes through the water list ($0200, three bytes a cell: address low, high, row, deepest first) and lets each cell that has filled flow on. A cell that fell from above ($63) flows left, right and down; one that flowed left ($67) or right ($6B) flows on that way, down and up; one that rose from below ($5F) left, right and up. The cell becomes full water ($6C) and leaves the list (drop_water), unless flow_up holds it back as a rising edge ($5F); a cell still filling stays. Pointers to the cell and its neighbours are $70-$79 (the cell, above, below, left, right).","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[9217]},{"a":9296,"t":"code","b":[132,93],"m":"sty","oa":93,"o":"zpa_5D"},{"a":9298,"t":"code","b":[132,110],"m":"sty","oa":110,"o":"zpa_6E"},{"a":9300,"l":"j_2454","t":"code","b":[166,93],"m":"ldx","oa":93,"o":"zpa_5D","x":[9483]},{"a":9302,"t":"code","b":[189,0,2],"m":"lda","oa":512,"o":"f_0200,x"},{"a":9305,"t":"code","b":[133,112],"m":"sta","oa":112,"o":"zpa_70"},{"a":9307,"t":"code","b":[189,1,2],"m":"lda","oa":513,"o":"a_0201,x"},{"a":9310,"t":"code","b":[133,113],"m":"sta","oa":113,"o":"zpa_71"},{"a":9312,"t":"code","b":[189,2,2],"m":"lda","oa":514,"o":"a_0202,x"},{"a":9315,"t":"code","b":[133,90],"m":"sta","oa":90,"o":"zpa_5A"},{"a":9317,"t":"code","b":[240,230],"m":"beq","oa":9293,"o":"r_244D"},{"a":9319,"t":"code","b":[165,112],"m":"lda","oa":112,"o":"zpa_70"},{"a":9321,"t":"code","b":[56],"m":"sec"},{"a":9322,"t":"code","b":[233,90],"m":"sbc","o":"#$5A"},{"a":9324,"t":"code","b":[133,114],"m":"sta","oa":114,"o":"zpa_72"},{"a":9326,"t":"code","b":[165,113],"m":"lda","oa":113,"o":"zpa_71"},{"a":9328,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":9330,"t":"code","b":[133,115],"m":"sta","oa":115,"o":"zpa_73"},{"a":9332,"t":"code","b":[165,112],"m":"lda","oa":112,"o":"zpa_70"},{"a":9334,"t":"code","b":[105,89],"m":"adc","o":"#$59"},{"a":9336,"t":"code","b":[133,116],"m":"sta","oa":116,"o":"zpa_74"},{"a":9338,"t":"code","b":[165,113],"m":"lda","oa":113,"o":"zpa_71"},{"a":9340,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":9342,"t":"code","b":[133,117],"m":"sta","oa":117,"o":"zpa_75"},{"a":9344,"t":"code","b":[165,112],"m":"lda","oa":112,"o":"zpa_70"},{"a":9346,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":9348,"t":"code","b":[133,118],"m":"sta","oa":118,"o":"zpa_76"},{"a":9350,"t":"code","b":[165,113],"m":"lda","oa":113,"o":"zpa_71"},{"a":9352,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":9354,"t":"code","b":[133,119],"m":"sta","oa":119,"o":"zpa_77"},{"a":9356,"t":"code","b":[165,112],"m":"lda","oa":112,"o":"zpa_70"},{"a":9358,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":9360,"t":"code","b":[133,120],"m":"sta","oa":120,"o":"zpa_78"},{"a":9362,"t":"code","b":[165,113],"m":"lda","oa":113,"o":"zpa_71"},{"a":9364,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":9366,"t":"code","b":[133,121],"m":"sta","oa":121,"o":"zpa_79"},{"a":9368,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9370,"t":"code","b":[133,92],"m":"sta","oa":92,"o":"zpa_5C"},{"a":9372,"t":"code","b":[177,112],"m":"lda","oa":112,"o":"(zpa_70),y"},{"a":9374,"t":"code","b":[201,95],"m":"cmp","o":"#$5F"},{"a":9376,"t":"code","b":[144,80],"m":"bcc","oa":9458,"o":"b_24F2"},{"a":9378,"t":"code","b":[201,108],"m":"cmp","o":"#$6C"},{"a":9380,"t":"code","b":[176,76],"m":"bcs","oa":9458,"o":"b_24F2"},{"a":9382,"t":"code","b":[201,107],"m":"cmp","o":"#$6B"},{"a":9384,"t":"code","b":[208,16],"m":"bne","oa":9402,"o":"b_24BA"},{"a":9386,"t":"code","b":[169,108],"m":"lda","o":"#$6C"},{"a":9388,"t":"code","b":[145,112],"m":"sta","oa":112,"o":"(zpa_70),y"},{"a":9390,"t":"code","b":[32,43,37],"m":"jsr","oa":9515,"o":"flow_right"},{"a":9393,"t":"code","b":[32,69,37],"m":"jsr","oa":9541,"o":"flow_down"},{"a":9396,"t":"code","b":[32,108,37],"m":"jsr","oa":9580,"o":"flow_up"},{"a":9399,"t":"code","b":[76,244,36],"m":"jmp","oa":9460,"o":"j_24F4"},{"a":9402,"l":"b_24BA","t":"code","b":[201,103],"m":"cmp","o":"#$67","x":[9384]},{"a":9404,"t":"code","b":[208,16],"m":"bne","oa":9422,"o":"b_24CE"},{"a":9406,"t":"code","b":[169,108],"m":"lda","o":"#$6C"},{"a":9408,"t":"code","b":[145,112],"m":"sta","oa":112,"o":"(zpa_70),y"},{"a":9410,"t":"code","b":[32,17,37],"m":"jsr","oa":9489,"o":"flow_left"},{"a":9413,"t":"code","b":[32,69,37],"m":"jsr","oa":9541,"o":"flow_down"},{"a":9416,"t":"code","b":[32,108,37],"m":"jsr","oa":9580,"o":"flow_up"},{"a":9419,"t":"code","b":[76,244,36],"m":"jmp","oa":9460,"o":"j_24F4"},{"a":9422,"l":"b_24CE","t":"code","b":[201,99],"m":"cmp","o":"#$63","x":[9404]},{"a":9424,"t":"code","b":[208,16],"m":"bne","oa":9442,"o":"b_24E2"},{"a":9426,"t":"code","b":[169,108],"m":"lda","o":"#$6C"},{"a":9428,"t":"code","b":[145,112],"m":"sta","oa":112,"o":"(zpa_70),y"},{"a":9430,"t":"code","b":[32,17,37],"m":"jsr","oa":9489,"o":"flow_left"},{"a":9433,"t":"code","b":[32,43,37],"m":"jsr","oa":9515,"o":"flow_right"},{"a":9436,"t":"code","b":[32,69,37],"m":"jsr","oa":9541,"o":"flow_down"},{"a":9439,"t":"code","b":[76,244,36],"m":"jmp","oa":9460,"o":"j_24F4"},{"a":9442,"l":"b_24E2","t":"code","b":[201,95],"m":"cmp","o":"#$5F","x":[9424]},{"a":9444,"t":"code","b":[208,12],"m":"bne","oa":9458,"o":"b_24F2"},{"a":9446,"t":"code","b":[32,17,37],"m":"jsr","oa":9489,"o":"flow_left"},{"a":9449,"t":"code","b":[32,43,37],"m":"jsr","oa":9515,"o":"flow_right"},{"a":9452,"t":"code","b":[32,108,37],"m":"jsr","oa":9580,"o":"flow_up"},{"a":9455,"t":"code","b":[76,244,36],"m":"jmp","oa":9460,"o":"j_24F4"},{"a":9458,"l":"b_24F2","t":"code","b":[230,92],"m":"inc","oa":92,"o":"zpa_5C","x":[9376,9380,9444]},{"a":9460,"l":"j_24F4","t":"code","b":[165,92],"m":"lda","oa":92,"o":"zpa_5C","x":[9399,9419,9439,9455]},{"a":9462,"t":"code","b":[208,8],"m":"bne","oa":9472,"o":"b_2500"},{"a":9464,"t":"code","b":[32,169,37],"m":"jsr","oa":9641,"o":"drop_water"},{"a":9467,"t":"code","b":[165,93],"m":"lda","oa":93,"o":"zpa_5D"},{"a":9469,"t":"code","b":[76,7,37],"m":"jmp","oa":9479,"o":"j_2507"},{"a":9472,"l":"b_2500","t":"code","b":[165,93],"m":"lda","oa":93,"o":"zpa_5D","x":[9462]},{"a":9474,"t":"code","b":[24],"m":"clc"},{"a":9475,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":9477,"t":"code","b":[133,93],"m":"sta","oa":93,"o":"zpa_5D"},{"a":9479,"l":"j_2507","t":"code","b":[197,91],"m":"cmp","oa":91,"o":"water_last","x":[9469]},{"a":9481,"t":"code","b":[176,3],"m":"bcs","oa":9486,"o":"b_250E"},{"a":9483,"l":"b_250B","t":"code","b":[76,84,36],"m":"jmp","oa":9300,"o":"j_2454","x":[9486]},{"a":9486,"l":"b_250E","t":"code","b":[240,251],"m":"beq","oa":9483,"o":"b_250B","x":[9481]},{"a":9488,"t":"code","b":[96],"m":"rts"},{"a":9489,"l":"flow_left","c":"Starts water in the cell left of the one at $70 ($76/$77) when it is tunnel, a stick, an explosion or debris: character $64, put on the list with the same row (add_water).","t":"code","b":[177,118],"m":"lda","oa":118,"o":"(zpa_76),y","x":[9410,9430,9446]},{"a":9491,"t":"code","b":[208,9],"m":"bne","oa":9502,"o":"b_251E"},{"a":9493,"l":"b_2515","t":"code","b":[169,100],"m":"lda","o":"#$64","x":[9504,9508,9512]},{"a":9495,"t":"code","b":[145,118],"m":"sta","oa":118,"o":"(zpa_76),y"},{"a":9497,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":9499,"t":"code","b":[76,207,37],"m":"jmp","oa":9679,"o":"add_water"},{"a":9502,"l":"b_251E","t":"code","b":[201,163],"m":"cmp","o":"#$A3","x":[9491]},{"a":9504,"t":"code","b":[240,243],"m":"beq","oa":9493,"o":"b_2515"},{"a":9506,"t":"code","b":[201,111],"m":"cmp","o":"#$6F"},{"a":9508,"t":"code","b":[240,239],"m":"beq","oa":9493,"o":"b_2515"},{"a":9510,"t":"code","b":[201,162],"m":"cmp","o":"#$A2"},{"a":9512,"t":"code","b":[240,235],"m":"beq","oa":9493,"o":"b_2515"},{"a":9514,"t":"code","b":[96],"m":"rts"},{"a":9515,"l":"flow_right","c":"Starts water in the cell right of the one at $70 ($78/$79) when it is open: character $68, put on the list with the same row (add_water).","t":"code","b":[177,120],"m":"lda","oa":120,"o":"(zpa_78),y","x":[9390,9433,9449]},{"a":9517,"t":"code","b":[208,9],"m":"bne","oa":9528,"o":"b_2538"},{"a":9519,"l":"b_252F","t":"code","b":[169,104],"m":"lda","o":"#$68","x":[9530,9534,9538]},{"a":9521,"t":"code","b":[145,120],"m":"sta","oa":120,"o":"(zpa_78),y"},{"a":9523,"t":"code","b":[162,8],"m":"ldx","o":"#$08"},{"a":9525,"t":"code","b":[76,207,37],"m":"jmp","oa":9679,"o":"add_water"},{"a":9528,"l":"b_2538","t":"code","b":[201,163],"m":"cmp","o":"#$A3","x":[9517]},{"a":9530,"t":"code","b":[240,243],"m":"beq","oa":9519,"o":"b_252F"},{"a":9532,"t":"code","b":[201,111],"m":"cmp","o":"#$6F"},{"a":9534,"t":"code","b":[240,239],"m":"beq","oa":9519,"o":"b_252F"},{"a":9536,"t":"code","b":[201,162],"m":"cmp","o":"#$A2"},{"a":9538,"t":"code","b":[240,235],"m":"beq","oa":9519,"o":"b_252F"},{"a":9540,"t":"code","b":[96],"m":"rts"},{"a":9541,"l":"flow_down","c":"Starts water in the cell below the one at $70 ($74/$75) when it is open: character $60, put on the list one row deeper (add_water), and $58 raised to that row if it is deeper.","t":"code","b":[177,116],"m":"lda","oa":116,"o":"(zpa_74),y","x":[9393,9413,9436]},{"a":9543,"t":"code","b":[208,22],"m":"bne","oa":9567,"o":"b_255F"},{"a":9545,"l":"b_2549","t":"code","b":[169,96],"m":"lda","o":"#$60","x":[9569,9573,9577]},{"a":9547,"t":"code","b":[145,116],"m":"sta","oa":116,"o":"(zpa_74),y"},{"a":9549,"t":"code","b":[230,90],"m":"inc","oa":90,"o":"zpa_5A"},{"a":9551,"t":"code","b":[162,4],"m":"ldx","o":"#$04"},{"a":9553,"t":"code","b":[32,207,37],"m":"jsr","oa":9679,"o":"add_water"},{"a":9556,"t":"code","b":[166,90],"m":"ldx","oa":90,"o":"zpa_5A"},{"a":9558,"t":"code","b":[198,90],"m":"dec","oa":90,"o":"zpa_5A"},{"a":9560,"t":"code","b":[228,88],"m":"cpx","oa":88,"o":"water_filling"},{"a":9562,"t":"code","b":[144,3],"m":"bcc","oa":9567,"o":"b_255F"},{"a":9564,"t":"code","b":[134,88],"m":"stx","oa":88,"o":"water_filling"},{"a":9566,"t":"code","b":[96],"m":"rts"},{"a":9567,"l":"b_255F","t":"code","b":[201,163],"m":"cmp","o":"#$A3","x":[9543,9562]},{"a":9569,"t":"code","b":[240,230],"m":"beq","oa":9545,"o":"b_2549"},{"a":9571,"t":"code","b":[201,111],"m":"cmp","o":"#$6F"},{"a":9573,"t":"code","b":[240,226],"m":"beq","oa":9545,"o":"b_2549"},{"a":9575,"t":"code","b":[201,162],"m":"cmp","o":"#$A2"},{"a":9577,"t":"code","b":[240,222],"m":"beq","oa":9545,"o":"b_2549"},{"a":9579,"t":"code","b":[96],"m":"rts"},{"a":9580,"l":"flow_up","c":"Water rises into the cell above the one at $70 ($72/$73), as character $5C, when that cell is open and either it is no higher than the highest row the water has reached ($57) or nothing is still filling ($58 = 0); a higher row is kept in $57. When the cell above is open but the water may not rise yet, the cell stays a rising edge ($5F) and stays on the list. In every other case it becomes full water ($6C).","t":"code","b":[177,114],"m":"lda","oa":114,"o":"(zpa_72),y","x":[9396,9416,9452]},{"a":9582,"t":"code","b":[240,12],"m":"beq","oa":9596,"o":"b_257C"},{"a":9584,"t":"code","b":[201,163],"m":"cmp","o":"#$A3"},{"a":9586,"t":"code","b":[240,8],"m":"beq","oa":9596,"o":"b_257C"},{"a":9588,"t":"code","b":[201,111],"m":"cmp","o":"#$6F"},{"a":9590,"t":"code","b":[240,4],"m":"beq","oa":9596,"o":"b_257C"},{"a":9592,"t":"code","b":[201,162],"m":"cmp","o":"#$A2"},{"a":9594,"t":"code","b":[208,40],"m":"bne","oa":9636,"o":"b_25A4"},{"a":9596,"l":"b_257C","t":"code","b":[166,90],"m":"ldx","oa":90,"o":"zpa_5A","x":[9582,9586,9590]},{"a":9598,"t":"code","b":[202],"m":"dex"},{"a":9599,"t":"code","b":[228,87],"m":"cpx","oa":87,"o":"water_top"},{"a":9601,"t":"code","b":[176,11],"m":"bcs","oa":9614,"o":"b_258E"},{"a":9603,"t":"code","b":[165,88],"m":"lda","oa":88,"o":"water_filling"},{"a":9605,"t":"code","b":[240,7],"m":"beq","oa":9614,"o":"b_258E"},{"a":9607,"t":"code","b":[169,95],"m":"lda","o":"#$5F"},{"a":9609,"t":"code","b":[145,112],"m":"sta","oa":112,"o":"(zpa_70),y"},{"a":9611,"t":"code","b":[230,92],"m":"inc","oa":92,"o":"zpa_5C"},{"a":9613,"t":"code","b":[96],"m":"rts"},{"a":9614,"l":"b_258E","t":"code","b":[169,92],"m":"lda","o":"#$5C","x":[9601,9605]},{"a":9616,"t":"code","b":[145,114],"m":"sta","oa":114,"o":"(zpa_72),y"},{"a":9618,"t":"code","b":[198,90],"m":"dec","oa":90,"o":"zpa_5A"},{"a":9620,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":9622,"t":"code","b":[32,207,37],"m":"jsr","oa":9679,"o":"add_water"},{"a":9625,"t":"code","b":[230,90],"m":"inc","oa":90,"o":"zpa_5A"},{"a":9627,"t":"code","b":[166,90],"m":"ldx","oa":90,"o":"zpa_5A"},{"a":9629,"t":"code","b":[202],"m":"dex"},{"a":9630,"t":"code","b":[228,87],"m":"cpx","oa":87,"o":"water_top"},{"a":9632,"t":"code","b":[176,2],"m":"bcs","oa":9636,"o":"b_25A4"},{"a":9634,"t":"code","b":[134,87],"m":"stx","oa":87,"o":"water_top"},{"a":9636,"l":"b_25A4","t":"code","b":[169,108],"m":"lda","o":"#$6C","x":[9594,9632]},{"a":9638,"t":"code","b":[145,112],"m":"sta","oa":112,"o":"(zpa_70),y"},{"a":9640,"t":"code","b":[96],"m":"rts"},{"a":9641,"l":"drop_water","c":"Takes the cell at index $5D off the water list, moving the rest up, and shortens the list ($5B).","t":"code","b":[166,93],"m":"ldx","oa":93,"o":"zpa_5D","x":[9464]},{"a":9643,"l":"b_25AB","t":"code","b":[189,3,2],"m":"lda","oa":515,"o":"f_0203,x","x":[9666,9668]},{"a":9646,"t":"code","b":[157,0,2],"m":"sta","oa":512,"o":"f_0200,x"},{"a":9649,"t":"code","b":[189,4,2],"m":"lda","oa":516,"o":"f_0204,x"},{"a":9652,"t":"code","b":[157,1,2],"m":"sta","oa":513,"o":"a_0201,x"},{"a":9655,"t":"code","b":[189,5,2],"m":"lda","oa":517,"o":"f_0205,x"},{"a":9658,"t":"code","b":[157,2,2],"m":"sta","oa":514,"o":"a_0202,x"},{"a":9661,"t":"code","b":[232],"m":"inx"},{"a":9662,"t":"code","b":[232],"m":"inx"},{"a":9663,"t":"code","b":[232],"m":"inx"},{"a":9664,"t":"code","b":[228,91],"m":"cpx","oa":91,"o":"water_last"},{"a":9666,"t":"code","b":[144,231],"m":"bcc","oa":9643,"o":"b_25AB"},{"a":9668,"t":"code","b":[240,229],"m":"beq","oa":9643,"o":"b_25AB"},{"a":9670,"t":"code","b":[165,91],"m":"lda","oa":91,"o":"water_last"},{"a":9672,"t":"code","b":[240,4],"m":"beq","oa":9678,"o":"r_25CE"},{"a":9674,"t":"code","b":[233,3],"m":"sbc","o":"#$03"},{"a":9676,"t":"code","b":[133,91],"m":"sta","oa":91,"o":"water_last"},{"a":9678,"l":"r_25CE","t":"code","b":[96],"m":"rts","x":[9672]},{"a":9679,"l":"add_water","c":"Puts a cell on the water list ($0200), kept in order of row, deepest first: the address from the pair at $70 + X (X is 0, 2, 4, 6 or 8 for the cell, above, below, left or right), the row from $5A. Lengthens the list ($5B), moves $5D on if the new cell went in before it, and sets $6E to say the list grew.","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[6862,8697,9499,9525,9553,9622]},{"a":9681,"l":"b_25D1","t":"code","b":[185,2,2],"m":"lda","oa":514,"o":"a_0202,y","x":[9693]},{"a":9684,"t":"code","b":[240,45],"m":"beq","oa":9731,"o":"b_2603"},{"a":9686,"t":"code","b":[197,90],"m":"cmp","oa":90,"o":"zpa_5A"},{"a":9688,"t":"code","b":[144,5],"m":"bcc","oa":9695,"o":"b_25DF"},{"a":9690,"t":"code","b":[200],"m":"iny"},{"a":9691,"t":"code","b":[200],"m":"iny"},{"a":9692,"t":"code","b":[200],"m":"iny"},{"a":9693,"t":"code","b":[208,242],"m":"bne","oa":9681,"o":"b_25D1"},{"a":9695,"l":"b_25DF","t":"code","b":[132,111],"m":"sty","oa":111,"o":"zpa_6F","x":[9688]},{"a":9697,"t":"code","b":[164,91],"m":"ldy","oa":91,"o":"water_last"},{"a":9699,"l":"b_25E3","t":"code","b":[185,0,2],"m":"lda","oa":512,"o":"f_0200,y","x":[9726]},{"a":9702,"t":"code","b":[153,3,2],"m":"sta","oa":515,"o":"f_0203,y"},{"a":9705,"t":"code","b":[185,1,2],"m":"lda","oa":513,"o":"a_0201,y"},{"a":9708,"t":"code","b":[153,4,2],"m":"sta","oa":516,"o":"f_0204,y"},{"a":9711,"t":"code","b":[185,2,2],"m":"lda","oa":514,"o":"a_0202,y"},{"a":9714,"t":"code","b":[153,5,2],"m":"sta","oa":517,"o":"f_0205,y"},{"a":9717,"t":"code","b":[136],"m":"dey"},{"a":9718,"t":"code","b":[136],"m":"dey"},{"a":9719,"t":"code","b":[136],"m":"dey"},{"a":9720,"t":"code","b":[192,253],"m":"cpy","o":"#$FD"},{"a":9722,"t":"code","b":[240,4],"m":"beq","oa":9728,"o":"b_2600"},{"a":9724,"t":"code","b":[196,111],"m":"cpy","oa":111,"o":"zpa_6F"},{"a":9726,"t":"code","b":[176,227],"m":"bcs","oa":9699,"o":"b_25E3"},{"a":9728,"l":"b_2600","t":"code","b":[200],"m":"iny","x":[9722]},{"a":9729,"t":"code","b":[200],"m":"iny"},{"a":9730,"t":"code","b":[200],"m":"iny"},{"a":9731,"l":"b_2603","t":"code","b":[181,112],"m":"lda","oa":112,"o":"zpa_70,x","x":[9684]},{"a":9733,"t":"code","b":[153,0,2],"m":"sta","oa":512,"o":"f_0200,y"},{"a":9736,"t":"code","b":[181,113],"m":"lda","oa":113,"o":"zpa_71,x"},{"a":9738,"t":"code","b":[153,1,2],"m":"sta","oa":513,"o":"a_0201,y"},{"a":9741,"t":"code","b":[165,90],"m":"lda","oa":90,"o":"zpa_5A"},{"a":9743,"t":"code","b":[153,2,2],"m":"sta","oa":514,"o":"a_0202,y"},{"a":9746,"t":"code","b":[165,91],"m":"lda","oa":91,"o":"water_last"},{"a":9748,"t":"code","b":[24],"m":"clc"},{"a":9749,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":9751,"t":"code","b":[133,91],"m":"sta","oa":91,"o":"water_last"},{"a":9753,"t":"code","b":[196,93],"m":"cpy","oa":93,"o":"zpa_5D"},{"a":9755,"t":"code","b":[240,2],"m":"beq","oa":9759,"o":"b_261F"},{"a":9757,"t":"code","b":[176,7],"m":"bcs","oa":9766,"o":"b_2626"},{"a":9759,"l":"b_261F","t":"code","b":[165,93],"m":"lda","oa":93,"o":"zpa_5D","x":[9755]},{"a":9761,"t":"code","b":[24],"m":"clc"},{"a":9762,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":9764,"t":"code","b":[133,93],"m":"sta","oa":93,"o":"zpa_5D"},{"a":9766,"l":"b_2626","t":"code","b":[160,255],"m":"ldy","o":"#$FF","x":[9757]},{"a":9768,"t":"code","b":[132,110],"m":"sty","oa":110,"o":"zpa_6E"},{"a":9770,"t":"code","b":[200],"m":"iny"},{"a":9771,"t":"code","b":[96],"m":"rts"},{"a":9772,"l":"draw_figures","c":"Draws Pete and the active creatures, called from irq_play once a frame after stamp_figures has put their characters into the map. Figure X (0 Pete, 1 to 4 the creatures) is two characters, $CE + 2X and the one after it ($1670 + 16X), over the cell it is in and the cell it is moving to. Each of their 8 rows is the background character's row ANDed with the mask and ORed with the picture of build_figures' frames for the figure's direction and step (the page: $04 up and down, $05 left, $06 right; Pete or creature half; $20 a step, counted backwards going up). The addresses are written into the instructions at $26C7-$26DC before the loop runs. The backgrounds are the map characters stamp_figures saved ($40 + 2X, $41 + 2X), swapped when moving up or left. Pete standing still is one character, $CE, from his standing picture and mask ($6D, $6E at $1368 and $1370).","t":"code","b":[169,4],"m":"lda","o":"#$04","x":[6746]},{"a":9774,"t":"code","b":[133,33],"m":"sta","oa":33,"o":"zpa_21"},{"a":9776,"l":"j_2630","t":"code","b":[166,33],"m":"ldx","oa":33,"o":"zpa_21","x":[9958]},{"a":9778,"t":"code","b":[181,34],"m":"lda","oa":34,"o":"figure_on,x"},{"a":9780,"t":"code","b":[208,3],"m":"bne","oa":9785,"o":"b_2639"},{"a":9782,"t":"code","b":[76,226,38],"m":"jmp","oa":9954,"o":"j_26E2"},{"a":9785,"l":"b_2639","t":"code","b":[138],"m":"txa","x":[9780]},{"a":9786,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9787,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9788,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9789,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9790,"t":"code","b":[105,112],"m":"adc","o":"#$70"},{"a":9792,"t":"code","b":[141,209,38],"m":"sta","oa":9937,"o":"out1_lo"},{"a":9795,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":9797,"t":"code","b":[141,221,38],"m":"sta","oa":9949,"o":"out2_lo"},{"a":9800,"t":"code","b":[180,74],"m":"ldy","oa":74,"o":"figure_dir,x"},{"a":9802,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":9804,"t":"code","b":[192,3],"m":"cpy","o":"#$03"},{"a":9806,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":9808,"t":"code","b":[192,4],"m":"cpy","o":"#$04"},{"a":9810,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":9812,"t":"code","b":[141,204,38],"m":"sta","oa":9932,"o":"mask1_page"},{"a":9815,"t":"code","b":[141,207,38],"m":"sta","oa":9935,"o":"pic1_page"},{"a":9818,"t":"code","b":[141,216,38],"m":"sta","oa":9944,"o":"mask2_page"},{"a":9821,"t":"code","b":[141,219,38],"m":"sta","oa":9947,"o":"pic2_page"},{"a":9824,"t":"code","b":[192,1],"m":"cpy","o":"#$01"},{"a":9826,"t":"code","b":[208,6],"m":"bne","oa":9834,"o":"b_266A"},{"a":9828,"t":"code","b":[181,39],"m":"lda","oa":39,"o":"figure_step,x"},{"a":9830,"t":"code","b":[73,3],"m":"eor","o":"#$03"},{"a":9832,"t":"code","b":[168],"m":"tay"},{"a":9833,"t":"code","b":[44,180,39],"m":"bit","oa":10164,"o":"a_27B4"},{"a":9836,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":9838,"t":"code","b":[224,1],"m":"cpx","o":"#$01"},{"a":9840,"t":"code","b":[106],"m":"ror","o":"a"},{"a":9841,"t":"code","b":[121,234,38],"m":"adc","oa":9962,"o":"step_offsets,y"},{"a":9844,"t":"code","b":[141,206,38],"m":"sta","oa":9934,"o":"pic1_lo"},{"a":9847,"t":"code","b":[105,16],"m":"adc","o":"#$10"},{"a":9849,"t":"code","b":[141,203,38],"m":"sta","oa":9931,"o":"mask1_lo"},{"a":9852,"t":"code","b":[233,7],"m":"sbc","o":"#$07"},{"a":9854,"t":"code","b":[141,218,38],"m":"sta","oa":9946,"o":"pic2_lo"},{"a":9857,"t":"code","b":[105,15],"m":"adc","o":"#$0F"},{"a":9859,"t":"code","b":[141,215,38],"m":"sta","oa":9943,"o":"mask2_lo"},{"a":9862,"t":"code","b":[138],"m":"txa"},{"a":9863,"t":"code","b":[10],"m":"asl","o":"a"},{"a":9864,"t":"code","b":[170],"m":"tax"},{"a":9865,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":9867,"t":"code","b":[141,201,38],"m":"sta","oa":9929,"o":"bg1_hi"},{"a":9870,"t":"code","b":[141,213,38],"m":"sta","oa":9941,"o":"bg2_hi"},{"a":9873,"t":"code","b":[181,64],"m":"lda","oa":64,"o":"under_figures,x"},{"a":9875,"t":"code","b":[141,200,38],"m":"sta","oa":9928,"o":"bg1_lo"},{"a":9878,"t":"code","b":[181,65],"m":"lda","oa":65,"o":"zpf_41,x"},{"a":9880,"t":"code","b":[141,212,38],"m":"sta","oa":9940,"o":"bg2_lo"},{"a":9883,"t":"code","b":[166,33],"m":"ldx","oa":33,"o":"zpa_21"},{"a":9885,"t":"code","b":[181,74],"m":"lda","oa":74,"o":"figure_dir,x"},{"a":9887,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":9888,"t":"code","b":[176,12],"m":"bcs","oa":9902,"o":"b_26AE"},{"a":9890,"t":"code","b":[173,200,38],"m":"lda","oa":9928,"o":"bg1_lo"},{"a":9893,"t":"code","b":[174,212,38],"m":"ldx","oa":9940,"o":"bg2_lo"},{"a":9896,"t":"code","b":[141,212,38],"m":"sta","oa":9940,"o":"bg2_lo"},{"a":9899,"t":"code","b":[142,200,38],"m":"stx","oa":9928,"o":"bg1_lo"},{"a":9902,"l":"b_26AE","t":"code","b":[162,3],"m":"ldx","o":"#$03","x":[9888]},{"a":9904,"l":"b_26B0","t":"code","b":[14,200,38],"m":"asl","oa":9928,"o":"bg1_lo","x":[9917]},{"a":9907,"t":"code","b":[46,201,38],"m":"rol","oa":9929,"o":"bg1_hi"},{"a":9910,"t":"code","b":[14,212,38],"m":"asl","oa":9940,"o":"bg2_lo"},{"a":9913,"t":"code","b":[46,213,38],"m":"rol","oa":9941,"o":"bg2_hi"},{"a":9916,"t":"code","b":[202],"m":"dex"},{"a":9917,"t":"code","b":[208,241],"m":"bne","oa":9904,"o":"b_26B0"},{"a":9919,"t":"code","b":[160,7],"m":"ldy","o":"#$07"},{"a":9921,"t":"code","b":[166,33],"m":"ldx","oa":33,"o":"zpa_21"},{"a":9923,"t":"code","b":[181,74],"m":"lda","oa":74,"o":"figure_dir,x"},{"a":9925,"t":"code","b":[240,39],"m":"beq","oa":9966,"o":"draw_standing"},{"a":9927,"l":"b_26C7","t":"code","b":[185,255,255],"m":"lda","o":"$FFFF,y","x":[9952]},{"a":9928,"t":"note","l":"bg1_lo","c":"Operand of the LDA at $26C7, which draw_figures writes: the low byte of the first background character's row, the character's code times 8, its high byte at $26C9.","note":"inside the item at $26C7","x":[9875,9890,9899,9904]},{"a":9929,"t":"note","l":"bg1_hi","c":"High byte of the LDA at $26C7: $10 plus the first background character's code divided by 32, so the row is read from the character set at $1000.","note":"inside the item at $26C7","x":[9867,9907]},{"a":9930,"t":"code","b":[57,255,255],"m":"and","o":"$FFFF,y"},{"a":9931,"t":"note","l":"mask1_lo","c":"Operand of the AND at $26CA, which draw_figures writes: the low byte of the first character's mask in build_figures' frames ($10 past the picture).","note":"inside the item at $26CA","x":[9849]},{"a":9932,"t":"note","l":"mask1_page","c":"High byte of the AND at $26CA: the page of the frames for the direction ($04, $05 or $06).","note":"inside the item at $26CA","x":[9812]},{"a":9933,"t":"code","b":[25,255,255],"m":"ora","o":"$FFFF,y"},{"a":9934,"t":"note","l":"pic1_lo","c":"Operand of the ORA at $26CD, which draw_figures writes: the low byte of the first character's picture, $20 for each step, plus $80 for a creature.","note":"inside the item at $26CD","x":[9844]},{"a":9935,"t":"note","l":"pic1_page","c":"High byte of the ORA at $26CD: the page of the frames for the direction.","note":"inside the item at $26CD","x":[9815]},{"a":9936,"t":"code","b":[153,0,22],"m":"sta","oa":5632,"o":"chr_frames,y"},{"a":9937,"t":"note","l":"out1_lo","c":"Low byte of the STA at $26D0: where the first character of the figure goes, $1670 + 16 times the figure's number.","note":"inside the item at $26D0","x":[9792]},{"a":9939,"t":"code","b":[185,255,255],"m":"lda","o":"$FFFF,y"},{"a":9940,"t":"note","l":"bg2_lo","c":"Operand of the LDA at $26D3, which draw_figures writes: the low byte of the second background character's row, the character's code times 8.","note":"inside the item at $26D3","x":[9880,9893,9896,9910,9966]},{"a":9941,"t":"note","l":"bg2_hi","c":"High byte of the LDA at $26D3, in the character set at $1000.","note":"inside the item at $26D3","x":[9870,9913,9972]},{"a":9942,"t":"code","b":[57,255,255],"m":"and","o":"$FFFF,y"},{"a":9943,"t":"note","l":"mask2_lo","c":"Operand of the AND at $26D6: the low byte of the second character's mask ($18 past the first's picture).","note":"inside the item at $26D6","x":[9859]},{"a":9944,"t":"note","l":"mask2_page","c":"High byte of the AND at $26D6: the page of the frames for the direction.","note":"inside the item at $26D6","x":[9818]},{"a":9945,"t":"code","b":[25,255,255],"m":"ora","o":"$FFFF,y"},{"a":9946,"t":"note","l":"pic2_lo","c":"Operand of the ORA at $26D9: the low byte of the second character's picture (8 past the first's).","note":"inside the item at $26D9","x":[9854]},{"a":9947,"t":"note","l":"pic2_page","c":"High byte of the ORA at $26D9: the page of the frames for the direction.","note":"inside the item at $26D9","x":[9821]},{"a":9948,"t":"code","b":[153,0,22],"m":"sta","oa":5632,"o":"chr_frames,y"},{"a":9949,"t":"note","l":"out2_lo","c":"Low byte of the STA at $26DC: where the second character of the figure goes, 8 past the first.","note":"inside the item at $26DC","x":[9797]},{"a":9951,"t":"code","b":[136],"m":"dey"},{"a":9952,"t":"code","b":[16,229],"m":"bpl","oa":9927,"o":"b_26C7"},{"a":9954,"l":"j_26E2","t":"code","b":[198,33],"m":"dec","oa":33,"o":"zpa_21","x":[9782]},{"a":9956,"t":"code","b":[48,3],"m":"bmi","oa":9961,"o":"r_26E9"},{"a":9958,"t":"code","b":[76,48,38],"m":"jmp","oa":9776,"o":"j_2630"},{"a":9961,"l":"r_26E9","t":"code","b":[96],"m":"rts","x":[9956]},{"a":9962,"l":"step_offsets","c":"The offset of each of the four steps of a move in build_figures' frames, $20 apart; draw_figures reads it by step.","t":"byte","b":[0,32,64,96],"x":[9841]},{"a":9966,"l":"draw_standing","c":"The end of draw_figures for a figure standing still, which only Pete does: one character, $CE ($1670), from the background under him (the address copied into the LDA at $26FA), ANDed with his standing mask at $1370 and ORed with his standing picture at $1368.","t":"code","b":[173,212,38],"m":"lda","oa":9940,"o":"bg2_lo","x":[9925]},{"a":9969,"t":"code","b":[141,251,38],"m":"sta","oa":9979,"o":"stand_bg_lo"},{"a":9972,"t":"code","b":[173,213,38],"m":"lda","oa":9941,"o":"bg2_hi"},{"a":9975,"t":"code","b":[141,252,38],"m":"sta","oa":9980,"o":"stand_bg_hi"},{"a":9978,"l":"b_26FA","t":"code","b":[185,255,255],"m":"lda","o":"$FFFF,y","x":[9991]},{"a":9979,"t":"note","l":"stand_bg_lo","c":"Operand of the LDA at $26FA, which draw_figures copies from $26D4: the background character under Pete when he stands still, low byte; the high byte is at $26FC.","note":"inside the item at $26FA","x":[9969]},{"a":9980,"t":"note","l":"stand_bg_hi","c":"High byte of the LDA at $26FA: the background character under Pete standing, in the character set at $1000.","note":"inside the item at $26FA","x":[9975]},{"a":9981,"t":"code","b":[57,112,19],"m":"and","oa":4976,"o":"f_1370,y"},{"a":9984,"t":"code","b":[25,104,19],"m":"ora","oa":4968,"o":"f_1368,y"},{"a":9987,"t":"code","b":[153,112,22],"m":"sta","oa":5744,"o":"chr_figures,y"},{"a":9990,"t":"code","b":[136],"m":"dey"},{"a":9991,"t":"code","b":[16,241],"m":"bpl","oa":9978,"o":"b_26FA"},{"a":9993,"t":"code","b":[96],"m":"rts"},{"a":9994,"l":"stamp_figures","c":"Puts each active figure's characters into the map before the view is copied (irq_play), saving the map's own: the cell figure X is moving into (pointer $2C + 4X) gets $CE + 2X or the one after it, as draw_figures has them, and, while it moves, the cell it is leaving ($2E + 4X) the other. The characters under them go to $40 + 2X and $41 + 2X.","t":"code","b":[169,4],"m":"lda","o":"#$04","x":[6743]},{"a":9996,"t":"code","b":[133,33],"m":"sta","oa":33,"o":"zpa_21"},{"a":9998,"l":"b_270E","t":"code","b":[166,33],"m":"ldx","oa":33,"o":"zpa_21","x":[10057]},{"a":10000,"t":"code","b":[181,34],"m":"lda","oa":34,"o":"figure_on,x"},{"a":10002,"t":"code","b":[240,51],"m":"beq","oa":10055,"o":"b_2747"},{"a":10004,"t":"code","b":[138],"m":"txa"},{"a":10005,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10006,"t":"code","b":[105,206],"m":"adc","o":"#$CE"},{"a":10008,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"zpa_1F"},{"a":10010,"t":"code","b":[138],"m":"txa"},{"a":10011,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10012,"t":"code","b":[168],"m":"tay"},{"a":10013,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10014,"t":"code","b":[170],"m":"tax"},{"a":10015,"t":"code","b":[161,44],"m":"lda","oa":44,"o":"(pete_cell,x)"},{"a":10017,"t":"code","b":[153,64,0],"m":"sta","oa":64,"o":"under_figures,y"},{"a":10020,"t":"code","b":[161,46],"m":"lda","oa":46,"o":"(pete_from,x)"},{"a":10022,"t":"code","b":[153,65,0],"m":"sta","oa":65,"o":"zpf_41,y"},{"a":10025,"t":"code","b":[164,33],"m":"ldy","oa":33,"o":"zpa_21"},{"a":10027,"t":"code","b":[185,74,0],"m":"lda","oa":74,"o":"figure_dir,y"},{"a":10030,"t":"code","b":[240,6],"m":"beq","oa":10038,"o":"b_2736"},{"a":10032,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":10033,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10035,"t":"code","b":[42],"m":"rol","o":"a"},{"a":10036,"t":"code","b":[73,1],"m":"eor","o":"#$01"},{"a":10038,"l":"b_2736","t":"code","b":[69,31],"m":"eor","oa":31,"o":"zpa_1F","x":[10030]},{"a":10040,"t":"code","b":[129,44],"m":"sta","oa":44,"o":"(pete_cell,x)"},{"a":10042,"t":"code","b":[73,1],"m":"eor","o":"#$01"},{"a":10044,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"zpa_1F"},{"a":10046,"t":"code","b":[185,74,0],"m":"lda","oa":74,"o":"figure_dir,y"},{"a":10049,"t":"code","b":[240,4],"m":"beq","oa":10055,"o":"b_2747"},{"a":10051,"t":"code","b":[165,31],"m":"lda","oa":31,"o":"zpa_1F"},{"a":10053,"t":"code","b":[129,46],"m":"sta","oa":46,"o":"(pete_from,x)"},{"a":10055,"l":"b_2747","t":"code","b":[198,33],"m":"dec","oa":33,"o":"zpa_21","x":[10002,10049]},{"a":10057,"t":"code","b":[16,195],"m":"bpl","oa":9998,"o":"b_270E"},{"a":10059,"t":"code","b":[96],"m":"rts"},{"a":10060,"l":"unstamp_figures","c":"Puts back the map characters stamp_figures saved, once the view has been copied (irq_play).","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[6752]},{"a":10062,"t":"code","b":[133,33],"m":"sta","oa":33,"o":"zpa_21"},{"a":10064,"l":"b_2750","t":"code","b":[164,33],"m":"ldy","oa":33,"o":"zpa_21","x":[10101]},{"a":10066,"t":"code","b":[185,34,0],"m":"lda","oa":34,"o":"figure_on,y"},{"a":10069,"t":"code","b":[240,24],"m":"beq","oa":10095,"o":"b_276F"},{"a":10071,"t":"code","b":[185,74,0],"m":"lda","oa":74,"o":"figure_dir,y"},{"a":10074,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"zpa_1F"},{"a":10076,"t":"code","b":[152],"m":"tya"},{"a":10077,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10078,"t":"code","b":[168],"m":"tay"},{"a":10079,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10080,"t":"code","b":[170],"m":"tax"},{"a":10081,"t":"code","b":[185,64,0],"m":"lda","oa":64,"o":"under_figures,y"},{"a":10084,"t":"code","b":[129,44],"m":"sta","oa":44,"o":"(pete_cell,x)"},{"a":10086,"t":"code","b":[165,31],"m":"lda","oa":31,"o":"zpa_1F"},{"a":10088,"t":"code","b":[240,5],"m":"beq","oa":10095,"o":"b_276F"},{"a":10090,"t":"code","b":[185,65,0],"m":"lda","oa":65,"o":"zpf_41,y"},{"a":10093,"t":"code","b":[129,46],"m":"sta","oa":46,"o":"(pete_from,x)"},{"a":10095,"l":"b_276F","t":"code","b":[230,33],"m":"inc","oa":33,"o":"zpa_21","x":[10069,10088]},{"a":10097,"t":"code","b":[165,33],"m":"lda","oa":33,"o":"zpa_21"},{"a":10099,"t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":10101,"t":"code","b":[144,217],"m":"bcc","oa":10064,"o":"b_2750"},{"a":10103,"t":"code","b":[96],"m":"rts"},{"a":10104,"l":"move_creatures","c":"The creatures' step, called from irq_play every $81 frames by day and every $A2 at night (the level's two speeds). For each creature 3 to 0 ($96) that is out ($23 + n): it dies if it stands in an explosion (creature_blast). A creature crosses a cell in four steps ($28 + n). At the end of one it chooses where to go: it reads the four cells round it (above, below, left, right through the offsets at $28AD) into $92-$95, open being tunnel, water, a stick or an explosion (so it walks into explosions and dies). Five times in eight it heads for Pete, trying across or up and down first at random (chase_across, chase_updown), but never straight back the way it came; otherwise, or when neither works, it takes an open way starting from a random one, turning back only when there is no other (move_creature). With all four ways shut it never stops looking: the loop at $281E-$2827 masks its count to 0-3 each time round, so the BNE at $2827 always branches, and the interrupt never returns; main_loop stops for good while the other raster interrupts go on (live, on level 6, facts.md). The difference across, in $97, is Pete's column less the creature's; the difference up and down, in $98, is Pete's row less the creature's column ($8A), not its row ($8E). When the two differences ANDed together give zero the creature wanders instead of chasing.","t":"code","b":[169,3],"m":"lda","o":"#$03","x":[6803]},{"a":10106,"t":"code","b":[133,150],"m":"sta","oa":150,"o":"zpa_96"},{"a":10108,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10110,"t":"code","b":[133,176],"m":"sta","oa":176,"o":"zpa_B0"},{"a":10112,"l":"j_2780","t":"code","b":[166,150],"m":"ldx","oa":150,"o":"zpa_96","x":[10299]},{"a":10114,"t":"code","b":[181,35],"m":"lda","oa":35,"o":"zpf_23,x"},{"a":10116,"t":"code","b":[208,3],"m":"bne","oa":10121,"o":"b_2789"},{"a":10118,"l":"b_2786","t":"code","b":[76,55,40],"m":"jmp","oa":10295,"o":"j_2837","x":[10128]},{"a":10121,"l":"b_2789","t":"code","b":[32,181,40],"m":"jsr","oa":10421,"o":"creature_blast","x":[10116]},{"a":10124,"t":"code","b":[166,150],"m":"ldx","oa":150,"o":"zpa_96"},{"a":10126,"t":"code","b":[181,35],"m":"lda","oa":35,"o":"zpf_23,x"},{"a":10128,"t":"code","b":[240,244],"m":"beq","oa":10118,"o":"b_2786"},{"a":10130,"t":"code","b":[181,40],"m":"lda","oa":40,"o":"zpf_28,x"},{"a":10132,"t":"code","b":[201,3],"m":"cmp","o":"#$03"},{"a":10134,"t":"code","b":[176,5],"m":"bcs","oa":10141,"o":"b_279D"},{"a":10136,"t":"code","b":[246,40],"m":"inc","oa":40,"o":"zpf_28,x"},{"a":10138,"t":"code","b":[76,55,40],"m":"jmp","oa":10295,"o":"j_2837"},{"a":10141,"l":"b_279D","t":"code","b":[165,6],"m":"lda","oa":6,"o":"pete_col","x":[10134]},{"a":10143,"t":"code","b":[245,138],"m":"sbc","oa":138,"o":"creature_col,x"},{"a":10145,"t":"code","b":[133,151],"m":"sta","oa":151,"o":"zpa_97"},{"a":10147,"t":"code","b":[165,7],"m":"lda","oa":7,"o":"pete_row"},{"a":10149,"t":"code","b":[56],"m":"sec"},{"a":10150,"t":"code","b":[245,138],"m":"sbc","oa":138,"o":"creature_col,x"},{"a":10152,"t":"code","b":[133,152],"m":"sta","oa":152,"o":"zpa_98"},{"a":10154,"t":"code","b":[180,75],"m":"ldy","oa":75,"o":"zpf_4B,x"},{"a":10156,"t":"code","b":[136],"m":"dey"},{"a":10157,"t":"code","b":[132,153],"m":"sty","oa":153,"o":"zpa_99"},{"a":10159,"t":"code","b":[138],"m":"txa"},{"a":10160,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10161,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10162,"t":"code","b":[170],"m":"tax"},{"a":10163,"t":"code","b":[134,156],"m":"stx","oa":156,"o":"zpa_9C"},{"a":10164,"t":"note","l":"a_27B4","c":"Not a place the code goes: the operand byte of STX $9C at $27B3, named because the BIT at $2669 (draw_figures) has it as its address. That BIT is there only to hide LDY $27,X at $266A from the instructions before it (the skip idiom), so nothing reads $27B4. From $27B3 move_creatures keeps the creature's number times four in $9C and finds the cell above it ($84/$85), from which the four neighbours are read.","note":"inside the item at $27B3","x":[9833]},{"a":10165,"t":"code","b":[181,48],"m":"lda","oa":48,"o":"zpf_30,x"},{"a":10167,"t":"code","b":[56],"m":"sec"},{"a":10168,"t":"code","b":[233,90],"m":"sbc","o":"#$5A"},{"a":10170,"t":"code","b":[133,132],"m":"sta","oa":132,"o":"zpa_84"},{"a":10172,"t":"code","b":[181,49],"m":"lda","oa":49,"o":"zpf_31,x"},{"a":10174,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":10176,"t":"code","b":[133,133],"m":"sta","oa":133,"o":"zpa_85"},{"a":10178,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":10180,"l":"b_27C4","t":"code","b":[188,173,40],"m":"ldy","oa":10413,"o":"creature_ways,x","x":[10206]},{"a":10183,"t":"code","b":[177,132],"m":"lda","oa":132,"o":"(zpa_84),y"},{"a":10185,"t":"code","b":[201,92],"m":"cmp","o":"#$5C"},{"a":10187,"t":"code","b":[144,14],"m":"bcc","oa":10203,"o":"b_27DB"},{"a":10189,"t":"code","b":[201,109],"m":"cmp","o":"#$6D"},{"a":10191,"t":"code","b":[144,8],"m":"bcc","oa":10201,"o":"b_27D9"},{"a":10193,"t":"code","b":[201,111],"m":"cmp","o":"#$6F"},{"a":10195,"t":"code","b":[240,4],"m":"beq","oa":10201,"o":"b_27D9"},{"a":10197,"t":"code","b":[201,162],"m":"cmp","o":"#$A2"},{"a":10199,"t":"code","b":[208,2],"m":"bne","oa":10203,"o":"b_27DB"},{"a":10201,"l":"b_27D9","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[10191,10195]},{"a":10203,"l":"b_27DB","t":"code","b":[149,146],"m":"sta","oa":146,"o":"zpf_92,x","x":[10187,10199]},{"a":10205,"t":"code","b":[202],"m":"dex"},{"a":10206,"t":"code","b":[16,228],"m":"bpl","oa":10180,"o":"b_27C4"},{"a":10208,"t":"code","b":[165,152],"m":"lda","oa":152,"o":"zpa_98"},{"a":10210,"t":"code","b":[37,151],"m":"and","oa":151,"o":"zpa_97"},{"a":10212,"t":"code","b":[240,43],"m":"beq","oa":10257,"o":"b_2811"},{"a":10214,"t":"code","b":[173,0,255],"m":"lda","o":"ted_timer1_lo"},{"a":10217,"t":"code","b":[77,2,255],"m":"eor","o":"ted_timer2_lo"},{"a":10220,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":10222,"t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":10224,"t":"code","b":[176,31],"m":"bcs","oa":10257,"o":"b_2811"},{"a":10226,"t":"code","b":[173,30,255],"m":"lda","o":"ted_hpos"},{"a":10229,"t":"code","b":[77,0,255],"m":"eor","o":"ted_timer1_lo"},{"a":10232,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":10233,"t":"code","b":[176,12],"m":"bcs","oa":10247,"o":"b_2807"},{"a":10235,"t":"code","b":[32,128,40],"m":"jsr","oa":10368,"o":"chase_across"},{"a":10238,"t":"code","b":[144,55],"m":"bcc","oa":10295,"o":"j_2837"},{"a":10240,"t":"code","b":[32,153,40],"m":"jsr","oa":10393,"o":"chase_updown"},{"a":10243,"t":"code","b":[144,50],"m":"bcc","oa":10295,"o":"j_2837"},{"a":10245,"t":"code","b":[176,10],"m":"bcs","oa":10257,"o":"b_2811"},{"a":10247,"l":"b_2807","t":"code","b":[32,153,40],"m":"jsr","oa":10393,"o":"chase_updown","x":[10233]},{"a":10250,"t":"code","b":[144,43],"m":"bcc","oa":10295,"o":"j_2837"},{"a":10252,"t":"code","b":[32,128,40],"m":"jsr","oa":10368,"o":"chase_across"},{"a":10255,"t":"code","b":[144,38],"m":"bcc","oa":10295,"o":"j_2837"},{"a":10257,"l":"b_2811","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[10212,10224,10245]},{"a":10259,"t":"code","b":[133,155],"m":"sta","oa":155,"o":"zpa_9B"},{"a":10261,"t":"code","b":[173,30,255],"m":"lda","o":"ted_hpos"},{"a":10264,"t":"code","b":[77,0,255],"m":"eor","o":"ted_timer1_lo"},{"a":10267,"t":"code","b":[109,29,255],"m":"adc","o":"ted_raster_lo"},{"a":10270,"l":"b_281E","t":"code","b":[41,3],"m":"and","o":"#$03","x":[10279]},{"a":10272,"t":"code","b":[170],"m":"tax"},{"a":10273,"t":"code","b":[181,146],"m":"lda","oa":146,"o":"zpf_92,x"},{"a":10275,"t":"code","b":[240,4],"m":"beq","oa":10281,"o":"b_2829"},{"a":10277,"l":"b_2825","t":"code","b":[232],"m":"inx","x":[10290]},{"a":10278,"t":"code","b":[138],"m":"txa"},{"a":10279,"t":"code","b":[208,245],"m":"bne","oa":10270,"o":"b_281E"},{"a":10281,"l":"b_2829","t":"code","b":[189,177,40],"m":"lda","oa":10417,"o":"reverse_way,x","x":[10275]},{"a":10284,"t":"code","b":[197,153],"m":"cmp","oa":153,"o":"zpa_99"},{"a":10286,"t":"code","b":[208,4],"m":"bne","oa":10292,"o":"b_2834"},{"a":10288,"t":"code","b":[198,155],"m":"dec","oa":155,"o":"zpa_9B"},{"a":10290,"t":"code","b":[240,241],"m":"beq","oa":10277,"o":"b_2825"},{"a":10292,"l":"b_2834","t":"code","b":[32,63,40],"m":"jsr","oa":10303,"o":"move_creature","x":[10286]},{"a":10295,"l":"j_2837","t":"code","b":[198,150],"m":"dec","oa":150,"o":"zpa_96","x":[10118,10138,10238,10243,10250,10255]},{"a":10297,"t":"code","b":[48,3],"m":"bmi","oa":10302,"o":"r_283E"},{"a":10299,"t":"code","b":[76,128,39],"m":"jmp","oa":10112,"o":"j_2780"},{"a":10302,"l":"r_283E","t":"code","b":[96],"m":"rts","x":[10297]},{"a":10303,"l":"move_creature","c":"Starts creature $96 on a move in direction X + 1 (1 up, 2 down, 3 left, 4 right): its cell becomes the one it leaves ($32 + 4n), its step 0 ($28 + n), its direction set ($4B + n), its column ($8A + n) or row ($8E + n) moved on one, and its new cell ($30 + 4n) is the cell above it plus the offset for the direction (the table from $28AD, read from $28AC so that direction 1 is its first byte).","t":"code","b":[232],"m":"inx","x":[10292,10386]},{"a":10304,"t":"code","b":[134,154],"m":"stx","oa":154,"o":"zpa_9A"},{"a":10306,"t":"code","b":[166,156],"m":"ldx","oa":156,"o":"zpa_9C"},{"a":10308,"t":"code","b":[181,48],"m":"lda","oa":48,"o":"zpf_30,x"},{"a":10310,"t":"code","b":[180,49],"m":"ldy","oa":49,"o":"zpf_31,x"},{"a":10312,"t":"code","b":[149,50],"m":"sta","oa":50,"o":"zpf_32,x"},{"a":10314,"t":"code","b":[148,51],"m":"sty","oa":51,"o":"zpf_33,x"},{"a":10316,"t":"code","b":[166,150],"m":"ldx","oa":150,"o":"zpa_96"},{"a":10318,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10320,"t":"code","b":[149,40],"m":"sta","oa":40,"o":"zpf_28,x"},{"a":10322,"t":"code","b":[165,154],"m":"lda","oa":154,"o":"zpa_9A"},{"a":10324,"t":"code","b":[149,75],"m":"sta","oa":75,"o":"zpf_4B,x"},{"a":10326,"t":"code","b":[201,3],"m":"cmp","o":"#$03"},{"a":10328,"t":"code","b":[176,12],"m":"bcs","oa":10342,"o":"b_2866"},{"a":10330,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":10332,"t":"code","b":[240,4],"m":"beq","oa":10338,"o":"b_2862"},{"a":10334,"t":"code","b":[246,142],"m":"inc","oa":142,"o":"creature_row,x"},{"a":10336,"t":"code","b":[208,12],"m":"bne","oa":10350,"o":"b_286E"},{"a":10338,"l":"b_2862","t":"code","b":[214,142],"m":"dec","oa":142,"o":"creature_row,x","x":[10332]},{"a":10340,"t":"code","b":[208,8],"m":"bne","oa":10350,"o":"b_286E"},{"a":10342,"l":"b_2866","t":"code","b":[208,4],"m":"bne","oa":10348,"o":"b_286C","x":[10328]},{"a":10344,"t":"code","b":[214,138],"m":"dec","oa":138,"o":"creature_col,x"},{"a":10346,"t":"code","b":[208,2],"m":"bne","oa":10350,"o":"b_286E"},{"a":10348,"l":"b_286C","t":"code","b":[246,138],"m":"inc","oa":138,"o":"creature_col,x","x":[10342]},{"a":10350,"l":"b_286E","t":"code","b":[170],"m":"tax","x":[10336,10340,10346]},{"a":10351,"t":"code","b":[189,172,40],"m":"lda","oa":10412,"o":"f_28AC,x"},{"a":10354,"t":"code","b":[24],"m":"clc"},{"a":10355,"t":"code","b":[166,156],"m":"ldx","oa":156,"o":"zpa_9C"},{"a":10357,"t":"code","b":[101,132],"m":"adc","oa":132,"o":"zpa_84"},{"a":10359,"t":"code","b":[149,48],"m":"sta","oa":48,"o":"zpf_30,x"},{"a":10361,"t":"code","b":[165,133],"m":"lda","oa":133,"o":"zpa_85"},{"a":10363,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":10365,"t":"code","b":[149,49],"m":"sta","oa":49,"o":"zpf_31,x"},{"a":10367,"t":"code","b":[96],"m":"rts"},{"a":10368,"l":"chase_across","c":"Tries to send the creature across towards Pete: right ($28AD's fourth way) when the difference in $97 is positive, left when negative. Carry clear when it moved (move_creature); set when that way is shut or would turn it straight back.","t":"code","b":[162,3],"m":"ldx","o":"#$03","x":[10235,10252]},{"a":10370,"t":"code","b":[36,151],"m":"bit","oa":151,"o":"zpa_97"},{"a":10372,"t":"code","b":[16,1],"m":"bpl","oa":10375,"o":"b_2887"},{"a":10374,"t":"code","b":[202],"m":"dex"},{"a":10375,"l":"b_2887","t":"code","b":[181,146],"m":"lda","oa":146,"o":"zpf_92,x","x":[10372]},{"a":10377,"t":"code","b":[208,12],"m":"bne","oa":10391,"o":"b_2897"},{"a":10379,"t":"code","b":[189,177,40],"m":"lda","oa":10417,"o":"reverse_way,x"},{"a":10382,"t":"code","b":[197,153],"m":"cmp","oa":153,"o":"zpa_99"},{"a":10384,"t":"code","b":[240,5],"m":"beq","oa":10391,"o":"b_2897"},{"a":10386,"l":"b_2892","t":"code","b":[32,63,40],"m":"jsr","oa":10303,"o":"move_creature","x":[10411]},{"a":10389,"t":"code","b":[24],"m":"clc"},{"a":10390,"t":"code","b":[96],"m":"rts"},{"a":10391,"l":"b_2897","t":"code","b":[56],"m":"sec","x":[10377,10384,10402,10409]},{"a":10392,"t":"code","b":[96],"m":"rts"},{"a":10393,"l":"chase_updown","c":"Tries to send the creature down towards Pete when the difference in $98 is positive, up when negative (see move_creatures for what $98 really holds). Carry clear when it moved, set when that way is shut or would turn it back.","t":"code","b":[162,1],"m":"ldx","o":"#$01","x":[10240,10247]},{"a":10395,"t":"code","b":[36,152],"m":"bit","oa":152,"o":"zpa_98"},{"a":10397,"t":"code","b":[16,1],"m":"bpl","oa":10400,"o":"b_28A0"},{"a":10399,"t":"code","b":[202],"m":"dex"},{"a":10400,"l":"b_28A0","t":"code","b":[181,146],"m":"lda","oa":146,"o":"zpf_92,x","x":[10397]},{"a":10402,"t":"code","b":[208,243],"m":"bne","oa":10391,"o":"b_2897"},{"a":10404,"t":"code","b":[189,177,40],"m":"lda","oa":10417,"o":"reverse_way,x"},{"a":10407,"t":"code","b":[197,153],"m":"cmp","oa":153,"o":"zpa_99"},{"a":10409,"t":"code","b":[240,236],"m":"beq","oa":10391,"o":"b_2897"},{"a":10411,"t":"code","b":[208,229],"m":"bne","oa":10386,"o":"b_2892"},{"a":10412,"t":"note","l":"f_28AC","c":"The operand of the BNE at $28AB in chase_updown, and the base from which move_creature reads creature_ways by direction, 1 to 4: direction 1 (up) is $28AD, so this byte is never read as a way.","note":"inside the item at $28AB","x":[10351]},{"a":10413,"l":"creature_ways","c":"Offsets from the cell above a creature to the cell it might enter, one for each way: 0 up, $B4 down (two rows on), $59 left and $5B right. move_creatures reads them by way (0 to 3), move_creature by direction (1 to 4) from $28AC.","t":"byte","b":[0,180,89,91],"x":[10180]},{"a":10417,"l":"reverse_way","c":"For each way (0 up, 1 down, 2 left, 3 right), the way back: 1, 0, 3, 2. move_creatures and the chase routines compare it with the creature's direction less 1 ($99) to keep it from turning straight back.","t":"byte","b":[1,0,3,2],"x":[10281,10379,10404]},{"a":10421,"l":"creature_blast","c":"Kills creature X if the cell it is on is an explosion ($A2): the cell it is leaving while its step is 0 or 1, the one it is entering after. A creature killed is taken off ($23 + n) and counted in $B0, which kill_bonus turns into points.","t":"code","b":[138],"m":"txa","x":[10121]},{"a":10422,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10423,"t":"code","b":[10],"m":"asl","o":"a"},{"a":10424,"t":"code","b":[133,156],"m":"sta","oa":156,"o":"zpa_9C"},{"a":10426,"t":"code","b":[181,40],"m":"lda","oa":40,"o":"zpf_28,x"},{"a":10428,"t":"code","b":[166,156],"m":"ldx","oa":156,"o":"zpa_9C"},{"a":10430,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":10432,"t":"code","b":[176,7],"m":"bcs","oa":10441,"o":"b_28C9"},{"a":10434,"t":"code","b":[161,50],"m":"lda","oa":50,"o":"(zpf_32,x)"},{"a":10436,"t":"code","b":[201,162],"m":"cmp","o":"#$A2"},{"a":10438,"t":"code","b":[240,8],"m":"beq","oa":10448,"o":"b_28D0"},{"a":10440,"t":"code","b":[96],"m":"rts"},{"a":10441,"l":"b_28C9","t":"code","b":[161,48],"m":"lda","oa":48,"o":"(zpf_30,x)","x":[10432]},{"a":10443,"t":"code","b":[201,162],"m":"cmp","o":"#$A2"},{"a":10445,"t":"code","b":[240,1],"m":"beq","oa":10448,"o":"b_28D0"},{"a":10447,"t":"code","b":[96],"m":"rts"},{"a":10448,"l":"b_28D0","t":"code","b":[166,150],"m":"ldx","oa":150,"o":"zpa_96","x":[10438,10445]},{"a":10450,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10452,"t":"code","b":[149,35],"m":"sta","oa":35,"o":"zpf_23,x"},{"a":10454,"t":"code","b":[230,176],"m":"inc","oa":176,"o":"zpa_B0"},{"a":10456,"t":"code","b":[96],"m":"rts"},{"a":10457,"l":"count_goodie","c":"Called by pete_touches with the character Pete bumped into. Unless it is the face ($94-$97) the goodie is cleared back to earth (clear_goodie) and the goodies left ($B5) counted down; at 0 the ladder appears at the top of the shaft (character $50 at $3924, row 3, column 44).","t":"code","b":[201,152],"m":"cmp","o":"#$98","x":[11795]},{"a":10459,"t":"code","b":[176,4],"m":"bcs","oa":10465,"o":"b_28E1"},{"a":10461,"t":"code","b":[201,148],"m":"cmp","o":"#$94"},{"a":10463,"t":"code","b":[176,12],"m":"bcs","oa":10477,"o":"r_28ED"},{"a":10465,"l":"b_28E1","t":"code","b":[32,238,40],"m":"jsr","oa":10478,"o":"clear_goodie","x":[10459]},{"a":10468,"t":"code","b":[198,181],"m":"dec","oa":181,"o":"goodies_left"},{"a":10470,"t":"code","b":[208,5],"m":"bne","oa":10477,"o":"r_28ED"},{"a":10472,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":10474,"t":"code","b":[141,36,57],"m":"sta","oa":14628,"o":"a_3924"},{"a":10477,"l":"r_28ED","t":"code","b":[96],"m":"rts","x":[10463,10470]},{"a":10478,"l":"clear_goodie","c":"Turns the goodie Pete bumped into back into earth: from the cell he bumped ($66/$67) and its column and row ($06, $07, moved one in the direction $69), it finds the goodie's top left cell by its character (a goodie's characters are numbered left to right, then top to bottom), works out which of the four earth characters that cell takes (earth_at), and writes the goodie's one, two or four cells with the earth pattern (the tables at $2970-$297B give a neighbour's character).","t":"code","b":[165,102],"m":"lda","oa":102,"o":"zpa_66","x":[10465]},{"a":10480,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":10482,"t":"code","b":[165,103],"m":"lda","oa":103,"o":"zpa_67"},{"a":10484,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":10486,"t":"code","b":[166,6],"m":"ldx","oa":6,"o":"pete_col"},{"a":10488,"t":"code","b":[164,7],"m":"ldy","oa":7,"o":"pete_row"},{"a":10490,"t":"code","b":[165,105],"m":"lda","oa":105,"o":"zpa_69"},{"a":10492,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":10494,"t":"code","b":[208,1],"m":"bne","oa":10497,"o":"b_2901"},{"a":10496,"t":"code","b":[136],"m":"dey"},{"a":10497,"l":"b_2901","t":"code","b":[201,2],"m":"cmp","o":"#$02","x":[10494]},{"a":10499,"t":"code","b":[208,1],"m":"bne","oa":10502,"o":"b_2906"},{"a":10501,"t":"code","b":[200],"m":"iny"},{"a":10502,"l":"b_2906","t":"code","b":[201,3],"m":"cmp","o":"#$03","x":[10499]},{"a":10504,"t":"code","b":[208,1],"m":"bne","oa":10507,"o":"b_290B"},{"a":10506,"t":"code","b":[202],"m":"dex"},{"a":10507,"l":"b_290B","t":"code","b":[201,4],"m":"cmp","o":"#$04","x":[10504]},{"a":10509,"t":"code","b":[208,1],"m":"bne","oa":10512,"o":"b_2910"},{"a":10511,"t":"code","b":[232],"m":"inx"},{"a":10512,"l":"b_2910","t":"code","b":[165,101],"m":"lda","oa":101,"o":"pete_bumped","x":[10509]},{"a":10514,"t":"code","b":[201,116],"m":"cmp","o":"#$74"},{"a":10516,"t":"code","b":[144,26],"m":"bcc","oa":10544,"o":"b_2930"},{"a":10518,"t":"code","b":[201,124],"m":"cmp","o":"#$7C"},{"a":10520,"t":"code","b":[176,6],"m":"bcs","oa":10528,"o":"b_2920"},{"a":10522,"t":"code","b":[32,134,41],"m":"jsr","oa":10630,"o":"goodie_left"},{"a":10525,"t":"code","b":[76,48,41],"m":"jmp","oa":10544,"o":"b_2930"},{"a":10528,"l":"b_2920","t":"code","b":[201,132],"m":"cmp","o":"#$84","x":[10520]},{"a":10530,"t":"code","b":[176,6],"m":"bcs","oa":10538,"o":"b_292A"},{"a":10532,"t":"code","b":[32,159,41],"m":"jsr","oa":10655,"o":"goodie_up"},{"a":10535,"t":"code","b":[76,48,41],"m":"jmp","oa":10544,"o":"b_2930"},{"a":10538,"l":"b_292A","t":"code","b":[32,134,41],"m":"jsr","oa":10630,"o":"goodie_left","x":[10530]},{"a":10541,"t":"code","b":[32,185,41],"m":"jsr","oa":10681,"o":"goodie_up_square"},{"a":10544,"l":"b_2930","t":"code","b":[32,197,41],"m":"jsr","oa":10693,"o":"earth_at","x":[10516,10525,10535]},{"a":10547,"t":"code","b":[165,15],"m":"lda","oa":15,"o":"zpa_0F"},{"a":10549,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":10551,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":10553,"t":"code","b":[165,101],"m":"lda","oa":101,"o":"pete_bumped"},{"a":10555,"t":"code","b":[201,116],"m":"cmp","o":"#$74"},{"a":10557,"t":"code","b":[144,12],"m":"bcc","oa":10571,"o":"r_294B"},{"a":10559,"t":"code","b":[201,124],"m":"cmp","o":"#$7C"},{"a":10561,"t":"code","b":[176,9],"m":"bcs","oa":10572,"o":"b_294C"},{"a":10563,"t":"code","b":[165,15],"m":"lda","oa":15,"o":"zpa_0F"},{"a":10565,"t":"code","b":[32,124,41],"m":"jsr","oa":10620,"o":"earth_beside_of"},{"a":10568,"t":"code","b":[200],"m":"iny"},{"a":10569,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":10571,"l":"r_294B","t":"code","b":[96],"m":"rts","x":[10557]},{"a":10572,"l":"b_294C","t":"code","b":[201,132],"m":"cmp","o":"#$84","x":[10561]},{"a":10574,"t":"code","b":[176,10],"m":"bcs","oa":10586,"o":"b_295A"},{"a":10576,"t":"code","b":[166,15],"m":"ldx","oa":15,"o":"zpa_0F"},{"a":10578,"t":"code","b":[189,119,41],"m":"lda","oa":10615,"o":"earth_below_base,x"},{"a":10581,"t":"code","b":[160,90],"m":"ldy","o":"#$5A"},{"a":10583,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":10585,"t":"code","b":[96],"m":"rts"},{"a":10586,"l":"b_295A","t":"code","b":[165,15],"m":"lda","oa":15,"o":"zpa_0F","x":[10574]},{"a":10588,"t":"code","b":[32,124,41],"m":"jsr","oa":10620,"o":"earth_beside_of"},{"a":10591,"t":"code","b":[200],"m":"iny"},{"a":10592,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":10594,"t":"code","b":[32,129,41],"m":"jsr","oa":10625,"o":"earth_diagonal_of"},{"a":10597,"t":"code","b":[160,90],"m":"ldy","o":"#$5A"},{"a":10599,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":10601,"t":"code","b":[32,124,41],"m":"jsr","oa":10620,"o":"earth_beside_of"},{"a":10604,"t":"code","b":[200],"m":"iny"},{"a":10605,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":10607,"l":"earth_beside_base","c":"The RTS ending clear_goodie. It is also the base from which earth_beside_of reads its table, $2970-$2973, by an earth character, 1 to 4: the earth character beside each (2, 1, 4, 3).","t":"code","b":[96],"m":"rts","x":[10621]},{"a":10608,"c":"The table beside, read by earth_beside_of through earth_beside_base: for earth characters 1, 2 and 3, the one beside each (2, 1, 4). The entry for 4, a 3, is the byte at $2973.","t":"byte","b":[2,1,4]},{"a":10611,"l":"earth_diagonal_base","c":"The last byte of the table beside, and the base of the table at $2974-$2977: for each earth character, 1 to 4, the one diagonally next to it (4, 3, 2, 1), read by earth_diagonal_of.","t":"byte","b":[3,4,3,2],"x":[10626]},{"a":10615,"l":"earth_below_base","c":"The last byte of the diagonal table, and the base of the table at $2978-$297B: for each earth character, 1 to 4, the one below it (3, 4, 1, 2), read by clear_goodie for the cell under a tall goodie's top.","t":"byte","b":[1,3,4,1,2],"x":[10578]},{"a":10620,"l":"earth_beside_of","c":"The earth character beside the one in A (1 and 2, 3 and 4 swap): it reads the table at $2970-$2973 through the base $296F.","t":"code","b":[170],"m":"tax","x":[10565,10588,10601]},{"a":10621,"t":"code","b":[189,111,41],"m":"lda","oa":10607,"o":"earth_beside_base,x"},{"a":10624,"t":"code","b":[96],"m":"rts"},{"a":10625,"l":"earth_diagonal_of","c":"The earth character diagonally next to the one in A (1 and 4, 2 and 3 swap), from the table at $2974-$2977.","t":"code","b":[170],"m":"tax","x":[10594]},{"a":10626,"t":"code","b":[189,115,41],"m":"lda","oa":10611,"o":"earth_diagonal_base,x"},{"a":10629,"t":"code","b":[96],"m":"rts"},{"a":10630,"l":"goodie_left","c":"If the character at ($0D) is the right half of a wide or square goodie (an odd character), moves the pointer and the column in X one cell left. Y is kept.","t":"code","b":[132,17],"m":"sty","oa":17,"o":"zpa_11","x":[10522,10538]},{"a":10632,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":10634,"t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y"},{"a":10636,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":10637,"t":"code","b":[144,13],"m":"bcc","oa":10652,"o":"b_299C"},{"a":10639,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":10641,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":10643,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":10645,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":10647,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":10649,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":10651,"t":"code","b":[202],"m":"dex"},{"a":10652,"l":"b_299C","t":"code","b":[164,17],"m":"ldy","oa":17,"o":"zpa_11","x":[10637]},{"a":10654,"t":"code","b":[96],"m":"rts"},{"a":10655,"l":"goodie_up","c":"If the character at ($0D) is the lower half of a tall goodie (an odd character), moves the pointer one row up and the row count kept in Y.","t":"code","b":[132,17],"m":"sty","oa":17,"o":"zpa_11","x":[10532]},{"a":10657,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":10659,"t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y"},{"a":10661,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":10662,"t":"code","b":[144,14],"m":"bcc","oa":10678,"o":"b_29B6"},{"a":10664,"l":"b_29A8","t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D","x":[10691]},{"a":10666,"t":"code","b":[233,90],"m":"sbc","o":"#$5A"},{"a":10668,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":10670,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":10672,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":10674,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":10676,"t":"code","b":[198,17],"m":"dec","oa":17,"o":"zpa_11"},{"a":10678,"l":"b_29B6","t":"code","b":[164,17],"m":"ldy","oa":17,"o":"zpa_11","x":[10662,10689]},{"a":10680,"t":"code","b":[96],"m":"rts"},{"a":10681,"l":"goodie_up_square","c":"If the character at ($0D) is in the lower row of a square goodie (bit 1 set), moves the pointer one row up, as goodie_up does.","t":"code","b":[132,17],"m":"sty","oa":17,"o":"zpa_11","x":[10541]},{"a":10683,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":10685,"t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y"},{"a":10687,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":10688,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":10689,"t":"code","b":[144,243],"m":"bcc","oa":10678,"o":"b_29B6"},{"a":10691,"t":"code","b":[176,227],"m":"bcs","oa":10664,"o":"b_29A8"},{"a":10693,"l":"earth_at","c":"The earth character for the cell at column X, row Y, in $0F: 1 for an odd column and an odd row, 2 for an even column, 3 for an even row, 4 for both even, the two-by-two tiling start_level fills the mine with.","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[10544]},{"a":10695,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":10697,"t":"code","b":[138],"m":"txa"},{"a":10698,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":10699,"t":"code","b":[176,2],"m":"bcs","oa":10703,"o":"b_29CF"},{"a":10701,"t":"code","b":[230,15],"m":"inc","oa":15,"o":"zpa_0F"},{"a":10703,"l":"b_29CF","t":"code","b":[152],"m":"tya","x":[10699]},{"a":10704,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":10705,"t":"code","b":[176,6],"m":"bcs","oa":10713,"o":"r_29D9"},{"a":10707,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":10709,"t":"code","b":[101,15],"m":"adc","oa":15,"o":"zpa_0F"},{"a":10711,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":10713,"l":"r_29D9","t":"code","b":[96],"m":"rts","x":[10705]},{"a":10714,"l":"check_death","c":"The end of pete_touches, every frame. Pete dies (death) when a creature is within a cell of him (creature_touch), or when the cell he is in, or moving into once halfway, holds water or an explosion. If water reaches the cell he is leaving while he is in the first half of a move, the earth he was digging into is put back and he dies in the cell he left.","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[11832]},{"a":10716,"t":"code","b":[165,74],"m":"lda","oa":74,"o":"figure_dir"},{"a":10718,"t":"code","b":[208,20],"m":"bne","oa":10740,"o":"b_29F4"},{"a":10720,"l":"b_29E0","t":"code","b":[177,44],"m":"lda","oa":44,"o":"(pete_cell),y","x":[10744]},{"a":10722,"t":"code","b":[201,92],"m":"cmp","o":"#$5C"},{"a":10724,"t":"code","b":[144,8],"m":"bcc","oa":10734,"o":"b_29EE"},{"a":10726,"t":"code","b":[201,109],"m":"cmp","o":"#$6D"},{"a":10728,"t":"code","b":[144,54],"m":"bcc","oa":10784,"o":"death"},{"a":10730,"t":"code","b":[201,162],"m":"cmp","o":"#$A2"},{"a":10732,"t":"code","b":[240,50],"m":"beq","oa":10784,"o":"death"},{"a":10734,"l":"b_29EE","t":"code","b":[32,122,42],"m":"jsr","oa":10874,"o":"creature_touch","x":[10724,10750,10754]},{"a":10737,"t":"code","b":[176,45],"m":"bcs","oa":10784,"o":"death"},{"a":10739,"t":"code","b":[96],"m":"rts"},{"a":10740,"l":"b_29F4","t":"code","b":[165,39],"m":"lda","oa":39,"o":"figure_step","x":[10718]},{"a":10742,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":10744,"t":"code","b":[176,230],"m":"bcs","oa":10720,"o":"b_29E0"},{"a":10746,"t":"code","b":[177,46],"m":"lda","oa":46,"o":"(pete_from),y"},{"a":10748,"t":"code","b":[201,92],"m":"cmp","o":"#$5C"},{"a":10750,"t":"code","b":[144,238],"m":"bcc","oa":10734,"o":"b_29EE"},{"a":10752,"t":"code","b":[201,109],"m":"cmp","o":"#$6D"},{"a":10754,"t":"code","b":[176,234],"m":"bcs","oa":10734,"o":"b_29EE"},{"a":10756,"t":"code","b":[230,131],"m":"inc","oa":131,"o":"pete_dead"},{"a":10758,"t":"code","b":[177,44],"m":"lda","oa":44,"o":"(pete_cell),y"},{"a":10760,"t":"code","b":[201,53],"m":"cmp","o":"#$35"},{"a":10762,"t":"code","b":[176,12],"m":"bcs","oa":10776,"o":"die_where_he_was"},{"a":10764,"t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":10766,"t":"code","b":[144,8],"m":"bcc","oa":10776,"o":"die_where_he_was"},{"a":10768,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":10770,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":10772,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":10774,"t":"code","b":[145,44],"m":"sta","oa":44,"o":"(pete_cell),y"},{"a":10776,"l":"die_where_he_was","c":"Puts Pete back in the cell he was leaving ($2E/$2F into $2C/$2D), for a death that happens there: water in the cell he is leaving early in a move (check_death), or bumping into water or the face (pete_touches). Falls into death.","t":"code","b":[165,46],"m":"lda","oa":46,"o":"pete_from","x":[10762,10766,11783,11810]},{"a":10778,"t":"code","b":[133,44],"m":"sta","oa":44,"o":"pete_cell"},{"a":10780,"t":"code","b":[165,47],"m":"lda","oa":47,"o":"zpa_2F"},{"a":10782,"t":"code","b":[133,45],"m":"sta","oa":45,"o":"zpa_2D"},{"a":10784,"l":"death","c":"Pete dies: sets the flag main_loop looks for ($83), stops him, stops the other sounds and starts the death's noise (sound, $C1 and $C2). Then he sinks: six times, six frames apart, his standing picture ($1368) and mask ($1370) move down a row, empty rows coming in at the top. Some 120 frames later it returns, and main_loop takes a man and builds the level again. The creatures and the water go on moving meanwhile, from the interrupt.","t":"code","b":[230,131],"m":"inc","oa":131,"o":"pete_dead","x":[10728,10732,10737]},{"a":10786,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10788,"t":"code","b":[133,74],"m":"sta","oa":74,"o":"figure_dir"},{"a":10790,"t":"code","b":[133,39],"m":"sta","oa":39,"o":"figure_step"},{"a":10792,"t":"code","b":[133,191],"m":"sta","oa":191,"o":"zpa_BF"},{"a":10794,"t":"code","b":[133,190],"m":"sta","oa":190,"o":"zpa_BE"},{"a":10796,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":10798,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":10801,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":10803,"t":"code","b":[133,193],"m":"sta","oa":193,"o":"zpa_C1"},{"a":10805,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":10807,"t":"code","b":[133,194],"m":"sta","oa":194,"o":"zpa_C2"},{"a":10809,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":10811,"t":"code","b":[141,16,255],"m":"sta","o":"ted_voice2_freq_hi"},{"a":10814,"t":"code","b":[169,224],"m":"lda","o":"#$E0"},{"a":10816,"t":"code","b":[141,15,255],"m":"sta","o":"ted_voice2_freq_lo"},{"a":10819,"l":"b_2A43","t":"code","b":[165,100],"m":"lda","oa":100,"o":"frame_count","x":[10862]},{"a":10821,"t":"code","b":[24],"m":"clc"},{"a":10822,"t":"code","b":[105,6],"m":"adc","o":"#$06"},{"a":10824,"l":"b_2A48","t":"code","b":[197,100],"m":"cmp","oa":100,"o":"frame_count","x":[10826]},{"a":10826,"t":"code","b":[208,252],"m":"bne","oa":10824,"o":"b_2A48"},{"a":10828,"t":"code","b":[165,39],"m":"lda","oa":39,"o":"figure_step"},{"a":10830,"t":"code","b":[201,6],"m":"cmp","o":"#$06"},{"a":10832,"t":"code","b":[240,30],"m":"beq","oa":10864,"o":"b_2A70"},{"a":10834,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":10836,"t":"code","b":[133,39],"m":"sta","oa":39,"o":"figure_step"},{"a":10838,"t":"code","b":[160,6],"m":"ldy","o":"#$06"},{"a":10840,"l":"b_2A58","t":"code","b":[185,104,19],"m":"lda","oa":4968,"o":"f_1368,y","x":[10853]},{"a":10843,"t":"code","b":[153,105,19],"m":"sta","oa":4969,"o":"f_1369,y"},{"a":10846,"t":"code","b":[185,112,19],"m":"lda","oa":4976,"o":"f_1370,y"},{"a":10849,"t":"code","b":[153,113,19],"m":"sta","oa":4977,"o":"f_1371,y"},{"a":10852,"t":"code","b":[136],"m":"dey"},{"a":10853,"t":"code","b":[16,241],"m":"bpl","oa":10840,"o":"b_2A58"},{"a":10855,"t":"code","b":[140,112,19],"m":"sty","oa":4976,"o":"f_1370"},{"a":10858,"t":"code","b":[200],"m":"iny"},{"a":10859,"t":"code","b":[140,104,19],"m":"sty","oa":4968,"o":"f_1368"},{"a":10862,"t":"code","b":[240,211],"m":"beq","oa":10819,"o":"b_2A43"},{"a":10864,"l":"b_2A70","t":"code","b":[165,100],"m":"lda","oa":100,"o":"frame_count","x":[10832]},{"a":10866,"t":"code","b":[24],"m":"clc"},{"a":10867,"t":"code","b":[105,120],"m":"adc","o":"#$78"},{"a":10869,"l":"b_2A75","t":"code","b":[197,100],"m":"cmp","oa":100,"o":"frame_count","x":[10871]},{"a":10871,"t":"code","b":[208,252],"m":"bne","oa":10869,"o":"b_2A75"},{"a":10873,"t":"code","b":[96],"m":"rts"},{"a":10874,"l":"creature_touch","c":"Whether a creature is touching Pete, called by check_death every frame. Each position is counted in quarter cells (to_quarters), so that a figure halfway across counts where it is drawn. A creature less than a cell away across and up or down (less than 4 quarters each way) kills him: it sets $83 and returns carry set; if Pete was in the first half of a move the earth he was digging is put back and he goes back to the cell he left, in the second half the cell he was entering becomes tunnel. Carry clear when none touches.","t":"code","b":[169,64],"m":"lda","o":"#$40","x":[10734]},{"a":10876,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":10878,"t":"code","b":[162,27],"m":"ldx","o":"#$1B"},{"a":10880,"t":"code","b":[164,74],"m":"ldy","oa":74,"o":"figure_dir"},{"a":10882,"t":"code","b":[165,6],"m":"lda","oa":6,"o":"pete_col"},{"a":10884,"t":"code","b":[32,55,43],"m":"jsr","oa":11063,"o":"to_quarters"},{"a":10887,"t":"code","b":[169,192],"m":"lda","o":"#$C0"},{"a":10889,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":10891,"t":"code","b":[162,29],"m":"ldx","o":"#$1D"},{"a":10893,"t":"code","b":[164,74],"m":"ldy","oa":74,"o":"figure_dir"},{"a":10895,"t":"code","b":[165,7],"m":"lda","oa":7,"o":"pete_row"},{"a":10897,"t":"code","b":[32,55,43],"m":"jsr","oa":11063,"o":"to_quarters"},{"a":10900,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":10902,"t":"code","b":[133,26],"m":"sta","oa":26,"o":"zpa_1A"},{"a":10904,"l":"j_2A98","t":"code","b":[166,26],"m":"ldx","oa":26,"o":"zpa_1A","x":[11058]},{"a":10906,"t":"code","b":[181,35],"m":"lda","oa":35,"o":"zpf_23,x"},{"a":10908,"t":"code","b":[208,3],"m":"bne","oa":10913,"o":"b_2AA1"},{"a":10910,"t":"code","b":[76,46,43],"m":"jmp","oa":11054,"o":"j_2B2E"},{"a":10913,"l":"b_2AA1","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[10908]},{"a":10915,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":10917,"t":"code","b":[181,138],"m":"lda","oa":138,"o":"creature_col,x"},{"a":10919,"t":"code","b":[180,75],"m":"ldy","oa":75,"o":"zpf_4B,x"},{"a":10921,"t":"code","b":[162,13],"m":"ldx","o":"#$0D"},{"a":10923,"t":"code","b":[32,55,43],"m":"jsr","oa":11063,"o":"to_quarters"},{"a":10926,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":10928,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":10930,"t":"code","b":[166,26],"m":"ldx","oa":26,"o":"zpa_1A"},{"a":10932,"t":"code","b":[181,142],"m":"lda","oa":142,"o":"creature_row,x"},{"a":10934,"t":"code","b":[180,75],"m":"ldy","oa":75,"o":"zpf_4B,x"},{"a":10936,"t":"code","b":[162,15],"m":"ldx","o":"#$0F"},{"a":10938,"t":"code","b":[32,55,43],"m":"jsr","oa":11063,"o":"to_quarters"},{"a":10941,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":10943,"t":"code","b":[56],"m":"sec"},{"a":10944,"t":"code","b":[229,27],"m":"sbc","oa":27,"o":"zpa_1B"},{"a":10946,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":10948,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":10950,"t":"code","b":[229,28],"m":"sbc","oa":28,"o":"zpa_1C"},{"a":10952,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":10954,"t":"code","b":[16,13],"m":"bpl","oa":10969,"o":"b_2AD9"},{"a":10956,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10958,"t":"code","b":[56],"m":"sec"},{"a":10959,"t":"code","b":[229,17],"m":"sbc","oa":17,"o":"zpa_11"},{"a":10961,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":10963,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":10965,"t":"code","b":[229,18],"m":"sbc","oa":18,"o":"zpa_12"},{"a":10967,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":10969,"l":"b_2AD9","t":"code","b":[201,0],"m":"cmp","o":"#$00","x":[10954]},{"a":10971,"t":"code","b":[208,81],"m":"bne","oa":11054,"o":"j_2B2E"},{"a":10973,"t":"code","b":[165,17],"m":"lda","oa":17,"o":"zpa_11"},{"a":10975,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":10977,"t":"code","b":[176,75],"m":"bcs","oa":11054,"o":"j_2B2E"},{"a":10979,"t":"code","b":[56],"m":"sec"},{"a":10980,"t":"code","b":[165,29],"m":"lda","oa":29,"o":"zpa_1D"},{"a":10982,"t":"code","b":[229,15],"m":"sbc","oa":15,"o":"zpa_0F"},{"a":10984,"t":"code","b":[176,4],"m":"bcs","oa":10990,"o":"b_2AEE"},{"a":10986,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":10988,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":10990,"l":"b_2AEE","t":"code","b":[201,4],"m":"cmp","o":"#$04","x":[10984]},{"a":10992,"t":"code","b":[176,60],"m":"bcs","oa":11054,"o":"j_2B2E"},{"a":10994,"t":"code","b":[230,131],"m":"inc","oa":131,"o":"pete_dead"},{"a":10996,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":10998,"t":"code","b":[165,74],"m":"lda","oa":74,"o":"figure_dir"},{"a":11000,"t":"code","b":[240,50],"m":"beq","oa":11052,"o":"b_2B2C"},{"a":11002,"t":"code","b":[165,39],"m":"lda","oa":39,"o":"figure_step"},{"a":11004,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":11006,"t":"code","b":[176,20],"m":"bcs","oa":11028,"o":"b_2B14"},{"a":11008,"t":"code","b":[177,44],"m":"lda","oa":44,"o":"(pete_cell),y"},{"a":11010,"t":"code","b":[201,53],"m":"cmp","o":"#$35"},{"a":11012,"t":"code","b":[176,24],"m":"bcs","oa":11038,"o":"b_2B1E"},{"a":11014,"t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":11016,"t":"code","b":[144,20],"m":"bcc","oa":11038,"o":"b_2B1E"},{"a":11018,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":11020,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":11022,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":11024,"t":"code","b":[145,44],"m":"sta","oa":44,"o":"(pete_cell),y"},{"a":11026,"t":"code","b":[208,10],"m":"bne","oa":11038,"o":"b_2B1E"},{"a":11028,"l":"b_2B14","t":"code","b":[177,44],"m":"lda","oa":44,"o":"(pete_cell),y","x":[11006]},{"a":11030,"t":"code","b":[201,53],"m":"cmp","o":"#$35"},{"a":11032,"t":"code","b":[176,4],"m":"bcs","oa":11038,"o":"b_2B1E"},{"a":11034,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11036,"t":"code","b":[145,44],"m":"sta","oa":44,"o":"(pete_cell),y"},{"a":11038,"l":"b_2B1E","t":"code","b":[165,39],"m":"lda","oa":39,"o":"figure_step","x":[11012,11016,11026,11032]},{"a":11040,"t":"code","b":[201,2],"m":"cmp","o":"#$02"},{"a":11042,"t":"code","b":[176,8],"m":"bcs","oa":11052,"o":"b_2B2C"},{"a":11044,"t":"code","b":[165,46],"m":"lda","oa":46,"o":"pete_from"},{"a":11046,"t":"code","b":[133,44],"m":"sta","oa":44,"o":"pete_cell"},{"a":11048,"t":"code","b":[165,47],"m":"lda","oa":47,"o":"zpa_2F"},{"a":11050,"t":"code","b":[133,45],"m":"sta","oa":45,"o":"zpa_2D"},{"a":11052,"l":"b_2B2C","t":"code","b":[56],"m":"sec","x":[11000,11042]},{"a":11053,"t":"code","b":[96],"m":"rts"},{"a":11054,"l":"j_2B2E","t":"code","b":[198,26],"m":"dec","oa":26,"o":"zpa_1A","x":[10910,10971,10977,10992]},{"a":11056,"t":"code","b":[48,3],"m":"bmi","oa":11061,"o":"b_2B35"},{"a":11058,"t":"code","b":[76,152,42],"m":"jmp","oa":10904,"o":"j_2A98"},{"a":11061,"l":"b_2B35","t":"code","b":[24],"m":"clc","x":[11056]},{"a":11062,"t":"code","b":[96],"m":"rts"},{"a":11063,"l":"to_quarters","c":"A figure's column or row in quarter cells, into the 16-bit pair at $00 + X: the cell number times 4, less or more the steps still to go of a move in that line (4 less the step), so that it is where the figure is drawn. Y holds the direction (0 standing); bit 7 of $15 picks rows rather than columns, bit 6 Pete's step ($27) rather than creature $1A's ($28 + n).","t":"code","b":[149,0],"m":"sta","oa":0,"o":"zpf_00,x","x":[10884,10897,10923,10938]},{"a":11065,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11067,"t":"code","b":[149,1],"m":"sta","oa":1,"o":"zpf_01,x"},{"a":11069,"t":"code","b":[22,0],"m":"asl","oa":0,"o":"zpf_00,x"},{"a":11071,"t":"code","b":[54,1],"m":"rol","oa":1,"o":"zpf_01,x"},{"a":11073,"t":"code","b":[22,0],"m":"asl","oa":0,"o":"zpf_00,x"},{"a":11075,"t":"code","b":[54,1],"m":"rol","oa":1,"o":"zpf_01,x"},{"a":11077,"t":"code","b":[192,0],"m":"cpy","o":"#$00"},{"a":11079,"t":"code","b":[208,1],"m":"bne","oa":11082,"o":"b_2B4A"},{"a":11081,"t":"code","b":[96],"m":"rts"},{"a":11082,"l":"b_2B4A","t":"code","b":[132,25],"m":"sty","oa":25,"o":"zpa_19","x":[11079]},{"a":11084,"t":"code","b":[36,21],"m":"bit","oa":21,"o":"zpa_15"},{"a":11086,"t":"code","b":[80,7],"m":"bvc","oa":11095,"o":"b_2B57"},{"a":11088,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":11090,"t":"code","b":[56],"m":"sec"},{"a":11091,"t":"code","b":[229,39],"m":"sbc","oa":39,"o":"figure_step"},{"a":11093,"t":"code","b":[208,8],"m":"bne","oa":11103,"o":"b_2B5F"},{"a":11095,"l":"b_2B57","t":"code","b":[164,26],"m":"ldy","oa":26,"o":"zpa_1A","x":[11086]},{"a":11097,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":11099,"t":"code","b":[56],"m":"sec"},{"a":11100,"t":"code","b":[249,40,0],"m":"sbc","oa":40,"o":"zpf_28,y"},{"a":11103,"l":"b_2B5F","t":"code","b":[133,23],"m":"sta","oa":23,"o":"zpa_17","x":[11093]},{"a":11105,"t":"code","b":[164,25],"m":"ldy","oa":25,"o":"zpa_19"},{"a":11107,"t":"code","b":[36,21],"m":"bit","oa":21,"o":"zpa_15"},{"a":11109,"t":"code","b":[16,9],"m":"bpl","oa":11120,"o":"b_2B70"},{"a":11111,"t":"code","b":[192,1],"m":"cpy","o":"#$01"},{"a":11113,"t":"code","b":[240,14],"m":"beq","oa":11129,"o":"b_2B79"},{"a":11115,"t":"code","b":[192,2],"m":"cpy","o":"#$02"},{"a":11117,"t":"code","b":[240,22],"m":"beq","oa":11141,"o":"b_2B85"},{"a":11119,"t":"code","b":[96],"m":"rts"},{"a":11120,"l":"b_2B70","t":"code","b":[192,3],"m":"cpy","o":"#$03","x":[11109]},{"a":11122,"t":"code","b":[240,5],"m":"beq","oa":11129,"o":"b_2B79"},{"a":11124,"t":"code","b":[192,4],"m":"cpy","o":"#$04"},{"a":11126,"t":"code","b":[240,13],"m":"beq","oa":11141,"o":"b_2B85"},{"a":11128,"t":"code","b":[96],"m":"rts"},{"a":11129,"l":"b_2B79","t":"code","b":[24],"m":"clc","x":[11113,11122]},{"a":11130,"t":"code","b":[117,0],"m":"adc","oa":0,"o":"zpf_00,x"},{"a":11132,"t":"code","b":[149,0],"m":"sta","oa":0,"o":"zpf_00,x"},{"a":11134,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11136,"t":"code","b":[117,1],"m":"adc","oa":1,"o":"zpf_01,x"},{"a":11138,"t":"code","b":[149,1],"m":"sta","oa":1,"o":"zpf_01,x"},{"a":11140,"t":"code","b":[96],"m":"rts"},{"a":11141,"l":"b_2B85","t":"code","b":[181,0],"m":"lda","oa":0,"o":"zpf_00,x","x":[11117,11126]},{"a":11143,"t":"code","b":[56],"m":"sec"},{"a":11144,"t":"code","b":[229,23],"m":"sbc","oa":23,"o":"zpa_17"},{"a":11146,"t":"code","b":[149,0],"m":"sta","oa":0,"o":"zpf_00,x"},{"a":11148,"t":"code","b":[181,1],"m":"lda","oa":1,"o":"zpf_01,x"},{"a":11150,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":11152,"t":"code","b":[149,1],"m":"sta","oa":1,"o":"zpf_01,x"},{"a":11154,"t":"code","b":[96],"m":"rts"},{"a":11155,"l":"dynamite","c":"The sticks of dynamite, once a frame from main_loop. The list at $0700 has three bytes a stick (address low, high, frames left) and is $9E long. Each frame every stick's count goes down. A stick ($6F) whose count runs out explodes: its cell becomes an explosion ($A2), which kills Pete or a creature in it, for 70 more frames, with the explosion's noise. An explosion whose count runs out leaves debris ($A3), which Pete clears by walking into it, and the stick leaves the list; so does a stick the water has covered, which never goes off. While any stick burns, $C3 keeps the fuse's hiss going (sound). Fire, newly pressed, with sticks left, lays a stick in the cell Pete is in or leaving, if it is tunnel, with the level's fuse ($BC); one less stick on the status line.","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[6255]},{"a":11157,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":11159,"t":"code","b":[134,27],"m":"stx","oa":27,"o":"zpa_1B"},{"a":11161,"l":"b_2B99","t":"code","b":[189,2,7],"m":"lda","oa":1794,"o":"a_0702,x","x":[11229,11268]},{"a":11164,"t":"code","b":[240,97],"m":"beq","oa":11263,"o":"b_2BFF"},{"a":11166,"t":"code","b":[189,0,7],"m":"lda","oa":1792,"o":"f_0700,x"},{"a":11169,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":11171,"t":"code","b":[189,1,7],"m":"lda","oa":1793,"o":"a_0701,x"},{"a":11174,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":11176,"t":"code","b":[222,2,7],"m":"dec","oa":1794,"o":"a_0702,x"},{"a":11179,"t":"code","b":[240,10],"m":"beq","oa":11191,"o":"b_2BB7"},{"a":11181,"t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y"},{"a":11183,"t":"code","b":[201,111],"m":"cmp","o":"#$6F"},{"a":11185,"t":"code","b":[208,76],"m":"bne","oa":11263,"o":"b_2BFF"},{"a":11187,"t":"code","b":[133,27],"m":"sta","oa":27,"o":"zpa_1B"},{"a":11189,"t":"code","b":[240,72],"m":"beq","oa":11263,"o":"b_2BFF"},{"a":11191,"l":"b_2BB7","t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y","x":[11179]},{"a":11193,"t":"code","b":[201,111],"m":"cmp","o":"#$6F"},{"a":11195,"t":"code","b":[240,34],"m":"beq","oa":11231,"o":"b_2BDF"},{"a":11197,"t":"code","b":[201,162],"m":"cmp","o":"#$A2"},{"a":11199,"t":"code","b":[208,4],"m":"bne","oa":11205,"o":"b_2BC5"},{"a":11201,"t":"code","b":[169,163],"m":"lda","o":"#$A3"},{"a":11203,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":11205,"l":"b_2BC5","t":"code","b":[138],"m":"txa","x":[11199]},{"a":11206,"t":"code","b":[168],"m":"tay"},{"a":11207,"l":"b_2BC7","t":"code","b":[185,3,7],"m":"lda","oa":1795,"o":"f_0703,y","x":[11216,11218]},{"a":11210,"t":"code","b":[153,0,7],"m":"sta","oa":1792,"o":"f_0700,y"},{"a":11213,"t":"code","b":[200],"m":"iny"},{"a":11214,"t":"code","b":[196,158],"m":"cpy","oa":158,"o":"dynamite_end"},{"a":11216,"t":"code","b":[144,245],"m":"bcc","oa":11207,"o":"b_2BC7"},{"a":11218,"t":"code","b":[240,243],"m":"beq","oa":11207,"o":"b_2BC7"},{"a":11220,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":11222,"t":"code","b":[165,158],"m":"lda","oa":158,"o":"dynamite_end"},{"a":11224,"t":"code","b":[56],"m":"sec"},{"a":11225,"t":"code","b":[233,3],"m":"sbc","o":"#$03"},{"a":11227,"t":"code","b":[133,158],"m":"sta","oa":158,"o":"dynamite_end"},{"a":11229,"t":"code","b":[176,186],"m":"bcs","oa":11161,"o":"b_2B99"},{"a":11231,"l":"b_2BDF","t":"code","b":[169,162],"m":"lda","o":"#$A2","x":[11195]},{"a":11233,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":11235,"t":"code","b":[169,70],"m":"lda","o":"#$46"},{"a":11237,"t":"code","b":[157,2,7],"m":"sta","oa":1794,"o":"a_0702,x"},{"a":11240,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11242,"t":"code","b":[133,190],"m":"sta","oa":190,"o":"zpa_BE"},{"a":11244,"t":"code","b":[169,69],"m":"lda","o":"#$45"},{"a":11246,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":11249,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":11251,"t":"code","b":[133,191],"m":"sta","oa":191,"o":"zpa_BF"},{"a":11253,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":11255,"t":"code","b":[141,16,255],"m":"sta","o":"ted_voice2_freq_hi"},{"a":11258,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":11260,"t":"code","b":[141,15,255],"m":"sta","o":"ted_voice2_freq_lo"},{"a":11263,"l":"b_2BFF","t":"code","b":[232],"m":"inx","x":[11164,11185,11189]},{"a":11264,"t":"code","b":[232],"m":"inx"},{"a":11265,"t":"code","b":[232],"m":"inx"},{"a":11266,"t":"code","b":[228,158],"m":"cpx","oa":158,"o":"dynamite_end"},{"a":11268,"t":"code","b":[144,147],"m":"bcc","oa":11161,"o":"b_2B99"},{"a":11270,"t":"code","b":[165,27],"m":"lda","oa":27,"o":"zpa_1B"},{"a":11272,"t":"code","b":[133,195],"m":"sta","oa":195,"o":"zpa_C3"},{"a":11274,"t":"code","b":[165,159],"m":"lda","oa":159,"o":"sticks"},{"a":11276,"t":"code","b":[240,57],"m":"beq","oa":11335,"o":"r_2C47"},{"a":11278,"t":"code","b":[165,11],"m":"lda","oa":11,"o":"fire"},{"a":11280,"t":"code","b":[240,53],"m":"beq","oa":11335,"o":"r_2C47"},{"a":11282,"t":"code","b":[165,12],"m":"lda","oa":12,"o":"fire_last"},{"a":11284,"t":"code","b":[208,49],"m":"bne","oa":11335,"o":"r_2C47"},{"a":11286,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":11288,"t":"code","b":[133,12],"m":"sta","oa":12,"o":"fire_last"},{"a":11290,"t":"code","b":[177,46],"m":"lda","oa":46,"o":"(pete_from),y"},{"a":11292,"t":"code","b":[208,41],"m":"bne","oa":11335,"o":"r_2C47"},{"a":11294,"t":"code","b":[166,158],"m":"ldx","oa":158,"o":"dynamite_end"},{"a":11296,"t":"code","b":[165,188],"m":"lda","oa":188,"o":"fuse"},{"a":11298,"t":"code","b":[157,2,7],"m":"sta","oa":1794,"o":"a_0702,x"},{"a":11301,"t":"code","b":[165,47],"m":"lda","oa":47,"o":"zpa_2F"},{"a":11303,"t":"code","b":[157,1,7],"m":"sta","oa":1793,"o":"a_0701,x"},{"a":11306,"t":"code","b":[165,46],"m":"lda","oa":46,"o":"pete_from"},{"a":11308,"t":"code","b":[157,0,7],"m":"sta","oa":1792,"o":"f_0700,x"},{"a":11311,"t":"code","b":[169,111],"m":"lda","o":"#$6F"},{"a":11313,"t":"code","b":[145,46],"m":"sta","oa":46,"o":"(pete_from),y"},{"a":11315,"t":"code","b":[133,195],"m":"sta","oa":195,"o":"zpa_C3"},{"a":11317,"t":"code","b":[138],"m":"txa"},{"a":11318,"t":"code","b":[24],"m":"clc"},{"a":11319,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":11321,"t":"code","b":[133,158],"m":"sta","oa":158,"o":"dynamite_end"},{"a":11323,"t":"code","b":[165,159],"m":"lda","oa":159,"o":"sticks"},{"a":11325,"t":"code","b":[56],"m":"sec"},{"a":11326,"t":"code","b":[248],"m":"sed"},{"a":11327,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":11329,"t":"code","b":[133,159],"m":"sta","oa":159,"o":"sticks"},{"a":11331,"t":"code","b":[216],"m":"cld"},{"a":11332,"t":"code","b":[76,167,30],"m":"jmp","oa":7847,"o":"print_sticks"},{"a":11335,"l":"r_2C47","t":"code","b":[96],"m":"rts","x":[11276,11280,11284,11292]},{"a":11336,"l":"place_goodies","c":"Scatters the level's goodies in the earth (start_level), each where find_space finds room: $B1 one-cell ones ($70-$73), $B2 two wide (OIL, $74; $76; $78), from level 8 one x2 (character $7A, which doubles the points of every goodie collected after it in the level, score_item), $B3 two tall ($7C, $7E, $80, and GAS, $82) and $B4 two-by-two ($84, $88, $8C, the money bag $90, the question mark $98, $9C; never the face, $94). Each kind is chosen at random. The two-by-two goodies' addresses go into the list at $0316, which swap_face picks from, and the last placed is the face's first target ($B7/$B8).","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[7627,11355]},{"a":11338,"t":"code","b":[32,63,45],"m":"jsr","oa":11583,"o":"find_space"},{"a":11341,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":11343,"t":"code","b":[32,28,45],"m":"jsr","oa":11548,"o":"random_below"},{"a":11346,"t":"code","b":[24],"m":"clc"},{"a":11347,"t":"code","b":[105,112],"m":"adc","o":"#$70"},{"a":11349,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":11351,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":11353,"t":"code","b":[198,177],"m":"dec","oa":177,"o":"zpa_B1"},{"a":11355,"t":"code","b":[208,235],"m":"bne","oa":11336,"o":"place_goodies"},{"a":11357,"l":"b_2C5D","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[11375]},{"a":11359,"t":"code","b":[32,63,45],"m":"jsr","oa":11583,"o":"find_space"},{"a":11362,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":11364,"t":"code","b":[32,28,45],"m":"jsr","oa":11548,"o":"random_below"},{"a":11367,"t":"code","b":[10],"m":"asl","o":"a"},{"a":11368,"t":"code","b":[105,116],"m":"adc","o":"#$74"},{"a":11370,"t":"code","b":[32,225,44],"m":"jsr","oa":11489,"o":"put_wide"},{"a":11373,"t":"code","b":[198,178],"m":"dec","oa":178,"o":"zpa_B2"},{"a":11375,"t":"code","b":[208,236],"m":"bne","oa":11357,"o":"b_2C5D"},{"a":11377,"t":"code","b":[165,167],"m":"lda","oa":167,"o":"level"},{"a":11379,"t":"code","b":[201,7],"m":"cmp","o":"#$07"},{"a":11381,"t":"code","b":[144,12],"m":"bcc","oa":11395,"o":"b_2C83"},{"a":11383,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":11385,"t":"code","b":[32,63,45],"m":"jsr","oa":11583,"o":"find_space"},{"a":11388,"t":"code","b":[169,122],"m":"lda","o":"#$7A"},{"a":11390,"t":"code","b":[32,225,44],"m":"jsr","oa":11489,"o":"put_wide"},{"a":11393,"t":"code","b":[230,181],"m":"inc","oa":181,"o":"goodies_left"},{"a":11395,"l":"b_2C83","t":"code","b":[169,2],"m":"lda","o":"#$02","x":[11381,11413]},{"a":11397,"t":"code","b":[32,63,45],"m":"jsr","oa":11583,"o":"find_space"},{"a":11400,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":11402,"t":"code","b":[32,28,45],"m":"jsr","oa":11548,"o":"random_below"},{"a":11405,"t":"code","b":[10],"m":"asl","o":"a"},{"a":11406,"t":"code","b":[105,124],"m":"adc","o":"#$7C"},{"a":11408,"t":"code","b":[32,236,44],"m":"jsr","oa":11500,"o":"put_tall"},{"a":11411,"t":"code","b":[198,179],"m":"dec","oa":179,"o":"zpa_B3"},{"a":11413,"t":"code","b":[208,236],"m":"bne","oa":11395,"o":"b_2C83"},{"a":11415,"t":"code","b":[165,180],"m":"lda","oa":180,"o":"zpa_B4"},{"a":11417,"t":"code","b":[72],"m":"pha"},{"a":11418,"l":"b_2C9A","t":"code","b":[169,3],"m":"lda","o":"#$03","x":[11461]},{"a":11420,"t":"code","b":[32,63,45],"m":"jsr","oa":11583,"o":"find_space"},{"a":11423,"l":"b_2C9F","t":"code","b":[169,7],"m":"lda","o":"#$07","x":[11430]},{"a":11425,"t":"code","b":[32,28,45],"m":"jsr","oa":11548,"o":"random_below"},{"a":11428,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":11430,"t":"code","b":[240,247],"m":"beq","oa":11423,"o":"b_2C9F"},{"a":11432,"t":"code","b":[10],"m":"asl","o":"a"},{"a":11433,"t":"code","b":[10],"m":"asl","o":"a"},{"a":11434,"t":"code","b":[105,132],"m":"adc","o":"#$84"},{"a":11436,"t":"code","b":[32,203,44],"m":"jsr","oa":11467,"o":"put_square"},{"a":11439,"t":"code","b":[166,180],"m":"ldx","oa":180,"o":"zpa_B4"},{"a":11441,"t":"code","b":[202],"m":"dex"},{"a":11442,"t":"code","b":[138],"m":"txa"},{"a":11443,"t":"code","b":[10],"m":"asl","o":"a"},{"a":11444,"t":"code","b":[170],"m":"tax"},{"a":11445,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":11447,"t":"code","b":[157,22,3],"m":"sta","oa":790,"o":"f_0316,x"},{"a":11450,"t":"code","b":[133,183],"m":"sta","oa":183,"o":"zpa_B7"},{"a":11452,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":11454,"t":"code","b":[157,23,3],"m":"sta","oa":791,"o":"f_0317,x"},{"a":11457,"t":"code","b":[133,184],"m":"sta","oa":184,"o":"zpa_B8"},{"a":11459,"t":"code","b":[198,180],"m":"dec","oa":180,"o":"zpa_B4"},{"a":11461,"t":"code","b":[208,211],"m":"bne","oa":11418,"o":"b_2C9A"},{"a":11463,"t":"code","b":[104],"m":"pla"},{"a":11464,"t":"code","b":[133,180],"m":"sta","oa":180,"o":"zpa_B4"},{"a":11466,"t":"code","b":[96],"m":"rts"},{"a":11467,"l":"put_square","c":"Writes a two-by-two thing into the map at ($0D): A and A + 1 on top, A + 2 and A + 3 below. Used for the earth (start_level), the large goodies (place_goodies) and the face (swap_face).","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[6487,7592,11436]},{"a":11469,"t":"code","b":[24],"m":"clc"},{"a":11470,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":11472,"t":"code","b":[200],"m":"iny"},{"a":11473,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":11475,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":11477,"t":"code","b":[160,90],"m":"ldy","o":"#$5A"},{"a":11479,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":11481,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":11483,"t":"code","b":[200],"m":"iny"},{"a":11484,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":11486,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":11488,"t":"code","b":[96],"m":"rts"},{"a":11489,"l":"put_wide","c":"Writes a goodie two cells wide into the map at ($0D): A, then A + 1 to its right.","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[11370,11390]},{"a":11491,"t":"code","b":[24],"m":"clc"},{"a":11492,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":11494,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":11496,"t":"code","b":[200],"m":"iny"},{"a":11497,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":11499,"t":"code","b":[96],"m":"rts"},{"a":11500,"l":"put_tall","c":"Writes a goodie two cells tall into the map at ($0D): A, then A + 1 below it.","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[11408]},{"a":11502,"t":"code","b":[24],"m":"clc"},{"a":11503,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":11505,"t":"code","b":[160,90],"m":"ldy","o":"#$5A"},{"a":11507,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":11509,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":11511,"t":"code","b":[96],"m":"rts"},{"a":11512,"l":"row_address_lo","c":"The map's rows 4 to 21 by address, two bytes each (low, high): $3952, $39AC and on, $5A apart. find_space reads the low bytes here, indexed by twice the row less 4.","t":"addr","b":[82,57],"oa":14674,"o":"f_3952","x":[11656]},{"a":11513,"t":"note","l":"row_address_hi","c":"The same table of row addresses read from its high bytes, as find_space does at $2CF9 + 2 x (row - 4); with the low byte at $2CF8 + 2 x (row - 4).","note":"inside the item at $2CF8","x":[11663]},{"a":11514,"t":"addr","b":[172,57],"oa":14764,"o":"f_39AC"},{"a":11516,"t":"addr","b":[6,58],"oa":14854,"o":"f_3A06"},{"a":11518,"t":"addr","b":[96,58],"oa":14944,"o":"f_3A60"},{"a":11520,"t":"addr","b":[186,58],"oa":15034,"o":"f_3ABA"},{"a":11522,"t":"addr","b":[20,59],"oa":15124,"o":"f_3B14"},{"a":11524,"t":"addr","b":[110,59],"oa":15214,"o":"f_3B6E"},{"a":11526,"t":"addr","b":[200,59],"oa":15304,"o":"f_3BC8"},{"a":11528,"t":"addr","b":[34,60],"oa":15394,"o":"f_3C22"},{"a":11530,"t":"addr","b":[124,60],"oa":15484,"o":"f_3C7C"},{"a":11532,"t":"addr","b":[214,60],"oa":15574,"o":"f_3CD6"},{"a":11534,"t":"addr","b":[48,61],"oa":15664,"o":"f_3D30"},{"a":11536,"t":"addr","b":[138,61],"oa":15754,"o":"f_3D8A"},{"a":11538,"t":"addr","b":[228,61],"oa":15844,"o":"f_3DE4"},{"a":11540,"t":"addr","b":[62,62],"oa":15934,"o":"f_3E3E"},{"a":11542,"t":"addr","b":[152,62],"oa":16024,"o":"f_3E98"},{"a":11544,"t":"addr","b":[242,62],"oa":16114,"o":"f_3EF2"},{"a":11546,"t":"addr","b":[76,63],"oa":16204,"o":"f_3F4C"},{"a":11548,"l":"random_below","c":"A random number from 0 to one less than A, from the raster position, timers 1 and 2 and the running seed at $7A (which it updates), reduced by repeated subtraction.","t":"code","b":[133,28],"m":"sta","oa":28,"o":"zpa_1C","x":[11343,11364,11402,11425,11591,11641]},{"a":11550,"t":"code","b":[173,30,255],"m":"lda","o":"ted_hpos"},{"a":11553,"t":"code","b":[109,0,255],"m":"adc","o":"ted_timer1_lo"},{"a":11556,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":11557,"t":"code","b":[106],"m":"ror","o":"a"},{"a":11558,"t":"code","b":[77,0,255],"m":"eor","o":"ted_timer1_lo"},{"a":11561,"t":"code","b":[101,122],"m":"adc","oa":122,"o":"random_seed"},{"a":11563,"t":"code","b":[133,122],"m":"sta","oa":122,"o":"random_seed"},{"a":11565,"t":"code","b":[109,29,255],"m":"adc","o":"ted_raster_lo"},{"a":11568,"t":"code","b":[10],"m":"asl","o":"a"},{"a":11569,"t":"code","b":[42],"m":"rol","o":"a"},{"a":11570,"t":"code","b":[109,2,255],"m":"adc","o":"ted_timer2_lo"},{"a":11573,"l":"j_2D35","t":"code","b":[197,28],"m":"cmp","oa":28,"o":"zpa_1C","x":[11580]},{"a":11575,"t":"code","b":[176,1],"m":"bcs","oa":11578,"o":"b_2D3A"},{"a":11577,"t":"code","b":[96],"m":"rts"},{"a":11578,"l":"b_2D3A","t":"code","b":[229,28],"m":"sbc","oa":28,"o":"zpa_1C","x":[11575]},{"a":11580,"t":"code","b":[76,53,45],"m":"jmp","oa":11573,"o":"j_2D35"},{"a":11583,"l":"find_space","c":"Picks a random place for a goodie, its size in A (bit 0 two wide, bit 1 two tall): a column from 1 to 42 or 46 to 88, either side of the shaft and its neighbours, and a row from 4 to 21, keeping the goodie inside them. It tries again until the four-by-four block of cells from one above and to the left of the place holds no other goodie, so goodies never touch. Leaves the address in $0D/$0E.","t":"code","b":[133,25],"m":"sta","oa":25,"o":"zpa_19","x":[11338,11359,11385,11397,11420]},{"a":11585,"l":"b_2D41","t":"code","b":[165,25],"m":"lda","oa":25,"o":"zpa_19","x":[11691]},{"a":11587,"t":"code","b":[133,27],"m":"sta","oa":27,"o":"zpa_1B"},{"a":11589,"t":"code","b":[169,43],"m":"lda","o":"#$2B"},{"a":11591,"t":"code","b":[32,28,45],"m":"jsr","oa":11548,"o":"random_below"},{"a":11594,"t":"code","b":[170],"m":"tax"},{"a":11595,"t":"code","b":[173,0,255],"m":"lda","o":"ted_timer1_lo"},{"a":11598,"t":"code","b":[77,2,255],"m":"eor","o":"ted_timer2_lo"},{"a":11601,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":11602,"t":"code","b":[138],"m":"txa"},{"a":11603,"t":"code","b":[176,20],"m":"bcs","oa":11625,"o":"b_2D69"},{"a":11605,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":11607,"t":"code","b":[201,43],"m":"cmp","o":"#$2B"},{"a":11609,"t":"code","b":[208,2],"m":"bne","oa":11613,"o":"b_2D5D"},{"a":11611,"t":"code","b":[169,42],"m":"lda","o":"#$2A"},{"a":11613,"l":"b_2D5D","t":"code","b":[70,27],"m":"lsr","oa":27,"o":"zpa_1B","x":[11609]},{"a":11615,"t":"code","b":[144,20],"m":"bcc","oa":11637,"o":"b_2D75"},{"a":11617,"t":"code","b":[201,42],"m":"cmp","o":"#$2A"},{"a":11619,"t":"code","b":[208,16],"m":"bne","oa":11637,"o":"b_2D75"},{"a":11621,"t":"code","b":[169,41],"m":"lda","o":"#$29"},{"a":11623,"t":"code","b":[208,12],"m":"bne","oa":11637,"o":"b_2D75"},{"a":11625,"l":"b_2D69","t":"code","b":[105,45],"m":"adc","o":"#$2D","x":[11603]},{"a":11627,"t":"code","b":[70,27],"m":"lsr","oa":27,"o":"zpa_1B"},{"a":11629,"t":"code","b":[144,6],"m":"bcc","oa":11637,"o":"b_2D75"},{"a":11631,"t":"code","b":[201,88],"m":"cmp","o":"#$58"},{"a":11633,"t":"code","b":[144,2],"m":"bcc","oa":11637,"o":"b_2D75"},{"a":11635,"t":"code","b":[169,87],"m":"lda","o":"#$57"},{"a":11637,"l":"b_2D75","t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F","x":[11615,11619,11623,11629,11633]},{"a":11639,"t":"code","b":[169,18],"m":"lda","o":"#$12"},{"a":11641,"t":"code","b":[32,28,45],"m":"jsr","oa":11548,"o":"random_below"},{"a":11644,"t":"code","b":[70,27],"m":"lsr","oa":27,"o":"zpa_1B"},{"a":11646,"t":"code","b":[144,6],"m":"bcc","oa":11654,"o":"b_2D86"},{"a":11648,"t":"code","b":[201,17],"m":"cmp","o":"#$11"},{"a":11650,"t":"code","b":[208,2],"m":"bne","oa":11654,"o":"b_2D86"},{"a":11652,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":11654,"l":"b_2D86","t":"code","b":[10],"m":"asl","o":"a","x":[11646,11650]},{"a":11655,"t":"code","b":[170],"m":"tax"},{"a":11656,"t":"code","b":[189,248,44],"m":"lda","oa":11512,"o":"row_address_lo,x"},{"a":11659,"t":"code","b":[101,15],"m":"adc","oa":15,"o":"zpa_0F"},{"a":11661,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":11663,"t":"code","b":[189,249,44],"m":"lda","oa":11513,"o":"row_address_hi,x"},{"a":11666,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":11668,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":11670,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":11672,"t":"code","b":[56],"m":"sec"},{"a":11673,"t":"code","b":[233,91],"m":"sbc","o":"#$5B"},{"a":11675,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":11677,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":11679,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":11681,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":11683,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":11685,"l":"b_2DA5","t":"code","b":[160,3],"m":"ldy","o":"#$03","x":[11709]},{"a":11687,"l":"b_2DA7","t":"code","b":[177,17],"m":"lda","oa":17,"o":"(zpa_11),y","x":[11694]},{"a":11689,"t":"code","b":[201,112],"m":"cmp","o":"#$70"},{"a":11691,"t":"code","b":[176,148],"m":"bcs","oa":11585,"o":"b_2D41"},{"a":11693,"t":"code","b":[136],"m":"dey"},{"a":11694,"t":"code","b":[16,247],"m":"bpl","oa":11687,"o":"b_2DA7"},{"a":11696,"t":"code","b":[165,17],"m":"lda","oa":17,"o":"zpa_11"},{"a":11698,"t":"code","b":[105,90],"m":"adc","o":"#$5A"},{"a":11700,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":11702,"t":"code","b":[165,18],"m":"lda","oa":18,"o":"zpa_12"},{"a":11704,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":11706,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":11708,"t":"code","b":[202],"m":"dex"},{"a":11709,"t":"code","b":[16,230],"m":"bpl","oa":11685,"o":"b_2DA5"},{"a":11711,"t":"code","b":[96],"m":"rts"},{"a":11712,"l":"release_creature","c":"Lets a creature out, called by main_loop each time the count of seconds at $7B runs out (irq_play counts it down, main_loop sets it again from $7C) once the flood has begun: the first free one from number $9D down to 0 starts at the bottom of the shaft (column 44, row 21, the cell $3F78, coming from $3F1E above it) moving down, at the end of its step. The count runs from the start of the level, flood or not, so the first creature comes out within $7C seconds of the flood.","t":"code","b":[165,157],"m":"lda","oa":157,"o":"creature_max","x":[6252]},{"a":11714,"t":"code","b":[133,27],"m":"sta","oa":27,"o":"zpa_1B"},{"a":11716,"l":"b_2DC4","t":"code","b":[166,27],"m":"ldx","oa":27,"o":"zpa_1B","x":[11765]},{"a":11718,"t":"code","b":[181,35],"m":"lda","oa":35,"o":"zpf_23,x"},{"a":11720,"t":"code","b":[208,41],"m":"bne","oa":11763,"o":"b_2DF3"},{"a":11722,"t":"code","b":[138],"m":"txa"},{"a":11723,"t":"code","b":[10],"m":"asl","o":"a"},{"a":11724,"t":"code","b":[10],"m":"asl","o":"a"},{"a":11725,"t":"code","b":[170],"m":"tax"},{"a":11726,"t":"code","b":[169,120],"m":"lda","o":"#$78"},{"a":11728,"t":"code","b":[149,48],"m":"sta","oa":48,"o":"zpf_30,x"},{"a":11730,"t":"code","b":[169,63],"m":"lda","o":"#$3F"},{"a":11732,"t":"code","b":[149,49],"m":"sta","oa":49,"o":"zpf_31,x"},{"a":11734,"t":"code","b":[169,30],"m":"lda","o":"#$1E"},{"a":11736,"t":"code","b":[149,50],"m":"sta","oa":50,"o":"zpf_32,x"},{"a":11738,"t":"code","b":[169,63],"m":"lda","o":"#$3F"},{"a":11740,"t":"code","b":[149,51],"m":"sta","oa":51,"o":"zpf_33,x"},{"a":11742,"t":"code","b":[166,27],"m":"ldx","oa":27,"o":"zpa_1B"},{"a":11744,"t":"code","b":[169,21],"m":"lda","o":"#$15"},{"a":11746,"t":"code","b":[149,142],"m":"sta","oa":142,"o":"creature_row,x"},{"a":11748,"t":"code","b":[169,44],"m":"lda","o":"#$2C"},{"a":11750,"t":"code","b":[149,138],"m":"sta","oa":138,"o":"creature_col,x"},{"a":11752,"t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":11754,"t":"code","b":[148,40],"m":"sty","oa":40,"o":"zpf_28,x"},{"a":11756,"t":"code","b":[136],"m":"dey"},{"a":11757,"t":"code","b":[148,75],"m":"sty","oa":75,"o":"zpf_4B,x"},{"a":11759,"t":"code","b":[136],"m":"dey"},{"a":11760,"t":"code","b":[148,35],"m":"sty","oa":35,"o":"zpf_23,x"},{"a":11762,"t":"code","b":[96],"m":"rts"},{"a":11763,"l":"b_2DF3","t":"code","b":[198,27],"m":"dec","oa":27,"o":"zpa_1B","x":[11720]},{"a":11765,"t":"code","b":[16,205],"m":"bpl","oa":11716,"o":"b_2DC4"},{"a":11767,"t":"code","b":[96],"m":"rts"},{"a":11768,"l":"pete_touches","c":"What Pete touched, once a frame from main_loop, after kill_bonus has paid for any creature the dynamite killed. Bumping into water ($65 from can_enter) kills him where he stands; a goodie ($70-$9F) is counted (count_goodie) and scored (score_item), with the pick-up's warble on voice 1, unless it was the face, which kills him. Then check_death.","t":"code","b":[32,237,46],"m":"jsr","oa":12013,"o":"kill_bonus","x":[6258]},{"a":11771,"t":"code","b":[165,101],"m":"lda","oa":101,"o":"pete_bumped"},{"a":11773,"t":"code","b":[240,57],"m":"beq","oa":11832,"o":"b_2E38"},{"a":11775,"t":"code","b":[201,92],"m":"cmp","o":"#$5C"},{"a":11777,"t":"code","b":[144,7],"m":"bcc","oa":11786,"o":"b_2E0A"},{"a":11779,"t":"code","b":[201,109],"m":"cmp","o":"#$6D"},{"a":11781,"t":"code","b":[176,3],"m":"bcs","oa":11786,"o":"b_2E0A"},{"a":11783,"t":"code","b":[76,24,42],"m":"jmp","oa":10776,"o":"die_where_he_was"},{"a":11786,"l":"b_2E0A","t":"code","b":[201,112],"m":"cmp","o":"#$70","x":[11777,11781]},{"a":11788,"t":"code","b":[144,42],"m":"bcc","oa":11832,"o":"b_2E38"},{"a":11790,"t":"code","b":[201,160],"m":"cmp","o":"#$A0"},{"a":11792,"t":"code","b":[176,38],"m":"bcs","oa":11832,"o":"b_2E38"},{"a":11794,"t":"code","b":[72],"m":"pha"},{"a":11795,"t":"code","b":[32,217,40],"m":"jsr","oa":10457,"o":"count_goodie"},{"a":11798,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11800,"t":"code","b":[133,101],"m":"sta","oa":101,"o":"pete_bumped"},{"a":11802,"t":"code","b":[104],"m":"pla"},{"a":11803,"t":"code","b":[32,59,46],"m":"jsr","oa":11835,"o":"score_item"},{"a":11806,"t":"code","b":[165,131],"m":"lda","oa":131,"o":"pete_dead"},{"a":11808,"t":"code","b":[240,3],"m":"beq","oa":11813,"o":"b_2E25"},{"a":11810,"t":"code","b":[76,24,42],"m":"jmp","oa":10776,"o":"die_where_he_was"},{"a":11813,"l":"b_2E25","t":"code","b":[169,16],"m":"lda","o":"#$10","x":[11808]},{"a":11815,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":11818,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":11820,"t":"code","b":[133,190],"m":"sta","oa":190,"o":"zpa_BE"},{"a":11822,"t":"code","b":[169,9],"m":"lda","o":"#$09"},{"a":11824,"t":"code","b":[141,18,255],"m":"sta","o":"ted_bitmap_voice1_hi"},{"a":11827,"t":"code","b":[169,56],"m":"lda","o":"#$38"},{"a":11829,"t":"code","b":[141,14,255],"m":"sta","o":"ted_voice1_freq_lo"},{"a":11832,"l":"b_2E38","t":"code","b":[76,218,41],"m":"jmp","oa":10714,"o":"check_death","x":[11773,11788,11792]},{"a":11835,"l":"score_item","c":"Scores the goodie in A, whose characters are reduced to one of 19 kinds: $70-$73 are kinds 0 to 3; below $7E a pair's kind is half its offset from $70 plus 2 ($74 is 4, $7C is 8); from $7E on it is a quarter of the offset plus 7 ($84 is 12, $9C is 18), so the tall $7E is kind 10, the tall $80 and $82 share kind 11, and kind 9 is never made. Kind 7, the x2, sets $AF, which doubles everything scored after it in the level. Kind 16, the face, kills Pete ($83). Kind 17, the question mark, is worth a random 0 to 190 points in steps of 10. The rest take their points from the table at $2E8A (add_score).","t":"code","b":[56],"m":"sec","x":[11803]},{"a":11836,"t":"code","b":[233,112],"m":"sbc","o":"#$70"},{"a":11838,"t":"code","b":[201,4],"m":"cmp","o":"#$04"},{"a":11840,"t":"code","b":[144,16],"m":"bcc","oa":11858,"o":"b_2E52"},{"a":11842,"t":"code","b":[41,62],"m":"and","o":"#$3E"},{"a":11844,"t":"code","b":[201,14],"m":"cmp","o":"#$0E"},{"a":11846,"t":"code","b":[176,5],"m":"bcs","oa":11853,"o":"b_2E4D"},{"a":11848,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":11849,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":11851,"t":"code","b":[208,5],"m":"bne","oa":11858,"o":"b_2E52"},{"a":11853,"l":"b_2E4D","t":"code","b":[74],"m":"lsr","o":"a","x":[11846]},{"a":11854,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":11855,"t":"code","b":[24],"m":"clc"},{"a":11856,"t":"code","b":[105,7],"m":"adc","o":"#$07"},{"a":11858,"l":"b_2E52","t":"code","b":[201,7],"m":"cmp","o":"#$07","x":[11840,11851]},{"a":11860,"t":"code","b":[208,3],"m":"bne","oa":11865,"o":"b_2E59"},{"a":11862,"t":"code","b":[133,175],"m":"sta","oa":175,"o":"double_points"},{"a":11864,"t":"code","b":[96],"m":"rts"},{"a":11865,"l":"b_2E59","t":"code","b":[201,16],"m":"cmp","o":"#$10","x":[11860]},{"a":11867,"t":"code","b":[208,3],"m":"bne","oa":11872,"o":"b_2E60"},{"a":11869,"t":"code","b":[230,131],"m":"inc","oa":131,"o":"pete_dead"},{"a":11871,"t":"code","b":[96],"m":"rts"},{"a":11872,"l":"b_2E60","t":"code","b":[201,17],"m":"cmp","o":"#$11","x":[11867]},{"a":11874,"t":"code","b":[208,23],"m":"bne","oa":11899,"o":"b_2E7B"},{"a":11876,"t":"code","b":[173,0,255],"m":"lda","o":"ted_timer1_lo"},{"a":11879,"t":"code","b":[41,1],"m":"and","o":"#$01"},{"a":11881,"t":"code","b":[133,174],"m":"sta","oa":174,"o":"zpa_AE"},{"a":11883,"l":"b_2E6B","t":"code","b":[173,2,255],"m":"lda","o":"ted_timer2_lo","x":[11893]},{"a":11886,"t":"code","b":[77,30,255],"m":"eor","o":"ted_hpos"},{"a":11889,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":11891,"t":"code","b":[201,160],"m":"cmp","o":"#$A0"},{"a":11893,"t":"code","b":[176,244],"m":"bcs","oa":11883,"o":"b_2E6B"},{"a":11895,"t":"code","b":[133,173],"m":"sta","oa":173,"o":"points"},{"a":11897,"t":"code","b":[144,12],"m":"bcc","oa":11911,"o":"b_2E87"},{"a":11899,"l":"b_2E7B","t":"code","b":[10],"m":"asl","o":"a","x":[11874]},{"a":11900,"t":"code","b":[170],"m":"tax"},{"a":11901,"t":"code","b":[189,138,46],"m":"lda","oa":11914,"o":"points_lo,x"},{"a":11904,"t":"code","b":[133,173],"m":"sta","oa":173,"o":"points"},{"a":11906,"t":"code","b":[189,139,46],"m":"lda","oa":11915,"o":"points_hi,x"},{"a":11909,"t":"code","b":[133,174],"m":"sta","oa":174,"o":"zpa_AE"},{"a":11911,"l":"b_2E87","t":"code","b":[76,176,46],"m":"jmp","oa":11952,"o":"add_score","x":[11897]},{"a":11914,"l":"points_lo","c":"The points each kind of goodie is worth, two bytes a kind (binary-coded decimal: the low two digits, then the next two), kinds 0 to 18: 60, 55, 50 and 35 for the small ones; 15 for OIL, 5 for $76, 20 for $78, and an unread 0 for the x2; 25 for $7C, an unused 15, then 15 and 15 for $7E and for $80 and GAS; 50, 55, 60 and 70 (the money bag) for the square ones; unread entries for the face and the question mark; and 80 for $9C. score_item reads the low digits here.","t":"byte","b":[96],"x":[11901]},{"a":11915,"l":"points_hi","c":"The same table of points read for the hundreds and thousands digits, which are 0 for every kind: score_item reads them at $2E8B + 2 x kind.","t":"byte","b":[0,85,0,80,0,53,0,21],"x":[11906]},{"a":11923,"t":"byte","b":[0,5,0,32,0,0,0,37]},{"a":11931,"t":"byte","b":[0,21,0,21,0,21,0,80]},{"a":11939,"t":"byte","b":[0,85,0,96,0,112,0,0]},{"a":11947,"t":"byte","b":[0,0,0,128,0]},{"a":11952,"l":"add_score","c":"Adds the points in $AD (the low two digits) and $AE (the next two), both binary-coded decimal, to the score $AA-$AC, doubling them first when $AF is set. When the top byte changes, every 10,000 points, Pete gets another man. Writes the score on the status line.","t":"code","b":[165,175],"m":"lda","oa":175,"o":"double_points","x":[6367,11911,12030]},{"a":11954,"t":"code","b":[240,14],"m":"beq","oa":11970,"o":"b_2EC2"},{"a":11956,"t":"code","b":[248],"m":"sed"},{"a":11957,"t":"code","b":[24],"m":"clc"},{"a":11958,"t":"code","b":[165,173],"m":"lda","oa":173,"o":"points"},{"a":11960,"t":"code","b":[101,173],"m":"adc","oa":173,"o":"points"},{"a":11962,"t":"code","b":[133,173],"m":"sta","oa":173,"o":"points"},{"a":11964,"t":"code","b":[165,174],"m":"lda","oa":174,"o":"zpa_AE"},{"a":11966,"t":"code","b":[101,174],"m":"adc","oa":174,"o":"zpa_AE"},{"a":11968,"t":"code","b":[133,174],"m":"sta","oa":174,"o":"zpa_AE"},{"a":11970,"l":"b_2EC2","t":"code","b":[165,172],"m":"lda","oa":172,"o":"zpa_AC","x":[11954]},{"a":11972,"t":"code","b":[72],"m":"pha"},{"a":11973,"t":"code","b":[248],"m":"sed"},{"a":11974,"t":"code","b":[24],"m":"clc"},{"a":11975,"t":"code","b":[165,173],"m":"lda","oa":173,"o":"points"},{"a":11977,"t":"code","b":[101,170],"m":"adc","oa":170,"o":"score"},{"a":11979,"t":"code","b":[133,170],"m":"sta","oa":170,"o":"score"},{"a":11981,"t":"code","b":[165,174],"m":"lda","oa":174,"o":"zpa_AE"},{"a":11983,"t":"code","b":[101,171],"m":"adc","oa":171,"o":"zpa_AB"},{"a":11985,"t":"code","b":[133,171],"m":"sta","oa":171,"o":"zpa_AB"},{"a":11987,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":11989,"t":"code","b":[101,172],"m":"adc","oa":172,"o":"zpa_AC"},{"a":11991,"t":"code","b":[133,172],"m":"sta","oa":172,"o":"zpa_AC"},{"a":11993,"t":"code","b":[104],"m":"pla"},{"a":11994,"t":"code","b":[197,172],"m":"cmp","oa":172,"o":"zpa_AC"},{"a":11996,"t":"code","b":[240,11],"m":"beq","oa":12009,"o":"b_2EE9"},{"a":11998,"t":"code","b":[165,169],"m":"lda","oa":169,"o":"men"},{"a":12000,"t":"code","b":[24],"m":"clc"},{"a":12001,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":12003,"t":"code","b":[133,169],"m":"sta","oa":169,"o":"men"},{"a":12005,"t":"code","b":[216],"m":"cld"},{"a":12006,"t":"code","b":[32,136,30],"m":"jsr","oa":7816,"o":"print_men"},{"a":12009,"l":"b_2EE9","t":"code","b":[216],"m":"cld","x":[11996]},{"a":12010,"t":"code","b":[76,175,30],"m":"jmp","oa":7855,"o":"print_score"},{"a":12013,"l":"kill_bonus","c":"150 points (add_score) when the last pass of move_creatures counted a creature killed by an explosion ($B0), however many it was.","t":"code","b":[165,176],"m":"lda","oa":176,"o":"zpa_B0","x":[11768]},{"a":12015,"t":"code","b":[208,1],"m":"bne","oa":12018,"o":"b_2EF2"},{"a":12017,"t":"code","b":[96],"m":"rts"},{"a":12018,"l":"b_2EF2","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[12015]},{"a":12020,"t":"code","b":[134,176],"m":"stx","oa":176,"o":"zpa_B0"},{"a":12022,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":12024,"t":"code","b":[133,174],"m":"sta","oa":174,"o":"zpa_AE"},{"a":12026,"t":"code","b":[169,80],"m":"lda","o":"#$50"},{"a":12028,"t":"code","b":[133,173],"m":"sta","oa":173,"o":"points"},{"a":12030,"t":"code","b":[208,176],"m":"bne","oa":11952,"o":"add_score"},{"a":12032,"l":"title","c":"The title screen, from main_loop at the start and after each game. Switches the screen off, sets 40 columns of multicolour characters, points the interrupt at irq_title (raster line $D0), and colours: black, $4D and $1E. Fills the screen with the patterned character $A4 and frames it with the characters irq_title animates ($AE-$B5); draws two boxes with shadows (draw_box) and the text at $3202 (print_script): the credits, a bar under the name, the level and the controls in use (show_controls). Clears the scroller's characters and lays out its row: 16 characters, $C7-$D6, at row 19, column 19. Chooses what scrolls first by the score of the game just played: the greeting for no score, else MEGA SCORE from 10,000, PATHETIC under 2,000, NOT QUITE under 6,000, NOT BAD under 9,000, MY MAIN MAN for the rest. Switches the screen on, takes any name for the high scores (high_scores), then waits a frame at a time: fire, newly pressed, starts a game with no score and two men in hand (MEN 02); RETURN changes the controls (toggle_controls); left and right change the level (change_level).","t":"code","b":[120],"m":"sei","x":[6220]},{"a":12033,"t":"code","b":[216],"m":"cld"},{"a":12034,"t":"code","b":[169,11],"m":"lda","o":"#$0B"},{"a":12036,"t":"code","b":[141,6,255],"m":"sta","o":"ted_control1"},{"a":12039,"t":"code","b":[169,152],"m":"lda","o":"#$98"},{"a":12041,"t":"code","b":[141,7,255],"m":"sta","o":"ted_control2"},{"a":12044,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":12046,"t":"code","b":[162,48],"m":"ldx","o":"#$30"},{"a":12048,"t":"code","b":[141,20,3],"m":"sta","oa":788,"o":"a_0314"},{"a":12051,"t":"code","b":[142,21,3],"m":"stx","oa":789,"o":"a_0315"},{"a":12054,"t":"code","b":[169,208],"m":"lda","o":"#$D0"},{"a":12056,"t":"code","b":[141,11,255],"m":"sta","o":"ted_raster_compare"},{"a":12059,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":12061,"t":"code","b":[141,21,255],"m":"sta","o":"ted_background"},{"a":12064,"t":"code","b":[133,164],"m":"sta","oa":164,"o":"zpa_A4"},{"a":12066,"t":"code","b":[133,189],"m":"sta","oa":189,"o":"zpa_BD"},{"a":12068,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":12071,"t":"code","b":[169,77],"m":"lda","o":"#$4D"},{"a":12073,"t":"code","b":[141,22,255],"m":"sta","o":"ted_colour1"},{"a":12076,"t":"code","b":[169,30],"m":"lda","o":"#$1E"},{"a":12078,"t":"code","b":[141,23,255],"m":"sta","o":"ted_colour2"},{"a":12081,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":12083,"l":"b_2F33","t":"code","b":[169,121],"m":"lda","o":"#$79","x":[12112]},{"a":12085,"t":"code","b":[157,0,8],"m":"sta","oa":2048,"o":"f_0800,x"},{"a":12088,"t":"code","b":[157,0,9],"m":"sta","oa":2304,"o":"f_0900,x"},{"a":12091,"t":"code","b":[157,0,10],"m":"sta","oa":2560,"o":"f_0A00,x"},{"a":12094,"t":"code","b":[157,0,11],"m":"sta","oa":2816,"o":"f_0B00,x"},{"a":12097,"t":"code","b":[169,164],"m":"lda","o":"#$A4"},{"a":12099,"t":"code","b":[157,0,12],"m":"sta","oa":3072,"o":"f_0C00,x"},{"a":12102,"t":"code","b":[157,0,13],"m":"sta","oa":3328,"o":"f_0D00,x"},{"a":12105,"t":"code","b":[157,0,14],"m":"sta","oa":3584,"o":"f_0E00,x"},{"a":12108,"t":"code","b":[157,0,15],"m":"sta","oa":3840,"o":"f_0F00,x"},{"a":12111,"t":"code","b":[202],"m":"dex"},{"a":12112,"t":"code","b":[208,225],"m":"bne","oa":12083,"o":"b_2F33"},{"a":12114,"t":"code","b":[160,37],"m":"ldy","o":"#$25"},{"a":12116,"l":"b_2F54","t":"code","b":[169,176],"m":"lda","o":"#$B0","x":[12127]},{"a":12118,"t":"code","b":[153,1,12],"m":"sta","oa":3073,"o":"f_0C01,y"},{"a":12121,"t":"code","b":[169,177],"m":"lda","o":"#$B1"},{"a":12123,"t":"code","b":[153,193,15],"m":"sta","oa":4033,"o":"f_0FC1,y"},{"a":12126,"t":"code","b":[136],"m":"dey"},{"a":12127,"t":"code","b":[16,243],"m":"bpl","oa":12116,"o":"b_2F54"},{"a":12129,"t":"code","b":[169,40],"m":"lda","o":"#$28"},{"a":12131,"t":"code","b":[162,12],"m":"ldx","o":"#$0C"},{"a":12133,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":12135,"t":"code","b":[134,14],"m":"stx","oa":14,"o":"zpa_0E"},{"a":12137,"t":"code","b":[162,23],"m":"ldx","o":"#$17"},{"a":12139,"l":"b_2F6B","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[12165]},{"a":12141,"t":"code","b":[169,174],"m":"lda","o":"#$AE"},{"a":12143,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":12145,"t":"code","b":[160,39],"m":"ldy","o":"#$27"},{"a":12147,"t":"code","b":[169,175],"m":"lda","o":"#$AF"},{"a":12149,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":12151,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":12153,"t":"code","b":[24],"m":"clc"},{"a":12154,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":12156,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":12158,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":12160,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":12162,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":12164,"t":"code","b":[202],"m":"dex"},{"a":12165,"t":"code","b":[208,228],"m":"bne","oa":12139,"o":"b_2F6B"},{"a":12167,"t":"code","b":[162,178],"m":"ldx","o":"#$B2"},{"a":12169,"t":"code","b":[142,0,12],"m":"stx","oa":3072,"o":"f_0C00"},{"a":12172,"t":"code","b":[232],"m":"inx"},{"a":12173,"t":"code","b":[142,192,15],"m":"stx","oa":4032,"o":"f_0FC0"},{"a":12176,"t":"code","b":[232],"m":"inx"},{"a":12177,"t":"code","b":[142,231,15],"m":"stx","oa":4071,"o":"a_0FE7"},{"a":12180,"t":"code","b":[232],"m":"inx"},{"a":12181,"t":"code","b":[142,39,12],"m":"stx","oa":3111,"o":"a_0C27"},{"a":12184,"t":"code","b":[169,85],"m":"lda","o":"#$55"},{"a":12186,"t":"code","b":[162,12],"m":"ldx","o":"#$0C"},{"a":12188,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":12190,"t":"code","b":[134,14],"m":"stx","oa":14,"o":"zpa_0E"},{"a":12192,"t":"code","b":[169,28],"m":"lda","o":"#$1C"},{"a":12194,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":12196,"t":"code","b":[169,9],"m":"lda","o":"#$09"},{"a":12198,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"zpa_10"},{"a":12200,"t":"code","b":[32,53,49],"m":"jsr","oa":12597,"o":"draw_box"},{"a":12203,"t":"code","b":[169,90],"m":"lda","o":"#$5A"},{"a":12205,"t":"code","b":[162,14],"m":"ldx","o":"#$0E"},{"a":12207,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":12209,"t":"code","b":[134,14],"m":"stx","oa":14,"o":"zpa_0E"},{"a":12211,"t":"code","b":[169,34],"m":"lda","o":"#$22"},{"a":12213,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":12215,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":12217,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"zpa_10"},{"a":12219,"t":"code","b":[32,53,49],"m":"jsr","oa":12597,"o":"draw_box"},{"a":12222,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":12224,"t":"code","b":[162,50],"m":"ldx","o":"#$32"},{"a":12226,"t":"code","b":[32,161,49],"m":"jsr","oa":12705,"o":"print_script"},{"a":12229,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":12231,"t":"code","b":[169,65],"m":"lda","o":"#$41"},{"a":12233,"l":"b_2FC9","t":"code","b":[157,186,10],"m":"sta","oa":2746,"o":"f_0ABA,x","x":[12237]},{"a":12236,"t":"code","b":[202],"m":"dex"},{"a":12237,"t":"code","b":[16,250],"m":"bpl","oa":12233,"o":"b_2FC9"},{"a":12239,"t":"code","b":[32,43,54],"m":"jsr","oa":13867,"o":"show_controls"},{"a":12242,"t":"code","b":[162,22],"m":"ldx","o":"#$16"},{"a":12244,"l":"b_2FD4","t":"code","b":[169,182],"m":"lda","o":"#$B6","x":[12255]},{"a":12246,"t":"code","b":[157,32,13],"m":"sta","oa":3360,"o":"f_0D20,x"},{"a":12249,"t":"code","b":[169,113],"m":"lda","o":"#$71"},{"a":12251,"t":"code","b":[157,32,9],"m":"sta","oa":2336,"o":"f_0920,x"},{"a":12254,"t":"code","b":[202],"m":"dex"},{"a":12255,"t":"code","b":[16,243],"m":"bpl","oa":12244,"o":"b_2FD4"},{"a":12257,"t":"code","b":[169,202],"m":"lda","o":"#$CA"},{"a":12259,"t":"code","b":[162,14],"m":"ldx","o":"#$0E"},{"a":12261,"t":"code","b":[32,105,30],"m":"jsr","oa":7785,"o":"print_level"},{"a":12264,"t":"code","b":[162,135],"m":"ldx","o":"#$87"},{"a":12266,"l":"b_2FEA","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[12274]},{"a":12268,"t":"code","b":[157,48,22],"m":"sta","oa":5680,"o":"chr_scroller,x"},{"a":12271,"t":"code","b":[202],"m":"dex"},{"a":12272,"t":"code","b":[224,255],"m":"cpx","o":"#$FF"},{"a":12274,"t":"code","b":[208,246],"m":"bne","oa":12266,"o":"b_2FEA"},{"a":12276,"t":"code","b":[162,15],"m":"ldx","o":"#$0F"},{"a":12278,"l":"b_2FF6","t":"code","b":[169,113],"m":"lda","o":"#$71","x":[12291]},{"a":12280,"t":"code","b":[157,11,11],"m":"sta","oa":2827,"o":"f_0B0B,x"},{"a":12283,"t":"code","b":[138],"m":"txa"},{"a":12284,"t":"code","b":[24],"m":"clc"},{"a":12285,"t":"code","b":[105,199],"m":"adc","o":"#$C7"},{"a":12287,"t":"code","b":[157,11,15],"m":"sta","oa":3851,"o":"f_0F0B,x"},{"a":12290,"t":"code","b":[202],"m":"dex"},{"a":12291,"t":"code","b":[16,241],"m":"bpl","oa":12278,"o":"b_2FF6"},{"a":12293,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":12295,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"zpa_1F"},{"a":12297,"t":"code","b":[162,133],"m":"ldx","o":"#$85"},{"a":12299,"t":"code","b":[160,50],"m":"ldy","o":"#$32"},{"a":12301,"t":"code","b":[165,170],"m":"lda","oa":170,"o":"score"},{"a":12303,"t":"code","b":[5,171],"m":"ora","oa":171,"o":"zpa_AB"},{"a":12305,"t":"code","b":[5,172],"m":"ora","oa":172,"o":"zpa_AC"},{"a":12307,"t":"code","b":[240,46],"m":"beq","oa":12355,"o":"b_3043"},{"a":12309,"t":"code","b":[165,172],"m":"lda","oa":172,"o":"zpa_AC"},{"a":12311,"t":"code","b":[240,6],"m":"beq","oa":12319,"o":"b_301F"},{"a":12313,"t":"code","b":[162,248],"m":"ldx","o":"#$F8"},{"a":12315,"t":"code","b":[160,51],"m":"ldy","o":"#$33"},{"a":12317,"t":"code","b":[208,36],"m":"bne","oa":12355,"o":"b_3043"},{"a":12319,"l":"b_301F","t":"code","b":[165,171],"m":"lda","oa":171,"o":"zpa_AB","x":[12311]},{"a":12321,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":12323,"t":"code","b":[176,6],"m":"bcs","oa":12331,"o":"b_302B"},{"a":12325,"t":"code","b":[162,16],"m":"ldx","o":"#$10"},{"a":12327,"t":"code","b":[160,52],"m":"ldy","o":"#$34"},{"a":12329,"t":"code","b":[208,24],"m":"bne","oa":12355,"o":"b_3043"},{"a":12331,"l":"b_302B","t":"code","b":[201,96],"m":"cmp","o":"#$60","x":[12323]},{"a":12333,"t":"code","b":[176,6],"m":"bcs","oa":12341,"o":"b_3035"},{"a":12335,"t":"code","b":[162,60],"m":"ldx","o":"#$3C"},{"a":12337,"t":"code","b":[160,52],"m":"ldy","o":"#$34"},{"a":12339,"t":"code","b":[208,14],"m":"bne","oa":12355,"o":"b_3043"},{"a":12341,"l":"b_3035","t":"code","b":[201,144],"m":"cmp","o":"#$90","x":[12333]},{"a":12343,"t":"code","b":[176,6],"m":"bcs","oa":12351,"o":"b_303F"},{"a":12345,"t":"code","b":[162,92],"m":"ldx","o":"#$5C"},{"a":12347,"t":"code","b":[160,52],"m":"ldy","o":"#$34"},{"a":12349,"t":"code","b":[208,4],"m":"bne","oa":12355,"o":"b_3043"},{"a":12351,"l":"b_303F","t":"code","b":[162,115],"m":"ldx","o":"#$73","x":[12343]},{"a":12353,"t":"code","b":[160,52],"m":"ldy","o":"#$34"},{"a":12355,"l":"b_3043","t":"code","b":[134,27],"m":"stx","oa":27,"o":"zpa_1B","x":[12307,12317,12329,12339,12349]},{"a":12357,"t":"code","b":[132,28],"m":"sty","oa":28,"o":"zpa_1C"},{"a":12359,"t":"code","b":[169,27],"m":"lda","o":"#$1B"},{"a":12361,"t":"code","b":[141,6,255],"m":"sta","o":"ted_control1"},{"a":12364,"t":"code","b":[133,11],"m":"sta","oa":11,"o":"fire"},{"a":12366,"t":"code","b":[133,12],"m":"sta","oa":12,"o":"fire_last"},{"a":12368,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":12370,"t":"code","b":[133,165],"m":"sta","oa":165,"o":"zpa_A5"},{"a":12372,"t":"code","b":[133,164],"m":"sta","oa":164,"o":"zpa_A4"},{"a":12374,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":12376,"t":"code","b":[133,24],"m":"sta","oa":24,"o":"zpa_18"},{"a":12378,"t":"code","b":[88],"m":"cli"},{"a":12379,"t":"code","b":[32,201,52],"m":"jsr","oa":13513,"o":"high_scores"},{"a":12382,"l":"j_305E","t":"code","b":[165,100],"m":"lda","oa":100,"o":"frame_count","x":[12413]},{"a":12384,"l":"b_3060","t":"code","b":[197,100],"m":"cmp","oa":100,"o":"frame_count","x":[12386]},{"a":12386,"t":"code","b":[240,252],"m":"beq","oa":12384,"o":"b_3060"},{"a":12388,"t":"code","b":[165,11],"m":"lda","oa":11,"o":"fire"},{"a":12390,"t":"code","b":[240,15],"m":"beq","oa":12407,"o":"b_3077"},{"a":12392,"t":"code","b":[165,12],"m":"lda","oa":12,"o":"fire_last"},{"a":12394,"t":"code","b":[208,11],"m":"bne","oa":12407,"o":"b_3077"},{"a":12396,"t":"code","b":[133,170],"m":"sta","oa":170,"o":"score"},{"a":12398,"t":"code","b":[133,171],"m":"sta","oa":171,"o":"zpa_AB"},{"a":12400,"t":"code","b":[133,172],"m":"sta","oa":172,"o":"zpa_AC"},{"a":12402,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":12404,"t":"code","b":[133,169],"m":"sta","oa":169,"o":"men"},{"a":12406,"t":"code","b":[96],"m":"rts"},{"a":12407,"l":"b_3077","t":"code","b":[32,64,54],"m":"jsr","oa":13888,"o":"toggle_controls","x":[12390,12394]},{"a":12410,"t":"code","b":[32,86,54],"m":"jsr","oa":13910,"o":"change_level"},{"a":12413,"t":"code","b":[76,94,48],"m":"jmp","oa":12382,"o":"j_305E"},{"a":12416,"l":"irq_title","c":"The interrupt on the title screen (vector at $0314, from title), once a frame. On odd frames it only reads the controls and the RETURN key. On even frames it rolls the patterned character $A4's rows up by one and builds the frame's eight characters from it ($AE and $AF the sides, $B0 and $B1 top and bottom, $B2-$B5 the corners, with solid edges), so the border shimmers; and moves the scroller one pixel left: when eight pixels have gone it takes the next character of the message at ($1B), back to $3276 at a byte $01, and copies its picture into character $D7 ($16B8), just off the right of the row; then shifts the 18 characters $C6-$D7 left a pixel, a row at a time.","t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":12418,"t":"code","b":[141,9,255],"m":"sta","o":"ted_irq_flags"},{"a":12421,"t":"code","b":[230,100],"m":"inc","oa":100,"o":"frame_count"},{"a":12423,"t":"code","b":[165,100],"m":"lda","oa":100,"o":"frame_count"},{"a":12425,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":12426,"t":"code","b":[144,3],"m":"bcc","oa":12431,"o":"b_308F"},{"a":12428,"t":"code","b":[76,33,49],"m":"jmp","oa":12577,"o":"j_3121"},{"a":12431,"l":"b_308F","t":"code","b":[172,32,21],"m":"ldy","oa":5408,"o":"chr_pattern","x":[12426]},{"a":12434,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":12436,"l":"b_3094","t":"code","b":[189,33,21],"m":"lda","oa":5409,"o":"chr_pattern_rows,x","x":[12445]},{"a":12439,"t":"code","b":[157,32,21],"m":"sta","oa":5408,"o":"chr_pattern,x"},{"a":12442,"t":"code","b":[232],"m":"inx"},{"a":12443,"t":"code","b":[224,7],"m":"cpx","o":"#$07"},{"a":12445,"t":"code","b":[208,245],"m":"bne","oa":12436,"o":"b_3094"},{"a":12447,"t":"code","b":[140,39,21],"m":"sty","oa":5415,"o":"chr_pattern_last"},{"a":12450,"l":"b_30A2","t":"code","b":[189,32,21],"m":"lda","oa":5408,"o":"chr_pattern,x","x":[12484]},{"a":12453,"t":"code","b":[157,128,21],"m":"sta","oa":5504,"o":"f_1580,x"},{"a":12456,"t":"code","b":[157,136,21],"m":"sta","oa":5512,"o":"f_1588,x"},{"a":12459,"t":"code","b":[168],"m":"tay"},{"a":12460,"t":"code","b":[9,192],"m":"ora","o":"#$C0"},{"a":12462,"t":"code","b":[157,112,21],"m":"sta","oa":5488,"o":"f_1570,x"},{"a":12465,"t":"code","b":[157,144,21],"m":"sta","oa":5520,"o":"f_1590,x"},{"a":12468,"t":"code","b":[157,152,21],"m":"sta","oa":5528,"o":"f_1598,x"},{"a":12471,"t":"code","b":[152],"m":"tya"},{"a":12472,"t":"code","b":[9,3],"m":"ora","o":"#$03"},{"a":12474,"t":"code","b":[157,120,21],"m":"sta","oa":5496,"o":"f_1578,x"},{"a":12477,"t":"code","b":[157,160,21],"m":"sta","oa":5536,"o":"f_15A0,x"},{"a":12480,"t":"code","b":[157,168,21],"m":"sta","oa":5544,"o":"f_15A8,x"},{"a":12483,"t":"code","b":[202],"m":"dex"},{"a":12484,"t":"code","b":[16,220],"m":"bpl","oa":12450,"o":"b_30A2"},{"a":12486,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":12488,"t":"code","b":[141,128,21],"m":"sta","oa":5504,"o":"f_1580"},{"a":12491,"t":"code","b":[141,143,21],"m":"sta","oa":5519,"o":"a_158F"},{"a":12494,"t":"code","b":[141,144,21],"m":"sta","oa":5520,"o":"f_1590"},{"a":12497,"t":"code","b":[141,159,21],"m":"sta","oa":5535,"o":"a_159F"},{"a":12500,"t":"code","b":[141,167,21],"m":"sta","oa":5543,"o":"a_15A7"},{"a":12503,"t":"code","b":[141,168,21],"m":"sta","oa":5544,"o":"f_15A8"},{"a":12506,"t":"code","b":[198,31],"m":"dec","oa":31,"o":"zpa_1F"},{"a":12508,"t":"code","b":[208,52],"m":"bne","oa":12562,"o":"b_3112"},{"a":12510,"t":"code","b":[230,27],"m":"inc","oa":27,"o":"zpa_1B"},{"a":12512,"t":"code","b":[208,2],"m":"bne","oa":12516,"o":"b_30E4"},{"a":12514,"t":"code","b":[230,28],"m":"inc","oa":28,"o":"zpa_1C"},{"a":12516,"l":"b_30E4","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[12512]},{"a":12518,"t":"code","b":[177,27],"m":"lda","oa":27,"o":"(zpa_1B),y"},{"a":12520,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":12522,"t":"code","b":[208,10],"m":"bne","oa":12534,"o":"b_30F6"},{"a":12524,"t":"code","b":[169,118],"m":"lda","o":"#$76"},{"a":12526,"t":"code","b":[133,27],"m":"sta","oa":27,"o":"zpa_1B"},{"a":12528,"t":"code","b":[169,50],"m":"lda","o":"#$32"},{"a":12530,"t":"code","b":[133,28],"m":"sta","oa":28,"o":"zpa_1C"},{"a":12532,"t":"code","b":[177,27],"m":"lda","oa":27,"o":"(zpa_1B),y"},{"a":12534,"l":"b_30F6","t":"code","b":[162,2],"m":"ldx","o":"#$02","x":[12522]},{"a":12536,"t":"code","b":[134,26],"m":"stx","oa":26,"o":"zpa_1A"},{"a":12538,"t":"code","b":[10],"m":"asl","o":"a"},{"a":12539,"t":"code","b":[38,26],"m":"rol","oa":26,"o":"zpa_1A"},{"a":12541,"t":"code","b":[10],"m":"asl","o":"a"},{"a":12542,"t":"code","b":[38,26],"m":"rol","oa":26,"o":"zpa_1A"},{"a":12544,"t":"code","b":[10],"m":"asl","o":"a"},{"a":12545,"t":"code","b":[38,26],"m":"rol","oa":26,"o":"zpa_1A"},{"a":12547,"t":"code","b":[133,25],"m":"sta","oa":25,"o":"zpa_19"},{"a":12549,"t":"code","b":[160,8],"m":"ldy","o":"#$08"},{"a":12551,"t":"code","b":[132,31],"m":"sty","oa":31,"o":"zpa_1F"},{"a":12553,"t":"code","b":[136],"m":"dey"},{"a":12554,"l":"b_310A","t":"code","b":[177,25],"m":"lda","oa":25,"o":"(zpa_19),y","x":[12560]},{"a":12556,"t":"code","b":[153,184,22],"m":"sta","oa":5816,"o":"chr_scroller_in,y"},{"a":12559,"t":"code","b":[136],"m":"dey"},{"a":12560,"t":"code","b":[16,248],"m":"bpl","oa":12554,"o":"b_310A"},{"a":12562,"l":"b_3112","t":"code","b":[160,143],"m":"ldy","o":"#$8F","x":[12508]},{"a":12564,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":12566,"l":"b_3116","t":"code","b":[189,56,22],"m":"lda","oa":5688,"o":"chr_scroller_next,x","x":[12575]},{"a":12569,"t":"code","b":[10],"m":"asl","o":"a"},{"a":12570,"t":"code","b":[62,48,22],"m":"rol","oa":5680,"o":"chr_scroller,x"},{"a":12573,"t":"code","b":[232],"m":"inx"},{"a":12574,"t":"code","b":[136],"m":"dey"},{"a":12575,"t":"code","b":[208,245],"m":"bne","oa":12566,"o":"b_3116"},{"a":12577,"l":"j_3121","t":"code","b":[32,167,32],"m":"jsr","oa":8359,"o":"read_controls","x":[12428]},{"a":12580,"t":"code","b":[165,165],"m":"lda","oa":165,"o":"zpa_A5"},{"a":12582,"t":"code","b":[133,164],"m":"sta","oa":164,"o":"zpa_A4"},{"a":12584,"t":"code","b":[169,254],"m":"lda","o":"#$FE"},{"a":12586,"t":"code","b":[32,26,33],"m":"jsr","oa":8474,"o":"read_key_row"},{"a":12589,"t":"code","b":[133,165],"m":"sta","oa":165,"o":"zpa_A5"},{"a":12591,"t":"code","b":[104],"m":"pla"},{"a":12592,"t":"code","b":[168],"m":"tay"},{"a":12593,"t":"code","b":[104],"m":"pla"},{"a":12594,"t":"code","b":[170],"m":"tax"},{"a":12595,"t":"code","b":[104],"m":"pla"},{"a":12596,"t":"code","b":[64],"m":"rti"},{"a":12597,"l":"draw_box","c":"Draws a box on the screen, top left at ($0D), $0F + 1 cells wide and $10 + 1 tall, from the line characters $A5-$AC, empty inside, with a shadow of character $AD (eight bytes of $AA, which in multicolour is a solid band of the third colour, $FF17) down its right side, from the second row, and along under its bottom.","t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D","x":[12200,12219]},{"a":12599,"t":"code","b":[166,14],"m":"ldx","oa":14,"o":"zpa_0E"},{"a":12601,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":12603,"t":"code","b":[134,18],"m":"stx","oa":18,"o":"zpa_12"},{"a":12605,"t":"code","b":[166,16],"m":"ldx","oa":16,"o":"zpa_10"},{"a":12607,"l":"b_313F","t":"code","b":[164,15],"m":"ldy","oa":15,"o":"zpa_0F","x":[12646]},{"a":12609,"t":"code","b":[200],"m":"iny"},{"a":12610,"t":"code","b":[169,173],"m":"lda","o":"#$AD"},{"a":12612,"t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y"},{"a":12614,"t":"code","b":[136],"m":"dey"},{"a":12615,"t":"code","b":[169,172],"m":"lda","o":"#$AC"},{"a":12617,"t":"code","b":[208,2],"m":"bne","oa":12621,"o":"b_314D"},{"a":12619,"l":"b_314B","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[12624]},{"a":12621,"l":"b_314D","t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y","x":[12617]},{"a":12623,"t":"code","b":[136],"m":"dey"},{"a":12624,"t":"code","b":[208,249],"m":"bne","oa":12619,"o":"b_314B"},{"a":12626,"t":"code","b":[169,168],"m":"lda","o":"#$A8"},{"a":12628,"t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y"},{"a":12630,"t":"code","b":[202],"m":"dex"},{"a":12631,"t":"code","b":[48,15],"m":"bmi","oa":12648,"o":"b_3168"},{"a":12633,"t":"code","b":[165,17],"m":"lda","oa":17,"o":"zpa_11"},{"a":12635,"t":"code","b":[24],"m":"clc"},{"a":12636,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":12638,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":12640,"t":"code","b":[165,18],"m":"lda","oa":18,"o":"zpa_12"},{"a":12642,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":12644,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":12646,"t":"code","b":[144,215],"m":"bcc","oa":12607,"o":"b_313F"},{"a":12648,"l":"b_3168","t":"code","b":[164,15],"m":"ldy","oa":15,"o":"zpa_0F","x":[12631]},{"a":12650,"t":"code","b":[169,171],"m":"lda","o":"#$AB"},{"a":12652,"t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y"},{"a":12654,"t":"code","b":[169,167],"m":"lda","o":"#$A7"},{"a":12656,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":12658,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":12660,"t":"code","b":[169,165],"m":"lda","o":"#$A5"},{"a":12662,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":12664,"t":"code","b":[169,169],"m":"lda","o":"#$A9"},{"a":12666,"t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y"},{"a":12668,"t":"code","b":[164,15],"m":"ldy","oa":15,"o":"zpa_0F"},{"a":12670,"t":"code","b":[136],"m":"dey"},{"a":12671,"l":"b_317F","t":"code","b":[169,166],"m":"lda","o":"#$A6","x":[12680]},{"a":12673,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":12675,"t":"code","b":[169,170],"m":"lda","o":"#$AA"},{"a":12677,"t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y"},{"a":12679,"t":"code","b":[136],"m":"dey"},{"a":12680,"t":"code","b":[208,245],"m":"bne","oa":12671,"o":"b_317F"},{"a":12682,"t":"code","b":[165,15],"m":"lda","oa":15,"o":"zpa_0F"},{"a":12684,"t":"code","b":[170],"m":"tax"},{"a":12685,"t":"code","b":[24],"m":"clc"},{"a":12686,"t":"code","b":[105,41],"m":"adc","o":"#$29"},{"a":12688,"t":"code","b":[168],"m":"tay"},{"a":12689,"t":"code","b":[169,173],"m":"lda","o":"#$AD"},{"a":12691,"l":"b_3193","t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y","x":[12695]},{"a":12693,"t":"code","b":[136],"m":"dey"},{"a":12694,"t":"code","b":[202],"m":"dex"},{"a":12695,"t":"code","b":[16,250],"m":"bpl","oa":12691,"o":"b_3193"},{"a":12697,"t":"code","b":[164,15],"m":"ldy","oa":15,"o":"zpa_0F"},{"a":12699,"t":"code","b":[200],"m":"iny"},{"a":12700,"t":"code","b":[169,164],"m":"lda","o":"#$A4"},{"a":12702,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":12704,"t":"code","b":[96],"m":"rts"},{"a":12705,"l":"print_script","c":"Prints a script of the game's characters to the screen, from the address in A (low) and X (high). A byte from $81 up, or 0 (a space), is a character, printed in the colour last set; $01 then two bytes moves to a screen address (its colour at the same place in $0800-$0BFF); any other byte from $02 to $7F is followed by a colour; $80 ends it.","t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D","x":[12226]},{"a":12707,"t":"code","b":[134,14],"m":"stx","oa":14,"o":"zpa_0E"},{"a":12709,"l":"b_31A5","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[12740,12744,12780,12800]},{"a":12711,"t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y"},{"a":12713,"t":"code","b":[240,7],"m":"beq","oa":12722,"o":"b_31B2"},{"a":12715,"t":"code","b":[16,29],"m":"bpl","oa":12746,"o":"b_31CA"},{"a":12717,"t":"code","b":[201,128],"m":"cmp","o":"#$80"},{"a":12719,"t":"code","b":[208,1],"m":"bne","oa":12722,"o":"b_31B2"},{"a":12721,"t":"code","b":[96],"m":"rts"},{"a":12722,"l":"b_31B2","t":"code","b":[145,15],"m":"sta","oa":15,"o":"(zpa_0F),y","x":[12713,12719]},{"a":12724,"t":"code","b":[165,19],"m":"lda","oa":19,"o":"zpa_13"},{"a":12726,"t":"code","b":[145,17],"m":"sta","oa":17,"o":"(zpa_11),y"},{"a":12728,"t":"code","b":[230,15],"m":"inc","oa":15,"o":"zpa_0F"},{"a":12730,"t":"code","b":[230,17],"m":"inc","oa":17,"o":"zpa_11"},{"a":12732,"t":"code","b":[208,4],"m":"bne","oa":12738,"o":"b_31C2"},{"a":12734,"t":"code","b":[230,16],"m":"inc","oa":16,"o":"zpa_10"},{"a":12736,"t":"code","b":[230,18],"m":"inc","oa":18,"o":"zpa_12"},{"a":12738,"l":"b_31C2","t":"code","b":[230,13],"m":"inc","oa":13,"o":"zpa_0D","x":[12732]},{"a":12740,"t":"code","b":[208,223],"m":"bne","oa":12709,"o":"b_31A5"},{"a":12742,"t":"code","b":[230,14],"m":"inc","oa":14,"o":"zpa_0E"},{"a":12744,"t":"code","b":[208,219],"m":"bne","oa":12709,"o":"b_31A5"},{"a":12746,"l":"b_31CA","t":"code","b":[201,1],"m":"cmp","o":"#$01","x":[12715]},{"a":12748,"t":"code","b":[208,32],"m":"bne","oa":12782,"o":"b_31EE"},{"a":12750,"t":"code","b":[200],"m":"iny"},{"a":12751,"t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y"},{"a":12753,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":12755,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":12757,"t":"code","b":[200],"m":"iny"},{"a":12758,"t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y"},{"a":12760,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"zpa_10"},{"a":12762,"t":"code","b":[56],"m":"sec"},{"a":12763,"t":"code","b":[233,4],"m":"sbc","o":"#$04"},{"a":12765,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":12767,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":12769,"t":"code","b":[24],"m":"clc"},{"a":12770,"t":"code","b":[105,3],"m":"adc","o":"#$03"},{"a":12772,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":12774,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":12776,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":12778,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":12780,"t":"code","b":[208,183],"m":"bne","oa":12709,"o":"b_31A5"},{"a":12782,"l":"b_31EE","t":"code","b":[200],"m":"iny","x":[12748]},{"a":12783,"t":"code","b":[177,13],"m":"lda","oa":13,"o":"(zpa_0D),y"},{"a":12785,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":12787,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":12789,"t":"code","b":[24],"m":"clc"},{"a":12790,"t":"code","b":[105,2],"m":"adc","o":"#$02"},{"a":12792,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":12794,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":12796,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":12798,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":12800,"t":"code","b":[208,163],"m":"bne","oa":12709,"o":"b_31A5"},{"a":12802,"l":"title_script","c":"The title's text for print_script: at row 4, column 7 in colour $56, BRITISH SOFTWARE PRESENTS; at row 6, column 8 in $71, PROSPECTOR PETE (C)1986; at row 9, column 8 in $56, PRODUCED BY DOUG TURNER; at row 17, column 28 in $54, LEVEL 01. The game's alphabet: 0 is a space, $D8 a full stop, $D9 an exclamation mark, $DA a question mark, $DC-$F5 A to Z, $F6-$FF 0 to 9, and $B6-$B8 a bar and brackets.","t":"byte","b":[1,167,12,2,86,221,237,228]},{"a":12810,"t":"byte","b":[239,228,238,227,0,238,234,225]},{"a":12818,"t":"byte","b":[239,242,220,237,224,0,235,237]},{"a":12826,"t":"byte","b":[224,238,224,233,239,238,1,248]},{"a":12834,"t":"byte","b":[12,2,113,235,237,234,238,235]},{"a":12842,"t":"byte","b":[224,222,239,234,237,0,235,224]},{"a":12850,"t":"byte","b":[239,224,0,183,222,184,247,255]},{"a":12858,"t":"byte","b":[254,252,1,112,13,2,86,235]},{"a":12866,"t":"byte","b":[237,234,223,240,222,224,223,0]},{"a":12874,"t":"byte","b":[221,244,0,223,234,240,226,0]},{"a":12882,"t":"byte","b":[239,240,237,233,224,237,1,196]},{"a":12890,"t":"byte","b":[14,2,84,231,224,241,224,231]},{"a":12898,"t":"byte","b":[0,246,247,128]},{"a":12902,"l":"control_names","c":"The two words show_controls prints at row 17, column 18: KEYBOARD, then JOYSTICK, eight characters each in the game's alphabet.","t":"byte","b":[230,224,244,221,234,220,237,223],"x":[13877]},{"a":12910,"t":"byte","b":[229,234,244,238,239,228,222,230]},{"a":12918,"l":"scroller_text","c":"The title's scrolling messages in the game's alphabet, each ended by $01, at which irq_title goes back to the start of the greeting here: 18 spaces, then HELLO THERE! WELCOME TO MY LATEST C16 GAME. IT TOOK 4 WEEKS OF HARD SWEAT TO WRITE...1 WEEK MORE THAN FINGERS MALONE! I HOPE YOU ENJOY PLAYING IT! I AM NEARLY OUT OF MEMORY NOW SO THANKS TO ALL THOSE WHO HELPED ME TO KEEP GOING...MY CBM700 AND 8250 FOR ASSEMBLING 5100 LINES OF SOURCE IN 3 MINS. LED ZEP. UFO. RUSH. RAINBOW. MARILLION AND THE OTHERS!  I WISH YOU WELL! Then the verdicts title chooses by score, each after the $01 it points at: $33F8 MEGA SCORE! GO FOR IT!!, $3410 THAT WAS PATHETIC! AT LEAST MAKE AN EFFORT!, $343C NOT QUITE GOT THE HANG HAVE WE?, $345C NOT BAD ! KEEP TRYING!, $3473 MY MAIN MAN! A WELL ARD SCORE!","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":12926,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":12934,"t":"byte","b":[0,0,227,224,231,231,234,0]},{"a":12942,"t":"byte","b":[239,227,224,237,224,217,0,242]},{"a":12950,"t":"byte","b":[224,231,222,234,232,224,0,239]},{"a":12958,"t":"byte","b":[234,0,232,244,0,231,220,239]},{"a":12966,"t":"byte","b":[224,238,239,0,222,247,252,0]},{"a":12974,"t":"byte","b":[226,220,232,224,216,0,228,239]},{"a":12982,"t":"byte","b":[0,239,234,234,230,0,250,0]},{"a":12990,"t":"byte","b":[242,224,224,230,238,0,234,225]},{"a":12998,"t":"byte","b":[0,227,220,237,223,0,238,242]},{"a":13006,"t":"byte","b":[224,220,239,0,239,234,0,242]},{"a":13014,"t":"byte","b":[237,228,239,224,216,216,216,247]},{"a":13022,"t":"byte","b":[0,242,224,224,230,0,232,234]},{"a":13030,"t":"byte","b":[237,224,0,239,227,220,233,0]},{"a":13038,"t":"byte","b":[225,228,233,226,224,237,238,0]},{"a":13046,"t":"byte","b":[232,220,231,234,233,224,217,0]},{"a":13054,"t":"byte","b":[228,0,227,234,235,224,0,244]},{"a":13062,"t":"byte","b":[234,240,0,224,233,229,234,244]},{"a":13070,"t":"byte","b":[0,235,231,220,244,228,233,226]},{"a":13078,"t":"byte","b":[0,228,239,217,0,228,0,220]},{"a":13086,"t":"byte","b":[232,0,233,224,220,237,231,244]},{"a":13094,"t":"byte","b":[0,234,240,239,0,234,225,0]},{"a":13102,"t":"byte","b":[232,224,232,234,237,244,0,233]},{"a":13110,"t":"byte","b":[234,242,0,238,234,0,239,227]},{"a":13118,"t":"byte","b":[220,233,230,238,0,239,234,0]},{"a":13126,"t":"byte","b":[220,231,231,0,239,227,234,238]},{"a":13134,"t":"byte","b":[224,0,242,227,234,0,227,224]},{"a":13142,"t":"byte","b":[231,235,224,223,0,232,224,0]},{"a":13150,"t":"byte","b":[239,234,0,230,224,224,235,0]},{"a":13158,"t":"byte","b":[226,234,228,233,226,216,216,216]},{"a":13166,"t":"byte","b":[232,244,0,222,221,232,253,246]},{"a":13174,"t":"byte","b":[246,0,220,233,223,0,254,248]},{"a":13182,"t":"byte","b":[251,246,0,225,234,237,0,220]},{"a":13190,"t":"byte","b":[238,238,224,232,221,231,228,233]},{"a":13198,"t":"byte","b":[226,0,251,247,246,246,0,231]},{"a":13206,"t":"byte","b":[228,233,224,238,0,234,225,0]},{"a":13214,"t":"byte","b":[238,234,240,237,222,224,0,228]},{"a":13222,"t":"byte","b":[233,0,249,0,232,228,233,238]},{"a":13230,"t":"byte","b":[216,0,231,224,223,0,245,224]},{"a":13238,"t":"byte","b":[235,216,0,240,225,234,216,0]},{"a":13246,"t":"byte","b":[237,240,238,227,216,0,237,220]},{"a":13254,"t":"byte","b":[228,233,221,234,242,216,0,232]},{"a":13262,"t":"byte","b":[220,237,228,231,231,228,234,233]},{"a":13270,"t":"byte","b":[0,220,233,223,0,239,227,224]},{"a":13278,"t":"byte","b":[0,234,239,227,224,237,238,217]},{"a":13286,"t":"byte","b":[0,0,228,0,242,228,238,227]},{"a":13294,"t":"byte","b":[0,244,234,240,0,242,224,231]},{"a":13302,"t":"byte","b":[231,217,1,232,224,226,220,0]},{"a":13310,"t":"byte","b":[238,222,234,237,224,217,0,226]},{"a":13318,"t":"byte","b":[234,0,225,234,237,0,228,239]},{"a":13326,"t":"byte","b":[217,217,1,239,227,220,239,0]},{"a":13334,"t":"byte","b":[242,220,238,0,235,220,239,227]},{"a":13342,"t":"byte","b":[224,239,228,222,217,0,220,239]},{"a":13350,"t":"byte","b":[0,231,224,220,238,239,0,232]},{"a":13358,"t":"byte","b":[220,230,224,0,220,233,0,224]},{"a":13366,"t":"byte","b":[225,225,234,237,239,217,1,233]},{"a":13374,"t":"byte","b":[234,239,0,236,240,228,239,224]},{"a":13382,"t":"byte","b":[0,226,234,239,0,239,227,224]},{"a":13390,"t":"byte","b":[0,227,220,233,226,0,227,220]},{"a":13398,"t":"byte","b":[241,224,0,242,224,218,1,233]},{"a":13406,"t":"byte","b":[234,239,0,221,220,223,0,217]},{"a":13414,"t":"byte","b":[0,230,224,224,235,0,239,237]},{"a":13422,"t":"byte","b":[244,228,233,226,217,1,232,244]},{"a":13430,"t":"byte","b":[0,232,220,228,233,0,232,220]},{"a":13438,"t":"byte","b":[233,217,0,220,0,242,224,231]},{"a":13446,"t":"byte","b":[231,0,220,237,223,0,238,222]},{"a":13454,"t":"byte","b":[234,237,224,217,1]},{"a":13459,"l":"hiscore_names","c":"The high-score table: five entries of nine bytes, a name of six characters in the game's alphabet and a score of three binary-coded decimal bytes, high first, then a sixth that high_scores pushes the last into. As loaded, DOUGGY five times with 10,000, 8,000, 6,000, 4,000 and 2,000. high_scores writes names here.","t":"byte","b":[223],"x":[13521,13571,13589,13598,13701,13735]},{"a":13460,"l":"hiscore_compare_mid","c":"high_scores compares the score with the table through three bases one byte apart, $3493, $3494 and $3495, with X at 6, 15, 24, 33 and 42: this one meets each entry's middle score byte.","t":"byte","b":[234],"x":[13530,13603]},{"a":13461,"l":"hiscore_compare_lo","c":"The third base of high_scores' comparison, meeting each entry's low score byte; with $3493 meeting the high byte.","t":"byte","b":[240,226,226,244,1,0,0],"x":[13539,13608]},{"a":13468,"l":"hiscore_2nd","c":"The second entry of the high-score table (name, then score), which draw_hiscores prints on the second row; high_scores copies the entries down by nine bytes from here when a new score goes in above.","t":"byte","b":[223,234,240,226,226,244,0,128],"x":[13574,13741]},{"a":13476,"t":"byte","b":[0]},{"a":13477,"l":"hiscore_3rd","c":"The third entry of the high-score table, the third row draw_hiscores prints.","t":"byte","b":[223,234,240,226,226,244,0,96],"x":[13747]},{"a":13485,"t":"byte","b":[0]},{"a":13486,"l":"hiscore_4th","c":"The fourth entry of the high-score table, the fourth row draw_hiscores prints.","t":"byte","b":[223,234,240,226,226,244,0,64],"x":[13753]},{"a":13494,"t":"byte","b":[0]},{"a":13495,"l":"hiscore_5th","c":"The fifth entry of the high-score table, the last row draw_hiscores prints; the nine bytes after it, $34C0-$34C8, take the entry pushed off the bottom.","t":"byte","b":[223,234,240,226,226,244,0,32],"x":[13759]},{"a":13503,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":13511,"t":"byte","b":[0,0]},{"a":13513,"l":"high_scores","c":"On the title screen: finds where the last game's score goes in the high-score table, the first of the five entries it is not below. If it goes in, the entries from there move down one (the last drops off), the new entry gets the score and a name of six question marks, the table is drawn and the row lit; then the player spells the name a letter at a time: left and right step through the letters (A to Z and . ! ? and a space, wrapping, repeating every 8 frames when held, next_direction), fire takes the letter. Either way it ends by drawing the table (draw_hiscores).","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[12379]},{"a":13515,"t":"code","b":[133,24],"m":"sta","oa":24,"o":"zpa_18"},{"a":13517,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":13519,"l":"b_34CF","t":"code","b":[165,172],"m":"lda","oa":172,"o":"zpa_AC","x":[13558]},{"a":13521,"t":"code","b":[221,147,52],"m":"cmp","oa":13459,"o":"hiscore_names,x"},{"a":13524,"t":"code","b":[144,18],"m":"bcc","oa":13544,"o":"b_34E8"},{"a":13526,"t":"code","b":[208,35],"m":"bne","oa":13563,"o":"b_34FB"},{"a":13528,"t":"code","b":[165,171],"m":"lda","oa":171,"o":"zpa_AB"},{"a":13530,"t":"code","b":[221,148,52],"m":"cmp","oa":13460,"o":"hiscore_compare_mid,x"},{"a":13533,"t":"code","b":[144,9],"m":"bcc","oa":13544,"o":"b_34E8"},{"a":13535,"t":"code","b":[208,26],"m":"bne","oa":13563,"o":"b_34FB"},{"a":13537,"t":"code","b":[165,170],"m":"lda","oa":170,"o":"score"},{"a":13539,"t":"code","b":[221,149,52],"m":"cmp","oa":13461,"o":"hiscore_compare_lo,x"},{"a":13542,"t":"code","b":[176,19],"m":"bcs","oa":13563,"o":"b_34FB"},{"a":13544,"l":"b_34E8","t":"code","b":[138],"m":"txa","x":[13524,13533]},{"a":13545,"t":"code","b":[24],"m":"clc"},{"a":13546,"t":"code","b":[105,9],"m":"adc","o":"#$09"},{"a":13548,"t":"code","b":[170],"m":"tax"},{"a":13549,"t":"code","b":[165,24],"m":"lda","oa":24,"o":"zpa_18"},{"a":13551,"t":"code","b":[24],"m":"clc"},{"a":13552,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":13554,"t":"code","b":[133,24],"m":"sta","oa":24,"o":"zpa_18"},{"a":13556,"t":"code","b":[224,51],"m":"cpx","o":"#$33"},{"a":13558,"t":"code","b":[208,215],"m":"bne","oa":13519,"o":"b_34CF"},{"a":13560,"t":"code","b":[76,143,53],"m":"jmp","oa":13711,"o":"draw_hiscores"},{"a":13563,"l":"b_34FB","t":"code","b":[138],"m":"txa","x":[13526,13535,13542]},{"a":13564,"t":"code","b":[56],"m":"sec"},{"a":13565,"t":"code","b":[233,7],"m":"sbc","o":"#$07"},{"a":13567,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"zpa_20"},{"a":13569,"t":"code","b":[160,44],"m":"ldy","o":"#$2C"},{"a":13571,"l":"b_3503","t":"code","b":[185,147,52],"m":"lda","oa":13459,"o":"hiscore_names,y","x":[13580]},{"a":13574,"t":"code","b":[153,156,52],"m":"sta","oa":13468,"o":"hiscore_2nd,y"},{"a":13577,"t":"code","b":[136],"m":"dey"},{"a":13578,"t":"code","b":[196,32],"m":"cpy","oa":32,"o":"zpa_20"},{"a":13580,"t":"code","b":[208,245],"m":"bne","oa":13571,"o":"b_3503"},{"a":13582,"t":"code","b":[200],"m":"iny"},{"a":13583,"t":"code","b":[132,22],"m":"sty","oa":22,"o":"zpa_16"},{"a":13585,"t":"code","b":[169,218],"m":"lda","o":"#$DA"},{"a":13587,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":13589,"l":"b_3515","t":"code","b":[153,147,52],"m":"sta","oa":13459,"o":"hiscore_names,y","x":[13594]},{"a":13592,"t":"code","b":[200],"m":"iny"},{"a":13593,"t":"code","b":[202],"m":"dex"},{"a":13594,"t":"code","b":[208,249],"m":"bne","oa":13589,"o":"b_3515"},{"a":13596,"t":"code","b":[165,172],"m":"lda","oa":172,"o":"zpa_AC"},{"a":13598,"t":"code","b":[153,147,52],"m":"sta","oa":13459,"o":"hiscore_names,y"},{"a":13601,"t":"code","b":[165,171],"m":"lda","oa":171,"o":"zpa_AB"},{"a":13603,"t":"code","b":[153,148,52],"m":"sta","oa":13460,"o":"hiscore_compare_mid,y"},{"a":13606,"t":"code","b":[165,170],"m":"lda","oa":170,"o":"score"},{"a":13608,"t":"code","b":[153,149,52],"m":"sta","oa":13461,"o":"hiscore_compare_lo,y"},{"a":13611,"t":"code","b":[32,143,53],"m":"jsr","oa":13711,"o":"draw_hiscores"},{"a":13614,"t":"code","b":[169,84],"m":"lda","o":"#$54"},{"a":13616,"t":"code","b":[162,13],"m":"ldx","o":"#$0D"},{"a":13618,"t":"code","b":[164,24],"m":"ldy","oa":24,"o":"zpa_18"},{"a":13620,"l":"b_3534","t":"code","b":[153,131,10],"m":"sta","oa":2691,"o":"f_0A83,y","x":[13625]},{"a":13623,"t":"code","b":[200],"m":"iny"},{"a":13624,"t":"code","b":[202],"m":"dex"},{"a":13625,"t":"code","b":[208,249],"m":"bne","oa":13620,"o":"b_3534"},{"a":13627,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":13629,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":13631,"t":"code","b":[164,24],"m":"ldy","oa":24,"o":"zpa_18"},{"a":13633,"l":"b_3541","t":"code","b":[165,100],"m":"lda","oa":100,"o":"frame_count","x":[13652,13673,13689,13709]},{"a":13635,"l":"b_3543","t":"code","b":[197,100],"m":"cmp","oa":100,"o":"frame_count","x":[13637]},{"a":13637,"t":"code","b":[240,252],"m":"beq","oa":13635,"o":"b_3543"},{"a":13639,"t":"code","b":[165,11],"m":"lda","oa":11,"o":"fire"},{"a":13641,"t":"code","b":[240,4],"m":"beq","oa":13647,"o":"b_354F"},{"a":13643,"t":"code","b":[165,12],"m":"lda","oa":12,"o":"fire_last"},{"a":13645,"t":"code","b":[240,44],"m":"beq","oa":13691,"o":"b_357B"},{"a":13647,"l":"b_354F","t":"code","b":[32,117,54],"m":"jsr","oa":13941,"o":"next_direction","x":[13641]},{"a":13650,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":13652,"t":"code","b":[240,235],"m":"beq","oa":13633,"o":"b_3541"},{"a":13654,"t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":13656,"t":"code","b":[208,17],"m":"bne","oa":13675,"o":"b_356B"},{"a":13658,"t":"code","b":[185,131,14],"m":"lda","oa":3715,"o":"f_0E83,y"},{"a":13661,"t":"code","b":[201,245],"m":"cmp","o":"#$F5"},{"a":13663,"t":"code","b":[144,3],"m":"bcc","oa":13668,"o":"b_3564"},{"a":13665,"t":"code","b":[169,215],"m":"lda","o":"#$D7"},{"a":13667,"t":"code","b":[24],"m":"clc"},{"a":13668,"l":"b_3564","t":"code","b":[105,1],"m":"adc","o":"#$01","x":[13663]},{"a":13670,"t":"code","b":[153,131,14],"m":"sta","oa":3715,"o":"f_0E83,y"},{"a":13673,"t":"code","b":[208,214],"m":"bne","oa":13633,"o":"b_3541"},{"a":13675,"l":"b_356B","t":"code","b":[185,131,14],"m":"lda","oa":3715,"o":"f_0E83,y","x":[13656]},{"a":13678,"t":"code","b":[201,216],"m":"cmp","o":"#$D8"},{"a":13680,"t":"code","b":[208,2],"m":"bne","oa":13684,"o":"b_3574"},{"a":13682,"t":"code","b":[169,246],"m":"lda","o":"#$F6"},{"a":13684,"l":"b_3574","t":"code","b":[233,1],"m":"sbc","o":"#$01","x":[13680]},{"a":13686,"t":"code","b":[153,131,14],"m":"sta","oa":3715,"o":"f_0E83,y"},{"a":13689,"t":"code","b":[208,198],"m":"bne","oa":13633,"o":"b_3541"},{"a":13691,"l":"b_357B","t":"code","b":[169,103],"m":"lda","o":"#$67","x":[13645]},{"a":13693,"t":"code","b":[153,131,10],"m":"sta","oa":2691,"o":"f_0A83,y"},{"a":13696,"t":"code","b":[166,22],"m":"ldx","oa":22,"o":"zpa_16"},{"a":13698,"t":"code","b":[185,131,14],"m":"lda","oa":3715,"o":"f_0E83,y"},{"a":13701,"t":"code","b":[157,147,52],"m":"sta","oa":13459,"o":"hiscore_names,x"},{"a":13704,"t":"code","b":[230,22],"m":"inc","oa":22,"o":"zpa_16"},{"a":13706,"t":"code","b":[200],"m":"iny"},{"a":13707,"t":"code","b":[198,21],"m":"dec","oa":21,"o":"zpa_15"},{"a":13709,"t":"code","b":[208,178],"m":"bne","oa":13633,"o":"b_3541"},{"a":13711,"l":"draw_hiscores","c":"Draws the high-score table in its box: the five rows' colours ($67, 15 cells from column 3 of row 16 on), the names at column 3 and the scores, six digits, at column 10 (print_hiscore).","t":"code","b":[162,14],"m":"ldx","o":"#$0E","x":[13560,13611]},{"a":13713,"t":"code","b":[169,103],"m":"lda","o":"#$67"},{"a":13715,"l":"b_3593","t":"code","b":[157,131,10],"m":"sta","oa":2691,"o":"f_0A83,x","x":[13731]},{"a":13718,"t":"code","b":[157,171,10],"m":"sta","oa":2731,"o":"f_0AAB,x"},{"a":13721,"t":"code","b":[157,211,10],"m":"sta","oa":2771,"o":"f_0AD3,x"},{"a":13724,"t":"code","b":[157,251,10],"m":"sta","oa":2811,"o":"f_0AFB,x"},{"a":13727,"t":"code","b":[157,35,11],"m":"sta","oa":2851,"o":"f_0B23,x"},{"a":13730,"t":"code","b":[202],"m":"dex"},{"a":13731,"t":"code","b":[16,238],"m":"bpl","oa":13715,"o":"b_3593"},{"a":13733,"t":"code","b":[162,5],"m":"ldx","o":"#$05"},{"a":13735,"l":"b_35A7","t":"code","b":[189,147,52],"m":"lda","oa":13459,"o":"hiscore_names,x","x":[13766]},{"a":13738,"t":"code","b":[157,131,14],"m":"sta","oa":3715,"o":"f_0E83,x"},{"a":13741,"t":"code","b":[189,156,52],"m":"lda","oa":13468,"o":"hiscore_2nd,x"},{"a":13744,"t":"code","b":[157,171,14],"m":"sta","oa":3755,"o":"f_0EAB,x"},{"a":13747,"t":"code","b":[189,165,52],"m":"lda","oa":13477,"o":"hiscore_3rd,x"},{"a":13750,"t":"code","b":[157,211,14],"m":"sta","oa":3795,"o":"f_0ED3,x"},{"a":13753,"t":"code","b":[189,174,52],"m":"lda","oa":13486,"o":"hiscore_4th,x"},{"a":13756,"t":"code","b":[157,251,14],"m":"sta","oa":3835,"o":"f_0EFB,x"},{"a":13759,"t":"code","b":[189,183,52],"m":"lda","oa":13495,"o":"hiscore_5th,x"},{"a":13762,"t":"code","b":[157,35,15],"m":"sta","oa":3875,"o":"f_0F23,x"},{"a":13765,"t":"code","b":[202],"m":"dex"},{"a":13766,"t":"code","b":[16,223],"m":"bpl","oa":13735,"o":"b_35A7"},{"a":13768,"t":"code","b":[169,138],"m":"lda","o":"#$8A"},{"a":13770,"t":"code","b":[162,14],"m":"ldx","o":"#$0E"},{"a":13772,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":13774,"t":"code","b":[134,14],"m":"stx","oa":14,"o":"zpa_0E"},{"a":13776,"t":"code","b":[169,153],"m":"lda","o":"#$99"},{"a":13778,"t":"code","b":[162,52],"m":"ldx","o":"#$34"},{"a":13780,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":13782,"t":"code","b":[134,16],"m":"stx","oa":16,"o":"zpa_10"},{"a":13784,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":13786,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"zpa_20"},{"a":13788,"l":"b_35DC","t":"code","b":[32,253,53],"m":"jsr","oa":13821,"o":"print_hiscore","x":[13818]},{"a":13791,"t":"code","b":[165,13],"m":"lda","oa":13,"o":"zpa_0D"},{"a":13793,"t":"code","b":[24],"m":"clc"},{"a":13794,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":13796,"t":"code","b":[133,13],"m":"sta","oa":13,"o":"zpa_0D"},{"a":13798,"t":"code","b":[165,14],"m":"lda","oa":14,"o":"zpa_0E"},{"a":13800,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":13802,"t":"code","b":[133,14],"m":"sta","oa":14,"o":"zpa_0E"},{"a":13804,"t":"code","b":[165,15],"m":"lda","oa":15,"o":"zpa_0F"},{"a":13806,"t":"code","b":[105,9],"m":"adc","o":"#$09"},{"a":13808,"t":"code","b":[133,15],"m":"sta","oa":15,"o":"zpa_0F"},{"a":13810,"t":"code","b":[165,16],"m":"lda","oa":16,"o":"zpa_10"},{"a":13812,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":13814,"t":"code","b":[133,16],"m":"sta","oa":16,"o":"zpa_10"},{"a":13816,"t":"code","b":[198,32],"m":"dec","oa":32,"o":"zpa_20"},{"a":13818,"t":"code","b":[16,224],"m":"bpl","oa":13788,"o":"b_35DC"},{"a":13820,"t":"code","b":[96],"m":"rts"},{"a":13821,"l":"print_hiscore","c":"Prints one entry's score, three binary-coded decimal bytes at ($0F), as six digits at the screen address in $0D/$0E.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[13788]},{"a":13823,"t":"code","b":[133,17],"m":"sta","oa":17,"o":"zpa_11"},{"a":13825,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":13827,"l":"b_3603","t":"code","b":[164,18],"m":"ldy","oa":18,"o":"zpa_12","x":[13864]},{"a":13829,"t":"code","b":[177,15],"m":"lda","oa":15,"o":"(zpa_0F),y"},{"a":13831,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":13832,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":13833,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":13834,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":13835,"t":"code","b":[24],"m":"clc"},{"a":13836,"t":"code","b":[105,246],"m":"adc","o":"#$F6"},{"a":13838,"t":"code","b":[164,17],"m":"ldy","oa":17,"o":"zpa_11"},{"a":13840,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":13842,"t":"code","b":[230,17],"m":"inc","oa":17,"o":"zpa_11"},{"a":13844,"t":"code","b":[164,18],"m":"ldy","oa":18,"o":"zpa_12"},{"a":13846,"t":"code","b":[177,15],"m":"lda","oa":15,"o":"(zpa_0F),y"},{"a":13848,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":13850,"t":"code","b":[105,246],"m":"adc","o":"#$F6"},{"a":13852,"t":"code","b":[164,17],"m":"ldy","oa":17,"o":"zpa_11"},{"a":13854,"t":"code","b":[145,13],"m":"sta","oa":13,"o":"(zpa_0D),y"},{"a":13856,"t":"code","b":[230,17],"m":"inc","oa":17,"o":"zpa_11"},{"a":13858,"t":"code","b":[230,18],"m":"inc","oa":18,"o":"zpa_12"},{"a":13860,"t":"code","b":[165,17],"m":"lda","oa":17,"o":"zpa_11"},{"a":13862,"t":"code","b":[201,6],"m":"cmp","o":"#$06"},{"a":13864,"t":"code","b":[208,217],"m":"bne","oa":13827,"o":"b_3603"},{"a":13866,"t":"code","b":[96],"m":"rts"},{"a":13867,"l":"show_controls","c":"Prints KEYBOARD or JOYSTICK at row 17, column 18 by bit 7 of $A3, from the words at $3266.","t":"code","b":[160,7],"m":"ldy","o":"#$07","x":[12239,13906]},{"a":13869,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":13871,"t":"code","b":[36,163],"m":"bit","oa":163,"o":"controls"},{"a":13873,"t":"code","b":[48,2],"m":"bmi","oa":13877,"o":"b_3635"},{"a":13875,"t":"code","b":[160,15],"m":"ldy","o":"#$0F"},{"a":13877,"l":"b_3635","t":"code","b":[185,102,50],"m":"lda","oa":12902,"o":"control_names,y","x":[13873,13885]},{"a":13880,"t":"code","b":[157,186,14],"m":"sta","oa":3770,"o":"f_0EBA,x"},{"a":13883,"t":"code","b":[136],"m":"dey"},{"a":13884,"t":"code","b":[202],"m":"dex"},{"a":13885,"t":"code","b":[16,246],"m":"bpl","oa":13877,"o":"b_3635"},{"a":13887,"t":"code","b":[96],"m":"rts"},{"a":13888,"l":"toggle_controls","c":"On the title, RETURN newly pressed (row $FE, bit 1, in $A5, last frame's in $A4) switches between joystick and keyboard (bit 7 of $A3) and shows which (show_controls).","t":"code","b":[165,165],"m":"lda","oa":165,"o":"zpa_A5","x":[12407]},{"a":13890,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":13892,"t":"code","b":[208,15],"m":"bne","oa":13909,"o":"r_3655"},{"a":13894,"t":"code","b":[165,164],"m":"lda","oa":164,"o":"zpa_A4"},{"a":13896,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":13898,"t":"code","b":[240,9],"m":"beq","oa":13909,"o":"r_3655"},{"a":13900,"t":"code","b":[165,163],"m":"lda","oa":163,"o":"controls"},{"a":13902,"t":"code","b":[73,128],"m":"eor","o":"#$80"},{"a":13904,"t":"code","b":[133,163],"m":"sta","oa":163,"o":"controls"},{"a":13906,"t":"code","b":[32,43,54],"m":"jsr","oa":13867,"o":"show_controls"},{"a":13909,"l":"r_3655","t":"code","b":[96],"m":"rts","x":[13892,13898]},{"a":13910,"l":"change_level","c":"On the title, left or right (next_direction) changes the starting level, $A7, from 0 to 15 and round again, and shows it at row 17, column 34 (print_level).","t":"code","b":[32,117,54],"m":"jsr","oa":13941,"o":"next_direction","x":[12410]},{"a":13913,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":13915,"t":"code","b":[208,1],"m":"bne","oa":13918,"o":"b_365E"},{"a":13917,"t":"code","b":[96],"m":"rts"},{"a":13918,"l":"b_365E","t":"code","b":[201,1],"m":"cmp","o":"#$01","x":[13915]},{"a":13920,"t":"code","b":[208,4],"m":"bne","oa":13926,"o":"b_3666"},{"a":13922,"t":"code","b":[230,167],"m":"inc","oa":167,"o":"level"},{"a":13924,"t":"code","b":[208,2],"m":"bne","oa":13928,"o":"b_3668"},{"a":13926,"l":"b_3666","t":"code","b":[198,167],"m":"dec","oa":167,"o":"level","x":[13920]},{"a":13928,"l":"b_3668","t":"code","b":[165,167],"m":"lda","oa":167,"o":"level","x":[13924]},{"a":13930,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":13932,"t":"code","b":[133,167],"m":"sta","oa":167,"o":"level"},{"a":13934,"t":"code","b":[169,202],"m":"lda","o":"#$CA"},{"a":13936,"t":"code","b":[162,14],"m":"ldx","o":"#$0E"},{"a":13938,"t":"code","b":[76,105,30],"m":"jmp","oa":7785,"o":"print_level"},{"a":13941,"l":"next_direction","c":"Left or right with repeat, for the title's level and the high scores' letters: returns $09 (1 right, $FF left) on the first frame it is held and every 8 frames after ($17 counts), and 0 otherwise.","t":"code","b":[165,9],"m":"lda","oa":9,"o":"joy_x","x":[13647,13910]},{"a":13943,"t":"code","b":[208,5],"m":"bne","oa":13950,"o":"b_367E"},{"a":13945,"l":"b_3679","t":"code","b":[162,8],"m":"ldx","o":"#$08","x":[13952,13956]},{"a":13947,"t":"code","b":[134,23],"m":"stx","oa":23,"o":"zpa_17"},{"a":13949,"t":"code","b":[96],"m":"rts"},{"a":13950,"l":"b_367E","t":"code","b":[197,166],"m":"cmp","oa":166,"o":"zpa_A6","x":[13943]},{"a":13952,"t":"code","b":[208,247],"m":"bne","oa":13945,"o":"b_3679"},{"a":13954,"t":"code","b":[198,23],"m":"dec","oa":23,"o":"zpa_17"},{"a":13956,"t":"code","b":[240,243],"m":"beq","oa":13945,"o":"b_3679"},{"a":13958,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":13960,"t":"code","b":[96],"m":"rts"},{"a":13961,"l":"sound","c":"The sound effects, once a frame from irq_play, one at a time, the first that is going in this order. $BD: the tone for each stick left at the end of a level, noise at the volume in $BD fading to nothing, then again one step quieter, until $BD is 0. $C5: the level's end, both square voices from volume 12, one step quieter every other frame: voice 1 warbling between $33C and $33F, voice 2 taking the low byte voice 1 has just left, its top bits whatever $FF10 holds (main_loop loads $FF10 at $18BD). $BE: the pick-up, voice 1 with a random wobble in its pitch, louder to 4 (bit 7 of $BE set), its top bits then 2 ($FF12 = $0A), then fading from 4, from 3, from 2 and from 1. $BF: an explosion, noise on voice 2 at $220 fading from 5, then at $000 from 12, one step in three frames of every four ($C0). $C1 and $C2: Pete's death, noise pulses up to the volume in $C2 and down, $C2 one less every second pulse. $C3: a stick's fuse, a hiss of noise at volume 1. Pete moving ($4A, a move under way, through earth or tunnel): a scratch of noise at a random pitch, volumes 0 to 3 in turn ($C4). Silence otherwise; each effect clears its flags (and the volume) when it ends.","t":"code","b":[165,189],"m":"lda","oa":189,"o":"zpa_BD","x":[6634]},{"a":13963,"t":"code","b":[240,26],"m":"beq","oa":13991,"o":"b_36A7"},{"a":13965,"t":"code","b":[206,17,255],"m":"dec","o":"ted_sound"},{"a":13968,"t":"code","b":[173,17,255],"m":"lda","o":"ted_sound"},{"a":13971,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":13973,"t":"code","b":[240,1],"m":"beq","oa":13976,"o":"b_3698"},{"a":13975,"t":"code","b":[96],"m":"rts"},{"a":13976,"l":"b_3698","t":"code","b":[198,189],"m":"dec","oa":189,"o":"zpa_BD","x":[13973]},{"a":13978,"t":"code","b":[208,3],"m":"bne","oa":13983,"o":"b_369F"},{"a":13980,"t":"code","b":[76,216,55],"m":"jmp","oa":14296,"o":"j_37D8"},{"a":13983,"l":"b_369F","t":"code","b":[165,189],"m":"lda","oa":189,"o":"zpa_BD","x":[13978]},{"a":13985,"t":"code","b":[9,64],"m":"ora","o":"#$40"},{"a":13987,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":13990,"l":"r_36A6","t":"code","b":[96],"m":"rts","x":[13998]},{"a":13991,"l":"b_36A7","t":"code","b":[165,197],"m":"lda","oa":197,"o":"zpa_C5","x":[13963]},{"a":13993,"t":"code","b":[240,27],"m":"beq","oa":14022,"o":"b_36C6"},{"a":13995,"t":"code","b":[165,100],"m":"lda","oa":100,"o":"frame_count"},{"a":13997,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":13998,"t":"code","b":[176,246],"m":"bcs","oa":13990,"o":"r_36A6"},{"a":14000,"t":"code","b":[173,14,255],"m":"lda","o":"ted_voice1_freq_lo"},{"a":14003,"t":"code","b":[141,15,255],"m":"sta","o":"ted_voice2_freq_lo"},{"a":14006,"t":"code","b":[73,3],"m":"eor","o":"#$03"},{"a":14008,"t":"code","b":[141,14,255],"m":"sta","o":"ted_voice1_freq_lo"},{"a":14011,"t":"code","b":[206,17,255],"m":"dec","o":"ted_sound"},{"a":14014,"t":"code","b":[173,17,255],"m":"lda","o":"ted_sound"},{"a":14017,"t":"code","b":[201,48],"m":"cmp","o":"#$30"},{"a":14019,"t":"code","b":[240,63],"m":"beq","oa":14084,"o":"b_3704"},{"a":14021,"t":"code","b":[96],"m":"rts"},{"a":14022,"l":"b_36C6","t":"code","b":[165,190],"m":"lda","oa":190,"o":"zpa_BE","x":[13993]},{"a":14024,"t":"code","b":[240,62],"m":"beq","oa":14088,"o":"b_3708"},{"a":14026,"t":"code","b":[173,0,255],"m":"lda","o":"ted_timer1_lo"},{"a":14029,"t":"code","b":[109,30,255],"m":"adc","o":"ted_hpos"},{"a":14032,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":14034,"t":"code","b":[77,14,255],"m":"eor","o":"ted_voice1_freq_lo"},{"a":14037,"t":"code","b":[141,14,255],"m":"sta","o":"ted_voice1_freq_lo"},{"a":14040,"t":"code","b":[36,190],"m":"bit","oa":190,"o":"zpa_BE"},{"a":14042,"t":"code","b":[16,19],"m":"bpl","oa":14063,"o":"b_36EF"},{"a":14044,"t":"code","b":[238,17,255],"m":"inc","o":"ted_sound"},{"a":14047,"t":"code","b":[173,17,255],"m":"lda","o":"ted_sound"},{"a":14050,"t":"code","b":[201,20],"m":"cmp","o":"#$14"},{"a":14052,"t":"code","b":[240,1],"m":"beq","oa":14055,"o":"b_36E7"},{"a":14054,"t":"code","b":[96],"m":"rts"},{"a":14055,"l":"b_36E7","t":"code","b":[133,190],"m":"sta","oa":190,"o":"zpa_BE","x":[14052]},{"a":14057,"t":"code","b":[169,10],"m":"lda","o":"#$0A"},{"a":14059,"t":"code","b":[141,18,255],"m":"sta","o":"ted_bitmap_voice1_hi"},{"a":14062,"t":"code","b":[96],"m":"rts"},{"a":14063,"l":"b_36EF","t":"code","b":[206,17,255],"m":"dec","o":"ted_sound","x":[14042]},{"a":14066,"t":"code","b":[173,17,255],"m":"lda","o":"ted_sound"},{"a":14069,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":14071,"t":"code","b":[208,14],"m":"bne","oa":14087,"o":"r_3707"},{"a":14073,"t":"code","b":[198,190],"m":"dec","oa":190,"o":"zpa_BE"},{"a":14075,"t":"code","b":[165,190],"m":"lda","oa":190,"o":"zpa_BE"},{"a":14077,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":14080,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":14082,"t":"code","b":[208,3],"m":"bne","oa":14087,"o":"r_3707"},{"a":14084,"l":"b_3704","t":"code","b":[76,216,55],"m":"jmp","oa":14296,"o":"j_37D8","x":[14019]},{"a":14087,"l":"r_3707","t":"code","b":[96],"m":"rts","x":[14071,14082,14118]},{"a":14088,"l":"b_3708","t":"code","b":[165,191],"m":"lda","oa":191,"o":"zpa_BF","x":[14024]},{"a":14090,"t":"code","b":[240,67],"m":"beq","oa":14159,"o":"b_374F"},{"a":14092,"t":"code","b":[173,0,255],"m":"lda","o":"ted_timer1_lo"},{"a":14095,"t":"code","b":[109,30,255],"m":"adc","o":"ted_hpos"},{"a":14098,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":14100,"t":"code","b":[77,15,255],"m":"eor","o":"ted_voice2_freq_lo"},{"a":14103,"t":"code","b":[141,15,255],"m":"sta","o":"ted_voice2_freq_lo"},{"a":14106,"t":"code","b":[165,191],"m":"lda","oa":191,"o":"zpa_BF"},{"a":14108,"t":"code","b":[48,27],"m":"bmi","oa":14137,"o":"b_3739"},{"a":14110,"t":"code","b":[206,17,255],"m":"dec","o":"ted_sound"},{"a":14113,"t":"code","b":[173,17,255],"m":"lda","o":"ted_sound"},{"a":14116,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":14118,"t":"code","b":[208,223],"m":"bne","oa":14087,"o":"r_3707"},{"a":14120,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":14122,"t":"code","b":[134,191],"m":"stx","oa":191,"o":"zpa_BF"},{"a":14124,"t":"code","b":[232],"m":"inx"},{"a":14125,"t":"code","b":[142,16,255],"m":"stx","o":"ted_voice2_freq_hi"},{"a":14128,"t":"code","b":[142,15,255],"m":"stx","o":"ted_voice2_freq_lo"},{"a":14131,"t":"code","b":[169,76],"m":"lda","o":"#$4C"},{"a":14133,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":14136,"t":"code","b":[96],"m":"rts"},{"a":14137,"l":"b_3739","t":"code","b":[230,192],"m":"inc","oa":192,"o":"zpa_C0","x":[14108]},{"a":14139,"t":"code","b":[165,192],"m":"lda","oa":192,"o":"zpa_C0"},{"a":14141,"t":"code","b":[41,3],"m":"and","o":"#$03"},{"a":14143,"t":"code","b":[240,13],"m":"beq","oa":14158,"o":"r_374E"},{"a":14145,"t":"code","b":[206,17,255],"m":"dec","o":"ted_sound"},{"a":14148,"t":"code","b":[173,17,255],"m":"lda","o":"ted_sound"},{"a":14151,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":14153,"t":"code","b":[208,3],"m":"bne","oa":14158,"o":"r_374E"},{"a":14155,"t":"code","b":[76,216,55],"m":"jmp","oa":14296,"o":"j_37D8"},{"a":14158,"l":"r_374E","t":"code","b":[96],"m":"rts","x":[14143,14153,14191,14211]},{"a":14159,"l":"b_374F","t":"code","b":[165,193],"m":"lda","oa":193,"o":"zpa_C1","x":[14090]},{"a":14161,"t":"code","b":[240,71],"m":"beq","oa":14234,"o":"b_379A"},{"a":14163,"t":"code","b":[173,0,255],"m":"lda","o":"ted_timer1_lo"},{"a":14166,"t":"code","b":[109,30,255],"m":"adc","o":"ted_hpos"},{"a":14169,"t":"code","b":[41,7],"m":"and","o":"#$07"},{"a":14171,"t":"code","b":[77,15,255],"m":"eor","o":"ted_voice2_freq_lo"},{"a":14174,"t":"code","b":[141,15,255],"m":"sta","o":"ted_voice2_freq_lo"},{"a":14177,"t":"code","b":[165,193],"m":"lda","oa":193,"o":"zpa_C1"},{"a":14179,"t":"code","b":[48,22],"m":"bmi","oa":14203,"o":"b_377B"},{"a":14181,"t":"code","b":[238,17,255],"m":"inc","o":"ted_sound"},{"a":14184,"t":"code","b":[173,17,255],"m":"lda","o":"ted_sound"},{"a":14187,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":14189,"t":"code","b":[197,194],"m":"cmp","oa":194,"o":"zpa_C2"},{"a":14191,"t":"code","b":[208,221],"m":"bne","oa":14158,"o":"r_374E"},{"a":14193,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":14195,"t":"code","b":[133,193],"m":"sta","oa":193,"o":"zpa_C1"},{"a":14197,"t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":14199,"t":"code","b":[141,15,255],"m":"sta","o":"ted_voice2_freq_lo"},{"a":14202,"t":"code","b":[96],"m":"rts"},{"a":14203,"l":"b_377B","t":"code","b":[206,17,255],"m":"dec","o":"ted_sound","x":[14179]},{"a":14206,"t":"code","b":[173,17,255],"m":"lda","o":"ted_sound"},{"a":14209,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":14211,"t":"code","b":[208,201],"m":"bne","oa":14158,"o":"r_374E"},{"a":14213,"t":"code","b":[230,192],"m":"inc","oa":192,"o":"zpa_C0"},{"a":14215,"t":"code","b":[165,192],"m":"lda","oa":192,"o":"zpa_C0"},{"a":14217,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":14218,"t":"code","b":[176,4],"m":"bcs","oa":14224,"o":"b_3790"},{"a":14220,"t":"code","b":[198,194],"m":"dec","oa":194,"o":"zpa_C2"},{"a":14222,"t":"code","b":[240,72],"m":"beq","oa":14296,"o":"j_37D8"},{"a":14224,"l":"b_3790","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[14218]},{"a":14226,"t":"code","b":[133,193],"m":"sta","oa":193,"o":"zpa_C1"},{"a":14228,"t":"code","b":[169,224],"m":"lda","o":"#$E0"},{"a":14230,"t":"code","b":[141,15,255],"m":"sta","o":"ted_voice2_freq_lo"},{"a":14233,"t":"code","b":[96],"m":"rts"},{"a":14234,"l":"b_379A","t":"code","b":[165,195],"m":"lda","oa":195,"o":"zpa_C3","x":[14161]},{"a":14236,"t":"code","b":[240,25],"m":"beq","oa":14263,"o":"b_37B7"},{"a":14238,"t":"code","b":[173,0,255],"m":"lda","o":"ted_timer1_lo"},{"a":14241,"t":"code","b":[109,30,255],"m":"adc","o":"ted_hpos"},{"a":14244,"t":"code","b":[9,170],"m":"ora","o":"#$AA"},{"a":14246,"t":"code","b":[77,15,255],"m":"eor","o":"ted_voice2_freq_lo"},{"a":14249,"t":"code","b":[141,15,255],"m":"sta","o":"ted_voice2_freq_lo"},{"a":14252,"t":"code","b":[169,65],"m":"lda","o":"#$41"},{"a":14254,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":14257,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":14259,"t":"code","b":[141,16,255],"m":"sta","o":"ted_voice2_freq_hi"},{"a":14262,"t":"code","b":[96],"m":"rts"},{"a":14263,"l":"b_37B7","t":"code","b":[165,74],"m":"lda","oa":74,"o":"figure_dir","x":[14236]},{"a":14265,"t":"code","b":[240,29],"m":"beq","oa":14296,"o":"j_37D8"},{"a":14267,"t":"code","b":[173,0,255],"m":"lda","o":"ted_timer1_lo"},{"a":14270,"t":"code","b":[109,30,255],"m":"adc","o":"ted_hpos"},{"a":14273,"t":"code","b":[77,15,255],"m":"eor","o":"ted_voice2_freq_lo"},{"a":14276,"t":"code","b":[141,15,255],"m":"sta","o":"ted_voice2_freq_lo"},{"a":14279,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":14281,"t":"code","b":[141,16,255],"m":"sta","o":"ted_voice2_freq_hi"},{"a":14284,"t":"code","b":[230,196],"m":"inc","oa":196,"o":"zpa_C4"},{"a":14286,"t":"code","b":[165,196],"m":"lda","oa":196,"o":"zpa_C4"},{"a":14288,"t":"code","b":[41,67],"m":"and","o":"#$43"},{"a":14290,"t":"code","b":[133,196],"m":"sta","oa":196,"o":"zpa_C4"},{"a":14292,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":14295,"t":"code","b":[96],"m":"rts"},{"a":14296,"l":"j_37D8","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[13980,14084,14155,14222,14265]},{"a":14298,"t":"code","b":[141,17,255],"m":"sta","o":"ted_sound"},{"a":14301,"t":"code","b":[133,190],"m":"sta","oa":190,"o":"zpa_BE"},{"a":14303,"t":"code","b":[133,191],"m":"sta","oa":191,"o":"zpa_BF"},{"a":14305,"t":"code","b":[133,193],"m":"sta","oa":193,"o":"zpa_C1"},{"a":14307,"t":"code","b":[133,195],"m":"sta","oa":195,"o":"zpa_C3"},{"a":14309,"t":"code","b":[133,197],"m":"sta","oa":197,"o":"zpa_C5"},{"a":14311,"t":"code","b":[96],"m":"rts"},{"a":14312,"t":"gap","n":2},{"a":14314,"l":"map_surface","c":"The map's first row, of 90 columns ($5A bytes a row, 23 rows at $37EA-$3FFF): the sky, with clouds and the tops of the highest mountains. Rows 0 to 2 are the surface, the same on every level; rows 3 to 22 are the mine, which start_level builds again for each level. draw_view shows 39 columns of it at a time.","t":"byte","b":[82,83,0,0,0,0,84,85],"x":[7101]},{"a":14322,"t":"byte","b":[86,0,0,0,0,0,0,0]},{"a":14330,"t":"byte","b":[0,0,0,0,81,82,88,83]},{"a":14338,"t":"byte","b":[0,0,0,0,0,81,82,83]},{"a":14346,"t":"byte","b":[89,88,82,83,81,88,82,89]},{"a":14354,"t":"byte","b":[83,0,0,0,0,0,81,89]},{"a":14362,"t":"byte","b":[83,63,89,88,83,83,81,82]},{"a":14370,"t":"byte","b":[83,0,0,0,0,0,0,0]},{"a":14378,"t":"byte","b":[89,88,83,83,76,71,70,0]},{"a":14386,"t":"byte","b":[0,0,81,83,0,0,0,0]},{"a":14394,"t":"byte","b":[0,84,85,86,83,89,88,83]},{"a":14402,"t":"byte","b":[0,76]},{"a":14404,"l":"map_surface_row1","c":"The map's second row, 90 columns: mountains and clouds, and the top of the pithead over the shaft (column 44).","t":"byte","b":[0,0,76,81,83,0,66,67],"x":[7107]},{"a":14412,"t":"byte","b":[70,0,81,82,82,83,0,66]},{"a":14420,"t":"byte","b":[81,88,0,0,0,0,66,76]},{"a":14428,"t":"byte","b":[0,84,88,86,0,71,72,73]},{"a":14436,"t":"byte","b":[74,77,77,69,70,0,0,0]},{"a":14444,"t":"byte","b":[84,85,89,58,91,59,0,71]},{"a":14452,"t":"byte","b":[62,64,69,70,0,0,0,0]},{"a":14460,"t":"byte","b":[0,71,72,65,70,84,85,86]},{"a":14468,"t":"byte","b":[0,63,71,72,87,64,75,65]},{"a":14476,"t":"byte","b":[70,0,0,0,81,83,83,0]},{"a":14484,"t":"byte","b":[76,0,0,0,0,0,63,70]},{"a":14492,"t":"byte","b":[72,75]},{"a":14494,"l":"map_surface_row2","c":"The map's third row, 90 columns: the foot of the mountains, the hut, and the pithead over the shaft (columns 43 to 45).","t":"byte","b":[73,74,75,69,66,62,64,64],"x":[7113]},{"a":14502,"t":"byte","b":[75,65,70,67,68,65,62,64]},{"a":14510,"t":"byte","b":[65,70,71,72,73,74,75,64]},{"a":14518,"t":"byte","b":[69,67,72,69,62,64,87,75]},{"a":14526,"t":"byte","b":[87,75,64,64,75,73,70,78]},{"a":14534,"t":"byte","b":[79,71,68,60,90,61,68,75]},{"a":14542,"t":"byte","b":[64,64,87,64,69,70,66,62]},{"a":14550,"t":"byte","b":[68,64,75,64,87,69,70,67]},{"a":14558,"t":"byte","b":[68,64,75,64,64,75,64,87]},{"a":14566,"t":"byte","b":[75,77,70,66,70,70,71,74]},{"a":14574,"t":"byte","b":[75,77,69,70,67,62,64,64]},{"a":14582,"t":"byte","b":[75,64]},{"a":14584,"t":"gap","n":50952,"x":[7119]}]}