{"schema":1,"platform":"c64","game":"the-spy-who-loved-me","part":"overlay","title":"The Spy Who Loved Me","build":"Domark's PAL disk, 007_the_spy_who_loved_me[domark_1990](pal)(!).g64: the game file S1 is a machine saved with Trilogic's Expert freezer cartridge and packed by its restart routine; the listings come from memory resumed at the game's first instruction, $0A03","symbols_sha256":"ae0a120d07378b4c9d808424a4bf3417b0c9279de216cf45450dfae56f33df9d","snapshot":{"file":"work/entry.vsf","sha256":"a48640cf9d992ac544e480506bb7652cb385842949b5a55e3b45a68567d7f3cf"},"index":[{"a":16384,"n":"shop_items","k":"table","len":195,"c":true},{"a":16579,"n":"cost_text","k":"table","len":6,"c":true},{"a":16585,"n":"item_price","k":"variable","len":1,"c":true},{"a":16586,"n":"item_pointers","k":"variable","len":1,"c":true},{"a":16587,"n":"item_pointers_hi","k":"table","len":29,"c":true},{"a":16616,"n":"shop_cursor","k":"variable","len":1,"c":true},{"a":16617,"n":"high_scores","k":"variable","len":1,"c":true},{"a":16618,"n":"high_score_letters","k":"variable","len":1,"c":true},{"a":16619,"n":"high_score_letter_3","k":"variable","len":1,"c":true},{"a":16620,"n":"high_score_digits","k":"variable","len":1,"c":true},{"a":16621,"n":"high_score_byte_2","k":"variable","len":1,"c":true},{"a":16622,"n":"high_score_byte_3","k":"variable","len":1,"c":true},{"a":16623,"n":"high_score_byte_4","k":"variable","len":1,"c":true},{"a":16624,"n":"high_scores_rest","k":"table","len":56,"c":true},{"a":16680,"n":"draw_high_scores","k":"routine","len":3,"c":true},{"a":16683,"n":"draw_score_rows","k":"routine","len":92,"c":true},{"a":16699,"n":"b_413B","k":"branch","len":1,"c":false},{"a":16767,"n":"b_417F","k":"branch","len":1,"c":false},{"a":16775,"n":"game_over_scores","k":"routine","len":116,"c":true},{"a":16803,"n":"b_41A3","k":"branch","len":1,"c":false},{"a":16816,"n":"b_41B0","k":"branch","len":1,"c":false},{"a":16855,"n":"b_41D7","k":"branch","len":1,"c":false},{"a":16869,"n":"b_41E5","k":"branch","len":1,"c":false},{"a":16875,"n":"b_41EB","k":"branch","len":1,"c":false},{"a":16881,"n":"b_41F1","k":"branch","len":1,"c":false},{"a":16890,"n":"r_41FA","k":"branch","len":1,"c":false},{"a":16891,"n":"next_letter","k":"routine","len":20,"c":true},{"a":16906,"n":"b_420A","k":"branch","len":1,"c":false},{"a":16911,"n":"previous_letter","k":"routine","len":20,"c":true},{"a":16926,"n":"b_421E","k":"branch","len":1,"c":false},{"a":16931,"n":"letter_done","k":"routine","len":19,"c":true},{"a":16949,"n":"r_4235","k":"branch","len":1,"c":false},{"a":16950,"n":"find_place","k":"routine","len":58,"c":true},{"a":16954,"n":"j_423A","k":"branch","len":1,"c":false},{"a":16988,"n":"b_425C","k":"branch","len":1,"c":false},{"a":17003,"n":"b_426B","k":"branch","len":1,"c":false},{"a":17007,"n":"r_426F","k":"branch","len":1,"c":false},{"a":17008,"n":"print_bcd_pair","k":"routine","len":28,"c":true},{"a":17036,"n":"q_truck_shop","k":"routine","len":66,"c":true},{"a":17102,"n":"save_play_screen","k":"routine","len":22,"c":true},{"a":17109,"n":"b_42D5","k":"branch","len":1,"c":false},{"a":17124,"n":"restore_play_screen","k":"routine","len":76,"c":true},{"a":17141,"n":"b_42F5","k":"branch","len":1,"c":false},{"a":17166,"n":"b_430E","k":"branch","len":1,"c":false},{"a":17184,"n":"b_4320","k":"branch","len":1,"c":false},{"a":17200,"n":"screen_pointers","k":"routine","len":30,"c":true},{"a":17221,"n":"b_4345","k":"branch","len":1,"c":false},{"a":17230,"n":"sprite_pointers","k":"routine","len":22,"c":true},{"a":17243,"n":"b_435B","k":"branch","len":1,"c":false},{"a":17252,"n":"show_message","k":"routine","len":29,"c":true},{"a":17281,"n":"shop_loop","k":"routine","len":60,"c":true},{"a":17297,"n":"j_4391","k":"branch","len":1,"c":false},{"a":17313,"n":"b_43A1","k":"branch","len":1,"c":false},{"a":17326,"n":"b_43AE","k":"branch","len":1,"c":false},{"a":17334,"n":"b_43B6","k":"branch","len":1,"c":false},{"a":17341,"n":"shop_up","k":"routine","len":36,"c":true},{"a":17351,"n":"b_43C7","k":"branch","len":1,"c":false},{"a":17367,"n":"b_43D7","k":"branch","len":1,"c":false},{"a":17373,"n":"r_43DD","k":"branch","len":1,"c":false},{"a":17377,"n":"shop_down","k":"routine","len":37,"c":true},{"a":17387,"n":"j_43EB","k":"branch","len":1,"c":false},{"a":17404,"n":"b_43FC","k":"branch","len":1,"c":false},{"a":17410,"n":"r_4402","k":"branch","len":1,"c":false},{"a":17414,"n":"shop_buy","k":"routine","len":48,"c":true},{"a":17436,"n":"b_441C","k":"branch","len":1,"c":false},{"a":17458,"n":"b_4432","k":"branch","len":1,"c":false},{"a":17461,"n":"r_4435","k":"branch","len":1,"c":false},{"a":17462,"n":"draw_shop_icons","k":"routine","len":70,"c":true},{"a":17480,"n":"b_4448","k":"branch","len":1,"c":false},{"a":17532,"n":"show_item","k":"routine","len":101,"c":true},{"a":17613,"n":"b_44CD","k":"branch","len":1,"c":false},{"a":17632,"n":"r_44E0","k":"branch","len":1,"c":false},{"a":17633,"n":"print_text","k":"routine","len":2,"c":true},{"a":17635,"n":"print_text_y","k":"routine","len":13,"c":true},{"a":17647,"n":"r_44EF","k":"branch","len":1,"c":false},{"a":17648,"n":"clear_line","k":"routine","len":10,"c":true},{"a":17652,"n":"b_44F4","k":"branch","len":1,"c":false},{"a":17658,"n":"setup_panel","k":"routine","len":159,"c":true},{"a":17662,"n":"b_44FE","k":"branch","len":1,"c":false},{"a":17681,"n":"b_4511","k":"branch","len":1,"c":false},{"a":17699,"n":"b_4523","k":"branch","len":1,"c":false},{"a":17736,"n":"b_4548","k":"branch","len":1,"c":false},{"a":17743,"n":"b_454F","k":"branch","len":1,"c":false},{"a":17751,"n":"b_4557","k":"branch","len":1,"c":false},{"a":17817,"n":"reset_sprites","k":"routine","len":108,"c":true},{"a":17893,"n":"b_45E5","k":"branch","len":1,"c":false},{"a":17901,"n":"b_45ED","k":"branch","len":1,"c":false},{"a":17905,"n":"b_45F1","k":"branch","len":1,"c":false},{"a":17921,"n":"b_4601","k":"branch","len":1,"c":false},{"a":17925,"n":"reset_shots","k":"routine","len":64,"c":true},{"a":17943,"n":"b_4617","k":"branch","len":1,"c":false},{"a":17947,"n":"b_461B","k":"branch","len":1,"c":false},{"a":17974,"n":"b_4636","k":"branch","len":1,"c":false},{"a":17985,"n":"b_4641","k":"branch","len":1,"c":false},{"a":17989,"n":"overlay_spare","k":"table","len":443,"c":true}],"records":[{"a":0,"t":"gap","n":16384},{"a":16384,"l":"shop_items","c":"The Q-truck's stock, nine entries the shop reads through the table at $40CA: the icon's sprite frame, its colour, the price in Q tokens (BCD; $FF means it is worked out from the damage), the name in lower-case ASCII ending in 0, then the value to store and the address it goes to. In order: sub capability (75, sets $65), miniature lasers (25, $62 = 31), pursuit missiles (10, $59 = 31), smoke refill (5, $5A = $7F), side rear bolts (10, $64 on), armour replacement ($96F0 full), intercept missiles (15, $5B = 31), torpedoes (15, $63 = 31) and exit the q truck (0).","t":"byte","b":[89,176,13,117,115,117,98,32]},{"a":16392,"t":"byte","b":[99,97,112,97,98,105,108,105]},{"a":16400,"t":"byte","b":[116,121,0,255,101,0,178,13]},{"a":16408,"t":"byte","b":[37,109,105,110,105,97,116,117]},{"a":16416,"t":"byte","b":[114,101,32,108,97,115,101,114]},{"a":16424,"t":"byte","b":[115,0,31,98,0,173,15,16]},{"a":16432,"t":"byte","b":[112,117,114,115,117,105,116,32]},{"a":16440,"t":"byte","b":[109,105,115,115,105,108,101,115]},{"a":16448,"t":"byte","b":[0,31,89,0,175,15,5,115]},{"a":16456,"t":"byte","b":[109,111,107,101,32,114,101,102]},{"a":16464,"t":"byte","b":[105,108,108,0,127,90,0,180]},{"a":16472,"t":"byte","b":[13,16,115,105,100,101,32,114]},{"a":16480,"t":"byte","b":[101,97,114,32,98,111,108,116]},{"a":16488,"t":"byte","b":[115,0,255,100,0,172,15,255]},{"a":16496,"t":"byte","b":[97,114,109,111,117,114,32,114]},{"a":16504,"t":"byte","b":[101,112,108,97,99,101,109,101]},{"a":16512,"t":"byte","b":[110,116,0,255,240,150,174,15]},{"a":16520,"t":"byte","b":[21,105,110,116,101,114,99,101]},{"a":16528,"t":"byte","b":[112,116,32,109,105,115,115,105]},{"a":16536,"t":"byte","b":[108,101,115,0,31,91,0,177]},{"a":16544,"t":"byte","b":[13,21,116,111,114,112,101,100]},{"a":16552,"t":"byte","b":[111,101,115,0,31,99,0,179]},{"a":16560,"t":"byte","b":[7,0,101,120,105,116,32,116]},{"a":16568,"t":"byte","b":[104,101,32,113,32,116,114,117]},{"a":16576,"t":"byte","b":[99,107,0]},{"a":16579,"l":"cost_text","c":"The word \"cost \" printed before an item's price.","t":"byte","b":[99,111,115,116,32,0]},{"a":16585,"l":"item_price","c":"The price of the item under the cursor, set by $447C and paid by $4406.","t":"byte","b":[0],"x":[17418,17431,17439,17565,17587,17610,17626]},{"a":16586,"l":"item_pointers","c":"The addresses of the shop's entries, two bytes each, indexed by the cursor $40E8 (6 to $16 in steps of 2: the three slots before the first item and those after the last point at $4000, and give the icons drawn above and below the column ($4436)).","t":"byte","b":[0],"x":[17480,17486,17551]},{"a":16587,"l":"item_pointers_hi","c":"The high bytes of the shop's entry addresses, read with $40CA.","t":"byte","b":[64,0,64,0,64,1,64,22],"x":[17556]},{"a":16595,"t":"byte","b":[64,45,64,68,64,87,64,109]},{"a":16603,"t":"byte","b":[64,134,64,159,64,175,64,0]},{"a":16611,"t":"byte","b":[64,0,64,0,64]},{"a":16616,"l":"shop_cursor","c":"The shop's cursor, 6 to $16 in steps of 2: which item faces the arrow.","t":"byte","b":[14],"x":[17071,17341,17367,17370,17377,17404,17407,17469,17548]},{"a":16617,"l":"high_scores","c":"The high-score table: nine entries of seven bytes, three letters (1-26 for A-Z, 27 a space) and a four-byte BCD score, best first. Offsets from $8844.","t":"byte","b":[8],"x":[16699,16709,16719,16730,16736,16742,16748,16807,16820,16894,16906,16914,16926,16941]},{"a":16618,"l":"high_score_letters","c":"The second and third letters and the score of the first entry, addressed field by field when a new score is put in.","t":"byte","b":[1],"x":[16825]},{"a":16619,"l":"high_score_letter_3","c":"The first entry's third letter.","t":"byte","b":[18],"x":[16828]},{"a":16620,"l":"high_score_digits","c":"The first entry's score, four BCD bytes from $40EC to $40EF, compared with $9D-$A0 by $4236.","t":"byte","b":[0],"x":[16833,16954]},{"a":16621,"l":"high_score_byte_2","c":"The first entry's score, second BCD byte.","t":"byte","b":[80],"x":[16838,16963]},{"a":16622,"l":"high_score_byte_3","c":"The first entry's score, third BCD byte.","t":"byte","b":[0],"x":[16843,16972]},{"a":16623,"l":"high_score_byte_4","c":"The first entry's score, last BCD byte.","t":"byte","b":[0],"x":[16848,16981]},{"a":16624,"l":"high_scores_rest","c":"The high-score table from its second entry on, which $4187 moves down a place to make room for a new score.","t":"byte","b":[1,14,20,0,64,0,0,2],"x":[16810]},{"a":16632,"t":"byte","b":[9,20,0,48,0,0,17,5]},{"a":16640,"t":"byte","b":[4,0,32,0,0,19,4,3]},{"a":16648,"t":"byte","b":[0,16,0,0,10,22,13,0]},{"a":16656,"t":"byte","b":[5,0,0,7,10,22,0,1]},{"a":16664,"t":"byte","b":[0,0,19,13,8,0,0,80]},{"a":16672,"t":"byte","b":[0,1,3,16,0,0,16,0]},{"a":16680,"l":"draw_high_scores","c":"Empties the buffers ($284E) and writes the nine entries of the table into the character buffer from $E28C, two rows apart: the three letters (character $DA plus the letter) and the score's eight digits ($4270), then shows it ($0FC3).","t":"code","b":[32,78,40],"m":"jsr","oa":10318,"o":"clear_buffers","x":[16786]},{"a":16683,"l":"draw_score_rows","c":"The drawing loop of $4128, entered directly with $14/$15 already set: nine rows of letters and digits, then a redraw ($0FC3).","t":"code","b":[169,140],"m":"lda","o":"#$8C","x":[16855]},{"a":16685,"t":"code","b":[133,20],"m":"sta","oa":20,"o":"zpp_14"},{"a":16687,"t":"code","b":[169,226],"m":"lda","o":"#$E2"},{"a":16689,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":16691,"t":"code","b":[169,9],"m":"lda","o":"#$09"},{"a":16693,"t":"code","b":[133,143],"m":"sta","oa":143,"o":"zpa_8F"},{"a":16695,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":16697,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":16699,"l":"b_413B","t":"code","b":[189,233,64],"m":"lda","oa":16617,"o":"high_scores,x","x":[16769]},{"a":16702,"t":"code","b":[24],"m":"clc"},{"a":16703,"t":"code","b":[105,218],"m":"adc","o":"#$DA"},{"a":16705,"t":"code","b":[145,20],"m":"sta","oa":20,"o":"(zpp_14),y"},{"a":16707,"t":"code","b":[200],"m":"iny"},{"a":16708,"t":"code","b":[232],"m":"inx"},{"a":16709,"t":"code","b":[189,233,64],"m":"lda","oa":16617,"o":"high_scores,x"},{"a":16712,"t":"code","b":[24],"m":"clc"},{"a":16713,"t":"code","b":[105,218],"m":"adc","o":"#$DA"},{"a":16715,"t":"code","b":[145,20],"m":"sta","oa":20,"o":"(zpp_14),y"},{"a":16717,"t":"code","b":[200],"m":"iny"},{"a":16718,"t":"code","b":[232],"m":"inx"},{"a":16719,"t":"code","b":[189,233,64],"m":"lda","oa":16617,"o":"high_scores,x"},{"a":16722,"t":"code","b":[24],"m":"clc"},{"a":16723,"t":"code","b":[105,218],"m":"adc","o":"#$DA"},{"a":16725,"t":"code","b":[145,20],"m":"sta","oa":20,"o":"(zpp_14),y"},{"a":16727,"t":"code","b":[200],"m":"iny"},{"a":16728,"t":"code","b":[200],"m":"iny"},{"a":16729,"t":"code","b":[232],"m":"inx"},{"a":16730,"t":"code","b":[189,233,64],"m":"lda","oa":16617,"o":"high_scores,x"},{"a":16733,"t":"code","b":[32,112,66],"m":"jsr","oa":17008,"o":"print_bcd_pair"},{"a":16736,"t":"code","b":[189,233,64],"m":"lda","oa":16617,"o":"high_scores,x"},{"a":16739,"t":"code","b":[32,112,66],"m":"jsr","oa":17008,"o":"print_bcd_pair"},{"a":16742,"t":"code","b":[189,233,64],"m":"lda","oa":16617,"o":"high_scores,x"},{"a":16745,"t":"code","b":[32,112,66],"m":"jsr","oa":17008,"o":"print_bcd_pair"},{"a":16748,"t":"code","b":[189,233,64],"m":"lda","oa":16617,"o":"high_scores,x"},{"a":16751,"t":"code","b":[32,112,66],"m":"jsr","oa":17008,"o":"print_bcd_pair"},{"a":16754,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":16756,"t":"code","b":[24],"m":"clc"},{"a":16757,"t":"code","b":[165,20],"m":"lda","oa":20,"o":"zpp_14"},{"a":16759,"t":"code","b":[105,64],"m":"adc","o":"#$40"},{"a":16761,"t":"code","b":[133,20],"m":"sta","oa":20,"o":"zpp_14"},{"a":16763,"t":"code","b":[144,2],"m":"bcc","oa":16767,"o":"b_417F"},{"a":16765,"t":"code","b":[230,21],"m":"inc","oa":21,"o":"zpa_15"},{"a":16767,"l":"b_417F","t":"code","b":[198,143],"m":"dec","oa":143,"o":"zpa_8F","x":[16763]},{"a":16769,"t":"code","b":[208,184],"m":"bne","oa":16699,"o":"b_413B"},{"a":16771,"t":"code","b":[32,195,15],"m":"jsr","oa":4035,"o":"draw_play_area"},{"a":16774,"t":"code","b":[96],"m":"rts"},{"a":16775,"l":"game_over_scores","c":"After the last life: silences the sound, dissolves the screen, draws the table, and finds the score's place ($4236). If it makes the table, moves the lower entries down, puts the score in with the name AAA and lets the player choose three letters: up and down step through A-Z (wrapping), right moves to the next letter, half a second apart ($1129).","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":16777,"t":"code","b":[32,135,240],"m":"jsr","oa":61575,"o":"play_tune"},{"a":16780,"t":"code","b":[32,68,25],"m":"jsr","oa":6468,"o":"dissolve_screen"},{"a":16783,"t":"code","b":[32,110,40],"m":"jsr","oa":10350,"o":"copy_76d8"},{"a":16786,"t":"code","b":[32,40,65],"m":"jsr","oa":16680,"o":"draw_high_scores"},{"a":16789,"t":"code","b":[32,54,66],"m":"jsr","oa":16950,"o":"find_place"},{"a":16792,"t":"code","b":[166,143],"m":"ldx","oa":143,"o":"zpa_8F"},{"a":16794,"t":"code","b":[48,94],"m":"bmi","oa":16890,"o":"r_41FA"},{"a":16796,"t":"code","b":[189,68,136],"m":"lda","oa":34884,"o":"score_offsets,x"},{"a":16799,"t":"code","b":[133,29],"m":"sta","oa":29,"o":"zpa_1D"},{"a":16801,"t":"code","b":[162,55],"m":"ldx","o":"#$37"},{"a":16803,"l":"b_41A3","t":"code","b":[228,29],"m":"cpx","oa":29,"o":"zpa_1D","x":[16814]},{"a":16805,"t":"code","b":[144,9],"m":"bcc","oa":16816,"o":"b_41B0"},{"a":16807,"t":"code","b":[189,233,64],"m":"lda","oa":16617,"o":"high_scores,x"},{"a":16810,"t":"code","b":[157,240,64],"m":"sta","oa":16624,"o":"high_scores_rest,x"},{"a":16813,"t":"code","b":[202],"m":"dex"},{"a":16814,"t":"code","b":[16,243],"m":"bpl","oa":16803,"o":"b_41A3"},{"a":16816,"l":"b_41B0","t":"code","b":[166,29],"m":"ldx","oa":29,"o":"zpa_1D","x":[16805]},{"a":16818,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":16820,"t":"code","b":[157,233,64],"m":"sta","oa":16617,"o":"high_scores,x"},{"a":16823,"t":"code","b":[169,27],"m":"lda","o":"#$1B"},{"a":16825,"t":"code","b":[157,234,64],"m":"sta","oa":16618,"o":"high_score_letters,x"},{"a":16828,"t":"code","b":[157,235,64],"m":"sta","oa":16619,"o":"high_score_letter_3,x"},{"a":16831,"t":"code","b":[165,157],"m":"lda","oa":157,"o":"zpa_9D"},{"a":16833,"t":"code","b":[157,236,64],"m":"sta","oa":16620,"o":"high_score_digits,x"},{"a":16836,"t":"code","b":[165,158],"m":"lda","oa":158,"o":"zpa_9E"},{"a":16838,"t":"code","b":[157,237,64],"m":"sta","oa":16621,"o":"high_score_byte_2,x"},{"a":16841,"t":"code","b":[165,159],"m":"lda","oa":159,"o":"zpa_9F"},{"a":16843,"t":"code","b":[157,238,64],"m":"sta","oa":16622,"o":"high_score_byte_3,x"},{"a":16846,"t":"code","b":[165,160],"m":"lda","oa":160,"o":"zpa_A0"},{"a":16848,"t":"code","b":[157,239,64],"m":"sta","oa":16623,"o":"high_score_byte_4,x"},{"a":16851,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":16853,"t":"code","b":[133,144],"m":"sta","oa":144,"o":"zpa_90"},{"a":16855,"l":"b_41D7","t":"code","b":[32,43,65],"m":"jsr","oa":16683,"o":"draw_score_rows","x":[16888]},{"a":16858,"t":"code","b":[173,0,220],"m":"lda","o":"cia1_port_a"},{"a":16861,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":16862,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":16863,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":16864,"t":"code","b":[176,3],"m":"bcs","oa":16869,"o":"b_41E5"},{"a":16866,"t":"code","b":[32,15,66],"m":"jsr","oa":16911,"o":"previous_letter"},{"a":16869,"l":"b_41E5","t":"code","b":[74],"m":"lsr","o":"a","x":[16864]},{"a":16870,"t":"code","b":[176,3],"m":"bcs","oa":16875,"o":"b_41EB"},{"a":16872,"t":"code","b":[32,251,65],"m":"jsr","oa":16891,"o":"next_letter"},{"a":16875,"l":"b_41EB","t":"code","b":[74],"m":"lsr","o":"a","x":[16870]},{"a":16876,"t":"code","b":[176,3],"m":"bcs","oa":16881,"o":"b_41F1"},{"a":16878,"t":"code","b":[32,35,66],"m":"jsr","oa":16931,"o":"letter_done"},{"a":16881,"l":"b_41F1","t":"code","b":[162,50],"m":"ldx","o":"#$32","x":[16876]},{"a":16883,"t":"code","b":[32,41,17],"m":"jsr","oa":4393,"o":"delay_x"},{"a":16886,"t":"code","b":[165,144],"m":"lda","oa":144,"o":"zpa_90"},{"a":16888,"t":"code","b":[208,221],"m":"bne","oa":16855,"o":"b_41D7"},{"a":16890,"l":"r_41FA","t":"code","b":[96],"m":"rts","x":[16794]},{"a":16891,"l":"next_letter","c":"Steps the letter under the cursor ($1D) to the next, Z back to A.","t":"code","b":[166,29],"m":"ldx","oa":29,"o":"zpa_1D","x":[16872]},{"a":16893,"t":"code","b":[72],"m":"pha"},{"a":16894,"t":"code","b":[189,233,64],"m":"lda","oa":16617,"o":"high_scores,x"},{"a":16897,"t":"code","b":[24],"m":"clc"},{"a":16898,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":16900,"t":"code","b":[201,27],"m":"cmp","o":"#$1B"},{"a":16902,"t":"code","b":[208,2],"m":"bne","oa":16906,"o":"b_420A"},{"a":16904,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":16906,"l":"b_420A","t":"code","b":[157,233,64],"m":"sta","oa":16617,"o":"high_scores,x","x":[16902]},{"a":16909,"t":"code","b":[104],"m":"pla"},{"a":16910,"t":"code","b":[96],"m":"rts"},{"a":16911,"l":"previous_letter","c":"Steps the letter back, A round to Z.","t":"code","b":[166,29],"m":"ldx","oa":29,"o":"zpa_1D","x":[16866]},{"a":16913,"t":"code","b":[72],"m":"pha"},{"a":16914,"t":"code","b":[189,233,64],"m":"lda","oa":16617,"o":"high_scores,x"},{"a":16917,"t":"code","b":[56],"m":"sec"},{"a":16918,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":16920,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":16922,"t":"code","b":[208,2],"m":"bne","oa":16926,"o":"b_421E"},{"a":16924,"t":"code","b":[169,26],"m":"lda","o":"#$1A"},{"a":16926,"l":"b_421E","t":"code","b":[157,233,64],"m":"sta","oa":16617,"o":"high_scores,x","x":[16922]},{"a":16929,"t":"code","b":[104],"m":"pla"},{"a":16930,"t":"code","b":[96],"m":"rts"},{"a":16931,"l":"letter_done","c":"Fixes this letter and moves to the next (three in all, counted by $90).","t":"code","b":[198,144],"m":"dec","oa":144,"o":"zpa_90","x":[16878]},{"a":16933,"t":"code","b":[240,14],"m":"beq","oa":16949,"o":"r_4235"},{"a":16935,"t":"code","b":[230,29],"m":"inc","oa":29,"o":"zpa_1D"},{"a":16937,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":16939,"t":"code","b":[166,29],"m":"ldx","oa":29,"o":"zpa_1D"},{"a":16941,"t":"code","b":[157,233,64],"m":"sta","oa":16617,"o":"high_scores,x"},{"a":16944,"t":"code","b":[162,100],"m":"ldx","o":"#$64"},{"a":16946,"t":"code","b":[32,41,17],"m":"jsr","oa":4393,"o":"delay_x"},{"a":16949,"l":"r_4235","t":"code","b":[96],"m":"rts","x":[16933]},{"a":16950,"l":"find_place","c":"Compares the score $9D-$A0 with the table's entries in order ($8844); returns the place in $8F, or $FF when it is lower than all nine.","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[16789]},{"a":16952,"t":"code","b":[134,143],"m":"stx","oa":143,"o":"zpa_8F"},{"a":16954,"l":"j_423A","t":"code","b":[189,236,64],"m":"lda","oa":16620,"o":"high_score_digits,x","x":[17000]},{"a":16957,"t":"code","b":[197,157],"m":"cmp","oa":157,"o":"zpa_9D"},{"a":16959,"t":"code","b":[144,46],"m":"bcc","oa":17007,"o":"r_426F"},{"a":16961,"t":"code","b":[208,25],"m":"bne","oa":16988,"o":"b_425C"},{"a":16963,"t":"code","b":[189,237,64],"m":"lda","oa":16621,"o":"high_score_byte_2,x"},{"a":16966,"t":"code","b":[197,158],"m":"cmp","oa":158,"o":"zpa_9E"},{"a":16968,"t":"code","b":[144,37],"m":"bcc","oa":17007,"o":"r_426F"},{"a":16970,"t":"code","b":[208,16],"m":"bne","oa":16988,"o":"b_425C"},{"a":16972,"t":"code","b":[189,238,64],"m":"lda","oa":16622,"o":"high_score_byte_3,x"},{"a":16975,"t":"code","b":[197,159],"m":"cmp","oa":159,"o":"zpa_9F"},{"a":16977,"t":"code","b":[144,28],"m":"bcc","oa":17007,"o":"r_426F"},{"a":16979,"t":"code","b":[208,7],"m":"bne","oa":16988,"o":"b_425C"},{"a":16981,"t":"code","b":[189,239,64],"m":"lda","oa":16623,"o":"high_score_byte_4,x"},{"a":16984,"t":"code","b":[197,160],"m":"cmp","oa":160,"o":"zpa_A0"},{"a":16986,"t":"code","b":[144,19],"m":"bcc","oa":17007,"o":"r_426F"},{"a":16988,"l":"b_425C","t":"code","b":[230,143],"m":"inc","oa":143,"o":"zpa_8F","x":[16961,16970,16979]},{"a":16990,"t":"code","b":[166,143],"m":"ldx","oa":143,"o":"zpa_8F"},{"a":16992,"t":"code","b":[224,9],"m":"cpx","o":"#$09"},{"a":16994,"t":"code","b":[240,7],"m":"beq","oa":17003,"o":"b_426B"},{"a":16996,"t":"code","b":[189,68,136],"m":"lda","oa":34884,"o":"score_offsets,x"},{"a":16999,"t":"code","b":[170],"m":"tax"},{"a":17000,"t":"code","b":[76,58,66],"m":"jmp","oa":16954,"o":"j_423A"},{"a":17003,"l":"b_426B","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[16994]},{"a":17005,"t":"code","b":[133,143],"m":"sta","oa":143,"o":"zpa_8F"},{"a":17007,"l":"r_426F","t":"code","b":[96],"m":"rts","x":[16959,16968,16977,16986]},{"a":17008,"l":"print_bcd_pair","c":"Writes the BCD byte in A as two digit characters ($86FA) at ($14),Y, moving Y on.","t":"code","b":[134,22],"m":"stx","oa":22,"o":"zpa_16","x":[16733,16739,16745,16751,17629]},{"a":17010,"t":"code","b":[72],"m":"pha"},{"a":17011,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":17012,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":17013,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":17014,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":17015,"t":"code","b":[170],"m":"tax"},{"a":17016,"t":"code","b":[189,250,134],"m":"lda","oa":34554,"o":"$86FA,x"},{"a":17019,"t":"code","b":[145,20],"m":"sta","oa":20,"o":"(zpp_14),y"},{"a":17021,"t":"code","b":[104],"m":"pla"},{"a":17022,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":17024,"t":"code","b":[170],"m":"tax"},{"a":17025,"t":"code","b":[189,250,134],"m":"lda","oa":34554,"o":"$86FA,x"},{"a":17028,"t":"code","b":[200],"m":"iny"},{"a":17029,"t":"code","b":[145,20],"m":"sta","oa":20,"o":"(zpp_14),y"},{"a":17031,"t":"code","b":[166,22],"m":"ldx","oa":22,"o":"zpa_16"},{"a":17033,"t":"code","b":[232],"m":"inx"},{"a":17034,"t":"code","b":[200],"m":"iny"},{"a":17035,"t":"code","b":[96],"m":"rts"},{"a":17036,"l":"q_truck_shop","c":"The Q-truck shop, opened by $0BF6 when the car is inside the truck. Saves the play screen ($42CE), dissolves the screen, puts back the road charset, shows the interior and runs the shop ($4381) from item $0E. On leaving, waits, flips the double buffer and puts the play screen back ($42E4).","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17038,"t":"code","b":[141,23,208],"m":"sta","o":"vic_sprite_expand_y"},{"a":17041,"t":"code","b":[141,16,208],"m":"sta","o":"vic_sprite_x_msb"},{"a":17044,"t":"code","b":[32,135,240],"m":"jsr","oa":61575,"o":"play_tune"},{"a":17047,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":17049,"t":"code","b":[141,37,208],"m":"sta","o":"vic_sprite_mc0"},{"a":17052,"t":"code","b":[169,11],"m":"lda","o":"#$0B"},{"a":17054,"t":"code","b":[141,38,208],"m":"sta","o":"vic_sprite_mc1"},{"a":17057,"t":"code","b":[32,206,66],"m":"jsr","oa":17102,"o":"save_play_screen"},{"a":17060,"t":"code","b":[32,68,25],"m":"jsr","oa":6468,"o":"dissolve_screen"},{"a":17063,"t":"code","b":[32,11,41],"m":"jsr","oa":10507,"o":"restore_road_charset"},{"a":17066,"t":"code","b":[32,110,40],"m":"jsr","oa":10350,"o":"copy_76d8"},{"a":17069,"t":"code","b":[169,14],"m":"lda","o":"#$0E"},{"a":17071,"t":"code","b":[141,232,64],"m":"sta","oa":16616,"o":"shop_cursor"},{"a":17074,"t":"code","b":[32,129,67],"m":"jsr","oa":17281,"o":"shop_loop"},{"a":17077,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":17079,"t":"code","b":[32,41,17],"m":"jsr","oa":4393,"o":"delay_x"},{"a":17082,"t":"code","b":[165,155],"m":"lda","oa":155,"o":"zpa_9B"},{"a":17084,"t":"code","b":[73,255],"m":"eor","o":"#$FF"},{"a":17086,"t":"code","b":[133,155],"m":"sta","oa":155,"o":"zpa_9B"},{"a":17088,"t":"code","b":[32,228,66],"m":"jsr","oa":17124,"o":"restore_play_screen"},{"a":17091,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":17093,"t":"code","b":[141,37,208],"m":"sta","o":"vic_sprite_mc0"},{"a":17096,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17098,"t":"code","b":[141,38,208],"m":"sta","o":"vic_sprite_mc1"},{"a":17101,"t":"code","b":[96],"m":"rts"},{"a":17102,"l":"save_play_screen","c":"Copies three pages of the character buffer ($E242) to the hidden screen ($7800 or $7C00), which is used as a store while the shop is open.","t":"code","b":[32,48,67],"m":"jsr","oa":17200,"o":"screen_pointers","x":[17057]},{"a":17105,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":17107,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":17109,"l":"b_42D5","t":"code","b":[177,4],"m":"lda","oa":4,"o":"(zpa_04),y","x":[17114,17121]},{"a":17111,"t":"code","b":[145,6],"m":"sta","oa":6,"o":"(zpp_06),y"},{"a":17113,"t":"code","b":[200],"m":"iny"},{"a":17114,"t":"code","b":[208,249],"m":"bne","oa":17109,"o":"b_42D5"},{"a":17116,"t":"code","b":[230,5],"m":"inc","oa":5,"o":"zpa_05"},{"a":17118,"t":"code","b":[230,7],"m":"inc","oa":7,"o":"zpa_07"},{"a":17120,"t":"code","b":[202],"m":"dex"},{"a":17121,"t":"code","b":[208,242],"m":"bne","oa":17109,"o":"b_42D5"},{"a":17123,"t":"code","b":[96],"m":"rts"},{"a":17124,"l":"restore_play_screen","c":"Copies the stored screen back into the character buffer, rebuilding the colour buffer from table $E782, clears colour memory $D800-$DAFF and redraws ($0FC3).","t":"code","b":[32,48,67],"m":"jsr","oa":17200,"o":"screen_pointers","x":[17088]},{"a":17127,"t":"code","b":[169,226],"m":"lda","o":"#$E2"},{"a":17129,"t":"code","b":[133,18],"m":"sta","oa":18,"o":"zpa_12"},{"a":17131,"t":"code","b":[169,228],"m":"lda","o":"#$E4"},{"a":17133,"t":"code","b":[133,19],"m":"sta","oa":19,"o":"zpa_13"},{"a":17135,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":17137,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"zpa_1F"},{"a":17139,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":17141,"l":"b_42F5","t":"code","b":[177,6],"m":"lda","oa":6,"o":"(zpp_06),y","x":[17152,17162]},{"a":17143,"t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y"},{"a":17145,"t":"code","b":[170],"m":"tax"},{"a":17146,"t":"code","b":[189,130,231],"m":"lda","oa":59266,"o":"char_colours,x"},{"a":17149,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":17151,"t":"code","b":[200],"m":"iny"},{"a":17152,"t":"code","b":[208,243],"m":"bne","oa":17141,"o":"b_42F5"},{"a":17154,"t":"code","b":[230,5],"m":"inc","oa":5,"o":"zpa_05"},{"a":17156,"t":"code","b":[230,7],"m":"inc","oa":7,"o":"zpa_07"},{"a":17158,"t":"code","b":[230,19],"m":"inc","oa":19,"o":"zpa_13"},{"a":17160,"t":"code","b":[198,31],"m":"dec","oa":31,"o":"zpa_1F"},{"a":17162,"t":"code","b":[208,233],"m":"bne","oa":17141,"o":"b_42F5"},{"a":17164,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":17166,"l":"b_430E","t":"code","b":[177,6],"m":"lda","oa":6,"o":"(zpp_06),y","x":[17179]},{"a":17168,"t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y"},{"a":17170,"t":"code","b":[170],"m":"tax"},{"a":17171,"t":"code","b":[189,130,231],"m":"lda","oa":59266,"o":"char_colours,x"},{"a":17174,"t":"code","b":[145,18],"m":"sta","oa":18,"o":"(zpa_12),y"},{"a":17176,"t":"code","b":[200],"m":"iny"},{"a":17177,"t":"code","b":[192,160],"m":"cpy","o":"#$A0"},{"a":17179,"t":"code","b":[208,241],"m":"bne","oa":17166,"o":"b_430E"},{"a":17181,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17183,"t":"code","b":[170],"m":"tax"},{"a":17184,"l":"b_4320","t":"code","b":[157,0,216],"m":"sta","o":"colour_ram,x","x":[17194]},{"a":17187,"t":"code","b":[157,0,217],"m":"sta","o":"$D900,x"},{"a":17190,"t":"code","b":[157,0,218],"m":"sta","o":"$DA00,x"},{"a":17193,"t":"code","b":[202],"m":"dex"},{"a":17194,"t":"code","b":[208,244],"m":"bne","oa":17184,"o":"b_4320"},{"a":17196,"t":"code","b":[32,195,15],"m":"jsr","oa":4035,"o":"draw_play_area"},{"a":17199,"t":"code","b":[96],"m":"rts"},{"a":17200,"l":"screen_pointers","c":"Points ($04) at the character buffer and ($06) at the hidden screen.","t":"code","b":[169,66],"m":"lda","o":"#$42","x":[17102,17124,17532]},{"a":17202,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":17204,"t":"code","b":[169,226],"m":"lda","o":"#$E2"},{"a":17206,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"zpa_05"},{"a":17208,"t":"code","b":[165,155],"m":"lda","oa":155,"o":"zpa_9B"},{"a":17210,"t":"code","b":[208,9],"m":"bne","oa":17221,"o":"b_4345"},{"a":17212,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17214,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpp_06"},{"a":17216,"t":"code","b":[169,120],"m":"lda","o":"#$78"},{"a":17218,"t":"code","b":[133,7],"m":"sta","oa":7,"o":"zpa_07"},{"a":17220,"t":"code","b":[96],"m":"rts"},{"a":17221,"l":"b_4345","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[17210]},{"a":17223,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpp_06"},{"a":17225,"t":"code","b":[169,124],"m":"lda","o":"#$7C"},{"a":17227,"t":"code","b":[133,7],"m":"sta","oa":7,"o":"zpa_07"},{"a":17229,"t":"code","b":[96],"m":"rts"},{"a":17230,"l":"sprite_pointers","c":"Points ($06) at the sprite pointers of the screen not being shown ($7BF8 or $7FF8).","t":"code","b":[165,155],"m":"lda","oa":155,"o":"zpa_9B","x":[17281,17462]},{"a":17232,"t":"code","b":[208,9],"m":"bne","oa":17243,"o":"b_435B"},{"a":17234,"t":"code","b":[169,248],"m":"lda","o":"#$F8"},{"a":17236,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpp_06"},{"a":17238,"t":"code","b":[169,123],"m":"lda","o":"#$7B"},{"a":17240,"t":"code","b":[133,7],"m":"sta","oa":7,"o":"zpa_07"},{"a":17242,"t":"code","b":[96],"m":"rts"},{"a":17243,"l":"b_435B","t":"code","b":[169,248],"m":"lda","o":"#$F8","x":[17232]},{"a":17245,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpp_06"},{"a":17247,"t":"code","b":[169,127],"m":"lda","o":"#$7F"},{"a":17249,"t":"code","b":[133,7],"m":"sta","oa":7,"o":"zpa_07"},{"a":17251,"t":"code","b":[96],"m":"rts"},{"a":17252,"l":"show_message","c":"Writes the zero-ended message at ($04) into the character buffer at $E38A, and shows it for a few seconds ($1129). Used for \"get ready\", \"bad show james\", \"well done\", \"game over\" and \"congratulations\".","t":"code","b":[32,110,40],"m":"jsr","oa":10350,"o":"copy_76d8"},{"a":17255,"t":"code","b":[169,66],"m":"lda","o":"#$42"},{"a":17257,"t":"code","b":[24],"m":"clc"},{"a":17258,"t":"code","b":[105,72],"m":"adc","o":"#$48"},{"a":17260,"t":"code","b":[133,20],"m":"sta","oa":20,"o":"zpp_14"},{"a":17262,"t":"code","b":[169,226],"m":"lda","o":"#$E2"},{"a":17264,"t":"code","b":[24],"m":"clc"},{"a":17265,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":17267,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":17269,"t":"code","b":[32,225,68],"m":"jsr","oa":17633,"o":"print_text"},{"a":17272,"t":"code","b":[32,195,15],"m":"jsr","oa":4035,"o":"draw_play_area"},{"a":17275,"t":"code","b":[162,255],"m":"ldx","o":"#$FF"},{"a":17277,"t":"code","b":[32,41,17],"m":"jsr","oa":4393,"o":"delay_x"},{"a":17280,"t":"code","b":[96],"m":"rts"},{"a":17281,"l":"shop_loop","c":"Draws the panel, the icons ($4436) and the item name and price ($447C), then reads the joystick: up and down slide the column of icons to the next item ($43BD, $43E1), fire buys it ($4406). Leaves when fire is pressed on the exit.","t":"code","b":[32,78,67],"m":"jsr","oa":17230,"o":"sprite_pointers","x":[17074,17338,17374,17411,17458]},{"a":17284,"t":"code","b":[169,25],"m":"lda","o":"#$19"},{"a":17286,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"$20"},{"a":17288,"t":"code","b":[32,129,41],"m":"jsr","oa":10625,"o":"draw_hud"},{"a":17291,"t":"code","b":[32,54,68],"m":"jsr","oa":17462,"o":"draw_shop_icons"},{"a":17294,"t":"code","b":[32,124,68],"m":"jsr","oa":17532,"o":"show_item"},{"a":17297,"l":"j_4391","t":"code","b":[173,0,220],"m":"lda","o":"cia1_port_a","x":[17310,17323]},{"a":17300,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":17301,"t":"code","b":[176,10],"m":"bcs","oa":17313,"o":"b_43A1"},{"a":17303,"t":"code","b":[32,189,67],"m":"jsr","oa":17341,"o":"shop_up"},{"a":17306,"t":"code","b":[169,26],"m":"lda","o":"#$1A"},{"a":17308,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"$20"},{"a":17310,"t":"code","b":[76,145,67],"m":"jmp","oa":17297,"o":"j_4391"},{"a":17313,"l":"b_43A1","t":"code","b":[74],"m":"lsr","o":"a","x":[17301]},{"a":17314,"t":"code","b":[176,10],"m":"bcs","oa":17326,"o":"b_43AE"},{"a":17316,"t":"code","b":[32,225,67],"m":"jsr","oa":17377,"o":"shop_down"},{"a":17319,"t":"code","b":[169,24],"m":"lda","o":"#$18"},{"a":17321,"t":"code","b":[133,32],"m":"sta","oa":32,"o":"$20"},{"a":17323,"t":"code","b":[76,145,67],"m":"jmp","oa":17297,"o":"j_4391"},{"a":17326,"l":"b_43AE","t":"code","b":[74],"m":"lsr","o":"a","x":[17314]},{"a":17327,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":17328,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":17329,"t":"code","b":[176,3],"m":"bcs","oa":17334,"o":"b_43B6"},{"a":17331,"t":"code","b":[76,6,68],"m":"jmp","oa":17414,"o":"shop_buy"},{"a":17334,"l":"b_43B6","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[17329]},{"a":17336,"t":"code","b":[133,61],"m":"sta","oa":61,"o":"zpa_3D"},{"a":17338,"t":"code","b":[76,129,67],"m":"jmp","oa":17281,"o":"shop_loop"},{"a":17341,"l":"shop_up","c":"Scrolls the icons down one place, a pixel a frame, and moves the cursor to the previous item; nothing at the first.","t":"code","b":[173,232,64],"m":"lda","oa":16616,"o":"shop_cursor","x":[17303]},{"a":17344,"t":"code","b":[201,6],"m":"cmp","o":"#$06"},{"a":17346,"t":"code","b":[240,25],"m":"beq","oa":17373,"o":"r_43DD"},{"a":17348,"t":"code","b":[32,240,68],"m":"jsr","oa":17648,"o":"clear_line"},{"a":17351,"l":"b_43C7","t":"code","b":[32,60,17],"m":"jsr","oa":4412,"o":"wait_bottom","x":[17365]},{"a":17354,"t":"code","b":[32,54,68],"m":"jsr","oa":17462,"o":"draw_shop_icons"},{"a":17357,"t":"code","b":[165,32],"m":"lda","oa":32,"o":"$20"},{"a":17359,"t":"code","b":[201,57],"m":"cmp","o":"#$39"},{"a":17361,"t":"code","b":[240,4],"m":"beq","oa":17367,"o":"b_43D7"},{"a":17363,"t":"code","b":[230,32],"m":"inc","oa":32,"o":"$20"},{"a":17365,"t":"code","b":[208,240],"m":"bne","oa":17351,"o":"b_43C7"},{"a":17367,"l":"b_43D7","t":"code","b":[206,232,64],"m":"dec","oa":16616,"o":"shop_cursor","x":[17361]},{"a":17370,"t":"code","b":[206,232,64],"m":"dec","oa":16616,"o":"shop_cursor"},{"a":17373,"l":"r_43DD","t":"code","b":[96],"m":"rts","x":[17346]},{"a":17374,"t":"code","b":[76,129,67],"m":"jmp","oa":17281,"o":"shop_loop"},{"a":17377,"l":"shop_down","c":"Scrolls the icons up one place and moves the cursor to the next item; nothing at the last.","t":"code","b":[173,232,64],"m":"lda","oa":16616,"o":"shop_cursor","x":[17316]},{"a":17380,"t":"code","b":[201,22],"m":"cmp","o":"#$16"},{"a":17382,"t":"code","b":[240,26],"m":"beq","oa":17410,"o":"r_4402"},{"a":17384,"t":"code","b":[32,240,68],"m":"jsr","oa":17648,"o":"clear_line"},{"a":17387,"l":"j_43EB","t":"code","b":[32,60,17],"m":"jsr","oa":4412,"o":"wait_bottom","x":[17401]},{"a":17390,"t":"code","b":[32,54,68],"m":"jsr","oa":17462,"o":"draw_shop_icons"},{"a":17393,"t":"code","b":[165,32],"m":"lda","oa":32,"o":"$20"},{"a":17395,"t":"code","b":[201,249],"m":"cmp","o":"#$F9"},{"a":17397,"t":"code","b":[240,5],"m":"beq","oa":17404,"o":"b_43FC"},{"a":17399,"t":"code","b":[198,32],"m":"dec","oa":32,"o":"$20"},{"a":17401,"t":"code","b":[76,235,67],"m":"jmp","oa":17387,"o":"j_43EB"},{"a":17404,"l":"b_43FC","t":"code","b":[238,232,64],"m":"inc","oa":16616,"o":"shop_cursor","x":[17397]},{"a":17407,"t":"code","b":[238,232,64],"m":"inc","oa":16616,"o":"shop_cursor"},{"a":17410,"l":"r_4402","t":"code","b":[96],"m":"rts","x":[17382]},{"a":17411,"t":"code","b":[76,129,67],"m":"jmp","oa":17281,"o":"shop_loop"},{"a":17414,"l":"shop_buy","c":"Fire on an item (once per press, $3D). With a price of 0 it is the exit. Otherwise, if the Q tokens ($6A/$6B) cover the price, takes it off and stores the item's value at its address.","t":"code","b":[165,61],"m":"lda","oa":61,"o":"zpa_3D","x":[17331]},{"a":17416,"t":"code","b":[208,40],"m":"bne","oa":17458,"o":"b_4432"},{"a":17418,"t":"code","b":[173,201,64],"m":"lda","oa":16585,"o":"item_price"},{"a":17421,"t":"code","b":[240,38],"m":"beq","oa":17461,"o":"r_4435"},{"a":17423,"t":"code","b":[133,61],"m":"sta","oa":61,"o":"zpa_3D"},{"a":17425,"t":"code","b":[165,106],"m":"lda","oa":106,"o":"zpa_6A"},{"a":17427,"t":"code","b":[166,107],"m":"ldx","oa":107,"o":"zpa_6B"},{"a":17429,"t":"code","b":[208,5],"m":"bne","oa":17436,"o":"b_441C"},{"a":17431,"t":"code","b":[205,201,64],"m":"cmp","oa":16585,"o":"item_price"},{"a":17434,"t":"code","b":[144,22],"m":"bcc","oa":17458,"o":"b_4432"},{"a":17436,"l":"b_441C","t":"code","b":[120],"m":"sei","x":[17429]},{"a":17437,"t":"code","b":[248],"m":"sed"},{"a":17438,"t":"code","b":[56],"m":"sec"},{"a":17439,"t":"code","b":[237,201,64],"m":"sbc","oa":16585,"o":"item_price"},{"a":17442,"t":"code","b":[133,106],"m":"sta","oa":106,"o":"zpa_6A"},{"a":17444,"t":"code","b":[165,107],"m":"lda","oa":107,"o":"zpa_6B"},{"a":17446,"t":"code","b":[233,0],"m":"sbc","o":"#$00"},{"a":17448,"t":"code","b":[133,107],"m":"sta","oa":107,"o":"zpa_6B"},{"a":17450,"t":"code","b":[216],"m":"cld"},{"a":17451,"t":"code","b":[88],"m":"cli"},{"a":17452,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":17454,"t":"code","b":[165,30],"m":"lda","oa":30,"o":"zpa_1E"},{"a":17456,"t":"code","b":[145,6],"m":"sta","oa":6,"o":"(zpp_06),y"},{"a":17458,"l":"b_4432","t":"code","b":[76,129,67],"m":"jmp","oa":17281,"o":"shop_loop","x":[17416,17434]},{"a":17461,"l":"r_4435","t":"code","b":[96],"m":"rts","x":[17421]},{"a":17462,"l":"draw_shop_icons","c":"Puts seven item icons on the seven hardware sprites in a column at x $3C, 32 lines apart from $20, with each entry's frame and colour.","t":"code","b":[32,78,67],"m":"jsr","oa":17230,"o":"sprite_pointers","x":[17291,17354,17390]},{"a":17465,"t":"code","b":[165,32],"m":"lda","oa":32,"o":"$20"},{"a":17467,"t":"code","b":[133,30],"m":"sta","oa":30,"o":"zpa_1E"},{"a":17469,"t":"code","b":[173,232,64],"m":"lda","oa":16616,"o":"shop_cursor"},{"a":17472,"t":"code","b":[56],"m":"sec"},{"a":17473,"t":"code","b":[233,6],"m":"sbc","o":"#$06"},{"a":17475,"t":"code","b":[170],"m":"tax"},{"a":17476,"t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":17478,"t":"code","b":[133,31],"m":"sta","oa":31,"o":"zpa_1F"},{"a":17480,"l":"b_4448","t":"code","b":[189,202,64],"m":"lda","oa":16586,"o":"item_pointers,x","x":[17529]},{"a":17483,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":17485,"t":"code","b":[232],"m":"inx"},{"a":17486,"t":"code","b":[189,202,64],"m":"lda","oa":16586,"o":"item_pointers,x"},{"a":17489,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"zpa_05"},{"a":17491,"t":"code","b":[232],"m":"inx"},{"a":17492,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":17494,"t":"code","b":[177,4],"m":"lda","oa":4,"o":"(zpa_04),y"},{"a":17496,"t":"code","b":[164,31],"m":"ldy","oa":31,"o":"zpa_1F"},{"a":17498,"t":"code","b":[145,6],"m":"sta","oa":6,"o":"(zpp_06),y"},{"a":17500,"t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":17502,"t":"code","b":[177,4],"m":"lda","oa":4,"o":"(zpa_04),y"},{"a":17504,"t":"code","b":[164,31],"m":"ldy","oa":31,"o":"zpa_1F"},{"a":17506,"t":"code","b":[153,39,208],"m":"sta","o":"vic_sprite0_colour,y"},{"a":17509,"t":"code","b":[152],"m":"tya"},{"a":17510,"t":"code","b":[10],"m":"asl","o":"a"},{"a":17511,"t":"code","b":[168],"m":"tay"},{"a":17512,"t":"code","b":[165,30],"m":"lda","oa":30,"o":"zpa_1E"},{"a":17514,"t":"code","b":[153,1,208],"m":"sta","o":"vic_sprite0_y,y"},{"a":17517,"t":"code","b":[24],"m":"clc"},{"a":17518,"t":"code","b":[105,32],"m":"adc","o":"#$20"},{"a":17520,"t":"code","b":[133,30],"m":"sta","oa":30,"o":"zpa_1E"},{"a":17522,"t":"code","b":[169,60],"m":"lda","o":"#$3C"},{"a":17524,"t":"code","b":[153,0,208],"m":"sta","o":"vic_sprite0_x,y"},{"a":17527,"t":"code","b":[198,31],"m":"dec","oa":31,"o":"zpa_1F"},{"a":17529,"t":"code","b":[208,205],"m":"bne","oa":17480,"o":"b_4448"},{"a":17531,"t":"code","b":[96],"m":"rts"},{"a":17532,"l":"show_item","c":"Prints the name of the item under the cursor and keeps its price in $40C9. For the armour the price comes from the damage: (255 - armour) / 8, ANDed with $17 and plus 1. The mask keeps the low digit at 7 or less, so the binary result is also a valid decimal (BCD) price: 1 to 8 tokens while the armour is above half, 11 to 18 below. Then prints \"cost\" and the price.","t":"code","b":[32,48,67],"m":"jsr","oa":17200,"o":"screen_pointers","x":[17294]},{"a":17535,"t":"code","b":[24],"m":"clc"},{"a":17536,"t":"code","b":[165,6],"m":"lda","oa":6,"o":"zpp_06"},{"a":17538,"t":"code","b":[105,109],"m":"adc","o":"#$6D"},{"a":17540,"t":"code","b":[133,20],"m":"sta","oa":20,"o":"zpp_14"},{"a":17542,"t":"code","b":[165,7],"m":"lda","oa":7,"o":"zpa_07"},{"a":17544,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":17546,"t":"code","b":[133,21],"m":"sta","oa":21,"o":"zpa_15"},{"a":17548,"t":"code","b":[172,232,64],"m":"ldy","oa":16616,"o":"shop_cursor"},{"a":17551,"t":"code","b":[185,202,64],"m":"lda","oa":16586,"o":"item_pointers,y"},{"a":17554,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":17556,"t":"code","b":[185,203,64],"m":"lda","oa":16587,"o":"item_pointers_hi,y"},{"a":17559,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"zpa_05"},{"a":17561,"t":"code","b":[160,2],"m":"ldy","o":"#$02"},{"a":17563,"t":"code","b":[177,4],"m":"lda","oa":4,"o":"(zpa_04),y"},{"a":17565,"t":"code","b":[141,201,64],"m":"sta","oa":16585,"o":"item_price"},{"a":17568,"t":"code","b":[200],"m":"iny"},{"a":17569,"t":"code","b":[32,227,68],"m":"jsr","oa":17635,"o":"print_text_y"},{"a":17572,"t":"code","b":[200],"m":"iny"},{"a":17573,"t":"code","b":[177,4],"m":"lda","oa":4,"o":"(zpa_04),y"},{"a":17575,"t":"code","b":[133,30],"m":"sta","oa":30,"o":"zpa_1E"},{"a":17577,"t":"code","b":[200],"m":"iny"},{"a":17578,"t":"code","b":[177,4],"m":"lda","oa":4,"o":"(zpa_04),y"},{"a":17580,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpp_06"},{"a":17582,"t":"code","b":[200],"m":"iny"},{"a":17583,"t":"code","b":[177,4],"m":"lda","oa":4,"o":"(zpa_04),y"},{"a":17585,"t":"code","b":[133,7],"m":"sta","oa":7,"o":"zpa_07"},{"a":17587,"t":"code","b":[173,201,64],"m":"lda","oa":16585,"o":"item_price"},{"a":17590,"t":"code","b":[240,40],"m":"beq","oa":17632,"o":"r_44E0"},{"a":17592,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":17594,"t":"code","b":[208,17],"m":"bne","oa":17613,"o":"b_44CD"},{"a":17596,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17598,"t":"code","b":[24],"m":"clc"},{"a":17599,"t":"code","b":[237,240,150],"m":"sbc","oa":38640,"o":"a_96F0"},{"a":17602,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":17603,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":17604,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":17605,"t":"code","b":[41,23],"m":"and","o":"#$17"},{"a":17607,"t":"code","b":[24],"m":"clc"},{"a":17608,"t":"code","b":[105,1],"m":"adc","o":"#$01"},{"a":17610,"t":"code","b":[141,201,64],"m":"sta","oa":16585,"o":"item_price"},{"a":17613,"l":"b_44CD","t":"code","b":[169,173],"m":"lda","o":"#$AD","x":[17594]},{"a":17615,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":17617,"t":"code","b":[169,64],"m":"lda","o":"#$40"},{"a":17619,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"zpa_05"},{"a":17621,"t":"code","b":[160,22],"m":"ldy","o":"#$16"},{"a":17623,"t":"code","b":[32,227,68],"m":"jsr","oa":17635,"o":"print_text_y"},{"a":17626,"t":"code","b":[173,201,64],"m":"lda","oa":16585,"o":"item_price"},{"a":17629,"t":"code","b":[32,112,66],"m":"jsr","oa":17008,"o":"print_bcd_pair"},{"a":17632,"l":"r_44E0","t":"code","b":[96],"m":"rts","x":[17590]},{"a":17633,"l":"print_text","c":"Writes the zero-ended ASCII text at ($04) into ($14), adding $7A to each byte to make the character code (the character set holds its letters from $DB).","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[17269]},{"a":17635,"l":"print_text_y","c":"Entry into $44E1 that starts at the Y already set, so a caller can skip a header.","t":"code","b":[177,4],"m":"lda","oa":4,"o":"(zpa_04),y","x":[17569,17623,17645]},{"a":17637,"t":"code","b":[240,8],"m":"beq","oa":17647,"o":"r_44EF"},{"a":17639,"t":"code","b":[24],"m":"clc"},{"a":17640,"t":"code","b":[105,122],"m":"adc","o":"#$7A"},{"a":17642,"t":"code","b":[145,20],"m":"sta","oa":20,"o":"(zpp_14),y"},{"a":17644,"t":"code","b":[200],"m":"iny"},{"a":17645,"t":"code","b":[208,244],"m":"bne","oa":17635,"o":"print_text_y"},{"a":17647,"l":"r_44EF","t":"code","b":[96],"m":"rts","x":[17637]},{"a":17648,"l":"clear_line","c":"Fills 31 characters at ($14) with spaces.","t":"code","b":[169,32],"m":"lda","o":"#$20","x":[17348,17384]},{"a":17650,"t":"code","b":[160,31],"m":"ldy","o":"#$1F"},{"a":17652,"l":"b_44F4","t":"code","b":[145,20],"m":"sta","oa":20,"o":"(zpp_14),y","x":[17655]},{"a":17654,"t":"code","b":[136],"m":"dey"},{"a":17655,"t":"code","b":[208,251],"m":"bne","oa":17652,"o":"b_44F4"},{"a":17657,"t":"code","b":[96],"m":"rts"},{"a":17658,"l":"setup_panel","c":"Run once at start-up. Fills colour memory with 3 (cyan, multicolour off), $DB20-$DBE7 (the panel) with 1, and the four border columns of the play area with 0; clears the panel screen rows ($8300 page) and copies the panel's three rows of characters (31 each) ($8704, $8724, $8744) to $834B, $8373, $839B and their colours ($8764, $8784, $87A4) to colour memory; sets the panel's sprite pointers ($83F8-$83FF) to 12.","t":"code","b":[169,35],"m":"lda","o":"#$23"},{"a":17660,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":17662,"l":"b_44FE","t":"code","b":[157,0,216],"m":"sta","o":"colour_ram,x","x":[17675]},{"a":17665,"t":"code","b":[157,0,217],"m":"sta","o":"$D900,x"},{"a":17668,"t":"code","b":[157,0,218],"m":"sta","o":"$DA00,x"},{"a":17671,"t":"code","b":[157,0,219],"m":"sta","o":"$DB00,x"},{"a":17674,"t":"code","b":[202],"m":"dex"},{"a":17675,"t":"code","b":[208,241],"m":"bne","oa":17662,"o":"b_44FE"},{"a":17677,"t":"code","b":[169,17],"m":"lda","o":"#$11"},{"a":17679,"t":"code","b":[162,200],"m":"ldx","o":"#$C8"},{"a":17681,"l":"b_4511","t":"code","b":[157,31,219],"m":"sta","o":"$DB1F,x","x":[17685]},{"a":17684,"t":"code","b":[202],"m":"dex"},{"a":17685,"t":"code","b":[208,250],"m":"bne","oa":17681,"o":"b_4511"},{"a":17687,"t":"code","b":[162,20],"m":"ldx","o":"#$14"},{"a":17689,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17691,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":17693,"t":"code","b":[169,216],"m":"lda","o":"#$D8"},{"a":17695,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"zpa_05"},{"a":17697,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17699,"l":"b_4523","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[17739]},{"a":17701,"t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y"},{"a":17703,"t":"code","b":[200],"m":"iny"},{"a":17704,"t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y"},{"a":17706,"t":"code","b":[200],"m":"iny"},{"a":17707,"t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y"},{"a":17709,"t":"code","b":[200],"m":"iny"},{"a":17710,"t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y"},{"a":17712,"t":"code","b":[160,39],"m":"ldy","o":"#$27"},{"a":17714,"t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y"},{"a":17716,"t":"code","b":[136],"m":"dey"},{"a":17717,"t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y"},{"a":17719,"t":"code","b":[136],"m":"dey"},{"a":17720,"t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y"},{"a":17722,"t":"code","b":[136],"m":"dey"},{"a":17723,"t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y"},{"a":17725,"t":"code","b":[24],"m":"clc"},{"a":17726,"t":"code","b":[165,4],"m":"lda","oa":4,"o":"zpa_04"},{"a":17728,"t":"code","b":[105,40],"m":"adc","o":"#$28"},{"a":17730,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":17732,"t":"code","b":[144,2],"m":"bcc","oa":17736,"o":"b_4548"},{"a":17734,"t":"code","b":[230,5],"m":"inc","oa":5,"o":"zpa_05"},{"a":17736,"l":"b_4548","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[17732]},{"a":17738,"t":"code","b":[202],"m":"dex"},{"a":17739,"t":"code","b":[208,214],"m":"bne","oa":17699,"o":"b_4523"},{"a":17741,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17743,"l":"b_454F","t":"code","b":[157,0,131],"m":"sta","oa":33536,"o":"f_8300,x","x":[17747]},{"a":17746,"t":"code","b":[202],"m":"dex"},{"a":17747,"t":"code","b":[208,250],"m":"bne","oa":17743,"o":"b_454F"},{"a":17749,"t":"code","b":[162,31],"m":"ldx","o":"#$1F"},{"a":17751,"l":"b_4557","t":"code","b":[189,4,135],"m":"lda","oa":34564,"o":"panel_rows,x","x":[17788]},{"a":17754,"t":"code","b":[157,75,131],"m":"sta","oa":33611,"o":"$834B,x"},{"a":17757,"t":"code","b":[189,36,135],"m":"lda","oa":34596,"o":"$8724,x"},{"a":17760,"t":"code","b":[157,115,131],"m":"sta","oa":33651,"o":"$8373,x"},{"a":17763,"t":"code","b":[189,68,135],"m":"lda","oa":34628,"o":"$8744,x"},{"a":17766,"t":"code","b":[157,155,131],"m":"sta","oa":33691,"o":"$839B,x"},{"a":17769,"t":"code","b":[189,100,135],"m":"lda","oa":34660,"o":"$8764,x"},{"a":17772,"t":"code","b":[157,75,219],"m":"sta","o":"$DB4B,x"},{"a":17775,"t":"code","b":[189,132,135],"m":"lda","oa":34692,"o":"$8784,x"},{"a":17778,"t":"code","b":[157,115,219],"m":"sta","o":"$DB73,x"},{"a":17781,"t":"code","b":[189,164,135],"m":"lda","oa":34724,"o":"$87A4,x"},{"a":17784,"t":"code","b":[157,155,219],"m":"sta","o":"$DB9B,x"},{"a":17787,"t":"code","b":[202],"m":"dex"},{"a":17788,"t":"code","b":[208,217],"m":"bne","oa":17751,"o":"b_4557"},{"a":17790,"t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":17792,"t":"code","b":[141,248,131],"m":"sta","oa":33784,"o":"$83F8"},{"a":17795,"t":"code","b":[141,249,131],"m":"sta","oa":33785,"o":"$83F9"},{"a":17798,"t":"code","b":[141,250,131],"m":"sta","oa":33786,"o":"$83FA"},{"a":17801,"t":"code","b":[141,251,131],"m":"sta","oa":33787,"o":"$83FB"},{"a":17804,"t":"code","b":[141,252,131],"m":"sta","oa":33788,"o":"$83FC"},{"a":17807,"t":"code","b":[141,253,131],"m":"sta","oa":33789,"o":"$83FD"},{"a":17810,"t":"code","b":[141,254,131],"m":"sta","oa":33790,"o":"$83FE"},{"a":17813,"t":"code","b":[141,255,131],"m":"sta","oa":33791,"o":"$83FF"},{"a":17816,"t":"code","b":[96],"m":"rts"},{"a":17817,"l":"reset_sprites","c":"Ends both sprite lists, points the multiplexer at the first ($08, $B1), moves every sprite to y 0, unexpanded and multicolour, sets sprite multicolour 1 to white and 2 to black, and clears all 32 object slots.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17819,"t":"code","b":[133,8],"m":"sta","oa":8,"o":"zpp_08"},{"a":17821,"t":"code","b":[169,224],"m":"lda","o":"#$E0"},{"a":17823,"t":"code","b":[133,9],"m":"sta","oa":9,"o":"zpa_09"},{"a":17825,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17827,"t":"code","b":[133,177],"m":"sta","oa":177,"o":"zpa_B1"},{"a":17829,"t":"code","b":[169,224],"m":"lda","o":"#$E0"},{"a":17831,"t":"code","b":[133,178],"m":"sta","oa":178,"o":"zpa_B2"},{"a":17833,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":17835,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":17837,"t":"code","b":[145,8],"m":"sta","oa":8,"o":"(zpp_08),y"},{"a":17839,"t":"code","b":[141,225,224],"m":"sta","oa":57569,"o":"a_E0E1"},{"a":17842,"t":"code","b":[140,16,208],"m":"sty","o":"vic_sprite_x_msb"},{"a":17845,"t":"code","b":[140,29,208],"m":"sty","o":"vic_sprite_expand_x"},{"a":17848,"t":"code","b":[140,23,208],"m":"sty","o":"vic_sprite_expand_y"},{"a":17851,"t":"code","b":[140,27,208],"m":"sty","o":"vic_sprite_priority"},{"a":17854,"t":"code","b":[140,1,208],"m":"sty","o":"vic_sprite0_y"},{"a":17857,"t":"code","b":[140,3,208],"m":"sty","o":"vic_sprite1_y"},{"a":17860,"t":"code","b":[140,5,208],"m":"sty","o":"vic_sprite2_y"},{"a":17863,"t":"code","b":[140,7,208],"m":"sty","o":"vic_sprite3_y"},{"a":17866,"t":"code","b":[140,9,208],"m":"sty","o":"vic_sprite4_y"},{"a":17869,"t":"code","b":[140,11,208],"m":"sty","o":"vic_sprite5_y"},{"a":17872,"t":"code","b":[140,13,208],"m":"sty","o":"vic_sprite6_y"},{"a":17875,"t":"code","b":[140,15,208],"m":"sty","o":"vic_sprite7_y"},{"a":17878,"t":"code","b":[141,28,208],"m":"sta","o":"vic_sprite_multicolour"},{"a":17881,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":17883,"t":"code","b":[141,37,208],"m":"sta","o":"vic_sprite_mc0"},{"a":17886,"t":"code","b":[140,38,208],"m":"sty","o":"vic_sprite_mc1"},{"a":17889,"t":"code","b":[162,32],"m":"ldx","o":"#$20"},{"a":17891,"t":"code","b":[240,0],"m":"beq","oa":17893,"o":"b_45E5"},{"a":17893,"l":"b_45E5","t":"code","b":[169,226],"m":"lda","o":"#$E2","x":[17891]},{"a":17895,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":17897,"t":"code","b":[169,150],"m":"lda","o":"#$96"},{"a":17899,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"zpa_05"},{"a":17901,"l":"b_45ED","t":"code","b":[160,25],"m":"ldy","o":"#$19","x":[17922]},{"a":17903,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17905,"l":"b_45F1","t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y","x":[17908]},{"a":17907,"t":"code","b":[136],"m":"dey"},{"a":17908,"t":"code","b":[16,251],"m":"bpl","oa":17905,"o":"b_45F1"},{"a":17910,"t":"code","b":[24],"m":"clc"},{"a":17911,"t":"code","b":[165,4],"m":"lda","oa":4,"o":"zpa_04"},{"a":17913,"t":"code","b":[105,26],"m":"adc","o":"#$1A"},{"a":17915,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":17917,"t":"code","b":[144,2],"m":"bcc","oa":17921,"o":"b_4601"},{"a":17919,"t":"code","b":[230,5],"m":"inc","oa":5,"o":"zpa_05"},{"a":17921,"l":"b_4601","t":"code","b":[202],"m":"dex","x":[17917]},{"a":17922,"t":"code","b":[208,233],"m":"bne","oa":17901,"o":"b_45ED"},{"a":17924,"t":"code","b":[96],"m":"rts"},{"a":17925,"l":"reset_shots","c":"Clears the 16 shots at $9A22 and gives each its own character definition, 8 bytes apart from $E1C2.","t":"code","b":[169,34],"m":"lda","o":"#$22"},{"a":17927,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":17929,"t":"code","b":[169,154],"m":"lda","o":"#$9A"},{"a":17931,"t":"code","b":[133,5],"m":"sta","oa":5,"o":"zpa_05"},{"a":17933,"t":"code","b":[169,194],"m":"lda","o":"#$C2"},{"a":17935,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpp_06"},{"a":17937,"t":"code","b":[169,225],"m":"lda","o":"#$E1"},{"a":17939,"t":"code","b":[133,7],"m":"sta","oa":7,"o":"zpa_07"},{"a":17941,"t":"code","b":[162,16],"m":"ldx","o":"#$10"},{"a":17943,"l":"b_4617","t":"code","b":[160,14],"m":"ldy","o":"#$0E","x":[17986]},{"a":17945,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":17947,"l":"b_461B","t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y","x":[17950]},{"a":17949,"t":"code","b":[136],"m":"dey"},{"a":17950,"t":"code","b":[16,251],"m":"bpl","oa":17947,"o":"b_461B"},{"a":17952,"t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":17954,"t":"code","b":[165,6],"m":"lda","oa":6,"o":"zpp_06"},{"a":17956,"t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y"},{"a":17958,"t":"code","b":[200],"m":"iny"},{"a":17959,"t":"code","b":[165,7],"m":"lda","oa":7,"o":"zpa_07"},{"a":17961,"t":"code","b":[145,4],"m":"sta","oa":4,"o":"(zpa_04),y"},{"a":17963,"t":"code","b":[24],"m":"clc"},{"a":17964,"t":"code","b":[165,4],"m":"lda","oa":4,"o":"zpa_04"},{"a":17966,"t":"code","b":[105,15],"m":"adc","o":"#$0F"},{"a":17968,"t":"code","b":[133,4],"m":"sta","oa":4,"o":"zpa_04"},{"a":17970,"t":"code","b":[144,2],"m":"bcc","oa":17974,"o":"b_4636"},{"a":17972,"t":"code","b":[230,5],"m":"inc","oa":5,"o":"zpa_05"},{"a":17974,"l":"b_4636","t":"code","b":[24],"m":"clc","x":[17970]},{"a":17975,"t":"code","b":[165,6],"m":"lda","oa":6,"o":"zpp_06"},{"a":17977,"t":"code","b":[105,8],"m":"adc","o":"#$08"},{"a":17979,"t":"code","b":[133,6],"m":"sta","oa":6,"o":"zpp_06"},{"a":17981,"t":"code","b":[144,2],"m":"bcc","oa":17985,"o":"b_4641"},{"a":17983,"t":"code","b":[230,7],"m":"inc","oa":7,"o":"zpa_07"},{"a":17985,"l":"b_4641","t":"code","b":[202],"m":"dex","x":[17981]},{"a":17986,"t":"code","b":[208,211],"m":"bne","oa":17943,"o":"b_4617"},{"a":17988,"t":"code","b":[96],"m":"rts"},{"a":17989,"l":"overlay_spare","c":"Zeros to the end of the overlay ($47FF).","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":17997,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18005,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18013,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18021,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18029,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18037,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18045,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18053,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18061,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18069,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18077,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18085,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18093,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18101,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18109,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18117,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18125,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18133,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18141,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18149,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18157,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18165,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18173,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18181,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18189,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18197,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18205,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18213,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18221,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18229,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18237,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18245,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18253,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18261,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18269,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18277,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18285,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18293,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18301,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18309,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18317,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18325,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18333,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18341,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18349,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18357,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18365,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18373,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18381,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18389,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18397,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18405,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18413,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18421,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":18429,"t":"byte","b":[0,0,0]},{"a":18432,"t":"gap","n":47104}]}