{"schema":1,"platform":"gnw","game":"parachute","title":"Parachute","build":"MAME's ROM set gnw_pchute: pr-21, the Sharp SM5A's mask ROM of the Wide Screen Parachute (PR-21), 1,856 bytes, CRC32 392b545e, SHA-1 e71940cd4cee07ba1e62c1c7d9e9b19410e7232d, as MAME 0.289 lists it","symbols_sha256":"fab9186866f09a0a0259f8b653a1b2747eecb187c7f67ec54ddd9df21947ae45","snapshot":{"file":"work/play-gamea.gnw.json.gz","sha256":"501886350b6768bc2ca038d490bc3457d0c6aac480ce46e703c196d0bcd7f941"},"index":[{"a":0,"n":"wake","k":"routine","len":4,"c":true},{"a":4,"n":"pass","k":"routine","len":8,"c":true},{"a":12,"n":"to_pad_pressed","k":"routine","len":2,"c":true},{"a":14,"n":"to_draw","k":"routine","len":3,"c":true},{"a":17,"n":"after_pass","k":"routine","len":10,"c":true},{"a":27,"n":"clock_second","k":"routine","len":4,"c":true},{"a":31,"n":"game_wait","k":"routine","len":18,"c":true},{"a":49,"n":"sleep","k":"routine","len":5,"c":true},{"a":54,"n":"after_draw","k":"routine","len":10,"c":true},{"a":64,"n":"wait_spin","k":"routine","len":6,"c":true},{"a":70,"n":"wait","k":"routine","len":13,"c":true},{"a":83,"n":"step","k":"routine","len":19,"c":true},{"a":102,"n":"middle_lane","k":"routine","len":26,"c":true},{"a":128,"n":"points","k":"routine","len":5,"c":true},{"a":133,"n":"add_point","k":"routine","len":30,"c":true},{"a":163,"n":"best_check","k":"routine","len":29,"c":true},{"a":192,"n":"set_wait","k":"routine","len":64,"c":true},{"a":256,"n":"step_body","k":"routine","len":13,"c":true},{"a":269,"n":"demo_end","k":"routine","len":5,"c":true},{"a":274,"n":"jump_chance","k":"routine","len":31,"c":true},{"a":305,"n":"clear_landed","k":"routine","len":15,"c":true},{"a":320,"n":"middle_land","k":"routine","len":15,"c":true},{"a":335,"n":"left_miss","k":"routine","len":12,"c":true},{"a":347,"n":"left_lane","k":"routine","len":37,"c":true},{"a":384,"n":"right_miss","k":"routine","len":14,"c":true},{"a":398,"n":"right_lane_end","k":"routine","len":20,"c":true},{"a":418,"n":"middle_miss","k":"routine","len":8,"c":true},{"a":426,"n":"to_miss_start","k":"routine","len":2,"c":true},{"a":428,"n":"step_end","k":"routine","len":5,"c":true},{"a":433,"n":"step_click","k":"routine","len":9,"c":true},{"a":442,"n":"release_check","k":"routine","len":6,"c":true},{"a":448,"n":"lane_move","k":"routine","len":3,"c":true},{"a":451,"n":"right_lane","k":"routine","len":30,"c":true},{"a":481,"n":"tree_release","k":"routine","len":31,"c":true},{"a":512,"n":"timekeep","k":"routine","len":61,"c":true},{"a":573,"n":"add_minute_at_b","k":"routine","len":3,"c":true},{"a":576,"n":"add_hour","k":"routine","len":37,"c":true},{"a":613,"n":"page09_unused","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","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":"pad_pressed","k":"routine","len":38,"c":true},{"a":742,"n":"demo_step","k":"routine","len":5,"c":true},{"a":747,"n":"demo_next","k":"routine","len":11,"c":true},{"a":758,"n":"middle_or_left","k":"routine","len":10,"c":true},{"a":768,"n":"move_boat","k":"routine","len":37,"c":true},{"a":805,"n":"demo_boat","k":"routine","len":14,"c":true},{"a":819,"n":"boat_left","k":"routine","len":13,"c":true},{"a":832,"n":"miss_anim","k":"routine","len":51,"c":true},{"a":883,"n":"count_miss","k":"routine","len":13,"c":true},{"a":896,"n":"read_pad","k":"routine","len":41,"c":true},{"a":937,"n":"miss_start","k":"routine","len":23,"c":true},{"a":960,"n":"power_on","k":"routine","len":41,"c":true},{"a":1001,"n":"boat_mid_to_left","k":"routine","len":7,"c":true},{"a":1008,"n":"boat_right","k":"routine","len":16,"c":true},{"a":1024,"n":"take_05","k":"routine","len":2,"c":true},{"a":1026,"n":"take_cell","k":"routine","len":1,"c":true},{"a":1027,"n":"clear_40_41","k":"routine","len":2,"c":true},{"a":1029,"n":"clear_down","k":"routine","len":1,"c":true},{"a":1030,"n":"set_redraw","k":"routine","len":3,"c":true},{"a":1033,"n":"draw_cell","k":"routine","len":8,"c":true},{"a":1041,"n":"dec_in_air","k":"routine","len":1,"c":true},{"a":1042,"n":"count_jump","k":"routine","len":1,"c":true},{"a":1043,"n":"c_not_game_b","k":"routine","len":1,"c":true},{"a":1044,"n":"skip_if_game","k":"routine","len":1,"c":true},{"a":1045,"n":"show_helicopter","k":"routine","len":1,"c":true},{"a":1046,"n":"skip_if_clear0","k":"routine","len":1,"c":true},{"a":1047,"n":"skip_if_clear1","k":"routine","len":1,"c":true},{"a":1048,"n":"skip_if_clear2","k":"routine","len":1,"c":true},{"a":1049,"n":"skip_if_clear3","k":"routine","len":1,"c":true},{"a":1050,"n":"skip_if_carry","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_06","k":"routine","len":1,"c":true},{"a":1054,"n":"point_07","k":"routine","len":1,"c":true},{"a":1055,"n":"point_01","k":"routine","len":1,"c":true},{"a":1056,"n":"point_08","k":"routine","len":1,"c":true},{"a":1057,"n":"point_12","k":"routine","len":3,"c":true},{"a":1060,"n":"point_13","k":"routine","len":3,"c":true},{"a":1063,"n":"point_14","k":"routine","len":3,"c":true},{"a":1066,"n":"point_11","k":"routine","len":3,"c":true},{"a":1069,"n":"point_18","k":"routine","len":1,"c":true},{"a":1070,"n":"select_r4","k":"routine","len":2,"c":true},{"a":1072,"n":"point_31","k":"routine","len":1,"c":true},{"a":1073,"n":"point_15","k":"routine","len":1,"c":true},{"a":1074,"n":"skip_if_no_redraw","k":"routine","len":1,"c":true},{"a":1075,"n":"skip_if_over","k":"routine","len":1,"c":true},{"a":1076,"n":"skip_if_ringing","k":"routine","len":1,"c":true},{"a":1077,"n":"take_bit0","k":"routine","len":1,"c":true},{"a":1078,"n":"take_bit1","k":"routine","len":1,"c":true},{"a":1079,"n":"take_bit2","k":"routine","len":1,"c":true},{"a":1080,"n":"take_bit3","k":"routine","len":1,"c":true},{"a":1081,"n":"skip_if_mode_lt2","k":"routine","len":1,"c":true},{"a":1082,"n":"catch","k":"routine","len":1,"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":"skip_if_clear1_body","k":"routine","len":3,"c":true},{"a":1091,"n":"point_18_body","k":"routine","len":3,"c":true},{"a":1094,"n":"point_03_body","k":"routine","len":3,"c":true},{"a":1097,"n":"point_31_body","k":"routine","len":3,"c":true},{"a":1100,"n":"take_bit3_body","k":"routine","len":4,"c":true},{"a":1104,"n":"point_04_body","k":"routine","len":8,"c":true},{"a":1112,"n":"take_bit0_body","k":"routine","len":4,"c":true},{"a":1116,"n":"skip_if_carry_body","k":"routine","len":3,"c":true},{"a":1119,"n":"skip_if_over_body","k":"routine","len":5,"c":true},{"a":1124,"n":"c_not_game_b_body","k":"routine","len":5,"c":true},{"a":1129,"n":"skip_if_ringing_body","k":"routine","len":4,"c":true},{"a":1133,"n":"point_01_body","k":"routine","len":3,"c":true},{"a":1136,"n":"take_bit2_body","k":"routine","len":4,"c":true},{"a":1140,"n":"skip_if_game_body","k":"routine","len":12,"c":true},{"a":1152,"n":"dec_in_air_body","k":"routine","len":6,"c":true},{"a":1158,"n":"show_helicopter_body","k":"routine","len":6,"c":true},{"a":1164,"n":"count_jump_body","k":"routine","len":12,"c":true},{"a":1176,"n":"clear_down_body","k":"routine","len":4,"c":true},{"a":1180,"n":"point_07_body","k":"routine","len":4,"c":true},{"a":1184,"n":"catch_body","k":"routine","len":5,"c":true},{"a":1189,"n":"take_bit1_body","k":"routine","len":4,"c":true},{"a":1193,"n":"skip_if_clear2_body","k":"routine","len":3,"c":true},{"a":1196,"n":"skip_if_no_redraw_body","k":"routine","len":1,"c":true},{"a":1197,"n":"skip_if_clear0_body","k":"routine","len":3,"c":true},{"a":1200,"n":"point_15_body","k":"routine","len":4,"c":true},{"a":1204,"n":"skip_if_mode_lt2_body","k":"routine","len":5,"c":true},{"a":1209,"n":"skip_if_clear3_body","k":"routine","len":7,"c":true},{"a":1216,"n":"swap_c_bit3_body","k":"routine","len":5,"c":true},{"a":1221,"n":"swap_exit_set","k":"routine","len":3,"c":true},{"a":1224,"n":"swap3_set_c","k":"routine","len":2,"c":true},{"a":1226,"n":"swap3_clear_bit","k":"routine","len":3,"c":true},{"a":1229,"n":"swap_exit_clear","k":"routine","len":2,"c":true},{"a":1231,"n":"swap3_tail","k":"routine","len":2,"c":true},{"a":1233,"n":"swap_c_bit2_body","k":"routine","len":14,"c":true},{"a":1247,"n":"swap_c_bit1_body","k":"routine","len":14,"c":true},{"a":1261,"n":"swap_c_bit0_body","k":"routine","len":15,"c":true},{"a":1276,"n":"point_06_body","k":"routine","len":4,"c":true},{"a":1280,"n":"set_limit_delay","k":"routine","len":6,"c":true},{"a":1286,"n":"read_keys","k":"routine","len":32,"c":true},{"a":1318,"n":"mode_entered","k":"routine","len":26,"c":true},{"a":1344,"n":"mode_change","k":"routine","len":42,"c":true},{"a":1386,"n":"start_game","k":"routine","len":22,"c":true},{"a":1408,"n":"after_keys","k":"routine","len":8,"c":true},{"a":1416,"n":"alarm_minute","k":"routine","len":31,"c":true},{"a":1447,"n":"read_r3","k":"routine","len":9,"c":true},{"a":1456,"n":"alarm_ring","k":"routine","len":16,"c":true},{"a":1472,"n":"mode_setup","k":"routine","len":48,"c":true},{"a":1520,"n":"game_screen","k":"routine","len":16,"c":true},{"a":1536,"n":"draw_prep","k":"routine","len":37,"c":true},{"a":1573,"n":"bell_swing","k":"routine","len":27,"c":true},{"a":1600,"n":"draw","k":"routine","len":46,"c":true},{"a":1646,"n":"draw_end","k":"routine","len":9,"c":true},{"a":1655,"n":"page19_unused","k":"routine","len":9,"c":true},{"a":1664,"n":"blank_zeros","k":"routine","len":8,"c":true},{"a":1672,"n":"sky_empty","k":"routine","len":56,"c":true},{"a":1728,"n":"clock_screen","k":"routine","len":19,"c":true},{"a":1747,"n":"power_on_screen","k":"routine","len":16,"c":true},{"a":1763,"n":"alarm_screen","k":"routine","len":29,"c":true},{"a":1792,"n":"am_pm","k":"routine","len":17,"c":true},{"a":1809,"n":"unblank","k":"routine","len":11,"c":true},{"a":1820,"n":"bonus_step","k":"routine","len":36,"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 of the row is down (it was the second that woke it), it asks for the screen to be drawn; then it makes a pass ($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":[223],"m":"TRS","oa":1030,"x":[954],"o":"set_redraw"},{"a":4,"l":"pass","c":"pass: one pass of the clock, the buttons and the screen. It calls timekeep ($0200), goes to read_keys ($0506) on page $14, which comes back to $0009, and calls read_pad ($0380): a new press of left or right goes to pad_pressed ($02C0). Then the screen: draw_prep ($0600), which comes back to after_draw ($0036), or to $0004 for another pass.","t":"code","b":[120],"m":"SSR","x":[21,23,35,38,50,99,190,247,1000],"o":"8"},{"a":5,"t":"code","b":[192],"m":"TRS","oa":512,"o":"timekeep"},{"a":6,"t":"code","b":[109],"m":"COMCB"},{"a":7,"t":"code","b":[116],"m":"SSR","o":"4"},{"a":8,"t":"code","b":[159],"m":"TR","oa":262,"o":"$1F"},{"a":9,"t":"code","b":[126],"m":"SSR","o":"$E"},{"a":10,"t":"code","b":[192],"m":"TRS","oa":896,"o":"read_pad"},{"a":11,"t":"code","b":[179],"m":"TR","oa":14,"o":"to_draw"},{"a":12,"l":"to_pad_pressed","c":"to_pad_pressed: goes to pad_pressed ($02C0) on page $0B.","t":"code","b":[123],"m":"SSR","x":[42],"o":"$B"},{"a":13,"t":"code","b":[128],"m":"TR","oa":704,"o":"pad_pressed"},{"a":14,"l":"to_draw","c":"to_draw: goes to draw_prep ($0600) on page $18.","t":"code","b":[109],"m":"COMCB","x":[11,57]},{"a":15,"t":"code","b":[120],"m":"SSR","o":"8"},{"a":16,"t":"code","b":[128],"m":"TR","oa":512,"o":"timekeep"},{"a":17,"l":"after_pass","c":"after_pass: what to do once the screen is drawn. In a game, game_wait ($001F). Out of one: in the alarm's setting (mode 8) and after power on (mode 0), another pass; in the clock, a second that has passed (tick_flags bit 2) runs the demo's next step ($001B), and otherwise the chip sleeps ($0031).","t":"code","b":[245],"m":"TRS","oa":1044,"x":[60],"o":"skip_if_game"},{"a":18,"t":"code","b":[181],"m":"TR","oa":20,"o":"$35"},{"a":19,"t":"code","b":[142],"m":"TR","oa":31,"o":"game_wait"},{"a":20,"t":"code","b":[225],"m":"TRS","oa":1049,"x":[18],"o":"skip_if_clear3"},{"a":21,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":22,"t":"code","b":[84],"m":"TM","o":"0"},{"a":23,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":24,"t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags"},{"a":25,"t":"code","b":[233],"m":"TRS","oa":1079,"o":"take_bit2"},{"a":26,"t":"code","b":[164],"m":"TR","oa":49,"o":"sleep"},{"a":27,"l":"clock_second","c":"clock_second: the clock's demo, once a second: clears flag_07 bit 2, which lets the demo's boat move again, and goes to demo_step ($02E6): the three lanes' miss checks and all three lanes' moves. step ($0053) itself does not run in the clock, so the rotor stands still there.","t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_07"},{"a":28,"t":"code","b":[6],"m":"RM","o":"2"},{"a":29,"t":"code","b":[123],"m":"SSR","o":"$B"},{"a":30,"t":"code","b":[155],"m":"TR","oa":742,"o":"demo_step"},{"a":31,"l":"game_wait","c":"game_wait: in a game. Keeps time again ($0200). While a game key is held (redraw_flags bit 2) or the bonus is due (pad_flags bit 1) it makes another pass. Otherwise it reads left and right (read_pad, $0380; a new press goes to pad_pressed), copies delay ($49) into delay_left ($4A) and starts the wait before the next step ($0046). The two jumps back to a pass ($0023, $0026) never ran in a coverage run of every mode.","t":"code","b":[120],"m":"SSR","x":[19],"o":"8"},{"a":32,"t":"code","b":[192],"m":"TRS","oa":512,"o":"timekeep"},{"a":33,"t":"code","b":[78],"m":"LB","oa":4139,"o":"redraw_flags"},{"a":34,"t":"code","b":[195],"m":"TRS","oa":1048,"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":[198],"m":"TRS","oa":1047,"o":"skip_if_clear1"},{"a":38,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":39,"t":"code","b":[126],"m":"SSR","o":"$E"},{"a":40,"t":"code","b":[192],"m":"TRS","oa":896,"o":"read_pad"},{"a":41,"t":"code","b":[146],"m":"TR","oa":43,"o":"$12"},{"a":42,"t":"code","b":[143],"m":"TR","oa":12,"o":"to_pad_pressed"},{"a":43,"t":"code","b":[95,73],"m":"LBL","oa":4169,"x":[41],"o":"delay"},{"a":45,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":46,"t":"code","b":[100],"m":"INCB"},{"a":47,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":48,"t":"code","b":[130],"m":"TR","oa":61,"o":"$02"},{"a":49,"l":"sleep","c":"sleep: when nothing waits to be drawn, selects the R4 row of buttons and sleeps (CEND) until a button of that row or the 1 Hz flag wakes the chip at $0000. With a redraw waiting it makes another pass instead ($0032, which never ran: the drawing clears the request first).","t":"code","b":[242],"m":"TRS","oa":1074,"x":[26],"o":"skip_if_no_redraw"},{"a":50,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":51,"t":"code","b":[226],"m":"TRS","oa":1070,"o":"select_r4"},{"a":52,"t":"code","b":[94,0],"m":"CEND"},{"a":54,"l":"after_draw","c":"after_draw: where draw_prep comes back. Keeps time again ($0200, which also plays the sounds), draws again if something asked for it meanwhile, then: when tick_flags bit 3 says a press of left or right broke into the wait, the wait goes on where it was ($0046); otherwise after_pass ($0011).","t":"code","b":[120],"m":"SSR","x":[266,731,801,867],"o":"8"},{"a":55,"t":"code","b":[192],"m":"TRS","oa":512,"o":"timekeep"},{"a":56,"t":"code","b":[242],"m":"TRS","oa":1074,"o":"skip_if_no_redraw"},{"a":57,"t":"code","b":[179],"m":"TR","oa":14,"o":"to_draw"},{"a":58,"t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags"},{"a":59,"t":"code","b":[212],"m":"TRS","oa":1080,"o":"take_bit3"},{"a":60,"t":"code","b":[174],"m":"TR","oa":17,"o":"after_pass"},{"a":61,"t":"code","b":[113],"m":"SSR","x":[48],"o":"1"},{"a":62,"t":"code","b":[159],"m":"TR","oa":70,"o":"wait"},{"a":63,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":0,"o":"wake"},{"a":64,"l":"wait_spin","c":"wait_spin: the body of one pass of the wait: from A = 6, ten rounds of INCBs from column 0 of row 2 until INCB skips at column 8, a fixed run of instructions that sets how long a pass of the wait takes.","t":"code","b":[38],"m":"LAX","x":[78,127],"o":"6"},{"a":65,"t":"code","b":[66],"m":"LB","oa":4128,"x":[69],"o":"sound_flags"},{"a":66,"t":"code","b":[100],"m":"INCB","x":[67]},{"a":67,"t":"code","b":[176],"m":"TR","oa":66,"o":"$30"},{"a":68,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":69,"t":"code","b":[160],"m":"TR","oa":65,"o":"$20"},{"a":70,"l":"wait","c":"wait: the wait between two steps of a game. Each pass takes one from delay_left ($4A), reads left and right (read_pad, $0380) and spins ($0040); a new press sets tick_flags bit 3 and goes to pad_pressed ($02C0) at once, and the wait goes on after it. When delay_left is 0 the step starts ($0053). So the step's period is delay ($49) passes.","t":"code","b":[95,74],"m":"LBL","oa":4170,"x":[62],"o":"delay_left"},{"a":72,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":73,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":74,"t":"code","b":[171],"m":"TR","oa":83,"o":"step"},{"a":75,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":76,"t":"code","b":[126],"m":"SSR","o":"$E"},{"a":77,"t":"code","b":[192],"m":"TRS","oa":896,"o":"read_pad"},{"a":78,"t":"code","b":[128],"m":"TR","oa":64,"o":"wait_spin"},{"a":79,"t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags"},{"a":80,"t":"code","b":[15],"m":"SM","o":"3"},{"a":81,"t":"code","b":[123],"m":"SSR","o":"$B"},{"a":82,"t":"code","b":[128],"m":"TR","oa":704,"o":"pad_pressed"},{"a":83,"l":"step","c":"step: one step of a game, reached only from the wait ($0046). First the rotor turns: a token goes round lcd_00 bit 0, which has no segment, and the two blades (8.3.0, 8.3.1), by swapping each with C in turn, so each blade is lit two steps in three. Then the alarm's bell ($0625), and a redraw is asked for. With the third miss lit (lcd_18 bit 0) the game is over: only the rotor turns, and the step ends with a pass. Otherwise step_body ($0100).","t":"code","b":[64],"m":"LB","oa":4096,"x":[74],"o":"lcd_00"},{"a":84,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":85,"t":"code","b":[100],"m":"INCB"},{"a":86,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":87,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":88,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":89,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_00"},{"a":90,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":91,"t":"code","b":[109],"m":"COMCB"},{"a":92,"t":"code","b":[120],"m":"SSR","o":"8"},{"a":93,"t":"code","b":[246],"m":"TRS","oa":549,"o":"$36"},{"a":94,"t":"code","b":[109],"m":"COMCB"},{"a":95,"t":"code","b":[223],"m":"TRS","oa":1030,"o":"set_redraw"},{"a":96,"t":"code","b":[217],"m":"TRS","oa":1075,"o":"skip_if_over"},{"a":97,"t":"code","b":[172],"m":"TR","oa":100,"o":"$2C"},{"a":98,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":99,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":100,"t":"code","b":[116],"m":"SSR","x":[97],"o":"4"},{"a":101,"t":"code","b":[128],"m":"TR","oa":256,"o":"step_body"},{"a":102,"l":"middle_lane","c":"middle_lane: the middle lane's move, every third step. C says whether a new paratrooper jumps; with the lane's first place (7.0.1) taken he does not. He is counted in in_air ($0412), then each place of the lane takes the one above it, from 7.0.1 to 2.0.1, through C: lcd_10's four bits, then lcd_14 bit 3 (3.3.1) and lcd_13 bit 0 (2.0.1) at $0140. In the clock's demo, a paratrooper entering 3.3.1 moves the demo's boat to the middle at once ($0073), and sets flag_07 bit 2.","t":"code","b":[205],"m":"TRS","oa":1046,"x":[764],"o":"skip_if_clear0"},{"a":103,"t":"code","b":[102],"m":"RC"},{"a":104,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"count_jump"},{"a":105,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_10"},{"a":106,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":107,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":108,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":109,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":110,"t":"code","b":[208],"m":"TRS","oa":1050,"o":"skip_if_carry"},{"a":111,"t":"code","b":[149],"m":"TR","oa":122,"o":"$15"},{"a":112,"s":"Only in the clock (mode bit 0): the demo's boat goes to the middle.","t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":113,"t":"code","b":[84],"m":"TM","o":"0"},{"a":114,"t":"code","b":[149],"m":"TR","oa":122,"o":"$15"},{"a":115,"t":"code","b":[236],"m":"TRS","oa":1060,"o":"point_13"},{"a":116,"t":"code","b":[6],"m":"RM","o":"2"},{"a":117,"t":"code","b":[13],"m":"SM","o":"1"},{"a":118,"t":"code","b":[196],"m":"TRS","oa":1069,"o":"point_18"},{"a":119,"t":"code","b":[7],"m":"RM","o":"3"},{"a":120,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_07"},{"a":121,"t":"code","b":[14],"m":"SM","o":"2"},{"a":122,"s":"The fifth and sixth places, at middle_land ($0140).","t":"code","b":[237],"m":"TRS","oa":1063,"x":[111,114],"o":"point_14"},{"a":123,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":124,"t":"code","b":[108],"m":"DECB"},{"a":125,"t":"code","b":[117],"m":"SSR","o":"5"},{"a":126,"t":"code","b":[128],"m":"TR","oa":320,"o":"middle_land"},{"a":127,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":64,"o":"wait_spin"},{"a":128,"l":"points","c":"points: runs at the end of a step in a game ($037D) and after a press that brought the boat under a falling paratrooper ($0323), with game_flags bit 0 saying a catch is to be counted. Without it, a pass. With it, add_point ($0085), the best score ($00A3) and the next wait (set_wait, $00C0).","t":"code","b":[76],"m":"LB","oa":4107,"x":[191,804,894],"o":"game_flags"},{"a":129,"t":"code","b":[230],"m":"TRS","oa":1077,"o":"take_bit0"},{"a":130,"t":"code","b":[130],"m":"TR","oa":189,"o":"$02"},{"a":131,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_game"},{"a":132,"s":"Never ran: only a game reaches points (the clock's demo ends its step at $0362).","t":"code","b":[130],"m":"TR","oa":189,"o":"$02"},{"a":133,"l":"add_point","c":"add_point: adds one to the score, units first ($17): a digit that passes 9 goes to 0 and carries to the next, and 999 goes to 000. When the hundreds change and become 2 or 5, and a miss is lit (lcd_18 bit 2, the first), the bonus is due: pad_flags bit 1, and bonus_blinks ($42) set to 10 ($009D).","t":"code","b":[95,23],"m":"LBL","oa":4119,"o":"digit_3"},{"a":135,"t":"code","b":[24],"m":"LDA","x":[143],"o":"0"},{"a":136,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":137,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":138,"t":"code","b":[55],"m":"ADX","o":"7"},{"a":139,"t":"code","b":[156],"m":"TR","oa":144,"o":"$1C"},{"a":140,"t":"code","b":[28],"m":"EXCD","o":"0"},{"a":141,"t":"code","b":[36],"m":"LAX","o":"4"},{"a":142,"t":"code","b":[91],"m":"TABL"},{"a":143,"t":"code","b":[175],"m":"TR","oa":135,"o":"$2F"},{"a":144,"t":"code","b":[37],"m":"LAX","x":[139],"o":"5"},{"a":145,"t":"code","b":[91],"m":"TABL"},{"a":146,"t":"code","b":[152],"m":"TR","oa":163,"o":"best_check"},{"a":147,"s":"The hundreds have just changed: 2 or 5 give the bonus.","t":"code","b":[34],"m":"LAX","o":"2"},{"a":148,"t":"code","b":[83],"m":"TAM"},{"a":149,"t":"code","b":[134],"m":"TR","oa":151,"o":"$06"},{"a":150,"t":"code","b":[144],"m":"TR","oa":154,"o":"$10"},{"a":151,"t":"code","b":[37],"m":"LAX","x":[149],"o":"5"},{"a":152,"t":"code","b":[83],"m":"TAM"},{"a":153,"t":"code","b":[152],"m":"TR","oa":163,"o":"best_check"},{"a":154,"t":"code","b":[196],"m":"TRS","oa":1069,"x":[150],"o":"point_18"},{"a":155,"t":"code","b":[86],"m":"TM","o":"2"},{"a":156,"t":"code","b":[152],"m":"TR","oa":163,"o":"best_check"},{"a":157,"t":"code","b":[74],"m":"LB","oa":4138,"o":"pad_flags"},{"a":158,"t":"code","b":[13],"m":"SM","o":"1"},{"a":159,"t":"code","b":[95,66],"m":"LBL","oa":4162,"o":"bonus_blinks"},{"a":161,"t":"code","b":[42],"m":"LAX","o":"$A"},{"a":162,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":163,"l":"best_check","c":"best_check: compares the score with the best of the game being played, digit by digit from the hundreds: Game B's at $25-$27, Game A's at $45-$47, reached by setting BM (SBM) when C, set by c_not_game_b ($0413), says it is not Game B. A higher score is copied in ($00B3).","t":"code","b":[235],"m":"TRS","oa":1043,"x":[146,153,156],"o":"c_not_game_b"},{"a":164,"t":"code","b":[228],"m":"TRS","oa":1073,"o":"point_15"},{"a":165,"t":"code","b":[107],"m":"RBM","x":[172]},{"a":166,"t":"code","b":[27],"m":"LDA","o":"3"},{"a":167,"t":"code","b":[82],"m":"TC"},{"a":168,"t":"code","b":[2],"m":"SBM"},{"a":169,"t":"code","b":[83],"m":"TAM"},{"a":170,"t":"code","b":[162],"m":"TR","oa":174,"o":"$22"},{"a":171,"t":"code","b":[23],"m":"EXCI","o":"3"},{"a":172,"t":"code","b":[182],"m":"TR","oa":165,"o":"$36"},{"a":173,"t":"code","b":[138],"m":"TR","oa":187,"o":"$0A"},{"a":174,"t":"code","b":[10],"m":"COMA","x":[170]},{"a":175,"t":"code","b":[102],"m":"RC"},{"a":176,"t":"code","b":[9],"m":"ADDC"},{"a":177,"t":"code","b":[153],"m":"TR","oa":179,"o":"$19"},{"a":178,"t":"code","b":[138],"m":"TR","oa":187,"o":"$0A"},{"a":179,"t":"code","b":[235],"m":"TRS","oa":1043,"x":[177],"o":"c_not_game_b"},{"a":180,"t":"code","b":[228],"m":"TRS","oa":1073,"o":"point_15"},{"a":181,"t":"code","b":[107],"m":"RBM","x":[186]},{"a":182,"t":"code","b":[27],"m":"LDA","o":"3"},{"a":183,"t":"code","b":[82],"m":"TC"},{"a":184,"t":"code","b":[2],"m":"SBM"},{"a":185,"t":"code","b":[23],"m":"EXCI","o":"3"},{"a":186,"t":"code","b":[166],"m":"TR","oa":181,"o":"$26"},{"a":187,"t":"code","b":[115],"m":"SSR","x":[173,178],"o":"3"},{"a":188,"t":"code","b":[128],"m":"TR","oa":192,"o":"set_wait"},{"a":189,"t":"code","b":[112],"m":"SSR","x":[130,132],"o":"0"},{"a":190,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":191,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":128,"o":"points"},{"a":192,"l":"set_wait","c":"set_wait: the pace, from the score. The hundreds plus the tens (0 to 18) give a base: 1 for 0, 2 for 1, 3 for 2 to 5, 4 for 6 to 8, 5 for 9 and 10, 6 for 11 and 12, 7 for 13 and 14, 8 for 15 and 16, 9 for 17 and 18 (the table of LAX at $00C7-$00DC, jumped into by the ADX chain). Units of 4 to 7 add one. The result, 1 to 10, is jump_limit ($19). The wait (delay, $49) is 11 passes while the limit is 4 or less, and then 15 minus the limit: 10 at 5, down to 5 at 10 ($00E3). Game A and Game B share it.","t":"code","b":[103],"m":"SC","x":[188,255]},{"a":193,"t":"code","b":[95,22],"m":"LBL","oa":4118,"o":"digit_2"},{"a":195,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":196,"t":"code","b":[108],"m":"DECB"},{"a":197,"t":"code","b":[9],"m":"ADDC"},{"a":198,"t":"code","b":[158],"m":"TR","oa":203,"o":"$1E"},{"a":199,"s":"The table: each ADX takes a range of the sum; the LAX it lands on is the base.","t":"code","b":[62],"m":"ADX","o":"$E"},{"a":200,"t":"code","b":[40],"m":"LAX","o":"8"},{"a":201,"t":"code","b":[41],"m":"LAX","o":"9"},{"a":202,"t":"code","b":[186],"m":"TR","oa":221,"o":"$3A"},{"a":203,"t":"code","b":[62],"m":"ADX","x":[198],"o":"$E"},{"a":204,"t":"code","b":[180],"m":"TR","oa":220,"o":"$34"},{"a":205,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":206,"t":"code","b":[168],"m":"TR","oa":219,"o":"$28"},{"a":207,"t":"code","b":[60],"m":"ADX","o":"$C"},{"a":208,"t":"code","b":[144],"m":"TR","oa":218,"o":"$10"},{"a":209,"t":"code","b":[61],"m":"ADX","o":"$D"},{"a":210,"t":"code","b":[161],"m":"TR","oa":217,"o":"$21"},{"a":211,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":212,"t":"code","b":[131],"m":"TR","oa":216,"o":"$03"},{"a":213,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":214,"t":"code","b":[38],"m":"LAX","o":"6"},{"a":215,"t":"code","b":[39],"m":"LAX","o":"7"},{"a":216,"t":"code","b":[37],"m":"LAX","x":[212],"o":"5"},{"a":217,"t":"code","b":[36],"m":"LAX","x":[210],"o":"4"},{"a":218,"t":"code","b":[35],"m":"LAX","x":[208],"o":"3"},{"a":219,"t":"code","b":[34],"m":"LAX","x":[206],"o":"2"},{"a":220,"t":"code","b":[33],"m":"LAX","x":[204],"o":"1"},{"a":221,"t":"code","b":[95,23],"m":"LBL","oa":4119,"x":[202],"o":"digit_3"},{"a":223,"t":"code","b":[195],"m":"TRS","oa":1048,"o":"skip_if_clear2"},{"a":224,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":225,"t":"code","b":[69],"m":"LB","oa":4121,"o":"jump_limit"},{"a":226,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":227,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":228,"t":"code","b":[10],"m":"COMA"},{"a":229,"t":"code","b":[60],"m":"ADX","o":"$C"},{"a":230,"s":"Never ran: the TR of each ADX that does not carry for any limit from 1 to 10.","t":"code","b":[136],"m":"TR","oa":240,"o":"$08"},{"a":231,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":232,"t":"code","b":[145],"m":"TR","oa":239,"o":"$11"},{"a":233,"t":"code","b":[59],"m":"ADX","o":"$B"},{"a":234,"t":"code","b":[137],"m":"TR","oa":236,"o":"$09"},{"a":235,"t":"code","b":[162],"m":"TR","oa":238,"o":"$22"},{"a":236,"t":"code","b":[58],"m":"ADX","x":[234],"o":"$A"},{"a":237,"t":"code","b":[164],"m":"TR","oa":241,"o":"$24"},{"a":238,"t":"code","b":[42],"m":"LAX","x":[235],"o":"$A"},{"a":239,"t":"code","b":[36],"m":"LAX","x":[232],"o":"4"},{"a":240,"t":"code","b":[35],"m":"LAX","x":[230],"o":"3"},{"a":241,"t":"code","b":[49],"m":"ADX","x":[237],"o":"1"},{"a":242,"t":"code","b":[0],"m":"SKIP"},{"a":243,"t":"code","b":[95,73],"m":"LBL","oa":4169,"o":"delay"},{"a":245,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":246,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":247,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":248,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":249,"t":"code","b":[0],"m":"SKIP"},{"a":250,"t":"code","b":[0],"m":"SKIP"},{"a":251,"t":"code","b":[0],"m":"SKIP"},{"a":252,"t":"code","b":[0],"m":"SKIP"},{"a":253,"t":"code","b":[0],"m":"SKIP"},{"a":254,"t":"code","b":[0],"m":"SKIP"},{"a":255,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":192,"o":"set_wait"},{"a":256,"l":"step_body","c":"step_body: while a miss's animation runs (redraw_flags bit 1) the lanes stand still: lane_turn is set to bit 0 alone, which makes miss_anim ($0340) move the animation at each step, except the first, which game_flags bit 3 (taken at $0106) holds back. Otherwise the jump's chance ($0112), the lane whose turn it is ($01C0), the miss checks, the click and the tree, then $0106: miss_anim, which with lane_turn bit 0 set also moves the shark's chain, and the points ($0080).","t":"code","b":[78],"m":"LB","oa":4139,"x":[101,319],"o":"redraw_flags"},{"a":257,"t":"code","b":[85],"m":"TM","o":"1"},{"a":258,"t":"code","b":[151],"m":"TR","oa":274,"o":"jump_chance"},{"a":259,"t":"code","b":[72],"m":"LB","oa":4106,"o":"lane_turn"},{"a":260,"t":"code","b":[5],"m":"RM","o":"1"},{"a":261,"t":"code","b":[12],"m":"SM","o":"0"},{"a":262,"t":"code","b":[76],"m":"LB","oa":4107,"x":[8,273,441],"o":"game_flags"},{"a":263,"t":"code","b":[212],"m":"TRS","oa":1080,"o":"take_bit3"},{"a":264,"t":"code","b":[158],"m":"TR","oa":267,"o":"$1E"},{"a":265,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":266,"t":"code","b":[147],"m":"TR","oa":54,"o":"after_draw"},{"a":267,"t":"code","b":[125],"m":"SSR","x":[264],"o":"$D"},{"a":268,"t":"code","b":[128],"m":"TR","oa":832,"o":"miss_anim"},{"a":269,"l":"demo_end","c":"demo_end: the clock's demo, after a lane's move: keeps time ($0200), then, unless lane_turn bit 0 is set (the left lane has just moved), runs the jump's chance and the next lane ($0112). So each second of the demo moves all three lanes, middle, right and left, as checked on the model.","t":"code","b":[120],"m":"SSR","x":[439],"o":"8"},{"a":270,"t":"code","b":[192],"m":"TRS","oa":512,"o":"timekeep"},{"a":271,"t":"code","b":[72],"m":"LB","oa":4106,"o":"lane_turn"},{"a":272,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":273,"t":"code","b":[159],"m":"TR","oa":262,"o":"$1F"},{"a":274,"l":"jump_chance","c":"jump_chance: C = 1 when a new paratrooper is to jump at this step. With none in the air (in_air, $09) he always jumps ($0130); with in_air at jump_limit ($19) none does. Otherwise, in a game ($0124): none while the seconds' units (time_s1) are 8 or 9; in Game A, with one or two in the air, he always jumps; with more in Game A, and always in Game B, he jumps when the divider's bits 11-14 read below 5, 5 chances in 16 ($012C). In the clock's demo (and after power on), C is the carry of the mode less 2, plus the seconds' tens (time_s10), plus the low digit of the seconds' count (seconds_lo, $41), plus 1, past 15 ($011D).","t":"code","b":[102],"m":"RC","x":[258,741,757]},{"a":275,"t":"code","b":[68],"m":"LB","oa":4105,"o":"in_air"},{"a":276,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":277,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":278,"t":"code","b":[136],"m":"TR","oa":304,"o":"$08"},{"a":279,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":280,"t":"code","b":[10],"m":"COMA"},{"a":281,"t":"code","b":[9],"m":"ADDC"},{"a":282,"t":"code","b":[164],"m":"TR","oa":305,"o":"clear_landed"},{"a":283,"t":"code","b":[234],"m":"TRS","oa":1081,"o":"skip_if_mode_lt2"},{"a":284,"t":"code","b":[172],"m":"TR","oa":292,"o":"$2C"},{"a":285,"s":"Out of a game (mode 0 or 1): the mode less 2, plus time_s10, plus seconds_lo and C (1), carrying past 15.","t":"code","b":[75],"m":"LB","oa":4154,"o":"time_s10"},{"a":286,"t":"code","b":[8],"m":"ADD"},{"a":287,"t":"code","b":[95,65],"m":"LBL","oa":4161,"o":"seconds_lo"},{"a":289,"t":"code","b":[9],"m":"ADDC"},{"a":290,"t":"code","b":[130],"m":"TR","oa":317,"o":"$02"},{"a":291,"t":"code","b":[130],"m":"TR","oa":317,"o":"$02"},{"a":292,"s":"In a game: no jump while time_s1 is 8 or 9; then 13 (Game A) or 15 (Game B) plus in_air carries when the game must ask the divider.","t":"code","b":[102],"m":"RC","x":[284]},{"a":293,"t":"code","b":[79],"m":"LB","oa":4155,"o":"time_s1"},{"a":294,"t":"code","b":[225],"m":"TRS","oa":1049,"o":"skip_if_clear3"},{"a":295,"t":"code","b":[164],"m":"TR","oa":305,"o":"clear_landed"},{"a":296,"t":"code","b":[68],"m":"LB","oa":4105,"o":"in_air"},{"a":297,"t":"code","b":[10],"m":"COMA"},{"a":298,"t":"code","b":[9],"m":"ADDC"},{"a":299,"t":"code","b":[136],"m":"TR","oa":304,"o":"$08"},{"a":300,"s":"The divider: its bits 11-14 plus 11 carry from 5 up, which skips the SC: so a jump on 0 to 4.","t":"code","b":[102],"m":"RC"},{"a":301,"t":"code","b":[94,4],"m":"DTA"},{"a":303,"t":"code","b":[59],"m":"ADX","o":"$B"},{"a":304,"t":"code","b":[103],"m":"SC","x":[278,299]},{"a":305,"l":"clear_landed","c":"clear_landed: when in_air is 0 or at the limit (the two cases that come here), in a game and with no miss due (miss_due, $29), puts out the three lanes' last places (2.1.0, 2.0.1, 0.2.0): a caught paratrooper stays lit in the boat until a step clears him here or his lane moves him out.","t":"code","b":[245],"m":"TRS","oa":1044,"x":[282,295],"o":"skip_if_game"},{"a":306,"t":"code","b":[130],"m":"TR","oa":317,"o":"$02"},{"a":307,"t":"code","b":[70],"m":"LB","oa":4137,"o":"miss_due"},{"a":308,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":309,"t":"code","b":[90],"m":"TA0"},{"a":310,"t":"code","b":[130],"m":"TR","oa":317,"o":"$02"},{"a":311,"t":"code","b":[232],"m":"TRS","oa":1051,"o":"point_03"},{"a":312,"t":"code","b":[5],"m":"RM","o":"1"},{"a":313,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":314,"t":"code","b":[4],"m":"RM","o":"0"},{"a":315,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":316,"t":"code","b":[6],"m":"RM","o":"2"},{"a":317,"t":"code","b":[119],"m":"SSR","x":[290,291,306,310],"o":"7"},{"a":318,"t":"code","b":[128],"m":"TR","oa":448,"o":"lane_move"},{"a":319,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":256,"o":"step_body"},{"a":320,"l":"middle_land","c":"middle_land: the middle lane's last place (2.0.1) takes the fifth's. A paratrooper arriving there is caught when the boat is in the middle (lcd_13 bit 1): flag_07 bit 2 and catch ($043A), which counts a point and frees a place in the air. With the boat elsewhere the miss is due (miss_due bit 1). Then, in a game, a left-lane miss that was due starts its animation ($014F).","t":"code","b":[202],"m":"TRS","oa":1083,"x":[126,383],"o":"swap_c_bit0"},{"a":321,"t":"code","b":[84],"m":"TM","o":"0"},{"a":322,"t":"code","b":[143],"m":"TR","oa":332,"o":"$0F"},{"a":323,"t":"code","b":[236],"m":"TRS","oa":1060,"o":"point_13"},{"a":324,"t":"code","b":[85],"m":"TM","o":"1"},{"a":325,"t":"code","b":[189],"m":"TR","oa":330,"o":"$3D"},{"a":326,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_07"},{"a":327,"t":"code","b":[14],"m":"SM","o":"2"},{"a":328,"t":"code","b":[213],"m":"TRS","oa":1082,"o":"catch"},{"a":329,"t":"code","b":[143],"m":"TR","oa":332,"o":"$0F"},{"a":330,"t":"code","b":[70],"m":"LB","oa":4137,"x":[325],"o":"miss_due"},{"a":331,"t":"code","b":[13],"m":"SM","o":"1"},{"a":332,"t":"code","b":[67],"m":"LB","oa":4144,"x":[322,329],"o":"mode"},{"a":333,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":334,"t":"code","b":[138],"m":"TR","oa":379,"o":"$0A"},{"a":335,"l":"left_miss","c":"left_miss: a miss due in the left lane (miss_due bit 2, taken) starts: the paratrooper at 2.1.0 goes out, the splash under the left lane (2.3.1) and a fin at the left (1.0.1) light, the fin below (2.3.0) goes out, and miss_start runs ($01AA). Otherwise on to the end of the step ($01AC) by $017D.","t":"code","b":[70],"m":"LB","oa":4137,"x":[746],"o":"miss_due"},{"a":336,"t":"code","b":[233],"m":"TRS","oa":1079,"o":"take_bit2"},{"a":337,"t":"code","b":[130],"m":"TR","oa":381,"o":"$02"},{"a":338,"t":"code","b":[232],"m":"TRS","oa":1051,"o":"point_03"},{"a":339,"t":"code","b":[5],"m":"RM","o":"1"},{"a":340,"t":"code","b":[7],"m":"RM","o":"3"},{"a":341,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":342,"t":"code","b":[15],"m":"SM","o":"3"},{"a":343,"t":"code","b":[108],"m":"DECB"},{"a":344,"t":"code","b":[12],"m":"SM","o":"0"},{"a":345,"t":"code","b":[118],"m":"SSR","o":"6"},{"a":346,"t":"code","b":[165],"m":"TR","oa":426,"o":"to_miss_start"},{"a":347,"l":"left_lane","c":"left_lane: the left lane's move, every third step, with lane_turn bit 0 set for the middle lane's turn next. C says whether a new paratrooper jumps; with the lane's first place (7.1.0) taken he does not. He is counted in in_air, then each place takes the one above it, from 7.1.0 to 2.1.0 through C: lcd_00 bits 1-3, flag_07 bit 0 (6.0.0), lcd_04 bit 3 (3.3.0), lcd_03 bits 0 and 1. One leaving 6.0.0 moves the clock's demo's boat ($0325). One arriving at 2.1.0 is caught when the boat is at the left (lcd_13 bit 2); otherwise the miss is due (miss_due bit 2, $0177).","t":"code","b":[12],"m":"SM","x":[766],"o":"0"},{"a":348,"t":"code","b":[40],"m":"LAX","o":"8"},{"a":349,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_00"},{"a":350,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear1"},{"a":351,"t":"code","b":[102],"m":"RC"},{"a":352,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"count_jump"},{"a":353,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_00"},{"a":354,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":355,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":356,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":357,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_07"},{"a":358,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":359,"t":"code","b":[208],"m":"TRS","oa":1050,"o":"skip_if_carry"},{"a":360,"t":"code","b":[146],"m":"TR","oa":363,"o":"$12"},{"a":361,"s":"A paratrooper leaving the fourth place: in the clock the demo's boat moves toward him.","t":"code","b":[124],"m":"SSR","o":"$C"},{"a":362,"t":"code","b":[246],"m":"TRS","oa":805,"o":"demo_boat"},{"a":363,"t":"code","b":[244],"m":"TRS","oa":1052,"x":[360],"o":"point_04"},{"a":364,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":365,"t":"code","b":[108],"m":"DECB"},{"a":366,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":367,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":368,"t":"code","b":[85],"m":"TM","o":"1"},{"a":369,"t":"code","b":[170],"m":"TR","oa":377,"o":"$2A"},{"a":370,"t":"code","b":[236],"m":"TRS","oa":1060,"o":"point_13"},{"a":371,"t":"code","b":[86],"m":"TM","o":"2"},{"a":372,"t":"code","b":[169],"m":"TR","oa":375,"o":"$29"},{"a":373,"t":"code","b":[213],"m":"TRS","oa":1082,"o":"catch"},{"a":374,"t":"code","b":[170],"m":"TR","oa":377,"o":"$2A"},{"a":375,"t":"code","b":[70],"m":"LB","oa":4137,"x":[372],"o":"miss_due"},{"a":376,"t":"code","b":[14],"m":"SM","o":"2"},{"a":377,"t":"code","b":[118],"m":"SSR","x":[369,374],"o":"6"},{"a":378,"t":"code","b":[128],"m":"TR","oa":384,"o":"right_miss"},{"a":379,"t":"code","b":[118],"m":"SSR","x":[334],"o":"6"},{"a":380,"t":"code","b":[164],"m":"TR","oa":433,"o":"step_click"},{"a":381,"t":"code","b":[118],"m":"SSR","x":[337],"o":"6"},{"a":382,"t":"code","b":[137],"m":"TR","oa":428,"o":"step_end"},{"a":383,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":320,"o":"middle_land"},{"a":384,"l":"right_miss","c":"right_miss: in a game, a miss due in the right lane (miss_due bit 0, taken) starts: the paratrooper at 0.2.0 goes out, the water's upper row is set to the splash under the right lane alone (lcd_12 = 8), the shark's chain gets its token (flag_07 bit 1, the SM 1 at $018C), and miss_start runs ($01AA). With none due: release_check ($01BA), then the step's end ($01AC).","t":"code","b":[67],"m":"LB","oa":4144,"x":[378,447],"o":"mode"},{"a":385,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":386,"t":"code","b":[164],"m":"TR","oa":433,"o":"step_click"},{"a":387,"t":"code","b":[70],"m":"LB","oa":4137,"x":[755],"o":"miss_due"},{"a":388,"t":"code","b":[230],"m":"TRS","oa":1077,"o":"take_bit0"},{"a":389,"t":"code","b":[149],"m":"TR","oa":442,"o":"release_check"},{"a":390,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":391,"t":"code","b":[6],"m":"RM","o":"2"},{"a":392,"t":"code","b":[227],"m":"TRS","oa":1057,"o":"point_12"},{"a":393,"t":"code","b":[40],"m":"LAX","o":"8"},{"a":394,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":395,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_07"},{"a":396,"t":"code","b":[13],"m":"SM","o":"1"},{"a":397,"t":"code","b":[165],"m":"TR","oa":426,"o":"to_miss_start"},{"a":398,"l":"right_lane_end","c":"right_lane_end: the right lane's fourth and fifth places (0.3.0, 0.2.0) take the ones above, and the paratrooper in the tree swings: its two poses (8.0.0, 8.1.0) swap, by three swaps through C that leave C as the lane's. One arriving at 0.2.0 is caught when the boat is at the right (lcd_18 bit 3); otherwise the miss is due (miss_due bit 0). Then, in a game, a middle-lane miss that was due starts ($01A2).","t":"code","b":[199],"m":"TRS","oa":1056,"x":[480],"o":"point_08"},{"a":399,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":400,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":401,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_01"},{"a":402,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":403,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":404,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":405,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":406,"t":"code","b":[86],"m":"TM","o":"2"},{"a":407,"t":"code","b":[142],"m":"TR","oa":415,"o":"$0E"},{"a":408,"t":"code","b":[196],"m":"TRS","oa":1069,"o":"point_18"},{"a":409,"t":"code","b":[87],"m":"TM","o":"3"},{"a":410,"t":"code","b":[186],"m":"TR","oa":413,"o":"$3A"},{"a":411,"t":"code","b":[213],"m":"TRS","oa":1082,"o":"catch"},{"a":412,"t":"code","b":[142],"m":"TR","oa":415,"o":"$0E"},{"a":413,"t":"code","b":[70],"m":"LB","oa":4137,"x":[410],"o":"miss_due"},{"a":414,"t":"code","b":[12],"m":"SM","o":"0"},{"a":415,"t":"code","b":[67],"m":"LB","oa":4144,"x":[407,412],"o":"mode"},{"a":416,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":417,"t":"code","b":[164],"m":"TR","oa":433,"o":"step_click"},{"a":418,"l":"middle_miss","c":"middle_miss: a miss due in the middle lane (miss_due bit 1, taken) starts: the paratrooper at 2.0.1 goes out and the water's upper row is set to the splash under the middle lane and a fin at the right (lcd_12 = 6), then miss_start ($01AA).","t":"code","b":[70],"m":"LB","oa":4137,"x":[751],"o":"miss_due"},{"a":419,"t":"code","b":[211],"m":"TRS","oa":1078,"o":"take_bit1"},{"a":420,"t":"code","b":[137],"m":"TR","oa":428,"o":"step_end"},{"a":421,"t":"code","b":[236],"m":"TRS","oa":1060,"o":"point_13"},{"a":422,"t":"code","b":[4],"m":"RM","o":"0"},{"a":423,"t":"code","b":[108],"m":"DECB"},{"a":424,"t":"code","b":[38],"m":"LAX","o":"6"},{"a":425,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":426,"l":"to_miss_start","c":"to_miss_start: goes to miss_start ($03A9) on page $0E.","t":"code","b":[126],"m":"SSR","x":[346,397],"o":"$E"},{"a":427,"t":"code","b":[139],"m":"TR","oa":937,"o":"miss_start"},{"a":428,"l":"step_end","c":"step_end: in the clock's demo, on to the next lane's miss check ($02EB). In a game the click ($01B1).","t":"code","b":[67],"m":"LB","oa":4144,"x":[382,420,444,501],"o":"mode"},{"a":429,"t":"code","b":[84],"m":"TM","o":"0"},{"a":430,"t":"code","b":[164],"m":"TR","oa":433,"o":"step_click"},{"a":431,"t":"code","b":[123],"m":"SSR","o":"$B"},{"a":432,"t":"code","b":[146],"m":"TR","oa":747,"o":"demo_next"},{"a":433,"l":"step_click","c":"step_click: asks for the step's click (sound_flags bit 3) unless A is 8 or more. A lane's move starts with A = 8 and each swap that finds a paratrooper leaves A = 0, so a lane with nobody on it makes no click. Then the end of step_body ($0106) in a game, or demo_end ($010D) in the clock.","t":"code","b":[66],"m":"LB","oa":4128,"x":[380,386,417,430],"o":"sound_flags"},{"a":434,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":435,"t":"code","b":[15],"m":"SM","o":"3"},{"a":436,"t":"code","b":[234],"m":"TRS","oa":1081,"o":"skip_if_mode_lt2"},{"a":437,"t":"code","b":[148],"m":"TR","oa":440,"o":"$14"},{"a":438,"t":"code","b":[116],"m":"SSR","o":"4"},{"a":439,"t":"code","b":[167],"m":"TR","oa":269,"o":"demo_end"},{"a":440,"t":"code","b":[116],"m":"SSR","x":[437],"o":"4"},{"a":441,"t":"code","b":[159],"m":"TR","oa":262,"o":"$1F"},{"a":442,"l":"release_check","c":"release_check: the tree's release is tried only when the seconds' tens (time_s10, $3A, by LB $B) are even (tree_release, $01E1); when they are odd, the step's end ($01AC).","t":"code","b":[75],"m":"LB","oa":4154,"x":[389],"o":"time_s10"},{"a":443,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":444,"t":"code","b":[137],"m":"TR","oa":428,"o":"step_end"},{"a":445,"t":"code","b":[119],"m":"SSR","o":"7"},{"a":446,"t":"code","b":[163],"m":"TR","oa":481,"o":"tree_release"},{"a":447,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":384,"o":"right_miss"},{"a":448,"l":"lane_move","c":"lane_move: which lane moves at this step, from lane_turn ($0A): bit 1 (taken) the right lane ($01C3); bit 0 (taken, and bit 1 set for next time) the middle lane ($02F6 to $0066); neither, the left lane ($015B). So the lanes move in turn, left, middle, right, each every third step.","t":"code","b":[72],"m":"LB","oa":4106,"x":[318,511],"o":"lane_turn"},{"a":449,"t":"code","b":[211],"m":"TRS","oa":1078,"o":"take_bit1"},{"a":450,"t":"code","b":[148],"m":"TR","oa":504,"o":"$14"},{"a":451,"l":"right_lane","c":"right_lane: the right lane's move. C says whether a new paratrooper jumps, unless 8.2.1 is taken. He is counted in, and the first three places (8.2.1, 8.1.1, 8.0.1) take the ones above. One leaving 8.0.1 moves the clock's demo's boat ($0325). In Game B and the clock's demo, he is caught in the tree when the tree is empty and in_air is even (bit 0 clear): he goes to 8.1.0 instead of the lane, and flag_07 bit 3 holds him there one step ($01DB). Game A has no tree ($01D0). Then the lane's end ($018E).","t":"code","b":[229],"m":"TRS","oa":1066,"o":"point_11"},{"a":452,"t":"code","b":[195],"m":"TRS","oa":1048,"o":"skip_if_clear2"},{"a":453,"t":"code","b":[102],"m":"RC"},{"a":454,"t":"code","b":[215],"m":"TRS","oa":1042,"o":"count_jump"},{"a":455,"t":"code","b":[40],"m":"LAX","o":"8"},{"a":456,"t":"code","b":[229],"m":"TRS","oa":1066,"o":"point_11"},{"a":457,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":458,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":459,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":460,"t":"code","b":[208],"m":"TRS","oa":1050,"o":"skip_if_carry"},{"a":461,"t":"code","b":[156],"m":"TR","oa":464,"o":"$1C"},{"a":462,"t":"code","b":[124],"m":"SSR","o":"$C"},{"a":463,"t":"code","b":[246],"m":"TRS","oa":805,"o":"demo_boat"},{"a":464,"s":"Game A (mode bit 2) skips the tree.","t":"code","b":[67],"m":"LB","oa":4144,"x":[461],"o":"mode"},{"a":465,"t":"code","b":[195],"m":"TRS","oa":1048,"o":"skip_if_clear2"},{"a":466,"t":"code","b":[142],"m":"TR","oa":479,"o":"$0E"},{"a":467,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_01"},{"a":468,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":469,"t":"code","b":[142],"m":"TR","oa":479,"o":"$0E"},{"a":470,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear1"},{"a":471,"t":"code","b":[142],"m":"TR","oa":479,"o":"$0E"},{"a":472,"s":"The tree's chance: in_air even.","t":"code","b":[68],"m":"LB","oa":4105,"o":"in_air"},{"a":473,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":474,"t":"code","b":[142],"m":"TR","oa":479,"o":"$0E"},{"a":475,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_01"},{"a":476,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":477,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_07"},{"a":478,"t":"code","b":[15],"m":"SM","o":"3"},{"a":479,"t":"code","b":[118],"m":"SSR","x":[466,469,471,474],"o":"6"},{"a":480,"t":"code","b":[179],"m":"TR","oa":398,"o":"right_lane_end"},{"a":481,"l":"tree_release","c":"tree_release: on a step with no right-lane miss to see to and the seconds' tens even (release_check, $01BA). While flag_07 bit 3 is set (taken here) he stays. Otherwise, when the right lane is clear below the tree (8.0.1, 0.3.0 and 0.2.0 all out), the pose that the rotor's blade 8.3.0 picks drops into 0.3.0: 8.0.0 with the blade lit, 8.1.0 with it out ($01F6). He drops only when he is in that pose, so the release waits for the swing and the rotor to agree.","t":"code","b":[221],"m":"TRS","oa":1054,"x":[446],"o":"point_07"},{"a":482,"t":"code","b":[212],"m":"TRS","oa":1080,"o":"take_bit3"},{"a":483,"t":"code","b":[182],"m":"TR","oa":485,"o":"$36"},{"a":484,"t":"code","b":[140],"m":"TR","oa":500,"o":"$0C"},{"a":485,"t":"code","b":[229],"m":"TRS","oa":1066,"x":[483],"o":"point_11"},{"a":486,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":487,"t":"code","b":[140],"m":"TR","oa":500,"o":"$0C"},{"a":488,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":489,"t":"code","b":[225],"m":"TRS","oa":1049,"o":"skip_if_clear3"},{"a":490,"t":"code","b":[140],"m":"TR","oa":500,"o":"$0C"},{"a":491,"t":"code","b":[195],"m":"TRS","oa":1048,"o":"skip_if_clear2"},{"a":492,"t":"code","b":[140],"m":"TR","oa":500,"o":"$0C"},{"a":493,"t":"code","b":[102],"m":"RC"},{"a":494,"t":"code","b":[206],"m":"TRS","oa":1055,"o":"point_01"},{"a":495,"t":"code","b":[87],"m":"TM","o":"3"},{"a":496,"t":"code","b":[147],"m":"TR","oa":502,"o":"$13"},{"a":497,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":498,"t":"code","b":[199],"m":"TRS","oa":1056,"x":[503],"o":"point_08"},{"a":499,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":500,"t":"code","b":[118],"m":"SSR","x":[484,487,490,492],"o":"6"},{"a":501,"t":"code","b":[137],"m":"TR","oa":428,"o":"step_end"},{"a":502,"s":"The blade 8.3.0 out: the other pose, 8.1.0, is the one taken.","t":"code","b":[197],"m":"TRS","oa":1084,"x":[496],"o":"swap_c_bit1"},{"a":503,"t":"code","b":[178],"m":"TR","oa":498,"o":"$32"},{"a":504,"t":"code","b":[123],"m":"SSR","x":[450],"o":"$B"},{"a":505,"t":"code","b":[147],"m":"TR","oa":758,"o":"middle_or_left"},{"a":506,"s":"Padding: SKIPs, no operation, that nothing reaches.","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,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":448,"o":"lane_move"},{"a":512,"l":"timekeep","c":"timekeep: called on every pass ($0005, $0037) and in a game's wait ($0020). Without a new second (TG) it plays any sound waiting ($0280). On a new second it turns the screen on (ATBP) and, except just after power on (mode 0), keeps time: while the alarm rings (the monkey, lcd_14 bit 0) it asks for the alarm's sound again (sound_flags bit 0); it sets tick_flags bit 2 (a second for the clock's demo) and adds one to the seconds' count ($40-$41). When that count passes 255 after a game is over (the third miss lit), it goes back to the clock: mode 1, keys set to $E, and the mode's screen to be set up ($0220). Then the seconds: each time the tens go up, except to the minute, the shark's chain gets a token (flag_07 bit 1, $0239), so a fin circles the water every ten seconds, in the clock and in a game; at the minute, minute_rolled ($026C).","t":"code","b":[88],"m":"TG","x":[5,16,32,55,270,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":"$20"},{"a":515,"t":"code","b":[33],"m":"LAX","x":[513],"o":"1"},{"a":516,"t":"code","b":[3],"m":"ATBP"},{"a":517,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":518,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":519,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":520,"t":"code","b":[110],"m":"RTN"},{"a":521,"t":"code","b":[95,20],"m":"LBL","oa":4116,"o":"lcd_14"},{"a":523,"t":"code","b":[84],"m":"TM","o":"0"},{"a":524,"t":"code","b":[185],"m":"TR","oa":527,"o":"$39"},{"a":525,"t":"code","b":[66],"m":"LB","oa":4128,"o":"sound_flags"},{"a":526,"t":"code","b":[12],"m":"SM","o":"0"},{"a":527,"t":"code","b":[73],"m":"LB","oa":4122,"x":[524],"o":"tick_flags"},{"a":528,"t":"code","b":[14],"m":"SM","o":"2"},{"a":529,"t":"code","b":[95,65],"m":"LBL","oa":4161,"o":"seconds_lo"},{"a":531,"t":"code","b":[24],"m":"LDA","x":[535],"o":"0"},{"a":532,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":533,"t":"code","b":[165],"m":"TR","oa":554,"o":"$25"},{"a":534,"t":"code","b":[28],"m":"EXCD","o":"0"},{"a":535,"t":"code","b":[171],"m":"TR","oa":531,"o":"$2B"},{"a":536,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":537,"t":"code","b":[87],"m":"TM","o":"3"},{"a":538,"t":"code","b":[180],"m":"TR","oa":540,"o":"$34"},{"a":539,"s":"Never ran: the seconds' count passing 255 in the alarm's setting.","t":"code","b":[135],"m":"TR","oa":544,"o":"$07"},{"a":540,"t":"code","b":[95,24],"m":"LBL","oa":4120,"x":[538],"o":"lcd_18"},{"a":542,"t":"code","b":[84],"m":"TM","o":"0"},{"a":543,"t":"code","b":[146],"m":"TR","oa":555,"o":"$12"},{"a":544,"t":"code","b":[78],"m":"LB","oa":4139,"x":[539],"o":"redraw_flags"},{"a":545,"t":"code","b":[15],"m":"SM","o":"3"},{"a":546,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":547,"t":"code","b":[33],"m":"LAX","o":"1"},{"a":548,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":549,"t":"code","b":[46],"m":"LAX","x":[93],"o":"$E"},{"a":550,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":551,"t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags"},{"a":552,"t":"code","b":[6],"m":"RM","o":"2"},{"a":553,"t":"code","b":[146],"m":"TR","oa":555,"o":"$12"},{"a":554,"t":"code","b":[16],"m":"EXC","x":[533],"o":"0"},{"a":555,"t":"code","b":[102],"m":"RC","x":[543,553]},{"a":556,"t":"code","b":[79],"m":"LB","oa":4155,"o":"time_s1"},{"a":557,"t":"code","b":[24],"m":"LDA","x":[573],"o":"0"},{"a":558,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":559,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":560,"t":"code","b":[55],"m":"ADX","o":"7"},{"a":561,"s":"A jump, inside timekeep: to play_sounds ($0280).","t":"code","b":[224],"m":"TRS","oa":1025,"o":"$20"},{"a":562,"t":"code","b":[28],"m":"EXCD","o":"0"},{"a":563,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":564,"t":"code","b":[49],"m":"ADX","o":"1"},{"a":565,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":566,"t":"code","b":[59],"m":"ADX","o":"$B"},{"a":567,"t":"code","b":[170],"m":"TR","oa":569,"o":"$2A"},{"a":568,"t":"code","b":[217],"m":"TRS","oa":1075,"o":"skip_if_over"},{"a":569,"t":"code","b":[95,7],"m":"LBL","oa":4103,"x":[567],"o":"flag_07"},{"a":571,"t":"code","b":[13],"m":"SM","o":"1"},{"a":572,"s":"A jump, inside timekeep: to play_sounds ($0280).","t":"code","b":[224],"m":"TRS","oa":1025,"o":"$20"},{"a":573,"l":"add_minute_at_b","c":"add_minute_at_b: adds one to the minutes' units at B ($39 or $35) and carries into the tens, by the same code as the seconds ($022D) with C set, so that a carry out of the tens goes to an hour at minute_rolled.","t":"code","b":[132],"m":"TR","oa":557,"o":"$04"},{"a":574,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":575,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","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). Left adds an hour when the time is set after power on ($02C9) and in the alarm's setting. The same code as Octopus's and Popeye's ($0240 in games/gnw/octopus and games/gnw/popeye).","t":"code","b":[95,55],"m":"LBL","oa":4151,"x":[612,639,714],"o":"time_h1"},{"a":578,"t":"code","b":[24],"m":"LDA","x":[619],"o":"0"},{"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","x":[583],"o":"$A"},{"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","x":[593],"o":"2"},{"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,"x":[586,590,597,600,603],"o":"$20"},{"a":609,"t":"code","b":[11],"m":"EXBLA","x":[622]},{"a":610,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":611,"s":"Never ran: the TR after ADX 8 is always skipped or jumped over.","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":"page09_unused","c":"page09_unused: four SKIPs that nothing reaches; Popeye's ROM has its request_click here.","s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":614,"t":"code","b":[0],"m":"SKIP"},{"a":615,"t":"code","b":[0],"m":"SKIP"},{"a":616,"t":"code","b":[0],"m":"SKIP"},{"a":617,"l":"alarm_add_hour","c":"alarm_add_hour: points B at the alarm's hours ($33) and adds one ($0242).","t":"code","b":[95,51],"m":"LBL","oa":4147,"x":[611,733],"o":"alarm_h1"},{"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 (C clear), flags the minute for the alarm (game_flags bit 1) and adds a minute; after the minutes (C set), adds an hour ($0261).","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":"game_flags"},{"a":624,"t":"code","b":[13],"m":"SM","o":"1"},{"a":625,"l":"add_minute","c":"add_minute: adds a minute to the time ($39), as right does when the time is set after power on.","t":"code","b":[71],"m":"LB","oa":4153,"x":[717],"o":"time_m1"},{"a":626,"t":"code","b":[103],"m":"SC","x":[637]},{"a":627,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":628,"l":"sound_done","c":"sound_done: asks for the screen to be drawn, clears every sound request (sound_flags, $20) and returns from timekeep: the end of every sound. $027E clears the requests without the redraw.","t":"code","b":[78],"m":"LB","oa":4139,"o":"redraw_flags"},{"a":629,"t":"code","b":[12],"m":"SM","o":"0"},{"a":630,"t":"code","b":[66],"m":"LB","oa":4128,"x":[638],"o":"sound_flags"},{"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,"s":"Padding: SKIPs, no operation, that nothing reaches.","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,"x":[738],"o":"alarm_m1"},{"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,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":576,"o":"add_hour"},{"a":640,"l":"play_sounds","c":"play_sounds: plays only when nothing is waiting to be drawn. The alarm's sound first (sound_flags bit 0): after power on, in the clock and after a game is over (the third miss lit, $028F) it buzzes ($0293) and ends at sound_done ($0274), which clears every request, so no other sound plays on that pass; in a game under way the request is dropped and the routine returns. With no alarm's sound asked for, game_sounds ($029D). Octopus's routine, with the game over read from lcd_18 bit 0.","t":"code","b":[78],"m":"LB","oa":4139,"x":[703],"o":"redraw_flags"},{"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,"x":[642],"o":"mode"},{"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,"s":"Never ran: the alarm ringing while its time is being set.","t":"code","b":[171],"m":"TR","oa":659,"o":"alarm_buzz"},{"a":655,"t":"code","b":[95,24],"m":"LBL","oa":4120,"x":[653],"o":"lcd_18"},{"a":657,"t":"code","b":[84],"m":"TM","o":"0"},{"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, a quarter of each second.","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":"$1C"},{"a":664,"t":"code","b":[32],"m":"LAX","x":[662],"o":"0"},{"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. After power on, in the clock and in the alarm's setting the requests are cleared unplayed ($027E). In a game, one sound a pass, in priority: a catch (sound_flags bit 2, a tone of length code $E, $02AF), then the step's click (bit 3, $02A7). A miss's sounds are played straight from its animation ($0368, $036E).","t":"code","b":[62],"m":"ADX","x":[648],"o":"$E"},{"a":670,"s":"A jump, inside a subroutine: to $027E, the requests cleared unplayed.","t":"code","b":[209],"m":"TRS","oa":1071,"o":"$11"},{"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":"$11"},{"a":674,"t":"code","b":[86],"m":"TM","x":[672],"o":"2"},{"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","x":[675],"o":"3"},{"a":678,"t":"code","b":[110],"m":"RTN"},{"a":679,"l":"click","c":"click: the click of a step: R1 written 24 times from a value that EXBLA swaps with BL's count each time, about 100 cycles. The same bytes as Octopus's click (98 cycles on the model there).","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":"$1C"},{"a":686,"l":"tone","c":"tone: a tone on R1: each inner loop toggles the buzzer every three instructions. A, the length code, sets how many loops it makes: from A up to 15, each longer, so a larger code is a shorter sound. Entries: $02AE with $B (the swimmer taken by the shark, $036E), $02AF with $E (a catch), $02B0 with the code in A (the miss's animation: 1 for its first move, $D after, $0368). The same routine as Octopus's and Popeye's.","t":"code","b":[43],"m":"LAX","x":[879],"o":"$B"},{"a":687,"t":"code","b":[46],"m":"LAX","x":[676],"o":"$E"},{"a":688,"t":"code","b":[77],"m":"LB","oa":4123,"x":[873],"o":"tone_count"},{"a":689,"t":"code","b":[16],"m":"EXC","x":[701],"o":"0"},{"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","x":[697],"o":"0"},{"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":"$1C"},{"a":703,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":640,"o":"play_sounds"},{"a":704,"l":"pad_pressed","c":"pad_pressed: a new press of left or right. After power on (mode 0) left adds an hour ($0240) and right a minute ($0271). In the alarm's setting (mode 8) it clears the seconds' count, puts out the monkey (lcd_14 bit 0), and left adds an hour to the alarm ($0269) and right a minute ($027B). In both, the step's body then runs from jump_chance ($02E4). Otherwise, in a game, move_boat ($0300). Both held at once does nothing.","t":"code","b":[67],"m":"LB","oa":4144,"x":[13,82,767],"o":"mode"},{"a":705,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":706,"t":"code","b":[90],"m":"TA0"},{"a":707,"t":"code","b":[185],"m":"TR","oa":719,"o":"$39"},{"a":708,"t":"code","b":[81],"m":"TB"},{"a":709,"t":"code","b":[143],"m":"TR","oa":716,"o":"$0F"},{"a":710,"t":"code","b":[80],"m":"TA"},{"a":711,"t":"code","b":[187],"m":"TR","oa":713,"o":"$3B"},{"a":712,"s":"Never ran: left and right together after power on.","t":"code","b":[144],"m":"TR","oa":730,"o":"$10"},{"a":713,"t":"code","b":[121],"m":"SSR","x":[711],"o":"9"},{"a":714,"t":"code","b":[192],"m":"TRS","oa":576,"o":"add_hour"},{"a":715,"t":"code","b":[152],"m":"TR","oa":739,"o":"$18"},{"a":716,"t":"code","b":[121],"m":"SSR","x":[709],"o":"9"},{"a":717,"t":"code","b":[228],"m":"TRS","oa":625,"o":"add_minute"},{"a":718,"t":"code","b":[152],"m":"TR","oa":739,"o":"$18"},{"a":719,"t":"code","b":[40],"m":"LAX","x":[707],"o":"8"},{"a":720,"t":"code","b":[83],"m":"TAM"},{"a":721,"t":"code","b":[142],"m":"TR","oa":735,"o":"$0E"},{"a":722,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_40_41"},{"a":723,"t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_14"},{"a":724,"t":"code","b":[4],"m":"RM","o":"0"},{"a":725,"t":"code","b":[102],"m":"RC"},{"a":726,"t":"code","b":[81],"m":"TB"},{"a":727,"t":"code","b":[163],"m":"TR","oa":737,"o":"$23"},{"a":728,"t":"code","b":[80],"m":"TA"},{"a":729,"t":"code","b":[180],"m":"TR","oa":732,"o":"$34"},{"a":730,"s":"Left and right together in the alarm's setting: back to after_draw.","t":"code","b":[112],"m":"SSR","x":[712],"o":"0"},{"a":731,"t":"code","b":[147],"m":"TR","oa":54,"o":"after_draw"},{"a":732,"t":"code","b":[121],"m":"SSR","x":[729],"o":"9"},{"a":733,"t":"code","b":[203],"m":"TRS","oa":617,"o":"alarm_add_hour"},{"a":734,"t":"code","b":[152],"m":"TR","oa":739,"o":"$18"},{"a":735,"t":"code","b":[124],"m":"SSR","x":[721],"o":"$C"},{"a":736,"t":"code","b":[128],"m":"TR","oa":768,"o":"move_boat"},{"a":737,"t":"code","b":[121],"m":"SSR","x":[727],"o":"9"},{"a":738,"t":"code","b":[202],"m":"TRS","oa":635,"o":"alarm_add_minute"},{"a":739,"t":"code","b":[223],"m":"TRS","oa":1030,"x":[715,718,734],"o":"set_redraw"},{"a":740,"t":"code","b":[116],"m":"SSR","o":"4"},{"a":741,"t":"code","b":[151],"m":"TR","oa":274,"o":"jump_chance"},{"a":742,"l":"demo_step","c":"demo_step: the clock's demo's second. Sets tick_flags bits 0 and 1, then runs the three lanes' miss checks as a game would, left ($014F), middle and right (demo_next, $02EB), and then the step's body from jump_chance ($0112).","t":"code","b":[73],"m":"LB","oa":4122,"x":[30],"o":"tick_flags"},{"a":743,"t":"code","b":[12],"m":"SM","o":"0"},{"a":744,"t":"code","b":[13],"m":"SM","o":"1"},{"a":745,"t":"code","b":[117],"m":"SSR","o":"5"},{"a":746,"t":"code","b":[185],"m":"TR","oa":335,"o":"left_miss"},{"a":747,"l":"demo_next","c":"demo_next: the clock's demo, after a miss check: tick_flags bit 0 (taken) the middle lane's check ($01A2), bit 1 (taken) the right lane's ($0183), and with both done the step's body ($0112).","t":"code","b":[73],"m":"LB","oa":4122,"x":[432,943],"o":"tick_flags"},{"a":748,"t":"code","b":[230],"m":"TRS","oa":1077,"o":"take_bit0"},{"a":749,"t":"code","b":[136],"m":"TR","oa":752,"o":"$08"},{"a":750,"t":"code","b":[118],"m":"SSR","o":"6"},{"a":751,"t":"code","b":[177],"m":"TR","oa":418,"o":"middle_miss"},{"a":752,"t":"code","b":[211],"m":"TRS","oa":1078,"x":[749],"o":"take_bit1"},{"a":753,"t":"code","b":[140],"m":"TR","oa":756,"o":"$0C"},{"a":754,"t":"code","b":[118],"m":"SSR","o":"6"},{"a":755,"t":"code","b":[184],"m":"TR","oa":387,"o":"$38"},{"a":756,"t":"code","b":[116],"m":"SSR","x":[753],"o":"4"},{"a":757,"t":"code","b":[151],"m":"TR","oa":274,"o":"jump_chance"},{"a":758,"l":"middle_or_left","c":"middle_or_left: lane_turn bit 0 (taken) gives the middle lane, with bit 1 set for the right lane next and A = 8 ($0066); without it, the left lane ($015B).","t":"code","b":[230],"m":"TRS","oa":1077,"x":[505],"o":"take_bit0"},{"a":759,"t":"code","b":[130],"m":"TR","oa":765,"o":"$02"},{"a":760,"t":"code","b":[13],"m":"SM","o":"1"},{"a":761,"t":"code","b":[40],"m":"LAX","o":"8"},{"a":762,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_10"},{"a":763,"t":"code","b":[113],"m":"SSR","o":"1"},{"a":764,"t":"code","b":[155],"m":"TR","oa":102,"o":"middle_lane"},{"a":765,"t":"code","b":[117],"m":"SSR","x":[759],"o":"5"},{"a":766,"t":"code","b":[168],"m":"TR","oa":347,"o":"left_lane"},{"a":767,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":704,"o":"pad_pressed"},{"a":768,"l":"move_boat","c":"move_boat: a press in a game, before or after it is over (read_pad gives none in the clock). Left moves the boat one place left (boat_left, $0333), right one place right (boat_right, $03F0); both together nothing ($0306). Then, with a point due, the points at once ($0323). Otherwise the late catch: when a miss is due in the lane the boat has just reached (miss_due's bit for the boat's place, swapped out through C), it is a catch after all ($0322): a point, and no miss. Checked on the model: a press made after the paratrooper reached the last place, before the next step, scores.","t":"code","b":[223],"m":"TRS","oa":1030,"x":[736,831],"o":"set_redraw"},{"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":[135],"m":"TR","oa":800,"o":"$07"},{"a":775,"t":"code","b":[124],"m":"SSR","x":[773],"o":"$C"},{"a":776,"t":"code","b":[217],"m":"TRS","oa":819,"o":"boat_left"},{"a":777,"t":"code","b":[143],"m":"TR","oa":780,"o":"$0F"},{"a":778,"t":"code","b":[127],"m":"SSR","x":[771],"o":"$F"},{"a":779,"t":"code","b":[200],"m":"TRS","oa":1008,"o":"boat_right"},{"a":780,"t":"code","b":[76],"m":"LB","oa":4107,"x":[777],"o":"game_flags"},{"a":781,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":782,"t":"code","b":[152],"m":"TR","oa":803,"o":"$18"},{"a":783,"s":"The late catch: miss_due's bit for the lane under the boat, taken into C.","t":"code","b":[102],"m":"RC"},{"a":784,"t":"code","b":[196],"m":"TRS","oa":1069,"o":"point_18"},{"a":785,"t":"code","b":[87],"m":"TM","o":"3"},{"a":786,"t":"code","b":[141],"m":"TR","oa":790,"o":"$0D"},{"a":787,"t":"code","b":[70],"m":"LB","oa":4137,"o":"miss_due"},{"a":788,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":789,"t":"code","b":[157],"m":"TR","oa":798,"o":"$1D"},{"a":790,"t":"code","b":[236],"m":"TRS","oa":1060,"x":[786],"o":"point_13"},{"a":791,"t":"code","b":[85],"m":"TM","o":"1"},{"a":792,"t":"code","b":[180],"m":"TR","oa":796,"o":"$34"},{"a":793,"t":"code","b":[70],"m":"LB","oa":4137,"o":"miss_due"},{"a":794,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":795,"t":"code","b":[157],"m":"TR","oa":798,"o":"$1D"},{"a":796,"t":"code","b":[70],"m":"LB","oa":4137,"x":[792],"o":"miss_due"},{"a":797,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":798,"t":"code","b":[82],"m":"TC","x":[789,795]},{"a":799,"t":"code","b":[177],"m":"TR","oa":802,"o":"$31"},{"a":800,"t":"code","b":[112],"m":"SSR","x":[774],"o":"0"},{"a":801,"t":"code","b":[147],"m":"TR","oa":54,"o":"after_draw"},{"a":802,"t":"code","b":[213],"m":"TRS","oa":1082,"x":[799],"o":"catch"},{"a":803,"t":"code","b":[114],"m":"SSR","x":[782],"o":"2"},{"a":804,"t":"code","b":[128],"m":"TR","oa":128,"o":"points"},{"a":805,"l":"demo_boat","c":"demo_boat: called when a paratrooper leaves the left lane's fourth place or the right lane's third. In the clock, unless flag_07 bit 2 is set (the demo's boat sent to the middle, or a catch there, since the last second), the demo's boat moves one place toward him: left when lane_turn bit 0 is set (the left lane's move), right otherwise. In a game it returns at once.","t":"code","b":[67],"m":"LB","oa":4144,"x":[362,463],"o":"mode"},{"a":806,"t":"code","b":[84],"m":"TM","o":"0"},{"a":807,"t":"code","b":[139],"m":"TR","oa":809,"o":"$0B"},{"a":808,"t":"code","b":[146],"m":"TR","oa":811,"o":"$12"},{"a":809,"t":"code","b":[87],"m":"TM","x":[807],"o":"3"},{"a":810,"t":"code","b":[110],"m":"RTN"},{"a":811,"t":"code","b":[95,7],"m":"LBL","oa":4103,"x":[808],"o":"flag_07"},{"a":813,"t":"code","b":[86],"m":"TM","o":"2"},{"a":814,"t":"code","b":[136],"m":"TR","oa":816,"o":"$08"},{"a":815,"t":"code","b":[110],"m":"RTN"},{"a":816,"t":"code","b":[72],"m":"LB","oa":4106,"x":[814],"o":"lane_turn"},{"a":817,"t":"code","b":[84],"m":"TM","o":"0"},{"a":818,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_40_41"},{"a":819,"l":"boat_left","c":"boat_left: moves the boat one place left: from the right (lcd_18 bit 3) to the middle (lcd_13 bit 1), or from the middle to the left (lcd_13 bit 2, $03E9). At the left it stays.","t":"code","b":[95,24],"m":"LBL","oa":4120,"x":[776],"o":"lcd_18"},{"a":821,"t":"code","b":[87],"m":"TM","o":"3"},{"a":822,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":823,"t":"code","b":[7],"m":"RM","o":"3"},{"a":824,"t":"code","b":[95,19],"m":"LBL","oa":4115,"o":"lcd_13"},{"a":826,"t":"code","b":[13],"m":"SM","o":"1"},{"a":827,"t":"code","b":[110],"m":"RTN"},{"a":828,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":829,"t":"code","b":[0],"m":"SKIP"},{"a":830,"t":"code","b":[0],"m":"SKIP"},{"a":831,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":768,"o":"move_boat"},{"a":832,"l":"miss_anim","c":"miss_anim: runs at the end of each step's body, except a miss's first step, which game_flags bit 3 holds back, and moves the water's chain when lane_turn bit 0 is set: every step while a miss's animation runs, every third step (after the left lane's) otherwise. The chain is one line of twelve places, each taking the one before through C: flag_07 bit 1, then the fin's circle 1.2.1, 1.0.1, 2.3.0, 1.1.0, the shark's leap 1.3.0, and then the swimmer's path 1.3.1, 1.1.1, 2.3.1, 1.0.0, 1.2.0, 0.0.0. The leap does not carry on into the swimmer's path: C is cleared after it, A set to 8 and the animation's end asked for (redraw_flags bit 1 cleared, $034E). A miss puts the swimmer in at the splash under his lane and the fin at the same distance along its circle, so the shark leaps as the swimmer reaches 0.0.0. Only the swimmer's moves count from there: in a game, when one of them moved (A left at 0), a tone plays (code 1 the first time, $D after, $0366) and the animation goes on (redraw_flags bit 1 set again); the fin's patrol every ten seconds moves silently and the lanes go on. When the swimmer leaves 0.0.0, taken by the shark, a tone of code $B and the miss is counted ($0373). Out of a game the step ends ($0362).","t":"code","b":[72],"m":"LB","oa":4106,"x":[268,895],"o":"lane_turn"},{"a":833,"t":"code","b":[84],"m":"TM","o":"0"},{"a":834,"t":"code","b":[130],"m":"TR","oa":893,"o":"$02"},{"a":835,"t":"code","b":[102],"m":"RC"},{"a":836,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_07"},{"a":837,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":838,"t":"code","b":[227],"m":"TRS","oa":1057,"o":"point_12"},{"a":839,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":840,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":841,"t":"code","b":[232],"m":"TRS","oa":1051,"o":"point_03"},{"a":842,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":843,"t":"code","b":[108],"m":"DECB"},{"a":844,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":845,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":846,"s":"The leap leaves the chain here: redraw_flags bit 1 cleared, A = 8 and C cleared before the swimmer's path.","t":"code","b":[78],"m":"LB","oa":4139,"o":"redraw_flags"},{"a":847,"t":"code","b":[5],"m":"RM","o":"1"},{"a":848,"t":"code","b":[40],"m":"LAX","o":"8"},{"a":849,"t":"code","b":[102],"m":"RC"},{"a":850,"t":"code","b":[227],"m":"TRS","oa":1057,"o":"point_12"},{"a":851,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":852,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":853,"t":"code","b":[100],"m":"INCB"},{"a":854,"t":"code","b":[193],"m":"TRS","oa":1086,"o":"swap_c_bit3"},{"a":855,"t":"code","b":[95,2],"m":"LBL","oa":4098,"o":"lcd_02"},{"a":857,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":858,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":859,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":860,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":861,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_game"},{"a":862,"t":"code","b":[177],"m":"TR","oa":866,"o":"$31"},{"a":863,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":864,"t":"code","b":[172],"m":"TR","oa":868,"o":"$2C"},{"a":865,"t":"code","b":[130],"m":"TR","oa":893,"o":"$02"},{"a":866,"t":"code","b":[112],"m":"SSR","x":[862],"o":"0"},{"a":867,"t":"code","b":[147],"m":"TR","oa":54,"o":"after_draw"},{"a":868,"t":"code","b":[74],"m":"LB","oa":4138,"x":[864],"o":"pad_flags"},{"a":869,"t":"code","b":[212],"m":"TRS","oa":1080,"o":"take_bit3"},{"a":870,"t":"code","b":[45],"m":"LAX","o":"$D"},{"a":871,"t":"code","b":[33],"m":"LAX","o":"1"},{"a":872,"t":"code","b":[122],"m":"SSR","o":"$A"},{"a":873,"t":"code","b":[200],"m":"TRS","oa":688,"o":"$08"},{"a":874,"t":"code","b":[78],"m":"LB","oa":4139,"o":"redraw_flags"},{"a":875,"t":"code","b":[13],"m":"SM","o":"1"},{"a":876,"t":"code","b":[208],"m":"TRS","oa":1050,"o":"skip_if_carry"},{"a":877,"t":"code","b":[130],"m":"TR","oa":893,"o":"$02"},{"a":878,"t":"code","b":[122],"m":"SSR","o":"$A"},{"a":879,"t":"code","b":[226],"m":"TRS","oa":686,"o":"tone"},{"a":880,"t":"code","b":[74],"m":"LB","oa":4138,"o":"pad_flags"},{"a":881,"t":"code","b":[195],"m":"TRS","oa":1048,"o":"skip_if_clear2"},{"a":882,"s":"Never ran in a game without the R3 key: misses off.","t":"code","b":[130],"m":"TR","oa":893,"o":"$02"},{"a":883,"l":"count_miss","c":"count_miss: unless pad_flags bit 2 (set at power on by a key of the R3 row, flipped by R3 K4 at read_r3) says misses are off ($0370), the misses shift up: a new one into 0.2.1 (with the word MISS), the first into 0.1.1, the second into 0.0.1. The third (lcd_18 bit 0) ends the game: the helicopter and its rotor shown (show_helicopter), and the seconds' count cleared, so the clock comes back 255 seconds later. Then the points ($0080), which sees to the best score.","t":"code","b":[196],"m":"TRS","oa":1069,"o":"point_18"},{"a":884,"t":"code","b":[194],"m":"TRS","oa":1085,"o":"swap_c_bit2"},{"a":885,"t":"code","b":[197],"m":"TRS","oa":1084,"o":"swap_c_bit1"},{"a":886,"t":"code","b":[202],"m":"TRS","oa":1083,"o":"swap_c_bit0"},{"a":887,"t":"code","b":[84],"m":"TM","o":"0"},{"a":888,"t":"code","b":[130],"m":"TR","oa":893,"o":"$02"},{"a":889,"t":"code","b":[218],"m":"TRS","oa":1045,"o":"show_helicopter"},{"a":890,"t":"code","b":[229],"m":"TRS","oa":1066,"o":"point_11"},{"a":891,"t":"code","b":[15],"m":"SM","o":"3"},{"a":892,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_40_41"},{"a":893,"t":"code","b":[114],"m":"SSR","x":[834,865,877,882,888],"o":"2"},{"a":894,"t":"code","b":[128],"m":"TR","oa":128,"o":"points"},{"a":895,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":832,"o":"miss_anim"},{"a":896,"l":"read_pad","c":"read_pad: reads left and right; returns with a skip for a new press. In the clock (mode 1) it returns at once: the demo plays by itself, and a press there does nothing. Left and right together count as neither and end the hold (pad_flags bit 0). A press that pad_flags says was already held counts again after power on (mode 0) and in the alarm's setting (mode 8, the carry of ADX 9 at $0393), as a repeat each time the divider reaches repeat_at ($28), four times a second ($0395).","t":"code","b":[67],"m":"LB","oa":4144,"x":[10,40,77,959],"o":"mode"},{"a":897,"t":"code","b":[84],"m":"TM","o":"0"},{"a":898,"t":"code","b":[188],"m":"TR","oa":900,"o":"$3C"},{"a":899,"t":"code","b":[110],"m":"RTN"},{"a":900,"t":"code","b":[74],"m":"LB","oa":4138,"x":[898],"o":"pad_flags"},{"a":901,"t":"code","b":[81],"m":"TB"},{"a":902,"t":"code","b":[158],"m":"TR","oa":907,"o":"$1E"},{"a":903,"t":"code","b":[80],"m":"TA"},{"a":904,"t":"code","b":[167],"m":"TR","oa":909,"o":"$27"},{"a":905,"t":"code","b":[4],"m":"RM","x":[908],"o":"0"},{"a":906,"t":"code","b":[110],"m":"RTN"},{"a":907,"t":"code","b":[80],"m":"TA","x":[902]},{"a":908,"t":"code","b":[187],"m":"TR","oa":905,"o":"$3B"},{"a":909,"t":"code","b":[84],"m":"TM","x":[904],"o":"0"},{"a":910,"t":"code","b":[152],"m":"TR","oa":931,"o":"$18"},{"a":911,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":912,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":913,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":914,"t":"code","b":[154],"m":"TR","oa":917,"o":"$1A"},{"a":915,"t":"code","b":[57],"m":"ADX","o":"9"},{"a":916,"t":"code","b":[110],"m":"RTN"},{"a":917,"t":"code","b":[94,4],"m":"DTA","x":[914]},{"a":919,"t":"code","b":[95,40],"m":"LBL","oa":4136,"o":"repeat_at"},{"a":921,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":922,"t":"code","b":[12],"m":"SM","o":"0"},{"a":923,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":924,"t":"code","b":[83],"m":"TAM"},{"a":925,"t":"code","b":[110],"m":"RTN"},{"a":926,"t":"code","b":[52],"m":"ADX","x":[936],"o":"4"},{"a":927,"t":"code","b":[0],"m":"SKIP"},{"a":928,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":929,"t":"code","b":[12],"m":"SM","o":"0"},{"a":930,"t":"code","b":[111],"m":"RTNS"},{"a":931,"t":"code","b":[12],"m":"SM","x":[910],"o":"0"},{"a":932,"t":"code","b":[94,4],"m":"DTA"},{"a":934,"t":"code","b":[95,40],"m":"LBL","oa":4136,"o":"repeat_at"},{"a":936,"t":"code","b":[157],"m":"TR","oa":926,"o":"$1D"},{"a":937,"l":"miss_start","c":"miss_start: a miss's animation begins. One fewer in the air (in_air), game_flags bit 3 to hold the first step back, and in a game: pad_flags bit 3 (the first tone is the short one), redraw_flags bit 1 (the animation runs, so the lanes stand still), keys set to $E, and miss_due cleared; then a pass. In the clock's demo the step goes on instead ($02EB).","t":"code","b":[238],"m":"TRS","oa":1041,"x":[427],"o":"dec_in_air"},{"a":938,"t":"code","b":[76],"m":"LB","oa":4107,"o":"game_flags"},{"a":939,"t":"code","b":[15],"m":"SM","o":"3"},{"a":940,"t":"code","b":[234],"m":"TRS","oa":1081,"o":"skip_if_mode_lt2"},{"a":941,"t":"code","b":[136],"m":"TR","oa":944,"o":"$08"},{"a":942,"t":"code","b":[123],"m":"SSR","o":"$B"},{"a":943,"t":"code","b":[146],"m":"TR","oa":747,"o":"demo_next"},{"a":944,"t":"code","b":[74],"m":"LB","oa":4138,"x":[941],"o":"pad_flags"},{"a":945,"t":"code","b":[15],"m":"SM","o":"3"},{"a":946,"t":"code","b":[78],"m":"LB","oa":4139,"o":"redraw_flags"},{"a":947,"t":"code","b":[13],"m":"SM","o":"1"},{"a":948,"t":"code","b":[200],"m":"TRS","oa":1072,"o":"point_31"},{"a":949,"t":"code","b":[46],"m":"LAX","o":"$E"},{"a":950,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":951,"t":"code","b":[70],"m":"LB","oa":4137,"o":"miss_due"},{"a":952,"t":"code","b":[240],"m":"TRS","oa":1026,"o":"take_cell"},{"a":953,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":954,"t":"code","b":[184],"m":"TR","oa":3,"o":"$38"},{"a":955,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":956,"t":"code","b":[0],"m":"SKIP"},{"a":957,"t":"code","b":[0],"m":"SKIP"},{"a":958,"t":"code","b":[0],"m":"SKIP"},{"a":959,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":896,"o":"read_pad"},{"a":960,"l":"power_on","c":"power_on: where the chip starts at power on and after ACL. Selects the R3 row of buttons, clears the data cells of rows 4 to 0 (clear_down from column 12 of each), and while a key of the R3 row is held sets pad_flags bit 2 (misses are not counted) and waits for it to be let go ($03D3). Then selects the R4 row, asks for a redraw, sets the time to 12:00 AM ($36 = 1, $37 = 2) and the alarm to 12:00 PM ($32 = 9, $33 = 2), turns the screen on and makes a pass. Mode 0 shows every segment until a key of the R4 row chooses a mode. MAME 0.289's driver names the R3 row's first key \"Infinite Lives (Cheat)\", unpopulated on the board.","t":"code","b":[0],"m":"SKIP","x":[1023]},{"a":961,"t":"code","b":[127],"m":"SSR","o":"$F"},{"a":962,"t":"code","b":[43],"m":"LAX","o":"$B"},{"a":963,"t":"code","b":[1],"m":"ATR"},{"a":964,"t":"code","b":[95,76],"m":"LBL","oa":4172,"o":"$4C"},{"a":966,"t":"code","b":[254],"m":"TRS","oa":1029,"o":"clear_down"},{"a":967,"t":"code","b":[95,60],"m":"LBL","oa":4156,"o":"$3C"},{"a":969,"t":"code","b":[254],"m":"TRS","oa":1029,"o":"clear_down"},{"a":970,"t":"code","b":[95,44],"m":"LBL","oa":4140,"o":"$2C"},{"a":972,"t":"code","b":[254],"m":"TRS","oa":1029,"o":"clear_down"},{"a":973,"t":"code","b":[95,28],"m":"LBL","oa":4124,"o":"$1C"},{"a":975,"t":"code","b":[254],"m":"TRS","oa":1029,"o":"clear_down"},{"a":976,"t":"code","b":[95,12],"m":"LBL","oa":4108,"o":"$0C"},{"a":978,"t":"code","b":[254],"m":"TRS","oa":1029,"o":"clear_down"},{"a":979,"t":"code","b":[106],"m":"KTA","x":[984]},{"a":980,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":981,"t":"code","b":[161],"m":"TR","oa":985,"o":"$21"},{"a":982,"t":"code","b":[74],"m":"LB","oa":4138,"o":"pad_flags"},{"a":983,"t":"code","b":[14],"m":"SM","o":"2"},{"a":984,"t":"code","b":[171],"m":"TR","oa":979,"o":"$2B"},{"a":985,"t":"code","b":[226],"m":"TRS","oa":1070,"x":[981],"o":"select_r4"},{"a":986,"t":"code","b":[223],"m":"TRS","oa":1030,"o":"set_redraw"},{"a":987,"t":"code","b":[95,54],"m":"LBL","oa":4150,"o":"time_h10"},{"a":989,"t":"code","b":[33],"m":"LAX","o":"1"},{"a":990,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":991,"t":"code","b":[13],"m":"SM","o":"1"},{"a":992,"t":"code","b":[95,50],"m":"LBL","oa":4146,"o":"alarm_h10"},{"a":994,"t":"code","b":[41],"m":"LAX","o":"9"},{"a":995,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":996,"t":"code","b":[13],"m":"SM","o":"1"},{"a":997,"t":"code","b":[33],"m":"LAX","o":"1"},{"a":998,"t":"code","b":[3],"m":"ATBP"},{"a":999,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":1000,"t":"code","b":[188],"m":"TR","oa":4,"o":"pass"},{"a":1001,"l":"boat_mid_to_left","c":"boat_mid_to_left: boat_left's second half: the boat from the middle (lcd_13 bit 1) to the left (bit 2).","t":"code","b":[95,19],"m":"LBL","oa":4115,"o":"lcd_13"},{"a":1003,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1004,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1005,"t":"code","b":[110],"m":"RTN"},{"a":1006,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1007,"t":"code","b":[0],"m":"SKIP"},{"a":1008,"l":"boat_right","c":"boat_right: moves the boat one place right: from the left to the middle, or from the middle to the right (lcd_18 bit 3). At the right it stays.","t":"code","b":[95,19],"m":"LBL","oa":4115,"x":[779],"o":"lcd_13"},{"a":1010,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1011,"t":"code","b":[169],"m":"TR","oa":1015,"o":"$29"},{"a":1012,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1013,"t":"code","b":[13],"m":"SM","o":"1"},{"a":1014,"t":"code","b":[110],"m":"RTN"},{"a":1015,"t":"code","b":[5],"m":"RM","x":[1011],"o":"1"},{"a":1016,"t":"code","b":[95,24],"m":"LBL","oa":4120,"o":"lcd_18"},{"a":1018,"t":"code","b":[15],"m":"SM","o":"3"},{"a":1019,"t":"code","b":[110],"m":"RTN"},{"a":1020,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1021,"t":"code","b":[0],"m":"SKIP"},{"a":1022,"t":"code","b":[0],"m":"SKIP"},{"a":1023,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":960,"o":"power_on"},{"a":1024,"l":"take_05","c":"take_05: A = flag_05 ($05), the colon's cell, and the cell set to 0.","t":"code","b":[95,5],"m":"LBL","oa":4101,"x":[1087,1524,1733,1763],"o":"flag_05"},{"a":1026,"l":"take_cell","c":"take_cell: A = the cell at B, and the cell set to 0 (its body is on page $12, $0483).","t":"code","b":[226],"m":"TRS","oa":1213,"x":[952,1486,1488],"o":"$22"},{"a":1027,"l":"clear_40_41","c":"clear_40_41: clears the seconds' count ($41 and $40), through clear_down from $41.","t":"code","b":[95,65],"m":"LBL","oa":4161,"x":[722,818,892,1311],"o":"seconds_lo"},{"a":1029,"l":"clear_down","c":"clear_down: writes 0 to the cell at B and each one below it in the row, down to column 0 (LAX 0, EXCD in a loop until BL wraps; $0498 on page $12).","t":"code","b":[227],"m":"TRS","oa":1176,"x":[966,969,972,975,978,1473,1475,1757],"o":"clear_down_body"},{"a":1030,"l":"set_redraw","c":"set_redraw: sets redraw_flags ($2B) bit 0, which asks for the screen to be drawn again.","t":"code","b":[78],"m":"LB","oa":4139,"x":[3,95,739,768,986,1310,1344,1465,1484],"o":"redraw_flags"},{"a":1031,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1032,"t":"code","b":[110],"m":"RTN"},{"a":1033,"l":"draw_cell","c":"draw_cell: shifts the cell at B into the screen's W' latches (by WS when its bit 3 is set, WR when clear, as A's bit 3 says) and moves B on one column. The drawing calls it once for each segment cell; the bonus's blink enters at $040A with A = 0, which draws the cell's bits 0-2 blank: bit 3 is still drawn from the cell (TM 3), so the boat at the right stays lit while the misses blink.","t":"code","b":[24],"m":"LDA","x":[822,1415,1601,1604,1605,1606,1616,1617,1633,1635,1636,1637,1643,1644],"o":"0"},{"a":1034,"t":"code","b":[87],"m":"TM","x":[1630],"o":"3"},{"a":1035,"t":"code","b":[179],"m":"TR","oa":1038,"o":"$33"},{"a":1036,"t":"code","b":[99],"m":"WS"},{"a":1037,"t":"code","b":[185],"m":"TR","oa":1039,"o":"$39"},{"a":1038,"t":"code","b":[98],"m":"WR","x":[1035]},{"a":1039,"t":"code","b":[100],"m":"INCB","x":[1037]},{"a":1040,"t":"code","b":[110],"m":"RTN","x":[663,685,702]},{"a":1041,"l":"dec_in_air","c":"dec_in_air: takes one from in_air ($09), stopping at 0 ($0480).","t":"code","b":[224],"m":"TRS","oa":1152,"x":[937],"o":"dec_in_air_body"},{"a":1042,"l":"count_jump","c":"count_jump: with C set, adds one to in_air ($09) and returns A = 0; with C clear returns A = 8 and changes nothing ($048C). Each lane calls it with C saying whether a paratrooper jumps.","t":"code","b":[239],"m":"TRS","oa":1164,"x":[104,352,454],"o":"count_jump_body"},{"a":1043,"l":"c_not_game_b","c":"c_not_game_b: points B at mode ($30) and sets C unless the mode is Game B (bit 1): C clear means Game B ($0464).","t":"code","b":[209],"m":"TRS","oa":1150,"x":[163,179,1523],"o":"$11"},{"a":1044,"l":"skip_if_game","c":"skip_if_game: points B at mode ($30) and returns with a skip when the mode is Game A (bit 2) or Game B (bit 1) ($0474).","t":"code","b":[220],"m":"TRS","oa":1140,"x":[17,131,305,861,1289,1359,1476,1539,1815],"o":"skip_if_game_body"},{"a":1045,"l":"show_helicopter","c":"show_helicopter: sets lcd_00 bit 0 and lcd_01 bits 2 and 3: the helicopter (8.2.0), a rotor blade (8.3.0) and the rotor's unlit third place, when a game starts (start_game) and ends (count_miss), and when mode_setup sets up any mode that is not a game ($05C7) ($0486).","t":"code","b":[230],"m":"TRS","oa":1175,"x":[889,1390,1479],"o":"$26"},{"a":1046,"l":"skip_if_clear0","c":"skip_if_clear0: returns with a skip when bit 0 of the cell at B is clear ($04AD).","t":"code","b":[228],"m":"TRS","oa":1197,"x":[102,272,333,385,416,443,468,473,486,781,1329,1673,1682,1697,1706,1731],"o":"skip_if_clear0_body"},{"a":1047,"l":"skip_if_clear1","c":"skip_if_clear1: returns with a skip when bit 1 of the cell at B is clear ($0440).","t":"code","b":[208],"m":"TRS","oa":1088,"x":[37,350,470,1684,1708],"o":"skip_if_clear1_body"},{"a":1048,"l":"skip_if_clear2","c":"skip_if_clear2: returns with a skip when bit 2 of the cell at B is clear ($04A9).","t":"code","b":[235],"m":"TRS","oa":1193,"x":[34,223,452,465,491,881,1287,1713],"o":"skip_if_clear2_body"},{"a":1049,"l":"skip_if_clear3","c":"skip_if_clear3: returns with a skip when bit 3 of the cell at B is clear ($04B9).","t":"code","b":[229],"m":"TRS","oa":1212,"x":[20,294,489,1419,1501,1676,1679,1711],"o":"$25"},{"a":1050,"l":"skip_if_carry","c":"skip_if_carry: returns with a skip when C is set (TC skips the RTNS when C is clear; $045C).","t":"code","b":[217],"m":"TRS","oa":1132,"x":[110,359,460,876],"o":"$19"},{"a":1051,"l":"point_03","c":"point_03: B = $03. Each point_xx entry sets B to one cell and returns: point_04, point_06, point_07, point_01, point_08, point_12, point_13, point_14, point_11, point_18, point_31 and point_15 the same way.","t":"code","b":[213],"m":"TRS","oa":1148,"x":[311,338,841,1508],"o":"$15"},{"a":1052,"l":"point_04","c":"point_04: B = $04.","t":"code","b":[221],"m":"TRS","oa":1110,"x":[363,1801,1807],"o":"$1D"},{"a":1053,"l":"point_06","c":"point_06: B = $06.","t":"code","b":[245],"m":"TRS","oa":1276,"x":[1426,1461,1557],"o":"point_06_body"},{"a":1054,"l":"point_07","c":"point_07: B = $07.","t":"code","b":[238],"m":"TRS","oa":1183,"x":[27,120,326,357,395,477,481,836,1696],"o":"$2E"},{"a":1055,"l":"point_01","c":"point_01: B = $01.","t":"code","b":[212],"m":"TRS","oa":1133,"x":[401,467,475,494],"o":"point_01_body"},{"a":1056,"l":"point_08","c":"point_08: B = $08.","t":"code","b":[214],"m":"TRS","oa":1111,"x":[315,390,398,405,488,498,859,1505,1600,1710,1747],"o":"$16"},{"a":1057,"l":"point_12","c":"point_12: B = $12.","t":"code","b":[95,18],"m":"LBL","oa":4114,"x":[392,838,850,1634],"o":"lcd_12"},{"a":1059,"t":"code","b":[110],"m":"RTN"},{"a":1060,"l":"point_13","c":"point_13: B = $13.","t":"code","b":[95,19],"m":"LBL","oa":4115,"x":[115,323,370,421,790,1482,1672],"o":"lcd_13"},{"a":1062,"t":"code","b":[110],"m":"RTN"},{"a":1063,"l":"point_14","c":"point_14: B = $14.","t":"code","b":[95,20],"m":"LBL","oa":4116,"x":[122,723,1421,1456,1649,1797],"o":"lcd_14"},{"a":1065,"t":"code","b":[110],"m":"RTN"},{"a":1066,"l":"point_11","c":"point_11: B = $11.","t":"code","b":[95,17],"m":"LBL","oa":4113,"x":[451,456,485,890,1480],"o":"lcd_11"},{"a":1068,"t":"code","b":[110],"m":"RTN"},{"a":1069,"l":"point_18","c":"point_18: B = $18.","t":"code","b":[218],"m":"TRS","oa":1147,"x":[118,154,408,784,883,1474,1628,1632,1756,1838],"o":"$1A"},{"a":1070,"l":"select_r4","c":"select_r4: ATR 7 selects the R4 row of buttons (Time, Game B, Game A, Alarm) and keeps the buzzer's pin R1 low, then points B at keys ($31).","t":"code","b":[39],"m":"LAX","x":[51,985,1293],"o":"7"},{"a":1071,"t":"code","b":[1],"m":"ATR","x":[670,673]},{"a":1072,"l":"point_31","c":"point_31: B = keys ($31).","t":"code","b":[210],"m":"TRS","oa":1149,"x":[948,1730],"o":"$12"},{"a":1073,"l":"point_15","c":"point_15: B = digit_1 ($15).","t":"code","b":[232],"m":"TRS","oa":1200,"x":[164,180,1386,1532,1758,1809],"o":"point_15_body"},{"a":1074,"l":"skip_if_no_redraw","c":"skip_if_no_redraw: points B at redraw_flags ($2B) and returns with a skip when bit 0 is clear: nothing waits to be drawn ($04AC).","t":"code","b":[233],"m":"TRS","oa":1196,"x":[49,56],"o":"skip_if_no_redraw_body"},{"a":1075,"l":"skip_if_over","c":"skip_if_over: points B at lcd_18 and returns with a skip when bit 0, the third miss, is set: the game is over ($045F).","t":"code","b":[222],"m":"TRS","oa":1119,"x":[96,568,1291,1361,1541],"o":"skip_if_over_body"},{"a":1076,"l":"skip_if_ringing","c":"skip_if_ringing: points B at lcd_14 and returns with a skip when bit 0, the monkey, is set: the alarm is ringing ($0469).","t":"code","b":[219],"m":"TRS","oa":1129,"x":[1348,1543,1549,1772],"o":"skip_if_ringing_body"},{"a":1077,"l":"take_bit0","c":"take_bit0: returns with a skip when bit 0 of the cell at B is set, and clears it ($0458).","t":"code","b":[211],"m":"TRS","oa":1112,"x":[129,388,748,758,1537],"o":"take_bit0_body"},{"a":1078,"l":"take_bit1","c":"take_bit1: returns with a skip when bit 1 of the cell at B is set, and clears it ($04A5).","t":"code","b":[237],"m":"TRS","oa":1174,"x":[419,449,752,1416,1854],"o":"$2D"},{"a":1079,"l":"take_bit2","c":"take_bit2: returns with a skip when bit 2 of the cell at B is set, and clears it ($0470).","t":"code","b":[216],"m":"TRS","oa":1136,"x":[25,336,1334,1384,1454,1647],"o":"take_bit2_body"},{"a":1080,"l":"take_bit3","c":"take_bit3: returns with a skip when bit 3 of the cell at B is set, and clears it ($044C).","t":"code","b":[223],"m":"TRS","oa":1100,"x":[59,263,482,869,1304,1409],"o":"take_bit3_body"},{"a":1081,"l":"skip_if_mode_lt2","c":"skip_if_mode_lt2: points B at mode ($30), A = the mode less 2, and returns with a skip when the mode is 0 or 1: after power on and in the clock ($04B4).","t":"code","b":[236],"m":"TRS","oa":1204,"x":[283,436,940,1491,1561],"o":"skip_if_mode_lt2_body"},{"a":1082,"l":"catch","c":"catch: a paratrooper caught: sets sound_flags bit 2 (the catch's sound) and game_flags bit 0 (a point is due), and takes one from in_air ($04A0, then dec_in_air's body).","t":"code","b":[231],"m":"TRS","oa":1184,"x":[328,373,411,802],"o":"catch_body"},{"a":1083,"l":"swap_c_bit0","c":"swap_c_bit0: swaps C with bit 0 of the cell at B: the bit takes C, and C the bit's old value. When the old bit was set (C = 1 after), A = 0; otherwise A is kept. A run of these moves every token along a chain one place ($04ED).","t":"code","b":[244],"m":"TRS","oa":1261,"x":[84,90,106,320,358,366,403,459,497,788,840,857,860,886],"o":"swap_c_bit0_body"},{"a":1084,"l":"swap_c_bit1","c":"swap_c_bit1: swaps C with bit 1 of the cell at B, as swap_c_bit0 ($04DF).","t":"code","b":[254],"m":"TRS","oa":1247,"x":[107,354,367,402,404,458,476,502,794,837,844,852,885],"o":"swap_c_bit1_body"},{"a":1085,"l":"swap_c_bit2","c":"swap_c_bit2: swaps C with bit 2 of the cell at B, as swap_c_bit0 ($04FB, on to $04D1).","t":"code","b":[250],"m":"TRS","oa":1275,"x":[108,355,400,457,627,797,839,858,884],"o":"$3A"},{"a":1086,"l":"swap_c_bit3","c":"swap_c_bit3: swaps C with bit 3 of the cell at B, as swap_c_bit0 ($04C0).","t":"code","b":[240],"m":"TRS","oa":1216,"x":[86,88,109,123,356,364,399,499,842,845,851,854],"o":"swap_c_bit3_body"},{"a":1087,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1024,"o":"take_05"},{"a":1088,"l":"skip_if_clear1_body","c":"skip_if_clear1_body: skip_if_clear1's code: TM 1, then RTNS when the bit is clear and RTN when set.","t":"code","b":[85],"m":"TM","x":[1047,1151],"o":"1"},{"a":1089,"t":"code","b":[111],"m":"RTNS"},{"a":1090,"t":"code","b":[110],"m":"RTN"},{"a":1091,"l":"point_18_body","c":"point_18_body: point_18's code, LBL $18 and RTN, reached by its entry's jump at $047B.","t":"code","b":[95,24],"m":"LBL","oa":4120,"x":[1147],"o":"lcd_18"},{"a":1093,"t":"code","b":[110],"m":"RTN"},{"a":1094,"l":"point_03_body","c":"point_03_body: point_03's code, reached by $047C.","t":"code","b":[95,3],"m":"LBL","oa":4099,"x":[1148],"o":"lcd_03"},{"a":1096,"t":"code","b":[110],"m":"RTN"},{"a":1097,"l":"point_31_body","c":"point_31_body: point_31's code, reached by $047D.","t":"code","b":[95,49],"m":"LBL","oa":4145,"x":[1149],"o":"keys"},{"a":1099,"t":"code","b":[110],"m":"RTN"},{"a":1100,"l":"take_bit3_body","c":"take_bit3_body: take_bit3's code: TM 3; with the bit set it is cleared (RM 3) and the return skips.","t":"code","b":[87],"m":"TM","x":[1080],"o":"3"},{"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":"point_04_body","c":"point_04_body: point_04's code, reached by the jump at $0456; then point_08's (LBL $08, $0453), reached by $0457. The two jumps follow.","t":"code","b":[95,4],"m":"LBL","oa":4100,"x":[1110],"o":"lcd_04"},{"a":1106,"t":"code","b":[110],"m":"RTN"},{"a":1107,"t":"code","b":[95,8],"m":"LBL","oa":4104,"x":[1111],"o":"lcd_08"},{"a":1109,"t":"code","b":[110],"m":"RTN"},{"a":1110,"t":"code","b":[156],"m":"TR","oa":1104,"x":[1052],"o":"point_04_body"},{"a":1111,"t":"code","b":[171],"m":"TR","oa":1107,"x":[1056],"o":"$2B"},{"a":1112,"l":"take_bit0_body","c":"take_bit0_body: take_bit0's code: TM 0; with the bit set it is cleared (RM 0) and the return skips.","t":"code","b":[84],"m":"TM","x":[1077],"o":"0"},{"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":"skip_if_carry_body","c":"skip_if_carry_body: skip_if_carry's code: TC skips the RTNS when C is clear, so the return skips when C is set.","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":"skip_if_over_body","c":"skip_if_over_body: skip_if_over's code: LBL $18, TM 0, and a return that skips when bit 0 is set. skip_if_ringing ($0469) sets B to $14 and jumps to its TM ($0461).","t":"code","b":[95,24],"m":"LBL","oa":4120,"x":[1075],"o":"lcd_18"},{"a":1121,"t":"code","b":[84],"m":"TM","x":[1131],"o":"0"},{"a":1122,"t":"code","b":[110],"m":"RTN"},{"a":1123,"t":"code","b":[111],"m":"RTNS"},{"a":1124,"l":"c_not_game_b_body","c":"c_not_game_b_body: c_not_game_b's code: LB 3 (mode), RC, TM 1, and SC when bit 1 (Game B) is clear.","t":"code","b":[67],"m":"LB","oa":4144,"x":[1150],"o":"mode"},{"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":"skip_if_ringing_body","c":"skip_if_ringing_body: skip_if_ringing's code: LBL $14, then the TM 0 and returns of skip_if_over ($0461). The jumps on of skip_if_carry ($046C) follow.","t":"code","b":[95,20],"m":"LBL","oa":4116,"x":[1076],"o":"lcd_14"},{"a":1131,"t":"code","b":[163],"m":"TR","oa":1121,"o":"$23"},{"a":1132,"t":"code","b":[180],"m":"TR","oa":1116,"x":[1050],"o":"skip_if_carry_body"},{"a":1133,"l":"point_01_body","c":"point_01_body: point_01's code.","t":"code","b":[95,1],"m":"LBL","oa":4097,"x":[1055],"o":"lcd_01"},{"a":1135,"t":"code","b":[110],"m":"RTN"},{"a":1136,"l":"take_bit2_body","c":"take_bit2_body: take_bit2's code: TM 2; with the bit set it is cleared (RM 2) and the return skips.","t":"code","b":[86],"m":"TM","x":[1079],"o":"2"},{"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":"skip_if_game_body","c":"skip_if_game_body: skip_if_game's code: LB 3 (mode), then a return with a skip when bit 1 or bit 2 is set. The jumps on of point_18, point_03, point_31 and c_not_game_b follow ($047B-$047E).","t":"code","b":[67],"m":"LB","oa":4144,"x":[1044],"o":"mode"},{"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","x":[1142],"o":"2"},{"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,"x":[1069],"o":"point_18_body"},{"a":1148,"t":"code","b":[159],"m":"TR","oa":1094,"x":[1051],"o":"point_03_body"},{"a":1149,"t":"code","b":[187],"m":"TR","oa":1097,"x":[1072],"o":"point_31_body"},{"a":1150,"t":"code","b":[172],"m":"TR","oa":1124,"x":[1043],"o":"c_not_game_b_body"},{"a":1151,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1088,"o":"skip_if_clear1_body"},{"a":1152,"l":"dec_in_air_body","c":"dec_in_air_body: dec_in_air's code: LB 4 (in_air), LDA, ADX $F (a carry unless it is 0), LAX 0 when it was 0, then EXC: the cell takes A, and A the old value. take_cell's jump ($04BD) enters at the LAX 0 ($0483), so it writes 0.","t":"code","b":[68],"m":"LB","oa":4105,"x":[1041,1188,1215],"o":"in_air"},{"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","x":[1213],"o":"0"},{"a":1156,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1157,"t":"code","b":[110],"m":"RTN"},{"a":1158,"l":"show_helicopter_body","c":"show_helicopter_body: show_helicopter's code: lcd_00 bit 0, then INCB to lcd_01 bits 2 and 3.","t":"code","b":[64],"m":"LB","oa":4096,"x":[1175],"o":"lcd_00"},{"a":1159,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1160,"t":"code","b":[100],"m":"INCB"},{"a":1161,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1162,"t":"code","b":[15],"m":"SM","o":"3"},{"a":1163,"t":"code","b":[110],"m":"RTN"},{"a":1164,"l":"count_jump_body","c":"count_jump_body: count_jump's code: TC; with C set, in_air plus one unless it is 15, and A = 0 ($048F); with C clear, A = 8 ($0494). The jumps on of take_bit1 and show_helicopter follow ($0496, $0497).","t":"code","b":[82],"m":"TC","x":[1042]},{"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,"x":[1165],"o":"in_air"},{"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","x":[1166],"o":"8"},{"a":1173,"t":"code","b":[110],"m":"RTN"},{"a":1174,"t":"code","b":[182],"m":"TR","oa":1189,"x":[1078],"o":"take_bit1_body"},{"a":1175,"t":"code","b":[159],"m":"TR","oa":1158,"x":[1045],"o":"show_helicopter_body"},{"a":1176,"l":"clear_down_body","c":"clear_down_body: clear_down's code: LAX 0 and EXCD in a loop until BL wraps.","t":"code","b":[32],"m":"LAX","x":[1029,1178],"o":"0"},{"a":1177,"t":"code","b":[28],"m":"EXCD","o":"0"},{"a":1178,"t":"code","b":[131],"m":"TR","oa":1176,"o":"clear_down_body"},{"a":1179,"t":"code","b":[110],"m":"RTN"},{"a":1180,"l":"point_07_body","c":"point_07_body: point_07's code, reached by $049F.","t":"code","b":[95,7],"m":"LBL","oa":4103,"x":[1183],"o":"flag_07"},{"a":1182,"t":"code","b":[110],"m":"RTN"},{"a":1183,"t":"code","b":[180],"m":"TR","oa":1180,"x":[1054],"o":"point_07_body"},{"a":1184,"l":"catch_body","c":"catch_body: catch's code: sound_flags ($20) bit 2, game_flags ($0B) bit 0, then dec_in_air's code ($0480).","t":"code","b":[66],"m":"LB","oa":4128,"x":[1082],"o":"sound_flags"},{"a":1185,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1186,"t":"code","b":[76],"m":"LB","oa":4107,"o":"game_flags"},{"a":1187,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1188,"t":"code","b":[128],"m":"TR","oa":1152,"o":"dec_in_air_body"},{"a":1189,"l":"take_bit1_body","c":"take_bit1_body: take_bit1's code: TM 1; with the bit set it is cleared (RM 1) and the return skips.","t":"code","b":[85],"m":"TM","x":[1174],"o":"1"},{"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":"skip_if_clear2_body","c":"skip_if_clear2_body: skip_if_clear2's code: TM 2, then RTNS when the bit is clear.","t":"code","b":[86],"m":"TM","x":[1048],"o":"2"},{"a":1194,"t":"code","b":[111],"m":"RTNS"},{"a":1195,"t":"code","b":[110],"m":"RTN"},{"a":1196,"l":"skip_if_no_redraw_body","c":"skip_if_no_redraw_body: skip_if_no_redraw's code: LB $E (redraw_flags), then skip_if_clear0's code ($04AD).","t":"code","b":[78],"m":"LB","oa":4139,"x":[1074],"o":"redraw_flags"},{"a":1197,"l":"skip_if_clear0_body","c":"skip_if_clear0_body: skip_if_clear0's code: TM 0, then RTNS when the bit is clear.","t":"code","b":[84],"m":"TM","x":[1046],"o":"0"},{"a":1198,"t":"code","b":[111],"m":"RTNS"},{"a":1199,"t":"code","b":[110],"m":"RTN"},{"a":1200,"l":"point_15_body","c":"point_15_body: point_15's code, LBL $15. The SKIP after it ($04B3) is not reached.","t":"code","b":[95,21],"m":"LBL","oa":4117,"x":[1073],"o":"digit_1"},{"a":1202,"t":"code","b":[110],"m":"RTN"},{"a":1203,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1204,"l":"skip_if_mode_lt2_body","c":"skip_if_mode_lt2_body: skip_if_mode_lt2's code: LB 3, LDA, ADX $E, which carries when the mode is 2 or more and so skips the RTNS.","t":"code","b":[67],"m":"LB","oa":4144,"x":[1081],"o":"mode"},{"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":"skip_if_clear3_body","c":"skip_if_clear3_body: skip_if_clear3's code: TM 3, then RTNS when the bit is clear; reached by $04BC. take_cell's jump to $0483 follows ($04BD).","t":"code","b":[87],"m":"TM","x":[1212],"o":"3"},{"a":1210,"t":"code","b":[111],"m":"RTNS"},{"a":1211,"t":"code","b":[110],"m":"RTN"},{"a":1212,"t":"code","b":[170],"m":"TR","oa":1209,"x":[1049],"o":"skip_if_clear3_body"},{"a":1213,"t":"code","b":[184],"m":"TR","oa":1155,"x":[1026],"o":"$38"},{"a":1214,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1215,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1152,"o":"dec_in_air_body"},{"a":1216,"l":"swap_c_bit3_body","c":"swap_c_bit3_body: swap_c_bit3's code: TM 3 for the bit, TC for C, then RM 3 or SM 3 to give the bit C's value.","t":"code","b":[87],"m":"TM","x":[1086,1279],"o":"3"},{"a":1217,"t":"code","b":[189],"m":"TR","oa":1226,"o":"swap3_clear_bit"},{"a":1218,"t":"code","b":[82],"m":"TC"},{"a":1219,"t":"code","b":[183],"m":"TR","oa":1224,"o":"swap3_set_c"},{"a":1220,"t":"code","b":[7],"m":"RM","o":"3"},{"a":1221,"l":"swap_exit_set","c":"swap_exit_set: the swaps' exit when the bit was set: SC, LAX 0, RTN, so C = 1 and A = 0. All four swaps share it.","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,"l":"swap3_set_c","c":"swap3_set_c: swap_c_bit3 with the bit set and C set: SM 3 keeps it, then the exit for a set bit.","t":"code","b":[15],"m":"SM","x":[1219],"o":"3"},{"a":1225,"t":"code","b":[190],"m":"TR","oa":1221,"o":"swap_exit_set"},{"a":1226,"l":"swap3_clear_bit","c":"swap3_clear_bit: swap_c_bit3 with the bit clear: TC, and RM 3 when C is clear, then the exit for a clear bit.","t":"code","b":[82],"m":"TC","x":[1217]},{"a":1227,"t":"code","b":[185],"m":"TR","oa":1231,"o":"swap3_tail"},{"a":1228,"t":"code","b":[7],"m":"RM","o":"3"},{"a":1229,"l":"swap_exit_clear","c":"swap_exit_clear: the swaps' exit when the bit was clear: RC, RTN, so C = 0 and A is kept. All four swaps share it.","t":"code","b":[102],"m":"RC","x":[1232,1244,1246,1258,1260,1272,1274]},{"a":1230,"t":"code","b":[110],"m":"RTN"},{"a":1231,"l":"swap3_tail","c":"swap3_tail: swap_c_bit3 with the bit clear and C set: SM 3, then the exit for a clear bit.","t":"code","b":[15],"m":"SM","x":[1227],"o":"3"},{"a":1232,"t":"code","b":[167],"m":"TR","oa":1229,"o":"swap_exit_clear"},{"a":1233,"l":"swap_c_bit2_body","c":"swap_c_bit2_body: swap_c_bit2's code, reached by $04FB: TM 2, TC, and RM 2 or SM 2, then the shared exits.","t":"code","b":[86],"m":"TM","x":[1275],"o":"2"},{"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":"swap_exit_set"},{"a":1239,"t":"code","b":[14],"m":"SM","x":[1236],"o":"2"},{"a":1240,"t":"code","b":[190],"m":"TR","oa":1221,"o":"swap_exit_set"},{"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":"swap_exit_clear"},{"a":1245,"t":"code","b":[14],"m":"SM","x":[1242],"o":"2"},{"a":1246,"t":"code","b":[167],"m":"TR","oa":1229,"o":"swap_exit_clear"},{"a":1247,"l":"swap_c_bit1_body","c":"swap_c_bit1_body: swap_c_bit1's code: TM 1, TC, and RM 1 or SM 1, then the shared exits.","t":"code","b":[85],"m":"TM","x":[1084],"o":"1"},{"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":"swap_exit_set"},{"a":1253,"t":"code","b":[13],"m":"SM","x":[1250],"o":"1"},{"a":1254,"t":"code","b":[190],"m":"TR","oa":1221,"o":"swap_exit_set"},{"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":"swap_exit_clear"},{"a":1259,"t":"code","b":[13],"m":"SM","x":[1256],"o":"1"},{"a":1260,"t":"code","b":[167],"m":"TR","oa":1229,"o":"swap_exit_clear"},{"a":1261,"l":"swap_c_bit0_body","c":"swap_c_bit0_body: swap_c_bit0's code: TM 0, TC, and RM 0 or SM 0, then the shared exits. swap_c_bit2's jump on ($04FB) follows.","t":"code","b":[84],"m":"TM","x":[1083],"o":"0"},{"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":"swap_exit_set"},{"a":1267,"t":"code","b":[12],"m":"SM","x":[1264],"o":"0"},{"a":1268,"t":"code","b":[190],"m":"TR","oa":1221,"o":"swap_exit_set"},{"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":"swap_exit_clear"},{"a":1273,"t":"code","b":[12],"m":"SM","x":[1270],"o":"0"},{"a":1274,"t":"code","b":[167],"m":"TR","oa":1229,"o":"swap_exit_clear"},{"a":1275,"t":"code","b":[174],"m":"TR","oa":1233,"x":[1085],"o":"swap_c_bit2_body"},{"a":1276,"l":"point_06_body","c":"point_06_body: point_06's code, LBL $06 and RTN.","t":"code","b":[95,6],"m":"LBL","oa":4102,"x":[1053],"o":"flag_06"},{"a":1278,"t":"code","b":[110],"m":"RTN"},{"a":1279,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1216,"o":"swap_c_bit3_body"},{"a":1280,"l":"set_limit_delay","c":"set_limit_delay: the end of mode_setup: jump_limit ($19) = A (0 for a game, so only one paratrooper is in the air until the first catch; 2 otherwise) and delay ($49) = 11, then read_keys.","t":"code","b":[69],"m":"LB","oa":4121,"x":[1343,1515],"o":"jump_limit"},{"a":1281,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1282,"t":"code","b":[95,73],"m":"LBL","oa":4169,"o":"delay"},{"a":1284,"t":"code","b":[43],"m":"LAX","o":"$B"},{"a":1285,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1286,"l":"read_keys","c":"read_keys: reads the R4 row's buttons, except during a game under way (a game key still held, or the game over, lets them be read). Holding Alarm hides the other three (keys bits 0-2 cleared, $0512). A change sets lane_turn bit 3, asks for a redraw and clears the seconds' count; on the next pass with the same keys, mode_change runs ($051A). Then the R3 row ($05A7).","t":"code","b":[78],"m":"LB","oa":4139,"o":"redraw_flags"},{"a":1287,"t":"code","b":[195],"m":"TRS","oa":1048,"o":"skip_if_clear2"},{"a":1288,"t":"code","b":[167],"m":"TR","oa":1293,"o":"$27"},{"a":1289,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_game"},{"a":1290,"t":"code","b":[167],"m":"TR","oa":1293,"o":"$27"},{"a":1291,"t":"code","b":[217],"m":"TRS","oa":1075,"o":"skip_if_over"},{"a":1292,"t":"code","b":[149],"m":"TR","oa":1338,"o":"$15"},{"a":1293,"t":"code","b":[226],"m":"TRS","oa":1070,"x":[1288,1290],"o":"select_r4"},{"a":1294,"t":"code","b":[106],"m":"KTA"},{"a":1295,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1296,"t":"code","b":[87],"m":"TM","o":"3"},{"a":1297,"t":"code","b":[154],"m":"TR","oa":1301,"o":"$1A"},{"a":1298,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1299,"t":"code","b":[5],"m":"RM","o":"1"},{"a":1300,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1301,"t":"code","b":[83],"m":"TAM","x":[1297]},{"a":1302,"t":"code","b":[180],"m":"TR","oa":1308,"o":"$34"},{"a":1303,"t":"code","b":[72],"m":"LB","oa":4106,"o":"lane_turn"},{"a":1304,"t":"code","b":[212],"m":"TRS","oa":1080,"o":"take_bit3"},{"a":1305,"t":"code","b":[149],"m":"TR","oa":1338,"o":"$15"},{"a":1306,"t":"code","b":[117],"m":"SSR","o":"5"},{"a":1307,"t":"code","b":[128],"m":"TR","oa":1344,"o":"mode_change"},{"a":1308,"t":"code","b":[72],"m":"LB","oa":4106,"x":[1302],"o":"lane_turn"},{"a":1309,"t":"code","b":[15],"m":"SM","o":"3"},{"a":1310,"t":"code","b":[223],"m":"TRS","oa":1030,"o":"set_redraw"},{"a":1311,"t":"code","b":[248],"m":"TRS","oa":1027,"o":"clear_40_41"},{"a":1312,"t":"code","b":[149],"m":"TR","oa":1338,"o":"$15"},{"a":1313,"s":"Padding: SKIPs, no operation, that nothing reaches.","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":"mode_entered","c":"mode_entered: after mode_change has written the new mode, with A the old one. Leaving the alarm's setting sets game_flags bit 1, so the alarm is checked at once ($0528). Choosing the clock again changes nothing; Alarm, pressed again or to enter its setting, turns the alarm on or off (game_flags bit 2, $0535); a game's key, or the same game again after it is over, asks for the mode's screen to be set up (redraw_flags bit 3, $0538).","t":"code","b":[56],"m":"ADX","x":[1382],"o":"8"},{"a":1319,"t":"code","b":[137],"m":"TR","oa":1324,"o":"$09"},{"a":1320,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":1321,"t":"code","b":[76],"m":"LB","oa":4107,"o":"game_flags"},{"a":1322,"t":"code","b":[13],"m":"SM","o":"1"},{"a":1323,"t":"code","b":[162],"m":"TR","oa":1326,"o":"$22"},{"a":1324,"t":"code","b":[56],"m":"ADX","x":[1319],"o":"8"},{"a":1325,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1326,"t":"code","b":[67],"m":"LB","oa":4144,"x":[1323],"o":"mode"},{"a":1327,"t":"code","b":[83],"m":"TAM"},{"a":1328,"t":"code","b":[153],"m":"TR","oa":1331,"o":"$19"},{"a":1329,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":1330,"t":"code","b":[149],"m":"TR","oa":1338,"o":"$15"},{"a":1331,"t":"code","b":[87],"m":"TM","x":[1328],"o":"3"},{"a":1332,"t":"code","b":[148],"m":"TR","oa":1336,"o":"$14"},{"a":1333,"t":"code","b":[76],"m":"LB","oa":4107,"o":"game_flags"},{"a":1334,"t":"code","b":[233],"m":"TRS","oa":1079,"o":"take_bit2"},{"a":1335,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1336,"t":"code","b":[78],"m":"LB","oa":4139,"x":[1332],"o":"redraw_flags"},{"a":1337,"t":"code","b":[15],"m":"SM","o":"3"},{"a":1338,"t":"code","b":[118],"m":"SSR","x":[1292,1305,1312,1330],"o":"6"},{"a":1339,"t":"code","b":[173],"m":"TR","oa":1447,"o":"read_r3"},{"a":1340,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1341,"t":"code","b":[0],"m":"SKIP"},{"a":1342,"t":"code","b":[0],"m":"SKIP"},{"a":1343,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1280,"o":"set_limit_delay"},{"a":1344,"l":"mode_change","c":"mode_change: the buttons changed a pass ago and still read the same. In the clock with the alarm ringing, Time stops it ($0549, checked on the model); the other keys leave it. All keys let go: when a game's key was held (redraw_flags bit 2) the game starts ($056A). Otherwise, out of a game or after one is over, the keys give the mode by their sum, as the carries of ADX $F at $054D and ADX $F, $E and $D from $0553 sort it: 1 (Time) the clock, 2 or 3 Game B, 4 to 6 Game A, 7 or more the alarm's setting. So Time with Game B gives Game B, Time or Game B with Game A gives Game A, and all three together the alarm's setting (checked on the model); Alarm alone is 8. Coming from power on (old mode 0) the divider is reset (IDIV) and the 1 Hz flag cleared (TG), so the seconds start when a mode is first chosen ($0561).","t":"code","b":[223],"m":"TRS","oa":1030,"x":[1307,1407],"o":"set_redraw"},{"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":[167],"m":"TR","oa":1357,"o":"$27"},{"a":1348,"t":"code","b":[204],"m":"TRS","oa":1076,"o":"skip_if_ringing"},{"a":1349,"t":"code","b":[167],"m":"TR","oa":1357,"o":"$27"},{"a":1350,"s":"Only when the alarm rings in the clock: Time's bit is read from the monkey's cell by swapping A in and out.","t":"code","b":[16],"m":"EXC","o":"0"},{"a":1351,"t":"code","b":[84],"m":"TM","o":"0"},{"a":1352,"t":"code","b":[143],"m":"TR","oa":1356,"o":"$0F"},{"a":1353,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1354,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1355,"t":"code","b":[167],"m":"TR","oa":1357,"o":"$27"},{"a":1356,"t":"code","b":[16],"m":"EXC","x":[1352],"o":"0"},{"a":1357,"t":"code","b":[63],"m":"ADX","x":[1347,1349,1355],"o":"$F"},{"a":1358,"t":"code","b":[173],"m":"TR","oa":1383,"o":"$2D"},{"a":1359,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_game"},{"a":1360,"t":"code","b":[171],"m":"TR","oa":1363,"o":"$2B"},{"a":1361,"t":"code","b":[217],"m":"TRS","oa":1075,"o":"skip_if_over"},{"a":1362,"t":"code","b":[145],"m":"TR","oa":1391,"o":"$11"},{"a":1363,"s":"The keys' sum to the mode.","t":"code","b":[63],"m":"ADX","x":[1360],"o":"$F"},{"a":1364,"t":"code","b":[180],"m":"TR","oa":1372,"o":"$34"},{"a":1365,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":1366,"t":"code","b":[168],"m":"TR","oa":1371,"o":"$28"},{"a":1367,"t":"code","b":[61],"m":"ADX","o":"$D"},{"a":1368,"t":"code","b":[144],"m":"TR","oa":1370,"o":"$10"},{"a":1369,"t":"code","b":[40],"m":"LAX","o":"8"},{"a":1370,"t":"code","b":[36],"m":"LAX","x":[1368],"o":"4"},{"a":1371,"t":"code","b":[34],"m":"LAX","x":[1366],"o":"2"},{"a":1372,"t":"code","b":[33],"m":"LAX","x":[1364],"o":"1"},{"a":1373,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":1374,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1375,"t":"code","b":[90],"m":"TA0"},{"a":1376,"t":"code","b":[182],"m":"TR","oa":1381,"o":"$36"},{"a":1377,"t":"code","b":[101],"m":"IDIV"},{"a":1378,"t":"code","b":[0],"m":"SKIP"},{"a":1379,"t":"code","b":[88],"m":"TG"},{"a":1380,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1381,"t":"code","b":[116],"m":"SSR","x":[1376],"o":"4"},{"a":1382,"t":"code","b":[155],"m":"TR","oa":1318,"o":"mode_entered"},{"a":1383,"t":"code","b":[78],"m":"LB","oa":4139,"x":[1358],"o":"redraw_flags"},{"a":1384,"t":"code","b":[233],"m":"TRS","oa":1079,"o":"take_bit2"},{"a":1385,"t":"code","b":[145],"m":"TR","oa":1391,"o":"$11"},{"a":1386,"l":"start_game","c":"start_game: a game's key let go: the score ($15-$17) set to 0, the helicopter shown, then the R3 row.","t":"code","b":[228],"m":"TRS","oa":1073,"o":"point_15"},{"a":1387,"t":"code","b":[32],"m":"LAX","x":[1389],"o":"0"},{"a":1388,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":1389,"t":"code","b":[146],"m":"TR","oa":1387,"o":"$12"},{"a":1390,"t":"code","b":[218],"m":"TRS","oa":1045,"o":"show_helicopter"},{"a":1391,"t":"code","b":[118],"m":"SSR","x":[1362,1385],"o":"6"},{"a":1392,"t":"code","b":[173],"m":"TR","oa":1447,"o":"read_r3"},{"a":1393,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1394,"t":"code","b":[0],"m":"SKIP"},{"a":1395,"t":"code","b":[0],"m":"SKIP"},{"a":1396,"t":"code","b":[77],"m":"LB","oa":4123,"o":"tone_count"},{"a":1397,"t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags"},{"a":1398,"t":"code","b":[84],"m":"TM","o":"0"},{"a":1399,"t":"code","b":[83],"m":"TAM"},{"a":1400,"t":"code","b":[85],"m":"TM","o":"1"},{"a":1401,"t":"code","b":[82],"m":"TC"},{"a":1402,"t":"code","b":[85],"m":"TM","o":"1"},{"a":1403,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1404,"t":"code","b":[0],"m":"SKIP"},{"a":1405,"t":"code","b":[0],"m":"SKIP"},{"a":1406,"t":"code","b":[0],"m":"SKIP"},{"a":1407,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1344,"o":"mode_change"},{"a":1408,"l":"after_keys","c":"after_keys: when redraw_flags bit 3 (taken) asks for it, the mode's screen is set up (mode_setup, $05C0); then back to the pass ($0009).","t":"code","b":[78],"m":"LB","oa":4139,"x":[1417,1420,1430,1438,1466,1471],"o":"redraw_flags"},{"a":1409,"t":"code","b":[212],"m":"TRS","oa":1080,"o":"take_bit3"},{"a":1410,"t":"code","b":[190],"m":"TR","oa":1413,"o":"$3E"},{"a":1411,"t":"code","b":[119],"m":"SSR","o":"7"},{"a":1412,"t":"code","b":[128],"m":"TR","oa":1472,"o":"mode_setup"},{"a":1413,"t":"code","b":[109],"m":"COMCB","x":[1410]},{"a":1414,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":1415,"t":"code","b":[187],"m":"TR","oa":1033,"o":"draw_cell"},{"a":1416,"l":"alarm_minute","c":"alarm_minute: once a minute (game_flags bit 1, taken): the alarm stops ringing (the monkey, his arm and the bell put out), and when the alarm is on (game_flags bit 2) and its time ($32-$35) equals the time's hours and minutes ($36-$39, BL + 4 by EXBLA and ADX 4), it rings ($05B0). So it rings for a minute.","t":"code","b":[211],"m":"TRS","oa":1078,"x":[1452],"o":"take_bit1"},{"a":1417,"t":"code","b":[128],"m":"TR","oa":1408,"o":"after_keys"},{"a":1418,"t":"code","b":[67],"m":"LB","oa":4144,"o":"mode"},{"a":1419,"t":"code","b":[225],"m":"TRS","oa":1049,"o":"skip_if_clear3"},{"a":1420,"s":"Never ran: the minute in the alarm's setting.","t":"code","b":[128],"m":"TR","oa":1408,"o":"after_keys"},{"a":1421,"t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_14"},{"a":1422,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1423,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1424,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1425,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1426,"t":"code","b":[250],"m":"TRS","oa":1053,"o":"point_06"},{"a":1427,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1428,"t":"code","b":[76],"m":"LB","oa":4107,"o":"game_flags"},{"a":1429,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1430,"t":"code","b":[128],"m":"TR","oa":1408,"o":"after_keys"},{"a":1431,"t":"code","b":[95,50],"m":"LBL","oa":4146,"o":"alarm_h10"},{"a":1433,"t":"code","b":[24],"m":"LDA","x":[1446],"o":"0"},{"a":1434,"t":"code","b":[11],"m":"EXBLA"},{"a":1435,"t":"code","b":[52],"m":"ADX","o":"4"},{"a":1436,"t":"code","b":[11],"m":"EXBLA"},{"a":1437,"t":"code","b":[83],"m":"TAM"},{"a":1438,"t":"code","b":[128],"m":"TR","oa":1408,"o":"after_keys"},{"a":1439,"t":"code","b":[11],"m":"EXBLA"},{"a":1440,"t":"code","b":[55],"m":"ADX","o":"7"},{"a":1441,"t":"code","b":[152],"m":"TR","oa":1443,"o":"$18"},{"a":1442,"t":"code","b":[136],"m":"TR","oa":1456,"o":"alarm_ring"},{"a":1443,"t":"code","b":[54],"m":"ADX","x":[1441],"o":"6"},{"a":1444,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1445,"t":"code","b":[11],"m":"EXBLA"},{"a":1446,"t":"code","b":[161],"m":"TR","oa":1433,"o":"$21"},{"a":1447,"l":"read_r3","c":"read_r3: selects the R3 row (ATR $B) and reads it. Its fourth key (K4), a test pad MAME 0.289's driver marks \"alarm test?\", rings the alarm at once and flips pad_flags bit 2, which turns misses off and on, each pass it is held. Otherwise alarm_minute ($0588).","t":"code","b":[43],"m":"LAX","x":[1339,1392],"o":"$B"},{"a":1448,"t":"code","b":[1],"m":"ATR"},{"a":1449,"t":"code","b":[76],"m":"LB","oa":4107,"o":"game_flags"},{"a":1450,"t":"code","b":[106],"m":"KTA"},{"a":1451,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":1452,"t":"code","b":[183],"m":"TR","oa":1416,"o":"alarm_minute"},{"a":1453,"t":"code","b":[74],"m":"LB","oa":4138,"o":"pad_flags"},{"a":1454,"t":"code","b":[233],"m":"TRS","oa":1079,"o":"take_bit2"},{"a":1455,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1456,"l":"alarm_ring","c":"alarm_ring: the alarm rings: the monkey (lcd_14 bit 0) with his arm up (lcd_04 bit 2) and the bell up (flag_06 bit 0), the alarm's sound (sound_flags bit 0), and a redraw.","t":"code","b":[237],"m":"TRS","oa":1063,"x":[1442],"o":"point_14"},{"a":1457,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1458,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1459,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1460,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1461,"t":"code","b":[250],"m":"TRS","oa":1053,"o":"point_06"},{"a":1462,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1463,"t":"code","b":[66],"m":"LB","oa":4128,"o":"sound_flags"},{"a":1464,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1465,"t":"code","b":[223],"m":"TRS","oa":1030,"o":"set_redraw"},{"a":1466,"t":"code","b":[128],"m":"TR","oa":1408,"o":"after_keys"},{"a":1467,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1468,"t":"code","b":[0],"m":"SKIP"},{"a":1469,"t":"code","b":[0],"m":"SKIP"},{"a":1470,"t":"code","b":[0],"m":"SKIP"},{"a":1471,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1408,"o":"after_keys"},{"a":1472,"l":"mode_setup","c":"mode_setup: a new mode's screen. Clears row 0 to column 9 (the lanes, the water, in_air) and row 1 to column 8 (the misses and the boat), puts the boat in the middle (lcd_13 bit 1), and clears the sounds, miss_due and a point due. Out of a game it shows the helicopter and the blade 8.3.1 ($05C7). In a game it lights GAME A (lcd_03 bit 2) or GAME B (lcd_08 bit 1) and sets redraw_flags bit 2 so the game starts when the key is let go (start_game shows the helicopter then), with A = 0 for jump_limit. In the clock and after power on it sets keys to $E and clears tick_flags bit 2; there and in the alarm's setting A = 2 ($05E9). Then set_limit_delay ($0500).","t":"code","b":[68],"m":"LB","oa":4105,"x":[1412,1535],"o":"in_air"},{"a":1473,"t":"code","b":[254],"m":"TRS","oa":1029,"o":"clear_down"},{"a":1474,"t":"code","b":[196],"m":"TRS","oa":1069,"o":"point_18"},{"a":1475,"t":"code","b":[254],"m":"TRS","oa":1029,"o":"clear_down"},{"a":1476,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_game"},{"a":1477,"t":"code","b":[175],"m":"TR","oa":1479,"o":"$2F"},{"a":1478,"t":"code","b":[189],"m":"TR","oa":1482,"o":"$3D"},{"a":1479,"t":"code","b":[218],"m":"TRS","oa":1045,"x":[1477],"o":"show_helicopter"},{"a":1480,"t":"code","b":[229],"m":"TRS","oa":1066,"o":"point_11"},{"a":1481,"t":"code","b":[15],"m":"SM","o":"3"},{"a":1482,"t":"code","b":[236],"m":"TRS","oa":1060,"x":[1478],"o":"point_13"},{"a":1483,"t":"code","b":[13],"m":"SM","o":"1"},{"a":1484,"t":"code","b":[223],"m":"TRS","oa":1030,"o":"set_redraw"},{"a":1485,"t":"code","b":[66],"m":"LB","oa":4128,"o":"sound_flags"},{"a":1486,"t":"code","b":[240],"m":"TRS","oa":1026,"o":"take_cell"},{"a":1487,"t":"code","b":[70],"m":"LB","oa":4137,"o":"miss_due"},{"a":1488,"t":"code","b":[240],"m":"TRS","oa":1026,"o":"take_cell"},{"a":1489,"t":"code","b":[76],"m":"LB","oa":4107,"o":"game_flags"},{"a":1490,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1491,"t":"code","b":[234],"m":"TRS","oa":1081,"o":"skip_if_mode_lt2"},{"a":1492,"t":"code","b":[186],"m":"TR","oa":1501,"o":"$3A"},{"a":1493,"t":"code","b":[100],"m":"INCB"},{"a":1494,"t":"code","b":[46],"m":"LAX","o":"$E"},{"a":1495,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1496,"t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags"},{"a":1497,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1498,"t":"code","b":[78],"m":"LB","oa":4139,"x":[1502],"o":"redraw_flags"},{"a":1499,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1500,"t":"code","b":[139],"m":"TR","oa":1513,"o":"$0B"},{"a":1501,"t":"code","b":[225],"m":"TRS","oa":1049,"x":[1492],"o":"skip_if_clear3"},{"a":1502,"t":"code","b":[144],"m":"TR","oa":1498,"o":"$10"},{"a":1503,"t":"code","b":[85],"m":"TM","o":"1"},{"a":1504,"t":"code","b":[172],"m":"TR","oa":1508,"o":"$2C"},{"a":1505,"t":"code","b":[199],"m":"TRS","oa":1056,"o":"point_08"},{"a":1506,"t":"code","b":[13],"m":"SM","o":"1"},{"a":1507,"t":"code","b":[155],"m":"TR","oa":1510,"o":"$1B"},{"a":1508,"t":"code","b":[232],"m":"TRS","oa":1051,"x":[1504],"o":"point_03"},{"a":1509,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1510,"t":"code","b":[78],"m":"LB","oa":4139,"x":[1507],"o":"redraw_flags"},{"a":1511,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1512,"t":"code","b":[32],"m":"LAX","o":"0"},{"a":1513,"t":"code","b":[34],"m":"LAX","x":[1500],"o":"2"},{"a":1514,"t":"code","b":[116],"m":"SSR","o":"4"},{"a":1515,"t":"code","b":[128],"m":"TR","oa":1280,"o":"set_limit_delay"},{"a":1516,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1517,"t":"code","b":[0],"m":"SKIP"},{"a":1518,"t":"code","b":[0],"m":"SKIP"},{"a":1519,"t":"code","b":[0],"m":"SKIP"},{"a":1520,"l":"game_screen","c":"game_screen: while a game's key is still held, the colon goes out and the game's best score (Game B's from $25-$27, Game A's from $45-$47, chosen by c_not_game_b) is copied into the digits, so the key shows the best until it is let go. Then the leading zeros ($0680).","t":"code","b":[78],"m":"LB","oa":4139,"x":[1570],"o":"redraw_flags"},{"a":1521,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1522,"t":"code","b":[133],"m":"TR","oa":1532,"o":"$05"},{"a":1523,"t":"code","b":[235],"m":"TRS","oa":1043,"o":"c_not_game_b"},{"a":1524,"t":"code","b":[192],"m":"TRS","oa":1024,"o":"take_05"},{"a":1525,"t":"code","b":[26],"m":"LDA","o":"2"},{"a":1526,"t":"code","b":[82],"m":"TC","x":[1531]},{"a":1527,"t":"code","b":[2],"m":"SBM"},{"a":1528,"t":"code","b":[27],"m":"LDA","o":"3"},{"a":1529,"t":"code","b":[107],"m":"RBM"},{"a":1530,"t":"code","b":[23],"m":"EXCI","o":"3"},{"a":1531,"t":"code","b":[147],"m":"TR","oa":1526,"o":"$13"},{"a":1532,"t":"code","b":[228],"m":"TRS","oa":1073,"x":[1522],"o":"point_15"},{"a":1533,"t":"code","b":[122],"m":"SSR","o":"$A"},{"a":1534,"t":"code","b":[128],"m":"TR","oa":1664,"o":"blank_zeros"},{"a":1535,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1472,"o":"mode_setup"},{"a":1536,"l":"draw_prep","c":"draw_prep: with a redraw asked for (redraw_flags bit 0, taken). Out of a game, after one is over, or while the alarm rings: the bell swings while it rings ($0625); otherwise the alarm's figures go out and the bell up (flag_06 bit 0) is lit when the alarm is on, its sign on the screen. Then the screen of the mode: after power on and in the clock clock_screen ($06C0), in the alarm's setting alarm_screen ($06E3), in a game game_screen ($05F0). With nothing to draw, the drawing's end ($066E).","t":"code","b":[78],"m":"LB","oa":4139,"x":[1599],"o":"redraw_flags"},{"a":1537,"t":"code","b":[230],"m":"TRS","oa":1077,"o":"take_bit0"},{"a":1538,"t":"code","b":[152],"m":"TR","oa":1571,"o":"$18"},{"a":1539,"t":"code","b":[245],"m":"TRS","oa":1044,"o":"skip_if_game"},{"a":1540,"t":"code","b":[187],"m":"TR","oa":1545,"o":"$3B"},{"a":1541,"t":"code","b":[217],"m":"TRS","oa":1075,"o":"skip_if_over"},{"a":1542,"t":"code","b":[161],"m":"TR","oa":1561,"o":"$21"},{"a":1543,"t":"code","b":[204],"m":"TRS","oa":1076,"o":"skip_if_ringing"},{"a":1544,"t":"code","b":[161],"m":"TR","oa":1561,"o":"$21"},{"a":1545,"t":"code","b":[76],"m":"LB","oa":4107,"x":[1540],"o":"game_flags"},{"a":1546,"t":"code","b":[103],"m":"SC"},{"a":1547,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1548,"t":"code","b":[102],"m":"RC"},{"a":1549,"t":"code","b":[204],"m":"TRS","oa":1076,"o":"skip_if_ringing"},{"a":1550,"t":"code","b":[151],"m":"TR","oa":1554,"o":"$17"},{"a":1551,"t":"code","b":[120],"m":"SSR","o":"8"},{"a":1552,"t":"code","b":[246],"m":"TRS","oa":1573,"o":"bell_swing"},{"a":1553,"t":"code","b":[161],"m":"TR","oa":1561,"o":"$21"},{"a":1554,"t":"code","b":[6],"m":"RM","x":[1550],"o":"2"},{"a":1555,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1556,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1557,"t":"code","b":[250],"m":"TRS","oa":1053,"o":"point_06"},{"a":1558,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1559,"t":"code","b":[82],"m":"TC"},{"a":1560,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1561,"t":"code","b":[234],"m":"TRS","oa":1081,"x":[1542,1544,1553],"o":"skip_if_mode_lt2"},{"a":1562,"t":"code","b":[186],"m":"TR","oa":1565,"o":"$3A"},{"a":1563,"t":"code","b":[123],"m":"SSR","o":"$B"},{"a":1564,"t":"code","b":[128],"m":"TR","oa":1728,"o":"clock_screen"},{"a":1565,"t":"code","b":[87],"m":"TM","x":[1562],"o":"3"},{"a":1566,"t":"code","b":[163],"m":"TR","oa":1569,"o":"$23"},{"a":1567,"t":"code","b":[123],"m":"SSR","o":"$B"},{"a":1568,"t":"code","b":[152],"m":"TR","oa":1763,"o":"alarm_screen"},{"a":1569,"t":"code","b":[119],"m":"SSR","x":[1566],"o":"7"},{"a":1570,"t":"code","b":[136],"m":"TR","oa":1520,"o":"game_screen"},{"a":1571,"t":"code","b":[121],"m":"SSR","x":[1538],"o":"9"},{"a":1572,"t":"code","b":[162],"m":"TR","oa":1646,"o":"draw_end"},{"a":1573,"l":"bell_swing","c":"bell_swing: the alarm's bell, called at each step and each drawing. With the bell up (flag_06 bit 0) it swings down: up and the monkey's arm (lcd_04 bit 2) out, down (lcd_14 bit 2) lit. With it down, it swings up again ($0634). With neither lit, as in a game when the alarm is not ringing, it does nothing.","t":"code","b":[95,6],"m":"LBL","oa":4102,"x":[1552,1848],"o":"flag_06"},{"a":1575,"t":"code","b":[84],"m":"TM","o":"0"},{"a":1576,"t":"code","b":[136],"m":"TR","oa":1584,"o":"$08"},{"a":1577,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1578,"t":"code","b":[95,4],"m":"LBL","oa":4100,"o":"lcd_04"},{"a":1580,"t":"code","b":[6],"m":"RM","x":[1593],"o":"2"},{"a":1581,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1582,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1583,"t":"code","b":[110],"m":"RTN"},{"a":1584,"t":"code","b":[95,20],"m":"LBL","oa":4116,"x":[1576],"o":"lcd_14"},{"a":1586,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1587,"t":"code","b":[110],"m":"RTN"},{"a":1588,"t":"code","b":[95,6],"m":"LBL","oa":4102,"o":"flag_06"},{"a":1590,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1591,"t":"code","b":[95,20],"m":"LBL","oa":4116,"o":"lcd_14"},{"a":1593,"t":"code","b":[137],"m":"TR","oa":1580,"o":"$09"},{"a":1594,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1595,"t":"code","b":[0],"m":"SKIP"},{"a":1596,"t":"code","b":[0],"m":"SKIP"},{"a":1597,"t":"code","b":[0],"m":"SKIP"},{"a":1598,"t":"code","b":[0],"m":"SKIP"},{"a":1599,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1536,"o":"draw_prep"},{"a":1600,"l":"draw","c":"draw: draws the screen from the cells. For common H1: lcd_08, lcd_02 to lcd_04 by draw_cell, then the three digits by DTW from $15-$17 with each digit's extra segment (SMF, from bit 0 of flag_05 to flag_07), then lcd_00 and lcd_01, and TW puts it on the screen. Then for H2 (COMCN): lcd_18, lcd_12 to lcd_14, the digits' other half, lcd_10 and lcd_11. While the bonus is due (pad_flags bit 1) the misses are drawn blank on every odd count of bonus_blinks ($0657), so they blink.","t":"code","b":[199],"m":"TRS","oa":1056,"x":[1663,1719],"o":"point_08"},{"a":1601,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":1602,"t":"code","b":[95,2],"m":"LBL","oa":4098,"o":"lcd_02"},{"a":1604,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":1605,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":1606,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":1607,"t":"code","b":[105],"m":"SMF","x":[1614]},{"a":1608,"t":"code","b":[84],"m":"TM","o":"0"},{"a":1609,"t":"code","b":[104],"m":"RMF"},{"a":1610,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1611,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1612,"t":"code","b":[93],"m":"DTW"},{"a":1613,"t":"code","b":[100],"m":"INCB"},{"a":1614,"t":"code","b":[175],"m":"TR","oa":1607,"o":"$2F"},{"a":1615,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_00"},{"a":1616,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":1617,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":1618,"t":"code","b":[92],"m":"TW"},{"a":1619,"t":"code","b":[96],"m":"COMCN"},{"a":1620,"t":"code","b":[74],"m":"LB","oa":4138,"o":"pad_flags"},{"a":1621,"t":"code","b":[85],"m":"TM","o":"1"},{"a":1622,"t":"code","b":[135],"m":"TR","oa":1632,"o":"$07"},{"a":1623,"t":"code","b":[95,66],"m":"LBL","oa":4162,"o":"bonus_blinks"},{"a":1625,"t":"code","b":[84],"m":"TM","o":"0"},{"a":1626,"t":"code","b":[135],"m":"TR","oa":1632,"o":"$07"},{"a":1627,"t":"code","b":[32],"m":"LAX","o":"0"},{"a":1628,"t":"code","b":[196],"m":"TRS","oa":1069,"o":"point_18"},{"a":1629,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":1630,"t":"code","b":[253],"m":"TRS","oa":1034,"o":"$3D"},{"a":1631,"t":"code","b":[177],"m":"TR","oa":1634,"o":"$31"},{"a":1632,"t":"code","b":[196],"m":"TRS","oa":1069,"x":[1622,1626],"o":"point_18"},{"a":1633,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":1634,"t":"code","b":[227],"m":"TRS","oa":1057,"x":[1631],"o":"point_12"},{"a":1635,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":1636,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":1637,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":1638,"t":"code","b":[24],"m":"LDA","x":[1641],"o":"0"},{"a":1639,"t":"code","b":[93],"m":"DTW"},{"a":1640,"t":"code","b":[100],"m":"INCB"},{"a":1641,"t":"code","b":[155],"m":"TR","oa":1638,"o":"$1B"},{"a":1642,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_10"},{"a":1643,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":1644,"t":"code","b":[251],"m":"TRS","oa":1033,"o":"draw_cell"},{"a":1645,"t":"code","b":[96],"m":"COMCN"},{"a":1646,"l":"draw_end","c":"draw_end: after the drawing, or with nothing drawn: when lane_turn bit 2 says the alarm's setting showed the monkey and his arm, they go out again ($0671). Then the digits' blanks are put back to 0 ($0711).","t":"code","b":[72],"m":"LB","oa":4106,"x":[1572],"o":"lane_turn"},{"a":1647,"t":"code","b":[233],"m":"TRS","oa":1079,"o":"take_bit2"},{"a":1648,"t":"code","b":[166],"m":"TR","oa":1653,"o":"$26"},{"a":1649,"t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_14"},{"a":1650,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1651,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1652,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1653,"t":"code","b":[124],"m":"SSR","x":[1648],"o":"$C"},{"a":1654,"t":"code","b":[174],"m":"TR","oa":1809,"o":"unblank"},{"a":1655,"l":"page19_unused","c":"page19_unused: bytes after the drawing's last jump that nothing reaches: a PTW and a few LB, never run in the coverage run.","s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1656,"t":"code","b":[89],"m":"PTW"},{"a":1657,"t":"code","b":[79],"m":"LB","oa":4155,"o":"time_s1"},{"a":1658,"t":"code","b":[83],"m":"TAM"},{"a":1659,"t":"code","b":[72],"m":"LB","oa":4106,"o":"lane_turn"},{"a":1660,"t":"code","b":[73],"m":"LB","oa":4122,"o":"tick_flags"},{"a":1661,"t":"code","b":[68],"m":"LB","oa":4105,"o":"in_air"},{"a":1662,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_00"},{"a":1663,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1600,"o":"draw"},{"a":1664,"l":"blank_zeros","c":"blank_zeros: from the hundreds, each leading 0 of the digits becomes $B, drawn blank; the units are always drawn.","t":"code","b":[32],"m":"LAX","x":[1534,1671,1727],"o":"0"},{"a":1665,"t":"code","b":[83],"m":"TAM"},{"a":1666,"t":"code","b":[183],"m":"TR","oa":1672,"o":"sky_empty"},{"a":1667,"t":"code","b":[43],"m":"LAX","o":"$B"},{"a":1668,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":1669,"t":"code","b":[39],"m":"LAX","o":"7"},{"a":1670,"t":"code","b":[91],"m":"TABL"},{"a":1671,"t":"code","b":[128],"m":"TR","oa":1664,"o":"blank_zeros"},{"a":1672,"l":"sky_empty","c":"sky_empty: before every drawing. When no place of any lane, the lanes' last places and the tree included, has a paratrooper (lcd_13 bit 0, lcd_14 bit 3, lcd_04 bit 3, lcd_03 bits 0 and 1, lcd_10, lcd_11 bits 0-2, flag_07 bit 0, lcd_00 bits 1-3, lcd_01 bits 0 and 1, lcd_08 bits 2 and 3 all clear), in_air is set to 0, so the next step's jump is certain ($06B3). Then draw ($0640).","t":"code","b":[236],"m":"TRS","oa":1060,"x":[1666,1775,1806],"o":"point_13"},{"a":1673,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":1674,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1675,"t":"code","b":[100],"m":"INCB"},{"a":1676,"t":"code","b":[225],"m":"TRS","oa":1049,"o":"skip_if_clear3"},{"a":1677,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1678,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1679,"t":"code","b":[225],"m":"TRS","oa":1049,"o":"skip_if_clear3"},{"a":1680,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1681,"t":"code","b":[108],"m":"DECB"},{"a":1682,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":1683,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1684,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear1"},{"a":1685,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1686,"t":"code","b":[65],"m":"LB","oa":4112,"o":"lcd_10"},{"a":1687,"t":"code","b":[32],"m":"LAX","o":"0"},{"a":1688,"t":"code","b":[83],"m":"TAM"},{"a":1689,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1690,"t":"code","b":[100],"m":"INCB"},{"a":1691,"t":"code","b":[87],"m":"TM","o":"3"},{"a":1692,"t":"code","b":[32],"m":"LAX","o":"0"},{"a":1693,"t":"code","b":[40],"m":"LAX","o":"8"},{"a":1694,"t":"code","b":[83],"m":"TAM"},{"a":1695,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1696,"t":"code","b":[221],"m":"TRS","oa":1054,"o":"point_07"},{"a":1697,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":1698,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1699,"t":"code","b":[64],"m":"LB","oa":4096,"o":"lcd_00"},{"a":1700,"t":"code","b":[84],"m":"TM","o":"0"},{"a":1701,"t":"code","b":[32],"m":"LAX","o":"0"},{"a":1702,"t":"code","b":[33],"m":"LAX","o":"1"},{"a":1703,"t":"code","b":[83],"m":"TAM"},{"a":1704,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1705,"t":"code","b":[100],"m":"INCB"},{"a":1706,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":1707,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1708,"t":"code","b":[198],"m":"TRS","oa":1047,"o":"skip_if_clear1"},{"a":1709,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1710,"t":"code","b":[199],"m":"TRS","oa":1056,"x":[1835],"o":"point_08"},{"a":1711,"t":"code","b":[225],"m":"TRS","oa":1049,"o":"skip_if_clear3"},{"a":1712,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1713,"t":"code","b":[195],"m":"TRS","oa":1048,"o":"skip_if_clear2"},{"a":1714,"t":"code","b":[147],"m":"TR","oa":1718,"o":"$13"},{"a":1715,"t":"code","b":[68],"m":"LB","oa":4105,"o":"in_air"},{"a":1716,"t":"code","b":[32],"m":"LAX","o":"0"},{"a":1717,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1718,"t":"code","b":[121],"m":"SSR","x":[1674,1677,1680,1683,1685,1689,1695,1698,1704,1707,1709,1712,1714],"o":"9"},{"a":1719,"t":"code","b":[128],"m":"TR","oa":1600,"o":"draw"},{"a":1720,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1721,"t":"code","b":[0],"m":"SKIP"},{"a":1722,"t":"code","b":[0],"m":"SKIP"},{"a":1723,"t":"code","b":[0],"m":"SKIP"},{"a":1724,"t":"code","b":[0],"m":"SKIP"},{"a":1725,"t":"code","b":[0],"m":"SKIP"},{"a":1726,"t":"code","b":[0],"m":"SKIP"},{"a":1727,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1664,"o":"blank_zeros"},{"a":1728,"l":"clock_screen","c":"clock_screen: after power on (mode 0) every cell of rows 0 and 1 is filled with $F ($06D3), so every segment lights; with misses off (pad_flags bit 2) row 1 is cleared again and the digits set to 8 ($06DC). In the clock, holding Time shows the alarm's time (alarm_screen, $06E3); otherwise the colon lights and the hours' units and the minutes are copied into the digits, then AM, PM and the hours' 1 ($0700).","t":"code","b":[49],"m":"ADX","x":[1564,1791],"o":"1"},{"a":1729,"t":"code","b":[171],"m":"TR","oa":1747,"o":"power_on_screen"},{"a":1730,"t":"code","b":[200],"m":"TRS","oa":1072,"o":"point_31"},{"a":1731,"t":"code","b":[205],"m":"TRS","oa":1046,"o":"skip_if_clear0"},{"a":1732,"t":"code","b":[152],"m":"TR","oa":1763,"o":"alarm_screen"},{"a":1733,"t":"code","b":[192],"m":"TRS","oa":1024,"x":[1755],"o":"take_05"},{"a":1734,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1735,"t":"code","b":[71],"m":"LB","oa":4153,"o":"time_m1"},{"a":1736,"t":"code","b":[26],"m":"LDA","x":[1745],"o":"2"},{"a":1737,"t":"code","b":[11],"m":"EXBLA"},{"a":1738,"t":"code","b":[62],"m":"ADX","o":"$E"},{"a":1739,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1740,"t":"code","b":[11],"m":"EXBLA"},{"a":1741,"t":"code","b":[22],"m":"EXCI","o":"2"},{"a":1742,"t":"code","b":[0],"m":"SKIP"},{"a":1743,"t":"code","b":[38],"m":"LAX","o":"6"},{"a":1744,"t":"code","b":[91],"m":"TABL"},{"a":1745,"t":"code","b":[183],"m":"TR","oa":1736,"o":"$37"},{"a":1746,"t":"code","b":[169],"m":"TR","oa":1783,"o":"$29"},{"a":1747,"l":"power_on_screen","c":"power_on_screen: fills lcd_08 to lcd_00 and lcd_18 to lcd_10 with $F, two cells a loop (EXC 1 and EXCD 1).","t":"code","b":[199],"m":"TRS","oa":1056,"x":[1729],"o":"point_08"},{"a":1748,"t":"code","b":[47],"m":"LAX","x":[1752],"o":"$F"},{"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":[74],"m":"LB","oa":4138,"o":"pad_flags"},{"a":1754,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1755,"t":"code","b":[190],"m":"TR","oa":1733,"o":"$3E"},{"a":1756,"t":"code","b":[196],"m":"TRS","oa":1069,"o":"point_18"},{"a":1757,"t":"code","b":[254],"m":"TRS","oa":1029,"o":"clear_down"},{"a":1758,"t":"code","b":[228],"m":"TRS","oa":1073,"o":"point_15"},{"a":1759,"t":"code","b":[40],"m":"LAX","x":[1761],"o":"8"},{"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":[162],"m":"TR","oa":1774,"o":"$22"},{"a":1763,"l":"alarm_screen","c":"alarm_screen: the alarm's time on the digits ($33-$35, with the colon), and unless the alarm is ringing the monkey with his arm up, lit for this drawing only (lane_turn bit 2 puts them out after it, $066E). Then AM, PM and the hours' 1 from the alarm's tens ($32).","t":"code","b":[192],"m":"TRS","oa":1024,"x":[1568,1732],"o":"take_05"},{"a":1764,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1765,"t":"code","b":[95,51],"m":"LBL","oa":4147,"o":"alarm_h1"},{"a":1767,"t":"code","b":[26],"m":"LDA","x":[1787],"o":"2"},{"a":1768,"t":"code","b":[100],"m":"INCB"},{"a":1769,"t":"code","b":[100],"m":"INCB"},{"a":1770,"t":"code","b":[22],"m":"EXCI","o":"2"},{"a":1771,"t":"code","b":[170],"m":"TR","oa":1785,"o":"$2A"},{"a":1772,"t":"code","b":[204],"m":"TRS","oa":1076,"o":"skip_if_ringing"},{"a":1773,"t":"code","b":[136],"m":"TR","oa":1776,"o":"$08"},{"a":1774,"t":"code","b":[122],"m":"SSR","x":[1762],"o":"$A"},{"a":1775,"t":"code","b":[183],"m":"TR","oa":1672,"o":"sky_empty"},{"a":1776,"t":"code","b":[12],"m":"SM","x":[1773],"o":"0"},{"a":1777,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1778,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1779,"t":"code","b":[72],"m":"LB","oa":4106,"o":"lane_turn"},{"a":1780,"t":"code","b":[14],"m":"SM","o":"2"},{"a":1781,"t":"code","b":[95,50],"m":"LBL","oa":4146,"o":"alarm_h10"},{"a":1783,"t":"code","b":[124],"m":"SSR","x":[1746],"o":"$C"},{"a":1784,"t":"code","b":[128],"m":"TR","oa":1792,"o":"am_pm"},{"a":1785,"t":"code","b":[108],"m":"DECB","x":[1771]},{"a":1786,"t":"code","b":[108],"m":"DECB"},{"a":1787,"t":"code","b":[173],"m":"TR","oa":1767,"o":"$2D"},{"a":1788,"s":"Padding: SKIPs, no operation, that nothing reaches.","t":"code","b":[0],"m":"SKIP"},{"a":1789,"t":"code","b":[0],"m":"SKIP"},{"a":1790,"t":"code","b":[0],"m":"SKIP"},{"a":1791,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1728,"o":"clock_screen"},{"a":1792,"l":"am_pm","c":"am_pm: from the hours' tens at B ($36, or $32 for the alarm): bit 3 lights PM (lcd_04 bit 1) or AM (lcd_14 bit 1), and bit 0 the hours' 1 (lcd_04 bit 0). Then sky_empty and the drawing ($0688).","t":"code","b":[103],"m":"SC","x":[1784,1855]},{"a":1793,"t":"code","b":[84],"m":"TM","o":"0"},{"a":1794,"t":"code","b":[102],"m":"RC"},{"a":1795,"t":"code","b":[87],"m":"TM","o":"3"},{"a":1796,"t":"code","b":[185],"m":"TR","oa":1807,"o":"$39"},{"a":1797,"t":"code","b":[237],"m":"TRS","oa":1063,"o":"point_14"},{"a":1798,"t":"code","b":[5],"m":"RM","x":[1808],"o":"1"},{"a":1799,"t":"code","b":[25],"m":"LDA","o":"1"},{"a":1800,"t":"code","b":[13],"m":"SM","o":"1"},{"a":1801,"t":"code","b":[244],"m":"TRS","oa":1052,"o":"point_04"},{"a":1802,"t":"code","b":[4],"m":"RM","o":"0"},{"a":1803,"t":"code","b":[82],"m":"TC"},{"a":1804,"t":"code","b":[12],"m":"SM","o":"0"},{"a":1805,"t":"code","b":[122],"m":"SSR","o":"$A"},{"a":1806,"t":"code","b":[183],"m":"TR","oa":1672,"o":"sky_empty"},{"a":1807,"t":"code","b":[244],"m":"TRS","oa":1052,"x":[1796],"o":"point_04"},{"a":1808,"t":"code","b":[159],"m":"TR","oa":1798,"o":"$1F"},{"a":1809,"l":"unblank","c":"unblank: puts each blank digit ($B) back to 0, from the hundreds. Out of a game, back to after_draw. In a game: with the bonus due, bonus_step ($071C); while the game's key is still held, the bell ($0625) and another pass; otherwise after_draw.","t":"code","b":[228],"m":"TRS","oa":1073,"x":[1654],"o":"point_15"},{"a":1810,"t":"code","b":[24],"m":"LDA","x":[1814],"o":"0"},{"a":1811,"t":"code","b":[53],"m":"ADX","o":"5"},{"a":1812,"t":"code","b":[134],"m":"TR","oa":1815,"o":"$06"},{"a":1813,"t":"code","b":[20],"m":"EXCI","o":"0"},{"a":1814,"t":"code","b":[151],"m":"TR","oa":1810,"o":"$17"},{"a":1815,"t":"code","b":[245],"m":"TRS","oa":1044,"x":[1812],"o":"skip_if_game"},{"a":1816,"t":"code","b":[133],"m":"TR","oa":1852,"o":"$05"},{"a":1817,"t":"code","b":[74],"m":"LB","oa":4138,"o":"pad_flags"},{"a":1818,"t":"code","b":[85],"m":"TM","o":"1"},{"a":1819,"t":"code","b":[140],"m":"TR","oa":1844,"o":"$0C"},{"a":1820,"l":"bonus_step","c":"bonus_step: the bonus, while pad_flags bit 1 holds the game: no step runs, only passes. On a pass when the divider's bits 11-13 read 0 (its bits 11-14 at 0 or 8, by the two ADX 8, the second skipped when the first carries), twice a second, bonus_blinks ($42) counts down by one with a short beep (tone code $B); at 0 the misses go out (lcd_18 bits 2 and 1) and the bonus ends. On the model it lasted 5.05 seconds from score 199 with a miss.","t":"code","b":[94,4],"m":"DTA"},{"a":1822,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":1823,"t":"code","b":[56],"m":"ADX","o":"8"},{"a":1824,"t":"code","b":[0],"m":"SKIP"},{"a":1825,"t":"code","b":[90],"m":"TA0"},{"a":1826,"t":"code","b":[170],"m":"TR","oa":1849,"o":"$2A"},{"a":1827,"t":"code","b":[95,66],"m":"LBL","oa":4162,"o":"bonus_blinks"},{"a":1829,"t":"code","b":[24],"m":"LDA","o":"0"},{"a":1830,"t":"code","b":[63],"m":"ADX","o":"$F"},{"a":1831,"t":"code","b":[162],"m":"TR","oa":1838,"o":"$22"},{"a":1832,"t":"code","b":[16],"m":"EXC","o":"0"},{"a":1833,"t":"code","b":[109],"m":"COMCB"},{"a":1834,"t":"code","b":[122],"m":"SSR","o":"$A"},{"a":1835,"t":"code","b":[226],"m":"TRS","oa":1710,"o":"$22"},{"a":1836,"t":"code","b":[109],"m":"COMCB"},{"a":1837,"t":"code","b":[170],"m":"TR","oa":1849,"o":"$2A"},{"a":1838,"t":"code","b":[196],"m":"TRS","oa":1069,"x":[1831],"o":"point_18"},{"a":1839,"t":"code","b":[6],"m":"RM","o":"2"},{"a":1840,"t":"code","b":[5],"m":"RM","o":"1"},{"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":[170],"m":"TR","oa":1849,"o":"$2A"},{"a":1844,"t":"code","b":[78],"m":"LB","oa":4139,"x":[1819],"o":"redraw_flags"},{"a":1845,"t":"code","b":[86],"m":"TM","o":"2"},{"a":1846,"t":"code","b":[133],"m":"TR","oa":1852,"o":"$05"},{"a":1847,"t":"code","b":[120],"m":"SSR","o":"8"},{"a":1848,"t":"code","b":[246],"m":"TRS","oa":1573,"o":"bell_swing"},{"a":1849,"t":"code","b":[109],"m":"COMCB","x":[1826,1837,1843]},{"a":1850,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":1851,"t":"code","b":[188],"m":"TR","oa":1028,"o":"$3C"},{"a":1852,"t":"code","b":[109],"m":"COMCB","x":[1816,1846]},{"a":1853,"t":"code","b":[112],"m":"SSR","o":"0"},{"a":1854,"t":"code","b":[147],"m":"TR","oa":1078,"o":"take_bit1"},{"a":1855,"s":"The step $3F of the page, which the program counter never reaches (gnw-reference, \"The program counter\").","t":"code","b":[128],"m":"TR","oa":1792,"o":"am_pm"},{"a":1856,"t":"gap","n":63680},{"a":4096,"t":"note","l":"lcd_00","c":"lcd_00 ($00): latch 7, H1. Bit 0 has no segment (7.0.0): the third place of the rotor's turn ($0053). Bits 1-3 the left lane's first three places (7.1.0, 7.2.0, 7.3.0), just below the helicopter.","note":"outside the tracked image","x":[83,89,349,353,1158,1615,1662,1699]},{"a":4097,"t":"note","l":"lcd_01","c":"lcd_01 ($01): latch 8, H1. Bits 0 and 1 the paratrooper caught in the tree, in its two swings (8.0.0, 8.1.0), bit 2 the helicopter (8.2.0), bit 3 one of the rotor's two blades (8.3.0).","note":"outside the tracked image","x":[1133]},{"a":4098,"t":"note","l":"lcd_02","c":"lcd_02 ($02): latch 1, H1, the water's lower row. Bit 0 the swimmer at the left (1.0.0), bit 1 a fin (1.1.0), bit 2 the swimmer in the middle (1.2.0), bit 3 the shark leaping (1.3.0).","note":"outside the tracked image","x":[855,1602]},{"a":4099,"t":"note","l":"lcd_03","c":"lcd_03 ($03): latch 2, H1. Bits 0 and 1 the left lane's sixth and seventh places (2.0.0, 2.1.0, the last above the boat), bit 2 the GAME A label (2.2.0), bit 3 a fin at the lower left (2.3.0).","note":"outside the tracked image","x":[1094]},{"a":4100,"t":"note","l":"lcd_04","c":"lcd_04 ($04): latch 3, H1. Bit 0 the hours' 1 (3.0.0), bit 1 PM (3.1.0), bit 2 the monkey's arm swung up to the bell (3.2.0), bit 3 the left lane's fifth place (3.3.0).","note":"outside the tracked image","x":[1104,1578]},{"a":4101,"t":"note","l":"flag_05","c":"flag_05 ($05): bit 0 the clock's colon (4.0.0, the first digit's extra segment).","note":"outside the tracked image","x":[1024]},{"a":4102,"t":"note","l":"flag_06","c":"flag_06 ($06): bit 0 the bell up (5.0.0, the second digit's extra segment): lit alone as the sign that the alarm is on (draw_prep, $0612), and with lcd_04 bit 2 as one swing of the bell while the alarm rings.","note":"outside the tracked image","x":[1276,1573,1588]},{"a":4103,"t":"note","l":"flag_07","c":"flag_07 ($07): bit 0 the left lane's fourth place (6.0.0, the third digit's extra segment). Bit 1 the first place of the shark's chain: set by a right-lane miss (the SM 1 at $018C) and every ten seconds by timekeep ($023B). Bit 2 is set when the middle lane's paratrooper is caught ($0147) or the demo's boat goes to the middle ($0079), and cleared each second of the clock: the demo's boat moves (demo_boat) only while it is clear. Bit 3 is set when a paratrooper is caught in the tree and holds him there one step more ($01E2).","note":"outside the tracked image","x":[569,811,1180]},{"a":4104,"t":"note","l":"lcd_08","c":"lcd_08 ($08): latch 0, H1. Bit 0 the swimmer at the right, the shark's last place (0.0.0), bit 1 the GAME B label (0.1.0), bits 3 and 2 the right lane's fourth and fifth places (0.3.0, 0.2.0, the last above the boat).","note":"outside the tracked image","x":[1107]},{"a":4105,"t":"note","l":"in_air","c":"in_air ($09): the number of paratroopers jumped and not yet caught or lost. A new one jumps only while it is below jump_limit ($19), and always when it is 0 ($0112).","note":"outside the tracked image","x":[275,296,472,1152,1167,1472,1661,1715]},{"a":4106,"t":"note","l":"lane_turn","c":"lane_turn ($0A): bits 1 and 0 say which lane moves at the next step: neither the left lane, bit 0 the middle, bit 1 the right ($01C0). Bit 3 is set when the buttons change and runs mode_change on the next pass ($0517).","note":"outside the tracked image","x":[259,271,448,816,832,1303,1308,1646,1659,1779]},{"a":4107,"t":"note","l":"game_flags","c":"game_flags ($0B): bit 0 a point is due (catch, $043A); bit 1 a minute has passed and the alarm is to be checked (set at $0270 and $052A, taken at $0588); bit 2 the alarm is on (flipped at $0536, tested at $0595 and $060B); bit 3 a miss's animation waits a step ($0106).","note":"outside the tracked image","x":[128,262,623,780,938,1186,1321,1333,1428,1449,1489,1545]},{"a":4112,"t":"note","l":"lcd_10","c":"lcd_10 ($10): latch 7, H2. Bits 0-3 the middle lane's first four places (7.0.1, 7.1.1, 7.2.1, 7.3.1).","note":"outside the tracked image","x":[105,762,1642,1686]},{"a":4113,"t":"note","l":"lcd_11","c":"lcd_11 ($11): latch 8, H2. Bits 2, 1 and 0 the right lane's first three places (8.2.1, 8.1.1, 8.0.1), bit 3 the rotor's other blade (8.3.1).","note":"outside the tracked image","x":[1066]},{"a":4114,"t":"note","l":"lcd_12","c":"lcd_12 ($12): latch 1, H2, the water's upper row. Bit 0 a fin at the left (1.0.1), bit 1 the splash under the middle lane (1.1.1), bit 2 a fin at the right (1.2.1), bit 3 the splash under the right lane (1.3.1).","note":"outside the tracked image","x":[1057]},{"a":4115,"t":"note","l":"lcd_13","c":"lcd_13 ($13): latch 2, H2. Bit 0 the middle lane's sixth place (2.0.1, the last above the boat), bits 2 and 1 the boat at the left and in the middle (2.2.1, 2.1.1), bit 3 the splash under the left lane (2.3.1).","note":"outside the tracked image","x":[824,1001,1008,1060]},{"a":4116,"t":"note","l":"lcd_14","c":"lcd_14 ($14): latch 3, H2. Bit 0 the monkey (3.0.1), lit while the alarm rings and in the alarm's setting (alarm_screen, for each drawing), bit 1 AM (3.1.1), bit 2 the bell swung down (3.2.1), bit 3 the middle lane's fifth place (3.3.1).","note":"outside the tracked image","x":[521,1063,1129,1584,1591]},{"a":4117,"t":"note","l":"digit_1","c":"digit_1 to digit_3 ($15-$17): the three digits. In a game the score, hundreds, tens and units; in the clock the hours' units and the minutes. 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","x":[193]},{"a":4119,"t":"note","l":"digit_3","note":"outside the tracked image","x":[133,221]},{"a":4120,"t":"note","l":"lcd_18","c":"lcd_18 ($18): latch 0, H2. Bits 2, 1 and 0 the misses, in the order they come (0.2.1, the word MISS with the first head, then 0.1.1 and 0.0.1); bit 0 is the third, and the game is over. Bit 3 the boat at the right (0.3.1).","note":"outside the tracked image","x":[540,655,819,1016,1091,1119]},{"a":4121,"t":"note","l":"jump_limit","c":"jump_limit ($19): how many paratroopers may be in the air at once, 1 to 10, set by set_wait from the score ($00C0).","note":"outside the tracked image","x":[225,1280]},{"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 a press of left or right broke into the wait, which goes on after it. Bits 0 and 1 carry the clock's demo through the three lanes' miss checks in a second ($02E6, $02EB).","note":"outside the tracked image","x":[24,58,79,527,551,742,747,1397,1496,1660]},{"a":4123,"t":"note","l":"tone_count","c":"tone_count ($1B): the tone routine's count of loops.","note":"outside the tracked image","x":[688,698,1396]},{"a":4128,"t":"note","l":"sound_flags","c":"sound_flags ($20): bit 0 the alarm's sound, bit 2 a catch's sound, bit 3 the step's click.","note":"outside the tracked image","x":[65,433,525,630,646,1184,1463,1485]},{"a":4133,"t":"note","l":"best_b","c":"best_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 count at which a held left or right repeats, when the time is set after power on.","note":"outside the tracked image","x":[919,934]},{"a":4137,"t":"note","l":"miss_due","c":"miss_due ($29): one bit a lane, set when a paratrooper reaches the lane's last place with the boat elsewhere: bit 2 the left, bit 1 the middle, bit 0 the right. At the next step the miss's animation starts ($014F, $01A2, $0183), unless a press has moved the boat under him first ($030F).","note":"outside the tracked image","x":[307,330,335,375,387,413,418,787,793,796,951,1487]},{"a":4138,"t":"note","l":"pad_flags","c":"pad_flags ($2A): bit 0 left or right is held, so a press counts once; bit 1 the bonus is due; bit 2 misses are not counted, set at power on when a key of the R3 row is held ($03D6); bit 3 the miss's first sound is still to play.","note":"outside the tracked image","x":[36,157,868,880,900,944,982,1453,1620,1753,1817,1841]},{"a":4139,"t":"note","l":"redraw_flags","c":"redraw_flags ($2B): bit 0 the screen must be drawn again; bit 1 a miss's animation runs; bit 2 a game key is held and the game starts when it is let go; bit 3 the mode changed and its screen must be set up.","note":"outside the tracked image","x":[33,256,544,628,640,846,874,946,1030,1196,1286,1336,1383,1408,1498,1510,1520,1536,1844]},{"a":4144,"t":"note","l":"mode","c":"mode ($30): 0 just after power on or ACL (every segment lit; left and right set the time), 1 the clock, 2 Game B, 4 Game A, 8 the alarm's setting.","note":"outside the tracked image","x":[112,332,384,415,428,464,517,536,546,644,704,805,896,911,1124,1140,1204,1326,1345,1373,1418]},{"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 for PM), the hours' units, the minutes' tens and units. Power on sets 12:00 PM.","note":"outside the tracked image","x":[992,1431,1781]},{"a":4147,"t":"note","l":"alarm_h1","note":"outside the tracked image","x":[617,1765]},{"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. The jump's chance reads the seconds' tens ($011D).","note":"outside the tracked image","x":[987]},{"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,1735]},{"a":4154,"t":"note","l":"time_s10","note":"outside the tracked image","x":[285,442]},{"a":4155,"t":"note","l":"time_s1","note":"outside the tracked image","x":[293,556,680,1657]},{"a":4160,"t":"note","l":"seconds_hi","c":"seconds_hi, seconds_lo ($40, $41): a count of seconds, high and low hex digit, cleared when the buttons change and when a game ends. The jump's chance adds the low digit ($011F).","note":"outside the tracked image"},{"a":4161,"t":"note","l":"seconds_lo","note":"outside the tracked image","x":[287,529,1027]},{"a":4162,"t":"note","l":"bonus_blinks","c":"bonus_blinks ($42): the bonus's count, 10 down to 0.","note":"outside the tracked image","x":[159,1623,1827]},{"a":4165,"t":"note","l":"best_a","c":"best_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 passes of the wait before each step: 11 when a mode is set up, then set_wait's value after each point.","note":"outside the tracked image","x":[43,243,1282]},{"a":4170,"t":"note","l":"delay_left","c":"delay_left ($4A): the passes of the wait still to run.","note":"outside the tracked image","x":[70]}]}