{"schema":1,"platform":"gnw","game":"popeye","title":"Popeye","build":"MAME's ROM set gnw_popeye: pp-23, the Sharp SM5A's mask ROM of the Wide Screen Popeye (PP-23), 1,856 bytes, CRC32 49987769, SHA-1 ad90659a3ce7169a4df16367c5307435d9f9d956, as MAME 0.289 lists it","symbols_sha256":"06d252308af73b68a890ad39e6a44a4b8166e3870e2b71df0da626732525b512","snapshot":{"file":"work/play-gamea.gnw.json.gz","sha256":"881a6807cd9a33a8b0a36190303f5929311d7e7af3b9abc0643b38da4c771e1b"},"index":[{"a":0,"n":"wake","k":"routine","len":4,"c":true},{"a":4,"n":"pass","k":"routine","len":3,"c":true},{"a":7,"n":"pass_pad","k":"routine","len":8,"c":true},{"a":15,"n":"no_redraw","k":"routine","len":7,"c":true},{"a":22,"n":"clock_second","k":"routine","len":9,"c":true},{"a":31,"n":"game_wait","k":"routine","len":11,"c":true},{"a":42,"n":"start_delay","k":"routine","len":6,"c":true},{"a":48,"n":"sleep","k":"routine","len":6,"c":true},{"a":54,"n":"main_loop","k":"routine","len":10,"c":true},{"a":64,"n":"add_point","k":"routine","len":35,"c":true},{"a":99,"n":"best_score","k":"routine","len":29,"c":true},{"a":128,"n":"set_difficulty","k":"routine","len":52,"c":true},{"a":180,"n":"keep_time_pass","k":"routine","len":4,"c":true},{"a":184,"n":"bottles_fall","k":"routine","len":8,"c":true},{"a":192,"n":"game_step","k":"routine","len":5,"c":true},{"a":197,"n":"clock_step","k":"routine","len":5,"c":true},{"a":202,"n":"throw_or_not","k":"routine","len":30,"c":true},{"a":232,"n":"clear_caught","k":"routine","len":10,"c":true},{"a":242,"n":"knock_check","k":"routine","len":9,"c":true},{"a":251,"n":"clock_step_done","k":"routine","len":5,"c":true},{"a":256,"n":"knocked_in","k":"routine","len":43,"c":true},{"a":299,"n":"lanes","k":"routine","len":3,"c":true},{"a":302,"n":"cans_step","k":"routine","len":18,"c":true},{"a":320,"n":"after_cans","k":"routine","len":11,"c":true},{"a":331,"n":"mallet_swing","k":"routine","len":22,"c":true},{"a":353,"n":"pineapple_or_bottle","k":"routine","len":14,"c":true},{"a":367,"n":"bottles_step","k":"routine","len":17,"c":true},{"a":395,"n":"pine_missed","k":"routine","len":7,"c":true},{"a":402,"n":"lost_item","k":"routine","len":8,"c":true},{"a":410,"n":"miss_sequence","k":"routine","len":27,"c":true},{"a":437,"n":"lost_first","k":"routine","len":3,"c":true},{"a":440,"n":"mallet_back","k":"routine","len":8,"c":true},{"a":448,"n":"pineapples_step","k":"routine","len":33,"c":true},{"a":481,"n":"can_missed","k":"routine","len":11,"c":true},{"a":492,"n":"fist_back","k":"routine","len":20,"c":true},{"a":512,"n":"timekeep","k":"routine","len":42,"c":true},{"a":554,"n":"count_seconds","k":"routine","len":2,"c":true},{"a":556,"n":"add_minute","k":"routine","len":20,"c":true},{"a":576,"n":"add_hour","k":"routine","len":37,"c":true},{"a":613,"n":"request_click","k":"routine","len":4,"c":true},{"a":617,"n":"alarm_add_hour","k":"routine","len":3,"c":true},{"a":620,"n":"minute_rolled","k":"routine","len":5,"c":true},{"a":625,"n":"add_minute_39","k":"routine","len":3,"c":true},{"a":628,"n":"sound_done","k":"routine","len":7,"c":true},{"a":635,"n":"alarm_add_minute","k":"routine","len":5,"c":true},{"a":640,"n":"play_sounds","k":"routine","len":19,"c":true},{"a":659,"n":"alarm_buzz","k":"routine","len":10,"c":true},{"a":669,"n":"game_sounds","k":"routine","len":10,"c":true},{"a":679,"n":"click","k":"routine","len":7,"c":true},{"a":686,"n":"tone","k":"routine","len":18,"c":true},{"a":704,"n":"play_queued","k":"routine","len":6,"c":true},{"a":710,"n":"pad_moved","k":"routine","len":42,"c":true},{"a":752,"n":"skip_if_up","k":"routine","len":7,"c":true},{"a":759,"n":"mallet_reset","k":"routine","len":9,"c":true},{"a":768,"n":"move_popeye","k":"routine","len":12,"c":true},{"a":780,"n":"catch_check","k":"routine","len":27,"c":true},{"a":807,"n":"olive_arms_off","k":"routine","len":8,"c":true},{"a":815,"n":"cans_fall","k":"routine","len":17,"c":true},{"a":832,"n":"demo_watch","k":"routine","len":18,"c":true},{"a":850,"n":"move_left","k":"routine","len":21,"c":true},{"a":871,"n":"move_right","k":"routine","len":12,"c":true},{"a":883,"n":"popeye_hit","k":"routine","len":13,"c":true},{"a":896,"n":"fist_swing","k":"routine","len":21,"c":true},{"a":917,"n":"bluto_switch","k":"routine","len":21,"c":true},{"a":938,"n":"delay_loop","k":"routine","len":6,"c":true},{"a":944,"n":"delay_count","k":"routine","len":16,"c":true},{"a":960,"n":"reset","k":"routine","len":4,"c":true},{"a":964,"n":"bluto_ready","k":"routine","len":9,"c":true},{"a":973,"n":"fist_allowed","k":"routine","len":9,"c":true},{"a":982,"n":"read_pad","k":"routine","len":42,"c":true},{"a":1024,"n":"clear_cell","k":"routine","len":1,"c":true},{"a":1025,"n":"clear_idle","k":"routine","len":2,"c":true},{"a":1027,"n":"clear_down","k":"routine","len":1,"c":true},{"a":1028,"n":"set_redraw","k":"routine","len":3,"c":true},{"a":1031,"n":"shift_cell","k":"routine","len":1,"c":true},{"a":1032,"n":"shift_a","k":"routine","len":7,"c":true},{"a":1039,"n":"dec_in_flight","k":"routine","len":1,"c":true},{"a":1040,"n":"carry_count","k":"routine","len":1,"c":true},{"a":1041,"n":"test_game_b_c","k":"routine","len":1,"c":true},{"a":1042,"n":"skip_if_game","k":"routine","len":1,"c":true},{"a":1043,"n":"read_divider","k":"routine","len":1,"c":true},{"a":1044,"n":"skip_if_clear0","k":"routine","len":1,"c":true},{"a":1045,"n":"skip_if_clear1","k":"routine","len":1,"c":true},{"a":1046,"n":"skip_if_clear2","k":"routine","len":1,"c":true},{"a":1047,"n":"skip_if_clear3","k":"routine","len":1,"c":true},{"a":1048,"n":"skip_if_carry","k":"routine","len":1,"c":true},{"a":1049,"n":"point_01","k":"routine","len":1,"c":true},{"a":1050,"n":"point_02","k":"routine","len":1,"c":true},{"a":1051,"n":"point_03","k":"routine","len":1,"c":true},{"a":1052,"n":"point_04","k":"routine","len":1,"c":true},{"a":1053,"n":"point_05","k":"routine","len":1,"c":true},{"a":1054,"n":"point_06","k":"routine","len":1,"c":true},{"a":1055,"n":"point_07","k":"routine","len":1,"c":true},{"a":1056,"n":"point_08","k":"routine","len":1,"c":true},{"a":1057,"n":"point_11","k":"routine","len":3,"c":true},{"a":1060,"n":"point_14","k":"routine","len":3,"c":true},{"a":1063,"n":"point_18","k":"routine","len":1,"c":true},{"a":1064,"n":"select_buttons","k":"routine","len":2,"c":true},{"a":1066,"n":"point_31","k":"routine","len":1,"c":true},{"a":1067,"n":"point_15","k":"routine","len":1,"c":true},{"a":1068,"n":"skip_if_no_redraw","k":"routine","len":1,"c":true},{"a":1069,"n":"skip_if_over","k":"routine","len":1,"c":true},{"a":1070,"n":"take_bit0","k":"routine","len":1,"c":true},{"a":1071,"n":"take_bit1","k":"routine","len":1,"c":true},{"a":1072,"n":"take_bit2","k":"routine","len":1,"c":true},{"a":1073,"n":"take_bit3","k":"routine","len":1,"c":true},{"a":1074,"n":"skip_if_clock","k":"routine","len":1,"c":true},{"a":1075,"n":"caught_item","k":"routine","len":1,"c":true},{"a":1076,"n":"queue_sound_8","k":"routine","len":1,"c":true},{"a":1077,"n":"queue_sound_9","k":"routine","len":1,"c":true},{"a":1078,"n":"queue_sound_5","k":"routine","len":5,"c":true},{"a":1083,"n":"swap_c_bit0","k":"routine","len":1,"c":true},{"a":1084,"n":"swap_c_bit1","k":"routine","len":1,"c":true},{"a":1085,"n":"swap_c_bit2","k":"routine","len":1,"c":true},{"a":1086,"n":"swap_c_bit3","k":"routine","len":2,"c":true},{"a":1088,"n":"h_skip_clear1","k":"routine","len":3,"c":true},{"a":1091,"n":"h_point_18","k":"routine","len":3,"c":true},{"a":1094,"n":"h_point_01","k":"routine","len":3,"c":true},{"a":1097,"n":"h_point_31","k":"routine","len":3,"c":true},{"a":1100,"n":"h_take_bit3","k":"routine","len":4,"c":true},{"a":1104,"n":"h_point_02","k":"routine","len":3,"c":true},{"a":1107,"n":"h_point_08","k":"routine","len":5,"c":true},{"a":1112,"n":"h_take_bit0","k":"routine","len":4,"c":true},{"a":1116,"n":"h_skip_carry","k":"routine","len":3,"c":true},{"a":1119,"n":"h_skip_over","k":"routine","len":5,"c":true},{"a":1124,"n":"h_test_game_b","k":"routine","len":5,"c":true},{"a":1129,"n":"h_point_06","k":"routine","len":4,"c":true},{"a":1133,"n":"h_point_07","k":"routine","len":3,"c":true},{"a":1136,"n":"h_take_bit2","k":"routine","len":4,"c":true},{"a":1140,"n":"h_skip_game","k":"routine","len":12,"c":true},{"a":1152,"n":"dec_in_flight_body","k":"routine","len":6,"c":true},{"a":1158,"n":"h_point_03","k":"routine","len":3,"c":true},{"a":1161,"n":"h_read_divider","k":"routine","len":3,"c":true},{"a":1164,"n":"h_carry_count","k":"routine","len":12,"c":true},{"a":1176,"n":"h_clear_down","k":"routine","len":4,"c":true},{"a":1180,"n":"h_point_05","k":"routine","len":4,"c":true},{"a":1184,"n":"h_caught_item","k":"routine","len":5,"c":true},{"a":1189,"n":"h_take_bit1","k":"routine","len":4,"c":true},{"a":1193,"n":"h_skip_clear2","k":"routine","len":3,"c":true},{"a":1196,"n":"h_skip_no_redraw","k":"routine","len":4,"c":true},{"a":1200,"n":"h_point_15","k":"routine","len":4,"c":true},{"a":1204,"n":"h_skip_clock","k":"routine","len":5,"c":true},{"a":1209,"n":"h_skip_clear3","k":"routine","len":7,"c":true},{"a":1216,"n":"h_swap_bit3","k":"routine","len":17,"c":true},{"a":1233,"n":"h_swap_bit2","k":"routine","len":14,"c":true},{"a":1247,"n":"h_swap_bit1","k":"routine","len":14,"c":true},{"a":1261,"n":"h_swap_bit0","k":"routine","len":15,"c":true},{"a":1276,"n":"h_point_04","k":"routine","len":4,"c":true},{"a":1280,"n":"setup_end","k":"routine","len":5,"c":true},{"a":1285,"n":"read_keys","k":"routine","len":33,"c":true},{"a":1318,"n":"power_on","k":"routine","len":26,"c":true},{"a":1344,"n":"key_pressed","k":"routine","len":37,"c":true},{"a":1381,"n":"game_starts","k":"routine","len":27,"c":true},{"a":1408,"n":"minute_tick","k":"routine","len":35,"c":true},{"a":1443,"n":"test_row","k":"routine","len":6,"c":true},{"a":1449,"n":"ring","k":"routine","len":7,"c":true},{"a":1456,"n":"mode_changed","k":"routine","len":16,"c":true},{"a":1472,"n":"mode_setup","k":"routine","len":54,"c":true},{"a":1526,"n":"digit_blink","k":"routine","len":2,"c":true},{"a":1528,"n":"draw_digit","k":"routine","len":8,"c":true},{"a":1536,"n":"draw_prep","k":"routine","len":36,"c":true},{"a":1572,"n":"clock_prep","k":"routine","len":21,"c":true},{"a":1600,"n":"draw_screen","k":"routine","len":58,"c":true},{"a":1664,"n":"game_prep","k":"routine","len":22,"c":true},{"a":1686,"n":"count_check","k":"routine","len":40,"c":true},{"a":1728,"n":"time_digits","k":"routine","len":17,"c":true},{"a":1745,"n":"all_segments","k":"routine","len":11,"c":true},{"a":1756,"n":"display_test","k":"routine","len":7,"c":true},{"a":1763,"n":"alarm_digits","k":"routine","len":18,"c":true},{"a":1781,"n":"hour_flags","k":"routine","len":8,"c":true},{"a":1792,"n":"am_pm","k":"routine","len":14,"c":true},{"a":1806,"n":"unblank","k":"routine","len":11,"c":true},{"a":1817,"n":"bonus","k":"routine","len":30,"c":true},{"a":1847,"n":"held_loop","k":"routine","len":6,"c":true}],"records":[{"a":0,"l":"wake","c":"wake: where the chip starts again after CEND, woken by a button of the selected row or by the 1 Hz flag. When no button is down (it was the second), it asks for the screen to be drawn; then it runs the pass at $0004.","t":"code","b":[0],"m":"SKIP","x":[63]},{"a":1,"t":"code","b":[106],"m":"KTA"},{"a":2,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":3,"t":"code","b":[252],"m":"TRS","oa":1028,"o":"set_redraw","x":[436]},{"a":4,"l":"pass","c":"pass: one pass of the buttons and the screen. It goes to read_keys ($0505), which reads the R4 row, the test row and left and right, and comes back to $0007.","t":"code","b":[109],"m":"COMCB","x":[19,21,35,38,41,49,57,183]},{"a":5,"t":"code","b":[116],"m":"SSR","o":"4"},{"a":6,"t":"code","b":[190],"m":"TR","oa":261,"o":"$3E"},{"a":7,"l":"pass_pad","c":"pass_pad: reads left and right (read_pad, $03D6); a new press goes to pad_moved ($02C6). Then the screen: draw_prep ($0600). Its pass ends at the main loop, or in a game at keep_time_pass ($00B4) while a game key is held, or at the bonus ($0719) while it blinks (unblank, $070E).","t":"code","b":[127],"m":"SSR","o":"$F"},{"a":8,"t":"code","b":[205],"m":"TRS","oa":982,"o":"read_pad"},{"a":9,"t":"code","b":[143],"m":"TR","oa":12,"o":"$0F"},{"a":10,"t":"code","b":[123],"m":"SSR","o":"$B"},{"a":11,"t":"code","b":[159],"m":"TR","oa":710,"o":"pad_moved"},{"a":12,"t":"code","b":[109],"m":"COMCB","x":[9]},{"a":13,"t":"code","b":[120],"m":"SSR","o":"8"},{"a":14,"t":"code","b":[128],"m":"TR","oa":512,"o":"timekeep"},{"a":15,"l":"no_redraw","c":"no_redraw: the main loop's branch when the screen has nothing new to show. In a game it goes to game_wait ($001F). Out of one: in the clock, a new second steps the demo ($0016); with nothing to do the chip sleeps ($0030); after power on and in the alarm's setting it makes another pass.","t":"code","b":[215],"m":"TRS","oa":1042,"o":"skip_if_game","x":[60]},{"a":16,"t":"code","b":[151],"m":"TR","oa":18,"o":"$17"},{"a":17,"t":"code","b":[142],"m":"TR","oa":31,"o":"game_wait"},{"a":18,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear3","x":[16]},{"a":19,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":20,"t":"code","b":[84],"m":"TM","o":"0"},{"a":21,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":22,"l":"clock_second","c":"clock_second: a second has passed in the clock: lets the demo's Popeye move again, asks for the demo's next step, and goes to clock_step ($00C5).","t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags"},{"a":23,"t":"code","b":[200],"m":"TRS","oa":1072,"o":"take_bit2"},{"a":24,"t":"code","b":[136],"m":"TR","oa":48,"o":"sleep"},{"a":25,"t":"code","b":[250],"m":"TRS","oa":1053,"o":"point_05"},{"a":26,"t":"code","b":[6],"m":"RM","o":"2"},{"a":27,"t":"code","b":[250],"m":"TRS","oa":1053,"o":"point_05"},{"a":28,"t":"code","b":[15],"m":"SM","o":"3"},{"a":29,"t":"code","b":[115],"m":"SSR","o":"3"},{"a":30,"t":"code","b":[190],"m":"TR","oa":197,"o":"clock_step"},{"a":31,"l":"game_wait","c":"game_wait: in a game, keeps time again, then starts the delay to the next step ($002A), unless the game is not under way: a game key still held, the bonus blinking, or the game over. Then it makes a plain pass.","t":"code","b":[120],"m":"SSR","o":"8","x":[17]},{"a":32,"t":"code","b":[192],"m":"TRS","oa":512,"o":"timekeep"},{"a":33,"t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags"},{"a":34,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear2"},{"a":35,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":36,"t":"code","b":[74],"m":"LB","oa":4138,"o":"pad_flags"},{"a":37,"t":"code","b":[218],"m":"TRS","oa":1045,"o":"skip_if_clear1"},{"a":38,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":39,"t":"code","b":[196],"m":"TRS","oa":1069,"o":"skip_if_over"},{"a":40,"t":"code","b":[165],"m":"TR","oa":42,"o":"start_delay"},{"a":41,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":42,"l":"start_delay","c":"start_delay: copies delay ($49) into delay_left ($4A) and runs the delay loop at $03B0, which ends in the game's step.","t":"code","b":[95,73],"m":"LBL","oa":4169,"o":"delay","x":[40]},{"a":44,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":45,"t":"code","b":[100],"m":"INCB"},{"a":46,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":47,"t":"code","b":[130],"m":"TR","oa":61,"o":"$02"},{"a":48,"l":"sleep","c":"sleep: with nothing to draw, selects the R4 row (so its buttons can wake the chip) and stops the clock with CEND. The chip wakes at $0000 on a button or on the next second. Left and right cannot wake it.","t":"code","b":[201],"m":"TRS","oa":1068,"o":"skip_if_no_redraw","x":[24]},{"a":49,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":50,"t":"code","b":[214],"m":"TRS","oa":1064,"o":"select_buttons"},{"a":51,"t":"code","b":[94,0],"m":"CEND"},{"a":53,"t":"code","b":[0],"m":"SKIP"},{"a":54,"l":"main_loop","c":"main_loop: the top of the main loop. Keeps time (timekeep, $0200); if the screen must be drawn, makes a pass ($0004); else, if a step of the game was cut short by a press, finishes its delay ($03B0), and otherwise goes on at no_redraw ($000F).","t":"code","b":[120],"m":"SSR","o":"8","x":[252,298,742,799]},{"a":55,"t":"code","b":[192],"m":"TRS","oa":512,"o":"timekeep"},{"a":56,"t":"code","b":[201],"m":"TRS","oa":1068,"o":"skip_if_no_redraw"},{"a":57,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":58,"t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags"},{"a":59,"t":"code","b":[228],"m":"TRS","oa":1073,"o":"take_bit3"},{"a":60,"t":"code","b":[185],"m":"TR","oa":15,"o":"no_redraw"},{"a":61,"t":"code","b":[126],"m":"SSR","o":"$E","x":[47]},{"a":62,"t":"code","b":[136],"m":"TR","oa":944,"o":"delay_count"},{"a":63,"s":"Step $3F: the program counter never reaches it (gnw-reference, \"The program counter\"). Every page ends in such a byte, $80, and none is ever run.","t":"code","b":[128],"m":"TR","oa":0,"o":"wake"},{"a":64,"l":"add_point","c":"add_point: called after a catch. If the catch was owed a point (events bit 0) and a game is on, adds one to the score in $15-$17, a decimal digit at a time, and wraps from 999 to 000. When the hundreds change to 2 or to 5 and a miss mark is lit, it starts the bonus: bonus_blinks = 10 and pad_flags bit 1. Then the best score ($0063).","t":"code","b":[76],"m":"LB","oa":4107,"o":"events","x":[127,806]},{"a":65,"t":"code","b":[226],"m":"TRS","oa":1070,"o":"take_bit0"},{"a":66,"t":"code","b":[130],"m":"TR","oa":125,"o":"$02"},{"a":67,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"skip_if_game"},{"a":68,"t":"code","b":[130],"m":"TR","oa":125,"o":"$02"},{"a":69,"t":"code","b":[95,23],"m":"LBL","oa":4119,"o":"digit_3"},{"a":71,"t":"code","b":[24],"m":"LDA","o":"0","x":[79]},{"a":72,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":73,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":74,"t":"code","b":[55],"m":"ADX","o":"7"},{"a":75,"t":"code","b":[156],"m":"TR","oa":80,"o":"$1C"},{"a":76,"t":"code","b":[28],"m":"EXCD","o":"0"},{"a":77,"t":"code","b":[36],"m":"LAX","o":"4"},{"a":78,"t":"code","b":[91],"m":"TABL"},{"a":79,"t":"code","b":[175],"m":"TR","oa":71,"o":"$2F"},{"a":80,"t":"code","b":[37],"m":"LAX","o":"5","x":[75]},{"a":81,"t":"code","b":[91],"m":"TABL"},{"a":82,"t":"code","b":[152],"m":"TR","oa":99,"o":"best_score"},{"a":83,"t":"code","b":[34],"m":"LAX","o":"2"},{"a":84,"t":"code","b":[83],"m":"TAM"},{"a":85,"t":"code","b":[134],"m":"TR","oa":87,"o":"$06"},{"a":86,"t":"code","b":[144],"m":"TR","oa":90,"o":"$10"},{"a":87,"t":"code","b":[37],"m":"LAX","o":"5","x":[85]},{"a":88,"t":"code","b":[83],"m":"TAM"},{"a":89,"t":"code","b":[152],"m":"TR","oa":99,"o":"best_score"},{"a":90,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_06","x":[86]},{"a":91,"t":"code","b":[84],"m":"TM","o":"0"},{"a":92,"t":"code","b":[152],"m":"TR","oa":99,"o":"best_score"},{"a":93,"t":"code","b":[74],"m":"LB","oa":4138,"o":"pad_flags"},{"a":94,"t":"code","b":[13],"m":"SM","o":"1"},{"a":95,"t":"code","b":[95,66],"m":"LBL","oa":4162,"o":"bonus_blinks"},{"a":97,"t":"code","b":[42],"m":"LAX","o":"$A"},{"a":98,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":99,"l":"best_score","c":"best_score: compares the score with the best of the game being played, Game A's at $45-$47 or Game B's at $25-$27, from the hundreds down, and copies the score over it when it is higher. Then set_difficulty ($0080).","t":"code","b":[238],"m":"TRS","oa":1041,"o":"test_game_b_c","x":[82,89,92]},{"a":100,"t":"code","b":[210],"m":"TRS","oa":1067,"o":"point_15"},{"a":101,"s":"RBM, LDA 3 and SBM move B between the score's row 1 and row 2 (Game B) or row 6, the mirror of row 4 (Game A).","t":"code","b":[107],"m":"RBM","x":[108]},{"a":102,"t":"code","b":[27],"m":"LDA","o":"3"},{"a":103,"t":"code","b":[82],"m":"TC"},{"a":104,"t":"code","b":[2],"m":"SBM"},{"a":105,"t":"code","b":[83],"m":"TAM"},{"a":106,"t":"code","b":[162],"m":"TR","oa":110,"o":"$22"},{"a":107,"t":"code","b":[23],"m":"EXCI","o":"3"},{"a":108,"t":"code","b":[182],"m":"TR","oa":101,"o":"$36"},{"a":109,"t":"code","b":[138],"m":"TR","oa":123,"o":"$0A"},{"a":110,"t":"code","b":[10],"m":"COMA","x":[106]},{"a":111,"t":"code","b":[102],"m":"RC"},{"a":112,"t":"code","b":[9],"m":"ADDC"},{"a":113,"t":"code","b":[153],"m":"TR","oa":115,"o":"$19"},{"a":114,"t":"code","b":[138],"m":"TR","oa":123,"o":"$0A"},{"a":115,"t":"code","b":[238],"m":"TRS","oa":1041,"o":"test_game_b_c","x":[113]},{"a":116,"t":"code","b":[210],"m":"TRS","oa":1067,"o":"point_15"},{"a":117,"t":"code","b":[107],"m":"RBM","x":[122]},{"a":118,"t":"code","b":[27],"m":"LDA","o":"3"},{"a":119,"t":"code","b":[82],"m":"TC"},{"a":120,"t":"code","b":[2],"m":"SBM"},{"a":121,"t":"code","b":[23],"m":"EXCI","o":"3"},{"a":122,"t":"code","b":[166],"m":"TR","oa":117,"o":"$26"},{"a":123,"t":"code","b":[114],"m":"SSR","o":"2","x":[109,114]},{"a":124,"t":"code","b":[128],"m":"TR","oa":128,"o":"set_difficulty"},{"a":125,"t":"code","b":[114],"m":"SSR","o":"2","x":[66,68]},{"a":126,"t":"code","b":[140],"m":"TR","oa":180,"o":"keep_time_pass"},{"a":127,"t":"code","b":[128],"m":"TR","oa":64,"o":"add_point"},{"a":128,"l":"set_difficulty","c":"set_difficulty: works out the level from the score: the hundreds digit plus the tens digit, 1 for 0, 2 for 1, 3 for 2-5, 4 for 6-8, 5 for 9-10, 6 for 11-12, 7 for 13-14, 8 for 15-16 and 9 above, read from a run of LAX the code jumps into; one more when the units digit is 4 to 7. The level goes into max_in_flight ($19), and the delay ($49) from it: 10 up to level 4, then 9, 8, 7, 6 and 5 for levels 5 to 9, 3 for levels 10 and 11, 2 above. So the game is fastest at x90 to x99 points, and slows again at each new hundred. Measured on the kit's machine on 9 November 2026, a step with no sound takes about 3,090 cycles (0.19 s) at delay 11 and 1,190 (0.07 s) at delay 2: about 770 for the step and the drawing, and 210 for each pass of the delay.","t":"code","b":[103],"m":"SC","x":[124,191]},{"a":129,"t":"code","b":[210],"m":"TRS","oa":1067,"o":"point_15"},{"a":130,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":131,"t":"code","b":[100],"m":"INCB"},{"a":132,"t":"code","b":[9],"m":"ADDC"},{"a":133,"t":"code","b":[189],"m":"TR","oa":138,"o":"$3D"},{"a":134,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":135,"t":"code","b":[40],"m":"LAX","o":"8"},{"a":136,"t":"code","b":[41],"m":"LAX","o":"9"},{"a":137,"t":"code","b":[180],"m":"TR","oa":156,"o":"$34"},{"a":138,"t":"code","b":[62],"m":"ADX","o":"$E","x":[133]},{"a":139,"t":"code","b":[168],"m":"TR","oa":155,"o":"$28"},{"a":140,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":141,"t":"code","b":[144],"m":"TR","oa":154,"o":"$10"},{"a":142,"t":"code","b":[60],"m":"ADX","o":"$C"},{"a":143,"t":"code","b":[161],"m":"TR","oa":153,"o":"$21"},{"a":144,"t":"code","b":[61],"m":"ADX","o":"$D"},{"a":145,"t":"code","b":[131],"m":"TR","oa":152,"o":"$03"},{"a":146,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":147,"t":"code","b":[134],"m":"TR","oa":151,"o":"$06"},{"a":148,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":149,"t":"code","b":[38],"m":"LAX","o":"6"},{"a":150,"t":"code","b":[39],"m":"LAX","o":"7"},{"a":151,"t":"code","b":[37],"m":"LAX","o":"5","x":[147]},{"a":152,"t":"code","b":[36],"m":"LAX","o":"4","x":[145]},{"a":153,"t":"code","b":[35],"m":"LAX","o":"3","x":[143]},{"a":154,"t":"code","b":[34],"m":"LAX","o":"2","x":[141]},{"a":155,"t":"code","b":[33],"m":"LAX","o":"1","x":[139]},{"a":156,"t":"code","b":[95,23],"m":"LBL","oa":4119,"o":"digit_3","x":[137]},{"a":158,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear2"},{"a":159,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":160,"t":"code","b":[69],"m":"LB","oa":4121,"o":"max_in_flight"},{"a":161,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":162,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":163,"t":"code","b":[10],"m":"COMA"},{"a":164,"t":"code","b":[60],"m":"ADX","o":"$C"},{"a":165,"t":"code","b":[145],"m":"TR","oa":175,"o":"$11"},{"a":166,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":167,"t":"code","b":[162],"m":"TR","oa":174,"o":"$22"},{"a":168,"t":"code","b":[59],"m":"ADX","o":"$B"},{"a":169,"t":"code","b":[146],"m":"TR","oa":171,"o":"$12"},{"a":170,"t":"code","b":[132],"m":"TR","oa":173,"o":"$04"},{"a":171,"t":"code","b":[58],"m":"ADX","o":"$A","x":[169]},{"a":172,"t":"code","b":[136],"m":"TR","oa":176,"o":"$08"},{"a":173,"t":"code","b":[42],"m":"LAX","o":"$A","x":[170]},{"a":174,"t":"code","b":[35],"m":"LAX","o":"3","x":[167]},{"a":175,"t":"code","b":[34],"m":"LAX","o":"2","x":[165]},{"a":176,"t":"code","b":[0],"m":"SKIP","x":[172]},{"a":177,"t":"code","b":[95,73],"m":"LBL","oa":4169,"o":"delay"},{"a":179,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":180,"l":"keep_time_pass","c":"keep_time_pass: keeps time (timekeep, $0200), then makes a pass ($0004). Reached after a step that scored (set_difficulty falls into it), from game_step when the game is over, from power on, and from held_loop while a game key is held or the bonus blinks. Other steps end at the main loop.","t":"code","b":[120],"m":"SSR","o":"8","x":[126,196]},{"a":181,"t":"code","b":[192],"m":"TRS","oa":512,"o":"timekeep"},{"a":182,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":183,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":184,"l":"bottles_fall","c":"bottles_fall: the rest of the bottles' step. Moves each bottle down a place: 1st to 2nd ($11 bit 0), 2nd to 3rd ($11 bit 1), then to the 4th ($00 bit 0) and to the bottom, over Popeye's head on the left ($00 bit 2). A bottle that arrives there sets landed bit 2. The demo watch (demo_watch, $0340) is called twice on the way. Then the click when a bottle moved or was thrown, and the check for a pineapple left at the bottom ($018B).","t":"code","b":[125],"m":"SSR","o":"$D","x":[381]},{"a":185,"t":"code","b":[192],"m":"TRS","oa":832,"o":"demo_watch"},{"a":186,"t":"code","b":[227],"m":"TRS","oa":1057,"o":"point_11"},{"a":187,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":188,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":189,"t":"code","b":[118],"m":"SSR","o":"6"},{"a":190,"t":"code","b":[128],"m":"TR","oa":384,"o":"$00"},{"a":191,"t":"code","b":[128],"m":"TR","oa":128,"o":"set_difficulty"},{"a":192,"l":"game_step","c":"game_step: one step of the game, run after the delay. Asks for the screen to be drawn; when the game is over (the third miss mark lit) does nothing more. Then decides whether Olive throws ($00CA).","t":"code","b":[252],"m":"TRS","oa":1028,"o":"set_redraw","x":[255,958]},{"a":193,"t":"code","b":[196],"m":"TRS","oa":1069,"o":"skip_if_over"},{"a":194,"t":"code","b":[189],"m":"TR","oa":202,"o":"throw_or_not"},{"a":195,"t":"code","b":[114],"m":"SSR","o":"2"},{"a":196,"t":"code","b":[140],"m":"TR","oa":180,"o":"keep_time_pass"},{"a":197,"l":"clock_step","c":"clock_step: the clock's demo: keeps time, and when the demo's step is due (colon_flags bit 3) runs one step of the game ($00CA) as a game step does.","t":"code","b":[120],"m":"SSR","o":"8","x":[30,804]},{"a":198,"t":"code","b":[192],"m":"TRS","oa":512,"o":"timekeep"},{"a":199,"t":"code","b":[250],"m":"TRS","oa":1053,"o":"point_05"},{"a":200,"t":"code","b":[87],"m":"TM","o":"3"},{"a":201,"t":"code","b":[138],"m":"TR","oa":251,"o":"clock_step_done"},{"a":202,"l":"throw_or_not","c":"throw_or_not: decides whether Olive throws an item this step, into C. With nothing falling she always throws. With max_in_flight items or more falling she does not. Otherwise: in a game, not while the seconds' units digit is 8 or 9; in Game A she throws while fewer than 3 are falling and above that when the divider's 4 bits read below 5; in Game B only on that divider test. In the clock's demo she throws in a second whose units digit is 9 (the carry of the ADDC at $00D7; both of its jumps lead to $00F2).","t":"code","b":[102],"m":"RC","x":[194,751]},{"a":203,"t":"code","b":[68],"m":"LB","oa":4105,"o":"in_flight"},{"a":204,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":205,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":206,"t":"code","b":[182],"m":"TR","oa":229,"o":"$36"},{"a":207,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":208,"t":"code","b":[10],"m":"COMA"},{"a":209,"t":"code","b":[9],"m":"ADDC"},{"a":210,"t":"code","b":[155],"m":"TR","oa":230,"o":"$1B"},{"a":211,"t":"code","b":[242],"m":"TRS","oa":1074,"o":"skip_if_clock"},{"a":212,"t":"code","b":[144],"m":"TR","oa":218,"o":"$10"},{"a":213,"t":"code","b":[79],"m":"LB","oa":4155,"o":"time_s1"},{"a":214,"t":"code","b":[8],"m":"ADD"},{"a":215,"t":"code","b":[9],"m":"ADDC"},{"a":216,"t":"code","b":[178],"m":"TR","oa":242,"o":"knock_check"},{"a":217,"t":"code","b":[178],"m":"TR","oa":242,"o":"knock_check"},{"a":218,"t":"code","b":[102],"m":"RC","x":[212]},{"a":219,"t":"code","b":[79],"m":"LB","oa":4155,"o":"time_s1"},{"a":220,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear3"},{"a":221,"t":"code","b":[155],"m":"TR","oa":230,"o":"$1B"},{"a":222,"t":"code","b":[68],"m":"LB","oa":4105,"o":"in_flight"},{"a":223,"t":"code","b":[10],"m":"COMA"},{"a":224,"t":"code","b":[9],"m":"ADDC"},{"a":225,"t":"code","b":[182],"m":"TR","oa":229,"o":"$36"},{"a":226,"t":"code","b":[102],"m":"RC"},{"a":227,"t":"code","b":[235],"m":"TRS","oa":1043,"o":"read_divider"},{"a":228,"t":"code","b":[59],"m":"ADX","o":"$B"},{"a":229,"t":"code","b":[103],"m":"SC","x":[206,225]},{"a":230,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"skip_if_game","x":[210,221]},{"a":231,"t":"code","b":[178],"m":"TR","oa":242,"o":"knock_check"},{"a":232,"l":"clear_caught","c":"clear_caught: in a game, once no item is waiting at the bottom (landed = 0), takes the caught items off Popeye's head: the can ($08 bit 0), the pineapple ($10 bit 3) and the bottle ($00 bit 2).","t":"code","b":[70],"m":"LB","oa":4137,"o":"landed"},{"a":233,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":234,"t":"code","b":[90],"m":"TA0"},{"a":235,"t":"code","b":[178],"m":"TR","oa":242,"o":"knock_check"},{"a":236,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":237,"t":"code","b":[4],"m":"RM","o":"0"},{"a":238,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l"},{"a":239,"t":"code","b":[7],"m":"RM","o":"3"},{"a":240,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye"},{"a":241,"t":"code","b":[6],"m":"RM","o":"2"},{"a":242,"l":"knock_check","c":"knock_check: when Popeye is down (knocked is not 0), counts it down by one and runs knocked_in ($0100) instead of the lanes; else the lanes ($012B).","t":"code","b":[95,67],"m":"LBL","oa":4163,"o":"knocked","x":[216,217,231,235]},{"a":244,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":245,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":246,"t":"code","b":[130],"m":"TR","oa":253,"o":"$02"},{"a":247,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":248,"t":"code","b":[39],"m":"LAX","o":"7"},{"a":249,"t":"code","b":[116],"m":"SSR","o":"4"},{"a":250,"t":"code","b":[128],"m":"TR","oa":256,"o":"knocked_in"},{"a":251,"l":"clock_step_done","c":"clock_step_done: back to the main loop when the demo had no step due.","t":"code","b":[112],"m":"SSR","o":"0","x":[201]},{"a":252,"t":"code","b":[147],"m":"TR","oa":54,"o":"main_loop"},{"a":253,"t":"code","b":[116],"m":"SSR","o":"4","x":[246]},{"a":254,"t":"code","b":[146],"m":"TR","oa":299,"o":"lanes"},{"a":255,"t":"code","b":[128],"m":"TR","oa":192,"o":"game_step"},{"a":256,"l":"knocked_in","c":"knocked_in: the steps after Bluto hits Popeye, by the count left in knocked. At 7 Popeye on either side is swapped for his splash, and the sound 5 is queued. At 5 Bluto's mallet and fist go back up. At 3 the splashes go, the side he fell on is kept, and a miss is counted (miss_sequence, $019A). At 1 Popeye comes back on that side. Nothing falls meanwhile. When that miss is the third, the game is over and runs no more steps, so the count stops at 3: Popeye stays in the sea and left and right stay ignored (skip_if_up).","t":"code","b":[83],"m":"TAM","x":[250,319]},{"a":257,"t":"code","b":[143],"m":"TR","oa":268,"o":"$0F"},{"a":258,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":259,"t":"code","b":[102],"m":"RC"},{"a":260,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":261,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1","x":[6]},{"a":262,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye"},{"a":263,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":264,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l"},{"a":265,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":266,"t":"code","b":[211],"m":"TRS","oa":1078,"o":"queue_sound_5"},{"a":267,"t":"code","b":[139],"m":"TR","oa":297,"o":"$0B"},{"a":268,"t":"code","b":[37],"m":"LAX","o":"5","x":[257]},{"a":269,"t":"code","b":[83],"m":"TAM"},{"a":270,"t":"code","b":[134],"m":"TR","oa":279,"o":"$06"},{"a":271,"t":"code","b":[123],"m":"SSR","o":"$B"},{"a":272,"t":"code","b":[233],"m":"TRS","oa":759,"o":"mallet_reset"},{"a":273,"t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_18"},{"a":274,"t":"code","b":[228],"m":"TRS","oa":1073,"o":"take_bit3"},{"a":275,"t":"code","b":[139],"m":"TR","oa":297,"o":"$0B"},{"a":276,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_07"},{"a":277,"t":"code","b":[12],"m":"SM","o":"0"},{"a":278,"t":"code","b":[139],"m":"TR","oa":297,"o":"$0B"},{"a":279,"t":"code","b":[35],"m":"LAX","o":"3","x":[270]},{"a":280,"t":"code","b":[83],"m":"TAM"},{"a":281,"t":"code","b":[180],"m":"TR","oa":284,"o":"$34"},{"a":282,"t":"code","b":[118],"m":"SSR","o":"6"},{"a":283,"t":"code","b":[144],"m":"TR","oa":410,"o":"miss_sequence"},{"a":284,"t":"code","b":[33],"m":"LAX","o":"1","x":[281]},{"a":285,"t":"code","b":[83],"m":"TAM"},{"a":286,"t":"code","b":[139],"m":"TR","oa":297,"o":"$0B"},{"a":287,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_07"},{"a":288,"t":"code","b":[228],"m":"TRS","oa":1073,"o":"take_bit3"},{"a":289,"t":"code","b":[172],"m":"TR","oa":292,"o":"$2C"},{"a":290,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":291,"t":"code","b":[14],"m":"SM","o":"2"},{"a":292,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_06","x":[289]},{"a":293,"t":"code","b":[228],"m":"TRS","oa":1073,"o":"take_bit3"},{"a":294,"t":"code","b":[139],"m":"TR","oa":297,"o":"$0B","x":[963]},{"a":295,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye"},{"a":296,"t":"code","b":[13],"m":"SM","o":"1"},{"a":297,"t":"code","b":[112],"m":"SSR","o":"0","x":[267,275,278,286,294]},{"a":298,"t":"code","b":[147],"m":"TR","oa":54,"o":"main_loop"},{"a":299,"l":"lanes","c":"lanes: picks the lane for this step from beat: on 2 the cans ($012E) and beat back to 0, on 1 the pineapples ($0161) and beat to 2, on 0 the bottles ($0166) and beat to 1.","t":"code","b":[72],"m":"LB","oa":4106,"o":"beat","x":[254]},{"a":300,"t":"code","b":[209],"m":"TRS","oa":1071,"o":"take_bit1"},{"a":301,"t":"code","b":[133],"m":"TR","oa":316,"o":"$05"},{"a":302,"l":"cans_step","c":"cans_step: the cans' step. No new can while one is at Olive's hand. A throw (C) adds one to in_flight and puts Olive's arm toward the cans; the new can, or none, goes in at the 1st place and the others move down (cans_fall, $032F).","t":"code","b":[232],"m":"TRS","oa":1051,"o":"point_03"},{"a":303,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear3"},{"a":304,"t":"code","b":[102],"m":"RC"},{"a":305,"t":"code","b":[220],"m":"TRS","oa":1040,"o":"carry_count"},{"a":306,"t":"code","b":[195],"m":"TRS","oa":1048,"o":"skip_if_carry"},{"a":307,"t":"code","b":[148],"m":"TR","oa":312,"o":"$14"},{"a":308,"t":"code","b":[124],"m":"SSR","o":"$C"},{"a":309,"t":"code","b":[237],"m":"TRS","oa":807,"o":"olive_arms_off"},{"a":310,"t":"code","b":[208],"m":"TRS","oa":1050,"o":"point_02"},{"a":311,"t":"code","b":[12],"m":"SM","o":"0"},{"a":312,"t":"code","b":[232],"m":"TRS","oa":1051,"o":"point_03","x":[307]},{"a":313,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":314,"t":"code","b":[124],"m":"SSR","o":"$C"},{"a":315,"t":"code","b":[145],"m":"TR","oa":815,"o":"cans_fall"},{"a":316,"t":"code","b":[117],"m":"SSR","o":"5","x":[301]},{"a":317,"t":"code","b":[163],"m":"TR","oa":353,"o":"pineapple_or_bottle"},{"a":318,"t":"code","b":[0],"m":"SKIP"},{"a":319,"t":"code","b":[128],"m":"TR","oa":256,"o":"knocked_in"},{"a":320,"l":"after_cans","c":"after_cans: asks for the click (request_click: only when the cans' step threw or moved one). A bottle still at the bottom from the bottles' step goes into the sea ($0145): it leaves Popeye's head, its splash is lit, and lost_item ($0192) follows. Else Bluto's mallet ($014B).","t":"code","b":[121],"m":"SSR","o":"9","x":[383,830]},{"a":321,"t":"code","b":[246],"m":"TRS","oa":613,"o":"request_click"},{"a":322,"t":"code","b":[70],"m":"LB","oa":4137,"o":"landed"},{"a":323,"t":"code","b":[200],"m":"TRS","oa":1072,"o":"take_bit2"},{"a":324,"t":"code","b":[158],"m":"TR","oa":331,"o":"mallet_swing"},{"a":325,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye"},{"a":326,"t":"code","b":[6],"m":"RM","o":"2"},{"a":327,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l"},{"a":328,"t":"code","b":[14],"m":"SM","o":"2"},{"a":329,"t":"code","b":[118],"m":"SSR","o":"6"},{"a":330,"t":"code","b":[151],"m":"TR","oa":402,"o":"lost_item"},{"a":331,"l":"mallet_swing","c":"mallet_swing: Bluto's mallet, on the left. When bluto_ready ($03C4) says so, the raised mallet starts down and miss_flags bit 1 is set; a mallet halfway goes down to the bottom, raised to halfway. With the mallet down and Popeye on the left, he is hit (popeye_hit, $0373). Then the fist's return ($01EC).","t":"code","b":[127],"m":"SSR","o":"$F","x":[324]},{"a":332,"t":"code","b":[252],"m":"TRS","oa":964,"o":"bluto_ready"},{"a":333,"t":"code","b":[171],"m":"TR","oa":339,"o":"$2B"},{"a":334,"t":"code","b":[225],"m":"TRS","oa":1049,"o":"point_01"},{"a":335,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":336,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_06"},{"a":337,"t":"code","b":[82],"m":"TC"},{"a":338,"t":"code","b":[13],"m":"SM","o":"1"},{"a":339,"t":"code","b":[227],"m":"TRS","oa":1057,"o":"point_11","x":[333]},{"a":340,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":341,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l"},{"a":342,"t":"code","b":[82],"m":"TC"},{"a":343,"t":"code","b":[12],"m":"SM","o":"0"},{"a":344,"t":"code","b":[84],"m":"TM","o":"0"},{"a":345,"t":"code","b":[142],"m":"TR","oa":351,"o":"$0E"},{"a":346,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye"},{"a":347,"t":"code","b":[85],"m":"TM","o":"1"},{"a":348,"t":"code","b":[142],"m":"TR","oa":351,"o":"$0E"},{"a":349,"t":"code","b":[125],"m":"SSR","o":"$D","x":[914]},{"a":350,"t":"code","b":[217],"m":"TRS","oa":883,"o":"popeye_hit"},{"a":351,"t":"code","b":[119],"m":"SSR","o":"7","x":[345,348]},{"a":352,"t":"code","b":[137],"m":"TR","oa":492,"o":"fist_back"},{"a":353,"l":"pineapple_or_bottle","c":"pineapple_or_bottle: beat 1 goes to the pineapples ($01C0); beat 0 goes on to the bottles here, after Bluto's change of boats in Game B and the demo ($0395), when a ten of seconds has passed.","t":"code","b":[226],"m":"TRS","oa":1070,"o":"take_bit0","x":[317]},{"a":354,"t":"code","b":[155],"m":"TR","oa":358,"o":"$1B"},{"a":355,"t":"code","b":[13],"m":"SM","o":"1"},{"a":356,"t":"code","b":[119],"m":"SSR","o":"7"},{"a":357,"t":"code","b":[128],"m":"TR","oa":448,"o":"pineapples_step"},{"a":358,"t":"code","b":[12],"m":"SM","o":"0","x":[354]},{"a":359,"t":"code","b":[250],"m":"TRS","oa":1053,"o":"point_05"},{"a":360,"t":"code","b":[85],"m":"TM","o":"1"},{"a":361,"t":"code","b":[145],"m":"TR","oa":367,"o":"bottles_step"},{"a":362,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":363,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear2"},{"a":364,"t":"code","b":[145],"m":"TR","oa":367,"o":"bottles_step"},{"a":365,"t":"code","b":[126],"m":"SSR","o":"$E"},{"a":366,"t":"code","b":[154],"m":"TR","oa":917,"o":"bluto_switch"},{"a":367,"l":"bottles_step","c":"bottles_step: the bottles' throw. No new bottle while one is at Olive's hand. A throw (C) adds one to in_flight and puts Olive's arm toward the bottles; the new bottle, or none, goes in at the 1st place and the rest follow (bottles_fall, $00B8).","t":"code","b":[250],"m":"TRS","oa":1053,"o":"point_05","x":[361,364,937]},{"a":368,"t":"code","b":[7],"m":"RM","o":"3"},{"a":369,"t":"code","b":[225],"m":"TRS","oa":1049,"o":"point_01"},{"a":370,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_clear0"},{"a":371,"t":"code","b":[102],"m":"RC"},{"a":372,"t":"code","b":[220],"m":"TRS","oa":1040,"o":"carry_count"},{"a":373,"t":"code","b":[195],"m":"TRS","oa":1048,"o":"skip_if_carry"},{"a":374,"t":"code","b":[149],"m":"TR","oa":378,"o":"$15"},{"a":375,"t":"code","b":[124],"m":"SSR","o":"$C"},{"a":376,"t":"code","b":[237],"m":"TRS","oa":807,"o":"olive_arms_off"},{"a":377,"t":"code","b":[15],"m":"SM","o":"3"},{"a":378,"t":"code","b":[225],"m":"TRS","oa":1049,"o":"point_01","x":[374]},{"a":379,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":380,"t":"code","b":[114],"m":"SSR","o":"2"},{"a":381,"t":"code","b":[148],"m":"TR","oa":184,"o":"bottles_fall"},{"a":382,"t":"code","b":[0],"m":"SKIP"},{"a":383,"t":"code","b":[128],"m":"TR","oa":320,"o":"after_cans"},{"a":384,"c":"Page $06: the bottles' lower places, items lost in the sea, and counting a miss.","s":"The rest of bottles_fall: the 4th place and the bottom.","t":"code","b":[125],"m":"SSR","o":"$D","x":[190,447]},{"a":385,"t":"code","b":[192],"m":"TRS","oa":832,"o":"demo_watch"},{"a":386,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye"},{"a":387,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":388,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":389,"t":"code","b":[86],"m":"TM","o":"2"},{"a":390,"t":"code","b":[187],"m":"TR","oa":393,"o":"$3B"},{"a":391,"t":"code","b":[70],"m":"LB","oa":4137,"o":"landed"},{"a":392,"t":"code","b":[14],"m":"SM","o":"2"},{"a":393,"t":"code","b":[121],"m":"SSR","o":"9","x":[390]},{"a":394,"t":"code","b":[246],"m":"TRS","oa":613,"o":"request_click"},{"a":395,"l":"pine_missed","c":"pine_missed: a pineapple still at the bottom from its step falls into the sea: it leaves Popeye's head, its splash is lit, and lost_item follows. Else the mallet's return ($01B8).","t":"code","b":[70],"m":"LB","oa":4137,"o":"landed"},{"a":396,"t":"code","b":[209],"m":"TRS","oa":1071,"o":"take_bit1"},{"a":397,"t":"code","b":[148],"m":"TR","oa":440,"o":"mallet_back"},{"a":398,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l"},{"a":399,"t":"code","b":[7],"m":"RM","o":"3"},{"a":400,"t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_18"},{"a":401,"t":"code","b":[12],"m":"SM","o":"0"},{"a":402,"l":"lost_item","c":"lost_item: an item fell into the sea. Takes one off in_flight and queues the sound 9. The first such item only sets fist_flags bit 1, and its splash stays on the screen. The next one counts a miss: the flag is cleared, the splashes are cleared at the next drawing (fist_flags bit 2), landed is cleared, and miss_sequence follows. So two items in the sea make one miss.","t":"code","b":[249],"m":"TRS","oa":1039,"o":"dec_in_flight","x":[330,489]},{"a":403,"t":"code","b":[230],"m":"TRS","oa":1077,"o":"queue_sound_9"},{"a":404,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_07"},{"a":405,"t":"code","b":[209],"m":"TRS","oa":1071,"o":"take_bit1"},{"a":406,"t":"code","b":[166],"m":"TR","oa":437,"o":"lost_first"},{"a":407,"t":"code","b":[14],"m":"SM","o":"2"},{"a":408,"t":"code","b":[70],"m":"LB","oa":4137,"o":"landed"},{"a":409,"t":"code","b":[192],"m":"TRS","oa":1024,"o":"clear_cell"},{"a":410,"l":"miss_sequence","c":"miss_sequence: counts a miss. Takes Popeye's splash off whichever side it is on and keeps that side in fist_flags or miss_flags bit 3; then, in a game, selects the R2 row and queues the sound 8. If any key of that row reads as held (KTA, then TA0) the miss is not counted: its K1 is MAME's \"Infinite Lives\" cheat, a test pad on the board. Else a lit segment is shifted into the miss marks, 7.0.0, then 5.0.0, then 5.1.0, which ends the game, and the idle count is cleared.","t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08","x":[283]},{"a":411,"t":"code","b":[209],"m":"TRS","oa":1071,"o":"take_bit1"},{"a":412,"t":"code","b":[142],"m":"TR","oa":415,"o":"$0E"},{"a":413,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_07"},{"a":414,"t":"code","b":[152],"m":"TR","oa":419,"o":"$18"},{"a":415,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l","x":[412]},{"a":416,"t":"code","b":[209],"m":"TRS","oa":1071,"o":"take_bit1"},{"a":417,"t":"code","b":[172],"m":"TR","oa":420,"o":"$2C"},{"a":418,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_06"},{"a":419,"t":"code","b":[15],"m":"SM","o":"3","x":[414]},{"a":420,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"skip_if_game","x":[417]},{"a":421,"t":"code","b":[147],"m":"TR","oa":438,"o":"$13"},{"a":422,"t":"code","b":[45],"m":"LAX","o":"$D"},{"a":423,"t":"code","b":[1],"m":"ATR"},{"a":424,"t":"code","b":[204],"m":"TRS","oa":1076,"o":"queue_sound_8"},{"a":425,"t":"code","b":[106],"m":"KTA"},{"a":426,"t":"code","b":[90],"m":"TA0"},{"a":427,"t":"code","b":[147],"m":"TR","oa":438,"o":"$13"},{"a":428,"t":"code","b":[103],"m":"SC"},{"a":429,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_06"},{"a":430,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":431,"t":"code","b":[244],"m":"TRS","oa":1052,"o":"point_04"},{"a":432,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":433,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":434,"t":"code","b":[224],"m":"TRS","oa":1025,"o":"clear_idle"},{"a":435,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":436,"t":"code","b":[184],"m":"TR","oa":3,"o":"$38"},{"a":437,"l":"lost_first","c":"lost_first: the first item in the sea sets fist_flags bit 1 and the catch check follows.","t":"code","b":[13],"m":"SM","o":"1","x":[406]},{"a":438,"t":"code","b":[119],"m":"SSR","o":"7","x":[421,427,442,445]},{"a":439,"t":"code","b":[148],"m":"TR","oa":504,"o":"$14"},{"a":440,"l":"mallet_back","c":"mallet_back: puts the mallet back up (mallet_reset, $02F7), except in the demo while a swing is under way; then the catch check ($01F8).","t":"code","b":[127],"m":"SSR","o":"$F","x":[397]},{"a":441,"t":"code","b":[231],"m":"TRS","oa":973,"o":"fist_allowed"},{"a":442,"t":"code","b":[147],"m":"TR","oa":438,"o":"$13"},{"a":443,"t":"code","b":[123],"m":"SSR","o":"$B"},{"a":444,"t":"code","b":[233],"m":"TRS","oa":759,"o":"mallet_reset"},{"a":445,"t":"code","b":[147],"m":"TR","oa":438,"o":"$13"},{"a":446,"t":"code","b":[0],"m":"SKIP"},{"a":447,"t":"code","b":[128],"m":"TR","oa":384,"o":"$00"},{"a":448,"l":"pineapples_step","c":"pineapples_step: the pineapples' step. Olive's arm turns to the pineapples, whether she throws or not; no new pineapple while one is at her hand. A throw adds one to in_flight; the new pineapple, or none, goes in at the 1st place and each moves down a place, through $13 bits 3 to 0, $14 bit 3 and to the bottom, over Popeye's head in the middle ($10 bit 3), where it sets landed bit 1. Then the click when a pineapple moved or was thrown, the end of a swing, and a can left at the bottom ($01E1).","t":"code","b":[124],"m":"SSR","o":"$C","x":[357,511]},{"a":449,"t":"code","b":[237],"m":"TRS","oa":807,"o":"olive_arms_off"},{"a":450,"t":"code","b":[12],"m":"SM","o":"0"},{"a":451,"t":"code","b":[100],"m":"INCB"},{"a":452,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear3"},{"a":453,"t":"code","b":[102],"m":"RC"},{"a":454,"t":"code","b":[220],"m":"TRS","oa":1040,"o":"carry_count"},{"a":455,"t":"code","b":[95,19],"m":"LBL","oa":4115,"o":"lcd_pineapples"},{"a":457,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":458,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":459,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":460,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":461,"t":"code","b":[125],"m":"SSR","o":"$D"},{"a":462,"t":"code","b":[192],"m":"TRS","oa":832,"o":"demo_watch"},{"a":463,"t":"code","b":[236],"m":"TRS","oa":1060,"o":"point_14"},{"a":464,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":465,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l"},{"a":466,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":467,"t":"code","b":[87],"m":"TM","o":"3"},{"a":468,"t":"code","b":[134],"m":"TR","oa":471,"o":"$06"},{"a":469,"t":"code","b":[70],"m":"LB","oa":4137,"o":"landed"},{"a":470,"t":"code","b":[13],"m":"SM","o":"1"},{"a":471,"t":"code","b":[121],"m":"SSR","o":"9","x":[468]},{"a":472,"t":"code","b":[246],"m":"TRS","oa":613,"o":"request_click"},{"a":473,"t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_18"},{"a":474,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear3"},{"a":475,"t":"code","b":[142],"m":"TR","oa":479,"o":"$0E"},{"a":476,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l"},{"a":477,"t":"code","b":[84],"m":"TM","o":"0"},{"a":478,"t":"code","b":[163],"m":"TR","oa":481,"o":"can_missed"},{"a":479,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_06","x":[475]},{"a":480,"t":"code","b":[5],"m":"RM","o":"1"},{"a":481,"l":"can_missed","c":"can_missed: a can still at the bottom from its step falls into the sea: it leaves Popeye's head, its splash is lit, and lost_item follows. Else Bluto's fist ($0380).","t":"code","b":[70],"m":"LB","oa":4137,"o":"landed","x":[478]},{"a":482,"t":"code","b":[226],"m":"TRS","oa":1070,"o":"take_bit0"},{"a":483,"t":"code","b":[165],"m":"TR","oa":490,"o":"$25"},{"a":484,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":485,"t":"code","b":[4],"m":"RM","o":"0"},{"a":486,"t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_18"},{"a":487,"t":"code","b":[13],"m":"SM","o":"1"},{"a":488,"t":"code","b":[118],"m":"SSR","o":"6"},{"a":489,"t":"code","b":[151],"m":"TR","oa":402,"o":"lost_item"},{"a":490,"t":"code","b":[126],"m":"SSR","o":"$E","x":[483]},{"a":491,"t":"code","b":[128],"m":"TR","oa":896,"o":"fist_swing"},{"a":492,"l":"fist_back","c":"fist_back: puts Bluto's fist back up when it is down, unless Popeye is down (knocked) or, in the demo, a swing is under way. Then the catch check ($030C).","t":"code","b":[127],"m":"SSR","o":"$F","x":[352]},{"a":493,"t":"code","b":[231],"m":"TRS","oa":973,"o":"fist_allowed"},{"a":494,"t":"code","b":[148],"m":"TR","oa":504,"o":"$14"},{"a":495,"t":"code","b":[123],"m":"SSR","o":"$B"},{"a":496,"t":"code","b":[200],"m":"TRS","oa":752,"o":"skip_if_up"},{"a":497,"t":"code","b":[153],"m":"TR","oa":499,"o":"$19"},{"a":498,"t":"code","b":[148],"m":"TR","oa":504,"o":"$14"},{"a":499,"t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_18","x":[497]},{"a":500,"t":"code","b":[228],"m":"TRS","oa":1073,"o":"take_bit3"},{"a":501,"t":"code","b":[148],"m":"TR","oa":504,"o":"$14"},{"a":502,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_07"},{"a":503,"t":"code","b":[12],"m":"SM","o":"0"},{"a":504,"t":"code","b":[124],"m":"SSR","o":"$C","x":[439,494,498,501,916]},{"a":505,"t":"code","b":[143],"m":"TR","oa":780,"o":"catch_check"},{"a":506,"t":"code","b":[0],"m":"SKIP"},{"a":507,"t":"code","b":[0],"m":"SKIP"},{"a":508,"t":"code","b":[0],"m":"SKIP"},{"a":509,"t":"code","b":[0],"m":"SKIP"},{"a":510,"t":"code","b":[0],"m":"SKIP"},{"a":511,"t":"code","b":[128],"m":"TR","oa":448,"o":"pineapples_step"},{"a":512,"l":"timekeep","c":"timekeep: called on every pass of the main loop. Without a new second (TG) it plays any sound waiting ($0280). On a new second, except just after power on, it rings the alarm's sound again while the alarm is ringing, sets tick_flags bit 2, asks for the screen, and adds one to the idle count ($40-$41). When the idle count passes 255 seconds in the alarm's setting, or after the game is over, it goes back to the clock (mode 1). Then the seconds, and on to the minutes and hours ($022A).","t":"code","b":[88],"m":"TG","x":[14,32,55,181,198,575]},{"a":513,"t":"code","b":[184],"m":"TR","oa":515,"o":"$38"},{"a":514,"s":"A jump, inside timekeep: to play_sounds ($0280).","t":"code","b":[224],"m":"TRS","oa":1025,"o":"clear_idle"},{"a":515,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode","x":[513]},{"a":516,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":517,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":518,"t":"code","b":[110],"m":"RTN"},{"a":519,"t":"code","b":[72],"m":"LB","oa":4106,"o":"beat"},{"a":520,"t":"code","b":[86],"m":"TM","o":"2"},{"a":521,"t":"code","b":[143],"m":"TR","oa":524,"o":"$0F"},{"a":522,"t":"code","b":[66],"m":"LB","oa":4128,"o":"sound_flags"},{"a":523,"t":"code","b":[12],"m":"SM","o":"0"},{"a":524,"t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags","x":[521]},{"a":525,"t":"code","b":[14],"m":"SM","o":"2"},{"a":526,"t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags"},{"a":527,"t":"code","b":[12],"m":"SM","o":"0"},{"a":528,"t":"code","b":[95,65],"m":"LBL","oa":4161,"o":"idle_lo"},{"a":530,"t":"code","b":[24],"m":"LDA","o":"0","x":[534]},{"a":531,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":532,"t":"code","b":[139],"m":"TR","oa":553,"o":"$0B"},{"a":533,"t":"code","b":[28],"m":"EXCD","o":"0"},{"a":534,"t":"code","b":[151],"m":"TR","oa":530,"o":"$17"},{"a":535,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":536,"t":"code","b":[87],"m":"TM","o":"3"},{"a":537,"t":"code","b":[168],"m":"TR","oa":539,"o":"$28"},{"a":538,"t":"code","b":[142],"m":"TR","oa":543,"o":"$0E"},{"a":539,"t":"code","b":[95,4],"m":"LBL","oa":4100,"o":"lcd_misses","x":[537]},{"a":541,"t":"code","b":[85],"m":"TM","o":"1"},{"a":542,"t":"code","b":[165],"m":"TR","oa":554,"o":"count_seconds"},{"a":543,"t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags","x":[538]},{"a":544,"t":"code","b":[15],"m":"SM","o":"3"},{"a":545,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":546,"t":"code","b":[33],"m":"LAX","o":"1"},{"a":547,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":548,"t":"code","b":[46],"m":"LAX","o":"$E"},{"a":549,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":550,"t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags"},{"a":551,"t":"code","b":[6],"m":"RM","o":"2"},{"a":552,"t":"code","b":[165],"m":"TR","oa":554,"o":"count_seconds"},{"a":553,"t":"code","b":[16],"m":"EXC","o":"0","x":[532]},{"a":554,"l":"count_seconds","c":"count_seconds: adds a second to the time: the units in $3B, the tens in $3A. When the units roll over and the tens do not, it sets colon_flags bit 1 (Bluto may change boats): at 10, 20, 30, 40 and 50 seconds, and at a minute that starts a new ten of minutes. When the tens roll over, the minutes ($026C).","t":"code","b":[102],"m":"RC","x":[542,552]},{"a":555,"t":"code","b":[79],"m":"LB","oa":4155,"o":"time_s1"},{"a":556,"l":"add_minute","c":"add_minute: adds one to the minutes at B ($39 for the time, $35 for the alarm): units to 9, then the tens to 5, then the hours ($0240).","t":"code","b":[24],"m":"LDA","o":"0"},{"a":557,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":558,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":559,"t":"code","b":[55],"m":"ADX","o":"7"},{"a":560,"s":"A jump, inside timekeep: to play_sounds ($0280).","t":"code","b":[224],"m":"TRS","oa":1025,"o":"clear_idle"},{"a":561,"t":"code","b":[28],"m":"EXCD","o":"0"},{"a":562,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":563,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":564,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":565,"t":"code","b":[59],"m":"ADX","o":"$B"},{"a":566,"t":"code","b":[148],"m":"TR","oa":568,"o":"$14"},{"a":567,"s":"A jump, inside timekeep: to minute_rolled ($026C).","t":"code","b":[217],"m":"TRS","oa":1075,"o":"caught_item"},{"a":568,"t":"code","b":[95,5],"m":"LBL","oa":4101,"o":"colon_flags","x":[566]},{"a":570,"t":"code","b":[13],"m":"SM","o":"1"},{"a":571,"s":"A jump, inside timekeep: to play_sounds ($0280).","t":"code","b":[224],"m":"TRS","oa":1025,"o":"clear_idle"},{"a":572,"t":"code","b":[0],"m":"SKIP"},{"a":573,"t":"code","b":[0],"m":"SKIP"},{"a":574,"t":"code","b":[0],"m":"SKIP"},{"a":575,"t":"code","b":[128],"m":"TR","oa":512,"o":"timekeep"},{"a":576,"l":"add_hour","c":"add_hour: adds one to the hours at B ($37, or $33 for the alarm, at $0242): 12 goes to 1, 9 to 10, and at 11 to 12 AM and PM swap (bit 3 of the tens).","t":"code","b":[95,55],"m":"LBL","oa":4151,"o":"time_h1","x":[612,639,720]},{"a":578,"t":"code","b":[24],"m":"LDA","o":"0","x":[619]},{"a":579,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":580,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":581,"t":"code","b":[35],"m":"LAX","o":"3"},{"a":582,"t":"code","b":[83],"m":"TAM"},{"a":583,"t":"code","b":[185],"m":"TR","oa":591,"o":"$39"},{"a":584,"t":"code","b":[108],"m":"DECB"},{"a":585,"t":"code","b":[84],"m":"TM","o":"0"},{"a":586,"t":"code","b":[135],"m":"TR","oa":608,"o":"$07"},{"a":587,"t":"code","b":[4],"m":"RM","o":"0"},{"a":588,"t":"code","b":[100],"m":"INCB"},{"a":589,"t":"code","b":[5],"m":"RM","o":"1"},{"a":590,"t":"code","b":[135],"m":"TR","oa":608,"o":"$07"},{"a":591,"t":"code","b":[42],"m":"LAX","o":"$A","x":[583]},{"a":592,"t":"code","b":[83],"m":"TAM"},{"a":593,"t":"code","b":[141],"m":"TR","oa":598,"o":"$0D"},{"a":594,"t":"code","b":[32],"m":"LAX","o":"0"},{"a":595,"t":"code","b":[28],"m":"EXCD","o":"0"},{"a":596,"t":"code","b":[12],"m":"SM","o":"0"},{"a":597,"t":"code","b":[135],"m":"TR","oa":608,"o":"$07"},{"a":598,"t":"code","b":[34],"m":"LAX","o":"2","x":[593]},{"a":599,"t":"code","b":[83],"m":"TAM"},{"a":600,"t":"code","b":[135],"m":"TR","oa":608,"o":"$07"},{"a":601,"t":"code","b":[108],"m":"DECB"},{"a":602,"t":"code","b":[84],"m":"TM","o":"0"},{"a":603,"t":"code","b":[135],"m":"TR","oa":608,"o":"$07"},{"a":604,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":605,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":606,"t":"code","b":[0],"m":"SKIP"},{"a":607,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":608,"s":"A jump, inside timekeep: to play_sounds ($0280).","t":"code","b":[224],"m":"TRS","oa":1025,"o":"clear_idle","x":[586,590,597,600,603]},{"a":609,"t":"code","b":[11],"m":"EXBLA","x":[622]},{"a":610,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":611,"t":"code","b":[139],"m":"TR","oa":617,"o":"alarm_add_hour"},{"a":612,"t":"code","b":[128],"m":"TR","oa":576,"o":"add_hour"},{"a":613,"l":"request_click","c":"request_click: sets sound_flags bit 3, the click, only when A is 0 on entry: ADX $F skips the SM 3 for any other A. The three lanes' steps call it with A = 0 when the step threw an item or moved one (a swap that moves a set bit ends with LAX 0; carry_count leaves 0 for a throw and 8 for none), so a step whose lane is empty makes no click.","t":"code","b":[66],"m":"LB","oa":4128,"o":"sound_flags","x":[321,394,472]},{"a":614,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":615,"t":"code","b":[15],"m":"SM","o":"3"},{"a":616,"t":"code","b":[110],"m":"RTN"},{"a":617,"l":"alarm_add_hour","c":"alarm_add_hour: points B at the alarm's hours and adds one ($0242).","t":"code","b":[95,51],"m":"LBL","oa":4147,"o":"alarm_h1","x":[611,736]},{"a":619,"t":"code","b":[176],"m":"TR","oa":578,"o":"$30"},{"a":620,"l":"minute_rolled","c":"minute_rolled: the tens of seconds or of minutes rolled over. After the seconds, flags the minute for the alarm (events bit 1) and adds a minute; after the minutes, adds an hour.","t":"code","b":[16],"m":"EXC","o":"0"},{"a":621,"t":"code","b":[82],"m":"TC"},{"a":622,"t":"code","b":[163],"m":"TR","oa":609,"o":"$23"},{"a":623,"t":"code","b":[76],"m":"LB","oa":4107,"o":"events"},{"a":624,"t":"code","b":[13],"m":"SM","o":"1"},{"a":625,"l":"add_minute_39","c":"add_minute_39: adds a minute to the time ($39), as the right button does when the time is set after power on.","t":"code","b":[71],"m":"LB","oa":4153,"o":"time_m1","x":[723]},{"a":626,"t":"code","b":[103],"m":"SC","x":[637]},{"a":627,"s":"A jump, inside a subroutine: to add_minute ($022C).","t":"code","b":[201],"m":"TRS","oa":1068,"o":"skip_if_no_redraw"},{"a":628,"l":"sound_done","c":"sound_done: asks for the screen to be drawn, clears the sound requests and returns: the end of every sound.","t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags"},{"a":629,"t":"code","b":[12],"m":"SM","o":"0"},{"a":630,"t":"code","b":[66],"m":"LB","oa":4128,"o":"sound_flags","x":[638]},{"a":631,"t":"code","b":[32],"m":"LAX","o":"0"},{"a":632,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":633,"t":"code","b":[110],"m":"RTN"},{"a":634,"t":"code","b":[0],"m":"SKIP"},{"a":635,"l":"alarm_add_minute","c":"alarm_add_minute: adds a minute to the alarm's time ($35).","t":"code","b":[95,53],"m":"LBL","oa":4149,"o":"alarm_m1","x":[746]},{"a":637,"t":"code","b":[178],"m":"TR","oa":626,"o":"$32"},{"a":638,"t":"code","b":[147],"m":"TR","oa":630,"o":"$13"},{"a":639,"t":"code","b":[128],"m":"TR","oa":576,"o":"add_hour"},{"a":640,"l":"play_sounds","c":"play_sounds: runs only when nothing is waiting to be drawn. The alarm's sound first: after power on, in the clock, in the alarm's setting, or after a game is over (in a game under way the request is dropped), it buzzes R1 while the divider's 4 bits read below 4, a quarter of each second ($0293). In a game, in priority: the catch (a tone of length code $E), the click (R1 written 16 times), a queued sound ($21, through $02C0). Out of a game there is no sound but the alarm.","t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags","x":[703]},{"a":641,"t":"code","b":[84],"m":"TM","o":"0"},{"a":642,"t":"code","b":[188],"m":"TR","oa":644,"o":"$3C"},{"a":643,"t":"code","b":[110],"m":"RTN"},{"a":644,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode","x":[642]},{"a":645,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":646,"t":"code","b":[66],"m":"LB","oa":4128,"o":"sound_flags"},{"a":647,"t":"code","b":[84],"m":"TM","o":"0"},{"a":648,"t":"code","b":[186],"m":"TR","oa":669,"o":"game_sounds"},{"a":649,"t":"code","b":[4],"m":"RM","o":"0"},{"a":650,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":651,"t":"code","b":[171],"m":"TR","oa":659,"o":"alarm_buzz"},{"a":652,"t":"code","b":[59],"m":"ADX","o":"$B"},{"a":653,"t":"code","b":[185],"m":"TR","oa":655,"o":"$39"},{"a":654,"t":"code","b":[171],"m":"TR","oa":659,"o":"alarm_buzz"},{"a":655,"t":"code","b":[95,4],"m":"LBL","oa":4100,"o":"lcd_misses","x":[653]},{"a":657,"t":"code","b":[85],"m":"TM","o":"1"},{"a":658,"t":"code","b":[110],"m":"RTN"},{"a":659,"l":"alarm_buzz","c":"alarm_buzz: toggles R1, the buzzer, 16 times a loop for as long as the divider's bits 11-14 read below 4.","t":"code","b":[94,4],"m":"DTA","x":[651,654,668]},{"a":661,"t":"code","b":[60],"m":"ADX","o":"$C"},{"a":662,"t":"code","b":[131],"m":"TR","oa":664,"o":"$03"},{"a":663,"s":"A jump, inside a subroutine: to sound_done ($0274).","t":"code","b":[220],"m":"TRS","oa":1040,"o":"carry_count"},{"a":664,"t":"code","b":[32],"m":"LAX","o":"0","x":[662]},{"a":665,"t":"code","b":[1],"m":"ATR","x":[667]},{"a":666,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":667,"t":"code","b":[161],"m":"TR","oa":665,"o":"$21"},{"a":668,"t":"code","b":[171],"m":"TR","oa":659,"o":"alarm_buzz"},{"a":669,"l":"game_sounds","c":"game_sounds: no alarm's sound waiting. Out of a game, or in the alarm's setting, the requests are cleared unplayed ($027E). In a game: the catch's tone ($02AF), else the click ($02A7), else the queued sound ($02C0).","t":"code","b":[62],"m":"ADX","o":"$E","x":[648]},{"a":670,"s":"A jump, inside a subroutine: to $027E, sound_done's clearing of the requests without a redraw.","t":"code","b":[209],"m":"TRS","oa":1071,"o":"take_bit1"},{"a":671,"t":"code","b":[59],"m":"ADX","o":"$B"},{"a":672,"t":"code","b":[177],"m":"TR","oa":674,"o":"$31"},{"a":673,"s":"A jump, inside a subroutine: to $027E, the requests cleared unplayed.","t":"code","b":[209],"m":"TRS","oa":1071,"o":"take_bit1"},{"a":674,"t":"code","b":[86],"m":"TM","o":"2","x":[672]},{"a":675,"t":"code","b":[182],"m":"TR","oa":677,"o":"$36"},{"a":676,"t":"code","b":[145],"m":"TR","oa":687,"o":"$11"},{"a":677,"t":"code","b":[87],"m":"TM","o":"3","x":[675]},{"a":678,"s":"A jump, inside a subroutine: to play_queued ($02C0).","t":"code","b":[240],"m":"TRS","oa":1026,"o":"$30"},{"a":679,"l":"click","c":"click: the click of a step that moved or threw an item: R1 written 16 times from a value that EXBLA swaps with BL's count each time, about 64 cycles.","t":"code","b":[47],"m":"LAX","o":"$F"},{"a":680,"t":"code","b":[79],"m":"LB","oa":4155,"o":"time_s1"},{"a":681,"t":"code","b":[11],"m":"EXBLA","x":[684]},{"a":682,"t":"code","b":[1],"m":"ATR"},{"a":683,"t":"code","b":[108],"m":"DECB"},{"a":684,"t":"code","b":[139],"m":"TR","oa":681,"o":"$0B"},{"a":685,"s":"A jump, inside a subroutine: to sound_done ($0274).","t":"code","b":[220],"m":"TRS","oa":1040,"o":"carry_count"},{"a":686,"l":"tone","c":"tone: a tone on R1 of about 2.7 kHz: each loop toggles the buzzer every three instructions. A, the length code, sets how many loops it makes: from A up to 15, each one longer; so a larger code is a shorter sound. Entries: $02AE with $B (the bonus's beep), $02AF with $E (a catch), $02B0 with the queued code.","t":"code","b":[43],"m":"LAX","o":"$B"},{"a":687,"t":"code","b":[46],"m":"LAX","o":"$E","x":[676]},{"a":688,"t":"code","b":[77],"m":"LB","oa":4123,"o":"tone_count"},{"a":689,"t":"code","b":[16],"m":"EXC","o":"0","x":[701]},{"a":690,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":691,"t":"code","b":[11],"m":"EXBLA"},{"a":692,"t":"code","b":[32],"m":"LAX","o":"0","x":[697]},{"a":693,"t":"code","b":[1],"m":"ATR","x":[695]},{"a":694,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":695,"t":"code","b":[166],"m":"TR","oa":693,"o":"$26"},{"a":696,"t":"code","b":[108],"m":"DECB"},{"a":697,"t":"code","b":[140],"m":"TR","oa":692,"o":"$0C"},{"a":698,"t":"code","b":[77],"m":"LB","oa":4123,"o":"tone_count"},{"a":699,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":700,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":701,"t":"code","b":[164],"m":"TR","oa":689,"o":"$24"},{"a":702,"s":"A jump, inside a subroutine: to sound_done ($0274).","t":"code","b":[220],"m":"TRS","oa":1040,"o":"carry_count"},{"a":703,"t":"code","b":[128],"m":"TR","oa":640,"o":"play_sounds"},{"a":704,"l":"play_queued","c":"play_queued: takes the code in sound_queued, clears it, and plays it as a tone when it is not 0.","t":"code","b":[100],"m":"INCB","x":[767]},{"a":705,"t":"code","b":[32],"m":"LAX","o":"0"},{"a":706,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":707,"t":"code","b":[90],"m":"TA0"},{"a":708,"s":"A jump, inside a subroutine: to tone ($02B0) with the queued code.","t":"code","b":[232],"m":"TRS","oa":1051,"o":"point_03"},{"a":709,"t":"code","b":[110],"m":"RTN"},{"a":710,"l":"pad_moved","c":"pad_moved: a new press of left or right. After power on (mode 0) left adds an hour and right a minute. In the alarm's setting left adds an hour to the alarm and right a minute. Otherwise, unless Popeye is down, it moves him (move_popeye, $0300).","t":"code","b":[67],"m":"LB","oa":4144,"o":"mode","x":[11,956]},{"a":711,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":712,"t":"code","b":[90],"m":"TA0"},{"a":713,"t":"code","b":[154],"m":"TR","oa":725,"o":"$1A"},{"a":714,"t":"code","b":[81],"m":"TB"},{"a":715,"t":"code","b":[151],"m":"TR","oa":722,"o":"$17"},{"a":716,"t":"code","b":[80],"m":"TA"},{"a":717,"t":"code","b":[185],"m":"TR","oa":719,"o":"$39"},{"a":718,"t":"code","b":[182],"m":"TR","oa":741,"o":"$36"},{"a":719,"t":"code","b":[121],"m":"SSR","o":"9","x":[717]},{"a":720,"t":"code","b":[192],"m":"TRS","oa":576,"o":"add_hour"},{"a":721,"t":"code","b":[132],"m":"TR","oa":749,"o":"$04"},{"a":722,"t":"code","b":[121],"m":"SSR","o":"9","x":[715]},{"a":723,"t":"code","b":[228],"m":"TRS","oa":625,"o":"add_minute_39"},{"a":724,"t":"code","b":[132],"m":"TR","oa":749,"o":"$04"},{"a":725,"t":"code","b":[40],"m":"LAX","o":"8","x":[713]},{"a":726,"t":"code","b":[83],"m":"TAM"},{"a":727,"t":"code","b":[177],"m":"TR","oa":738,"o":"$31"},{"a":728,"t":"code","b":[224],"m":"TRS","oa":1025,"o":"clear_idle"},{"a":729,"t":"code","b":[102],"m":"RC"},{"a":730,"t":"code","b":[81],"m":"TB"},{"a":731,"t":"code","b":[139],"m":"TR","oa":745,"o":"$0B"},{"a":732,"t":"code","b":[80],"m":"TA"},{"a":733,"t":"code","b":[142],"m":"TR","oa":735,"o":"$0E"},{"a":734,"t":"code","b":[182],"m":"TR","oa":741,"o":"$36"},{"a":735,"t":"code","b":[121],"m":"SSR","o":"9","x":[733]},{"a":736,"t":"code","b":[203],"m":"TRS","oa":617,"o":"alarm_add_hour"},{"a":737,"t":"code","b":[132],"m":"TR","oa":749,"o":"$04"},{"a":738,"t":"code","b":[123],"m":"SSR","o":"$B","x":[727]},{"a":739,"t":"code","b":[200],"m":"TRS","oa":752,"o":"skip_if_up"},{"a":740,"t":"code","b":[173],"m":"TR","oa":743,"o":"$2D"},{"a":741,"t":"code","b":[112],"m":"SSR","o":"0","x":[718,734]},{"a":742,"t":"code","b":[147],"m":"TR","oa":54,"o":"main_loop"},{"a":743,"t":"code","b":[124],"m":"SSR","o":"$C","x":[740]},{"a":744,"t":"code","b":[128],"m":"TR","oa":768,"o":"move_popeye"},{"a":745,"t":"code","b":[121],"m":"SSR","o":"9","x":[731]},{"a":746,"t":"code","b":[202],"m":"TRS","oa":635,"o":"alarm_add_minute"},{"a":747,"t":"code","b":[250],"m":"TRS","oa":1053,"o":"point_05"},{"a":748,"t":"code","b":[5],"m":"RM","o":"1"},{"a":749,"t":"code","b":[252],"m":"TRS","oa":1028,"o":"set_redraw","x":[721,724,737]},{"a":750,"t":"code","b":[115],"m":"SSR","o":"3"},{"a":751,"t":"code","b":[189],"m":"TR","oa":202,"o":"throw_or_not"},{"a":752,"l":"skip_if_up","c":"skip_if_up: returns with a skip when knocked is not 0, that is while Popeye is down.","t":"code","b":[95,67],"m":"LBL","oa":4163,"o":"knocked","x":[496,739]},{"a":754,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":755,"t":"code","b":[90],"m":"TA0"},{"a":756,"t":"code","b":[111],"m":"RTNS"},{"a":757,"t":"code","b":[110],"m":"RTN"},{"a":758,"t":"code","b":[0],"m":"SKIP"},{"a":759,"l":"mallet_reset","c":"mallet_reset: when the mallet is down, raises it again.","t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l","x":[272,444]},{"a":760,"t":"code","b":[84],"m":"TM","o":"0"},{"a":761,"t":"code","b":[110],"m":"RTN"},{"a":762,"t":"code","b":[4],"m":"RM","o":"0"},{"a":763,"t":"code","b":[95,1],"m":"LBL","oa":4097,"o":"lcd_bluto_l"},{"a":765,"t":"code","b":[13],"m":"SM","o":"1"},{"a":766,"t":"code","b":[110],"m":"RTN"},{"a":767,"t":"code","b":[128],"m":"TR","oa":704,"o":"play_queued"},{"a":768,"l":"move_popeye","c":"move_popeye: left moves Popeye a place left (move_left), right a place right (move_right); both together do nothing. Then the catch check.","t":"code","b":[252],"m":"TRS","oa":1028,"o":"set_redraw","x":[744,831]},{"a":769,"t":"code","b":[102],"m":"RC"},{"a":770,"t":"code","b":[81],"m":"TB"},{"a":771,"t":"code","b":[189],"m":"TR","oa":778,"o":"$3D"},{"a":772,"t":"code","b":[80],"m":"TA"},{"a":773,"t":"code","b":[175],"m":"TR","oa":775,"o":"$2F"},{"a":774,"t":"code","b":[180],"m":"TR","oa":796,"o":"$34"},{"a":775,"t":"code","b":[125],"m":"SSR","o":"$D","x":[773]},{"a":776,"t":"code","b":[215],"m":"TRS","oa":850,"o":"move_left"},{"a":777,"t":"code","b":[143],"m":"TR","oa":780,"o":"catch_check"},{"a":778,"t":"code","b":[125],"m":"SSR","o":"$D","x":[771]},{"a":779,"t":"code","b":[237],"m":"TRS","oa":871,"o":"move_right"},{"a":780,"l":"catch_check","c":"catch_check: takes the landed bit of the lane in front of Popeye: bottles on the left, pineapples in the middle, cans on the right. One that was set is a catch: the catch's sound, a point owed, in_flight less one, and add_point. Else back to the main loop (or, in the demo, clock_step).","t":"code","b":[102],"m":"RC","x":[505,777]},{"a":781,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye"},{"a":782,"t":"code","b":[85],"m":"TM","o":"1"},{"a":783,"t":"code","b":[171],"m":"TR","oa":787,"o":"$2B"},{"a":784,"t":"code","b":[70],"m":"LB","oa":4137,"o":"landed"},{"a":785,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":786,"t":"code","b":[144],"m":"TR","oa":794,"o":"$10"},{"a":787,"t":"code","b":[87],"m":"TM","o":"3","x":[783]},{"a":788,"t":"code","b":[131],"m":"TR","oa":792,"o":"$03"},{"a":789,"t":"code","b":[70],"m":"LB","oa":4137,"o":"landed"},{"a":790,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":791,"t":"code","b":[144],"m":"TR","oa":794,"o":"$10"},{"a":792,"t":"code","b":[70],"m":"LB","oa":4137,"o":"landed","x":[788]},{"a":793,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":794,"t":"code","b":[82],"m":"TC","x":[786,791]},{"a":795,"t":"code","b":[135],"m":"TR","oa":800,"o":"$07"},{"a":796,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"skip_if_game","x":[774]},{"a":797,"t":"code","b":[152],"m":"TR","oa":803,"o":"$18"},{"a":798,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":799,"t":"code","b":[147],"m":"TR","oa":54,"o":"main_loop"},{"a":800,"t":"code","b":[217],"m":"TRS","oa":1075,"o":"caught_item","x":[795]},{"a":801,"t":"code","b":[242],"m":"TRS","oa":1074,"o":"skip_if_clock"},{"a":802,"t":"code","b":[182],"m":"TR","oa":805,"o":"$36"},{"a":803,"t":"code","b":[115],"m":"SSR","o":"3","x":[797]},{"a":804,"t":"code","b":[190],"m":"TR","oa":197,"o":"clock_step"},{"a":805,"t":"code","b":[113],"m":"SSR","o":"1","x":[802]},{"a":806,"t":"code","b":[128],"m":"TR","oa":64,"o":"add_point"},{"a":807,"l":"olive_arms_off","c":"olive_arms_off: clears Olive's three throwing arms (3.0.0, 3.0.1, 3.3.1) and returns with B at $12.","t":"code","b":[95,2],"m":"LBL","oa":4098,"o":"lcd_olive","x":[309,376,449]},{"a":809,"t":"code","b":[4],"m":"RM","o":"0"},{"a":810,"t":"code","b":[95,18],"m":"LBL","oa":4114,"o":"lcd_olive_arms"},{"a":812,"t":"code","b":[4],"m":"RM","o":"0"},{"a":813,"t":"code","b":[7],"m":"RM","o":"3"},{"a":814,"t":"code","b":[110],"m":"RTN"},{"a":815,"l":"cans_fall","c":"cans_fall: moves each can down a place, from the 1st to the 4th ($03 bits 3-0), to the 5th and 6th ($04 bits 3 and 2) and to the bottom, over Popeye's head on the right ($08 bit 0), where it sets landed bit 0. The demo watch is called when a can leaves the 4th place.","t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2","x":[315]},{"a":816,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":817,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":818,"t":"code","b":[125],"m":"SSR","o":"$D"},{"a":819,"t":"code","b":[192],"m":"TRS","oa":832,"o":"demo_watch"},{"a":820,"t":"code","b":[244],"m":"TRS","oa":1052,"o":"point_04"},{"a":821,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":822,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":823,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":824,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":825,"t":"code","b":[84],"m":"TM","o":"0"},{"a":826,"t":"code","b":[130],"m":"TR","oa":829,"o":"$02"},{"a":827,"t":"code","b":[70],"m":"LB","oa":4137,"o":"landed"},{"a":828,"t":"code","b":[12],"m":"SM","o":"0"},{"a":829,"t":"code","b":[117],"m":"SSR","o":"5","x":[826]},{"a":830,"t":"code","b":[128],"m":"TR","oa":320,"o":"after_cans"},{"a":831,"t":"code","b":[128],"m":"TR","oa":768,"o":"move_popeye"},{"a":832,"l":"demo_watch","c":"demo_watch: called as an item passes a place in its lane, with C set when one did. In a game it returns at once. In the clock's demo it moves Popeye a place toward that item's lane, at most once a second (colon_flags bit 2): left for a bottle, to the middle for a pineapple, right for a can.","t":"code","b":[82],"m":"TC","x":[185,385,462,819,895]},{"a":833,"t":"code","b":[184],"m":"TR","oa":835,"o":"$38"},{"a":834,"t":"code","b":[110],"m":"RTN"},{"a":835,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode","x":[833]},{"a":836,"t":"code","b":[87],"m":"TM","o":"3"},{"a":837,"t":"code","b":[175],"m":"TR","oa":839,"o":"$2F"},{"a":838,"t":"code","b":[185],"m":"TR","oa":847,"o":"$39"},{"a":839,"t":"code","b":[84],"m":"TM","o":"0","x":[837]},{"a":840,"t":"code","b":[110],"m":"RTN"},{"a":841,"t":"code","b":[95,5],"m":"LBL","oa":4101,"o":"colon_flags"},{"a":843,"t":"code","b":[86],"m":"TM","o":"2"},{"a":844,"t":"code","b":[179],"m":"TR","oa":846,"o":"$33"},{"a":845,"t":"code","b":[110],"m":"RTN"},{"a":846,"t":"code","b":[14],"m":"SM","o":"2","x":[844]},{"a":847,"t":"code","b":[72],"m":"LB","oa":4106,"o":"beat","x":[838]},{"a":848,"t":"code","b":[84],"m":"TM","o":"0"},{"a":849,"t":"code","b":[172],"m":"TR","oa":868,"o":"$2C"},{"a":850,"l":"move_left","c":"move_left: Popeye on the right moves to the middle; from the middle to the left, where he is hit if Bluto's mallet is down.","t":"code","b":[95,8],"m":"LBL","oa":4104,"o":"lcd_popeye_r","x":[776]},{"a":852,"t":"code","b":[86],"m":"TM","o":"2"},{"a":853,"t":"code","b":[186],"m":"TR","oa":861,"o":"$3A"},{"a":854,"t":"code","b":[95,8],"m":"LBL","oa":4104,"o":"lcd_popeye_r","x":[870,874]},{"a":856,"t":"code","b":[6],"m":"RM","o":"2"},{"a":857,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye"},{"a":858,"t":"code","b":[15],"m":"SM","o":"3"},{"a":859,"t":"code","b":[5],"m":"RM","o":"1"},{"a":860,"t":"code","b":[110],"m":"RTN"},{"a":861,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye","x":[853]},{"a":862,"t":"code","b":[7],"m":"RM","o":"3"},{"a":863,"t":"code","b":[13],"m":"SM","o":"1"},{"a":864,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l"},{"a":865,"t":"code","b":[84],"m":"TM","o":"0"},{"a":866,"t":"code","b":[110],"m":"RTN"},{"a":867,"t":"code","b":[153],"m":"TR","oa":883,"o":"popeye_hit"},{"a":868,"t":"code","b":[85],"m":"TM","o":"1","x":[849]},{"a":869,"t":"code","b":[173],"m":"TR","oa":871,"o":"move_right"},{"a":870,"t":"code","b":[141],"m":"TR","oa":854,"o":"$0D"},{"a":871,"l":"move_right","c":"move_right: Popeye on the left moves to the middle; from the middle to the right, where he is hit if Bluto's fist is down.","t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye","x":[779,869]},{"a":872,"t":"code","b":[85],"m":"TM","o":"1"},{"a":873,"t":"code","b":[146],"m":"TR","oa":875,"o":"$12"},{"a":874,"t":"code","b":[141],"m":"TR","oa":854,"o":"$0D"},{"a":875,"t":"code","b":[7],"m":"RM","o":"3","x":[873]},{"a":876,"t":"code","b":[95,8],"m":"LBL","oa":4104,"o":"lcd_popeye_r"},{"a":878,"t":"code","b":[14],"m":"SM","o":"2"},{"a":879,"t":"code","b":[95,24],"m":"LBL","oa":4120,"o":"lcd_splash_r"},{"a":881,"t":"code","b":[87],"m":"TM","o":"3"},{"a":882,"t":"code","b":[110],"m":"RTN"},{"a":883,"l":"popeye_hit","c":"popeye_hit: Popeye is hit by Bluto: knocked = 8 (9 in the demo), and miss_flags bit 1 is set.","t":"code","b":[67],"m":"LB","oa":4144,"o":"mode","x":[350,867]},{"a":884,"t":"code","b":[84],"m":"TM","o":"0"},{"a":885,"t":"code","b":[40],"m":"LAX","o":"8"},{"a":886,"t":"code","b":[41],"m":"LAX","o":"9"},{"a":887,"t":"code","b":[95,67],"m":"LBL","oa":4163,"o":"knocked"},{"a":889,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":890,"t":"code","b":[95,6],"m":"LBL","oa":4102,"o":"miss_flags"},{"a":892,"t":"code","b":[13],"m":"SM","o":"1"},{"a":893,"t":"code","b":[110],"m":"RTN"},{"a":894,"t":"code","b":[0],"m":"SKIP"},{"a":895,"t":"code","b":[128],"m":"TR","oa":832,"o":"demo_watch"},{"a":896,"l":"fist_swing","c":"fist_swing: Bluto's fist, on the right. When bluto_ready says so, the raised fist starts down and miss_flags bit 1 is set; a fist halfway goes down to the bottom. With the fist down and Popeye on the right, he is hit. Then the catch check.","t":"code","b":[127],"m":"SSR","o":"$F","x":[491,959]},{"a":897,"t":"code","b":[252],"m":"TRS","oa":964,"o":"bluto_ready"},{"a":898,"t":"code","b":[183],"m":"TR","oa":904,"o":"$37"},{"a":899,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_07"},{"a":900,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":901,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_06"},{"a":902,"t":"code","b":[82],"m":"TC"},{"a":903,"t":"code","b":[13],"m":"SM","o":"1"},{"a":904,"t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_18","x":[898]},{"a":905,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":906,"t":"code","b":[82],"m":"TC"},{"a":907,"t":"code","b":[15],"m":"SM","o":"3"},{"a":908,"t":"code","b":[87],"m":"TM","o":"3"},{"a":909,"t":"code","b":[171],"m":"TR","oa":915,"o":"$2B"},{"a":910,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":911,"t":"code","b":[86],"m":"TM","o":"2"},{"a":912,"t":"code","b":[171],"m":"TR","oa":915,"o":"$2B"},{"a":913,"t":"code","b":[117],"m":"SSR","o":"5"},{"a":914,"t":"code","b":[186],"m":"TR","oa":349,"o":"$3A"},{"a":915,"t":"code","b":[119],"m":"SSR","o":"7","x":[909,912]},{"a":916,"t":"code","b":[148],"m":"TR","oa":504,"o":"$14"},{"a":917,"l":"bluto_switch","c":"bluto_switch: in Game B and the demo, when colon_flags bit 1 is set, Bluto changes boats if his weapon is up: from the left with the mallet to the right with the fist, or back. The flag is used up when he changes; with his weapon not up he tries again at the next bottles' step.","t":"code","b":[225],"m":"TRS","oa":1049,"o":"point_01","x":[366]},{"a":918,"t":"code","b":[209],"m":"TRS","oa":1071,"o":"take_bit1"},{"a":919,"t":"code","b":[157],"m":"TR","oa":926,"o":"$1D"},{"a":920,"t":"code","b":[7],"m":"RM","o":"3"},{"a":921,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":922,"t":"code","b":[15],"m":"SM","o":"3"},{"a":923,"t":"code","b":[108],"m":"DECB"},{"a":924,"t":"code","b":[12],"m":"SM","o":"0"},{"a":925,"t":"code","b":[155],"m":"TR","oa":934,"o":"$1B"},{"a":926,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_07","x":[919]},{"a":927,"t":"code","b":[226],"m":"TRS","oa":1070,"o":"take_bit0"},{"a":928,"t":"code","b":[150],"m":"TR","oa":936,"o":"$16"},{"a":929,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":930,"t":"code","b":[7],"m":"RM","o":"3"},{"a":931,"t":"code","b":[225],"m":"TRS","oa":1049,"o":"point_01"},{"a":932,"t":"code","b":[15],"m":"SM","o":"3"},{"a":933,"t":"code","b":[13],"m":"SM","o":"1"},{"a":934,"t":"code","b":[250],"m":"TRS","oa":1053,"o":"point_05","x":[925]},{"a":935,"t":"code","b":[5],"m":"RM","o":"1"},{"a":936,"t":"code","b":[117],"m":"SSR","o":"5","x":[928]},{"a":937,"t":"code","b":[145],"m":"TR","oa":367,"o":"bottles_step"},{"a":938,"l":"delay_loop","c":"delay_loop: one pass of the delay: 8 INCB and the TR between them (the last TR skipped, still a cycle), 19 instructions for each of 10 counts of A, 191 with the LAX, then delay_count. With delay_count and read_pad a pass costs about 210 cycles.","t":"code","b":[38],"m":"LAX","o":"6","x":[952]},{"a":939,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye","x":[943]},{"a":940,"t":"code","b":[100],"m":"INCB","x":[941]},{"a":941,"t":"code","b":[137],"m":"TR","oa":940,"o":"$09"},{"a":942,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":943,"t":"code","b":[146],"m":"TR","oa":939,"o":"$12"},{"a":944,"l":"delay_count","c":"delay_count: counts delay_left down, a pass of delay_loop each, and reads left and right between them: a new press marks the step as still due (tick_flags bit 3) and goes to pad_moved, so Popeye moves without waiting. At 0 the game's step runs ($00C0).","t":"code","b":[95,74],"m":"LBL","oa":4170,"o":"delay_left","x":[62]},{"a":946,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":947,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":948,"t":"code","b":[130],"m":"TR","oa":957,"o":"$02"},{"a":949,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":950,"t":"code","b":[127],"m":"SSR","o":"$F"},{"a":951,"t":"code","b":[205],"m":"TRS","oa":982,"o":"read_pad"},{"a":952,"t":"code","b":[165],"m":"TR","oa":938,"o":"delay_loop"},{"a":953,"t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags"},{"a":954,"t":"code","b":[15],"m":"SM","o":"3"},{"a":955,"t":"code","b":[123],"m":"SSR","o":"$B"},{"a":956,"t":"code","b":[159],"m":"TR","oa":710,"o":"pad_moved"},{"a":957,"t":"code","b":[115],"m":"SSR","o":"3","x":[948]},{"a":958,"t":"code","b":[128],"m":"TR","oa":192,"o":"game_step"},{"a":959,"t":"code","b":[128],"m":"TR","oa":896,"o":"fist_swing"},{"a":960,"l":"reset","c":"reset: where power on and ACL start (page $0F, step 0): goes to power_on ($0526).","t":"code","b":[0],"m":"SKIP","x":[1023]},{"a":961,"t":"code","b":[109],"m":"COMCB"},{"a":962,"t":"code","b":[116],"m":"SSR","o":"4"},{"a":963,"t":"code","b":[155],"m":"TR","oa":294,"o":"$1B"},{"a":964,"l":"bluto_ready","c":"bluto_ready: clears C and returns with a skip when Bluto may start a swing: when bit 1 of idle_lo is set (the idle count's seconds 2-3, 6-7 and so on) and in_flight is even.","t":"code","b":[102],"m":"RC","x":[332,897]},{"a":965,"t":"code","b":[95,65],"m":"LBL","oa":4161,"o":"idle_lo"},{"a":967,"t":"code","b":[85],"m":"TM","o":"1"},{"a":968,"t":"code","b":[110],"m":"RTN"},{"a":969,"t":"code","b":[68],"m":"LB","oa":4105,"o":"in_flight"},{"a":970,"t":"code","b":[84],"m":"TM","o":"0"},{"a":971,"t":"code","b":[111],"m":"RTNS"},{"a":972,"t":"code","b":[110],"m":"RTN"},{"a":973,"l":"fist_allowed","c":"fist_allowed: returns with a skip in a game, and in the demo when no swing is under way; the weapons are put back only then.","t":"code","b":[67],"m":"LB","oa":4144,"o":"mode","x":[441,493]},{"a":974,"t":"code","b":[84],"m":"TM","o":"0"},{"a":975,"t":"code","b":[111],"m":"RTNS"},{"a":976,"t":"code","b":[95,6],"m":"LBL","oa":4102,"o":"miss_flags"},{"a":978,"t":"code","b":[85],"m":"TM","o":"1"},{"a":979,"t":"code","b":[111],"m":"RTNS"},{"a":980,"t":"code","b":[110],"m":"RTN"},{"a":981,"t":"code","b":[0],"m":"SKIP"},{"a":982,"l":"read_pad","c":"read_pad: reads left (beta) and right (alpha), except in the clock, where it returns at once. Returns with a skip for a new press of one of them, after setting pad_flags bit 0 and repeat_at to the divider's value plus 4. Left and right together, or neither, clear bit 0. A press held after power on, or in the alarm's setting, repeats when the divider reaches repeat_at, about four times a second ($03EB): in mode 8 the ADX 9 at $03E9 carries and skips the RTN. In the clock and in a game a held press does nothing.","t":"code","b":[67],"m":"LB","oa":4144,"o":"mode","x":[8,951]},{"a":983,"t":"code","b":[84],"m":"TM","o":"0"},{"a":984,"t":"code","b":[144],"m":"TR","oa":986,"o":"$10"},{"a":985,"t":"code","b":[110],"m":"RTN"},{"a":986,"t":"code","b":[74],"m":"LB","oa":4138,"o":"pad_flags","x":[984]},{"a":987,"t":"code","b":[81],"m":"TB"},{"a":988,"t":"code","b":[163],"m":"TR","oa":993,"o":"$23"},{"a":989,"t":"code","b":[80],"m":"TA"},{"a":990,"t":"code","b":[152],"m":"TR","oa":995,"o":"$18"},{"a":991,"t":"code","b":[4],"m":"RM","o":"0","x":[994]},{"a":992,"t":"code","b":[110],"m":"RTN"},{"a":993,"t":"code","b":[80],"m":"TA","x":[988]},{"a":994,"t":"code","b":[142],"m":"TR","oa":991,"o":"$0E"},{"a":995,"t":"code","b":[84],"m":"TM","o":"0","x":[990]},{"a":996,"t":"code","b":[170],"m":"TR","oa":1017,"o":"$2A"},{"a":997,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":998,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":999,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":1000,"t":"code","b":[146],"m":"TR","oa":1003,"o":"$12"},{"a":1001,"t":"code","b":[57],"m":"ADX","o":"9"},{"a":1002,"t":"code","b":[110],"m":"RTN"},{"a":1003,"t":"code","b":[94,4],"m":"DTA","x":[1000]},{"a":1005,"t":"code","b":[95,40],"m":"LBL","oa":4136,"o":"repeat_at"},{"a":1007,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1008,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1009,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1010,"t":"code","b":[83],"m":"TAM"},{"a":1011,"t":"code","b":[110],"m":"RTN"},{"a":1012,"t":"code","b":[52],"m":"ADX","o":"4","x":[1022]},{"a":1013,"t":"code","b":[0],"m":"SKIP"},{"a":1014,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1015,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1016,"t":"code","b":[111],"m":"RTNS"},{"a":1017,"t":"code","b":[12],"m":"SM","o":"0","x":[996]},{"a":1018,"t":"code","b":[94,4],"m":"DTA"},{"a":1020,"t":"code","b":[95,40],"m":"LBL","oa":4136,"o":"repeat_at"},{"a":1022,"t":"code","b":[140],"m":"TR","oa":1012,"o":"$0C"},{"a":1023,"t":"code","b":[128],"m":"TR","oa":960,"o":"reset"},{"a":1024,"l":"clear_cell","c":"clear_cell: clears the cell B points at and returns its old value in A (jumps to $0483).","t":"code","b":[225],"m":"TRS","oa":1214,"o":"$21","x":[409,1087,1376,1466,1499,1723]},{"a":1025,"l":"clear_idle","c":"clear_idle: clears the idle count, cells $41 and $40 (falls into clear_down).","t":"code","b":[95,65],"m":"LBL","oa":4161,"o":"idle_lo","x":[434,514,560,571,608,728,1310]},{"a":1027,"l":"clear_down","c":"clear_down: clears the cell B points at and every cell below it in the same row, down to column 0 (the loop at $0498).","t":"code","b":[227],"m":"TRS","oa":1176,"o":"h_clear_down","x":[1320,1322,1324,1326,1328,1473,1475,1478,1497,1757]},{"a":1028,"l":"set_redraw","c":"set_redraw: sets bit 0 of $2B, the redraw flag: something on the screen has changed, so the main loop's next pass draws the screen instead of sleeping or stepping the game. draw_prep ($061D) uses it up.","t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags","x":[3,192,749,768,1309,1330,1344,1413,1455,1468,1494,1556]},{"a":1029,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1030,"t":"code","b":[110],"m":"RTN"},{"a":1031,"l":"shift_cell","c":"shift_cell: shifts the cell B points at into the LCD's W' latches, the four bits as they are (WS when bit 3 is set, WR when clear), and moves B one column on. draw_screen calls it for each cell of the picture.","t":"code","b":[24],"m":"LDA","o":"0","x":[1462,1601,1603,1604,1605,1606,1634,1636,1637,1638,1639,1640]},{"a":1032,"l":"shift_a","c":"shift_a: shift_cell for a value already in A: A goes into W', bit 3 taken from the cell B points at.","t":"code","b":[87],"m":"TM","o":"3","x":[1622]},{"a":1033,"t":"code","b":[143],"m":"TR","oa":1036,"o":"$0F"},{"a":1034,"t":"code","b":[99],"m":"WS"},{"a":1035,"t":"code","b":[167],"m":"TR","oa":1037,"o":"$27"},{"a":1036,"t":"code","b":[98],"m":"WR","x":[1033]},{"a":1037,"t":"code","b":[100],"m":"INCB","x":[1035]},{"a":1038,"t":"code","b":[110],"m":"RTN"},{"a":1039,"l":"dec_in_flight","c":"dec_in_flight: takes one off in_flight, stopping at 0 (at $0480).","t":"code","b":[224],"m":"TRS","oa":1152,"o":"dec_in_flight_body","x":[402]},{"a":1040,"l":"carry_count","c":"carry_count: with C set, adds one to in_flight and returns A = 0; with C clear, returns A = 8 (at $048C).","t":"code","b":[239],"m":"TRS","oa":1164,"o":"h_carry_count","x":[305,372,454,663,685,702]},{"a":1041,"l":"test_game_b_c","c":"test_game_b_c: points B at mode and clears C in Game B, sets it otherwise (at $0464).","t":"code","b":[209],"m":"TRS","oa":1150,"o":"$11","x":[99,115,1514,1667]},{"a":1042,"l":"skip_if_game","c":"skip_if_game: points B at mode and returns with a skip when a game is running, Game B (bit 1) or Game A (bit 2) (at $0474).","t":"code","b":[220],"m":"TRS","oa":1140,"o":"h_skip_game","x":[15,67,230,420,796,1288,1353,1484,1545,1568,1812]},{"a":1043,"l":"read_divider","c":"read_divider: A = the divider's bits 11-14 (DTA), which step 16 times a second: the chance in Olive's throws, the pose she rings the alarm's bell in, and the bonus's half-second beat (at $0489).","t":"code","b":[229],"m":"TRS","oa":1212,"o":"$25","x":[227,1544,1817]},{"a":1044,"l":"skip_if_clear0","c":"skip_if_clear0 to skip_if_clear3 ($0414-$0417): return with a skip when bit n of the cell B points at is clear (at $04AD, $0440, $04A9, $04B9).","t":"code","b":[228],"m":"TRS","oa":1197,"o":"$24","x":[370,1394,1690,1703,1708,1720,1731]},{"a":1045,"l":"skip_if_clear1","c":"skip_if_clear1: returns with a skip when bit 1 of the cell B points at is clear.","t":"code","b":[208],"m":"TRS","oa":1088,"o":"h_skip_clear1","x":[37,1692]},{"a":1046,"l":"skip_if_clear2","c":"skip_if_clear2: returns with a skip when bit 2 of the cell B points at is clear.","t":"code","b":[235],"m":"TRS","oa":1193,"o":"h_skip_clear2","x":[34,158,363,1286,1553,1577,1705,1717]},{"a":1047,"l":"skip_if_clear3","c":"skip_if_clear3: returns with a skip when bit 3 of the cell B points at is clear.","t":"code","b":[226],"m":"TRS","oa":1213,"o":"$22","x":[18,220,303,452,474,1411,1421,1512,1687,1700,1715]},{"a":1048,"l":"skip_if_carry","c":"skip_if_carry: returns with a skip when C is set (at $045C).","t":"code","b":[217],"m":"TRS","oa":1132,"o":"$19","x":[306,373]},{"a":1049,"l":"point_01","c":"point_01 to point_08 ($0419-$0420), point_11, point_14, point_18, point_15 and point_31: each points B at one cell and returns (pages $11 and $12).","t":"code","b":[213],"m":"TRS","oa":1148,"o":"$15","x":[334,369,378,917,931,1481]},{"a":1050,"l":"point_02","c":"point_02: B = $02, Olive Oyl.","t":"code","b":[221],"m":"TRS","oa":1110,"o":"$1D","x":[310,1385,1453,1487,1539,1561,1579,1775]},{"a":1051,"l":"point_03","c":"point_03: B = $03, the cans' first four places.","t":"code","b":[230],"m":"TRS","oa":1175,"o":"$26","x":[302,312,708,1710]},{"a":1052,"l":"point_04","c":"point_04: B = $04, the miss marks and the cans' 5th and 6th places.","t":"code","b":[245],"m":"TRS","oa":1276,"o":"h_point_04","x":[431,820,1615,1834]},{"a":1053,"l":"point_05","c":"point_05: B = $05, colon_flags.","t":"code","b":[238],"m":"TRS","oa":1183,"o":"$2E","x":[25,27,199,359,367,747,934,1668,1798]},{"a":1054,"l":"point_06","c":"point_06: B = $06, miss_flags.","t":"code","b":[219],"m":"TRS","oa":1129,"o":"h_point_06","x":[90,292,336,418,429,479,901,1836]},{"a":1055,"l":"point_07","c":"point_07: B = $07, fist_flags.","t":"code","b":[212],"m":"TRS","oa":1133,"o":"h_point_07","x":[276,287,404,413,502,899,926,1648,1838]},{"a":1056,"l":"point_08","c":"point_08: B = $08, Popeye on the right and Bluto's right boat.","t":"code","b":[214],"m":"TRS","oa":1111,"o":"$16","x":[236,258,290,410,484,823,921,929,1600,1719,1747]},{"a":1057,"l":"point_11","c":"point_11: B = $11, the bottles' 2nd and 3rd places, GAME B, the mallet halfway.","t":"code","b":[95,17],"m":"LBL","oa":4113,"o":"lcd_bottles","x":[186,339,1515]},{"a":1059,"t":"code","b":[110],"m":"RTN"},{"a":1060,"l":"point_14","c":"point_14: B = $14, the hours' 1, AM, PM and the pineapple's 5th place.","t":"code","b":[95,20],"m":"LBL","oa":4116,"o":"lcd_hours","x":[463,1794,1802]},{"a":1062,"t":"code","b":[110],"m":"RTN"},{"a":1063,"l":"point_18","c":"point_18: B = $18, the items' splashes and Bluto's fist halfway and down.","t":"code","b":[218],"m":"TRS","oa":1147,"o":"$1A","x":[273,400,473,486,499,904,1633,1651,1756]},{"a":1064,"l":"select_buttons","c":"select_buttons: writes 7 to the R pins (ATR), which selects the R4 row (Time, Game B, Game A, Alarm) and keeps R1, the buzzer, still; then points B at keys ($31).","t":"code","b":[39],"m":"LAX","o":"7","x":[50,1292,1329]},{"a":1065,"t":"code","b":[1],"m":"ATR"},{"a":1066,"l":"point_31","c":"point_31: B = $31, keys (the second half of select_buttons).","t":"code","b":[210],"m":"TRS","oa":1149,"o":"$12","x":[1730]},{"a":1067,"l":"point_15","c":"point_15: B = $15, the first digit.","t":"code","b":[232],"m":"TRS","oa":1200,"o":"h_point_15","x":[100,116,129,1381,1677,1758,1806]},{"a":1068,"l":"skip_if_no_redraw","c":"skip_if_no_redraw: returns with a skip when the redraw flag ($2B bit 0) is clear (at $04AC).","t":"code","b":[233],"m":"TRS","oa":1196,"o":"h_skip_no_redraw","x":[48,56,627]},{"a":1069,"l":"skip_if_over","c":"skip_if_over: points B at $04 and returns with a skip when its bit 1, the third miss mark, is lit: the game is over (at $045F).","t":"code","b":[222],"m":"TRS","oa":1119,"o":"h_skip_over","x":[39,193,1290,1355,1547]},{"a":1070,"l":"take_bit0","c":"take_bit0 to take_bit3 ($042E-$0431): test bit n of the cell B points at; when it is set, clear it and return with a skip. A flag is read and used up in one call (at $0458, $04A5, $0470, $044C).","t":"code","b":[211],"m":"TRS","oa":1112,"o":"h_take_bit0","x":[65,353,482,927,1566]},{"a":1071,"l":"take_bit1","c":"take_bit1: if bit 1 of the cell B points at is set, clears it and returns with a skip.","t":"code","b":[237],"m":"TRS","oa":1174,"o":"$2D","x":[300,396,405,411,416,670,673,918,1408]},{"a":1072,"l":"take_bit2","c":"take_bit2: if bit 2 of the cell B points at is set, clears it and returns with a skip.","t":"code","b":[216],"m":"TRS","oa":1136,"o":"h_take_bit2","x":[23,323,1379,1399,1649]},{"a":1073,"l":"take_bit3","c":"take_bit3: if bit 3 of the cell B points at is set, clears it and returns with a skip.","t":"code","b":[223],"m":"TRS","oa":1100,"o":"h_take_bit3","x":[59,274,288,293,500,1303,1457]},{"a":1074,"l":"skip_if_clock","c":"skip_if_clock: returns with a skip when mode is below 2, just after power on or the clock; A is left as mode - 2 (at $04B4).","t":"code","b":[236],"m":"TRS","oa":1204,"o":"h_skip_clock","x":[211,801,1502,1585]},{"a":1075,"l":"caught_item","c":"caught_item: a catch: sets sound_flags bit 2 and events bit 0, and takes one off in_flight (at $04A0).","t":"code","b":[231],"m":"TRS","oa":1184,"o":"h_caught_item","x":[567,800]},{"a":1076,"l":"queue_sound_8","c":"queue_sound_8, queue_sound_9, queue_sound_5 ($0434-$0436): a run of LAX, of which only the first an entry reaches loads A, so each entry puts its own code, 8, 9 or 5, in sound_queued.","t":"code","b":[40],"m":"LAX","o":"8","x":[424]},{"a":1077,"l":"queue_sound_9","c":"queue_sound_9: puts 9 in sound_queued (an item into the sea).","t":"code","b":[41],"m":"LAX","o":"9","x":[403]},{"a":1078,"l":"queue_sound_5","c":"queue_sound_5: puts 5 in sound_queued (Popeye knocked into the sea); the shared end of the three entries.","t":"code","b":[37],"m":"LAX","o":"5","x":[266,1852]},{"a":1079,"t":"code","b":[95,33],"m":"LBL","oa":4129,"o":"sound_queued"},{"a":1081,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1082,"t":"code","b":[110],"m":"RTN"},{"a":1083,"l":"swap_c_bit0","c":"swap_c_bit0 to swap_c_bit3 ($043B-$043E): exchange C with bit n of the cell B points at: the bit takes C and C takes the bit's old value (at $04ED, $04DF, $04D1, $04C0). A chain of these calls moves every lit segment of a lane one place along it, which is how everything on the screen moves.","t":"code","b":[244],"m":"TRS","oa":1261,"o":"h_swap_bit0","x":[187,379,387,430,432,460,793,817,824,900,1797]},{"a":1084,"l":"swap_c_bit1","c":"swap_c_bit1: exchanges C with bit 1 of the cell B points at.","t":"code","b":[254],"m":"TRS","oa":1247,"o":"h_swap_bit1","x":[188,261,263,265,335,433,459,790,816]},{"a":1085,"l":"swap_c_bit2","c":"swap_c_bit2: exchanges C with bit 2 of the cell B points at.","t":"code","b":[250],"m":"TRS","oa":1275,"o":"$3A","x":[260,388,458,785,815,822,905,1584]},{"a":1086,"l":"swap_c_bit3","c":"swap_c_bit3: exchanges C with bit 3 of the cell B points at.","t":"code","b":[240],"m":"TRS","oa":1216,"o":"h_swap_bit3","x":[313,340,457,464,466,821]},{"a":1087,"t":"code","b":[128],"m":"TR","oa":1024,"o":"clear_cell"},{"a":1088,"l":"h_skip_clear1","c":"The helpers' bodies, pages $11 to $13, each reached from the call table above by a TRS, which inside the subroutine is a jump within pages $10-$13 (the page from bits 4-5 of its operand). Most are a bit test and RTN or RTNS, or an LBL and RTN; longer ones are dec_in_flight_body, carry_count, clear_down, caught_item, read_divider, test_game_b_c, skip_if_clock and the four swaps. A TR here stays on its page.","t":"code","b":[85],"m":"TM","o":"1","x":[1045,1151]},{"a":1089,"t":"code","b":[111],"m":"RTNS"},{"a":1090,"t":"code","b":[110],"m":"RTN"},{"a":1091,"l":"h_point_18","c":"h_point_18: LBL $18 and RTN, point_18's body; the TR after page $11's helpers ($047B) leads here.","t":"code","b":[95,24],"m":"LBL","oa":4120,"o":"lcd_splash_r","x":[1147]},{"a":1093,"t":"code","b":[110],"m":"RTN"},{"a":1094,"l":"h_point_01","c":"h_point_01: point_01's body.","t":"code","b":[95,1],"m":"LBL","oa":4097,"o":"lcd_bluto_l","x":[1148]},{"a":1096,"t":"code","b":[110],"m":"RTN"},{"a":1097,"l":"h_point_31","c":"h_point_31: the end of select_buttons: B = $31.","t":"code","b":[95,49],"m":"LBL","oa":4145,"o":"keys","x":[1149]},{"a":1099,"t":"code","b":[110],"m":"RTN"},{"a":1100,"l":"h_take_bit3","c":"h_take_bit3: take_bit3's body: TM 3, then RTN when clear, RM 3 and RTNS when set.","t":"code","b":[87],"m":"TM","o":"3","x":[1073]},{"a":1101,"t":"code","b":[110],"m":"RTN"},{"a":1102,"t":"code","b":[7],"m":"RM","o":"3"},{"a":1103,"t":"code","b":[111],"m":"RTNS"},{"a":1104,"l":"h_point_02","c":"h_point_02: point_02's body.","t":"code","b":[95,2],"m":"LBL","oa":4098,"o":"lcd_olive","x":[1110]},{"a":1106,"t":"code","b":[110],"m":"RTN"},{"a":1107,"l":"h_point_08","c":"h_point_08: point_08's body. The two TR after it are point_02's and point_08's way in from page $10.","t":"code","b":[95,8],"m":"LBL","oa":4104,"o":"lcd_popeye_r","x":[1111]},{"a":1109,"t":"code","b":[110],"m":"RTN"},{"a":1110,"t":"code","b":[156],"m":"TR","oa":1104,"o":"h_point_02","x":[1050]},{"a":1111,"t":"code","b":[171],"m":"TR","oa":1107,"o":"h_point_08","x":[1056]},{"a":1112,"l":"h_take_bit0","c":"h_take_bit0: take_bit0's body.","t":"code","b":[84],"m":"TM","o":"0","x":[1070]},{"a":1113,"t":"code","b":[110],"m":"RTN"},{"a":1114,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1115,"t":"code","b":[111],"m":"RTNS"},{"a":1116,"l":"h_skip_carry","c":"h_skip_carry: skip_if_carry's body: TC skips the RTNS when C is clear.","t":"code","b":[82],"m":"TC","x":[1132]},{"a":1117,"t":"code","b":[111],"m":"RTNS"},{"a":1118,"t":"code","b":[110],"m":"RTN"},{"a":1119,"l":"h_skip_over","c":"h_skip_over: skip_if_over's body: B = $04, TM 1.","t":"code","b":[95,4],"m":"LBL","oa":4100,"o":"lcd_misses","x":[1069]},{"a":1121,"t":"code","b":[85],"m":"TM","o":"1"},{"a":1122,"t":"code","b":[110],"m":"RTN"},{"a":1123,"t":"code","b":[111],"m":"RTNS"},{"a":1124,"l":"h_test_game_b","c":"h_test_game_b: test_game_b_c's body: RC, then TM 1 skips the SC when mode's bit 1 (Game B) is set.","t":"code","b":[67],"m":"LB","oa":4144,"o":"mode","x":[1150]},{"a":1125,"t":"code","b":[102],"m":"RC"},{"a":1126,"t":"code","b":[85],"m":"TM","o":"1"},{"a":1127,"t":"code","b":[103],"m":"SC"},{"a":1128,"t":"code","b":[110],"m":"RTN"},{"a":1129,"l":"h_point_06","c":"h_point_06: point_06's body.","t":"code","b":[95,6],"m":"LBL","oa":4102,"o":"miss_flags","x":[1054]},{"a":1131,"t":"code","b":[110],"m":"RTN"},{"a":1132,"t":"code","b":[180],"m":"TR","oa":1116,"o":"h_skip_carry","x":[1048]},{"a":1133,"l":"h_point_07","c":"h_point_07: point_07's body.","t":"code","b":[95,7],"m":"LBL","oa":4103,"o":"fist_flags","x":[1055]},{"a":1135,"t":"code","b":[110],"m":"RTN"},{"a":1136,"l":"h_take_bit2","c":"h_take_bit2: take_bit2's body.","t":"code","b":[86],"m":"TM","o":"2","x":[1072]},{"a":1137,"t":"code","b":[110],"m":"RTN"},{"a":1138,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1139,"t":"code","b":[111],"m":"RTNS"},{"a":1140,"l":"h_skip_game","c":"h_skip_game: skip_if_game's body: mode bit 1, then bit 2; the TRs after it are other helpers' ways in from page $10.","t":"code","b":[67],"m":"LB","oa":4144,"o":"mode","x":[1042]},{"a":1141,"t":"code","b":[85],"m":"TM","o":"1"},{"a":1142,"t":"code","b":[148],"m":"TR","oa":1144,"o":"$14"},{"a":1143,"t":"code","b":[111],"m":"RTNS"},{"a":1144,"t":"code","b":[86],"m":"TM","o":"2","x":[1142]},{"a":1145,"t":"code","b":[110],"m":"RTN"},{"a":1146,"t":"code","b":[111],"m":"RTNS"},{"a":1147,"t":"code","b":[184],"m":"TR","oa":1091,"o":"h_point_18","x":[1063]},{"a":1148,"t":"code","b":[159],"m":"TR","oa":1094,"o":"h_point_01","x":[1049]},{"a":1149,"t":"code","b":[187],"m":"TR","oa":1097,"o":"h_point_31","x":[1066]},{"a":1150,"t":"code","b":[172],"m":"TR","oa":1124,"o":"h_test_game_b","x":[1041]},{"a":1151,"t":"code","b":[128],"m":"TR","oa":1088,"o":"h_skip_clear1"},{"a":1152,"l":"dec_in_flight_body","c":"dec_in_flight_body: in_flight less one, stopping at 0; entered at $0483 it is clear_cell's body.","t":"code","b":[68],"m":"LB","oa":4105,"o":"in_flight","x":[1039,1188,1215]},{"a":1153,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":1154,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":1155,"t":"code","b":[32],"m":"LAX","o":"0","x":[1214]},{"a":1156,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1157,"t":"code","b":[110],"m":"RTN"},{"a":1158,"l":"h_point_03","c":"h_point_03: point_03's body.","t":"code","b":[95,3],"m":"LBL","oa":4099,"o":"lcd_cans","x":[1175]},{"a":1160,"t":"code","b":[110],"m":"RTN"},{"a":1161,"l":"h_read_divider","c":"h_read_divider: read_divider's body: DTA and RTN.","t":"code","b":[94,4],"m":"DTA","x":[1212]},{"a":1163,"t":"code","b":[110],"m":"RTN"},{"a":1164,"l":"h_carry_count","c":"h_carry_count: carry_count's body: with C set, in_flight + 1 and A = 0 (the LAX 8 after LAX 0 is skipped); with C clear, A = 8.","t":"code","b":[82],"m":"TC","x":[1040]},{"a":1165,"t":"code","b":[185],"m":"TR","oa":1167,"o":"$39"},{"a":1166,"t":"code","b":[181],"m":"TR","oa":1172,"o":"$35"},{"a":1167,"t":"code","b":[68],"m":"LB","oa":4105,"o":"in_flight","x":[1165]},{"a":1168,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":1169,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":1170,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1171,"t":"code","b":[32],"m":"LAX","o":"0"},{"a":1172,"t":"code","b":[40],"m":"LAX","o":"8","x":[1166]},{"a":1173,"t":"code","b":[110],"m":"RTN"},{"a":1174,"t":"code","b":[182],"m":"TR","oa":1189,"o":"h_take_bit1","x":[1071]},{"a":1175,"t":"code","b":[159],"m":"TR","oa":1158,"o":"h_point_03","x":[1051]},{"a":1176,"l":"h_clear_down","c":"h_clear_down: clear_down's loop: LAX 0 and EXCD until BL wraps below 0.","t":"code","b":[32],"m":"LAX","o":"0","x":[1027,1178]},{"a":1177,"t":"code","b":[28],"m":"EXCD","o":"0"},{"a":1178,"t":"code","b":[131],"m":"TR","oa":1176,"o":"h_clear_down"},{"a":1179,"t":"code","b":[110],"m":"RTN"},{"a":1180,"l":"h_point_05","c":"h_point_05: point_05's body.","t":"code","b":[95,5],"m":"LBL","oa":4101,"o":"colon_flags","x":[1183]},{"a":1182,"t":"code","b":[110],"m":"RTN"},{"a":1183,"t":"code","b":[180],"m":"TR","oa":1180,"o":"h_point_05","x":[1053]},{"a":1184,"l":"h_caught_item","c":"h_caught_item: caught_item's body: sound_flags bit 2, events bit 0, then on to dec_in_flight's body.","t":"code","b":[66],"m":"LB","oa":4128,"o":"sound_flags","x":[1075]},{"a":1185,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1186,"t":"code","b":[76],"m":"LB","oa":4107,"o":"events"},{"a":1187,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1188,"t":"code","b":[128],"m":"TR","oa":1152,"o":"dec_in_flight_body"},{"a":1189,"l":"h_take_bit1","c":"h_take_bit1: take_bit1's body.","t":"code","b":[85],"m":"TM","o":"1","x":[1174]},{"a":1190,"t":"code","b":[110],"m":"RTN"},{"a":1191,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1192,"t":"code","b":[111],"m":"RTNS"},{"a":1193,"l":"h_skip_clear2","c":"h_skip_clear2: skip_if_clear2's body.","t":"code","b":[86],"m":"TM","o":"2","x":[1046]},{"a":1194,"t":"code","b":[111],"m":"RTNS"},{"a":1195,"t":"code","b":[110],"m":"RTN"},{"a":1196,"l":"h_skip_no_redraw","c":"h_skip_no_redraw: skip_if_no_redraw's body: B = $2B, TM 0.","t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags","x":[1068]},{"a":1197,"t":"code","b":[84],"m":"TM","o":"0","x":[1044]},{"a":1198,"t":"code","b":[111],"m":"RTNS"},{"a":1199,"t":"code","b":[110],"m":"RTN"},{"a":1200,"l":"h_point_15","c":"h_point_15: point_15's body; the SKIP after its RTN is never run.","t":"code","b":[95,21],"m":"LBL","oa":4117,"o":"digit_1","x":[1067]},{"a":1202,"t":"code","b":[110],"m":"RTN"},{"a":1203,"t":"code","b":[0],"m":"SKIP"},{"a":1204,"l":"h_skip_clock","c":"h_skip_clock: skip_if_clock's body: A = mode + 14, whose carry (mode 2 or more) skips the RTNS.","t":"code","b":[67],"m":"LB","oa":4144,"o":"mode","x":[1074,1849]},{"a":1205,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":1206,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":1207,"t":"code","b":[111],"m":"RTNS"},{"a":1208,"t":"code","b":[110],"m":"RTN"},{"a":1209,"l":"h_skip_clear3","c":"h_skip_clear3: skip_if_clear3's body; the TRs after it are other helpers' ways in from page $10.","t":"code","b":[87],"m":"TM","o":"3","x":[1213]},{"a":1210,"t":"code","b":[111],"m":"RTNS"},{"a":1211,"t":"code","b":[110],"m":"RTN"},{"a":1212,"t":"code","b":[187],"m":"TR","oa":1161,"o":"h_read_divider","x":[1043]},{"a":1213,"t":"code","b":[170],"m":"TR","oa":1209,"o":"h_skip_clear3","x":[1047]},{"a":1214,"t":"code","b":[184],"m":"TR","oa":1155,"o":"$38","x":[1024]},{"a":1215,"t":"code","b":[128],"m":"TR","oa":1152,"o":"dec_in_flight_body"},{"a":1216,"l":"h_swap_bit3","c":"The four swaps of C and a bit (to $04FB). Each tests the bit and C and sets or clears the bit; the ends at $04C5 (SC, and A = 0) and $04CD (RC) leave C as the bit was.","t":"code","b":[87],"m":"TM","o":"3","x":[1086,1279]},{"a":1217,"t":"code","b":[189],"m":"TR","oa":1226,"o":"$3D"},{"a":1218,"t":"code","b":[82],"m":"TC"},{"a":1219,"t":"code","b":[183],"m":"TR","oa":1224,"o":"$37"},{"a":1220,"t":"code","b":[7],"m":"RM","o":"3"},{"a":1221,"t":"code","b":[103],"m":"SC","x":[1225,1238,1240,1252,1254,1266,1268]},{"a":1222,"t":"code","b":[32],"m":"LAX","o":"0"},{"a":1223,"t":"code","b":[110],"m":"RTN"},{"a":1224,"t":"code","b":[15],"m":"SM","o":"3","x":[1219]},{"a":1225,"t":"code","b":[190],"m":"TR","oa":1221,"o":"$3E"},{"a":1226,"t":"code","b":[82],"m":"TC","x":[1217]},{"a":1227,"t":"code","b":[185],"m":"TR","oa":1231,"o":"$39"},{"a":1228,"t":"code","b":[7],"m":"RM","o":"3"},{"a":1229,"t":"code","b":[102],"m":"RC","x":[1232,1244,1246,1258,1260,1272,1274]},{"a":1230,"t":"code","b":[110],"m":"RTN"},{"a":1231,"t":"code","b":[15],"m":"SM","o":"3","x":[1227]},{"a":1232,"t":"code","b":[167],"m":"TR","oa":1229,"o":"$27"},{"a":1233,"l":"h_swap_bit2","c":"h_swap_bit2: swap_c_bit2's body.","t":"code","b":[86],"m":"TM","o":"2","x":[1275]},{"a":1234,"t":"code","b":[161],"m":"TR","oa":1241,"o":"$21"},{"a":1235,"t":"code","b":[82],"m":"TC"},{"a":1236,"t":"code","b":[134],"m":"TR","oa":1239,"o":"$06"},{"a":1237,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1238,"t":"code","b":[190],"m":"TR","oa":1221,"o":"$3E"},{"a":1239,"t":"code","b":[14],"m":"SM","o":"2","x":[1236]},{"a":1240,"t":"code","b":[190],"m":"TR","oa":1221,"o":"$3E"},{"a":1241,"t":"code","b":[82],"m":"TC","x":[1234]},{"a":1242,"t":"code","b":[186],"m":"TR","oa":1245,"o":"$3A"},{"a":1243,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1244,"t":"code","b":[167],"m":"TR","oa":1229,"o":"$27"},{"a":1245,"t":"code","b":[14],"m":"SM","o":"2","x":[1242]},{"a":1246,"t":"code","b":[167],"m":"TR","oa":1229,"o":"$27"},{"a":1247,"l":"h_swap_bit1","c":"h_swap_bit1: swap_c_bit1's body.","t":"code","b":[85],"m":"TM","o":"1","x":[1084]},{"a":1248,"t":"code","b":[173],"m":"TR","oa":1255,"o":"$2D"},{"a":1249,"t":"code","b":[82],"m":"TC"},{"a":1250,"t":"code","b":[182],"m":"TR","oa":1253,"o":"$36"},{"a":1251,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1252,"t":"code","b":[190],"m":"TR","oa":1221,"o":"$3E"},{"a":1253,"t":"code","b":[13],"m":"SM","o":"1","x":[1250]},{"a":1254,"t":"code","b":[190],"m":"TR","oa":1221,"o":"$3E"},{"a":1255,"t":"code","b":[82],"m":"TC","x":[1248]},{"a":1256,"t":"code","b":[146],"m":"TR","oa":1259,"o":"$12"},{"a":1257,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1258,"t":"code","b":[167],"m":"TR","oa":1229,"o":"$27"},{"a":1259,"t":"code","b":[13],"m":"SM","o":"1","x":[1256]},{"a":1260,"t":"code","b":[167],"m":"TR","oa":1229,"o":"$27"},{"a":1261,"l":"h_swap_bit0","c":"h_swap_bit0: swap_c_bit0's body.","t":"code","b":[84],"m":"TM","o":"0","x":[1083]},{"a":1262,"t":"code","b":[166],"m":"TR","oa":1269,"o":"$26"},{"a":1263,"t":"code","b":[82],"m":"TC"},{"a":1264,"t":"code","b":[153],"m":"TR","oa":1267,"o":"$19"},{"a":1265,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1266,"t":"code","b":[190],"m":"TR","oa":1221,"o":"$3E"},{"a":1267,"t":"code","b":[12],"m":"SM","o":"0","x":[1264]},{"a":1268,"t":"code","b":[190],"m":"TR","oa":1221,"o":"$3E"},{"a":1269,"t":"code","b":[82],"m":"TC","x":[1262]},{"a":1270,"t":"code","b":[170],"m":"TR","oa":1273,"o":"$2A"},{"a":1271,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1272,"t":"code","b":[167],"m":"TR","oa":1229,"o":"$27"},{"a":1273,"t":"code","b":[12],"m":"SM","o":"0","x":[1270]},{"a":1274,"t":"code","b":[167],"m":"TR","oa":1229,"o":"$27"},{"a":1275,"t":"code","b":[174],"m":"TR","oa":1233,"o":"h_swap_bit2","x":[1085]},{"a":1276,"l":"h_point_04","c":"h_point_04: point_04's body.","t":"code","b":[95,4],"m":"LBL","oa":4100,"o":"lcd_misses","x":[1052]},{"a":1278,"t":"code","b":[110],"m":"RTN"},{"a":1279,"t":"code","b":[128],"m":"TR","oa":1216,"o":"h_swap_bit3"},{"a":1280,"l":"setup_end","c":"setup_end: stores max_in_flight (3, or 0 for a game) and sets delay to 11; then reads the buttons.","t":"code","b":[16],"m":"EXC","o":"0","x":[1343,1525]},{"a":1281,"t":"code","b":[43],"m":"LAX","o":"$B"},{"a":1282,"t":"code","b":[95,73],"m":"LBL","oa":4169,"o":"delay"},{"a":1284,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1285,"l":"read_keys","c":"read_keys: reads the R4 row into keys, except while a game is under way (the buttons are ignored then until the game is over). A reading that differs from the last sets beat bit 3, asks for the screen and clears the idle count; one that agrees with a change before it is acted on (key_pressed, $0540). Then the test row ($05A3).","t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags"},{"a":1286,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear2"},{"a":1287,"t":"code","b":[143],"m":"TR","oa":1292,"o":"$0F"},{"a":1288,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"skip_if_game"},{"a":1289,"t":"code","b":[143],"m":"TR","oa":1292,"o":"$0F"},{"a":1290,"t":"code","b":[196],"m":"TRS","oa":1069,"o":"skip_if_over"},{"a":1291,"t":"code","b":[142],"m":"TR","oa":1311,"o":"$0E"},{"a":1292,"t":"code","b":[214],"m":"TRS","oa":1064,"o":"select_buttons","x":[1287,1289]},{"a":1293,"t":"code","b":[106],"m":"KTA"},{"a":1294,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1295,"t":"code","b":[87],"m":"TM","o":"3"},{"a":1296,"t":"code","b":[181],"m":"TR","oa":1300,"o":"$35"},{"a":1297,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1298,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1299,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1300,"t":"code","b":[83],"m":"TAM","x":[1296]},{"a":1301,"t":"code","b":[168],"m":"TR","oa":1307,"o":"$28"},{"a":1302,"t":"code","b":[72],"m":"LB","oa":4106,"o":"beat"},{"a":1303,"t":"code","b":[228],"m":"TRS","oa":1073,"o":"take_bit3"},{"a":1304,"t":"code","b":[142],"m":"TR","oa":1311,"o":"$0E"},{"a":1305,"t":"code","b":[117],"m":"SSR","o":"5"},{"a":1306,"t":"code","b":[128],"m":"TR","oa":1344,"o":"key_pressed"},{"a":1307,"t":"code","b":[72],"m":"LB","oa":4106,"o":"beat","x":[1301]},{"a":1308,"t":"code","b":[15],"m":"SM","o":"3"},{"a":1309,"t":"code","b":[252],"m":"TRS","oa":1028,"o":"set_redraw"},{"a":1310,"t":"code","b":[224],"m":"TRS","oa":1025,"o":"clear_idle"},{"a":1311,"t":"code","b":[118],"m":"SSR","o":"6","x":[1291,1304]},{"a":1312,"t":"code","b":[152],"m":"TR","oa":1443,"o":"test_row"},{"a":1313,"t":"code","b":[0],"m":"SKIP"},{"a":1314,"t":"code","b":[0],"m":"SKIP"},{"a":1315,"t":"code","b":[0],"m":"SKIP"},{"a":1316,"t":"code","b":[0],"m":"SKIP"},{"a":1317,"t":"code","b":[0],"m":"SKIP"},{"a":1318,"l":"power_on","c":"power_on: clears the memory, row by row (columns 0-11 of rows 0-3, all of row 4), selects the R4 row, asks for the screen, and sets the time to 12:00 AM and the alarm to 12:00 PM. Mode is 0: every segment lit until a button is pressed.","t":"code","b":[95,76],"m":"LBL","oa":4172,"o":"$4C"},{"a":1320,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_down"},{"a":1321,"t":"code","b":[79],"m":"LB","oa":4155,"o":"time_s1"},{"a":1322,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_down"},{"a":1323,"t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags"},{"a":1324,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_down"},{"a":1325,"t":"code","b":[77],"m":"LB","oa":4123,"o":"tone_count"},{"a":1326,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_down"},{"a":1327,"t":"code","b":[76],"m":"LB","oa":4107,"o":"events"},{"a":1328,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_down"},{"a":1329,"t":"code","b":[214],"m":"TRS","oa":1064,"o":"select_buttons"},{"a":1330,"t":"code","b":[252],"m":"TRS","oa":1028,"o":"set_redraw"},{"a":1331,"t":"code","b":[95,54],"m":"LBL","oa":4150,"o":"time_h10"},{"a":1333,"t":"code","b":[33],"m":"LAX","o":"1"},{"a":1334,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":1335,"t":"code","b":[13],"m":"SM","o":"1"},{"a":1336,"t":"code","b":[95,50],"m":"LBL","oa":4146,"o":"alarm_h10"},{"a":1338,"t":"code","b":[41],"m":"LAX","o":"9"},{"a":1339,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":1340,"t":"code","b":[13],"m":"SM","o":"1"},{"a":1341,"t":"code","b":[124],"m":"SSR","o":"$C"},{"a":1342,"t":"code","b":[169],"m":"TR","oa":1847,"o":"held_loop"},{"a":1343,"t":"code","b":[128],"m":"TR","oa":1280,"o":"setup_end"},{"a":1344,"l":"key_pressed","c":"key_pressed: in the clock, any button stops the alarm ringing. When the buttons are let go with a game key's press waiting (state_flags bit 2), the game starts ($0565). A press during a game under way is ignored. Otherwise the button picks the mode: Time the clock (1), Game B 2, Game A 4, Alarm 8. Leaving power on's mode starts the seconds from 0. Every press of Alarm turns the alarm on or off; any other change of mode asks for the screen to be set up (state_flags bit 3).","t":"code","b":[252],"m":"TRS","oa":1028,"o":"set_redraw","x":[1306,1407]},{"a":1345,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":1346,"t":"code","b":[84],"m":"TM","o":"0"},{"a":1347,"t":"code","b":[175],"m":"TR","oa":1351,"o":"$2F"},{"a":1348,"t":"code","b":[72],"m":"LB","oa":4106,"o":"beat"},{"a":1349,"t":"code","b":[90],"m":"TA0"},{"a":1350,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1351,"t":"code","b":[63],"m":"ADX","o":"$F","x":[1347]},{"a":1352,"t":"code","b":[177],"m":"TR","oa":1378,"o":"$31"},{"a":1353,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"skip_if_game"},{"a":1354,"t":"code","b":[167],"m":"TR","oa":1357,"o":"$27"},{"a":1355,"t":"code","b":[196],"m":"TRS","oa":1069,"o":"skip_if_over"},{"a":1356,"t":"code","b":[138],"m":"TR","oa":1403,"o":"$0A"},{"a":1357,"t":"code","b":[63],"m":"ADX","o":"$F","x":[1354]},{"a":1358,"t":"code","b":[141],"m":"TR","oa":1366,"o":"$0D"},{"a":1359,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":1360,"t":"code","b":[154],"m":"TR","oa":1365,"o":"$1A"},{"a":1361,"t":"code","b":[61],"m":"ADX","o":"$D"},{"a":1362,"t":"code","b":[181],"m":"TR","oa":1364,"o":"$35"},{"a":1363,"t":"code","b":[40],"m":"LAX","o":"8"},{"a":1364,"t":"code","b":[36],"m":"LAX","o":"4","x":[1362]},{"a":1365,"t":"code","b":[34],"m":"LAX","o":"2","x":[1360]},{"a":1366,"t":"code","b":[33],"m":"LAX","o":"1","x":[1358]},{"a":1367,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":1368,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1369,"t":"code","b":[90],"m":"TA0"},{"a":1370,"t":"code","b":[145],"m":"TR","oa":1391,"o":"$11"},{"a":1371,"t":"code","b":[101],"m":"IDIV"},{"a":1372,"t":"code","b":[75],"m":"LB","oa":4154,"o":"time_s10"},{"a":1373,"t":"code","b":[88],"m":"TG"},{"a":1374,"t":"code","b":[0],"m":"SKIP"},{"a":1375,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":1376,"t":"code","b":[192],"m":"TRS","oa":1024,"o":"clear_cell"},{"a":1377,"t":"code","b":[170],"m":"TR","oa":1401,"o":"$2A"},{"a":1378,"t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags","x":[1352]},{"a":1379,"t":"code","b":[200],"m":"TRS","oa":1072,"o":"take_bit2"},{"a":1380,"t":"code","b":[138],"m":"TR","oa":1403,"o":"$0A"},{"a":1381,"l":"game_starts","c":"game_starts: the game key is let go: clears the score and puts Olive in her playing pose.","t":"code","b":[210],"m":"TRS","oa":1067,"o":"point_15"},{"a":1382,"t":"code","b":[32],"m":"LAX","o":"0","x":[1384]},{"a":1383,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":1384,"t":"code","b":[155],"m":"TR","oa":1382,"o":"$1B"},{"a":1385,"t":"code","b":[208],"m":"TRS","oa":1050,"o":"point_02"},{"a":1386,"t":"code","b":[15],"m":"SM","o":"3"},{"a":1387,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1388,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1389,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1390,"t":"code","b":[138],"m":"TR","oa":1403,"o":"$0A"},{"a":1391,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode","x":[1370]},{"a":1392,"t":"code","b":[83],"m":"TAM"},{"a":1393,"t":"code","b":[140],"m":"TR","oa":1396,"o":"$0C"},{"a":1394,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_clear0"},{"a":1395,"t":"code","b":[138],"m":"TR","oa":1403,"o":"$0A"},{"a":1396,"t":"code","b":[87],"m":"TM","o":"3","x":[1393]},{"a":1397,"t":"code","b":[170],"m":"TR","oa":1401,"o":"$2A"},{"a":1398,"t":"code","b":[76],"m":"LB","oa":4107,"o":"events"},{"a":1399,"t":"code","b":[200],"m":"TRS","oa":1072,"o":"take_bit2"},{"a":1400,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1401,"t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags","x":[1377,1397]},{"a":1402,"t":"code","b":[15],"m":"SM","o":"3"},{"a":1403,"t":"code","b":[118],"m":"SSR","o":"6","x":[1356,1380,1390,1395]},{"a":1404,"t":"code","b":[152],"m":"TR","oa":1443,"o":"test_row"},{"a":1405,"t":"code","b":[0],"m":"SKIP"},{"a":1406,"t":"code","b":[0],"m":"SKIP"},{"a":1407,"t":"code","b":[128],"m":"TR","oa":1344,"o":"key_pressed"},{"a":1408,"l":"minute_tick","c":"minute_tick: on the minute (events bit 1), except in the alarm's setting: stops the alarm ringing, resets Olive's pose, and when the alarm is on compares the alarm's time with the clock, digit by digit ($0593); all four equal starts it ringing ($05A9).","t":"code","b":[209],"m":"TRS","oa":1071,"o":"take_bit1","x":[1464,1471]},{"a":1409,"t":"code","b":[136],"m":"TR","oa":1456,"o":"mode_changed"},{"a":1410,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":1411,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear3"},{"a":1412,"t":"code","b":[136],"m":"TR","oa":1456,"o":"mode_changed"},{"a":1413,"t":"code","b":[252],"m":"TRS","oa":1028,"o":"set_redraw"},{"a":1414,"t":"code","b":[72],"m":"LB","oa":4106,"o":"beat"},{"a":1415,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1416,"t":"code","b":[95,18],"m":"LBL","oa":4114,"o":"lcd_olive_arms"},{"a":1418,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1419,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1420,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1421,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear3"},{"a":1422,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1423,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1424,"t":"code","b":[76],"m":"LB","oa":4107,"o":"events"},{"a":1425,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1426,"t":"code","b":[136],"m":"TR","oa":1456,"o":"mode_changed"},{"a":1427,"t":"code","b":[95,50],"m":"LBL","oa":4146,"o":"alarm_h10"},{"a":1429,"t":"code","b":[24],"m":"LDA","o":"0","x":[1442]},{"a":1430,"t":"code","b":[11],"m":"EXBLA"},{"a":1431,"t":"code","b":[52],"m":"ADX","o":"4"},{"a":1432,"t":"code","b":[11],"m":"EXBLA"},{"a":1433,"t":"code","b":[83],"m":"TAM"},{"a":1434,"t":"code","b":[136],"m":"TR","oa":1456,"o":"mode_changed"},{"a":1435,"t":"code","b":[11],"m":"EXBLA"},{"a":1436,"t":"code","b":[55],"m":"ADX","o":"7"},{"a":1437,"t":"code","b":[142],"m":"TR","oa":1439,"o":"$0E"},{"a":1438,"t":"code","b":[139],"m":"TR","oa":1449,"o":"ring"},{"a":1439,"t":"code","b":[54],"m":"ADX","o":"6","x":[1437]},{"a":1440,"t":"code","b":[0],"m":"SKIP"},{"a":1441,"t":"code","b":[11],"m":"EXBLA"},{"a":1442,"t":"code","b":[154],"m":"TR","oa":1429,"o":"$1A"},{"a":1443,"l":"test_row","c":"test_row: selects the R2 row, which on this unit is a test pad, not a button (MAME's \"IN.0\"). Its K4 rings the alarm at once ($05A9); its K3 sends the unit back to power on's mode 0 ($05B9). Then the minute.","t":"code","b":[45],"m":"LAX","o":"$D","x":[1312,1404]},{"a":1444,"t":"code","b":[1],"m":"ATR"},{"a":1445,"t":"code","b":[76],"m":"LB","oa":4107,"o":"events"},{"a":1446,"t":"code","b":[106],"m":"KTA"},{"a":1447,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":1448,"t":"code","b":[169],"m":"TR","oa":1463,"o":"$29"},{"a":1449,"l":"ring","c":"ring: the alarm starts ringing: beat bit 2, sound_flags bit 0 (the alarm's sound), Olive's body ($02 bit 3, already lit), and the screen. Her ringing poses come from draw_prep ($0603), by the divider.","t":"code","b":[72],"m":"LB","oa":4106,"o":"beat","x":[1438]},{"a":1450,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1451,"t":"code","b":[66],"m":"LB","oa":4128,"o":"sound_flags"},{"a":1452,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1453,"t":"code","b":[208],"m":"TRS","oa":1050,"o":"point_02"},{"a":1454,"t":"code","b":[15],"m":"SM","o":"3"},{"a":1455,"t":"code","b":[252],"m":"TRS","oa":1028,"o":"set_redraw"},{"a":1456,"l":"mode_changed","c":"mode_changed: when the mode has changed, sets the screen up for it (mode_setup, $05C0); else back to page $00 for left and right ($0007).","t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags","x":[1409,1412,1426,1434]},{"a":1457,"t":"code","b":[228],"m":"TRS","oa":1073,"o":"take_bit3"},{"a":1458,"t":"code","b":[140],"m":"TR","oa":1460,"o":"$0C"},{"a":1459,"t":"code","b":[130],"m":"TR","oa":1469,"o":"$02"},{"a":1460,"t":"code","b":[109],"m":"COMCB","x":[1458]},{"a":1461,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":1462,"t":"code","b":[175],"m":"TR","oa":1031,"o":"shift_cell"},{"a":1463,"t":"code","b":[52],"m":"ADX","o":"4","x":[1448]},{"a":1464,"t":"code","b":[128],"m":"TR","oa":1408,"o":"minute_tick"},{"a":1465,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":1466,"t":"code","b":[192],"m":"TRS","oa":1024,"o":"clear_cell"},{"a":1467,"t":"code","b":[90],"m":"TA0"},{"a":1468,"t":"code","b":[252],"m":"TRS","oa":1028,"o":"set_redraw"},{"a":1469,"t":"code","b":[119],"m":"SSR","o":"7","x":[1459]},{"a":1470,"t":"code","b":[128],"m":"TR","oa":1472,"o":"mode_setup"},{"a":1471,"t":"code","b":[128],"m":"TR","oa":1408,"o":"minute_tick"},{"a":1472,"l":"mode_setup","c":"mode_setup: clears the picture's cells and the counters (rows 0 and 1 up to column 9, $40-$43, the sounds, landed), stops the alarm ringing, and draws the scene: Bluto with his mallet up on the left, Popeye in the middle, Olive (in the clock). In the clock it writes $E to keys, as if Game B, Game A and Alarm were held, so a key still down from the change is not taken for a new press. For a game it lights GAME A or GAME B and waits for the key to be let go (state_flags bit 2).","t":"code","b":[68],"m":"LB","oa":4105,"o":"in_flight","x":[1470,1535]},{"a":1473,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_down"},{"a":1474,"t":"code","b":[69],"m":"LB","oa":4121,"o":"max_in_flight"},{"a":1475,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_down"},{"a":1476,"t":"code","b":[95,67],"m":"LBL","oa":4163,"o":"knocked"},{"a":1478,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_down"},{"a":1479,"t":"code","b":[72],"m":"LB","oa":4106,"o":"beat"},{"a":1480,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1481,"t":"code","b":[225],"m":"TRS","oa":1049,"o":"point_01"},{"a":1482,"t":"code","b":[15],"m":"SM","o":"3"},{"a":1483,"t":"code","b":[13],"m":"SM","o":"1"},{"a":1484,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"skip_if_game"},{"a":1485,"t":"code","b":[185],"m":"TR","oa":1487,"o":"$39"},{"a":1486,"t":"code","b":[181],"m":"TR","oa":1492,"o":"$35"},{"a":1487,"t":"code","b":[208],"m":"TRS","oa":1050,"o":"point_02","x":[1485]},{"a":1488,"t":"code","b":[15],"m":"SM","o":"3"},{"a":1489,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1490,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1491,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1492,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye","x":[1486]},{"a":1493,"t":"code","b":[15],"m":"SM","o":"3"},{"a":1494,"t":"code","b":[252],"m":"TRS","oa":1028,"o":"set_redraw"},{"a":1495,"t":"code","b":[95,33],"m":"LBL","oa":4129,"o":"sound_queued"},{"a":1497,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_down"},{"a":1498,"t":"code","b":[70],"m":"LB","oa":4137,"o":"landed"},{"a":1499,"t":"code","b":[192],"m":"TRS","oa":1024,"o":"clear_cell"},{"a":1500,"t":"code","b":[76],"m":"LB","oa":4107,"o":"events"},{"a":1501,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1502,"t":"code","b":[242],"m":"TRS","oa":1074,"o":"skip_if_clock"},{"a":1503,"t":"code","b":[150],"m":"TR","oa":1512,"o":"$16"},{"a":1504,"t":"code","b":[100],"m":"INCB"},{"a":1505,"t":"code","b":[46],"m":"LAX","o":"$E"},{"a":1506,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1507,"t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags"},{"a":1508,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1509,"t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags","x":[1513]},{"a":1510,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1511,"t":"code","b":[178],"m":"TR","oa":1522,"o":"$32"},{"a":1512,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear3","x":[1503]},{"a":1513,"t":"code","b":[182],"m":"TR","oa":1509,"o":"$36"},{"a":1514,"t":"code","b":[238],"m":"TRS","oa":1041,"o":"test_game_b_c"},{"a":1515,"t":"code","b":[227],"m":"TRS","oa":1057,"o":"point_11"},{"a":1516,"t":"code","b":[82],"m":"TC"},{"a":1517,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1518,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1519,"t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags"},{"a":1520,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1521,"t":"code","b":[32],"m":"LAX","o":"0"},{"a":1522,"t":"code","b":[35],"m":"LAX","o":"3","x":[1511]},{"a":1523,"t":"code","b":[69],"m":"LB","oa":4121,"o":"max_in_flight"},{"a":1524,"t":"code","b":[116],"m":"SSR","o":"4"},{"a":1525,"t":"code","b":[128],"m":"TR","oa":1280,"o":"setup_end"},{"a":1526,"l":"digit_blink","c":"digit_blink: draw_digit for the middle digit, with its spare segment (7.0.0, the first miss mark) left off while C is set: the bonus's blinking.","t":"code","b":[82],"m":"TC","x":[1627]},{"a":1527,"t":"code","b":[149],"m":"TR","oa":1530,"o":"$15"},{"a":1528,"l":"draw_digit","c":"draw_digit: one digit into W' (DTW): the digit from row 1 ($15-$17), and its spare segment from bit 0 of the cell above it in row 0 ($05-$07): the colon, the first miss mark and Bluto's raised fist.","t":"code","b":[105],"m":"SMF","x":[1624,1630]},{"a":1529,"t":"code","b":[84],"m":"TM","o":"0"},{"a":1530,"t":"code","b":[104],"m":"RMF","x":[1527]},{"a":1531,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1532,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1533,"t":"code","b":[93],"m":"DTW"},{"a":1534,"t":"code","b":[110],"m":"RTN"},{"a":1535,"t":"code","b":[128],"m":"TR","oa":1472,"o":"mode_setup"},{"a":1536,"l":"draw_prep","c":"draw_prep: while the alarm rings, Olive rings her bell in a pose picked by the divider ($0603). When the screen must be drawn: in a game, game_prep ($0680); else the clock: the bell lit when the alarm is on ($0624), then the time's or the alarm's digits. With nothing to draw, unblank ($070E).","t":"code","b":[72],"m":"LB","oa":4106,"o":"beat"},{"a":1537,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1538,"t":"code","b":[186],"m":"TR","oa":1565,"o":"$3A"},{"a":1539,"t":"code","b":[208],"m":"TRS","oa":1050,"o":"point_02"},{"a":1540,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1541,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1542,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1543,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1544,"t":"code","b":[235],"m":"TRS","oa":1043,"o":"read_divider"},{"a":1545,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"skip_if_game"},{"a":1546,"t":"code","b":[167],"m":"TR","oa":1549,"o":"$27"},{"a":1547,"t":"code","b":[196],"m":"TRS","oa":1069,"o":"skip_if_over"},{"a":1548,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":1549,"t":"code","b":[61],"m":"ADX","o":"$D","x":[1546]},{"a":1550,"t":"code","b":[161],"m":"TR","oa":1561,"o":"$21"},{"a":1551,"t":"code","b":[95,18],"m":"LBL","oa":4114,"o":"lcd_olive_arms"},{"a":1553,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear2"},{"a":1554,"t":"code","b":[154],"m":"TR","oa":1557,"o":"$1A"},{"a":1555,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1556,"t":"code","b":[252],"m":"TRS","oa":1028,"o":"set_redraw"},{"a":1557,"t":"code","b":[95,18],"m":"LBL","oa":4114,"o":"lcd_olive_arms","x":[1554]},{"a":1559,"t":"code","b":[13],"m":"SM","o":"1"},{"a":1560,"t":"code","b":[186],"m":"TR","oa":1565,"o":"$3A"},{"a":1561,"t":"code","b":[208],"m":"TRS","oa":1050,"o":"point_02","x":[1550]},{"a":1562,"t":"code","b":[13],"m":"SM","o":"1"},{"a":1563,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1564,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1565,"t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags","x":[1538,1560]},{"a":1566,"t":"code","b":[226],"m":"TRS","oa":1070,"o":"take_bit0"},{"a":1567,"t":"code","b":[169],"m":"TR","oa":1591,"o":"$29"},{"a":1568,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"skip_if_game"},{"a":1569,"t":"code","b":[172],"m":"TR","oa":1572,"o":"clock_prep"},{"a":1570,"t":"code","b":[122],"m":"SSR","o":"$A"},{"a":1571,"t":"code","b":[128],"m":"TR","oa":1664,"o":"game_prep"},{"a":1572,"l":"clock_prep","c":"clock_prep: Olive's clock pose, the bell (3.2.1) lit when the alarm is on, then the time ($06C0) or, in the alarm's setting, the alarm's time ($06E3).","t":"code","b":[76],"m":"LB","oa":4107,"o":"events","x":[1569]},{"a":1573,"t":"code","b":[103],"m":"SC"},{"a":1574,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1575,"t":"code","b":[102],"m":"RC"},{"a":1576,"t":"code","b":[72],"m":"LB","oa":4106,"o":"beat"},{"a":1577,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear2"},{"a":1578,"t":"code","b":[164],"m":"TR","oa":1585,"o":"$24"},{"a":1579,"t":"code","b":[208],"m":"TRS","oa":1050,"o":"point_02"},{"a":1580,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1581,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1582,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1583,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1584,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":1585,"t":"code","b":[242],"m":"TRS","oa":1074,"o":"skip_if_clock","x":[1578]},{"a":1586,"t":"code","b":[166],"m":"TR","oa":1589,"o":"$26"},{"a":1587,"t":"code","b":[123],"m":"SSR","o":"$B"},{"a":1588,"t":"code","b":[128],"m":"TR","oa":1728,"o":"time_digits"},{"a":1589,"t":"code","b":[123],"m":"SSR","o":"$B","x":[1586]},{"a":1590,"t":"code","b":[152],"m":"TR","oa":1763,"o":"alarm_digits"},{"a":1591,"t":"code","b":[124],"m":"SSR","o":"$C","x":[1567]},{"a":1592,"t":"code","b":[179],"m":"TR","oa":1806,"o":"unblank"},{"a":1593,"c":"Six bytes after the last jump of page $18, never run and never read.","t":"byte","b":[78,73,78,84,69,78,128]},{"a":1600,"l":"draw_screen","c":"draw_screen: builds the nine W' latches for H1 from $08, $00-$04 and the three digits (with the spare segments from $05-$07), copies them to W (TW), then builds W' again for H2 from $18, $10-$14 and the digits' other half (COMCN picks the digit table's other row). $04's bit 0 is drawn off while the bonus blinks. Then the LCD on (ATBP), and the items' splashes cleared when fist_flags bit 2 asks for it.","t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08","x":[1725]},{"a":1601,"t":"code","b":[239],"m":"TRS","oa":1031,"o":"shift_cell"},{"a":1602,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye"},{"a":1603,"t":"code","b":[239],"m":"TRS","oa":1031,"o":"shift_cell"},{"a":1604,"t":"code","b":[239],"m":"TRS","oa":1031,"o":"shift_cell"},{"a":1605,"t":"code","b":[239],"m":"TRS","oa":1031,"o":"shift_cell"},{"a":1606,"t":"code","b":[239],"m":"TRS","oa":1031,"o":"shift_cell"},{"a":1607,"t":"code","b":[102],"m":"RC"},{"a":1608,"t":"code","b":[74],"m":"LB","oa":4138,"o":"pad_flags"},{"a":1609,"t":"code","b":[85],"m":"TM","o":"1"},{"a":1610,"t":"code","b":[185],"m":"TR","oa":1615,"o":"$39"},{"a":1611,"t":"code","b":[95,66],"m":"LBL","oa":4162,"o":"bonus_blinks"},{"a":1613,"t":"code","b":[84],"m":"TM","o":"0"},{"a":1614,"t":"code","b":[103],"m":"SC"},{"a":1615,"t":"code","b":[244],"m":"TRS","oa":1052,"o":"point_04","x":[1610]},{"a":1616,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":1617,"t":"code","b":[84],"m":"TM","o":"0"},{"a":1618,"t":"code","b":[141],"m":"TR","oa":1622,"o":"$0D"},{"a":1619,"t":"code","b":[82],"m":"TC"},{"a":1620,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":1621,"t":"code","b":[0],"m":"SKIP"},{"a":1622,"t":"code","b":[247],"m":"TRS","oa":1032,"o":"shift_a","x":[1618]},{"a":1623,"t":"code","b":[119],"m":"SSR","o":"7"},{"a":1624,"t":"code","b":[212],"m":"TRS","oa":1528,"o":"draw_digit"},{"a":1625,"t":"code","b":[100],"m":"INCB"},{"a":1626,"t":"code","b":[119],"m":"SSR","o":"7"},{"a":1627,"t":"code","b":[211],"m":"TRS","oa":1526,"o":"digit_blink"},{"a":1628,"t":"code","b":[100],"m":"INCB"},{"a":1629,"t":"code","b":[119],"m":"SSR","o":"7"},{"a":1630,"t":"code","b":[212],"m":"TRS","oa":1528,"o":"draw_digit"},{"a":1631,"t":"code","b":[92],"m":"TW"},{"a":1632,"t":"code","b":[96],"m":"COMCN"},{"a":1633,"t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_18"},{"a":1634,"t":"code","b":[239],"m":"TRS","oa":1031,"o":"shift_cell"},{"a":1635,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l"},{"a":1636,"t":"code","b":[239],"m":"TRS","oa":1031,"o":"shift_cell"},{"a":1637,"t":"code","b":[239],"m":"TRS","oa":1031,"o":"shift_cell"},{"a":1638,"t":"code","b":[239],"m":"TRS","oa":1031,"o":"shift_cell"},{"a":1639,"t":"code","b":[239],"m":"TRS","oa":1031,"o":"shift_cell"},{"a":1640,"t":"code","b":[239],"m":"TRS","oa":1031,"o":"shift_cell"},{"a":1641,"t":"code","b":[24],"m":"LDA","o":"0","x":[1644]},{"a":1642,"t":"code","b":[93],"m":"DTW"},{"a":1643,"t":"code","b":[100],"m":"INCB"},{"a":1644,"t":"code","b":[139],"m":"TR","oa":1641,"o":"$0B"},{"a":1645,"t":"code","b":[96],"m":"COMCN"},{"a":1646,"t":"code","b":[33],"m":"LAX","o":"1"},{"a":1647,"t":"code","b":[3],"m":"ATBP"},{"a":1648,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_07"},{"a":1649,"t":"code","b":[200],"m":"TRS","oa":1072,"o":"take_bit2"},{"a":1650,"t":"code","b":[148],"m":"TR","oa":1656,"o":"$14"},{"a":1651,"t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_18"},{"a":1652,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1653,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1654,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l"},{"a":1655,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1656,"t":"code","b":[124],"m":"SSR","o":"$C","x":[1650]},{"a":1657,"t":"code","b":[179],"m":"TR","oa":1806,"o":"unblank"},{"a":1658,"c":"Five bytes after the last jump of page $19, never run and never read.","t":"byte","b":[84,84,50,51,32,128]},{"a":1664,"l":"game_prep","c":"game_prep: while a game key is held, shows that game's best score in the digits; leading zeros of the score are written as $B, a blank ($068D). Then the empty-screen check.","t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags","x":[1571]},{"a":1665,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1666,"t":"code","b":[167],"m":"TR","oa":1677,"o":"$27"},{"a":1667,"t":"code","b":[238],"m":"TRS","oa":1041,"o":"test_game_b_c"},{"a":1668,"t":"code","b":[250],"m":"TRS","oa":1053,"o":"point_05"},{"a":1669,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1670,"t":"code","b":[26],"m":"LDA","o":"2"},{"a":1671,"t":"code","b":[82],"m":"TC","x":[1676]},{"a":1672,"t":"code","b":[2],"m":"SBM"},{"a":1673,"t":"code","b":[27],"m":"LDA","o":"3"},{"a":1674,"t":"code","b":[107],"m":"RBM"},{"a":1675,"t":"code","b":[23],"m":"EXCI","o":"3"},{"a":1676,"t":"code","b":[175],"m":"TR","oa":1671,"o":"$2F"},{"a":1677,"t":"code","b":[210],"m":"TRS","oa":1067,"o":"point_15","x":[1666]},{"a":1678,"t":"code","b":[32],"m":"LAX","o":"0","x":[1685]},{"a":1679,"t":"code","b":[83],"m":"TAM"},{"a":1680,"t":"code","b":[141],"m":"TR","oa":1686,"o":"count_check"},{"a":1681,"t":"code","b":[43],"m":"LAX","o":"$B"},{"a":1682,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":1683,"t":"code","b":[39],"m":"LAX","o":"7"},{"a":1684,"t":"code","b":[91],"m":"TABL"},{"a":1685,"t":"code","b":[179],"m":"TR","oa":1678,"o":"$33"},{"a":1686,"l":"count_check","c":"count_check: tests the 17 places an item can be. When none is lit, sets in_flight to 0. Then draw_screen.","t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_splash_l","x":[1680,1774,1801]},{"a":1687,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear3"},{"a":1688,"t":"code","b":[133],"m":"TR","oa":1724,"o":"$05"},{"a":1689,"t":"code","b":[100],"m":"INCB"},{"a":1690,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_clear0"},{"a":1691,"t":"code","b":[133],"m":"TR","oa":1724,"o":"$05"},{"a":1692,"t":"code","b":[218],"m":"TRS","oa":1045,"o":"skip_if_clear1"},{"a":1693,"t":"code","b":[133],"m":"TR","oa":1724,"o":"$05"},{"a":1694,"t":"code","b":[95,19],"m":"LBL","oa":4115,"o":"lcd_pineapples"},{"a":1696,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":1697,"t":"code","b":[90],"m":"TA0"},{"a":1698,"t":"code","b":[133],"m":"TR","oa":1724,"o":"$05"},{"a":1699,"t":"code","b":[100],"m":"INCB"},{"a":1700,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear3"},{"a":1701,"t":"code","b":[133],"m":"TR","oa":1724,"o":"$05"},{"a":1702,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_popeye"},{"a":1703,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_clear0"},{"a":1704,"t":"code","b":[133],"m":"TR","oa":1724,"o":"$05"},{"a":1705,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear2"},{"a":1706,"t":"code","b":[133],"m":"TR","oa":1724,"o":"$05"},{"a":1707,"t":"code","b":[100],"m":"INCB"},{"a":1708,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_clear0"},{"a":1709,"t":"code","b":[133],"m":"TR","oa":1724,"o":"$05"},{"a":1710,"t":"code","b":[232],"m":"TRS","oa":1051,"o":"point_03","x":[1831]},{"a":1711,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":1712,"t":"code","b":[90],"m":"TA0"},{"a":1713,"t":"code","b":[133],"m":"TR","oa":1724,"o":"$05"},{"a":1714,"t":"code","b":[100],"m":"INCB"},{"a":1715,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear3"},{"a":1716,"t":"code","b":[133],"m":"TR","oa":1724,"o":"$05"},{"a":1717,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear2"},{"a":1718,"t":"code","b":[133],"m":"TR","oa":1724,"o":"$05"},{"a":1719,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":1720,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_clear0"},{"a":1721,"t":"code","b":[133],"m":"TR","oa":1724,"o":"$05"},{"a":1722,"t":"code","b":[68],"m":"LB","oa":4105,"o":"in_flight"},{"a":1723,"t":"code","b":[192],"m":"TRS","oa":1024,"o":"clear_cell"},{"a":1724,"t":"code","b":[121],"m":"SSR","o":"9","x":[1688,1691,1693,1698,1701,1704,1706,1709,1713,1716,1718,1721]},{"a":1725,"t":"code","b":[128],"m":"TR","oa":1600,"o":"draw_screen"},{"a":1726,"c":"One byte after the last jump of page $1A, never run and never read.","t":"byte","b":[77,128]},{"a":1728,"l":"time_digits","c":"time_digits: in the clock, the time; while Time is held, the alarm's time ($06E3). After power on (mode 0), every segment of rows 0 and 1 lit and the time ($06D1); with a key of the R2 test row held, 888 and row 1 dark instead ($06DC). The hours' units and the minutes go to $15-$17 (a loop of LDA and EXCI that steps BM between row 3 and row 1), then the hours' 1 and AM or PM ($06F5).","t":"code","b":[49],"m":"ADX","o":"1","x":[1588]},{"a":1729,"t":"code","b":[174],"m":"TR","oa":1745,"o":"all_segments"},{"a":1730,"t":"code","b":[229],"m":"TRS","oa":1066,"o":"point_31"},{"a":1731,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_clear0"},{"a":1732,"t":"code","b":[152],"m":"TR","oa":1763,"o":"alarm_digits"},{"a":1733,"t":"code","b":[71],"m":"LB","oa":4153,"o":"time_m1","x":[1755]},{"a":1734,"t":"code","b":[26],"m":"LDA","o":"2","x":[1743]},{"a":1735,"t":"code","b":[11],"m":"EXBLA"},{"a":1736,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":1737,"t":"code","b":[0],"m":"SKIP"},{"a":1738,"t":"code","b":[11],"m":"EXBLA"},{"a":1739,"t":"code","b":[22],"m":"EXCI","o":"2"},{"a":1740,"t":"code","b":[0],"m":"SKIP"},{"a":1741,"t":"code","b":[38],"m":"LAX","o":"6"},{"a":1742,"t":"code","b":[91],"m":"TABL"},{"a":1743,"t":"code","b":[159],"m":"TR","oa":1734,"o":"$1F"},{"a":1744,"t":"code","b":[166],"m":"TR","oa":1781,"o":"hour_flags"},{"a":1745,"l":"all_segments","c":"all_segments: power on's picture: $F in every cell of rows 0 and 1, then reads the R2 test row.","t":"code","b":[45],"m":"LAX","o":"$D","x":[1729]},{"a":1746,"t":"code","b":[1],"m":"ATR"},{"a":1747,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":1748,"t":"code","b":[47],"m":"LAX","o":"$F","x":[1752]},{"a":1749,"t":"code","b":[17],"m":"EXC","o":"1"},{"a":1750,"t":"code","b":[47],"m":"LAX","o":"$F"},{"a":1751,"t":"code","b":[29],"m":"EXCD","o":"1"},{"a":1752,"t":"code","b":[181],"m":"TR","oa":1748,"o":"$35"},{"a":1753,"t":"code","b":[106],"m":"KTA"},{"a":1754,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":1755,"t":"code","b":[190],"m":"TR","oa":1733,"o":"$3E"},{"a":1756,"l":"display_test","c":"display_test: with a key of the test row held after power on: clears row 1 and writes 8 in the three digits.","t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_18"},{"a":1757,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_down"},{"a":1758,"t":"code","b":[210],"m":"TRS","oa":1067,"o":"point_15"},{"a":1759,"t":"code","b":[40],"m":"LAX","o":"8","x":[1761]},{"a":1760,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":1761,"t":"code","b":[142],"m":"TR","oa":1759,"o":"$0E"},{"a":1762,"t":"code","b":[132],"m":"TR","oa":1773,"o":"$04"},{"a":1763,"l":"alarm_digits","c":"alarm_digits: the alarm's time ($32-$35) into the digits, and Olive's alarm pose.","t":"code","b":[95,51],"m":"LBL","oa":4147,"o":"alarm_h1","x":[1590,1732]},{"a":1765,"t":"code","b":[26],"m":"LDA","o":"2","x":[1788]},{"a":1766,"t":"code","b":[100],"m":"INCB"},{"a":1767,"t":"code","b":[100],"m":"INCB"},{"a":1768,"t":"code","b":[22],"m":"EXCI","o":"2"},{"a":1769,"t":"code","b":[149],"m":"TR","oa":1786,"o":"$15"},{"a":1770,"t":"code","b":[72],"m":"LB","oa":4106,"o":"beat"},{"a":1771,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1772,"t":"code","b":[145],"m":"TR","oa":1775,"o":"$11"},{"a":1773,"t":"code","b":[122],"m":"SSR","o":"$A","x":[1762]},{"a":1774,"t":"code","b":[141],"m":"TR","oa":1686,"o":"count_check"},{"a":1775,"t":"code","b":[208],"m":"TRS","oa":1050,"o":"point_02","x":[1772]},{"a":1776,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1777,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1778,"t":"code","b":[13],"m":"SM","o":"1"},{"a":1779,"t":"code","b":[95,50],"m":"LBL","oa":4146,"o":"alarm_h10"},{"a":1781,"l":"hour_flags","c":"hour_flags: C = the hours' tens (bit 0 of $36 or $32), for the 1 of 10-12; then AM or PM ($0700).","t":"code","b":[103],"m":"SC","x":[1744]},{"a":1782,"t":"code","b":[84],"m":"TM","o":"0"},{"a":1783,"t":"code","b":[102],"m":"RC"},{"a":1784,"t":"code","b":[124],"m":"SSR","o":"$C"},{"a":1785,"t":"code","b":[128],"m":"TR","oa":1792,"o":"am_pm"},{"a":1786,"t":"code","b":[108],"m":"DECB","x":[1769]},{"a":1787,"t":"code","b":[108],"m":"DECB"},{"a":1788,"t":"code","b":[182],"m":"TR","oa":1765,"o":"$36"},{"a":1789,"c":"Two bytes after the last jump of page $1B, never run and never read.","t":"byte","b":[46,46,128]},{"a":1792,"l":"am_pm","c":"am_pm: lights PM (5.2.1) or AM (5.1.1) from bit 3 of the hours' tens, and the 1 from C; lights the colon; then count_check ($0696).","t":"code","b":[87],"m":"TM","o":"3","x":[1785]},{"a":1793,"t":"code","b":[189],"m":"TR","oa":1802,"o":"$3D"},{"a":1794,"t":"code","b":[236],"m":"TRS","oa":1060,"o":"point_14"},{"a":1795,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1796,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1797,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0","x":[1805]},{"a":1798,"t":"code","b":[250],"m":"TRS","oa":1053,"o":"point_05"},{"a":1799,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1800,"t":"code","b":[122],"m":"SSR","o":"$A"},{"a":1801,"t":"code","b":[141],"m":"TR","oa":1686,"o":"count_check"},{"a":1802,"t":"code","b":[236],"m":"TRS","oa":1060,"o":"point_14","x":[1793]},{"a":1803,"t":"code","b":[13],"m":"SM","o":"1"},{"a":1804,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1805,"t":"code","b":[190],"m":"TR","oa":1797,"o":"$3E"},{"a":1806,"l":"unblank","c":"unblank: puts the blanked digits ($B) back to 0, so the score can be counted on. Then the end of the pass: out of a game back to the main loop; in a game the bonus ($0719), the loop while a game key is held ($0737), or the main loop.","t":"code","b":[210],"m":"TRS","oa":1067,"o":"point_15","x":[1592,1657]},{"a":1807,"t":"code","b":[24],"m":"LDA","o":"0","x":[1811]},{"a":1808,"t":"code","b":[53],"m":"ADX","o":"5"},{"a":1809,"t":"code","b":[181],"m":"TR","oa":1812,"o":"$35"},{"a":1810,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":1811,"t":"code","b":[185],"m":"TR","oa":1807,"o":"$39"},{"a":1812,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"skip_if_game","x":[1809]},{"a":1813,"t":"code","b":[149],"m":"TR","oa":1850,"o":"$15"},{"a":1814,"t":"code","b":[74],"m":"LB","oa":4138,"o":"pad_flags"},{"a":1815,"t":"code","b":[85],"m":"TM","o":"1"},{"a":1816,"t":"code","b":[140],"m":"TR","oa":1844,"o":"$0C"},{"a":1817,"l":"bonus","c":"bonus: twice a second (the divider at 0 or 8) takes one off bonus_blinks and beeps (the tone, code $B). At 0 the miss marks 7.0.0 and 5.0.0 go out, the item waiting to count is forgotten, the splashes are cleared, and the game goes on. The game's steps wait meanwhile, about five seconds.","t":"code","b":[235],"m":"TRS","oa":1043,"o":"read_divider"},{"a":1818,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":1819,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":1820,"t":"code","b":[0],"m":"SKIP"},{"a":1821,"t":"code","b":[90],"m":"TA0"},{"a":1822,"t":"code","b":[169],"m":"TR","oa":1847,"o":"held_loop"},{"a":1823,"t":"code","b":[95,66],"m":"LBL","oa":4162,"o":"bonus_blinks"},{"a":1825,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":1826,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":1827,"t":"code","b":[165],"m":"TR","oa":1834,"o":"$25"},{"a":1828,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1829,"t":"code","b":[109],"m":"COMCB"},{"a":1830,"t":"code","b":[122],"m":"SSR","o":"$A"},{"a":1831,"s":"With CB 0 after the COMCB, SSR $A calls page $0A: tone at $02AE, the bonus's beep.","t":"code","b":[226],"m":"TRS","oa":1710,"o":"$22"},{"a":1832,"t":"code","b":[109],"m":"COMCB"},{"a":1833,"t":"code","b":[169],"m":"TR","oa":1847,"o":"held_loop"},{"a":1834,"t":"code","b":[244],"m":"TRS","oa":1052,"o":"point_04","x":[1827]},{"a":1835,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1836,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_06"},{"a":1837,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1838,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_07"},{"a":1839,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1840,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1841,"t":"code","b":[74],"m":"LB","oa":4138,"o":"pad_flags"},{"a":1842,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1843,"t":"code","b":[169],"m":"TR","oa":1847,"o":"held_loop"},{"a":1844,"t":"code","b":[78],"m":"LB","oa":4139,"o":"state_flags","x":[1816]},{"a":1845,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1846,"t":"code","b":[149],"m":"TR","oa":1850,"o":"$15"},{"a":1847,"l":"held_loop","c":"held_loop: back to keep_time_pass on page $02 (power on also ends here).","t":"code","b":[109],"m":"COMCB","x":[1342,1822,1833,1843]},{"a":1848,"t":"code","b":[114],"m":"SSR","o":"2"},{"a":1849,"t":"code","b":[140],"m":"TR","oa":1204,"o":"h_skip_clock"},{"a":1850,"t":"code","b":[109],"m":"COMCB","x":[1813,1846]},{"a":1851,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":1852,"t":"code","b":[147],"m":"TR","oa":1078,"o":"queue_sound_5"},{"a":1853,"c":"Two bytes after the last jump of page $1C, never run and never read.","t":"byte","b":[89,89,128]},{"a":1856,"t":"gap","n":63680},{"a":4096,"t":"note","l":"lcd_popeye","c":"lcd_popeye ($00): drawn to latch 1 of common H1. Bit 0 the bottle at its 4th place (1.0.0), bit 1 Popeye on the left (1.1.0), bit 2 the bottle over Popeye's head on the left (1.2.0), bit 3 Popeye in the middle (1.3.0).","note":"outside the tracked image","x":[240,262,295,325,346,386,781,857,861,871,939,1492,1602,1702]},{"a":4097,"t":"note","l":"lcd_bluto_l","c":"lcd_bluto_l ($01): latch 2, H1. Bit 0 the bottle at its 1st place (2.0.0), bit 1 Bluto's mallet raised (2.1.0), bit 2 the GAME A label (2.2.0), bit 3 Bluto in the left boat (2.3.0).","note":"outside the tracked image","x":[763,1094]},{"a":4098,"t":"note","l":"lcd_olive","c":"lcd_olive ($02): latch 3, H1, Olive Oyl. Bit 0 her arm toward the cans (3.0.0), bits 1 and 2 two arm poses used by the clock and the alarm (3.1.0, 3.2.0), bit 3 her body (3.3.0).","note":"outside the tracked image","x":[807,1104]},{"a":4099,"t":"note","l":"lcd_cans","c":"lcd_cans ($03): latch 4, H1, the cans' first four places: bit 3 the 1st, at Olive's hand (4.3.0), down to bit 0 the 4th (4.0.0).","note":"outside the tracked image","x":[1158]},{"a":4100,"t":"note","l":"lcd_misses","c":"lcd_misses ($04): latch 5, H1. Bit 0 the second miss mark (5.0.0), bit 1 the third (5.1.0), which ends the game, bit 2 the can at its 6th place (5.2.0), bit 3 the 5th (5.3.0). The screen routine blinks bit 0 during the bonus.","note":"outside the tracked image","x":[539,655,1119,1276]},{"a":4101,"t":"note","l":"colon_flags","c":"colon_flags ($05): bit 0 the clock's colon (6.0.0, through the digit latch's spare segment). Bit 1 is set when the clock's seconds roll over a ten and lets Bluto change boats; bit 2 stops the demo's Popeye moving twice in a second; bit 3 asks for the demo's next step.","note":"outside the tracked image","x":[568,841,1180]},{"a":4102,"t":"note","l":"miss_flags","c":"miss_flags ($06): bit 0 the first miss mark (7.0.0, the digit latch's spare segment). Bit 1 is set while one of Bluto's weapons is on its way down; bit 3 says Popeye was knocked in on the left.","note":"outside the tracked image","x":[890,976,1129]},{"a":4103,"t":"note","l":"fist_flags","c":"fist_flags ($07): bit 0 Bluto's right fist raised (8.0.0, the digit latch's spare segment). Bit 1: one item has fallen in the sea and not yet been counted; bit 2: clear the items' splashes at the next drawing; bit 3: Popeye was knocked in on the right.","note":"outside the tracked image","x":[1133]},{"a":4104,"t":"note","l":"lcd_popeye_r","c":"lcd_popeye_r ($08): latch 0, H1. Bit 0 the can over Popeye's head on the right (0.0.0), bit 1 Popeye's splash on the right (0.1.0), bit 2 Popeye on the right (0.2.0), bit 3 Bluto in the right boat (0.3.0).","note":"outside the tracked image","x":[850,854,876,1107]},{"a":4105,"t":"note","l":"in_flight","c":"in_flight ($09): how many items are falling or waiting at the bottom. A throw adds one, a catch or a fall into the sea takes one away, and it is set back to 0 whenever no item is on the screen ($0696).","note":"outside the tracked image","x":[203,222,969,1152,1167,1472,1722]},{"a":4106,"t":"note","l":"beat","c":"beat ($0A): bits 0-1 count the game's steps 0, 1, 2: the bottles move on step 0, the pineapples on 1, the cans on 2. Bit 2: the alarm is ringing. Bit 3: the buttons changed at the last reading, and are acted on when the next reading agrees.","note":"outside the tracked image","x":[299,519,847,1302,1307,1348,1414,1449,1479,1536,1576,1770]},{"a":4107,"t":"note","l":"events","c":"events ($0B): bit 0 an item was caught and the score is due a point; bit 1 a minute has passed (the alarm is checked); bit 2 the alarm is on.","note":"outside the tracked image","x":[64,623,1186,1327,1398,1424,1445,1500,1572]},{"a":4112,"t":"note","l":"lcd_splash_l","c":"lcd_splash_l ($10): latch 1, H2. Bit 0 Bluto's mallet down (1.0.1), bit 1 Popeye's splash on the left (1.1.1), bit 2 the bottle's splash (1.2.1), bit 3 the pineapple over Popeye's head in the middle (1.3.1).","note":"outside the tracked image","x":[238,264,327,341,398,415,465,476,759,864,1635,1654,1686]},{"a":4113,"t":"note","l":"lcd_bottles","c":"lcd_bottles ($11): latch 2, H2. Bit 0 the bottle at its 2nd place (2.0.1), bit 1 the 3rd (2.1.1), bit 2 the GAME B label (2.2.1), bit 3 Bluto's mallet halfway (2.3.1).","note":"outside the tracked image","x":[1057]},{"a":4114,"t":"note","l":"lcd_olive_arms","c":"lcd_olive_arms ($12): latch 3, H2, Olive Oyl again. Bit 0 her arm toward the pineapples (3.0.1), bit 1 an arm pose of the alarm (3.1.1), bit 2 the bell (3.2.1), lit when the alarm is on, bit 3 her arm toward the bottles (3.3.1).","note":"outside the tracked image","x":[810,1416,1551,1557]},{"a":4115,"t":"note","l":"lcd_pineapples","c":"lcd_pineapples ($13): latch 4, H2, the pineapples' first four places: bit 3 the 1st (4.3.1) down to bit 0 the 4th (4.0.1).","note":"outside the tracked image","x":[455,1694]},{"a":4116,"t":"note","l":"lcd_hours","c":"lcd_hours ($14): latch 5, H2. Bit 0 the hours' tens, the 1 of 10-12 (5.0.1), bit 1 AM (5.1.1), bit 2 PM (5.2.1), bit 3 the pineapple at its 5th place (5.3.1).","note":"outside the tracked image","x":[1060]},{"a":4117,"t":"note","l":"digit_1","c":"digit_1 to digit_3 ($15-$17): the three digits on the screen. In a game the score, hundreds, tens and units; in the clock the hours' units, the minutes' tens and units. A digit of $B is drawn blank: leading zeros are written as $B for the drawing and put back to 0 after it.","note":"outside the tracked image","x":[1200]},{"a":4118,"t":"note","l":"digit_2","note":"outside the tracked image"},{"a":4119,"t":"note","l":"digit_3","note":"outside the tracked image","x":[69,156]},{"a":4120,"t":"note","l":"lcd_splash_r","c":"lcd_splash_r ($18): latch 0, H2. Bit 0 the pineapple's splash (0.0.1), bit 1 the can's splash (0.1.1), bit 2 Bluto's fist halfway (0.2.1), bit 3 his fist down (0.3.1).","note":"outside the tracked image","x":[879,1091]},{"a":4121,"t":"note","l":"max_in_flight","c":"max_in_flight ($19): the most items that may be falling at once before Olive stops throwing extra ones: 3 in the clock's demo, 0 at the start of a game, then the difficulty level, set after each catch ($0080).","note":"outside the tracked image","x":[160,1474,1523]},{"a":4122,"t":"note","l":"tick_flags","c":"tick_flags ($1A): bit 2 a second has passed (the clock's demo steps on it); bit 3 the game's step is still due after a press of left or right broke into its delay.","note":"outside the tracked image","x":[22,58,524,550,953,1507]},{"a":4123,"t":"note","l":"tone_count","c":"tone_count ($1B): the tone routine's counter of passes.","note":"outside the tracked image","x":[688,698,1325]},{"a":4128,"t":"note","l":"sound_flags","c":"sound_flags ($20): bit 0 the alarm's sound, bit 2 the catch's sound, bit 3 the click of a step that moved or threw an item.","note":"outside the tracked image","x":[522,613,630,646,1184,1451]},{"a":4129,"t":"note","l":"sound_queued","c":"sound_queued ($21): the length code of a sound waiting to be played: 5 when Popeye is knocked in, 8 when a miss is counted, 9 when an item falls in the sea.","note":"outside the tracked image","x":[1079,1495]},{"a":4133,"t":"note","l":"hiscore_b","c":"hiscore_b ($25-$27): Game B's best score, hundreds, tens, units. The chip reaches it from the score's row by flipping BM.","note":"outside the tracked image"},{"a":4136,"t":"note","l":"repeat_at","c":"repeat_at ($28): the divider's value at which a held left or right repeats, when the time is set after power on or the alarm's time in its setting.","note":"outside the tracked image","x":[1005,1020]},{"a":4137,"t":"note","l":"landed","c":"landed ($29): an item is waiting at the bottom of its lane, over Popeye's head on that side: bit 0 a can (right), bit 1 a pineapple (middle), bit 2 a bottle (left). A catch clears its bit; a bit still set two steps later, at the next lane but one's step, means the item falls in the sea.","note":"outside the tracked image","x":[232,322,391,395,408,469,481,784,789,792,827,1498]},{"a":4138,"t":"note","l":"pad_flags","c":"pad_flags ($2A): bit 0 left or right is held (so a press moves Popeye once); bit 1 the bonus's blinking is under way.","note":"outside the tracked image","x":[36,93,986,1608,1814,1841]},{"a":4139,"t":"note","l":"state_flags","c":"state_flags ($2B): bit 0 the screen must be drawn again; bit 2 Game A or B is held down and the game starts when it is let go; bit 3 the mode changed and the screen must be set up for it.","note":"outside the tracked image","x":[33,526,543,628,640,1028,1196,1285,1323,1378,1401,1456,1509,1519,1565,1664,1844]},{"a":4144,"t":"note","l":"mode","c":"mode ($30): 0 just after power on or ACL (every segment lit; the time is set with left and right), 1 the clock, 2 Game B, 4 Game A, 8 the alarm's setting.","note":"outside the tracked image","x":[362,515,535,545,644,710,835,883,973,982,997,1124,1140,1204,1345,1367,1391,1410,1465]},{"a":4145,"t":"note","l":"keys","c":"keys ($31): the R4 row's buttons at the last reading: bit 0 Time, bit 1 Game B, bit 2 Game A, bit 3 Alarm.","note":"outside the tracked image","x":[1097]},{"a":4146,"t":"note","l":"alarm_h10","c":"alarm_h10 to alarm_m1 ($32-$35): the alarm's time: the hours' tens (0 or 1, with bit 3 set for PM), the hours' units, the minutes' tens and units. Power on sets 12:00 PM.","note":"outside the tracked image","x":[1336,1427,1779]},{"a":4147,"t":"note","l":"alarm_h1","note":"outside the tracked image","x":[617,1763]},{"a":4148,"t":"note","l":"alarm_m10","note":"outside the tracked image"},{"a":4149,"t":"note","l":"alarm_m1","note":"outside the tracked image","x":[635]},{"a":4150,"t":"note","l":"time_h10","c":"time_h10 to time_s1 ($36-$3B): the time of day: hours' tens (0 or 1, bit 3 for PM), hours' units, minutes' tens and units, seconds' tens and units. Power on sets 12:00 AM.","note":"outside the tracked image","x":[1331]},{"a":4151,"t":"note","l":"time_h1","note":"outside the tracked image","x":[576]},{"a":4152,"t":"note","l":"time_m10","note":"outside the tracked image"},{"a":4153,"t":"note","l":"time_m1","note":"outside the tracked image","x":[625,1733]},{"a":4154,"t":"note","l":"time_s10","note":"outside the tracked image","x":[1372]},{"a":4155,"t":"note","l":"time_s1","note":"outside the tracked image","x":[213,219,555,680,1321]},{"a":4160,"t":"note","l":"idle_hi","c":"idle_hi, idle_lo ($40, $41): seconds since a button last changed, high and low digit of a count to 255 ($0210). A change of the buttons, a miss counted, a press of left or right in the alarm's setting and a mode's setup clear it. Bit 1 of idle_lo, which flips every two seconds, is also what Bluto's swing waits on.","note":"outside the tracked image"},{"a":4161,"t":"note","l":"idle_lo","note":"outside the tracked image","x":[528,965,1025]},{"a":4162,"t":"note","l":"bonus_blinks","c":"bonus_blinks ($42): the bonus's blinks still to come, 10 to 0.","note":"outside the tracked image","x":[95,1611,1823]},{"a":4163,"t":"note","l":"knocked","c":"knocked ($43): counts the steps after Popeye is hit by Bluto, from 8 (9 in the demo) down to 0; while it is not 0 nothing falls and left and right are ignored.","note":"outside the tracked image","x":[242,752,887,1476]},{"a":4165,"t":"note","l":"hiscore_a","c":"hiscore_a ($45-$47): Game A's best score, hundreds, tens, units. The chip reaches row 4 as row 6 (SBM), its mirror.","note":"outside the tracked image"},{"a":4169,"t":"note","l":"delay","c":"delay ($49): the length of the pause before each step of the game, in passes of the delay loop at $03AA: 11 at the start, then 10 down to 2 as the difficulty rises.","note":"outside the tracked image","x":[42,177,1282]},{"a":4170,"t":"note","l":"delay_left","c":"delay_left ($4A): the passes of the delay still to run before the next step.","note":"outside the tracked image","x":[944]}]}