{"schema":1,"platform":"spectrum","game":"lords-of-chaos","part":"engine","title":"Lords of Chaos","build":"","symbols_sha256":"a2714cf4c115a702d82e27f983b64ca58944e6c92936c22ee2c486fc79f69713","snapshot":{"file":"work/entry.sna","sha256":"4f7595fa9409de184a0909611931e49e22b59ca7cdb808d847cb5db13962776d"},"index":[{"a":24686,"n":"frame_toggle","k":"variable","len":1,"c":true},{"a":24687,"n":"random_pointer_1","k":"variable","len":2,"c":true},{"a":24689,"n":"random_pointer_2","k":"variable","len":2,"c":true},{"a":24691,"n":"start_game","k":"routine","len":193,"c":true},{"a":24884,"n":"game_turn_loop","k":"routine","len":109,"c":true},{"a":24993,"n":"player_has_creature","k":"routine","len":34,"c":true},{"a":25027,"n":"owner_is_player","k":"routine","len":10,"c":true},{"a":25037,"n":"human_turn","k":"routine","len":93,"c":true},{"a":25130,"n":"control_type","k":"variable","len":1,"c":true},{"a":25131,"n":"read_controls","k":"routine","len":22,"c":true},{"a":25153,"n":"control_handlers","k":"table","len":6,"c":true},{"a":25159,"n":"read_sinclair","k":"routine","len":21,"c":true},{"a":25180,"n":"read_kempston","k":"routine","len":26,"c":true},{"a":25206,"n":"read_keyboard","k":"routine","len":37,"c":true},{"a":25243,"n":"move_cursor","k":"routine","len":154,"c":true},{"a":25397,"n":"restore_cursor","k":"routine","len":19,"c":true},{"a":25416,"n":"cursor_up","k":"routine","len":35,"c":true},{"a":25451,"n":"cursor_down","k":"routine","len":35,"c":true},{"a":25486,"n":"cursor_left","k":"routine","len":35,"c":true},{"a":25521,"n":"cursor_right","k":"routine","len":35,"c":true},{"a":25556,"n":"clear_screen","k":"routine","len":1,"c":true},{"a":25557,"n":"fill_screen","k":"routine","len":21,"c":true},{"a":25578,"n":"clear_info_panel","k":"routine","len":99,"c":true},{"a":25677,"n":"clear_icon_cell","k":"routine","len":23,"c":true},{"a":25700,"n":"clear_message_line","k":"routine","len":4,"c":true},{"a":25704,"n":"fill_message_line","k":"routine","len":13,"c":true},{"a":25717,"n":"blank_message_line","k":"routine","len":40,"c":true},{"a":25757,"n":"describe_cursor_square","k":"routine","len":143,"c":true},{"a":25900,"n":"describe_creature","k":"routine","len":18,"c":true},{"a":25918,"n":"fill_icon_list","k":"routine","len":91,"c":true},{"a":26009,"n":"print_square_name","k":"routine","len":235,"c":true},{"a":26244,"n":"print_owner_name","k":"routine","len":30,"c":true},{"a":26274,"n":"find_creature_at","k":"routine","len":36,"c":true},{"a":26310,"n":"find_creatures_any","k":"routine","len":4,"c":true},{"a":26314,"n":"find_others_at","k":"routine","len":3,"c":true},{"a":26317,"n":"find_creatures_at","k":"routine","len":116,"c":true},{"a":26433,"n":"list_selected_carries","k":"routine","len":5,"c":true},{"a":26438,"n":"list_found_carries","k":"routine","len":3,"c":true},{"a":26441,"n":"list_carried","k":"routine","len":90,"c":true},{"a":26531,"n":"list_objects_here","k":"routine","len":4,"c":true},{"a":26535,"n":"list_objects_at","k":"routine","len":137,"c":true},{"a":26672,"n":"clear_bars","k":"routine","len":7,"c":true},{"a":26679,"n":"clear_lower_bars","k":"routine","len":21,"c":true},{"a":26700,"n":"draw_menu_frame","k":"routine","len":22,"c":true},{"a":26722,"n":"attack_terrain","k":"routine","len":154,"c":true},{"a":26876,"n":"terrain_remains","k":"routine","len":8,"c":true},{"a":26884,"n":"select_air","k":"routine","len":27,"c":true},{"a":26911,"n":"select_ground","k":"routine","len":238,"c":true},{"a":27149,"n":"update_info_panel","k":"routine","len":42,"c":true},{"a":27191,"n":"cursor_to_step","k":"routine","len":75,"c":true},{"a":27266,"n":"show_message","k":"routine","len":36,"c":true},{"a":27302,"n":"end_move","k":"routine","len":139,"c":true},{"a":27441,"n":"select_menu","k":"routine","len":605,"c":true},{"a":28046,"n":"select_actions","k":"table","len":44,"c":true},{"a":28090,"n":"spend_action_points","k":"routine","len":8,"c":true},{"a":28098,"n":"can_fly_or_land","k":"routine","len":89,"c":true},{"a":28187,"n":"land","k":"routine","len":54,"c":true},{"a":28241,"n":"fly","k":"routine","len":59,"c":true},{"a":28300,"n":"ratio_divisor","k":"routine","len":23,"c":true},{"a":28323,"n":"scale_by_ratio","k":"routine","len":34,"c":true},{"a":28357,"n":"choose_from_list","k":"routine","len":222,"c":true},{"a":28579,"n":"draw_choice_bar","k":"routine","len":32,"c":true},{"a":28611,"n":"colour_choice_row","k":"routine","len":33,"c":true},{"a":28644,"n":"entry_address","k":"routine","len":13,"c":true},{"a":28657,"n":"drop","k":"routine","len":28,"c":true},{"a":28685,"n":"change","k":"routine","len":93,"c":true},{"a":28778,"n":"pick_up","k":"routine","len":192,"c":true},{"a":28970,"n":"unused_712A","k":"variable","len":2,"c":true},{"a":28972,"n":"carried_weight","k":"routine","len":42,"c":true},{"a":29014,"n":"find_partner","k":"routine","len":56,"c":true},{"a":29070,"n":"ride","k":"routine","len":69,"c":true},{"a":29139,"n":"rider","k":"routine","len":47,"c":true},{"a":29186,"n":"pick_target","k":"routine","len":72,"c":true},{"a":29258,"n":"distance_from_selected","k":"routine","len":3,"c":true},{"a":29261,"n":"distance","k":"routine","len":19,"c":true},{"a":29280,"n":"use","k":"routine","len":12,"c":true},{"a":29292,"n":"use_square","k":"routine","len":277,"c":true},{"a":29569,"n":"set_terrain_under","k":"routine","len":41,"c":true},{"a":29610,"n":"can_drink","k":"routine","len":38,"c":true},{"a":29648,"n":"drink","k":"routine","len":174,"c":true},{"a":29822,"n":"can_fill","k":"routine","len":26,"c":true},{"a":29848,"n":"fill","k":"routine","len":58,"c":true},{"a":29906,"n":"can_eat","k":"routine","len":19,"c":true},{"a":29925,"n":"eat","k":"routine","len":77,"c":true},{"a":30002,"n":"end_turn","k":"routine","len":37,"c":true},{"a":30039,"n":"end_turn_actions","k":"table","len":4,"c":true},{"a":30043,"n":"end_turn_yes","k":"routine","len":2,"c":true},{"a":30045,"n":"end_turn_no","k":"routine","len":3,"c":true},{"a":30048,"n":"start_of_turn","k":"routine","len":471,"c":true},{"a":30519,"n":"load_creature","k":"routine","len":30,"c":true},{"a":30549,"n":"damage_creature","k":"routine","len":302,"c":true},{"a":30851,"n":"is_flying","k":"routine","len":6,"c":true},{"a":30857,"n":"is_loose","k":"routine","len":5,"c":true},{"a":30862,"n":"terrain_under","k":"routine","len":6,"c":true},{"a":30868,"n":"entry_position","k":"routine","len":8,"c":true},{"a":30876,"n":"read_table_word","k":"routine","len":6,"c":true},{"a":30882,"n":"entry_column","k":"routine","len":6,"c":true},{"a":30888,"n":"reset_ff86","k":"routine","len":7,"c":true},{"a":30895,"n":"value_against_best_at","k":"routine","len":1,"c":true},{"a":30896,"n":"value_against_best","k":"routine","len":8,"c":true},{"a":30904,"n":"cursor_on_selected","k":"routine","len":14,"c":true},{"a":30918,"n":"carry_limit","k":"routine","len":8,"c":true},{"a":30926,"n":"selected_potion","k":"routine","len":8,"c":true},{"a":30934,"n":"damage_and_rider","k":"routine","len":23,"c":true},{"a":30957,"n":"print_number","k":"routine","len":34,"c":true},{"a":30991,"n":"print_digit","k":"routine","len":36,"c":true},{"a":31027,"n":"show_enemy_spotted","k":"routine","len":55,"c":true},{"a":31082,"n":"clear_map_things","k":"routine","len":33,"c":true},{"a":31115,"n":"show_hit","k":"routine","len":110,"c":true},{"a":31225,"n":"skip_hit","k":"variable","len":1,"c":true},{"a":31226,"n":"throw_air","k":"routine","len":7,"c":true},{"a":31233,"n":"throw_ground","k":"routine","len":39,"c":true},{"a":31272,"n":"throw_object","k":"routine","len":153,"c":true},{"a":31425,"n":"pick_throw_target","k":"routine","len":19,"c":true},{"a":31444,"n":"throw_range","k":"routine","len":21,"c":true},{"a":31465,"n":"line_of_sight","k":"routine","len":12,"c":true},{"a":31477,"n":"line_between","k":"routine","len":60,"c":true},{"a":31537,"n":"fire_air","k":"routine","len":7,"c":true},{"a":31544,"n":"fire_ground","k":"routine","len":5,"c":true},{"a":31549,"n":"fire_missile","k":"routine","len":135,"c":true},{"a":31684,"n":"maybe_set_terrain","k":"routine","len":5,"c":true},{"a":31689,"n":"set_square_terrain","k":"routine","len":24,"c":true},{"a":31713,"n":"destroy_lost_objects","k":"routine","len":58,"c":true},{"a":31771,"n":"big_map_height","k":"variable","len":1,"c":true},{"a":31772,"n":"big_map","k":"routine","len":189,"c":true},{"a":31961,"n":"big_map_terrain","k":"routine","len":39,"c":true},{"a":32000,"n":"big_map_creature","k":"routine","len":91,"c":true},{"a":32091,"n":"big_map_frame","k":"routine","len":73,"c":true},{"a":32164,"n":"set_spread_types","k":"routine","len":25,"c":true},{"a":32189,"n":"spread_magic","k":"routine","len":232,"c":true},{"a":32421,"n":"spread_to_neighbours","k":"routine","len":100,"c":true},{"a":32521,"n":"flood_area","k":"routine","len":143,"c":true},{"a":32664,"n":"step_effects","k":"routine","len":207,"c":true},{"a":32871,"n":"free_entry","k":"routine","len":8,"c":true},{"a":32879,"n":"free_entry_after_wizards","k":"routine","len":29,"c":true},{"a":32908,"n":"wizard_record","k":"routine","len":1,"c":true},{"a":32909,"n":"wizard_record_0","k":"routine","len":11,"c":true},{"a":32920,"n":"wizard_records","k":"table","len":8,"c":true},{"a":32928,"n":"spell_name","k":"routine","len":31,"c":true},{"a":32959,"n":"spell_list","k":"routine","len":175,"c":true},{"a":33134,"n":"print_spell_line","k":"routine","len":102,"c":true},{"a":33236,"n":"spell_cost","k":"routine","len":46,"c":true},{"a":33282,"n":"print_spell_page","k":"routine","len":48,"c":true},{"a":33330,"n":"choose_spell","k":"routine","len":52,"c":true},{"a":33382,"n":"cast_air","k":"routine","len":7,"c":true},{"a":33389,"n":"cast_ground","k":"routine","len":53,"c":true},{"a":33442,"n":"pay_for_spell","k":"routine","len":53,"c":true},{"a":33495,"n":"cast_spell","k":"routine","len":35,"c":true},{"a":33530,"n":"spell_routines","k":"table","len":18,"c":true},{"a":33548,"n":"free_record","k":"routine","len":20,"c":true},{"a":33568,"n":"summon_dragon","k":"routine","len":34,"c":true},{"a":33602,"n":"summon_creature","k":"routine","len":100,"c":true},{"a":33702,"n":"square_free","k":"routine","len":53,"c":true},{"a":33755,"n":"create_creature_any","k":"routine","len":8,"c":true},{"a":33763,"n":"create_creature","k":"routine","len":83,"c":true},{"a":33846,"n":"summon_display","k":"routine","len":47,"c":true},{"a":33893,"n":"brew_potion","k":"routine","len":37,"c":true},{"a":33930,"n":"brew_with","k":"routine","len":68,"c":true},{"a":33998,"n":"potion_ingredients","k":"table","len":7,"c":true},{"a":34005,"n":"add_mana","k":"routine","len":23,"c":true},{"a":34028,"n":"attack","k":"routine","len":209,"c":true},{"a":34237,"n":"strike","k":"routine","len":52,"c":true},{"a":34289,"n":"strike_ranged","k":"routine","len":20,"c":true},{"a":34309,"n":"strike_hit","k":"routine","len":89,"c":true},{"a":34398,"n":"pick_spell_target","k":"routine","len":46,"c":true},{"a":34444,"n":"draw_spell_bolt","k":"routine","len":17,"c":true},{"a":34461,"n":"area_spell","k":"routine","len":21,"c":true},{"a":34482,"n":"area_spell_at","k":"routine","len":197,"c":true},{"a":34679,"n":"draw_turn_panel","k":"routine","len":122,"c":true},{"a":34801,"n":"enchant","k":"routine","len":66,"c":true},{"a":34867,"n":"enchant_list","k":"routine","len":44,"c":true},{"a":34911,"n":"magic_bolt","k":"routine","len":7,"c":true},{"a":34918,"n":"magic_bolt_at","k":"routine","len":41,"c":true},{"a":34959,"n":"creature_at_height","k":"routine","len":28,"c":true},{"a":34987,"n":"magic_lightning","k":"routine","len":13,"c":true},{"a":35000,"n":"magic_lightning_at","k":"routine","len":162,"c":true},{"a":35162,"n":"subvert_rider","k":"variable","len":1,"c":true},{"a":35163,"n":"subvert_resistance","k":"variable","len":1,"c":true},{"a":35164,"n":"subversion","k":"routine","len":97,"c":true},{"a":35261,"n":"take_over","k":"routine","len":13,"c":true},{"a":35274,"n":"magic_resistance","k":"routine","len":10,"c":true},{"a":35284,"n":"curse","k":"routine","len":22,"c":true},{"a":35306,"n":"pick_creature_target","k":"routine","len":37,"c":true},{"a":35343,"n":"attack_radius","k":"variable","len":1,"c":true},{"a":35344,"n":"attack_type","k":"variable","len":1,"c":true},{"a":35345,"n":"attack_centre","k":"variable","len":2,"c":true},{"a":35347,"n":"magic_attack","k":"routine","len":118,"c":true},{"a":35465,"n":"magic_eye_on","k":"variable","len":1,"c":true},{"a":35466,"n":"magic_eye","k":"routine","len":87,"c":true},{"a":35553,"n":"teleport","k":"routine","len":208,"c":true},{"a":35761,"n":"jitter_coordinate","k":"routine","len":16,"c":true},{"a":35777,"n":"enchantments_wear_off","k":"routine","len":43,"c":true},{"a":35820,"n":"magic_shield","k":"routine","len":32,"c":true},{"a":35852,"n":"wizard_gone","k":"routine","len":86,"c":true},{"a":35938,"n":"entry_square","k":"routine","len":8,"c":true},{"a":35946,"n":"death_animation_frame","k":"routine","len":101,"c":true},{"a":36047,"n":"draw_death_figure","k":"routine","len":16,"c":true},{"a":36063,"n":"copy_wizard_name","k":"routine","len":27,"c":true},{"a":36090,"n":"set_up_game","k":"routine","len":163,"c":true},{"a":36253,"n":"portal_turn","k":"routine","len":54,"c":true},{"a":36307,"n":"game_over","k":"routine","len":126,"c":true},{"a":36433,"n":"wait_fire_flashing","k":"routine","len":57,"c":true},{"a":36490,"n":"print_victory_points","k":"routine","len":77,"c":true},{"a":36567,"n":"cursor_menu","k":"routine","len":185,"c":true},{"a":36752,"n":"offer_select_ground","k":"routine","len":18,"c":true},{"a":36770,"n":"offer_select_air","k":"routine","len":12,"c":true},{"a":36782,"n":"inform","k":"routine","len":15,"c":true},{"a":36797,"n":"draw_creature_panel","k":"routine","len":46,"c":true},{"a":36843,"n":"make_selected","k":"routine","len":144,"c":true},{"a":36987,"n":"centre","k":"routine","len":3,"c":true},{"a":36990,"n":"centre_on","k":"routine","len":42,"c":true},{"a":37032,"n":"list_neighbours_of_selected","k":"routine","len":3,"c":true},{"a":37035,"n":"list_neighbours","k":"routine","len":63,"c":true},{"a":37098,"n":"what_is_under_cursor","k":"routine","len":3,"c":true},{"a":37101,"n":"what_is_at","k":"routine","len":55,"c":true},{"a":37156,"n":"terrain_record_here","k":"routine","len":3,"c":true},{"a":37159,"n":"terrain_record","k":"routine","len":20,"c":true},{"a":37179,"n":"short_wait","k":"routine","len":22,"c":true},{"a":37201,"n":"next_creature","k":"routine","len":120,"c":true},{"a":37321,"n":"do_nothing","k":"routine","len":1,"c":true},{"a":37322,"n":"wait_release","k":"routine","len":17,"c":true},{"a":37339,"n":"wait_press","k":"routine","len":14,"c":true},{"a":37353,"n":"wait_fire","k":"routine","len":14,"c":true},{"a":37367,"n":"add_cursor_option","k":"routine","len":11,"c":true},{"a":37378,"n":"run_menu","k":"routine","len":96,"c":true},{"a":37474,"n":"highlight_file_option","k":"routine","len":21,"c":true},{"a":37495,"n":"file_layouts","k":"table","len":8,"c":true},{"a":37503,"n":"layout_turn_menu","k":"routine","len":10,"c":true},{"a":37513,"n":"layout_file_panel","k":"routine","len":10,"c":true},{"a":37523,"n":"layout_wizard_list","k":"routine","len":10,"c":true},{"a":37533,"n":"layout_designer","k":"routine","len":10,"c":true},{"a":37543,"n":"highlight_menu_option","k":"routine","len":14,"c":true},{"a":37557,"n":"highlight_bar","k":"routine","len":74,"c":true},{"a":37631,"n":"start_menu","k":"routine","len":22,"c":true},{"a":37653,"n":"add_menu_option","k":"routine","len":13,"c":true},{"a":37666,"n":"dispatch_menu","k":"routine","len":18,"c":true},{"a":37684,"n":"cursor_actions","k":"table","len":14,"c":true},{"a":37698,"n":"load_figures","k":"routine","len":347,"c":true},{"a":38045,"n":"object_record_of","k":"routine","len":3,"c":true},{"a":38048,"n":"object_record","k":"routine","len":23,"c":true},{"a":38071,"n":"divide","k":"routine","len":24,"c":true},{"a":38095,"n":"key_repeat_slow","k":"routine","len":12,"c":true},{"a":38107,"n":"key_repeat","k":"routine","len":53,"c":true},{"a":38160,"n":"delay_2","k":"routine","len":5,"c":true},{"a":38165,"n":"delay_20","k":"routine","len":5,"c":true},{"a":38170,"n":"delay_255","k":"routine","len":5,"c":true},{"a":38175,"n":"delay_8","k":"routine","len":5,"c":true},{"a":38180,"n":"delay_50","k":"routine","len":13,"c":true},{"a":38193,"n":"game_font","k":"table","len":392,"c":true},{"a":38585,"n":"debug_count","k":"variable","len":1,"c":true},{"a":38586,"n":"debug_probe","k":"routine","len":49,"c":true},{"a":38635,"n":"computer_turn","k":"routine","len":81,"c":true},{"a":38716,"n":"clear_plan","k":"routine","len":18,"c":true},{"a":38734,"n":"computer_move_creature","k":"routine","len":251,"c":true},{"a":38985,"n":"computer_steps","k":"variable","len":1,"c":true},{"a":38986,"n":"at_target","k":"routine","len":14,"c":true},{"a":39000,"n":"computer_maybe_land","k":"routine","len":52,"c":true},{"a":39052,"n":"computer_land","k":"routine","len":31,"c":true},{"a":39083,"n":"look_at_creature","k":"routine","len":57,"c":true},{"a":39140,"n":"computer_load_creature","k":"routine","len":64,"c":true},{"a":39204,"n":"computer_combat_figures","k":"routine","len":19,"c":true},{"a":39223,"n":"weapon_range","k":"routine","len":20,"c":true},{"a":39243,"n":"find_in_wizard_list","k":"routine","len":3,"c":true},{"a":39246,"n":"find_in_list","k":"routine","len":35,"c":true},{"a":39281,"n":"waypoint_square","k":"routine","len":14,"c":true},{"a":39295,"n":"route_address","k":"routine","len":19,"c":true},{"a":39314,"n":"computer_choose_target","k":"routine","len":123,"c":true},{"a":39437,"n":"rank_neighbours","k":"routine","len":56,"c":true},{"a":39493,"n":"sort_pass","k":"variable","len":1,"c":true},{"a":39494,"n":"sort_entry","k":"variable","len":2,"c":true},{"a":39496,"n":"sort_neighbours","k":"routine","len":88,"c":true},{"a":39584,"n":"trail_next","k":"variable","len":2,"c":true},{"a":39586,"n":"trail","k":"table","len":17,"c":true},{"a":39603,"n":"forget_trail","k":"routine","len":17,"c":true},{"a":39620,"n":"on_trail","k":"routine","len":24,"c":true},{"a":39644,"n":"remember_square","k":"routine","len":23,"c":true},{"a":39667,"n":"computer_try_steps","k":"routine","len":52,"c":true},{"a":39719,"n":"computer_step_actions","k":"table","len":16,"c":true},{"a":39735,"n":"computer_step_done","k":"routine","len":7,"c":true},{"a":39742,"n":"computer_step_end","k":"routine","len":6,"c":true},{"a":39748,"n":"computer_step_attack","k":"routine","len":29,"c":true},{"a":39777,"n":"computer_decide_attack","k":"routine","len":63,"c":true},{"a":39840,"n":"computer_step_move","k":"routine","len":43,"c":true},{"a":39883,"n":"computer_step_skip","k":"routine","len":3,"c":true},{"a":39886,"n":"computer_step_blocked","k":"routine","len":100,"c":true},{"a":39986,"n":"computer_take_object","k":"routine","len":90,"c":true},{"a":40076,"n":"note_enemy","k":"routine","len":57,"c":true},{"a":40133,"n":"computer_shoot","k":"routine","len":232,"c":true},{"a":40365,"n":"computer_find_prey","k":"routine","len":141,"c":true},{"a":40506,"n":"computer_take_off","k":"routine","len":67,"c":true},{"a":40573,"n":"computer_flee","k":"routine","len":420,"c":true},{"a":40993,"n":"computer_seek_object","k":"routine","len":207,"c":true},{"a":41200,"n":"computer_pick_up","k":"routine","len":166,"c":true},{"a":41366,"n":"computer_drink","k":"routine","len":87,"c":true},{"a":41453,"n":"computer_open_chest","k":"routine","len":62,"c":true},{"a":41515,"n":"computer_choose_weapon","k":"routine","len":78,"c":true},{"a":41593,"n":"computer_choose_vial","k":"routine","len":131,"c":true},{"a":41724,"n":"computer_eat","k":"routine","len":134,"c":true},{"a":41858,"n":"computer_cast","k":"routine","len":133,"c":true},{"a":41991,"n":"computer_try_spell","k":"routine","len":75,"c":true},{"a":42066,"n":"scenario_spell","k":"routine","len":13,"c":true},{"a":42079,"n":"no_scenario_spell","k":"routine","len":1,"c":true},{"a":42080,"n":"computer_summon","k":"routine","len":96,"c":true},{"a":42176,"n":"computer_spell_done","k":"routine","len":58,"c":true},{"a":42234,"n":"add_to_wizard_list","k":"routine","len":195,"c":true},{"a":42429,"n":"computer_deliver","k":"routine","len":135,"c":true},{"a":42564,"n":"computer_brew","k":"routine","len":154,"c":true},{"a":42718,"n":"carries_type","k":"routine","len":11,"c":true},{"a":42729,"n":"lies_here","k":"routine","len":23,"c":true},{"a":42752,"n":"release_group","k":"routine","len":22,"c":true},{"a":42774,"n":"trip_square","k":"routine","len":30,"c":true},{"a":42804,"n":"random_below_a","k":"routine","len":3,"c":true},{"a":42807,"n":"random_below","k":"routine","len":39,"c":true},{"a":42846,"n":"draw_block_at","k":"routine","len":72,"c":true},{"a":42918,"n":"block_lines","k":"table","len":6,"c":true},{"a":42924,"n":"block_line","k":"variable","len":2,"c":true},{"a":42926,"n":"block_screen","k":"variable","len":2,"c":true},{"a":42928,"n":"block_attr","k":"variable","len":2,"c":true},{"a":42930,"n":"block_chars","k":"variable","len":2,"c":true},{"a":42932,"n":"block_colours","k":"variable","len":2,"c":true},{"a":42934,"n":"draw_block","k":"routine","len":141,"c":true},{"a":43075,"n":"draw_thing_at","k":"routine","len":7,"c":true},{"a":43082,"n":"thing_graphic","k":"routine","len":47,"c":true},{"a":43129,"n":"interrupt","k":"routine","len":24,"c":true},{"a":43153,"n":"interrupt_work","k":"routine","len":164,"c":true},{"a":43317,"n":"unused_A935","k":"variable","len":1,"c":true},{"a":43318,"n":"next_frame","k":"routine","len":22,"c":true},{"a":43340,"n":"draw_map","k":"routine","len":273,"c":true},{"a":43613,"n":"map_address_window","k":"routine","len":5,"c":true},{"a":43618,"n":"map_address_cursor","k":"routine","len":5,"c":true},{"a":43623,"n":"map_address_selected","k":"routine","len":3,"c":true},{"a":43626,"n":"map_address","k":"routine","len":25,"c":true},{"a":43651,"n":"blink_cursor","k":"routine","len":28,"c":true},{"a":43679,"n":"redraw_two_pictures","k":"routine","len":6,"c":true},{"a":43685,"n":"redraw_pictures","k":"routine","len":10,"c":true},{"a":43695,"n":"flash_icons","k":"routine","len":37,"c":true},{"a":43732,"n":"flash_menu_bar","k":"routine","len":26,"c":true},{"a":43758,"n":"draw_thing_list","k":"routine","len":32,"c":true},{"a":43790,"n":"slide_bars","k":"routine","len":73,"c":true},{"a":43863,"n":"print_panel_text","k":"routine","len":28,"c":true},{"a":43891,"n":"print_text","k":"routine","len":13,"c":true},{"a":43904,"n":"print_text_big","k":"routine","len":5,"c":true},{"a":43909,"n":"print_scenario_text","k":"routine","len":23,"c":true},{"a":43932,"n":"print_message","k":"routine","len":65,"c":true},{"a":43997,"n":"end_of_word","k":"routine","len":23,"c":true},{"a":44020,"n":"find_entry","k":"routine","len":11,"c":true},{"a":44031,"n":"text_control","k":"routine","len":84,"c":true},{"a":44115,"n":"print_char","k":"routine","len":29,"c":true},{"a":44144,"n":"pixel_line_address","k":"routine","len":23,"c":true},{"a":44167,"n":"bar_edge","k":"routine","len":9,"c":true},{"a":44176,"n":"bar_top","k":"routine","len":9,"c":true},{"a":44185,"n":"bar_fill_line","k":"routine","len":13,"c":true},{"a":44198,"n":"draw_bar_outlines","k":"routine","len":35,"c":true},{"a":44233,"n":"plot","k":"routine","len":84,"c":true},{"a":44317,"n":"draw_shape","k":"routine","len":49,"c":true},{"a":44366,"n":"shapes","k":"table","len":4,"c":true},{"a":44370,"n":"shape_small","k":"table","len":11,"c":true},{"a":44381,"n":"shape_large","k":"table","len":27,"c":true},{"a":44408,"n":"tail_next","k":"variable","len":2,"c":true},{"a":44410,"n":"clear_tail","k":"routine","len":23,"c":true},{"a":44433,"n":"missile_step","k":"routine","len":64,"c":true},{"a":44497,"n":"wipe_tail","k":"routine","len":49,"c":true},{"a":44546,"n":"draw_missile","k":"routine","len":192,"c":true},{"a":44738,"n":"draw_hit","k":"routine","len":69,"c":true},{"a":44807,"n":"scroll_down","k":"routine","len":24,"c":true},{"a":44831,"n":"scroll_up","k":"routine","len":21,"c":true},{"a":44852,"n":"scroll_right","k":"routine","len":24,"c":true},{"a":44876,"n":"scroll_left","k":"routine","len":21,"c":true},{"a":44897,"n":"screen_rows","k":"table","len":48,"c":true},{"a":44945,"n":"print_char_small","k":"routine","len":81,"c":true},{"a":45026,"n":"print_char_big","k":"routine","len":99,"c":true},{"a":45125,"n":"line_setup","k":"routine","len":132,"c":true},{"a":45257,"n":"line_step_pixels","k":"routine","len":7,"c":true},{"a":45264,"n":"line_step","k":"routine","len":108,"c":true},{"a":45372,"n":"wrap_coordinate","k":"routine","len":12,"c":true},{"a":45384,"n":"update_view","k":"routine","len":94,"c":true},{"a":45478,"n":"work_out_sight","k":"routine","len":218,"c":true},{"a":45696,"n":"see_square","k":"routine","len":104,"c":true},{"a":45800,"n":"see_entry","k":"routine","len":241,"c":true},{"a":46041,"n":"count_enemy","k":"routine","len":40,"c":true},{"a":46081,"n":"unused_trace_20","k":"routine","len":7,"c":true},{"a":46088,"n":"unused_trace_40","k":"routine","len":7,"c":true},{"a":46095,"n":"trace_line_air","k":"routine","len":7,"c":true},{"a":46102,"n":"trace_line_ground","k":"routine","len":5,"c":true},{"a":46107,"n":"trace_line","k":"routine","len":63,"c":true},{"a":46170,"n":"word_gap","k":"variable","len":1,"c":true},{"a":46171,"n":"blink_count","k":"variable","len":1,"c":true},{"a":46172,"n":"pictures","k":"table","len":24,"c":true},{"a":46196,"n":"list_pictures","k":"table","len":30,"c":true},{"a":46226,"n":"flash_next","k":"variable","len":2,"c":true},{"a":46228,"n":"flash_colours","k":"table","len":9,"c":true},{"a":46237,"n":"neighbour_steps","k":"table","len":16,"c":true},{"a":46253,"n":"blob_dieback","k":"table","len":8,"c":true},{"a":46261,"n":"fire_dieback","k":"table","len":9,"c":true},{"a":46270,"n":"spell_base_costs","k":"table","len":45,"c":true},{"a":46315,"n":"move_selected","k":"routine","len":105,"c":true},{"a":46420,"n":"set_entry_square","k":"routine","len":13,"c":true},{"a":46433,"n":"move_carried","k":"routine","len":46,"c":true},{"a":46479,"n":"creature_record_of","k":"routine","len":3,"c":true},{"a":46482,"n":"creature_record","k":"routine","len":21,"c":true},{"a":46503,"n":"type_record_of","k":"routine","len":3,"c":true},{"a":46506,"n":"type_record","k":"routine","len":40,"c":true},{"a":46546,"n":"keep_figures","k":"routine","len":37,"c":true},{"a":46583,"n":"set_missile","k":"routine","len":23,"c":true},{"a":46606,"n":"missile_styles","k":"table","len":56,"c":true},{"a":46662,"n":"charset_0","k":"table","len":1024,"c":true},{"a":47686,"n":"charset_0_continued","k":"table","len":1014,"c":true},{"a":48700,"n":"charset_1","k":"table","len":452,"c":true},{"a":49152,"n":"charset_1_middle","k":"table","len":1024,"c":true},{"a":50176,"n":"charset_1_end","k":"table","len":484,"c":true},{"a":50660,"n":"tape_error","k":"variable","len":1,"c":true},{"a":50661,"n":"tape_load","k":"routine","len":4,"c":true},{"a":50665,"n":"tape_save","k":"routine","len":1,"c":true},{"a":50666,"n":"tape_transfer","k":"routine","len":40,"c":true},{"a":50706,"n":"call_sa_bytes","k":"routine","len":7,"c":true},{"a":50713,"n":"call_ld_bytes","k":"routine","len":14,"c":true},{"a":50727,"n":"tape_check","k":"routine","len":15,"c":true},{"a":50742,"n":"tape_loading","k":"variable","len":1,"c":true},{"a":50743,"n":"file_name","k":"string","len":12,"c":true},{"a":50755,"n":"file_name_end","k":"variable","len":1,"c":true},{"a":50756,"n":"set_extension","k":"routine","len":9,"c":true},{"a":50765,"n":"ext_wizard","k":"string","len":3,"c":true},{"a":50768,"n":"ext_saved_game","k":"string","len":3,"c":true},{"a":50771,"n":"ext_scenario","k":"string","len":3,"c":true},{"a":50774,"n":"designer_name","k":"string","len":12,"c":true},{"a":50786,"n":"menu_choice","k":"variable","len":1,"c":true},{"a":50787,"n":"panel_value_1","k":"variable","len":1,"c":true},{"a":50788,"n":"panel_value_2","k":"variable","len":1,"c":true},{"a":50789,"n":"save_header","k":"routine","len":16,"c":true},{"a":50805,"n":"find_file","k":"routine","len":61,"c":true},{"a":50866,"n":"found_name","k":"string","len":12,"c":true},{"a":50878,"n":"save_wizard","k":"routine","len":35,"c":true},{"a":50913,"n":"load_wizard","k":"routine","len":39,"c":true},{"a":50952,"n":"load_scenario","k":"routine","len":32,"c":true},{"a":50984,"n":"load_designer","k":"routine","len":37,"c":true},{"a":51021,"n":"save_game","k":"routine","len":40,"c":true},{"a":51061,"n":"load_game","k":"routine","len":59,"c":true},{"a":51120,"n":"sounds","k":"table","len":128,"c":true},{"a":51248,"n":"sound_steps","k":"variable","len":1,"c":true},{"a":51249,"n":"sound_repeats","k":"variable","len":1,"c":true},{"a":51250,"n":"sound_notes","k":"table","len":6,"c":true},{"a":51256,"n":"speaker","k":"variable","len":1,"c":true},{"a":51257,"n":"sound_running","k":"variable","len":1,"c":true},{"a":51258,"n":"set_sound","k":"routine","len":19,"c":true},{"a":51277,"n":"sound_0","k":"routine","len":1,"c":true},{"a":51278,"n":"start_sound","k":"routine","len":8,"c":true},{"a":51286,"n":"play_sound","k":"routine","len":61,"c":true},{"a":51347,"n":"print_tape_status","k":"routine","len":39,"c":true},{"a":51386,"n":"tape_messages","k":"table","len":9,"c":true},{"a":51395,"n":"tape_words","k":"string","len":33,"c":true},{"a":51428,"n":"end_of_turn_menu","k":"routine","len":93,"c":true},{"a":51521,"n":"random_wizard","k":"routine","len":50,"c":true},{"a":51571,"n":"random_wizard_figures","k":"table","len":23,"c":true},{"a":51594,"n":"draw_frame","k":"routine","len":161,"c":true},{"a":51755,"n":"classify_step","k":"routine","len":257,"c":true},{"a":52012,"n":"run_file_menu","k":"routine","len":63,"c":true},{"a":52075,"n":"draw_file_panel","k":"routine","len":76,"c":true},{"a":52151,"n":"list_wizards","k":"routine","len":82,"c":true},{"a":52233,"n":"clear_name_lines","k":"routine","len":48,"c":true},{"a":52281,"n":"file_panel","k":"routine","len":56,"c":true},{"a":52337,"n":"file_action","k":"routine","len":11,"c":true},{"a":52348,"n":"file_actions","k":"table","len":12,"c":true},{"a":52360,"n":"load_wizard_menu","k":"routine","len":53,"c":true},{"a":52413,"n":"save_wizard_menu","k":"routine","len":125,"c":true},{"a":52538,"n":"ask_file_name","k":"routine","len":124,"c":true},{"a":52662,"n":"show_file_name","k":"routine","len":5,"c":true},{"a":52667,"n":"show_name","k":"routine","len":30,"c":true},{"a":52736,"n":"panel_messages","k":"table","len":87,"c":true},{"a":52823,"n":"panel_words","k":"table","len":147,"c":true},{"a":52970,"n":"wizard_1","k":"table","len":70,"c":true},{"a":53040,"n":"wizard_2","k":"table","len":70,"c":true},{"a":53110,"n":"wizard_3","k":"table","len":70,"c":true},{"a":53180,"n":"wizard_4","k":"table","len":70,"c":true},{"a":53250,"n":"wizard_list_end","k":"table","len":1024,"c":true}],"records":[{"a":0,"t":"gap","n":24686},{"a":24686,"l":"frame_toggle","c":"Flips between 0 and 1 on every interrupt; the interrupt handler does its main work when it flips to 0, so on every second frame.","t":"byte","b":[0],"x":[43131,43136]},{"a":24687,"l":"random_pointer_1","c":"The first of the two pointers random_below walks through memory, one byte further on each call.","t":"word","b":[50,209],"d":[53554],"x":[42810,42814]},{"a":24689,"l":"random_pointer_2","c":"The second pointer random_below walks through memory.","t":"word","b":[192,93],"d":[24000],"x":[42822,42826]},{"a":24691,"l":"start_game","c":"PLAY GAME on the scenario's file panel. Returns at once if no scenario is loaded ($D03F is 0). Otherwise moves the stack to $FFF3, clears the screen and, unless the scenario is for one player ($D048 not 0), asks HOW MANY PLAYERS? (message $E2) and reads the keyboard through the ROM's KEY-SCAN ($028E) until a key from 1 to 4 is pressed, which it prints and keeps in $D067. For each of the four wizard records it clears byte 69, makes a wizard at random if the record has no name (byte 1 is 0, $C941), and sets every spell's current level (low four bits of the 45 spell bytes from byte 2) to its full level (high four bits). In a one-player game (one player chosen, or a one-player scenario) the second player is the computer ($D064 is set and the player count becomes 2): a designed first wizard must have a level equal to the scenario's number or the game stops with an error ($CC39), and the scenario's own wizard, the 70 bytes at $D082, becomes wizard 2. Then runs the scenario's first hook ($D01B) and its start-up routine at $FE03, sets up the map's creatures ($8CFA), fills $FE00-$FF00 with $FF for the interrupt table and runs on into the turn loop.","t":"code","b":[58,63,208],"m":"ld","oa":53311,"o":"a,($D03F)"},{"a":24694,"t":"code","b":[183],"m":"or","o":"a"},{"a":24695,"t":"code","b":[200],"m":"ret","o":"z"},{"a":24696,"t":"code","b":[49,243,255],"m":"ld","o":"sp,$FFF3"},{"a":24699,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":24702,"t":"code","b":[175],"m":"xor","o":"a"},{"a":24703,"t":"code","b":[50,100,208],"m":"ld","oa":53348,"o":"($D064),a"},{"a":24706,"t":"code","b":[50,105,208],"m":"ld","oa":53353,"o":"($D069),a"},{"a":24709,"t":"code","b":[60],"m":"inc","o":"a"},{"a":24710,"t":"code","b":[50,17,91],"m":"ld","oa":23313,"o":"($5B11),a"},{"a":24713,"t":"code","b":[58,72,208],"m":"ld","oa":53320,"o":"a,($D048)"},{"a":24716,"t":"code","b":[183],"m":"or","o":"a"},{"a":24717,"t":"code","b":[32,40],"m":"jr","oa":24759,"o":"nz,$60B7"},{"a":24719,"t":"code","b":[62,226],"m":"ld","o":"a,$E2"},{"a":24721,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":24724,"c":"KEY-SCAN in the ROM: E is the key's code, which the table at $CDD9 turns into a character.","t":"code","b":[205,142,2],"m":"call","oa":654,"o":"$028E","x":[24736,24740]},{"a":24727,"t":"code","b":[33,217,205],"m":"ld","o":"hl,$CDD9"},{"a":24730,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":24732,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24733,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":24734,"t":"code","b":[254,49],"m":"cp","o":"$31"},{"a":24736,"t":"code","b":[56,242],"m":"jr","oa":24724,"o":"c,$6094"},{"a":24738,"t":"code","b":[254,53],"m":"cp","o":"$35"},{"a":24740,"t":"code","b":[48,238],"m":"jr","oa":24724,"o":"nc,$6094"},{"a":24742,"t":"code","b":[214,48],"m":"sub","o":"$30"},{"a":24744,"t":"code","b":[50,103,208],"m":"ld","oa":53351,"o":"($D067),a"},{"a":24747,"t":"code","b":[33,10,24],"m":"ld","o":"hl,$180A"},{"a":24750,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":24753,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number"},{"a":24756,"t":"code","b":[205,77,200],"m":"call","oa":51277,"o":"sound_0"},{"a":24759,"t":"code","b":[6,4],"m":"ld","o":"b,$04","x":[24717]},{"a":24761,"t":"code","b":[197],"m":"push","o":"bc","x":[24811]},{"a":24762,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":24765,"t":"code","b":[205,140,128],"m":"call","oa":32908,"o":"wizard_record"},{"a":24768,"t":"code","b":[34,4,91],"m":"ld","oa":23300,"o":"($5B04),hl"},{"a":24771,"t":"code","b":[221,42,4,91],"m":"ld","oa":23300,"o":"ix,($5B04)"},{"a":24775,"t":"code","b":[221,54,69,0],"m":"ld","o":"(ix+$45),$00"},{"a":24779,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":24782,"t":"code","b":[183],"m":"or","o":"a"},{"a":24783,"t":"code","b":[204,65,201],"m":"call","oa":51521,"o":"z,random_wizard"},{"a":24786,"t":"code","b":[42,4,91],"m":"ld","oa":23300,"o":"hl,($5B04)"},{"a":24789,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24790,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24791,"t":"code","b":[6,45],"m":"ld","o":"b,$2D"},{"a":24793,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[24804]},{"a":24794,"t":"code","b":[230,240],"m":"and","o":"$F0"},{"a":24796,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":24797,"t":"code","b":[7],"m":"rlca"},{"a":24798,"t":"code","b":[7],"m":"rlca"},{"a":24799,"t":"code","b":[7],"m":"rlca"},{"a":24800,"t":"code","b":[7],"m":"rlca"},{"a":24801,"t":"code","b":[177],"m":"or","o":"c"},{"a":24802,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24803,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24804,"t":"code","b":[16,243],"m":"djnz","oa":24793,"o":"$60D9"},{"a":24806,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":24807,"t":"code","b":[33,17,91],"m":"ld","o":"hl,$5B11"},{"a":24810,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":24811,"t":"code","b":[16,204],"m":"djnz","oa":24761,"o":"$60B9"},{"a":24813,"t":"code","b":[58,72,208],"m":"ld","oa":53320,"o":"a,($D048)"},{"a":24816,"t":"code","b":[183],"m":"or","o":"a"},{"a":24817,"t":"code","b":[32,7],"m":"jr","oa":24826,"o":"nz,$60FA"},{"a":24819,"t":"code","b":[58,103,208],"m":"ld","oa":53351,"o":"a,($D067)"},{"a":24822,"t":"code","b":[254,1],"m":"cp","o":"$01"},{"a":24824,"t":"code","b":[32,36],"m":"jr","oa":24862,"o":"nz,$611E"},{"a":24826,"t":"code","b":[50,100,208],"m":"ld","oa":53348,"o":"($D064),a","x":[24817]},{"a":24829,"t":"code","b":[60],"m":"inc","o":"a"},{"a":24830,"t":"code","b":[50,103,208],"m":"ld","oa":53351,"o":"($D067),a"},{"a":24833,"t":"code","b":[58,235,206],"m":"ld","oa":52971,"o":"a,($CEEB)"},{"a":24836,"t":"code","b":[183],"m":"or","o":"a"},{"a":24837,"t":"code","b":[40,7],"m":"jr","oa":24846,"o":"z,$610E"},{"a":24839,"t":"code","b":[33,63,208],"m":"ld","o":"hl,$D03F"},{"a":24842,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":24843,"t":"code","b":[194,57,204],"m":"jp","oa":52281,"o":"nz,file_panel"},{"a":24846,"t":"code","b":[33,130,208],"m":"ld","o":"hl,$D082","x":[24837]},{"a":24849,"t":"code","b":[17,48,207],"m":"ld","o":"de,$CF30"},{"a":24852,"t":"code","b":[1,70,0],"m":"ld","o":"bc,$0046"},{"a":24855,"t":"code","b":[237,176],"m":"ldir"},{"a":24857,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":24859,"t":"code","b":[50,17,91],"m":"ld","oa":23313,"o":"($5B11),a"},{"a":24862,"t":"code","b":[205,27,208],"m":"call","oa":53275,"o":"$D01B","x":[24824]},{"a":24865,"t":"code","b":[205,3,254],"m":"call","oa":65027,"o":"$FE03"},{"a":24868,"t":"code","b":[205,250,140],"m":"call","oa":36090,"o":"set_up_game"},{"a":24871,"t":"code","b":[33,0,254],"m":"ld","o":"hl,$FE00"},{"a":24874,"t":"code","b":[17,1,254],"m":"ld","o":"de,$FE01"},{"a":24877,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":24879,"t":"code","b":[1,0,1],"m":"ld","o":"bc,$0100"},{"a":24882,"t":"code","b":[237,176],"m":"ldir"},{"a":24884,"l":"game_turn_loop","c":"The game's turn loop, entered at the start and after every game turn. Puts the stack at $FFF3 and the interrupts in mode 2 with I = $FE (the vector table at $FE00), then runs the independent creatures' turn (player 0) and, for each player from 1 to the player count ($D067), that player's turn: a player with no creature left is skipped; player 2 in a game against the computer ($D064) plays through the computer's turn ($96EB); a human player through $61CD. After each turn the screen is cleared and the per-turn upkeep runs ($796A, $7DBD, $7BE1). When every player has had a turn the turn number at $D065 goes up and the end of the game turn is checked ($C8E4).","t":"code","b":[49,243,255],"m":"ld","o":"sp,$FFF3","x":[24991,51117,51474]},{"a":24887,"t":"code","b":[62,254],"m":"ld","o":"a,$FE"},{"a":24889,"t":"code","b":[237,71],"m":"ld","o":"i,a"},{"a":24891,"t":"code","b":[237,94],"m":"im","o":"2"},{"a":24893,"t":"code","b":[175],"m":"xor","o":"a"},{"a":24894,"t":"code","b":[50,17,91],"m":"ld","oa":23313,"o":"($5B11),a"},{"a":24897,"t":"code","b":[205,96,117],"m":"call","oa":30048,"o":"start_of_turn"},{"a":24900,"t":"code","b":[205,235,150],"m":"call","oa":38635,"o":"computer_turn"},{"a":24903,"t":"code","b":[205,106,121],"m":"call","oa":31082,"o":"clear_map_things"},{"a":24906,"t":"code","b":[205,157,141],"m":"call","oa":36253,"o":"portal_turn"},{"a":24909,"t":"code","b":[205,189,125],"m":"call","oa":32189,"o":"spread_magic"},{"a":24912,"t":"code","b":[205,225,123],"m":"call","oa":31713,"o":"destroy_lost_objects"},{"a":24915,"t":"code","b":[205,193,139],"m":"call","oa":35777,"o":"enchantments_wear_off"},{"a":24918,"t":"code","b":[33,17,91],"m":"ld","o":"hl,$5B11","x":[24979]},{"a":24921,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":24922,"t":"code","b":[205,161,97],"m":"call","oa":24993,"o":"player_has_creature"},{"a":24925,"t":"code","b":[32,32],"m":"jr","oa":24959,"o":"nz,$617F"},{"a":24927,"t":"code","b":[205,96,117],"m":"call","oa":30048,"o":"start_of_turn"},{"a":24930,"t":"code","b":[205,161,97],"m":"call","oa":24993,"o":"player_has_creature"},{"a":24933,"t":"code","b":[32,24],"m":"jr","oa":24959,"o":"nz,$617F"},{"a":24935,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":24938,"t":"code","b":[254,2],"m":"cp","o":"$02"},{"a":24940,"t":"code","b":[32,14],"m":"jr","oa":24956,"o":"nz,$617C"},{"a":24942,"t":"code","b":[58,100,208],"m":"ld","oa":53348,"o":"a,($D064)"},{"a":24945,"t":"code","b":[183],"m":"or","o":"a"},{"a":24946,"t":"code","b":[40,8],"m":"jr","oa":24956,"o":"z,$617C"},{"a":24948,"t":"code","b":[205,235,150],"m":"call","oa":38635,"o":"computer_turn"},{"a":24951,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":24954,"t":"code","b":[24,3],"m":"jr","oa":24959,"o":"$617F"},{"a":24956,"t":"code","b":[205,205,97],"m":"call","oa":25037,"o":"human_turn","x":[24940,24946]},{"a":24959,"t":"code","b":[243],"m":"di","x":[24925,24933,24954]},{"a":24960,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":24963,"t":"code","b":[205,106,121],"m":"call","oa":31082,"o":"clear_map_things"},{"a":24966,"t":"code","b":[205,189,125],"m":"call","oa":32189,"o":"spread_magic"},{"a":24969,"t":"code","b":[205,225,123],"m":"call","oa":31713,"o":"destroy_lost_objects"},{"a":24972,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":24975,"t":"code","b":[33,103,208],"m":"ld","o":"hl,$D067"},{"a":24978,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":24979,"t":"code","b":[32,193],"m":"jr","oa":24918,"o":"nz,$6156"},{"a":24981,"t":"code","b":[58,101,208],"m":"ld","oa":53349,"o":"a,($D065)"},{"a":24984,"t":"code","b":[60],"m":"inc","o":"a"},{"a":24985,"t":"code","b":[50,101,208],"m":"ld","oa":53349,"o":"($D065),a"},{"a":24988,"t":"code","b":[205,228,200],"m":"call","oa":51428,"o":"end_of_turn_menu"},{"a":24991,"t":"code","b":[24,147],"m":"jr","oa":24884,"o":"game_turn_loop"},{"a":24993,"l":"player_has_creature","c":"Looks through the 145 entries of the object table at $5B5A for a creature (type $8D or more) whose owner, in its creature record ($B58F), is the current player ($5B11). Returns Z set when it finds one, Z clear when the player has none.","t":"code","b":[6,145],"m":"ld","o":"b,$91","x":[24922,24930]},{"a":24995,"t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A"},{"a":24999,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":25002,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)","x":[25021]},{"a":25005,"t":"code","b":[60],"m":"inc","o":"a"},{"a":25006,"t":"code","b":[40,11],"m":"jr","oa":25019,"o":"z,$61BB"},{"a":25008,"t":"code","b":[254,141],"m":"cp","o":"$8D"},{"a":25010,"t":"code","b":[56,7],"m":"jr","oa":25019,"o":"c,$61BB"},{"a":25012,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":25015,"t":"code","b":[205,195,97],"m":"call","oa":25027,"o":"owner_is_player"},{"a":25018,"t":"code","b":[200],"m":"ret","o":"z"},{"a":25019,"t":"code","b":[221,25],"m":"add","o":"ix,de","x":[25006,25010]},{"a":25021,"t":"code","b":[16,235],"m":"djnz","oa":25002,"o":"$61AA"},{"a":25023,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25025,"t":"code","b":[183],"m":"or","o":"a"},{"a":25026,"t":"code","b":[201],"m":"ret"},{"a":25027,"l":"owner_is_player","c":"Compares the owner (low three bits of byte 4) of the creature record at IY with the current player, $5B11: Z set when the creature is the player's.","t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)","x":[25015,25956,30111,36612,36646,37250,38685,45826,45991,51828]},{"a":25030,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":25032,"t":"code","b":[33,17,91],"m":"ld","o":"hl,$5B11"},{"a":25035,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":25036,"t":"code","b":[201],"m":"ret"},{"a":25037,"l":"human_turn","c":"A human player's turn. Sets the interrupt's work flags ($D0DF = 3), shows the turn panel ($9151) and the play screen ($684C, message 2), then loops: reads the controls, opens the cursor menu when fire is pressed ($8ED7), moves the cursor ($629B). While the cursor moves the information display is cleared ($63EA, $913B, flag $D0D7); once it stops, the square under the cursor is described again ($649D, $653E, $6599). The loop ends only when a menu option leaves it.","t":"code","b":[62,3],"m":"ld","o":"a,$03","x":[24956]},{"a":25039,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":25042,"t":"code","b":[251],"m":"ei"},{"a":25043,"t":"code","b":[205,168,120],"m":"call","oa":30888,"o":"reset_ff86"},{"a":25046,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25047,"t":"code","b":[50,96,255],"m":"ld","oa":65376,"o":"($FF60),a"},{"a":25050,"t":"code","b":[205,81,145],"m":"call","oa":37201,"o":"next_creature"},{"a":25053,"t":"code","b":[205,76,104],"m":"call","oa":26700,"o":"draw_menu_frame"},{"a":25056,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":25058,"t":"code","b":[205,87,171],"m":"call","oa":43863,"o":"print_panel_text"},{"a":25061,"t":"code","b":[251],"m":"ei"},{"a":25062,"t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls","x":[25085,25100,25106,25128]},{"a":25065,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":25068,"t":"code","b":[15],"m":"rrca"},{"a":25069,"t":"code","b":[212,215,142],"m":"call","oa":36567,"o":"nc,cursor_menu"},{"a":25072,"t":"code","b":[205,155,98],"m":"call","oa":25243,"o":"move_cursor"},{"a":25075,"t":"code","b":[58,216,208],"m":"ld","oa":53464,"o":"a,($D0D8)"},{"a":25078,"t":"code","b":[183],"m":"or","o":"a"},{"a":25079,"t":"code","b":[40,21],"m":"jr","oa":25102,"o":"z,$620E"},{"a":25081,"t":"code","b":[58,215,208],"m":"ld","oa":53463,"o":"a,($D0D7)"},{"a":25084,"t":"code","b":[183],"m":"or","o":"a"},{"a":25085,"t":"code","b":[32,231],"m":"jr","oa":25062,"o":"nz,$61E6"},{"a":25087,"t":"code","b":[243],"m":"di"},{"a":25088,"t":"code","b":[205,234,99],"m":"call","oa":25578,"o":"clear_info_panel"},{"a":25091,"t":"code","b":[251],"m":"ei"},{"a":25092,"t":"code","b":[205,59,145],"m":"call","oa":37179,"o":"short_wait"},{"a":25095,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25097,"t":"code","b":[50,215,208],"m":"ld","oa":53463,"o":"($D0D7),a"},{"a":25100,"t":"code","b":[24,216],"m":"jr","oa":25062,"o":"$61E6"},{"a":25102,"t":"code","b":[58,215,208],"m":"ld","oa":53463,"o":"a,($D0D7)","x":[25079]},{"a":25105,"t":"code","b":[183],"m":"or","o":"a"},{"a":25106,"t":"code","b":[40,210],"m":"jr","oa":25062,"o":"z,$61E6"},{"a":25108,"t":"code","b":[243],"m":"di"},{"a":25109,"t":"code","b":[205,157,100],"m":"call","oa":25757,"o":"describe_cursor_square"},{"a":25112,"t":"code","b":[205,62,101],"m":"call","oa":25918,"o":"fill_icon_list"},{"a":25115,"t":"code","b":[205,153,101],"m":"call","oa":26009,"o":"print_square_name"},{"a":25118,"t":"code","b":[251],"m":"ei"},{"a":25119,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25120,"t":"code","b":[50,215,208],"m":"ld","oa":53463,"o":"($D0D7),a"},{"a":25123,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":25125,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":25128,"t":"code","b":[24,188],"m":"jr","oa":25062,"o":"$61E6"},{"a":25130,"l":"control_type","c":"The controls chosen at SELECT CONTROLS: 0 keyboard, 1 Kempston joystick, 2 Sinclair joystick. An index into control_handlers.","t":"byte","b":[0],"x":[25136]},{"a":25131,"l":"read_controls","c":"Reads the chosen controls through the handler control_handlers names for control_type and stores the result in $5B13: five bits, each 0 while pressed (bit 0 fire, 1 up, 2 down, 3 right, 4 left), the top three bits set.","t":"code","b":[33,65,98],"m":"ld","o":"hl,$6241","x":[25062,26967,28489,29226,31914,33330,36446,37186,37322,37339,37353,37410,38153,52015]},{"a":25134,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":25136,"t":"code","b":[58,42,98],"m":"ld","oa":25130,"o":"a,(control_type)"},{"a":25139,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":25140,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":25141,"t":"code","b":[205,156,120],"m":"call","oa":30876,"o":"read_table_word"},{"a":25144,"t":"code","b":[17,61,98],"m":"ld","o":"de,$623D"},{"a":25147,"t":"code","b":[213],"m":"push","o":"de"},{"a":25148,"t":"code","b":[233],"m":"jp","o":"(hl)"},{"a":25149,"t":"code","b":[50,19,91],"m":"ld","oa":23315,"o":"($5B13),a"},{"a":25152,"t":"code","b":[201],"m":"ret"},{"a":25153,"l":"control_handlers","c":"The three routines read_controls chooses from: keyboard, Kempston joystick, Sinclair joystick.","t":"word","b":[118,98,92,98,71,98],"d":[25206,25180,25159]},{"a":25159,"l":"read_sinclair","c":"The Sinclair joysticks of Interface 2, which read as the keys 6 to 0 and 1 to 5: reads half-rows $EF (6 to 0) and $F7 (1 to 5), reverses the order of the first five bits of the second and combines the two, so that either joystick reads as fire, up, down, right, left in bits 0 to 4, 0 when pressed.","t":"code","b":[62,239],"m":"ld","o":"a,$EF"},{"a":25161,"t":"code","b":[219,254],"m":"in","o":"a,($FE)"},{"a":25163,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":25164,"t":"code","b":[62,247],"m":"ld","o":"a,$F7"},{"a":25166,"t":"code","b":[219,254],"m":"in","o":"a,($FE)"},{"a":25168,"t":"code","b":[6,5],"m":"ld","o":"b,$05"},{"a":25170,"t":"code","b":[31],"m":"rra","x":[25173]},{"a":25171,"t":"code","b":[203,17],"m":"rl","o":"c"},{"a":25173,"t":"code","b":[16,251],"m":"djnz","oa":25170,"o":"$6252"},{"a":25175,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":25176,"t":"code","b":[163],"m":"and","o":"e"},{"a":25177,"t":"code","b":[246,224],"m":"or","o":"$E0"},{"a":25179,"t":"code","b":[201],"m":"ret"},{"a":25180,"l":"read_kempston","c":"The Kempston joystick on port $1F (bits right, left, down, up, fire, 1 when pressed): reorders them into the game's bits (fire, up, down, right, left in bits 0 to 4) and inverts them so that 0 means pressed.","t":"code","b":[219,31],"m":"in","o":"a,($1F)"},{"a":25182,"t":"code","b":[6,0],"m":"ld","o":"b,$00"},{"a":25184,"t":"code","b":[31],"m":"rra"},{"a":25185,"t":"code","b":[203,24],"m":"rr","o":"b"},{"a":25187,"t":"code","b":[31],"m":"rra"},{"a":25188,"t":"code","b":[203,16],"m":"rl","o":"b"},{"a":25190,"t":"code","b":[203,16],"m":"rl","o":"b"},{"a":25192,"t":"code","b":[31],"m":"rra"},{"a":25193,"t":"code","b":[203,16],"m":"rl","o":"b"},{"a":25195,"t":"code","b":[31],"m":"rra"},{"a":25196,"t":"code","b":[203,16],"m":"rl","o":"b"},{"a":25198,"t":"code","b":[31],"m":"rra"},{"a":25199,"t":"code","b":[203,16],"m":"rl","o":"b"},{"a":25201,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":25202,"t":"code","b":[47],"m":"cpl"},{"a":25203,"t":"code","b":[246,224],"m":"or","o":"$E0"},{"a":25205,"t":"code","b":[201],"m":"ret"},{"a":25206,"l":"read_keyboard","c":"The keyboard: A from half-row $FD, Q from $FB, P and O from $DF and SPACE from $7F, packed as SPACE in bit 0, Q in bit 1, A in bit 2, P in bit 3 and O in bit 4, 0 when pressed.","t":"code","b":[1,254,253],"m":"ld","o":"bc,$FDFE"},{"a":25209,"t":"code","b":[237,120],"m":"in","o":"a,(c)"},{"a":25211,"t":"code","b":[246,254],"m":"or","o":"$FE"},{"a":25213,"t":"code","b":[7],"m":"rlca"},{"a":25214,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":25215,"t":"code","b":[6,251],"m":"ld","o":"b,$FB"},{"a":25217,"t":"code","b":[237,120],"m":"in","o":"a,(c)"},{"a":25219,"t":"code","b":[246,254],"m":"or","o":"$FE"},{"a":25221,"t":"code","b":[163],"m":"and","o":"e"},{"a":25222,"t":"code","b":[7],"m":"rlca"},{"a":25223,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":25224,"t":"code","b":[6,223],"m":"ld","o":"b,$DF"},{"a":25226,"t":"code","b":[237,120],"m":"in","o":"a,(c)"},{"a":25228,"t":"code","b":[246,252],"m":"or","o":"$FC"},{"a":25230,"t":"code","b":[7],"m":"rlca"},{"a":25231,"t":"code","b":[7],"m":"rlca"},{"a":25232,"t":"code","b":[7],"m":"rlca"},{"a":25233,"t":"code","b":[163],"m":"and","o":"e"},{"a":25234,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":25235,"t":"code","b":[6,127],"m":"ld","o":"b,$7F"},{"a":25237,"t":"code","b":[237,120],"m":"in","o":"a,(c)"},{"a":25239,"t":"code","b":[246,254],"m":"or","o":"$FE"},{"a":25241,"t":"code","b":[163],"m":"and","o":"e"},{"a":25242,"t":"code","b":[201],"m":"ret"},{"a":25243,"l":"move_cursor","c":"Moves the map cursor by the controls in $5B13; does nothing when no direction is pressed. Up and down move it within the window's seven rows ($5B49, 0 to 6) and scroll the window ($5B4B) at an edge; left and right do the same across ($5B4A, $5B4C). The map position ($5B47 row, $5B48 column) is the window's origin plus the offset, wrapping at 36. While a creature is moving ($FF60 not 0) a step to a square $FF60 or more squares from it ($5B45, distance from $724D) is undone. A move that stands is kept in the saved copies ($D0C8, $D0D1, $D0D3), sets $D0D8 and $D0D0, turns the cursor on for six blinks ($D0D0, $B45B) and redraws the map ($A94C); when bit 2 of $D0DF is set the bars slide ($AB0E) and the icons flash ($AAAF) too.","t":"code","b":[205,53,99],"m":"call","oa":25397,"o":"restore_cursor","x":[25072,26970,29229]},{"a":25246,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25247,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":25250,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":25253,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":25255,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":25256,"t":"code","b":[203,79],"m":"bit","o":"1,a"},{"a":25258,"t":"code","b":[204,72,99],"m":"call","oa":25416,"o":"z,cursor_up"},{"a":25261,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":25264,"t":"code","b":[203,87],"m":"bit","o":"2,a"},{"a":25266,"t":"code","b":[204,107,99],"m":"call","oa":25451,"o":"z,cursor_down"},{"a":25269,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":25272,"t":"code","b":[203,95],"m":"bit","o":"3,a"},{"a":25274,"t":"code","b":[204,177,99],"m":"call","oa":25521,"o":"z,cursor_right"},{"a":25277,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":25280,"t":"code","b":[203,103],"m":"bit","o":"4,a"},{"a":25282,"t":"code","b":[204,142,99],"m":"call","oa":25486,"o":"z,cursor_left"},{"a":25285,"t":"code","b":[58,216,208],"m":"ld","oa":53464,"o":"a,($D0D8)"},{"a":25288,"t":"code","b":[183],"m":"or","o":"a"},{"a":25289,"t":"code","b":[200],"m":"ret","o":"z"},{"a":25290,"t":"code","b":[58,75,91],"m":"ld","oa":23371,"o":"a,($5B4B)"},{"a":25293,"t":"code","b":[33,73,91],"m":"ld","o":"hl,$5B49"},{"a":25296,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":25297,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":25299,"t":"code","b":[56,2],"m":"jr","oa":25303,"o":"c,$62D7"},{"a":25301,"t":"code","b":[214,36],"m":"sub","o":"$24"},{"a":25303,"t":"code","b":[50,71,91],"m":"ld","oa":23367,"o":"($5B47),a","x":[25299]},{"a":25306,"t":"code","b":[58,76,91],"m":"ld","oa":23372,"o":"a,($5B4C)"},{"a":25309,"t":"code","b":[33,74,91],"m":"ld","o":"hl,$5B4A"},{"a":25312,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":25313,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":25315,"t":"code","b":[56,2],"m":"jr","oa":25319,"o":"c,$62E7"},{"a":25317,"t":"code","b":[214,36],"m":"sub","o":"$24"},{"a":25319,"t":"code","b":[50,72,91],"m":"ld","oa":23368,"o":"($5B48),a","x":[25315]},{"a":25322,"t":"code","b":[58,96,255],"m":"ld","oa":65376,"o":"a,($FF60)"},{"a":25325,"t":"code","b":[183],"m":"or","o":"a"},{"a":25326,"t":"code","b":[40,24],"m":"jr","oa":25352,"o":"z,$6308"},{"a":25328,"t":"code","b":[42,69,91],"m":"ld","oa":23365,"o":"hl,($5B45)"},{"a":25331,"t":"code","b":[237,91,71,91],"m":"ld","oa":23367,"o":"de,($5B47)"},{"a":25335,"t":"code","b":[205,77,114],"m":"call","oa":29261,"o":"distance"},{"a":25338,"t":"code","b":[33,96,255],"m":"ld","o":"hl,$FF60"},{"a":25341,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":25342,"t":"code","b":[56,8],"m":"jr","oa":25352,"o":"c,$6308"},{"a":25344,"t":"code","b":[205,53,99],"m":"call","oa":25397,"o":"restore_cursor"},{"a":25347,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25348,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":25351,"t":"code","b":[201],"m":"ret"},{"a":25352,"t":"code","b":[42,75,91],"m":"ld","oa":23371,"o":"hl,($5B4B)","x":[25326,25342]},{"a":25355,"t":"code","b":[34,200,208],"m":"ld","oa":53448,"o":"($D0C8),hl"},{"a":25358,"t":"code","b":[42,73,91],"m":"ld","oa":23369,"o":"hl,($5B49)"},{"a":25361,"t":"code","b":[34,209,208],"m":"ld","oa":53457,"o":"($D0D1),hl"},{"a":25364,"t":"code","b":[42,71,91],"m":"ld","oa":23367,"o":"hl,($5B47)"},{"a":25367,"t":"code","b":[34,211,208],"m":"ld","oa":53459,"o":"($D0D3),hl"},{"a":25370,"t":"code","b":[243],"m":"di"},{"a":25371,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":25373,"t":"code","b":[50,91,180],"m":"ld","oa":46171,"o":"(blink_count),a"},{"a":25376,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25378,"t":"code","b":[50,208,208],"m":"ld","oa":53456,"o":"($D0D0),a"},{"a":25381,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":25384,"t":"code","b":[58,223,208],"m":"ld","oa":53471,"o":"a,($D0DF)"},{"a":25387,"t":"code","b":[203,87],"m":"bit","o":"2,a"},{"a":25389,"t":"code","b":[200],"m":"ret","o":"z"},{"a":25390,"t":"code","b":[205,14,171],"m":"call","oa":43790,"o":"slide_bars"},{"a":25393,"t":"code","b":[205,175,170],"m":"call","oa":43695,"o":"flash_icons"},{"a":25396,"t":"code","b":[201],"m":"ret"},{"a":25397,"l":"restore_cursor","c":"Puts back the window origin, the offset in the window and the cursor's map position from their saved copies at $D0C8, $D0D1 and $D0D3.","t":"code","b":[42,200,208],"m":"ld","oa":53448,"o":"hl,($D0C8)","x":[25243,25344]},{"a":25400,"t":"code","b":[34,75,91],"m":"ld","oa":23371,"o":"($5B4B),hl"},{"a":25403,"t":"code","b":[42,209,208],"m":"ld","oa":53457,"o":"hl,($D0D1)"},{"a":25406,"t":"code","b":[34,73,91],"m":"ld","oa":23369,"o":"($5B49),hl"},{"a":25409,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":25412,"t":"code","b":[34,71,91],"m":"ld","oa":23367,"o":"($5B47),hl"},{"a":25415,"t":"code","b":[201],"m":"ret"},{"a":25416,"l":"cursor_up","c":"Moves the cursor a row up: within the window while its row offset is above 0, otherwise scrolls the window up a row, wrapping from row 0 to 35. Sets $D0D8 to say it moved.","t":"code","b":[58,209,208],"m":"ld","oa":53457,"o":"a,($D0D1)","x":[25258]},{"a":25419,"t":"code","b":[183],"m":"or","o":"a"},{"a":25420,"t":"code","b":[40,10],"m":"jr","oa":25432,"o":"z,$6358"},{"a":25422,"t":"code","b":[61],"m":"dec","o":"a"},{"a":25423,"t":"code","b":[50,73,91],"m":"ld","oa":23369,"o":"($5B49),a"},{"a":25426,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25428,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":25431,"t":"code","b":[201],"m":"ret"},{"a":25432,"t":"code","b":[58,200,208],"m":"ld","oa":53448,"o":"a,($D0C8)","x":[25420]},{"a":25435,"t":"code","b":[61],"m":"dec","o":"a"},{"a":25436,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":25438,"t":"code","b":[32,2],"m":"jr","oa":25442,"o":"nz,$6362"},{"a":25440,"t":"code","b":[62,35],"m":"ld","o":"a,$23"},{"a":25442,"t":"code","b":[50,75,91],"m":"ld","oa":23371,"o":"($5B4B),a","x":[25438]},{"a":25445,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25447,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":25450,"t":"code","b":[201],"m":"ret"},{"a":25451,"l":"cursor_down","c":"Moves the cursor a row down: within the window up to offset 6, otherwise scrolls the window down a row, wrapping from 35 to 0. Sets $D0D8.","t":"code","b":[58,209,208],"m":"ld","oa":53457,"o":"a,($D0D1)","x":[25266]},{"a":25454,"t":"code","b":[254,6],"m":"cp","o":"$06"},{"a":25456,"t":"code","b":[40,10],"m":"jr","oa":25468,"o":"z,$637C"},{"a":25458,"t":"code","b":[60],"m":"inc","o":"a"},{"a":25459,"t":"code","b":[50,73,91],"m":"ld","oa":23369,"o":"($5B49),a"},{"a":25462,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25464,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":25467,"t":"code","b":[201],"m":"ret"},{"a":25468,"t":"code","b":[58,200,208],"m":"ld","oa":53448,"o":"a,($D0C8)","x":[25456]},{"a":25471,"t":"code","b":[60],"m":"inc","o":"a"},{"a":25472,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":25474,"t":"code","b":[32,1],"m":"jr","oa":25477,"o":"nz,$6385"},{"a":25476,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25477,"t":"code","b":[50,75,91],"m":"ld","oa":23371,"o":"($5B4B),a","x":[25474]},{"a":25480,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25482,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":25485,"t":"code","b":[201],"m":"ret"},{"a":25486,"l":"cursor_left","c":"Moves the cursor a column left: within the window while its column offset is above 0, otherwise scrolls the window left a column, wrapping from column 0 to 35. Sets $D0D8.","t":"code","b":[58,210,208],"m":"ld","oa":53458,"o":"a,($D0D2)","x":[25282]},{"a":25489,"t":"code","b":[183],"m":"or","o":"a"},{"a":25490,"t":"code","b":[40,10],"m":"jr","oa":25502,"o":"z,$639E"},{"a":25492,"t":"code","b":[61],"m":"dec","o":"a"},{"a":25493,"t":"code","b":[50,74,91],"m":"ld","oa":23370,"o":"($5B4A),a"},{"a":25496,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25498,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":25501,"t":"code","b":[201],"m":"ret"},{"a":25502,"t":"code","b":[58,201,208],"m":"ld","oa":53449,"o":"a,($D0C9)","x":[25490]},{"a":25505,"t":"code","b":[61],"m":"dec","o":"a"},{"a":25506,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":25508,"t":"code","b":[32,2],"m":"jr","oa":25512,"o":"nz,$63A8"},{"a":25510,"t":"code","b":[62,35],"m":"ld","o":"a,$23"},{"a":25512,"t":"code","b":[50,76,91],"m":"ld","oa":23372,"o":"($5B4C),a","x":[25508]},{"a":25515,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25517,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":25520,"t":"code","b":[201],"m":"ret"},{"a":25521,"l":"cursor_right","c":"Moves the cursor a column right: within the window up to offset 6, otherwise scrolls the window right, wrapping from 35 to 0. Sets $D0D8.","t":"code","b":[58,210,208],"m":"ld","oa":53458,"o":"a,($D0D2)","x":[25274]},{"a":25524,"t":"code","b":[254,6],"m":"cp","o":"$06"},{"a":25526,"t":"code","b":[40,10],"m":"jr","oa":25538,"o":"z,$63C2"},{"a":25528,"t":"code","b":[60],"m":"inc","o":"a"},{"a":25529,"t":"code","b":[50,74,91],"m":"ld","oa":23370,"o":"($5B4A),a"},{"a":25532,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25534,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":25537,"t":"code","b":[201],"m":"ret"},{"a":25538,"t":"code","b":[58,201,208],"m":"ld","oa":53449,"o":"a,($D0C9)","x":[25526]},{"a":25541,"t":"code","b":[60],"m":"inc","o":"a"},{"a":25542,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":25544,"t":"code","b":[32,1],"m":"jr","oa":25547,"o":"nz,$63CB"},{"a":25546,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25547,"t":"code","b":[50,76,91],"m":"ld","oa":23372,"o":"($5B4C),a","x":[25544]},{"a":25550,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25552,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":25555,"t":"code","b":[201],"m":"ret"},{"a":25556,"l":"clear_screen","c":"Clears the whole screen: every attribute to 0 (black on black) and every pixel byte to 0 (fill_screen with A = 0).","t":"code","b":[175],"m":"xor","o":"a","x":[24699,24951,24960,28686,28774,28779,28939,30512,31773,31957,32965,33114,34468,34679,34801,34911,34987,35306,35466,35569,35857,36314,52075]},{"a":25557,"l":"fill_screen","c":"Sets every attribute to A and clears every pixel byte. Entered here with a colour by the end of the game and the designer.","t":"code","b":[33,255,90],"m":"ld","o":"hl,$5AFF","x":[51430,52080]},{"a":25560,"t":"code","b":[17,254,90],"m":"ld","o":"de,$5AFE"},{"a":25563,"t":"code","b":[1,255,2],"m":"ld","o":"bc,$02FF"},{"a":25566,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":25567,"t":"code","b":[237,184],"m":"lddr"},{"a":25569,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":25570,"t":"code","b":[27],"m":"dec","o":"de"},{"a":25571,"t":"code","b":[113],"m":"ld","o":"(hl),c"},{"a":25572,"t":"code","b":[1,255,23],"m":"ld","o":"bc,$17FF"},{"a":25575,"t":"code","b":[237,184],"m":"lddr"},{"a":25577,"t":"code","b":[201],"m":"ret"},{"a":25578,"l":"clear_info_panel","c":"Clears the information display on the right: the pixels of two rows of icon cells at $5877, and, unless the interrupt's bit 2 is set ($D0DF), of the six more rows below; clears the message line ($6464), the eight entries of the icon list at $B45C, colours the two rows of bars at $5816 and $5836 ($42, red on black, bright) and clears the ten icon flags at $D1A4.","t":"code","b":[33,119,88],"m":"ld","o":"hl,$5877","x":[25088,27165,36720]},{"a":25581,"t":"code","b":[205,77,100],"m":"call","oa":25677,"o":"clear_icon_cell"},{"a":25584,"t":"code","b":[205,77,100],"m":"call","oa":25677,"o":"clear_icon_cell"},{"a":25587,"t":"code","b":[58,223,208],"m":"ld","oa":53471,"o":"a,($D0DF)"},{"a":25590,"t":"code","b":[203,87],"m":"bit","o":"2,a"},{"a":25592,"t":"code","b":[32,27],"m":"jr","oa":25621,"o":"nz,$6415"},{"a":25594,"t":"code","b":[33,55,89],"m":"ld","o":"hl,$5937"},{"a":25597,"t":"code","b":[205,77,100],"m":"call","oa":25677,"o":"clear_icon_cell"},{"a":25600,"t":"code","b":[205,77,100],"m":"call","oa":25677,"o":"clear_icon_cell"},{"a":25603,"t":"code","b":[33,183,89],"m":"ld","o":"hl,$59B7"},{"a":25606,"t":"code","b":[205,77,100],"m":"call","oa":25677,"o":"clear_icon_cell"},{"a":25609,"t":"code","b":[205,77,100],"m":"call","oa":25677,"o":"clear_icon_cell"},{"a":25612,"t":"code","b":[33,55,90],"m":"ld","o":"hl,$5A37"},{"a":25615,"t":"code","b":[205,77,100],"m":"call","oa":25677,"o":"clear_icon_cell"},{"a":25618,"t":"code","b":[205,77,100],"m":"call","oa":25677,"o":"clear_icon_cell"},{"a":25621,"t":"code","b":[205,100,100],"m":"call","oa":25700,"o":"clear_message_line","x":[25592]},{"a":25624,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":25626,"t":"code","b":[33,92,180],"m":"ld","o":"hl,$B45C"},{"a":25629,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":25632,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00","x":[25635]},{"a":25634,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25635,"t":"code","b":[16,251],"m":"djnz","oa":25632,"o":"$6420"},{"a":25637,"t":"code","b":[33,22,88],"m":"ld","o":"hl,$5816"},{"a":25640,"t":"code","b":[17,23,88],"m":"ld","o":"de,$5817"},{"a":25643,"t":"code","b":[1,9,0],"m":"ld","o":"bc,$0009"},{"a":25646,"t":"code","b":[54,66],"m":"ld","o":"(hl),$42"},{"a":25648,"t":"code","b":[237,176],"m":"ldir"},{"a":25650,"t":"code","b":[33,54,88],"m":"ld","o":"hl,$5836"},{"a":25653,"t":"code","b":[17,55,88],"m":"ld","o":"de,$5837"},{"a":25656,"t":"code","b":[1,9,0],"m":"ld","o":"bc,$0009"},{"a":25659,"t":"code","b":[54,66],"m":"ld","o":"(hl),$42"},{"a":25661,"t":"code","b":[237,176],"m":"ldir"},{"a":25663,"t":"code","b":[33,164,209],"m":"ld","o":"hl,$D1A4"},{"a":25666,"t":"code","b":[17,165,209],"m":"ld","o":"de,$D1A5"},{"a":25669,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":25671,"t":"code","b":[1,9,0],"m":"ld","o":"bc,$0009"},{"a":25674,"t":"code","b":[237,176],"m":"ldir"},{"a":25676,"t":"code","b":[201],"m":"ret"},{"a":25677,"l":"clear_icon_cell","c":"Clears a 3x3 block of attribute cells at HL (so that nothing in it shows) and returns with HL moved on five cells along the row (the three rows take it $60 on and it takes $5B off), to where the next picture's block starts.","t":"code","b":[17,29,0],"m":"ld","o":"de,$001D","x":[25581,25584,25597,25600,25606,25609,25615,25618]},{"a":25680,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":25682,"t":"code","b":[197],"m":"push","o":"bc","x":[25692]},{"a":25683,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":25685,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00","x":[25688]},{"a":25687,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":25688,"t":"code","b":[16,251],"m":"djnz","oa":25685,"o":"$6455"},{"a":25690,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25691,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25692,"t":"code","b":[16,244],"m":"djnz","oa":25682,"o":"$6452"},{"a":25694,"t":"code","b":[17,91,0],"m":"ld","o":"de,$005B"},{"a":25697,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":25699,"t":"code","b":[201],"m":"ret"},{"a":25700,"l":"clear_message_line","c":"Clears the message line: the attributes of the bottom two character rows ($5AC0-$5AFF) to 0, and $5B42.","t":"code","b":[175],"m":"xor","o":"a","x":[25621,27262,27298,27446,28010,31035,37311,52403]},{"a":25701,"t":"code","b":[50,66,91],"m":"ld","oa":23362,"o":"($5B42),a"},{"a":25704,"l":"fill_message_line","c":"Fills the attributes of the bottom two character rows with A.","t":"code","b":[33,192,90],"m":"ld","o":"hl,$5AC0","x":[43280]},{"a":25707,"t":"code","b":[17,193,90],"m":"ld","o":"de,$5AC1"},{"a":25710,"t":"code","b":[1,63,0],"m":"ld","o":"bc,$003F"},{"a":25713,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":25714,"t":"code","b":[237,176],"m":"ldir"},{"a":25716,"t":"code","b":[201],"m":"ret"},{"a":25717,"l":"blank_message_line","c":"Prints 32 spaces on each of rows 22 and 23 in the ROM's font ($3C00), blanking the message line's pixels.","t":"code","b":[33,22,0],"m":"ld","o":"hl,$0016","x":[27267]},{"a":25720,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":25723,"t":"code","b":[33,0,60],"m":"ld","o":"hl,$3C00"},{"a":25726,"t":"code","b":[34,14,91],"m":"ld","oa":23310,"o":"($5B0E),hl"},{"a":25729,"t":"code","b":[6,2],"m":"ld","o":"b,$02"},{"a":25731,"t":"code","b":[197],"m":"push","o":"bc","x":[25754]},{"a":25732,"t":"code","b":[6,32],"m":"ld","o":"b,$20"},{"a":25734,"t":"code","b":[197],"m":"push","o":"bc","x":[25745]},{"a":25735,"t":"code","b":[62,32],"m":"ld","o":"a,$20"},{"a":25737,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small"},{"a":25740,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16"},{"a":25743,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":25744,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25745,"t":"code","b":[16,243],"m":"djnz","oa":25734,"o":"$6486"},{"a":25747,"t":"code","b":[33,23,0],"m":"ld","o":"hl,$0017"},{"a":25750,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":25753,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25754,"t":"code","b":[16,231],"m":"djnz","oa":25731,"o":"$6483"},{"a":25756,"t":"code","b":[201],"m":"ret"},{"a":25757,"l":"describe_cursor_square","c":"Works out what the cursor's square holds, for the information display. Reads the map byte at the cursor ($D0D3): below $50 it is terrain, kept in $5B10 and $5B12. Otherwise lists the objects lying there ($67A7) and, when the byte is a creature ($8C up), finds the creature ($66A2), keeps the terrain under it (byte 3 of its entry) in $5B10, lists what it carries ($6746) and sets the five icon flags at $D1A4: undead (bit 1 of byte 11 of its type), flying (byte 1 of its type, or a flying potion: $A0 in the top bits of byte 3 of its record), mount (bit 0 of byte 11), fatal wound (top three bits of byte 4 of its record) and invisible (bit 3 of byte 4). Returns with IX on the creature's record.","t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)","x":[25109,27177,27965,29209,36573,36733]},{"a":25760,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25761,"t":"code","b":[50,221,208],"m":"ld","oa":53469,"o":"($D0DD),a"},{"a":25764,"t":"code","b":[50,217,208],"m":"ld","oa":53465,"o":"($D0D9),a"},{"a":25767,"t":"code","b":[34,136,255],"m":"ld","oa":65416,"o":"($FF88),hl"},{"a":25770,"t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":25773,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":25774,"t":"code","b":[50,18,91],"m":"ld","oa":23314,"o":"($5B12),a"},{"a":25777,"t":"code","b":[254,80],"m":"cp","o":"$50"},{"a":25779,"t":"code","b":[48,4],"m":"jr","oa":25785,"o":"nc,$64B9"},{"a":25781,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":25784,"t":"code","b":[201],"m":"ret"},{"a":25785,"t":"code","b":[237,91,136,255],"m":"ld","oa":65416,"o":"de,($FF88)","x":[25779]},{"a":25789,"t":"code","b":[205,167,103],"m":"call","oa":26535,"o":"list_objects_at"},{"a":25792,"t":"code","b":[58,18,91],"m":"ld","oa":23314,"o":"a,($5B12)"},{"a":25795,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":25797,"t":"code","b":[216],"m":"ret","o":"c"},{"a":25798,"t":"code","b":[42,136,255],"m":"ld","oa":65416,"o":"hl,($FF88)"},{"a":25801,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":25803,"t":"code","b":[205,162,102],"m":"call","oa":26274,"o":"find_creature_at"},{"a":25806,"t":"code","b":[205,142,120],"m":"call","oa":30862,"o":"terrain_under"},{"a":25809,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":25812,"t":"code","b":[205,70,103],"m":"call","oa":26438,"o":"list_found_carries"},{"a":25815,"t":"code","b":[17,0,0],"m":"ld","o":"de,$0000","x":[25916]},{"a":25818,"t":"code","b":[237,83,164,209],"m":"ld","oa":53668,"o":"($D1A4),de"},{"a":25822,"t":"code","b":[237,83,166,209],"m":"ld","oa":53670,"o":"($D1A6),de"},{"a":25826,"t":"code","b":[237,83,167,209],"m":"ld","oa":53671,"o":"($D1A7),de"},{"a":25830,"t":"code","b":[205,167,181],"m":"call","oa":46503,"o":"type_record_of"},{"a":25833,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)"},{"a":25836,"t":"code","b":[183],"m":"or","o":"a"},{"a":25837,"t":"code","b":[40,3],"m":"jr","oa":25842,"o":"z,$64F2"},{"a":25839,"t":"code","b":[50,165,209],"m":"ld","oa":53669,"o":"($D1A5),a"},{"a":25842,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of","x":[25837]},{"a":25845,"t":"code","b":[253,229],"m":"push","o":"iy"},{"a":25847,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":25850,"t":"code","b":[230,224],"m":"and","o":"$E0"},{"a":25852,"t":"code","b":[50,167,209],"m":"ld","oa":53671,"o":"($D1A7),a"},{"a":25855,"t":"code","b":[253,203,4,94],"m":"bit","o":"3,(iy+$04)"},{"a":25859,"t":"code","b":[40,5],"m":"jr","oa":25866,"o":"z,$650A"},{"a":25861,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25863,"t":"code","b":[50,168,209],"m":"ld","oa":53672,"o":"($D1A8),a"},{"a":25866,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)","x":[25859]},{"a":25869,"t":"code","b":[230,224],"m":"and","o":"$E0"},{"a":25871,"t":"code","b":[254,160],"m":"cp","o":"$A0"},{"a":25873,"t":"code","b":[32,3],"m":"jr","oa":25878,"o":"nz,$6516"},{"a":25875,"t":"code","b":[50,165,209],"m":"ld","oa":53669,"o":"($D1A5),a"},{"a":25878,"t":"code","b":[205,167,181],"m":"call","oa":46503,"o":"type_record_of","x":[25873]},{"a":25881,"t":"code","b":[253,126,11],"m":"ld","o":"a,(iy+$0B)"},{"a":25884,"t":"code","b":[230,2],"m":"and","o":"$02"},{"a":25886,"t":"code","b":[50,164,209],"m":"ld","oa":53668,"o":"($D1A4),a"},{"a":25889,"t":"code","b":[253,126,11],"m":"ld","o":"a,(iy+$0B)"},{"a":25892,"t":"code","b":[230,1],"m":"and","o":"$01"},{"a":25894,"t":"code","b":[50,166,209],"m":"ld","oa":53670,"o":"($D1A6),a"},{"a":25897,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":25899,"t":"code","b":[201],"m":"ret"},{"a":25900,"l":"describe_creature","c":"The second half of describe_cursor_square for a creature already found: lists the objects on its square and what it carries, keeps the terrain under it in $5B10 and sets the five icon flags.","t":"code","b":[237,91,136,255],"m":"ld","oa":65416,"o":"de,($FF88)","x":[26942,37299,39120]},{"a":25904,"t":"code","b":[205,167,103],"m":"call","oa":26535,"o":"list_objects_at"},{"a":25907,"t":"code","b":[205,142,120],"m":"call","oa":30862,"o":"terrain_under"},{"a":25910,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":25913,"t":"code","b":[205,70,103],"m":"call","oa":26438,"o":"list_found_carries"},{"a":25916,"t":"code","b":[24,153],"m":"jr","oa":25815,"o":"$64D7"},{"a":25918,"l":"fill_icon_list","c":"Fills the information display's icon list at $B45C from describe_cursor_square's results: the terrain, the object in use ($D0D9, hidden when it is an invisible enemy's), the five icon flags (copied to $D1A9) and up to six objects lying on the square, from the list at $D1D4.","t":"code","b":[253,229],"m":"push","o":"iy","x":[25112,26945,27180,27968,29212,36576,36736,37302,39123]},{"a":25920,"t":"code","b":[58,16,91],"m":"ld","oa":23312,"o":"a,($5B10)"},{"a":25923,"t":"code","b":[50,92,180],"m":"ld","oa":46172,"o":"(pictures),a"},{"a":25926,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":25929,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":25931,"t":"code","b":[56,32],"m":"jr","oa":25965,"o":"c,$656D"},{"a":25933,"t":"code","b":[58,218,208],"m":"ld","oa":53466,"o":"a,($D0DA)"},{"a":25936,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":25939,"t":"code","b":[17,5,0],"m":"ld","o":"de,$0005"},{"a":25942,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25943,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":25944,"t":"code","b":[205,146,181],"m":"call","oa":46482,"o":"creature_record"},{"a":25947,"t":"code","b":[253,203,4,94],"m":"bit","o":"3,(iy+$04)"},{"a":25951,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":25954,"t":"code","b":[40,9],"m":"jr","oa":25965,"o":"z,$656D"},{"a":25956,"t":"code","b":[205,195,97],"m":"call","oa":25027,"o":"owner_is_player"},{"a":25959,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":25962,"t":"code","b":[40,1],"m":"jr","oa":25965,"o":"z,$656D"},{"a":25964,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25965,"t":"code","b":[253,225],"m":"pop","o":"iy","x":[25931,25954,25962]},{"a":25967,"t":"code","b":[50,95,180],"m":"ld","oa":46175,"o":"($B45F),a"},{"a":25970,"t":"code","b":[33,164,209],"m":"ld","o":"hl,$D1A4"},{"a":25973,"t":"code","b":[17,169,209],"m":"ld","o":"de,$D1A9"},{"a":25976,"t":"code","b":[1,5,0],"m":"ld","o":"bc,$0005"},{"a":25979,"t":"code","b":[237,176],"m":"ldir"},{"a":25981,"t":"code","b":[58,221,208],"m":"ld","oa":53469,"o":"a,($D0DD)"},{"a":25984,"t":"code","b":[183],"m":"or","o":"a"},{"a":25985,"t":"code","b":[200],"m":"ret","o":"z"},{"a":25986,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":25987,"t":"code","b":[254,7],"m":"cp","o":"$07"},{"a":25989,"t":"code","b":[56,2],"m":"jr","oa":25993,"o":"c,$6589"},{"a":25991,"t":"code","b":[6,6],"m":"ld","o":"b,$06"},{"a":25993,"t":"code","b":[33,213,209],"m":"ld","o":"hl,$D1D5","x":[25989]},{"a":25996,"t":"code","b":[17,98,180],"m":"ld","o":"de,$B462"},{"a":25999,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[26006]},{"a":26000,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":26001,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26002,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26003,"t":"code","b":[19],"m":"inc","o":"de"},{"a":26004,"t":"code","b":[19],"m":"inc","o":"de"},{"a":26005,"t":"code","b":[19],"m":"inc","o":"de"},{"a":26006,"t":"code","b":[16,247],"m":"djnz","oa":25999,"o":"$658F"},{"a":26008,"t":"code","b":[201],"m":"ret"},{"a":26009,"l":"print_square_name","c":"Prints the name of what is on the cursor's square on the message line: message (map byte + 1) at row 22 in white. A tree or bush square ($3A-$49) also gets the creature that lives in it ($6684). For a creature it finds the creature, prints its rider's mark when it carries one, its owner (\"=\" and the type of the owner's wizard, $6684) when it belongs to a wizard and is not a wizard itself, and, when a second creature shares the square and is visible, that one's owner's number and name.","t":"code","b":[205,98,170],"m":"call","oa":43618,"o":"map_address_cursor","x":[25115,27088,27183,27449,28016,36579,36739,37314]},{"a":26012,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26013,"t":"code","b":[50,18,91],"m":"ld","oa":23314,"o":"($5B12),a"},{"a":26016,"t":"code","b":[33,22,0],"m":"ld","o":"hl,$0016"},{"a":26019,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":26022,"t":"code","b":[33,6,70],"m":"ld","o":"hl,$4606"},{"a":26025,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":26028,"t":"code","b":[58,18,91],"m":"ld","oa":23314,"o":"a,($5B12)"},{"a":26031,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26032,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":26035,"t":"code","b":[58,18,91],"m":"ld","oa":23314,"o":"a,($5B12)"},{"a":26038,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":26040,"t":"code","b":[48,30],"m":"jr","oa":26072,"o":"nc,$65D8"},{"a":26042,"t":"code","b":[254,58],"m":"cp","o":"$3A"},{"a":26044,"t":"code","b":[216],"m":"ret","o":"c"},{"a":26045,"t":"code","b":[254,74],"m":"cp","o":"$4A"},{"a":26047,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":26048,"t":"code","b":[254,66],"m":"cp","o":"$42"},{"a":26050,"t":"code","b":[48,10],"m":"jr","oa":26062,"o":"nc,$65CE"},{"a":26052,"t":"code","b":[214,58],"m":"sub","o":"$3A"},{"a":26054,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":26056,"t":"code","b":[198,141],"m":"add","o":"a,$8D"},{"a":26058,"t":"code","b":[205,132,102],"m":"call","oa":26244,"o":"print_owner_name"},{"a":26061,"t":"code","b":[201],"m":"ret"},{"a":26062,"t":"code","b":[214,66],"m":"sub","o":"$42","x":[26050]},{"a":26064,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":26066,"t":"code","b":[198,141],"m":"add","o":"a,$8D"},{"a":26068,"t":"code","b":[205,132,102],"m":"call","oa":26244,"o":"print_owner_name"},{"a":26071,"t":"code","b":[201],"m":"ret"},{"a":26072,"t":"code","b":[221,229],"m":"push","o":"ix","x":[26040]},{"a":26074,"t":"code","b":[253,229],"m":"push","o":"iy"},{"a":26076,"t":"code","b":[58,18,91],"m":"ld","oa":23314,"o":"a,($5B12)"},{"a":26079,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":26080,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":26083,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":26085,"t":"code","b":[205,162,102],"m":"call","oa":26274,"o":"find_creature_at"},{"a":26088,"t":"code","b":[221,203,1,126],"m":"bit","o":"7,(ix+$01)"},{"a":26092,"t":"code","b":[32,6],"m":"jr","oa":26100,"o":"nz,$65F4"},{"a":26094,"t":"code","b":[58,88,91],"m":"ld","oa":23384,"o":"a,($5B58)"},{"a":26097,"t":"code","b":[205,162,102],"m":"call","oa":26274,"o":"find_creature_at"},{"a":26100,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying","x":[26092]},{"a":26103,"t":"code","b":[32,22],"m":"jr","oa":26127,"o":"nz,$660F"},{"a":26105,"t":"code","b":[42,21,91],"m":"ld","oa":23317,"o":"hl,($5B15)"},{"a":26108,"t":"code","b":[37],"m":"dec","o":"h"},{"a":26109,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":26112,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":26114,"t":"code","b":[205,87,171],"m":"call","oa":43863,"o":"print_panel_text"},{"a":26117,"t":"code","b":[237,91,21,91],"m":"ld","oa":23317,"o":"de,($5B15)"},{"a":26121,"t":"code","b":[21],"m":"dec","o":"d"},{"a":26122,"t":"code","b":[29],"m":"dec","o":"e"},{"a":26123,"t":"code","b":[237,83,21,91],"m":"ld","oa":23317,"o":"($5B15),de"},{"a":26127,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of","x":[26103]},{"a":26130,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":26133,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":26135,"t":"code","b":[50,159,209],"m":"ld","oa":53663,"o":"($D19F),a"},{"a":26138,"t":"code","b":[40,15],"m":"jr","oa":26155,"o":"z,$662B"},{"a":26140,"t":"code","b":[58,18,91],"m":"ld","oa":23314,"o":"a,($5B12)"},{"a":26143,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":26145,"t":"code","b":[56,8],"m":"jr","oa":26155,"o":"c,$662B"},{"a":26147,"t":"code","b":[58,159,209],"m":"ld","oa":53663,"o":"a,($D19F)"},{"a":26150,"t":"code","b":[198,140],"m":"add","o":"a,$8C"},{"a":26152,"t":"code","b":[205,132,102],"m":"call","oa":26244,"o":"print_owner_name"},{"a":26155,"t":"code","b":[58,177,209],"m":"ld","oa":53681,"o":"a,($D1B1)","x":[26138,26145]},{"a":26158,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":26160,"t":"code","b":[40,77],"m":"jr","oa":26239,"o":"z,$667F"},{"a":26162,"t":"code","b":[33,88,91],"m":"ld","o":"hl,$5B58"},{"a":26165,"t":"code","b":[221,42,175,209],"m":"ld","oa":53679,"o":"ix,($D1AF)"},{"a":26169,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":26170,"t":"code","b":[32,10],"m":"jr","oa":26182,"o":"nz,$6646"},{"a":26172,"t":"code","b":[58,181,209],"m":"ld","oa":53685,"o":"a,($D1B5)"},{"a":26175,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26176,"t":"code","b":[40,61],"m":"jr","oa":26239,"o":"z,$667F"},{"a":26178,"t":"code","b":[221,42,179,209],"m":"ld","oa":53683,"o":"ix,($D1B3)"},{"a":26182,"t":"code","b":[221,203,1,126],"m":"bit","o":"7,(ix+$01)","x":[26170]},{"a":26186,"t":"code","b":[40,51],"m":"jr","oa":26239,"o":"z,$667F"},{"a":26188,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":26191,"t":"code","b":[253,203,4,94],"m":"bit","o":"3,(iy+$04)"},{"a":26195,"t":"code","b":[32,42],"m":"jr","oa":26239,"o":"nz,$667F"},{"a":26197,"t":"code","b":[33,71,71],"m":"ld","o":"hl,$4747"},{"a":26200,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":26203,"t":"code","b":[33,0,60],"m":"ld","o":"hl,$3C00"},{"a":26206,"t":"code","b":[34,14,91],"m":"ld","oa":23310,"o":"($5B0E),hl"},{"a":26209,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":26212,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":26214,"t":"code","b":[198,48],"m":"add","o":"a,$30"},{"a":26216,"t":"code","b":[205,226,175],"m":"call","oa":45026,"o":"print_char_big"},{"a":26219,"t":"code","b":[42,21,91],"m":"ld","oa":23317,"o":"hl,($5B15)"},{"a":26222,"t":"code","b":[36],"m":"inc","o":"h"},{"a":26223,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":26226,"t":"code","b":[33,66,67],"m":"ld","o":"hl,$4342"},{"a":26229,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":26232,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":26235,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26236,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":26239,"t":"code","b":[253,225],"m":"pop","o":"iy","x":[26160,26176,26186,26195]},{"a":26241,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":26243,"t":"code","b":[201],"m":"ret"},{"a":26244,"l":"print_owner_name","c":"Prints \"=\" and then message A (a wizard's or creature's name) after the current print position, in green on black, in the ROM's font.","t":"code","b":[42,21,91],"m":"ld","oa":23317,"o":"hl,($5B15)","x":[26058,26068,26152]},{"a":26247,"t":"code","b":[36],"m":"inc","o":"h"},{"a":26248,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":26251,"t":"code","b":[33,0,60],"m":"ld","o":"hl,$3C00"},{"a":26254,"t":"code","b":[34,14,91],"m":"ld","oa":23310,"o":"($5B0E),hl"},{"a":26257,"t":"code","b":[33,4,68],"m":"ld","o":"hl,$4404"},{"a":26260,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":26263,"t":"code","b":[245],"m":"push","o":"af"},{"a":26264,"t":"code","b":[62,61],"m":"ld","o":"a,$3D"},{"a":26266,"t":"code","b":[205,226,175],"m":"call","oa":45026,"o":"print_char_big"},{"a":26269,"t":"code","b":[241],"m":"pop","o":"af"},{"a":26270,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":26273,"t":"code","b":[201],"m":"ret"},{"a":26274,"l":"find_creature_at","c":"Finds the creatures standing at row L, column H (find_creatures_at) and returns in IX the one whose type is in $5B12, or else the second, in $FFF9 too, with its index in $5B58.","t":"code","b":[205,205,102],"m":"call","oa":26317,"o":"find_creatures_at","x":[25803,26085,26097]},{"a":26277,"t":"code","b":[58,174,209],"m":"ld","oa":53678,"o":"a,($D1AE)"},{"a":26280,"t":"code","b":[33,18,91],"m":"ld","o":"hl,$5B12"},{"a":26283,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":26284,"t":"code","b":[32,9],"m":"jr","oa":26295,"o":"nz,$66B7"},{"a":26286,"t":"code","b":[221,42,175,209],"m":"ld","oa":53679,"o":"ix,($D1AF)"},{"a":26290,"t":"code","b":[58,177,209],"m":"ld","oa":53681,"o":"a,($D1B1)"},{"a":26293,"t":"code","b":[24,7],"m":"jr","oa":26302,"o":"$66BE"},{"a":26295,"t":"code","b":[221,42,179,209],"m":"ld","oa":53683,"o":"ix,($D1B3)","x":[26284]},{"a":26299,"t":"code","b":[58,181,209],"m":"ld","oa":53685,"o":"a,($D1B5)"},{"a":26302,"t":"code","b":[221,34,249,255],"m":"ld","oa":65529,"o":"($FFF9),ix","x":[26293]},{"a":26306,"t":"code","b":[50,88,91],"m":"ld","oa":23384,"o":"($5B58),a"},{"a":26309,"t":"code","b":[201],"m":"ret"},{"a":26310,"l":"find_creatures_any","c":"find_creatures_at with no creature excluded.","t":"code","b":[62,255],"m":"ld","o":"a,$FF","x":[29317,31360,32010,34959,36602,51773]},{"a":26312,"t":"code","b":[24,3],"m":"jr","oa":26317,"o":"find_creatures_at"},{"a":26314,"l":"find_others_at","c":"find_creatures_at excluding the selected creature, $5B4F.","t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)","x":[28111,29017,36964]},{"a":26317,"l":"find_creatures_at","c":"Finds up to two creatures (type $8C up) at row L, column H whose byte 4 is $FE or $FF (not riding), skipping the entry whose index is A. The first found goes to $D1AF (entry), $D1AE (type), $D1B1 (index), the second to $D1B3, $D1B2, $D1B5; an index of $FF means none.","t":"code","b":[50,160,209],"m":"ld","oa":53664,"o":"($D1A0),a","x":[26274,26312,33707]},{"a":26320,"t":"code","b":[175],"m":"xor","o":"a"},{"a":26321,"t":"code","b":[50,174,209],"m":"ld","oa":53678,"o":"($D1AE),a"},{"a":26324,"t":"code","b":[50,178,209],"m":"ld","oa":53682,"o":"($D1B2),a"},{"a":26327,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":26328,"t":"code","b":[61],"m":"dec","o":"a"},{"a":26329,"t":"code","b":[50,177,209],"m":"ld","oa":53681,"o":"($D1B1),a"},{"a":26332,"t":"code","b":[50,181,209],"m":"ld","oa":53685,"o":"($D1B5),a"},{"a":26335,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":26337,"t":"code","b":[50,247,255],"m":"ld","oa":65527,"o":"($FFF7),a"},{"a":26340,"t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A"},{"a":26344,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":26346,"t":"code","b":[197],"m":"push","o":"bc","x":[26428]},{"a":26347,"t":"code","b":[58,160,209],"m":"ld","oa":53664,"o":"a,($D1A0)"},{"a":26350,"t":"code","b":[186],"m":"cp","o":"d"},{"a":26351,"t":"code","b":[40,68],"m":"jr","oa":26421,"o":"z,$6735"},{"a":26353,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":26356,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26357,"t":"code","b":[40,62],"m":"jr","oa":26421,"o":"z,$6735"},{"a":26359,"t":"code","b":[254,141],"m":"cp","o":"$8D"},{"a":26361,"t":"code","b":[56,58],"m":"jr","oa":26421,"o":"c,$6735"},{"a":26363,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying"},{"a":26366,"t":"code","b":[56,53],"m":"jr","oa":26421,"o":"c,$6735"},{"a":26368,"t":"code","b":[125],"m":"ld","o":"a,l"},{"a":26369,"t":"code","b":[221,190,0],"m":"cp","o":"(ix+$00)"},{"a":26372,"t":"code","b":[32,47],"m":"jr","oa":26421,"o":"nz,$6735"},{"a":26374,"t":"code","b":[205,162,120],"m":"call","oa":30882,"o":"entry_column"},{"a":26377,"t":"code","b":[188],"m":"cp","o":"h"},{"a":26378,"t":"code","b":[32,41],"m":"jr","oa":26421,"o":"nz,$6735"},{"a":26380,"t":"code","b":[58,247,255],"m":"ld","oa":65527,"o":"a,($FFF7)"},{"a":26383,"t":"code","b":[61],"m":"dec","o":"a"},{"a":26384,"t":"code","b":[50,247,255],"m":"ld","oa":65527,"o":"($FFF7),a"},{"a":26387,"t":"code","b":[40,16],"m":"jr","oa":26405,"o":"z,$6725"},{"a":26389,"t":"code","b":[221,34,175,209],"m":"ld","oa":53679,"o":"($D1AF),ix"},{"a":26393,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":26396,"t":"code","b":[50,174,209],"m":"ld","oa":53678,"o":"($D1AE),a"},{"a":26399,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":26400,"t":"code","b":[50,177,209],"m":"ld","oa":53681,"o":"($D1B1),a"},{"a":26403,"t":"code","b":[24,16],"m":"jr","oa":26421,"o":"$6735"},{"a":26405,"t":"code","b":[221,34,179,209],"m":"ld","oa":53683,"o":"($D1B3),ix","x":[26387]},{"a":26409,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":26412,"t":"code","b":[50,178,209],"m":"ld","oa":53682,"o":"($D1B2),a"},{"a":26415,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":26416,"t":"code","b":[50,181,209],"m":"ld","oa":53685,"o":"($D1B5),a"},{"a":26419,"t":"code","b":[24,10],"m":"jr","oa":26431,"o":"$673F"},{"a":26421,"t":"code","b":[1,6,0],"m":"ld","o":"bc,$0006","x":[26351,26357,26361,26366,26372,26378,26403]},{"a":26424,"t":"code","b":[221,9],"m":"add","o":"ix,bc"},{"a":26426,"t":"code","b":[20],"m":"inc","o":"d"},{"a":26427,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":26428,"t":"code","b":[16,172],"m":"djnz","oa":26346,"o":"$66EA"},{"a":26430,"t":"code","b":[201],"m":"ret"},{"a":26431,"t":"code","b":[193],"m":"pop","o":"bc","x":[26419]},{"a":26432,"t":"code","b":[201],"m":"ret"},{"a":26433,"l":"list_selected_carries","c":"list_carried for the selected creature, $5B4F.","t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)","x":[27489,27587,28928,32781,41005,41271,41593,41854,42552]},{"a":26436,"t":"code","b":[24,3],"m":"jr","oa":26441,"o":"list_carried"},{"a":26438,"l":"list_found_carries","c":"list_carried for the creature in $5B58.","t":"code","b":[58,88,91],"m":"ld","oa":23384,"o":"a,($5B58)","x":[25812,25913,30542,37928]},{"a":26441,"l":"list_carried","c":"Lists the objects carried by creature A (entries whose byte 4 is A) as pairs of index and type at $D1C0, with the count in $D0DE; the one in use (bit 7 of byte 3) also goes to $D0DA (index), $D0DB (entry), $D0D9 (type) and $5B59 (its place in the list plus 1).","t":"code","b":[87],"m":"ld","o":"d,a","x":[26436,27577,34817,34830,35184,40696,46011]},{"a":26442,"t":"code","b":[221,229],"m":"push","o":"ix"},{"a":26444,"t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A"},{"a":26448,"t":"code","b":[33,192,209],"m":"ld","o":"hl,$D1C0"},{"a":26451,"t":"code","b":[175],"m":"xor","o":"a"},{"a":26452,"t":"code","b":[50,217,208],"m":"ld","oa":53465,"o":"($D0D9),a"},{"a":26455,"t":"code","b":[50,89,91],"m":"ld","oa":23385,"o":"($5B59),a"},{"a":26458,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":26459,"t":"code","b":[61],"m":"dec","o":"a"},{"a":26460,"t":"code","b":[50,218,208],"m":"ld","oa":53466,"o":"($D0DA),a"},{"a":26463,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":26465,"t":"code","b":[197],"m":"push","o":"bc","x":[26522]},{"a":26466,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":26469,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26470,"t":"code","b":[40,44],"m":"jr","oa":26516,"o":"z,$6794"},{"a":26472,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":26475,"t":"code","b":[186],"m":"cp","o":"d"},{"a":26476,"t":"code","b":[32,38],"m":"jr","oa":26516,"o":"nz,$6794"},{"a":26478,"t":"code","b":[62,145],"m":"ld","o":"a,$91"},{"a":26480,"t":"code","b":[144],"m":"sub","o":"b"},{"a":26481,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26482,"t":"code","b":[221,203,3,126],"m":"bit","o":"7,(ix+$03)"},{"a":26486,"t":"code","b":[40,7],"m":"jr","oa":26495,"o":"z,$677F"},{"a":26488,"t":"code","b":[50,218,208],"m":"ld","oa":53466,"o":"($D0DA),a"},{"a":26491,"t":"code","b":[221,34,219,208],"m":"ld","oa":53467,"o":"($D0DB),ix"},{"a":26495,"t":"code","b":[35],"m":"inc","o":"hl","x":[26486]},{"a":26496,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":26499,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26500,"t":"code","b":[221,203,3,126],"m":"bit","o":"7,(ix+$03)"},{"a":26504,"t":"code","b":[40,8],"m":"jr","oa":26514,"o":"z,$6792"},{"a":26506,"t":"code","b":[50,217,208],"m":"ld","oa":53465,"o":"($D0D9),a"},{"a":26509,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":26510,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26511,"t":"code","b":[50,89,91],"m":"ld","oa":23385,"o":"($5B59),a"},{"a":26514,"t":"code","b":[35],"m":"inc","o":"hl","x":[26504]},{"a":26515,"t":"code","b":[28],"m":"inc","o":"e"},{"a":26516,"t":"code","b":[1,6,0],"m":"ld","o":"bc,$0006","x":[26470,26476]},{"a":26519,"t":"code","b":[221,9],"m":"add","o":"ix,bc"},{"a":26521,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":26522,"t":"code","b":[16,197],"m":"djnz","oa":26465,"o":"$6761"},{"a":26524,"t":"code","b":[33,222,208],"m":"ld","o":"hl,$D0DE"},{"a":26527,"t":"code","b":[115],"m":"ld","o":"(hl),e"},{"a":26528,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":26530,"t":"code","b":[201],"m":"ret"},{"a":26531,"l":"list_objects_here","c":"list_objects_at for the selected position, $5B55.","t":"code","b":[237,91,85,91],"m":"ld","oa":23381,"o":"de,($5B55)","x":[27734,28919,29628,29694,29828,29848,33574,33893,41274,41356,41366,41440,42216,42593]},{"a":26535,"l":"list_objects_at","c":"Lists the objects ($50-$8B) lying on the ground (byte 4 $FF) and shown (bit 7 of byte 1) at row E, column D: pairs of index and type at $D1D4, the count in $D0DD.","t":"code","b":[221,229],"m":"push","o":"ix","x":[25789,25904,29303,34852]},{"a":26537,"t":"code","b":[253,229],"m":"push","o":"iy"},{"a":26539,"t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A"},{"a":26543,"t":"code","b":[175],"m":"xor","o":"a"},{"a":26544,"t":"code","b":[50,221,208],"m":"ld","oa":53469,"o":"($D0DD),a"},{"a":26547,"t":"code","b":[50,46,91],"m":"ld","oa":23342,"o":"($5B2E),a"},{"a":26550,"t":"code","b":[50,44,91],"m":"ld","oa":23340,"o":"($5B2C),a"},{"a":26553,"t":"code","b":[33,212,209],"m":"ld","o":"hl,$D1D4"},{"a":26556,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":26558,"t":"code","b":[197],"m":"push","o":"bc","x":[26659]},{"a":26559,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":26562,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26563,"t":"code","b":[40,88],"m":"jr","oa":26653,"o":"z,$681D"},{"a":26565,"t":"code","b":[254,81],"m":"cp","o":"$51"},{"a":26567,"t":"code","b":[56,84],"m":"jr","oa":26653,"o":"c,$681D"},{"a":26569,"t":"code","b":[254,141],"m":"cp","o":"$8D"},{"a":26571,"t":"code","b":[48,80],"m":"jr","oa":26653,"o":"nc,$681D"},{"a":26573,"t":"code","b":[205,137,120],"m":"call","oa":30857,"o":"is_loose"},{"a":26576,"t":"code","b":[32,75],"m":"jr","oa":26653,"o":"nz,$681D"},{"a":26578,"t":"code","b":[221,203,1,126],"m":"bit","o":"7,(ix+$01)"},{"a":26582,"t":"code","b":[40,69],"m":"jr","oa":26653,"o":"z,$681D"},{"a":26584,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":26587,"t":"code","b":[187],"m":"cp","o":"e"},{"a":26588,"t":"code","b":[32,63],"m":"jr","oa":26653,"o":"nz,$681D"},{"a":26590,"t":"code","b":[205,162,120],"m":"call","oa":30882,"o":"entry_column"},{"a":26593,"t":"code","b":[186],"m":"cp","o":"d"},{"a":26594,"t":"code","b":[32,57],"m":"jr","oa":26653,"o":"nz,$681D"},{"a":26596,"t":"code","b":[62,145],"m":"ld","o":"a,$91"},{"a":26598,"t":"code","b":[144],"m":"sub","o":"b"},{"a":26599,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26600,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26601,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":26604,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26605,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26606,"c":"The terrain under the object, in $5B10; the heaviest object found so far (byte 1 of its type record, from $949D) is kept in $5B2C (type), $5B2D (index) and $5B2E (weight). The list stops at ten objects.","t":"code","b":[205,142,120],"m":"call","oa":30862,"o":"terrain_under"},{"a":26609,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":26612,"t":"code","b":[229],"m":"push","o":"hl"},{"a":26613,"t":"code","b":[58,221,208],"m":"ld","oa":53469,"o":"a,($D0DD)"},{"a":26616,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26617,"t":"code","b":[50,221,208],"m":"ld","oa":53469,"o":"($D0DD),a"},{"a":26620,"t":"code","b":[205,157,148],"m":"call","oa":38045,"o":"object_record_of"},{"a":26623,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)"},{"a":26626,"t":"code","b":[33,46,91],"m":"ld","o":"hl,$5B2E"},{"a":26629,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":26630,"t":"code","b":[56,13],"m":"jr","oa":26645,"o":"c,$6815"},{"a":26632,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26633,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":26636,"t":"code","b":[50,44,91],"m":"ld","oa":23340,"o":"($5B2C),a"},{"a":26639,"t":"code","b":[62,145],"m":"ld","o":"a,$91"},{"a":26641,"t":"code","b":[144],"m":"sub","o":"b"},{"a":26642,"t":"code","b":[50,45,91],"m":"ld","oa":23341,"o":"($5B2D),a"},{"a":26645,"t":"code","b":[225],"m":"pop","o":"hl","x":[26630]},{"a":26646,"t":"code","b":[58,221,208],"m":"ld","oa":53469,"o":"a,($D0DD)"},{"a":26649,"t":"code","b":[254,10],"m":"cp","o":"$0A"},{"a":26651,"t":"code","b":[40,13],"m":"jr","oa":26666,"o":"z,$682A"},{"a":26653,"t":"code","b":[1,6,0],"m":"ld","o":"bc,$0006","x":[26563,26567,26571,26576,26582,26588,26594]},{"a":26656,"t":"code","b":[221,9],"m":"add","o":"ix,bc"},{"a":26658,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":26659,"t":"code","b":[16,153],"m":"djnz","oa":26558,"o":"$67BE"},{"a":26661,"t":"code","b":[253,225],"m":"pop","o":"iy"},{"a":26663,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":26665,"t":"code","b":[201],"m":"ret"},{"a":26666,"t":"code","b":[193],"m":"pop","o":"bc","x":[26651]},{"a":26667,"t":"code","b":[253,225],"m":"pop","o":"iy"},{"a":26669,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":26671,"t":"code","b":[201],"m":"ret"},{"a":26672,"l":"clear_bars","c":"Clears the attributes of the information display's right-hand area, ten cells wide from $5816, for 21 rows (the select menu's area).","t":"code","b":[33,22,88],"m":"ld","o":"hl,$5816","x":[27452,27962,30002,36582,36717]},{"a":26675,"t":"code","b":[6,21],"m":"ld","o":"b,$15"},{"a":26677,"t":"code","b":[24,5],"m":"jr","oa":26684,"o":"$683C"},{"a":26679,"l":"clear_lower_bars","c":"The same for 14 rows from $58F6.","t":"code","b":[33,246,88],"m":"ld","o":"hl,$58F6","x":[36797]},{"a":26682,"t":"code","b":[6,14],"m":"ld","o":"b,$0E"},{"a":26684,"t":"code","b":[17,22,0],"m":"ld","o":"de,$0016","x":[26677]},{"a":26687,"t":"code","b":[197],"m":"push","o":"bc","x":[26697]},{"a":26688,"t":"code","b":[6,10],"m":"ld","o":"b,$0A"},{"a":26690,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00","x":[26693]},{"a":26692,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26693,"t":"code","b":[16,251],"m":"djnz","oa":26690,"o":"$6842"},{"a":26695,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26696,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":26697,"t":"code","b":[16,244],"m":"djnz","oa":26687,"o":"$683F"},{"a":26699,"t":"code","b":[201],"m":"ret"},{"a":26700,"l":"draw_menu_frame","c":"Draws the frame of the information display: twelve rows of panel graphic 4 from the game's own message table, from row 7, column 22 down.","t":"code","b":[33,7,22],"m":"ld","o":"hl,$1607","x":[25053,36800]},{"a":26703,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":26706,"t":"code","b":[6,12],"m":"ld","o":"b,$0C"},{"a":26708,"t":"code","b":[197],"m":"push","o":"bc","x":[26719]},{"a":26709,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":26711,"t":"code","b":[205,87,171],"m":"call","oa":43863,"o":"print_panel_text"},{"a":26714,"t":"code","b":[33,26,91],"m":"ld","o":"hl,$5B1A"},{"a":26717,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":26718,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":26719,"t":"code","b":[16,243],"m":"djnz","oa":26708,"o":"$6854"},{"a":26721,"t":"code","b":[201],"m":"ret"},{"a":26722,"l":"attack_terrain","c":"A creature walking into a square it cannot enter attacks the terrain there. Not allowed when the creature is on the ground and carries nothing that allows it ($5B43 is 0 and $7156 finds nothing): ATTACK NOT ALLOWED. Otherwise needs 6 action points and 6 stamina (NOT ENOUGH ACTION POINTS, NOT ENOUGH STAMINA; for the computer player $D181 is set to 1 instead of a message) and takes 6 of each. A random number against the terrain's toughness (byte 1 of its record, $9124; the creature's strength through $A734) decides whether it breaks; a broken square becomes the terrain named by the top two bits of byte 4 of its record ($68FC) and the map is redrawn when the turn is shown ($D066 is 0).","t":"code","b":[58,67,91],"m":"ld","oa":23363,"o":"a,($5B43)","x":[27116,39973]},{"a":26725,"t":"code","b":[183],"m":"or","o":"a"},{"a":26726,"t":"code","b":[32,11],"m":"jr","oa":26739,"o":"nz,$6873"},{"a":26728,"t":"code","b":[205,86,113],"m":"call","oa":29014,"o":"find_partner"},{"a":26731,"t":"code","b":[32,6],"m":"jr","oa":26739,"o":"nz,$6873"},{"a":26733,"t":"code","b":[62,182],"m":"ld","o":"a,$B6"},{"a":26735,"t":"code","b":[205,130,106],"m":"call","oa":27266,"o":"show_message"},{"a":26738,"t":"code","b":[201],"m":"ret"},{"a":26739,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[26726,26731]},{"a":26742,"t":"code","b":[254,6],"m":"cp","o":"$06"},{"a":26744,"t":"code","b":[62,180],"m":"ld","o":"a,$B4"},{"a":26746,"t":"code","b":[56,110],"m":"jr","oa":26858,"o":"c,$68EA"},{"a":26748,"t":"code","b":[58,252,209],"m":"ld","oa":53756,"o":"a,($D1FC)"},{"a":26751,"t":"code","b":[254,6],"m":"cp","o":"$06"},{"a":26753,"t":"code","b":[62,181],"m":"ld","o":"a,$B5"},{"a":26755,"t":"code","b":[56,101],"m":"jr","oa":26858,"o":"c,$68EA"},{"a":26757,"t":"code","b":[42,80,91],"m":"ld","oa":23376,"o":"hl,($5B50)"},{"a":26760,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26761,"t":"code","b":[214,6],"m":"sub","o":"$06"},{"a":26763,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26764,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":26767,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26768,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26769,"t":"code","b":[214,6],"m":"sub","o":"$06"},{"a":26771,"t":"code","b":[50,252,209],"m":"ld","oa":53756,"o":"($D1FC),a"},{"a":26774,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26775,"t":"code","b":[243],"m":"di"},{"a":26776,"t":"code","b":[205,210,181],"m":"call","oa":46546,"o":"keep_figures"},{"a":26779,"t":"code","b":[237,91,138,255],"m":"ld","oa":65418,"o":"de,($FF8A)"},{"a":26783,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":26786,"t":"code","b":[183],"m":"or","o":"a"},{"a":26787,"t":"code","b":[204,194,174],"m":"call","oa":44738,"o":"z,draw_hit"},{"a":26790,"t":"code","b":[205,36,145],"m":"call","oa":37156,"o":"terrain_record_here"},{"a":26793,"t":"code","b":[58,254,209],"m":"ld","oa":53758,"o":"a,($D1FE)"},{"a":26796,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":26797,"t":"code","b":[205,52,167],"m":"call","oa":42804,"o":"random_below_a"},{"a":26800,"t":"code","b":[253,190,1],"m":"cp","o":"(iy+$01)"},{"a":26803,"t":"code","b":[56,28],"m":"jr","oa":26833,"o":"c,$68D1"},{"a":26805,"t":"code","b":[205,252,104],"m":"call","oa":26876,"o":"terrain_remains"},{"a":26808,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":26811,"t":"code","b":[237,91,138,255],"m":"ld","oa":65418,"o":"de,($FF8A)"},{"a":26815,"t":"code","b":[205,129,115],"m":"call","oa":29569,"o":"set_terrain_under"},{"a":26818,"t":"code","b":[42,138,255],"m":"ld","oa":65418,"o":"hl,($FF8A)"},{"a":26821,"t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":26824,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26825,"t":"code","b":[254,80],"m":"cp","o":"$50"},{"a":26827,"t":"code","b":[48,4],"m":"jr","oa":26833,"o":"nc,$68D1"},{"a":26829,"t":"code","b":[58,16,91],"m":"ld","oa":23312,"o":"a,($5B10)"},{"a":26832,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26833,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)","x":[26803,26827]},{"a":26836,"t":"code","b":[183],"m":"or","o":"a"},{"a":26837,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":26838,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":26841,"t":"code","b":[175],"m":"xor","o":"a"},{"a":26842,"t":"code","b":[50,208,208],"m":"ld","oa":53456,"o":"($D0D0),a"},{"a":26845,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":26848,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":26850,"t":"code","b":[50,91,180],"m":"ld","oa":46171,"o":"(blink_count),a"},{"a":26853,"t":"code","b":[50,215,208],"m":"ld","oa":53463,"o":"($D0D7),a"},{"a":26856,"t":"code","b":[251],"m":"ei"},{"a":26857,"t":"code","b":[201],"m":"ret"},{"a":26858,"t":"code","b":[33,99,208],"m":"ld","o":"hl,$D063","x":[26746,26755]},{"a":26861,"t":"code","b":[203,70],"m":"bit","o":"0,(hl)"},{"a":26863,"t":"code","b":[40,6],"m":"jr","oa":26871,"o":"z,$68F7"},{"a":26865,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":26867,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":26870,"t":"code","b":[201],"m":"ret"},{"a":26871,"t":"code","b":[205,130,106],"m":"call","oa":27266,"o":"show_message","x":[26863]},{"a":26874,"t":"code","b":[251],"m":"ei"},{"a":26875,"t":"code","b":[201],"m":"ret"},{"a":26876,"l":"terrain_remains","c":"The terrain a destroyed square turns into: the top two bits of byte 4 of the terrain record at IY, as a number from 0 to 3.","t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)","x":[26805,35095]},{"a":26879,"t":"code","b":[230,192],"m":"and","o":"$C0"},{"a":26881,"t":"code","b":[7],"m":"rlca"},{"a":26882,"t":"code","b":[7],"m":"rlca"},{"a":26883,"t":"code","b":[201],"m":"ret"},{"a":26884,"l":"select_air","c":"SELECT-A on the cursor menu: selects the flying creature at the cursor ($5B35, index $5B37) and goes on into select mode (select_ground's second half).","t":"code","b":[243],"m":"di"},{"a":26885,"t":"code","b":[205,98,170],"m":"call","oa":43618,"o":"map_address_cursor"},{"a":26888,"t":"code","b":[221,42,53,91],"m":"ld","oa":23349,"o":"ix,($5B35)"},{"a":26892,"t":"code","b":[221,34,249,255],"m":"ld","oa":65529,"o":"($FFF9),ix"},{"a":26896,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":26899,"t":"code","b":[50,18,91],"m":"ld","oa":23314,"o":"($5B12),a"},{"a":26902,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26903,"t":"code","b":[58,55,91],"m":"ld","oa":23351,"o":"a,($5B37)"},{"a":26906,"t":"code","b":[50,88,91],"m":"ld","oa":23384,"o":"($5B58),a"},{"a":26909,"t":"code","b":[24,25],"m":"jr","oa":26936,"o":"$6938"},{"a":26911,"l":"select_ground","c":"SELECT-G on the cursor menu, and where RIDE and RIDER start select mode again: selects the creature in $5B38 (index $5B3A). Then select mode: the creature's figures are loaded ($9342), its panel and the moves are drawn ($8FBD, make_selected, $907B) and a loop reads the controls and moves the cursor. Fire on one of the eight squares around the creature (the list at $FF0C) tries a step there: $CA2B and the scenario's hook at $D01E decide what the step means ($FF8F): 5 a move (on the game's first turn the select menu opens instead; made by $B4EB, then the scenario's hook at $D021, a sound and step_effects; ENGAGED TO ENEMY when it ends engaged), 4 an attack ($84EC), 0 an attack on the terrain (attack_terrain), 7 nothing, anything else a message from $B4 up. Fire anywhere else opens the select menu ($6B31).","t":"code","b":[243],"m":"di","x":[29136,29183]},{"a":26912,"t":"code","b":[205,98,170],"m":"call","oa":43618,"o":"map_address_cursor"},{"a":26915,"t":"code","b":[221,42,56,91],"m":"ld","oa":23352,"o":"ix,($5B38)"},{"a":26919,"t":"code","b":[221,34,249,255],"m":"ld","oa":65529,"o":"($FFF9),ix"},{"a":26923,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":26926,"t":"code","b":[50,18,91],"m":"ld","oa":23314,"o":"($5B12),a"},{"a":26929,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26930,"t":"code","b":[58,58,91],"m":"ld","oa":23354,"o":"a,($5B3A)"},{"a":26933,"t":"code","b":[50,88,91],"m":"ld","oa":23384,"o":"($5B58),a"},{"a":26936,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)","x":[26909]},{"a":26939,"t":"code","b":[34,136,255],"m":"ld","oa":65416,"o":"($FF88),hl"},{"a":26942,"t":"code","b":[205,44,101],"m":"call","oa":25900,"o":"describe_creature"},{"a":26945,"t":"code","b":[205,62,101],"m":"call","oa":25918,"o":"fill_icon_list"},{"a":26948,"t":"code","b":[205,66,147],"m":"call","oa":37698,"o":"load_figures"},{"a":26951,"t":"code","b":[205,189,143],"m":"call","oa":36797,"o":"draw_creature_panel"},{"a":26954,"t":"code","b":[205,235,143],"m":"call","oa":36843,"o":"make_selected"},{"a":26957,"t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre"},{"a":26960,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":26963,"t":"code","b":[251],"m":"ei"},{"a":26964,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":26967,"t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls","x":[27139,27146]},{"a":26970,"t":"code","b":[205,155,98],"m":"call","oa":25243,"o":"move_cursor"},{"a":26973,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":26976,"t":"code","b":[15],"m":"rrca"},{"a":26977,"t":"code","b":[218,6,106],"m":"jp","oa":27142,"o":"c,$6A06"},{"a":26980,"t":"code","b":[243],"m":"di"},{"a":26981,"t":"code","b":[205,168,144],"m":"call","oa":37032,"o":"list_neighbours_of_selected"},{"a":26984,"t":"code","b":[33,12,255],"m":"ld","o":"hl,$FF0C"},{"a":26987,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":26989,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":26991,"t":"code","b":[58,211,208],"m":"ld","oa":53459,"o":"a,($D0D3)","x":[27009]},{"a":26994,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":26995,"t":"code","b":[32,8],"m":"jr","oa":27005,"o":"nz,$697D"},{"a":26997,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26998,"t":"code","b":[58,212,208],"m":"ld","oa":53460,"o":"a,($D0D4)"},{"a":27001,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":27002,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":27003,"t":"code","b":[40,8],"m":"jr","oa":27013,"o":"z,$6985"},{"a":27005,"t":"code","b":[35],"m":"inc","o":"hl","x":[26995]},{"a":27006,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":27007,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":27008,"t":"code","b":[12],"m":"inc","o":"c"},{"a":27009,"t":"code","b":[16,236],"m":"djnz","oa":26991,"o":"$696F"},{"a":27011,"t":"code","b":[24,122],"m":"jr","oa":27135,"o":"$69FF"},{"a":27013,"t":"code","b":[35],"m":"inc","o":"hl","x":[27003]},{"a":27014,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":27015,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":27016,"t":"code","b":[50,146,255],"m":"ld","oa":65426,"o":"($FF92),a"},{"a":27019,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":27020,"t":"code","b":[50,147,255],"m":"ld","oa":65427,"o":"($FF93),a"},{"a":27023,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":27026,"t":"code","b":[205,43,202],"m":"call","oa":51755,"o":"classify_step"},{"a":27029,"t":"code","b":[205,30,208],"m":"call","oa":53278,"o":"$D01E"},{"a":27032,"t":"code","b":[58,143,255],"m":"ld","oa":65423,"o":"a,($FF8F)"},{"a":27035,"t":"code","b":[254,5],"m":"cp","o":"$05"},{"a":27037,"t":"code","b":[32,58],"m":"jr","oa":27097,"o":"nz,$69D9"},{"a":27039,"t":"code","b":[58,101,208],"m":"ld","oa":53349,"o":"a,($D065)"},{"a":27042,"t":"code","b":[254,1],"m":"cp","o":"$01"},{"a":27044,"t":"code","b":[40,89],"m":"jr","oa":27135,"o":"z,$69FF"},{"a":27046,"t":"code","b":[205,235,180],"m":"call","oa":46315,"o":"move_selected"},{"a":27049,"t":"code","b":[205,33,208],"m":"call","oa":53281,"o":"$D021"},{"a":27052,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":27054,"t":"code","b":[205,78,200],"m":"call","oa":51278,"o":"start_sound"},{"a":27057,"t":"code","b":[205,152,127],"m":"call","oa":32664,"o":"step_effects"},{"a":27060,"t":"code","b":[58,48,255],"m":"ld","oa":65328,"o":"a,($FF30)"},{"a":27063,"t":"code","b":[183],"m":"or","o":"a"},{"a":27064,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":27065,"t":"code","b":[205,55,106],"m":"call","oa":27191,"o":"cursor_to_step"},{"a":27068,"t":"code","b":[253,42,80,91],"m":"ld","oa":23376,"o":"iy,($5B50)"},{"a":27072,"t":"code","b":[253,203,4,102],"m":"bit","o":"4,(iy+$04)"},{"a":27076,"t":"code","b":[40,7],"m":"jr","oa":27085,"o":"z,$69CD"},{"a":27078,"t":"code","b":[62,185],"m":"ld","o":"a,$B9"},{"a":27080,"t":"code","b":[205,130,106],"m":"call","oa":27266,"o":"show_message"},{"a":27083,"t":"code","b":[24,57],"m":"jr","oa":27142,"o":"$6A06"},{"a":27085,"t":"code","b":[205,51,121],"m":"call","oa":31027,"o":"show_enemy_spotted","x":[27076]},{"a":27088,"t":"code","b":[204,153,101],"m":"call","oa":26009,"o":"z,print_square_name"},{"a":27091,"t":"code","b":[251],"m":"ei"},{"a":27092,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":27095,"t":"code","b":[24,45],"m":"jr","oa":27142,"o":"$6A06"},{"a":27097,"t":"code","b":[58,143,255],"m":"ld","oa":65423,"o":"a,($FF8F)","x":[27037]},{"a":27100,"t":"code","b":[254,4],"m":"cp","o":"$04"},{"a":27102,"t":"code","b":[32,6],"m":"jr","oa":27110,"o":"nz,$69E6"},{"a":27104,"t":"code","b":[205,236,132],"m":"call","oa":34028,"o":"attack"},{"a":27107,"t":"code","b":[243],"m":"di"},{"a":27108,"t":"code","b":[24,32],"m":"jr","oa":27142,"o":"$6A06"},{"a":27110,"t":"code","b":[58,143,255],"m":"ld","oa":65423,"o":"a,($FF8F)","x":[27102]},{"a":27113,"t":"code","b":[183],"m":"or","o":"a"},{"a":27114,"t":"code","b":[32,5],"m":"jr","oa":27121,"o":"nz,$69F1"},{"a":27116,"t":"code","b":[205,98,104],"m":"call","oa":26722,"o":"attack_terrain"},{"a":27119,"t":"code","b":[24,21],"m":"jr","oa":27142,"o":"$6A06"},{"a":27121,"t":"code","b":[58,143,255],"m":"ld","oa":65423,"o":"a,($FF8F)","x":[27114]},{"a":27124,"t":"code","b":[254,7],"m":"cp","o":"$07"},{"a":27126,"t":"code","b":[40,7],"m":"jr","oa":27135,"o":"z,$69FF"},{"a":27128,"t":"code","b":[198,179],"m":"add","o":"a,$B3"},{"a":27130,"t":"code","b":[205,130,106],"m":"call","oa":27266,"o":"show_message"},{"a":27133,"t":"code","b":[24,7],"m":"jr","oa":27142,"o":"$6A06"},{"a":27135,"t":"code","b":[251],"m":"ei","x":[27011,27044,27126]},{"a":27136,"t":"code","b":[205,49,107],"m":"call","oa":27441,"o":"select_menu"},{"a":27139,"t":"code","b":[195,87,105],"m":"jp","oa":26967,"o":"$6957"},{"a":27142,"t":"code","b":[205,13,106],"m":"call","oa":27149,"o":"update_info_panel","x":[26977,27083,27095,27108,27119,27133]},{"a":27145,"t":"code","b":[251],"m":"ei"},{"a":27146,"t":"code","b":[195,87,105],"m":"jp","oa":26967,"o":"$6957"},{"a":27149,"l":"update_info_panel","c":"While the cursor moves ($D0D8) the information display is cleared once ($63EA, $913B, $D0D7 set); when it stops it is filled again for the square under the cursor and $D0D7 cleared.","t":"code","b":[58,216,208],"m":"ld","oa":53464,"o":"a,($D0D8)","x":[27142,29232]},{"a":27152,"t":"code","b":[183],"m":"or","o":"a"},{"a":27153,"t":"code","b":[40,17],"m":"jr","oa":27172,"o":"z,$6A24"},{"a":27155,"t":"code","b":[58,215,208],"m":"ld","oa":53463,"o":"a,($D0D7)"},{"a":27158,"t":"code","b":[183],"m":"or","o":"a"},{"a":27159,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":27160,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":27162,"t":"code","b":[50,215,208],"m":"ld","oa":53463,"o":"($D0D7),a"},{"a":27165,"t":"code","b":[205,234,99],"m":"call","oa":25578,"o":"clear_info_panel"},{"a":27168,"t":"code","b":[205,59,145],"m":"call","oa":37179,"o":"short_wait"},{"a":27171,"t":"code","b":[201],"m":"ret"},{"a":27172,"t":"code","b":[58,215,208],"m":"ld","oa":53463,"o":"a,($D0D7)","x":[27153]},{"a":27175,"t":"code","b":[183],"m":"or","o":"a"},{"a":27176,"t":"code","b":[200],"m":"ret","o":"z"},{"a":27177,"t":"code","b":[205,157,100],"m":"call","oa":25757,"o":"describe_cursor_square"},{"a":27180,"t":"code","b":[205,62,101],"m":"call","oa":25918,"o":"fill_icon_list"},{"a":27183,"t":"code","b":[205,153,101],"m":"call","oa":26009,"o":"print_square_name"},{"a":27186,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27187,"t":"code","b":[50,215,208],"m":"ld","oa":53463,"o":"($D0D7),a"},{"a":27190,"t":"code","b":[201],"m":"ret"},{"a":27191,"l":"cursor_to_step","c":"After a step, puts the cursor on the square the creature stepped to: three plus the step's row and column (from the table at $B49D, entry $FF93) from the window's origin, wrapping at 36; redraws the map and clears the message line.","t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre","x":[27065]},{"a":27194,"t":"code","b":[58,147,255],"m":"ld","oa":65427,"o":"a,($FF93)"},{"a":27197,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":27198,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":27199,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":27201,"t":"code","b":[17,157,180],"m":"ld","o":"de,$B49D"},{"a":27204,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":27205,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":27206,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":27207,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":27208,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":27210,"t":"code","b":[131],"m":"add","o":"a,e"},{"a":27211,"t":"code","b":[50,209,208],"m":"ld","oa":53457,"o":"($D0D1),a"},{"a":27214,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":27216,"t":"code","b":[130],"m":"add","o":"a,d"},{"a":27217,"t":"code","b":[50,210,208],"m":"ld","oa":53458,"o":"($D0D2),a"},{"a":27220,"t":"code","b":[58,200,208],"m":"ld","oa":53448,"o":"a,($D0C8)"},{"a":27223,"t":"code","b":[33,209,208],"m":"ld","o":"hl,$D0D1"},{"a":27226,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":27227,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":27229,"t":"code","b":[56,2],"m":"jr","oa":27233,"o":"c,$6A61"},{"a":27231,"t":"code","b":[214,36],"m":"sub","o":"$24"},{"a":27233,"t":"code","b":[50,211,208],"m":"ld","oa":53459,"o":"($D0D3),a","x":[27229]},{"a":27236,"t":"code","b":[58,201,208],"m":"ld","oa":53449,"o":"a,($D0C9)"},{"a":27239,"t":"code","b":[33,210,208],"m":"ld","o":"hl,$D0D2"},{"a":27242,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":27243,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":27245,"t":"code","b":[56,2],"m":"jr","oa":27249,"o":"c,$6A71"},{"a":27247,"t":"code","b":[214,36],"m":"sub","o":"$24"},{"a":27249,"t":"code","b":[50,212,208],"m":"ld","oa":53460,"o":"($D0D4),a","x":[27245]},{"a":27252,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":27255,"t":"code","b":[205,98,170],"m":"call","oa":43618,"o":"map_address_cursor"},{"a":27258,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":27259,"t":"code","b":[50,18,91],"m":"ld","oa":23314,"o":"($5B12),a"},{"a":27262,"t":"code","b":[205,100,100],"m":"call","oa":25700,"o":"clear_message_line"},{"a":27265,"t":"code","b":[201],"m":"ret"},{"a":27266,"l":"show_message","c":"Shows message A from the scenario's table on the message line in white, double height, sets $5B42, waits for the controls to be let go and pressed ($91CA, $91DB) and clears the line again.","t":"code","b":[245],"m":"push","o":"af","x":[26735,26871,27080,27130,31267,31627,33128,34225,34232,34439,35256,35684]},{"a":27267,"t":"code","b":[205,117,100],"m":"call","oa":25717,"o":"blank_message_line"},{"a":27270,"t":"code","b":[33,7,71],"m":"ld","o":"hl,$4707"},{"a":27273,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":27276,"t":"code","b":[33,22,0],"m":"ld","o":"hl,$0016"},{"a":27279,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":27282,"t":"code","b":[241],"m":"pop","o":"af"},{"a":27283,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":27286,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":27288,"t":"code","b":[50,66,91],"m":"ld","oa":23362,"o":"($5B42),a"},{"a":27291,"t":"code","b":[251],"m":"ei"},{"a":27292,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":27295,"t":"code","b":[205,219,145],"m":"call","oa":37339,"o":"wait_press"},{"a":27298,"t":"code","b":[205,100,100],"m":"call","oa":25700,"o":"clear_message_line"},{"a":27301,"t":"code","b":[201],"m":"ret"},{"a":27302,"l":"end_move","c":"END MOVE (select menu option 0), also called by the computer player. Puts the selected creature down where it stands: the map square it left gets back what lay there ($FF90), its position, the terrain under it and its action points and stamina come from the copies at $5B30-$5B34, bit 4 of byte 4 of its record is cleared, and a creature it rides on keeps it as rider. When it is not the computer's turn ($D063 is 0) it also leaves select mode, by discarding its caller's return address.","t":"code","b":[205,86,113],"m":"call","oa":29014,"o":"find_partner","x":[38973,38981,39744]},{"a":27305,"t":"code","b":[194,41,107],"m":"jp","oa":27433,"o":"nz,$6B29"},{"a":27308,"t":"code","b":[221,34,161,209],"m":"ld","oa":53665,"o":"($D1A1),ix"},{"a":27312,"t":"code","b":[205,103,170],"m":"call","oa":43623,"o":"map_address_selected"},{"a":27315,"t":"code","b":[58,144,255],"m":"ld","oa":65424,"o":"a,($FF90)"},{"a":27318,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":27319,"t":"code","b":[42,48,91],"m":"ld","oa":23344,"o":"hl,($5B30)"},{"a":27322,"t":"code","b":[34,85,91],"m":"ld","oa":23381,"o":"($5B55),hl"},{"a":27325,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":27329,"t":"code","b":[205,84,181],"m":"call","oa":46420,"o":"set_entry_square"},{"a":27332,"t":"code","b":[33,52,91],"m":"ld","o":"hl,$5B34"},{"a":27335,"t":"code","b":[221,126,3],"m":"ld","o":"a,(ix+$03)"},{"a":27338,"t":"code","b":[230,128],"m":"and","o":"$80"},{"a":27340,"t":"code","b":[182],"m":"or","o":"(hl)"},{"a":27341,"t":"code","b":[221,119,3],"m":"ld","o":"(ix+$03),a"},{"a":27344,"t":"code","b":[58,52,91],"m":"ld","oa":23348,"o":"a,($5B34)"},{"a":27347,"t":"code","b":[50,92,180],"m":"ld","oa":46172,"o":"(pictures),a"},{"a":27350,"t":"code","b":[50,145,255],"m":"ld","oa":65425,"o":"($FF91),a"},{"a":27353,"t":"code","b":[205,103,170],"m":"call","oa":43623,"o":"map_address_selected"},{"a":27356,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":27357,"t":"code","b":[50,144,255],"m":"ld","oa":65424,"o":"($FF90),a"},{"a":27360,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":27362,"t":"code","b":[48,4],"m":"jr","oa":27368,"o":"nc,$6AE8"},{"a":27364,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":27367,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":27368,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)","x":[27362]},{"a":27372,"t":"code","b":[58,50,91],"m":"ld","oa":23346,"o":"a,($5B32)"},{"a":27375,"t":"code","b":[221,119,0],"m":"ld","o":"(ix+$00),a"},{"a":27378,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":27381,"t":"code","b":[58,51,91],"m":"ld","oa":23347,"o":"a,($5B33)"},{"a":27384,"t":"code","b":[221,119,1],"m":"ld","o":"(ix+$01),a"},{"a":27387,"t":"code","b":[50,252,209],"m":"ld","oa":53756,"o":"($D1FC),a"},{"a":27390,"t":"code","b":[221,203,4,166],"m":"res","o":"4,(ix+$04)"},{"a":27394,"t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre"},{"a":27397,"t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)"},{"a":27400,"t":"code","b":[205,97,181],"m":"call","oa":46433,"o":"move_carried"},{"a":27403,"t":"code","b":[58,144,255],"m":"ld","oa":65424,"o":"a,($FF90)"},{"a":27406,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":27408,"t":"code","b":[56,23],"m":"jr","oa":27433,"o":"c,$6B29"},{"a":27410,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27411,"t":"code","b":[50,67,91],"m":"ld","oa":23363,"o":"($5B43),a"},{"a":27414,"t":"code","b":[205,86,113],"m":"call","oa":29014,"o":"find_partner"},{"a":27417,"t":"code","b":[32,14],"m":"jr","oa":27433,"o":"nz,$6B29"},{"a":27419,"t":"code","b":[58,163,209],"m":"ld","oa":53667,"o":"a,($D1A3)"},{"a":27422,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":27426,"t":"code","b":[221,119,4],"m":"ld","o":"(ix+$04),a"},{"a":27429,"t":"code","b":[221,203,3,254],"m":"set","o":"7,(ix+$03)"},{"a":27433,"t":"code","b":[58,99,208],"m":"ld","oa":53347,"o":"a,($D063)","x":[27305,27408,27417]},{"a":27436,"t":"code","b":[183],"m":"or","o":"a"},{"a":27437,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":27438,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":27439,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":27440,"t":"code","b":[201],"m":"ret"},{"a":27441,"l":"select_menu","c":"The select mode menu, opened by fire away from the creature's neighbouring squares: builds the list of options this creature can take now ($9315 adds one, its name printed in the menu) and dispatches the choice through select_actions. Always END MOVE, CENTRE and BIG MAP; RIDE and RIDER for a mount and a rider; CAST-A and CAST-G for a wizard (type below $90); LAND and FLY when it can fly ($D190, $D191); DROP, CHANGE and PICK UP by what it holds and what lies there (8 action points for PICK UP, 4 for the rest); USE, DRINK, FILL and EAT by the object in use ($73AA, $747E, $74D2); THROW, FIRE and READ by bits of its type record; then the scenario's hook at $D02A, which may add options of its own; and CANCEL.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[27136]},{"a":27443,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":27446,"t":"code","b":[205,100,100],"m":"call","oa":25700,"o":"clear_message_line"},{"a":27449,"t":"code","b":[205,153,101],"m":"call","oa":26009,"o":"print_square_name"},{"a":27452,"t":"code","b":[205,48,104],"m":"call","oa":26672,"o":"clear_bars"},{"a":27455,"t":"code","b":[205,255,146],"m":"call","oa":37631,"o":"start_menu"},{"a":27458,"t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)"},{"a":27461,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":27464,"t":"code","b":[50,145,255],"m":"ld","oa":65425,"o":"($FF91),a"},{"a":27467,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":27470,"t":"code","b":[61],"m":"dec","o":"a"},{"a":27471,"t":"code","b":[50,38,91],"m":"ld","oa":23334,"o":"($5B26),a"},{"a":27474,"t":"code","b":[6,0],"m":"ld","o":"b,$00"},{"a":27476,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":27479,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":27481,"t":"code","b":[48,2],"m":"jr","oa":27485,"o":"nc,$6B5D"},{"a":27483,"t":"code","b":[6,1],"m":"ld","o":"b,$01"},{"a":27485,"t":"code","b":[33,39,91],"m":"ld","o":"hl,$5B27","x":[27481]},{"a":27488,"t":"code","b":[112],"m":"ld","o":"(hl),b"},{"a":27489,"t":"code","b":[205,65,103],"m":"call","oa":26433,"o":"list_selected_carries"},{"a":27492,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27493,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27496,"t":"code","b":[62,184],"m":"ld","o":"a,$B8"},{"a":27498,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27501,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":27503,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27506,"t":"code","b":[62,190],"m":"ld","o":"a,$BE"},{"a":27508,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27511,"t":"code","b":[62,20],"m":"ld","o":"a,$14"},{"a":27513,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27516,"t":"code","b":[62,177],"m":"ld","o":"a,$B1"},{"a":27518,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27521,"t":"code","b":[205,86,113],"m":"call","oa":29014,"o":"find_partner"},{"a":27524,"t":"code","b":[221,34,161,209],"m":"ld","oa":53665,"o":"($D1A1),ix"},{"a":27528,"t":"code","b":[194,215,107],"m":"jp","oa":27607,"o":"nz,$6BD7"},{"a":27531,"t":"code","b":[58,67,91],"m":"ld","oa":23363,"o":"a,($5B43)"},{"a":27534,"t":"code","b":[183],"m":"or","o":"a"},{"a":27535,"t":"code","b":[32,53],"m":"jr","oa":27590,"o":"nz,$6BC6"},{"a":27537,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":27540,"t":"code","b":[254,10],"m":"cp","o":"$0A"},{"a":27542,"t":"code","b":[218,31,109],"m":"jp","oa":27935,"o":"c,$6D1F"},{"a":27545,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":27548,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":27550,"t":"code","b":[202,31,109],"m":"jp","oa":27935,"o":"z,$6D1F"},{"a":27553,"t":"code","b":[253,42,82,91],"m":"ld","oa":23378,"o":"iy,($5B52)"},{"a":27557,"t":"code","b":[253,203,11,94],"m":"bit","o":"3,(iy+$0B)"},{"a":27561,"t":"code","b":[202,31,109],"m":"jp","oa":27935,"o":"z,$6D1F"},{"a":27564,"t":"code","b":[205,167,181],"m":"call","oa":46503,"o":"type_record_of"},{"a":27567,"t":"code","b":[253,203,11,70],"m":"bit","o":"0,(iy+$0B)"},{"a":27571,"t":"code","b":[202,31,109],"m":"jp","oa":27935,"o":"z,$6D1F"},{"a":27574,"t":"code","b":[58,163,209],"m":"ld","oa":53667,"o":"a,($D1A3)"},{"a":27577,"t":"code","b":[205,73,103],"m":"call","oa":26441,"o":"list_carried"},{"a":27580,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":27583,"t":"code","b":[183],"m":"or","o":"a"},{"a":27584,"t":"code","b":[194,31,109],"m":"jp","oa":27935,"o":"nz,$6D1F"},{"a":27587,"t":"code","b":[205,65,103],"m":"call","oa":26433,"o":"list_selected_carries"},{"a":27590,"t":"code","b":[62,8],"m":"ld","o":"a,$08","x":[27535]},{"a":27592,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27595,"t":"code","b":[62,197],"m":"ld","o":"a,$C5"},{"a":27597,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27600,"t":"code","b":[58,67,91],"m":"ld","oa":23363,"o":"a,($5B43)"},{"a":27603,"t":"code","b":[183],"m":"or","o":"a"},{"a":27604,"t":"code","b":[202,31,109],"m":"jp","oa":27935,"o":"z,$6D1F"},{"a":27607,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)","x":[27528]},{"a":27610,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":27612,"t":"code","b":[48,20],"m":"jr","oa":27634,"o":"nc,$6BF2"},{"a":27614,"t":"code","b":[62,209],"m":"ld","o":"a,$D1"},{"a":27616,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27619,"t":"code","b":[62,18],"m":"ld","o":"a,$12"},{"a":27621,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27624,"t":"code","b":[62,210],"m":"ld","o":"a,$D2"},{"a":27626,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27629,"t":"code","b":[62,19],"m":"ld","o":"a,$13"},{"a":27631,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27634,"t":"code","b":[205,194,109],"m":"call","oa":28098,"o":"can_fly_or_land","x":[27612]},{"a":27637,"t":"code","b":[58,145,209],"m":"ld","oa":53649,"o":"a,($D191)"},{"a":27640,"t":"code","b":[183],"m":"or","o":"a"},{"a":27641,"t":"code","b":[40,10],"m":"jr","oa":27653,"o":"z,$6C05"},{"a":27643,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":27645,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27648,"t":"code","b":[62,186],"m":"ld","o":"a,$BA"},{"a":27650,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27653,"t":"code","b":[58,144,209],"m":"ld","oa":53648,"o":"a,($D190)","x":[27641]},{"a":27656,"t":"code","b":[183],"m":"or","o":"a"},{"a":27657,"t":"code","b":[40,10],"m":"jr","oa":27669,"o":"z,$6C15"},{"a":27659,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":27661,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27664,"t":"code","b":[62,187],"m":"ld","o":"a,$BB"},{"a":27666,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27669,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)","x":[27657]},{"a":27672,"t":"code","b":[183],"m":"or","o":"a"},{"a":27673,"t":"code","b":[40,26],"m":"jr","oa":27701,"o":"z,$6C35"},{"a":27675,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":27677,"t":"code","b":[56,12],"m":"jr","oa":27691,"o":"c,$6C2B"},{"a":27679,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":27681,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27684,"t":"code","b":[62,198],"m":"ld","o":"a,$C6"},{"a":27686,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27689,"t":"code","b":[24,10],"m":"jr","oa":27701,"o":"$6C35"},{"a":27691,"t":"code","b":[62,5],"m":"ld","o":"a,$05","x":[27677]},{"a":27693,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27696,"t":"code","b":[62,191],"m":"ld","o":"a,$BF"},{"a":27698,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27701,"t":"code","b":[205,198,120],"m":"call","oa":30918,"o":"carry_limit","x":[27673,27689]},{"a":27704,"t":"code","b":[183],"m":"or","o":"a"},{"a":27705,"t":"code","b":[40,70],"m":"jr","oa":27777,"o":"z,$6C81"},{"a":27707,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":27710,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":27712,"t":"code","b":[40,39],"m":"jr","oa":27753,"o":"z,$6C69"},{"a":27714,"t":"code","b":[58,67,91],"m":"ld","oa":23363,"o":"a,($5B43)"},{"a":27717,"t":"code","b":[183],"m":"or","o":"a"},{"a":27718,"t":"code","b":[32,33],"m":"jr","oa":27753,"o":"nz,$6C69"},{"a":27720,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":27723,"t":"code","b":[254,10],"m":"cp","o":"$0A"},{"a":27725,"t":"code","b":[40,26],"m":"jr","oa":27753,"o":"z,$6C69"},{"a":27727,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":27730,"t":"code","b":[254,8],"m":"cp","o":"$08"},{"a":27732,"t":"code","b":[56,19],"m":"jr","oa":27753,"o":"c,$6C69"},{"a":27734,"t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here"},{"a":27737,"t":"code","b":[58,221,208],"m":"ld","oa":53469,"o":"a,($D0DD)"},{"a":27740,"t":"code","b":[183],"m":"or","o":"a"},{"a":27741,"t":"code","b":[40,10],"m":"jr","oa":27753,"o":"z,$6C69"},{"a":27743,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":27745,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27748,"t":"code","b":[62,192],"m":"ld","o":"a,$C0"},{"a":27750,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27753,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[27712,27718,27725,27732,27741]},{"a":27756,"t":"code","b":[254,4],"m":"cp","o":"$04"},{"a":27758,"t":"code","b":[218,31,109],"m":"jp","oa":27935,"o":"c,$6D1F"},{"a":27761,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":27764,"t":"code","b":[183],"m":"or","o":"a"},{"a":27765,"t":"code","b":[40,10],"m":"jr","oa":27777,"o":"z,$6C81"},{"a":27767,"t":"code","b":[62,7],"m":"ld","o":"a,$07"},{"a":27769,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27772,"t":"code","b":[62,193],"m":"ld","o":"a,$C1"},{"a":27774,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27777,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[27705,27765]},{"a":27780,"t":"code","b":[254,4],"m":"cp","o":"$04"},{"a":27782,"t":"code","b":[218,31,109],"m":"jp","oa":27935,"o":"c,$6D1F"},{"a":27785,"t":"code","b":[205,170,115],"m":"call","oa":29610,"o":"can_drink"},{"a":27788,"t":"code","b":[40,10],"m":"jr","oa":27800,"o":"z,$6C98"},{"a":27790,"t":"code","b":[62,11],"m":"ld","o":"a,$0B"},{"a":27792,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27795,"t":"code","b":[62,200],"m":"ld","o":"a,$C8"},{"a":27797,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27800,"t":"code","b":[205,126,116],"m":"call","oa":29822,"o":"can_fill","x":[27788]},{"a":27803,"t":"code","b":[32,10],"m":"jr","oa":27815,"o":"nz,$6CA7"},{"a":27805,"t":"code","b":[62,12],"m":"ld","o":"a,$0C"},{"a":27807,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27810,"t":"code","b":[62,201],"m":"ld","o":"a,$C9"},{"a":27812,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27815,"t":"code","b":[205,210,116],"m":"call","oa":29906,"o":"can_eat","x":[27803]},{"a":27818,"t":"code","b":[40,10],"m":"jr","oa":27830,"o":"z,$6CB6"},{"a":27820,"t":"code","b":[62,13],"m":"ld","o":"a,$0D"},{"a":27822,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27825,"t":"code","b":[62,202],"m":"ld","o":"a,$CA"},{"a":27827,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27830,"t":"code","b":[253,42,82,91],"m":"ld","oa":23378,"o":"iy,($5B52)","x":[27818]},{"a":27834,"t":"code","b":[253,203,11,126],"m":"bit","o":"7,(iy+$0B)"},{"a":27838,"t":"code","b":[40,10],"m":"jr","oa":27850,"o":"z,$6CCA"},{"a":27840,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":27842,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27845,"t":"code","b":[62,199],"m":"ld","o":"a,$C7"},{"a":27847,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27850,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[27838]},{"a":27853,"t":"code","b":[254,8],"m":"cp","o":"$08"},{"a":27855,"t":"code","b":[56,78],"m":"jr","oa":27935,"o":"c,$6D1F"},{"a":27857,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":27860,"t":"code","b":[183],"m":"or","o":"a"},{"a":27861,"t":"code","b":[40,24],"m":"jr","oa":27887,"o":"z,$6CEF"},{"a":27863,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":27865,"t":"code","b":[48,68],"m":"jr","oa":27935,"o":"nc,$6D1F"},{"a":27867,"t":"code","b":[62,14],"m":"ld","o":"a,$0E"},{"a":27869,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27872,"t":"code","b":[62,204],"m":"ld","o":"a,$CC"},{"a":27874,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27877,"t":"code","b":[62,15],"m":"ld","o":"a,$0F"},{"a":27879,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27882,"t":"code","b":[62,205],"m":"ld","o":"a,$CD"},{"a":27884,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27887,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)","x":[27861]},{"a":27890,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":27892,"t":"code","b":[56,4],"m":"jr","oa":27898,"o":"c,$6CFA"},{"a":27894,"t":"code","b":[254,147],"m":"cp","o":"$93"},{"a":27896,"t":"code","b":[56,17],"m":"jr","oa":27915,"o":"c,$6D0B"},{"a":27898,"t":"code","b":[253,203,11,86],"m":"bit","o":"2,(iy+$0B)","x":[27892]},{"a":27902,"t":"code","b":[40,31],"m":"jr","oa":27935,"o":"z,$6D1F"},{"a":27904,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":27907,"t":"code","b":[254,92],"m":"cp","o":"$5C"},{"a":27909,"t":"code","b":[40,4],"m":"jr","oa":27915,"o":"z,$6D0B"},{"a":27911,"t":"code","b":[254,99],"m":"cp","o":"$63"},{"a":27913,"t":"code","b":[32,20],"m":"jr","oa":27935,"o":"nz,$6D1F"},{"a":27915,"t":"code","b":[62,207],"m":"ld","o":"a,$CF","x":[27896,27909]},{"a":27917,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27920,"t":"code","b":[62,16],"m":"ld","o":"a,$10"},{"a":27922,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27925,"t":"code","b":[62,208],"m":"ld","o":"a,$D0"},{"a":27927,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27930,"t":"code","b":[62,17],"m":"ld","o":"a,$11"},{"a":27932,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27935,"t":"code","b":[205,42,208],"m":"call","oa":53290,"o":"$D02A","x":[27542,27550,27561,27571,27584,27604,27758,27782,27855,27865,27902,27913]},{"a":27938,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":27940,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":27943,"t":"code","b":[62,179],"m":"ld","o":"a,$B3"},{"a":27945,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":27948,"t":"code","b":[251],"m":"ei"},{"a":27949,"t":"code","b":[205,2,146],"m":"call","oa":37378,"o":"run_menu"},{"a":27952,"t":"code","b":[33,142,109],"m":"ld","o":"hl,$6D8E"},{"a":27955,"t":"code","b":[205,34,147],"m":"call","oa":37666,"o":"dispatch_menu"},{"a":27958,"t":"code","b":[243],"m":"di"},{"a":27959,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":27962,"t":"code","b":[205,48,104],"m":"call","oa":26672,"o":"clear_bars"},{"a":27965,"t":"code","b":[205,157,100],"m":"call","oa":25757,"o":"describe_cursor_square"},{"a":27968,"t":"code","b":[205,62,101],"m":"call","oa":25918,"o":"fill_icon_list"},{"a":27971,"t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)"},{"a":27974,"t":"code","b":[205,55,119],"m":"call","oa":30519,"o":"load_creature"},{"a":27977,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)"},{"a":27981,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":27984,"t":"code","b":[33,0,210],"m":"ld","o":"hl,$D200"},{"a":27987,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":27988,"t":"code","b":[56,7],"m":"jr","oa":27997,"o":"c,$6D5D"},{"a":27990,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":27991,"t":"code","b":[221,119,0],"m":"ld","o":"(ix+$00),a"},{"a":27994,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":27997,"t":"code","b":[205,189,143],"m":"call","oa":36797,"o":"draw_creature_panel","x":[27988]},{"a":28000,"t":"code","b":[58,37,91],"m":"ld","oa":23333,"o":"a,($5B25)"},{"a":28003,"t":"code","b":[183],"m":"or","o":"a"},{"a":28004,"t":"code","b":[196,54,132],"m":"call","oa":33846,"o":"nz,summon_display"},{"a":28007,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":28010,"t":"code","b":[205,100,100],"m":"call","oa":25700,"o":"clear_message_line"},{"a":28013,"t":"code","b":[205,51,121],"m":"call","oa":31027,"o":"show_enemy_spotted"},{"a":28016,"t":"code","b":[204,153,101],"m":"call","oa":26009,"o":"z,print_square_name"},{"a":28019,"t":"code","b":[205,86,113],"m":"call","oa":29014,"o":"find_partner"},{"a":28022,"t":"code","b":[196,210,181],"m":"call","oa":46546,"o":"nz,keep_figures"},{"a":28025,"t":"code","b":[58,67,91],"m":"ld","oa":23363,"o":"a,($5B43)"},{"a":28028,"t":"code","b":[183],"m":"or","o":"a"},{"a":28029,"t":"code","b":[196,210,181],"m":"call","oa":46546,"o":"nz,keep_figures"},{"a":28032,"t":"code","b":[62,21],"m":"ld","o":"a,$15"},{"a":28034,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":28037,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28038,"t":"code","b":[50,96,255],"m":"ld","oa":65376,"o":"($FF60),a"},{"a":28041,"t":"code","b":[251],"m":"ei"},{"a":28042,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":28045,"t":"code","b":[201],"m":"ret"},{"a":28046,"l":"select_actions","c":"The routine of each select menu option: 0 END MOVE, 1 CANCEL (a RET), 2 LAND, 3 FLY, 4 CENTRE, 5 DROP, 6 PICK UP, 7 CHANGE, 8 RIDE, 9 RIDER, $0A USE, $0B DRINK, $0C FILL, $0D EAT, $0E THROW-A, $0F THROW-G, $10 FIRE-A, $11 FIRE-G, $12 CAST-A, $13 CAST-G, $14 BIG MAP and $15 READ, which is the scenario's routine at $D02D.","t":"word","b":[166,106,201,145,27,110,81,110],"d":[27302,37321,28187,28241]},{"a":28054,"t":"word","b":[123,144,241,111,106,112,13,112],"d":[36987,28657,28778,28685]},{"a":28062,"t":"word","b":[142,113,211,113,96,114,208,115],"d":[29070,29139,29280,29648]},{"a":28070,"t":"word","b":[152,116,229,116,250,121,1,122],"d":[29848,29925,31226,31233]},{"a":28078,"t":"word","b":[49,123,56,123,102,130,109,130],"d":[31537,31544,33382,33389]},{"a":28086,"t":"word","b":[28,124,45,208],"d":[31772,53293]},{"a":28090,"l":"spend_action_points","c":"Takes A from the selected creature's action points (byte 0 of its record, $5B50) and returns what is left in A.","t":"code","b":[71],"m":"ld","o":"b,a","x":[28255,28771,28912,29078,29546,29650,29902,29927,31408,40060,41268]},{"a":28091,"t":"code","b":[42,80,91],"m":"ld","oa":23376,"o":"hl,($5B50)"},{"a":28094,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":28095,"t":"code","b":[144],"m":"sub","o":"b"},{"a":28096,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":28097,"t":"code","b":[201],"m":"ret"},{"a":28098,"l":"can_fly_or_land","c":"Decides whether the select menu offers FLY ($D190) or LAND ($D191). Neither when another creature shares the square or the creature is engaged (bit 4 of byte 4 of its record). A flying creature (byte 4 of its entry $FE) may land unless bit 5 of byte 4 of the square's terrain record forbids it. A creature on the ground may take off unless it stands on water ($37) or gooey blob ($42-$49), the terrain has bit 4 of byte 4 set (a roof), its type has no flying action points ($FF59) or it has fewer than 6 action points.","t":"code","b":[205,36,145],"m":"call","oa":37156,"o":"terrain_record_here","x":[27634,39052,40524]},{"a":28101,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28102,"t":"code","b":[50,144,209],"m":"ld","oa":53648,"o":"($D190),a"},{"a":28105,"t":"code","b":[50,145,209],"m":"ld","oa":53649,"o":"($D191),a"},{"a":28108,"t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)"},{"a":28111,"t":"code","b":[205,202,102],"m":"call","oa":26314,"o":"find_others_at"},{"a":28114,"t":"code","b":[58,174,209],"m":"ld","oa":53678,"o":"a,($D1AE)"},{"a":28117,"t":"code","b":[183],"m":"or","o":"a"},{"a":28118,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":28119,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)"},{"a":28123,"t":"code","b":[221,203,4,102],"m":"bit","o":"4,(ix+$04)"},{"a":28127,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":28128,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":28132,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying"},{"a":28135,"t":"code","b":[32,11],"m":"jr","oa":28148,"o":"nz,$6DF4"},{"a":28137,"t":"code","b":[253,203,4,110],"m":"bit","o":"5,(iy+$04)"},{"a":28141,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":28142,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":28144,"t":"code","b":[50,145,209],"m":"ld","oa":53649,"o":"($D191),a"},{"a":28147,"t":"code","b":[201],"m":"ret"},{"a":28148,"t":"code","b":[58,145,255],"m":"ld","oa":65425,"o":"a,($FF91)","x":[28135]},{"a":28151,"t":"code","b":[254,55],"m":"cp","o":"$37"},{"a":28153,"t":"code","b":[200],"m":"ret","o":"z"},{"a":28154,"t":"code","b":[254,66],"m":"cp","o":"$42"},{"a":28156,"t":"code","b":[56,3],"m":"jr","oa":28161,"o":"c,$6E01"},{"a":28158,"t":"code","b":[254,74],"m":"cp","o":"$4A"},{"a":28160,"t":"code","b":[216],"m":"ret","o":"c"},{"a":28161,"t":"code","b":[253,203,4,102],"m":"bit","o":"4,(iy+$04)","x":[28156]},{"a":28165,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":28166,"t":"code","b":[253,42,82,91],"m":"ld","oa":23378,"o":"iy,($5B52)"},{"a":28170,"t":"code","b":[58,89,255],"m":"ld","oa":65369,"o":"a,($FF59)"},{"a":28173,"t":"code","b":[183],"m":"or","o":"a"},{"a":28174,"t":"code","b":[200],"m":"ret","o":"z"},{"a":28175,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":28178,"t":"code","b":[254,6],"m":"cp","o":"$06"},{"a":28180,"t":"code","b":[216],"m":"ret","o":"c"},{"a":28181,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":28183,"t":"code","b":[50,144,209],"m":"ld","oa":53648,"o":"($D190),a"},{"a":28186,"t":"code","b":[201],"m":"ret"},{"a":28187,"l":"land","c":"LAND (select menu option 2): the creature's entry gets $FF (on the ground) in byte 4, as does $5B2F, and its action points are rescaled from flying to ground ones: ground points ($FF5A) times what it has left over what it started with ($D200), rounded. Sets $FF86 to $0302 and $5B29.","t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)","x":[39060]},{"a":28191,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":28193,"t":"code","b":[221,119,4],"m":"ld","o":"(ix+$04),a"},{"a":28196,"t":"code","b":[50,47,91],"m":"ld","oa":23343,"o":"($5B2F),a"},{"a":28199,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":28202,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":28203,"t":"code","b":[58,0,210],"m":"ld","oa":53760,"o":"a,($D200)"},{"a":28206,"t":"code","b":[205,140,110],"m":"call","oa":28300,"o":"ratio_divisor"},{"a":28209,"t":"code","b":[58,90,255],"m":"ld","oa":65370,"o":"a,($FF5A)"},{"a":28212,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":28213,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":28215,"t":"code","b":[205,163,110],"m":"call","oa":28323,"o":"scale_by_ratio"},{"a":28218,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)"},{"a":28222,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":28223,"t":"code","b":[221,119,0],"m":"ld","o":"(ix+$00),a"},{"a":28226,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":28229,"t":"code","b":[33,2,3],"m":"ld","o":"hl,$0302"},{"a":28232,"t":"code","b":[34,134,255],"m":"ld","oa":65414,"o":"($FF86),hl"},{"a":28235,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":28237,"t":"code","b":[50,41,91],"m":"ld","oa":23337,"o":"($5B29),a"},{"a":28240,"t":"code","b":[201],"m":"ret"},{"a":28241,"l":"fly","c":"FLY (select menu option 3): byte 4 of the entry and $5B2F become $FE (in the air), taking off costs 6 action points, and what is left is rescaled to flying points ($FF59) the same way as land does. Sets $FF86 to $0204 and $5B29.","t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)","x":[40553]},{"a":28245,"t":"code","b":[62,254],"m":"ld","o":"a,$FE"},{"a":28247,"t":"code","b":[221,119,4],"m":"ld","o":"(ix+$04),a"},{"a":28250,"t":"code","b":[50,47,91],"m":"ld","oa":23343,"o":"($5B2F),a"},{"a":28253,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":28255,"t":"code","b":[205,186,109],"m":"call","oa":28090,"o":"spend_action_points"},{"a":28258,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":28261,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":28264,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":28265,"t":"code","b":[58,0,210],"m":"ld","oa":53760,"o":"a,($D200)"},{"a":28268,"t":"code","b":[205,140,110],"m":"call","oa":28300,"o":"ratio_divisor"},{"a":28271,"t":"code","b":[58,89,255],"m":"ld","oa":65369,"o":"a,($FF59)"},{"a":28274,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":28275,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":28277,"t":"code","b":[205,163,110],"m":"call","oa":28323,"o":"scale_by_ratio"},{"a":28280,"t":"code","b":[42,80,91],"m":"ld","oa":23376,"o":"hl,($5B50)"},{"a":28283,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":28284,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":28285,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":28288,"t":"code","b":[33,4,2],"m":"ld","o":"hl,$0204"},{"a":28291,"t":"code","b":[34,134,255],"m":"ld","oa":65414,"o":"($FF86),hl"},{"a":28294,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":28296,"t":"code","b":[50,41,91],"m":"ld","oa":23337,"o":"($5B29),a"},{"a":28299,"t":"code","b":[201],"m":"ret"},{"a":28300,"l":"ratio_divisor","c":"For the rescaling: BC = (A x 32) / B, by repeated subtraction; 0 when B is 0.","t":"code","b":[111],"m":"ld","o":"l,a","x":[28206,28268]},{"a":28301,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":28303,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28304,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28305,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28306,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28307,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28308,"t":"code","b":[88],"m":"ld","o":"e,b"},{"a":28309,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":28311,"t":"code","b":[1,0,0],"m":"ld","o":"bc,$0000"},{"a":28314,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":28315,"t":"code","b":[183],"m":"or","o":"a"},{"a":28316,"t":"code","b":[200],"m":"ret","o":"z"},{"a":28317,"t":"code","b":[237,82],"m":"sbc","o":"hl,de","x":[28321]},{"a":28319,"t":"code","b":[216],"m":"ret","o":"c"},{"a":28320,"t":"code","b":[3],"m":"inc","o":"bc"},{"a":28321,"t":"code","b":[24,250],"m":"jr","oa":28317,"o":"$6E9D"},{"a":28323,"l":"scale_by_ratio","c":"E = (HL x 32) / BC, rounded to the nearest; 0 when BC is 0. With ratio_divisor it gives HL x B / A.","t":"code","b":[30,0],"m":"ld","o":"e,$00","x":[28215,28277]},{"a":28325,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":28326,"t":"code","b":[183],"m":"or","o":"a"},{"a":28327,"t":"code","b":[32,3],"m":"jr","oa":28332,"o":"nz,$6EAC"},{"a":28329,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":28330,"t":"code","b":[183],"m":"or","o":"a"},{"a":28331,"t":"code","b":[200],"m":"ret","o":"z"},{"a":28332,"t":"code","b":[41],"m":"add","o":"hl,hl","x":[28327]},{"a":28333,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28334,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28335,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28336,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28337,"t":"code","b":[167],"m":"and","o":"a"},{"a":28338,"t":"code","b":[237,66],"m":"sbc","o":"hl,bc","x":[28343]},{"a":28340,"t":"code","b":[56,3],"m":"jr","oa":28345,"o":"c,$6EB9"},{"a":28342,"t":"code","b":[28],"m":"inc","o":"e"},{"a":28343,"t":"code","b":[24,249],"m":"jr","oa":28338,"o":"$6EB2"},{"a":28345,"t":"code","b":[9],"m":"add","o":"hl,bc","x":[28340]},{"a":28346,"t":"code","b":[167],"m":"and","o":"a"},{"a":28347,"t":"code","b":[203,24],"m":"rr","o":"b"},{"a":28349,"t":"code","b":[203,25],"m":"rr","o":"c"},{"a":28351,"t":"code","b":[167],"m":"and","o":"a"},{"a":28352,"t":"code","b":[237,66],"m":"sbc","o":"hl,bc"},{"a":28354,"t":"code","b":[216],"m":"ret","o":"c"},{"a":28355,"t":"code","b":[28],"m":"inc","o":"e"},{"a":28356,"t":"code","b":[201],"m":"ret"},{"a":28357,"l":"choose_from_list","c":"The object chooser used by CHANGE and PICK UP: prints the list of objects at HL (pairs of index and type, $5B0A of them) down the screen from row 6, each with its name and its weight (byte 1 of its record, unless $FF), keeps the types at $B474, puts the bar on the current choice ($C662) and lets up and down move it, wrapping, until fire is pressed; returns with the choice in $C662 and the interrupts off.","t":"code","b":[17,2,6],"m":"ld","o":"de,$0602","x":[28723,28829]},{"a":28360,"t":"code","b":[237,83,84,255],"m":"ld","oa":65364,"o":"($FF54),de"},{"a":28364,"t":"code","b":[17,116,180],"m":"ld","o":"de,$B474"},{"a":28367,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":28370,"t":"code","b":[50,86,255],"m":"ld","oa":65366,"o":"($FF56),a"},{"a":28373,"t":"code","b":[58,10,91],"m":"ld","oa":23306,"o":"a,($5B0A)"},{"a":28376,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":28377,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":28378,"t":"code","b":[197],"m":"push","o":"bc","x":[28469]},{"a":28379,"t":"code","b":[229],"m":"push","o":"hl"},{"a":28380,"t":"code","b":[213],"m":"push","o":"de"},{"a":28381,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":28382,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":28383,"t":"code","b":[205,160,148],"m":"call","oa":38048,"o":"object_record"},{"a":28386,"t":"code","b":[17,3,67],"m":"ld","o":"de,$4303"},{"a":28389,"t":"code","b":[237,83,23,91],"m":"ld","oa":23319,"o":"($5B17),de"},{"a":28393,"t":"code","b":[237,91,84,255],"m":"ld","oa":65364,"o":"de,($FF54)"},{"a":28397,"t":"code","b":[237,83,26,91],"m":"ld","oa":23322,"o":"($5B1A),de"},{"a":28401,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":28402,"t":"code","b":[60],"m":"inc","o":"a"},{"a":28403,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":28406,"t":"code","b":[17,5,69],"m":"ld","o":"de,$4505"},{"a":28409,"t":"code","b":[237,83,23,91],"m":"ld","oa":23319,"o":"($5B17),de"},{"a":28413,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)"},{"a":28416,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":28418,"t":"code","b":[40,13],"m":"jr","oa":28433,"o":"z,$6F11"},{"a":28420,"t":"code","b":[42,84,255],"m":"ld","oa":65364,"o":"hl,($FF54)"},{"a":28423,"t":"code","b":[17,0,18],"m":"ld","o":"de,$1200"},{"a":28426,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28427,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":28430,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number"},{"a":28433,"t":"code","b":[33,84,255],"m":"ld","o":"hl,$FF54","x":[28418]},{"a":28436,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":28437,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":28438,"t":"code","b":[209],"m":"pop","o":"de"},{"a":28439,"t":"code","b":[213],"m":"push","o":"de"},{"a":28440,"t":"code","b":[19],"m":"inc","o":"de"},{"a":28441,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":28442,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":28443,"t":"code","b":[29],"m":"dec","o":"e"},{"a":28444,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":28445,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":28446,"t":"code","b":[21],"m":"dec","o":"d"},{"a":28447,"t":"code","b":[237,83,26,91],"m":"ld","oa":23322,"o":"($5B1A),de"},{"a":28451,"t":"code","b":[62,66],"m":"ld","o":"a,$42"},{"a":28453,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":28456,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":28458,"t":"code","b":[205,87,171],"m":"call","oa":43863,"o":"print_panel_text"},{"a":28461,"t":"code","b":[209],"m":"pop","o":"de"},{"a":28462,"t":"code","b":[19],"m":"inc","o":"de"},{"a":28463,"t":"code","b":[19],"m":"inc","o":"de"},{"a":28464,"t":"code","b":[19],"m":"inc","o":"de"},{"a":28465,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":28466,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":28467,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":28468,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":28469,"t":"code","b":[16,163],"m":"djnz","oa":28378,"o":"$6EDA"},{"a":28471,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":28474,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":28475,"t":"code","b":[62,70],"m":"ld","o":"a,$46"},{"a":28477,"t":"code","b":[205,163,111],"m":"call","oa":28579,"o":"draw_choice_bar"},{"a":28480,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":28482,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":28485,"t":"code","b":[251],"m":"ei"},{"a":28486,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":28489,"t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls","x":[28575]},{"a":28492,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":28495,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":28497,"t":"code","b":[40,78],"m":"jr","oa":28577,"o":"z,$6FA1"},{"a":28499,"t":"code","b":[243],"m":"di"},{"a":28500,"t":"code","b":[203,87],"m":"bit","o":"2,a"},{"a":28502,"t":"code","b":[32,16],"m":"jr","oa":28520,"o":"nz,$6F68"},{"a":28504,"t":"code","b":[33,98,198],"m":"ld","o":"hl,$C662"},{"a":28507,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":28508,"t":"code","b":[58,10,91],"m":"ld","oa":23306,"o":"a,($5B0A)"},{"a":28511,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":28512,"t":"code","b":[48,24],"m":"jr","oa":28538,"o":"nc,$6F7A"},{"a":28514,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28515,"t":"code","b":[50,98,198],"m":"ld","oa":50786,"o":"(menu_choice),a"},{"a":28518,"t":"code","b":[24,18],"m":"jr","oa":28538,"o":"$6F7A"},{"a":28520,"t":"code","b":[203,79],"m":"bit","o":"1,a","x":[28502]},{"a":28522,"t":"code","b":[32,47],"m":"jr","oa":28571,"o":"nz,$6F9B"},{"a":28524,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":28527,"t":"code","b":[61],"m":"dec","o":"a"},{"a":28528,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":28530,"t":"code","b":[32,3],"m":"jr","oa":28535,"o":"nz,$6F77"},{"a":28532,"t":"code","b":[58,10,91],"m":"ld","oa":23306,"o":"a,($5B0A)"},{"a":28535,"t":"code","b":[50,98,198],"m":"ld","oa":50786,"o":"(menu_choice),a","x":[28530]},{"a":28538,"t":"code","b":[58,86,255],"m":"ld","oa":65366,"o":"a,($FF56)","x":[28512,28518]},{"a":28541,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":28542,"t":"code","b":[62,66],"m":"ld","o":"a,$42"},{"a":28544,"t":"code","b":[205,163,111],"m":"call","oa":28579,"o":"draw_choice_bar"},{"a":28547,"t":"code","b":[33,86,255],"m":"ld","o":"hl,$FF56"},{"a":28550,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":28551,"t":"code","b":[62,67],"m":"ld","o":"a,$43"},{"a":28553,"t":"code","b":[205,195,111],"m":"call","oa":28611,"o":"colour_choice_row"},{"a":28556,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":28559,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":28560,"t":"code","b":[62,70],"m":"ld","o":"a,$46"},{"a":28562,"t":"code","b":[205,163,111],"m":"call","oa":28579,"o":"draw_choice_bar"},{"a":28565,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":28568,"t":"code","b":[50,86,255],"m":"ld","oa":65366,"o":"($FF56),a"},{"a":28571,"t":"code","b":[251],"m":"ei","x":[28522]},{"a":28572,"t":"code","b":[205,219,148],"m":"call","oa":38107,"o":"key_repeat"},{"a":28575,"t":"code","b":[24,168],"m":"jr","oa":28489,"o":"$6F49"},{"a":28577,"t":"code","b":[243],"m":"di","x":[28497]},{"a":28578,"t":"code","b":[201],"m":"ret"},{"a":28579,"l":"draw_choice_bar","c":"Prints the bar graphic (the game's panel graphic 6) in colour A round choice B of the list, at the position the table at $B475 gives; nothing for choice 0.","t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a","x":[28477,28544,28562]},{"a":28582,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":28583,"t":"code","b":[183],"m":"or","o":"a"},{"a":28584,"t":"code","b":[200],"m":"ret","o":"z"},{"a":28585,"t":"code","b":[61],"m":"dec","o":"a"},{"a":28586,"t":"code","b":[5],"m":"dec","o":"b"},{"a":28587,"t":"code","b":[7],"m":"rlca"},{"a":28588,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":28589,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":28590,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":28592,"t":"code","b":[17,117,180],"m":"ld","o":"de,$B475"},{"a":28595,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28596,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":28597,"t":"code","b":[29],"m":"dec","o":"e"},{"a":28598,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":28599,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":28600,"t":"code","b":[21],"m":"dec","o":"d"},{"a":28601,"t":"code","b":[237,83,26,91],"m":"ld","oa":23322,"o":"($5B1A),de"},{"a":28605,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":28607,"t":"code","b":[205,87,171],"m":"call","oa":43863,"o":"print_panel_text"},{"a":28610,"t":"code","b":[201],"m":"ret"},{"a":28611,"l":"colour_choice_row","c":"Colours two attribute rows of 18 cells, from column 6 of character row B x 2, with A.","t":"code","b":[104],"m":"ld","o":"l,b","x":[28553,28946,28964,43751]},{"a":28612,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":28614,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28615,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28616,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28617,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28618,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28619,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28620,"t":"code","b":[17,6,88],"m":"ld","o":"de,$5806"},{"a":28623,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28624,"t":"code","b":[6,2],"m":"ld","o":"b,$02"},{"a":28626,"t":"code","b":[197],"m":"push","o":"bc","x":[28641]},{"a":28627,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":28628,"t":"code","b":[84],"m":"ld","o":"d,h"},{"a":28629,"t":"code","b":[93],"m":"ld","o":"e,l"},{"a":28630,"t":"code","b":[19],"m":"inc","o":"de"},{"a":28631,"t":"code","b":[1,17,0],"m":"ld","o":"bc,$0011"},{"a":28634,"t":"code","b":[237,176],"m":"ldir"},{"a":28636,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":28637,"t":"code","b":[17,15,0],"m":"ld","o":"de,$000F"},{"a":28640,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28641,"t":"code","b":[16,239],"m":"djnz","oa":28626,"o":"$6FD2"},{"a":28643,"t":"code","b":[201],"m":"ret"},{"a":28644,"l":"entry_address","c":"HL = the address of entry A of the object table at $5B5A (six bytes each).","t":"code","b":[111],"m":"ld","o":"l,a","x":[25936,28751,28865,29145,29436,29467,29708,29854,30522,30799,31281,32798,33949,33959,34884,35202,37227,39086,40034,40050,40179,40406,40641,40810,41309,46023]},{"a":28645,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":28647,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28648,"t":"code","b":[84],"m":"ld","o":"d,h"},{"a":28649,"t":"code","b":[93],"m":"ld","o":"e,l"},{"a":28650,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":28651,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28652,"t":"code","b":[17,90,91],"m":"ld","o":"de,$5B5A"},{"a":28655,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28656,"t":"code","b":[201],"m":"ret"},{"a":28657,"l":"drop","c":"DROP (select menu option 5): the object in use ($D0DB) is no longer in use or carried (byte 4 $FF, on the ground), $5B57 is cleared, and a sound plays when the turn is shown ($D066 is 0).","t":"code","b":[243],"m":"di","x":[42661,42676]},{"a":28658,"t":"code","b":[221,42,219,208],"m":"ld","oa":53467,"o":"ix,($D0DB)"},{"a":28662,"t":"code","b":[221,203,3,190],"m":"res","o":"7,(ix+$03)"},{"a":28666,"t":"code","b":[221,54,4,255],"m":"ld","o":"(ix+$04),$FF"},{"a":28670,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28671,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":28674,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":28677,"t":"code","b":[183],"m":"or","o":"a"},{"a":28678,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":28679,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":28681,"t":"code","b":[205,78,200],"m":"call","oa":51278,"o":"start_sound"},{"a":28684,"t":"code","b":[201],"m":"ret"},{"a":28685,"l":"change","c":"CHANGE (select menu option 7): lists what the creature carries (NO OBJECT IN USE first), lets the player choose, and marks the chosen object in use (bit 7 of byte 3) with its type in $5B57. Choosing another than before costs 4 action points.","t":"code","b":[243],"m":"di"},{"a":28686,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":28689,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":28692,"t":"code","b":[183],"m":"or","o":"a"},{"a":28693,"t":"code","b":[40,8],"m":"jr","oa":28703,"o":"z,$701F"},{"a":28695,"t":"code","b":[221,42,219,208],"m":"ld","oa":53467,"o":"ix,($D0DB)"},{"a":28699,"t":"code","b":[221,203,3,190],"m":"res","o":"7,(ix+$03)"},{"a":28703,"t":"code","b":[58,89,91],"m":"ld","oa":23385,"o":"a,($5B59)","x":[28693]},{"a":28706,"t":"code","b":[50,98,198],"m":"ld","oa":50786,"o":"(menu_choice),a"},{"a":28709,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":28712,"t":"code","b":[50,10,91],"m":"ld","oa":23306,"o":"($5B0A),a"},{"a":28715,"t":"code","b":[62,194],"m":"ld","o":"a,$C2"},{"a":28717,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":28720,"t":"code","b":[33,192,209],"m":"ld","o":"hl,$D1C0"},{"a":28723,"t":"code","b":[205,197,110],"m":"call","oa":28357,"o":"choose_from_list"},{"a":28726,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28727,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":28730,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":28733,"t":"code","b":[183],"m":"or","o":"a"},{"a":28734,"t":"code","b":[40,24],"m":"jr","oa":28760,"o":"z,$7058"},{"a":28736,"t":"code","b":[61],"m":"dec","o":"a"},{"a":28737,"t":"code","b":[7],"m":"rlca"},{"a":28738,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":28739,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":28741,"t":"code","b":[33,193,209],"m":"ld","o":"hl,$D1C1"},{"a":28744,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28745,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":28746,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":28749,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":28750,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":28751,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":28754,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":28757,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28758,"t":"code","b":[203,254],"m":"set","o":"7,(hl)"},{"a":28760,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)","x":[28734]},{"a":28763,"t":"code","b":[33,89,91],"m":"ld","o":"hl,$5B59"},{"a":28766,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":28767,"t":"code","b":[40,5],"m":"jr","oa":28774,"o":"z,$7066"},{"a":28769,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":28771,"t":"code","b":[205,186,109],"m":"call","oa":28090,"o":"spend_action_points"},{"a":28774,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen","x":[28767]},{"a":28777,"t":"code","b":[201],"m":"ret"},{"a":28778,"l":"pick_up","c":"PICK UP (select menu option 6): lists the objects lying on the square under CANCEL LIMIT= and the weight the creature can still carry (its type's limit, byte 7, less the weight carried, $712C). A chosen object too heavy for it gives TOO HEAVY; one it can take becomes its object in use, carried by it, plays a sound and costs 8 action points. It asks again while the creature has 8 action points left, objects lie there and it carries fewer than ten.","t":"code","b":[243],"m":"di","x":[28936]},{"a":28779,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":28782,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28783,"t":"code","b":[50,98,198],"m":"ld","oa":50786,"o":"(menu_choice),a"},{"a":28786,"t":"code","b":[205,44,113],"m":"call","oa":28972,"o":"carried_weight"},{"a":28789,"t":"code","b":[33,81,255],"m":"ld","o":"hl,$FF51"},{"a":28792,"t":"code","b":[205,198,120],"m":"call","oa":30918,"o":"carry_limit"},{"a":28795,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":28796,"t":"code","b":[50,82,255],"m":"ld","oa":65362,"o":"($FF52),a"},{"a":28799,"t":"code","b":[62,195],"m":"ld","o":"a,$C3","x":[28967]},{"a":28801,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":28804,"t":"code","b":[33,7,71],"m":"ld","o":"hl,$4707"},{"a":28807,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":28810,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16"},{"a":28813,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":28814,"t":"code","b":[58,82,255],"m":"ld","oa":65362,"o":"a,($FF52)"},{"a":28817,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number"},{"a":28820,"t":"code","b":[58,221,208],"m":"ld","oa":53469,"o":"a,($D0DD)"},{"a":28823,"t":"code","b":[50,10,91],"m":"ld","oa":23306,"o":"($5B0A),a"},{"a":28826,"t":"code","b":[33,212,209],"m":"ld","o":"hl,$D1D4"},{"a":28829,"t":"code","b":[205,197,110],"m":"call","oa":28357,"o":"choose_from_list"},{"a":28832,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":28835,"t":"code","b":[183],"m":"or","o":"a"},{"a":28836,"t":"code","b":[40,101],"m":"jr","oa":28939,"o":"z,$710B"},{"a":28838,"t":"code","b":[61],"m":"dec","o":"a"},{"a":28839,"t":"code","b":[7],"m":"rlca"},{"a":28840,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":28841,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":28843,"t":"code","b":[33,213,209],"m":"ld","o":"hl,$D1D5"},{"a":28846,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28847,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":28848,"t":"code","b":[205,160,148],"m":"call","oa":38048,"o":"object_record"},{"a":28851,"t":"code","b":[58,82,255],"m":"ld","oa":65362,"o":"a,($FF52)"},{"a":28854,"t":"code","b":[253,190,1],"m":"cp","o":"(iy+$01)"},{"a":28857,"t":"code","b":[56,84],"m":"jr","oa":28943,"o":"c,$710F"},{"a":28859,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":28860,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":28863,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":28864,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":28865,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":28868,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":28871,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28872,"t":"code","b":[203,254],"m":"set","o":"7,(hl)"},{"a":28874,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":28875,"t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)"},{"a":28878,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":28879,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":28882,"t":"code","b":[183],"m":"or","o":"a"},{"a":28883,"t":"code","b":[40,8],"m":"jr","oa":28893,"o":"z,$70DD"},{"a":28885,"t":"code","b":[221,42,219,208],"m":"ld","oa":53467,"o":"ix,($D0DB)"},{"a":28889,"t":"code","b":[221,203,3,190],"m":"res","o":"7,(ix+$03)"},{"a":28893,"t":"code","b":[58,87,91],"m":"ld","oa":23383,"o":"a,($5B57)","x":[28883]},{"a":28896,"t":"code","b":[50,217,208],"m":"ld","oa":53465,"o":"($D0D9),a"},{"a":28899,"t":"code","b":[58,145,255],"m":"ld","oa":65425,"o":"a,($FF91)"},{"a":28902,"t":"code","b":[50,144,255],"m":"ld","oa":65424,"o":"($FF90),a"},{"a":28905,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":28907,"t":"code","b":[205,78,200],"m":"call","oa":51278,"o":"start_sound"},{"a":28910,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":28912,"t":"code","b":[205,186,109],"m":"call","oa":28090,"o":"spend_action_points"},{"a":28915,"t":"code","b":[214,8],"m":"sub","o":"$08"},{"a":28917,"t":"code","b":[56,20],"m":"jr","oa":28939,"o":"c,$710B"},{"a":28919,"t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here"},{"a":28922,"t":"code","b":[58,221,208],"m":"ld","oa":53469,"o":"a,($D0DD)"},{"a":28925,"t":"code","b":[183],"m":"or","o":"a"},{"a":28926,"t":"code","b":[40,11],"m":"jr","oa":28939,"o":"z,$710B"},{"a":28928,"t":"code","b":[205,65,103],"m":"call","oa":26433,"o":"list_selected_carries"},{"a":28931,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":28934,"t":"code","b":[254,10],"m":"cp","o":"$0A"},{"a":28936,"t":"code","b":[218,106,112],"m":"jp","oa":28778,"o":"c,pick_up"},{"a":28939,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen","x":[28836,28917,28926]},{"a":28942,"t":"code","b":[201],"m":"ret"},{"a":28943,"t":"code","b":[243],"m":"di","x":[28857]},{"a":28944,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28945,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":28946,"t":"code","b":[205,195,111],"m":"call","oa":28611,"o":"colour_choice_row"},{"a":28949,"t":"code","b":[62,196],"m":"ld","o":"a,$C4"},{"a":28951,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":28954,"t":"code","b":[251],"m":"ei"},{"a":28955,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":28958,"t":"code","b":[205,219,145],"m":"call","oa":37339,"o":"wait_press"},{"a":28961,"t":"code","b":[243],"m":"di"},{"a":28962,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28963,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":28964,"t":"code","b":[205,195,111],"m":"call","oa":28611,"o":"colour_choice_row"},{"a":28967,"t":"code","b":[195,127,112],"m":"jp","oa":28799,"o":"$707F"},{"a":28970,"l":"unused_712A","c":"Two bytes no instruction reads.","t":"byte","b":[0,0]},{"a":28972,"l":"carried_weight","c":"Adds up the weights (byte 1 of each type record) of the objects the selected creature carries, from the list at $D1C0, into $FF51; creatures carried are not counted.","t":"code","b":[175],"m":"xor","o":"a","x":[28786,39174]},{"a":28973,"t":"code","b":[50,81,255],"m":"ld","oa":65361,"o":"($FF51),a"},{"a":28976,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":28979,"t":"code","b":[183],"m":"or","o":"a"},{"a":28980,"t":"code","b":[200],"m":"ret","o":"z"},{"a":28981,"t":"code","b":[33,193,209],"m":"ld","o":"hl,$D1C1"},{"a":28984,"t":"code","b":[253,229],"m":"push","o":"iy"},{"a":28986,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":28987,"t":"code","b":[197],"m":"push","o":"bc","x":[29009]},{"a":28988,"t":"code","b":[229],"m":"push","o":"hl"},{"a":28989,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":28990,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":28992,"t":"code","b":[48,11],"m":"jr","oa":29005,"o":"nc,$714D"},{"a":28994,"t":"code","b":[205,160,148],"m":"call","oa":38048,"o":"object_record"},{"a":28997,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)"},{"a":29000,"t":"code","b":[33,81,255],"m":"ld","o":"hl,$FF51"},{"a":29003,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":29004,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29005,"t":"code","b":[225],"m":"pop","o":"hl","x":[28992]},{"a":29006,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29007,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29008,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":29009,"t":"code","b":[16,232],"m":"djnz","oa":28987,"o":"$713B"},{"a":29011,"t":"code","b":[253,225],"m":"pop","o":"iy"},{"a":29013,"t":"code","b":[201],"m":"ret"},{"a":29014,"l":"find_partner","c":"Looks for another creature on the selected creature's square at the same height ($5B2F against byte 4 of its entry) that rides nothing, since find_others_at skips riders: a mount the selected creature could climb onto, or a rider that has just got off. Returns Z set with its entry in IX and its index in $D1A3 when there is one, Z clear when not.","t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)","x":[26728,27302,27414,27521,28019,38810,39886,41209,41870,46388,51843]},{"a":29017,"t":"code","b":[205,202,102],"m":"call","oa":26314,"o":"find_others_at"},{"a":29020,"t":"code","b":[58,174,209],"m":"ld","oa":53678,"o":"a,($D1AE)"},{"a":29023,"t":"code","b":[183],"m":"or","o":"a"},{"a":29024,"t":"code","b":[40,40],"m":"jr","oa":29066,"o":"z,$718A"},{"a":29026,"t":"code","b":[58,177,209],"m":"ld","oa":53681,"o":"a,($D1B1)"},{"a":29029,"t":"code","b":[50,163,209],"m":"ld","oa":53667,"o":"($D1A3),a"},{"a":29032,"t":"code","b":[221,42,175,209],"m":"ld","oa":53679,"o":"ix,($D1AF)"},{"a":29036,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":29039,"t":"code","b":[221,190,4],"m":"cp","o":"(ix+$04)"},{"a":29042,"t":"code","b":[200],"m":"ret","o":"z"},{"a":29043,"t":"code","b":[58,178,209],"m":"ld","oa":53682,"o":"a,($D1B2)"},{"a":29046,"t":"code","b":[183],"m":"or","o":"a"},{"a":29047,"t":"code","b":[40,17],"m":"jr","oa":29066,"o":"z,$718A"},{"a":29049,"t":"code","b":[58,181,209],"m":"ld","oa":53685,"o":"a,($D1B5)"},{"a":29052,"t":"code","b":[50,163,209],"m":"ld","oa":53667,"o":"($D1A3),a"},{"a":29055,"t":"code","b":[221,42,179,209],"m":"ld","oa":53683,"o":"ix,($D1B3)"},{"a":29059,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":29062,"t":"code","b":[221,190,4],"m":"cp","o":"(ix+$04)"},{"a":29065,"t":"code","b":[200],"m":"ret","o":"z"},{"a":29066,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[29024,29047]},{"a":29068,"t":"code","b":[183],"m":"or","o":"a"},{"a":29069,"t":"code","b":[201],"m":"ret"},{"a":29070,"l":"ride","c":"RIDE (select menu option 8): the selected creature climbs onto the mount on its square (find_partner's $D1A3): byte 4 of its entry becomes the mount's index and bit 7 of byte 3 (riding) is set, which costs 10 action points unless it is flying ($5B43). The mount takes over the rider's engaged bit (bit 4 of byte 4 of the record) and becomes the selected creature: select mode starts again on it at select_air's second half.","t":"code","b":[58,67,91],"m":"ld","oa":23363,"o":"a,($5B43)"},{"a":29073,"t":"code","b":[183],"m":"or","o":"a"},{"a":29074,"t":"code","b":[32,5],"m":"jr","oa":29081,"o":"nz,$7199"},{"a":29076,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":29078,"t":"code","b":[205,186,109],"m":"call","oa":28090,"o":"spend_action_points"},{"a":29081,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)","x":[29074]},{"a":29085,"t":"code","b":[58,163,209],"m":"ld","oa":53667,"o":"a,($D1A3)"},{"a":29088,"t":"code","b":[50,58,91],"m":"ld","oa":23354,"o":"($5B3A),a"},{"a":29091,"t":"code","b":[221,119,4],"m":"ld","o":"(ix+$04),a"},{"a":29094,"t":"code","b":[221,203,3,254],"m":"set","o":"7,(ix+$03)"},{"a":29098,"t":"code","b":[221,42,161,209],"m":"ld","oa":53665,"o":"ix,($D1A1)"},{"a":29102,"t":"code","b":[221,34,56,91],"m":"ld","oa":23352,"o":"($5B38),ix"},{"a":29106,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":29109,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)"},{"a":29113,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":29116,"t":"code","b":[230,16],"m":"and","o":"$10"},{"a":29118,"t":"code","b":[253,182,4],"m":"or","o":"(iy+$04)"},{"a":29121,"t":"code","b":[253,119,4],"m":"ld","o":"(iy+$04),a"},{"a":29124,"t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)"},{"a":29127,"t":"code","b":[34,211,208],"m":"ld","oa":53459,"o":"($D0D3),hl"},{"a":29130,"t":"code","b":[175],"m":"xor","o":"a"},{"a":29131,"t":"code","b":[50,67,91],"m":"ld","oa":23363,"o":"($5B43),a"},{"a":29134,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":29135,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":29136,"t":"code","b":[195,31,105],"m":"jp","oa":26911,"o":"select_ground"},{"a":29139,"l":"rider","c":"RIDER (select menu option 9): the rider the selected mount carries ($D0DA) gets off: it takes the mount's height (byte 4) and loses its riding bit, $5B43 takes that height, and select mode starts again on the rider.","t":"code","b":[58,218,208],"m":"ld","oa":53466,"o":"a,($D0DA)"},{"a":29142,"t":"code","b":[50,58,91],"m":"ld","oa":23354,"o":"($5B3A),a"},{"a":29145,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":29148,"t":"code","b":[34,56,91],"m":"ld","oa":23352,"o":"($5B38),hl"},{"a":29151,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":29155,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":29158,"t":"code","b":[221,42,56,91],"m":"ld","oa":23352,"o":"ix,($5B38)"},{"a":29162,"t":"code","b":[221,119,4],"m":"ld","o":"(ix+$04),a"},{"a":29165,"t":"code","b":[221,203,3,190],"m":"res","o":"7,(ix+$03)"},{"a":29169,"t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)"},{"a":29172,"t":"code","b":[34,211,208],"m":"ld","oa":53459,"o":"($D0D3),hl"},{"a":29175,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":29178,"t":"code","b":[50,67,91],"m":"ld","oa":23363,"o":"($5B43),a"},{"a":29181,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":29182,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":29183,"t":"code","b":[195,31,105],"m":"jp","oa":26911,"o":"select_ground"},{"a":29186,"l":"pick_target","c":"Lets the player choose a target square for an action with range A ($FF60, the most squares from the creature, $5B45): shows the square under the cursor, sets the interrupt's flags to 5 and moves the cursor until fire is pressed. Keeps $FF86 and the object in use, and puts the in-use type back in $D0D9.","t":"code","b":[50,96,255],"m":"ld","oa":65376,"o":"($FF60),a","x":[29285,31437,31613,34416,35491,35590]},{"a":29189,"t":"code","b":[42,134,255],"m":"ld","oa":65414,"o":"hl,($FF86)"},{"a":29192,"t":"code","b":[229],"m":"push","o":"hl"},{"a":29193,"t":"code","b":[33,3,1],"m":"ld","o":"hl,$0103"},{"a":29196,"t":"code","b":[34,134,255],"m":"ld","oa":65414,"o":"($FF86),hl"},{"a":29199,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":29202,"t":"code","b":[34,69,91],"m":"ld","oa":23365,"o":"($5B45),hl"},{"a":29205,"t":"code","b":[58,218,208],"m":"ld","oa":53466,"o":"a,($D0DA)"},{"a":29208,"t":"code","b":[245],"m":"push","o":"af"},{"a":29209,"t":"code","b":[205,157,100],"m":"call","oa":25757,"o":"describe_cursor_square"},{"a":29212,"t":"code","b":[205,62,101],"m":"call","oa":25918,"o":"fill_icon_list"},{"a":29215,"t":"code","b":[205,189,143],"m":"call","oa":36797,"o":"draw_creature_panel"},{"a":29218,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":29220,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":29223,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":29226,"t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls","x":[29241]},{"a":29229,"t":"code","b":[205,155,98],"m":"call","oa":25243,"o":"move_cursor"},{"a":29232,"t":"code","b":[205,13,106],"m":"call","oa":27149,"o":"update_info_panel"},{"a":29235,"t":"code","b":[251],"m":"ei"},{"a":29236,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":29239,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":29241,"t":"code","b":[32,239],"m":"jr","oa":29226,"o":"nz,$722A"},{"a":29243,"t":"code","b":[241],"m":"pop","o":"af"},{"a":29244,"t":"code","b":[50,218,208],"m":"ld","oa":53466,"o":"($D0DA),a"},{"a":29247,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":29248,"t":"code","b":[34,134,255],"m":"ld","oa":65414,"o":"($FF86),hl"},{"a":29251,"t":"code","b":[58,87,91],"m":"ld","oa":23383,"o":"a,($5B57)"},{"a":29254,"t":"code","b":[50,217,208],"m":"ld","oa":53465,"o":"($D0D9),a"},{"a":29257,"t":"code","b":[201],"m":"ret"},{"a":29258,"l":"distance_from_selected","c":"distance from the selected creature's square, $5B55.","t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)","x":[35603,39352,40250,40467,41165,42516]},{"a":29261,"l":"distance","c":"The distance between square HL and square DE (row in the low byte, column in the high) on the wrapping map, in half squares: twice the longer of the row and column differences plus the shorter, so a step along a row or column counts 2 and a diagonal step 3. From line_setup ($B045).","t":"code","b":[34,59,255],"m":"ld","oa":65339,"o":"($FF3B),hl","x":[25335,32558,35403,39459,40957,42378]},{"a":29264,"t":"code","b":[237,83,61,255],"m":"ld","oa":65341,"o":"($FF3D),de"},{"a":29268,"t":"code","b":[205,69,176],"m":"call","oa":45125,"o":"line_setup"},{"a":29271,"t":"code","b":[58,70,255],"m":"ld","oa":65350,"o":"a,($FF46)"},{"a":29274,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":29275,"t":"code","b":[33,69,255],"m":"ld","o":"hl,$FF45"},{"a":29278,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":29279,"t":"code","b":[201],"m":"ret"},{"a":29280,"l":"use","c":"USE (select menu option $0A): the player picks a square next to the creature (range 4, pick_target) and use_square acts on it.","t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre"},{"a":29283,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":29285,"t":"code","b":[205,2,114],"m":"call","oa":29186,"o":"pick_target"},{"a":29288,"t":"code","b":[175],"m":"xor","o":"a"},{"a":29289,"t":"code","b":[50,208,208],"m":"ld","oa":53456,"o":"($D0D0),a"},{"a":29292,"l":"use_square","c":"Uses the object in use on the cursor's square: a key on a locked door ($1F-$21) opens it into a closed door (+3) and the key ($7D) is used up; a closed door ($22-$24) opens (+3); an open door ($25-$27) closes (-3) when no object lies in it; a chest key ($7E) on a locked chest ($7A) unlocks it into a closed chest; a closed chest ($7B) opens into an open chest and the objects in it ($7C entries whose byte 4 is the chest's index) fall out ($A716). Everything else goes to the scenario's hook at $D024: USE by a creature in the air ($5B2F = $FE), a square where a creature stands on the ground or two creatures stand, and a door or chest that does not open, close or unlock (a locked one without its key, an open door with an object in it, an open chest). A change of terrain costs 4 action points, redraws the map and plays a sound.","t":"code","b":[243],"m":"di","x":[39925,41491]},{"a":29293,"t":"code","b":[205,234,144],"m":"call","oa":37098,"o":"what_is_under_cursor"},{"a":29296,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":29299,"t":"code","b":[237,91,211,208],"m":"ld","oa":53459,"o":"de,($D0D3)"},{"a":29303,"t":"code","b":[205,167,103],"m":"call","oa":26535,"o":"list_objects_at"},{"a":29306,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":29309,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":29311,"t":"code","b":[202,62,115],"m":"jp","oa":29502,"o":"z,$733E"},{"a":29314,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":29317,"t":"code","b":[205,198,102],"m":"call","oa":26310,"o":"find_creatures_any"},{"a":29320,"t":"code","b":[58,174,209],"m":"ld","oa":53678,"o":"a,($D1AE)"},{"a":29323,"t":"code","b":[183],"m":"or","o":"a"},{"a":29324,"t":"code","b":[40,17],"m":"jr","oa":29343,"o":"z,$729F"},{"a":29326,"t":"code","b":[221,42,175,209],"m":"ld","oa":53679,"o":"ix,($D1AF)"},{"a":29330,"t":"code","b":[205,137,120],"m":"call","oa":30857,"o":"is_loose"},{"a":29333,"t":"code","b":[202,62,115],"m":"jp","oa":29502,"o":"z,$733E"},{"a":29336,"t":"code","b":[58,178,209],"m":"ld","oa":53682,"o":"a,($D1B2)"},{"a":29339,"t":"code","b":[183],"m":"or","o":"a"},{"a":29340,"t":"code","b":[194,62,115],"m":"jp","oa":29502,"o":"nz,$733E"},{"a":29343,"t":"code","b":[58,16,91],"m":"ld","oa":23312,"o":"a,($5B10)","x":[29324]},{"a":29346,"t":"code","b":[254,31],"m":"cp","o":"$1F"},{"a":29348,"t":"code","b":[56,31],"m":"jr","oa":29381,"o":"c,$72C5"},{"a":29350,"t":"code","b":[254,34],"m":"cp","o":"$22"},{"a":29352,"t":"code","b":[48,27],"m":"jr","oa":29381,"o":"nc,$72C5"},{"a":29354,"t":"code","b":[58,87,91],"m":"ld","oa":23383,"o":"a,($5B57)"},{"a":29357,"t":"code","b":[254,125],"m":"cp","o":"$7D"},{"a":29359,"t":"code","b":[32,36],"m":"jr","oa":29397,"o":"nz,$72D5"},{"a":29361,"t":"code","b":[221,42,219,208],"m":"ld","oa":53467,"o":"ix,($D0DB)"},{"a":29365,"t":"code","b":[221,54,2,255],"m":"ld","o":"(ix+$02),$FF"},{"a":29369,"t":"code","b":[175],"m":"xor","o":"a"},{"a":29370,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":29373,"t":"code","b":[58,16,91],"m":"ld","oa":23312,"o":"a,($5B10)"},{"a":29376,"t":"code","b":[198,3],"m":"add","o":"a,$03"},{"a":29378,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":29379,"t":"code","b":[24,125],"m":"jr","oa":29506,"o":"$7342"},{"a":29381,"t":"code","b":[58,16,91],"m":"ld","oa":23312,"o":"a,($5B10)","x":[29348,29352]},{"a":29384,"t":"code","b":[254,34],"m":"cp","o":"$22"},{"a":29386,"t":"code","b":[56,9],"m":"jr","oa":29397,"o":"c,$72D5"},{"a":29388,"t":"code","b":[254,37],"m":"cp","o":"$25"},{"a":29390,"t":"code","b":[48,5],"m":"jr","oa":29397,"o":"nc,$72D5"},{"a":29392,"t":"code","b":[198,3],"m":"add","o":"a,$03"},{"a":29394,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":29395,"t":"code","b":[24,109],"m":"jr","oa":29506,"o":"$7342"},{"a":29397,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)","x":[29359,29386,29390]},{"a":29400,"t":"code","b":[183],"m":"or","o":"a"},{"a":29401,"t":"code","b":[32,16],"m":"jr","oa":29419,"o":"nz,$72EB"},{"a":29403,"t":"code","b":[58,16,91],"m":"ld","oa":23312,"o":"a,($5B10)"},{"a":29406,"t":"code","b":[254,37],"m":"cp","o":"$25"},{"a":29408,"t":"code","b":[56,9],"m":"jr","oa":29419,"o":"c,$72EB"},{"a":29410,"t":"code","b":[254,40],"m":"cp","o":"$28"},{"a":29412,"t":"code","b":[48,5],"m":"jr","oa":29419,"o":"nc,$72EB"},{"a":29414,"t":"code","b":[214,3],"m":"sub","o":"$03"},{"a":29416,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":29417,"t":"code","b":[24,87],"m":"jr","oa":29506,"o":"$7342"},{"a":29419,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)","x":[29401,29408,29412]},{"a":29422,"t":"code","b":[254,122],"m":"cp","o":"$7A"},{"a":29424,"t":"code","b":[32,31],"m":"jr","oa":29457,"o":"nz,$7311"},{"a":29426,"t":"code","b":[58,87,91],"m":"ld","oa":23383,"o":"a,($5B57)"},{"a":29429,"t":"code","b":[254,126],"m":"cp","o":"$7E"},{"a":29431,"t":"code","b":[32,24],"m":"jr","oa":29457,"o":"nz,$7311"},{"a":29433,"t":"code","b":[58,45,91],"m":"ld","oa":23341,"o":"a,($5B2D)"},{"a":29436,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":29439,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29440,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29441,"t":"code","b":[54,123],"m":"ld","o":"(hl),$7B"},{"a":29443,"t":"code","b":[221,42,219,208],"m":"ld","oa":53467,"o":"ix,($D0DB)"},{"a":29447,"t":"code","b":[221,54,2,255],"m":"ld","o":"(ix+$02),$FF"},{"a":29451,"t":"code","b":[175],"m":"xor","o":"a"},{"a":29452,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":29455,"t":"code","b":[24,87],"m":"jr","oa":29544,"o":"$7368"},{"a":29457,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)","x":[29424,29431]},{"a":29460,"t":"code","b":[254,123],"m":"cp","o":"$7B"},{"a":29462,"t":"code","b":[32,38],"m":"jr","oa":29502,"o":"nz,$733E"},{"a":29464,"t":"code","b":[58,45,91],"m":"ld","oa":23341,"o":"a,($5B2D)"},{"a":29467,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":29470,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29471,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29472,"t":"code","b":[54,124],"m":"ld","o":"(hl),$7C"},{"a":29474,"t":"code","b":[33,94,91],"m":"ld","o":"hl,$5B5E"},{"a":29477,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":29480,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":29482,"t":"code","b":[58,45,91],"m":"ld","oa":23341,"o":"a,($5B2D)","x":[29491]},{"a":29485,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29486,"t":"code","b":[32,2],"m":"jr","oa":29490,"o":"nz,$7332"},{"a":29488,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":29490,"t":"code","b":[25],"m":"add","o":"hl,de","x":[29486]},{"a":29491,"t":"code","b":[16,245],"m":"djnz","oa":29482,"o":"$732A"},{"a":29493,"t":"code","b":[237,91,211,208],"m":"ld","oa":53459,"o":"de,($D0D3)"},{"a":29497,"t":"code","b":[205,22,167],"m":"call","oa":42774,"o":"trip_square"},{"a":29500,"t":"code","b":[24,42],"m":"jr","oa":29544,"o":"$7368"},{"a":29502,"t":"code","b":[205,36,208],"m":"call","oa":53284,"o":"$D024","x":[29311,29333,29340,29462]},{"a":29505,"t":"code","b":[201],"m":"ret"},{"a":29506,"t":"code","b":[243],"m":"di","x":[29379,29395,29417]},{"a":29507,"t":"code","b":[197],"m":"push","o":"bc"},{"a":29508,"t":"code","b":[175],"m":"xor","o":"a"},{"a":29509,"t":"code","b":[50,208,208],"m":"ld","oa":53456,"o":"($D0D0),a"},{"a":29512,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":29515,"t":"code","b":[183],"m":"or","o":"a"},{"a":29516,"t":"code","b":[32,3],"m":"jr","oa":29521,"o":"nz,$7351"},{"a":29518,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":29521,"t":"code","b":[193],"m":"pop","o":"bc","x":[29516]},{"a":29522,"t":"code","b":[58,18,91],"m":"ld","oa":23314,"o":"a,($5B12)"},{"a":29525,"t":"code","b":[254,80],"m":"cp","o":"$50"},{"a":29527,"t":"code","b":[48,4],"m":"jr","oa":29533,"o":"nc,$735D"},{"a":29529,"t":"code","b":[42,59,91],"m":"ld","oa":23355,"o":"hl,($5B3B)"},{"a":29532,"t":"code","b":[112],"m":"ld","o":"(hl),b"},{"a":29533,"t":"code","b":[120],"m":"ld","o":"a,b","x":[29527]},{"a":29534,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":29537,"t":"code","b":[237,91,211,208],"m":"ld","oa":53459,"o":"de,($D0D3)"},{"a":29541,"t":"code","b":[205,129,115],"m":"call","oa":29569,"o":"set_terrain_under"},{"a":29544,"t":"code","b":[62,4],"m":"ld","o":"a,$04","x":[29455,29500]},{"a":29546,"t":"code","b":[205,186,109],"m":"call","oa":28090,"o":"spend_action_points"},{"a":29549,"t":"code","b":[58,99,208],"m":"ld","oa":53347,"o":"a,($D063)"},{"a":29552,"t":"code","b":[183],"m":"or","o":"a"},{"a":29553,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":29554,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":29557,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":29559,"t":"code","b":[205,78,200],"m":"call","oa":51278,"o":"start_sound"},{"a":29562,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":29564,"t":"code","b":[50,91,180],"m":"ld","oa":46171,"o":"(blink_count),a"},{"a":29567,"t":"code","b":[251],"m":"ei"},{"a":29568,"t":"code","b":[201],"m":"ret"},{"a":29569,"l":"set_terrain_under","c":"Writes the terrain in $5B10 into byte 3 of every entry at row E, column D (keeping bit 7), so that what lies or stands there has the new terrain under it, then $A716.","t":"code","b":[33,90,91],"m":"ld","o":"hl,$5B5A","x":[26815,29541,31693,32327,32397,35117]},{"a":29572,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":29574,"t":"code","b":[213],"m":"push","o":"de","x":[29604]},{"a":29575,"t":"code","b":[229],"m":"push","o":"hl"},{"a":29576,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29577,"t":"code","b":[187],"m":"cp","o":"e"},{"a":29578,"t":"code","b":[32,18],"m":"jr","oa":29598,"o":"nz,$739E"},{"a":29580,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29581,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29582,"t":"code","b":[230,63],"m":"and","o":"$3F"},{"a":29584,"t":"code","b":[186],"m":"cp","o":"d"},{"a":29585,"t":"code","b":[32,11],"m":"jr","oa":29598,"o":"nz,$739E"},{"a":29587,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29588,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29589,"t":"code","b":[58,16,91],"m":"ld","oa":23312,"o":"a,($5B10)"},{"a":29592,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":29593,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29594,"t":"code","b":[230,128],"m":"and","o":"$80"},{"a":29596,"t":"code","b":[177],"m":"or","o":"c"},{"a":29597,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29598,"t":"code","b":[225],"m":"pop","o":"hl","x":[29578,29585]},{"a":29599,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":29602,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":29603,"t":"code","b":[209],"m":"pop","o":"de"},{"a":29604,"t":"code","b":[16,224],"m":"djnz","oa":29574,"o":"$7386"},{"a":29606,"t":"code","b":[205,22,167],"m":"call","oa":42774,"o":"trip_square"},{"a":29609,"t":"code","b":[201],"m":"ret"},{"a":29610,"l":"can_drink","c":"Z clear when the select menu should offer DRINK: the object in use is a vial ($73-$79), or the creature is on the ground and a potion in a cauldron ($6B-$71) lies on its square.","t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)","x":[27785]},{"a":29613,"t":"code","b":[254,115],"m":"cp","o":"$73"},{"a":29615,"t":"code","b":[56,4],"m":"jr","oa":29621,"o":"c,$73B5"},{"a":29617,"t":"code","b":[254,122],"m":"cp","o":"$7A"},{"a":29619,"t":"code","b":[56,23],"m":"jr","oa":29644,"o":"c,$73CC"},{"a":29621,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)","x":[29615]},{"a":29624,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":29626,"t":"code","b":[40,14],"m":"jr","oa":29642,"o":"z,$73CA"},{"a":29628,"t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here"},{"a":29631,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)"},{"a":29634,"t":"code","b":[254,107],"m":"cp","o":"$6B"},{"a":29636,"t":"code","b":[56,4],"m":"jr","oa":29642,"o":"c,$73CA"},{"a":29638,"t":"code","b":[254,114],"m":"cp","o":"$72"},{"a":29640,"t":"code","b":[56,2],"m":"jr","oa":29644,"o":"c,$73CC"},{"a":29642,"t":"code","b":[175],"m":"xor","o":"a","x":[29626,29636]},{"a":29643,"t":"code","b":[201],"m":"ret"},{"a":29644,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[29619,29640]},{"a":29646,"t":"code","b":[183],"m":"or","o":"a"},{"a":29647,"t":"code","b":[201],"m":"ret"},{"a":29648,"l":"drink","c":"DRINK (select menu option $0B): costs 4 action points and plays a sound. A vial in use ($73-$79) becomes an empty vial ($72) and its potion number is $FF26 (1 to 7), its strength from byte 5 of its entry; otherwise the potion in the cauldron on the square is drunk, one gulp off its count (high four bits of byte 5) and the cauldron empty ($67) when none are left. A healing potion (7) restores stamina and constitution to their starting values and clears the fatal wound; any other sets the creature's potion (byte 3 of its record: the potion number in the top three bits, the turns it lasts in the low five, (strength x 3 + 10) / its potion consumption, type byte 9) and an invisibility potion (3) makes it invisible (bit 3 of byte 4); another potion takes invisibility away except from a pixie ($93).","t":"code","b":[62,4],"m":"ld","o":"a,$04","x":[41434,41720]},{"a":29650,"t":"code","b":[205,186,109],"m":"call","oa":28090,"o":"spend_action_points"},{"a":29653,"t":"code","b":[62,11],"m":"ld","o":"a,$0B"},{"a":29655,"t":"code","b":[205,78,200],"m":"call","oa":51278,"o":"start_sound"},{"a":29658,"t":"code","b":[58,87,91],"m":"ld","oa":23383,"o":"a,($5B57)"},{"a":29661,"t":"code","b":[254,115],"m":"cp","o":"$73"},{"a":29663,"t":"code","b":[56,29],"m":"jr","oa":29694,"o":"c,$73FE"},{"a":29665,"t":"code","b":[254,122],"m":"cp","o":"$7A"},{"a":29667,"t":"code","b":[48,25],"m":"jr","oa":29694,"o":"nc,$73FE"},{"a":29669,"t":"code","b":[214,114],"m":"sub","o":"$72"},{"a":29671,"t":"code","b":[50,38,255],"m":"ld","oa":65318,"o":"($FF26),a"},{"a":29674,"t":"code","b":[221,42,219,208],"m":"ld","oa":53467,"o":"ix,($D0DB)"},{"a":29678,"t":"code","b":[62,114],"m":"ld","o":"a,$72"},{"a":29680,"t":"code","b":[221,119,2],"m":"ld","o":"(ix+$02),a"},{"a":29683,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":29686,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":29689,"t":"code","b":[50,39,255],"m":"ld","oa":65319,"o":"($FF27),a"},{"a":29692,"t":"code","b":[24,40],"m":"jr","oa":29734,"o":"$7426"},{"a":29694,"t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here","x":[29663,29667]},{"a":29697,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)"},{"a":29700,"t":"code","b":[214,106],"m":"sub","o":"$6A"},{"a":29702,"t":"code","b":[50,38,255],"m":"ld","oa":65318,"o":"($FF26),a"},{"a":29705,"t":"code","b":[58,45,91],"m":"ld","oa":23341,"o":"a,($5B2D)"},{"a":29708,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":29711,"t":"code","b":[17,5,0],"m":"ld","o":"de,$0005"},{"a":29714,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":29715,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29716,"t":"code","b":[230,15],"m":"and","o":"$0F"},{"a":29718,"t":"code","b":[50,39,255],"m":"ld","oa":65319,"o":"($FF27),a"},{"a":29721,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29722,"t":"code","b":[214,16],"m":"sub","o":"$10"},{"a":29724,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29725,"t":"code","b":[230,240],"m":"and","o":"$F0"},{"a":29727,"t":"code","b":[32,5],"m":"jr","oa":29734,"o":"nz,$7426"},{"a":29729,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":29730,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":29731,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":29732,"t":"code","b":[54,103],"m":"ld","o":"(hl),$67"},{"a":29734,"t":"code","b":[58,38,255],"m":"ld","oa":65318,"o":"a,($FF26)","x":[29692,29727]},{"a":29737,"t":"code","b":[254,7],"m":"cp","o":"$07"},{"a":29739,"t":"code","b":[40,56],"m":"jr","oa":29797,"o":"z,$7465"},{"a":29741,"t":"code","b":[253,42,82,91],"m":"ld","oa":23378,"o":"iy,($5B52)"},{"a":29745,"t":"code","b":[58,39,255],"m":"ld","oa":65319,"o":"a,($FF27)"},{"a":29748,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":29749,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":29750,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":29751,"t":"code","b":[198,10],"m":"add","o":"a,$0A"},{"a":29753,"t":"code","b":[253,70,9],"m":"ld","o":"b,(iy+$09)"},{"a":29756,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":29759,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":29760,"t":"code","b":[58,38,255],"m":"ld","oa":65318,"o":"a,($FF26)"},{"a":29763,"t":"code","b":[15],"m":"rrca"},{"a":29764,"t":"code","b":[15],"m":"rrca"},{"a":29765,"t":"code","b":[15],"m":"rrca"},{"a":29766,"t":"code","b":[176],"m":"or","o":"b"},{"a":29767,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)"},{"a":29771,"t":"code","b":[221,119,3],"m":"ld","o":"(ix+$03),a"},{"a":29774,"t":"code","b":[58,38,255],"m":"ld","oa":65318,"o":"a,($FF26)"},{"a":29777,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":29779,"t":"code","b":[32,5],"m":"jr","oa":29786,"o":"nz,$745A"},{"a":29781,"t":"code","b":[221,203,4,222],"m":"set","o":"3,(ix+$04)"},{"a":29785,"t":"code","b":[201],"m":"ret"},{"a":29786,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)","x":[29779]},{"a":29789,"t":"code","b":[254,147],"m":"cp","o":"$93"},{"a":29791,"t":"code","b":[200],"m":"ret","o":"z"},{"a":29792,"t":"code","b":[221,203,4,158],"m":"res","o":"3,(ix+$04)"},{"a":29796,"t":"code","b":[201],"m":"ret"},{"a":29797,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)","x":[29739]},{"a":29801,"t":"code","b":[58,2,210],"m":"ld","oa":53762,"o":"a,($D202)"},{"a":29804,"t":"code","b":[221,119,2],"m":"ld","o":"(ix+$02),a"},{"a":29807,"t":"code","b":[58,1,210],"m":"ld","oa":53761,"o":"a,($D201)"},{"a":29810,"t":"code","b":[221,119,1],"m":"ld","o":"(ix+$01),a"},{"a":29813,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":29816,"t":"code","b":[230,31],"m":"and","o":"$1F"},{"a":29818,"t":"code","b":[221,119,4],"m":"ld","o":"(ix+$04),a"},{"a":29821,"t":"code","b":[201],"m":"ret"},{"a":29822,"l":"can_fill","c":"Z set when the select menu should offer FILL: the object in use is an empty vial ($72) and a potion in a cauldron ($6B-$71) lies on the square.","t":"code","b":[58,87,91],"m":"ld","oa":23383,"o":"a,($5B57)","x":[27800]},{"a":29825,"t":"code","b":[254,114],"m":"cp","o":"$72"},{"a":29827,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":29828,"t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here"},{"a":29831,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)"},{"a":29834,"t":"code","b":[254,107],"m":"cp","o":"$6B"},{"a":29836,"t":"code","b":[56,6],"m":"jr","oa":29844,"o":"c,$7494"},{"a":29838,"t":"code","b":[254,114],"m":"cp","o":"$72"},{"a":29840,"t":"code","b":[48,2],"m":"jr","oa":29844,"o":"nc,$7494"},{"a":29842,"t":"code","b":[175],"m":"xor","o":"a"},{"a":29843,"t":"code","b":[201],"m":"ret"},{"a":29844,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[29836,29840]},{"a":29846,"t":"code","b":[183],"m":"or","o":"a"},{"a":29847,"t":"code","b":[201],"m":"ret"},{"a":29848,"l":"fill","c":"FILL (select menu option $0C): takes a gulp from the cauldron on the square (high four bits of byte 5; the cauldron is empty, $67, when none are left) into the empty vial in use, which becomes the potion's vial (cauldron type + 8) with the potion's strength. Costs 4 action points.","t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here"},{"a":29851,"t":"code","b":[58,45,91],"m":"ld","oa":23341,"o":"a,($5B2D)"},{"a":29854,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":29857,"t":"code","b":[229],"m":"push","o":"hl"},{"a":29858,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":29860,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":29863,"t":"code","b":[214,16],"m":"sub","o":"$10"},{"a":29865,"t":"code","b":[221,119,5],"m":"ld","o":"(ix+$05),a"},{"a":29868,"t":"code","b":[230,240],"m":"and","o":"$F0"},{"a":29870,"t":"code","b":[32,4],"m":"jr","oa":29876,"o":"nz,$74B4"},{"a":29872,"t":"code","b":[221,54,2,103],"m":"ld","o":"(ix+$02),$67"},{"a":29876,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)","x":[29870]},{"a":29879,"t":"code","b":[230,15],"m":"and","o":"$0F"},{"a":29881,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":29882,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)"},{"a":29885,"t":"code","b":[198,8],"m":"add","o":"a,$08"},{"a":29887,"t":"code","b":[221,42,219,208],"m":"ld","oa":53467,"o":"ix,($D0DB)"},{"a":29891,"t":"code","b":[221,119,2],"m":"ld","o":"(ix+$02),a"},{"a":29894,"t":"code","b":[221,112,5],"m":"ld","o":"(ix+$05),b"},{"a":29897,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":29900,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":29902,"t":"code","b":[205,186,109],"m":"call","oa":28090,"o":"spend_action_points"},{"a":29905,"t":"code","b":[201],"m":"ret"},{"a":29906,"l":"can_eat","c":"Z clear when the select menu should offer EAT: the object in use has bit 2 of byte 5 of its record set.","t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)","x":[27815]},{"a":29909,"t":"code","b":[183],"m":"or","o":"a"},{"a":29910,"t":"code","b":[200],"m":"ret","o":"z"},{"a":29911,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":29913,"t":"code","b":[48,8],"m":"jr","oa":29923,"o":"nc,$74E3"},{"a":29915,"t":"code","b":[205,160,148],"m":"call","oa":38048,"o":"object_record"},{"a":29918,"t":"code","b":[253,203,5,86],"m":"bit","o":"2,(iy+$05)"},{"a":29922,"t":"code","b":[201],"m":"ret"},{"a":29923,"t":"code","b":[175],"m":"xor","o":"a","x":[29913]},{"a":29924,"t":"code","b":[201],"m":"ret"},{"a":29925,"l":"eat","c":"EAT (select menu option $0D): costs 4 action points and plays a sound. The object in use is used up (type $FF); its byte 2 restores stamina four times over and constitution once, each up to its starting value ($D201, $D202), and for a wizard byte 3 restores mana ($84D5).","t":"code","b":[62,4],"m":"ld","o":"a,$04","x":[41851]},{"a":29927,"t":"code","b":[205,186,109],"m":"call","oa":28090,"o":"spend_action_points"},{"a":29930,"t":"code","b":[62,12],"m":"ld","o":"a,$0C"},{"a":29932,"t":"code","b":[205,78,200],"m":"call","oa":51278,"o":"start_sound"},{"a":29935,"t":"code","b":[221,42,219,208],"m":"ld","oa":53467,"o":"ix,($D0DB)"},{"a":29939,"t":"code","b":[205,157,148],"m":"call","oa":38045,"o":"object_record_of"},{"a":29942,"t":"code","b":[221,54,2,255],"m":"ld","o":"(ix+$02),$FF"},{"a":29946,"t":"code","b":[175],"m":"xor","o":"a"},{"a":29947,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":29950,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)"},{"a":29954,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)"},{"a":29957,"t":"code","b":[221,70,1],"m":"ld","o":"b,(ix+$01)"},{"a":29960,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":29961,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":29962,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":29963,"t":"code","b":[33,1,210],"m":"ld","o":"hl,$D201"},{"a":29966,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29967,"t":"code","b":[56,1],"m":"jr","oa":29970,"o":"c,$7512"},{"a":29969,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29970,"t":"code","b":[221,119,1],"m":"ld","o":"(ix+$01),a","x":[29967]},{"a":29973,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":29976,"t":"code","b":[253,134,2],"m":"add","o":"a,(iy+$02)"},{"a":29979,"t":"code","b":[33,2,210],"m":"ld","o":"hl,$D202"},{"a":29982,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29983,"t":"code","b":[56,1],"m":"jr","oa":29986,"o":"c,$7522"},{"a":29985,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29986,"t":"code","b":[221,119,2],"m":"ld","o":"(ix+$02),a","x":[29983]},{"a":29989,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":29992,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":29994,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":29995,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":29998,"t":"code","b":[205,213,132],"m":"call","oa":34005,"o":"add_mana"},{"a":30001,"t":"code","b":[201],"m":"ret"},{"a":30002,"l":"end_turn","c":"END TURN on the cursor menu: asks again with a two-option menu (CANCEL, END TURN). END TURN leaves the human turn's loop by discarding three return addresses; CANCEL goes back.","t":"code","b":[205,48,104],"m":"call","oa":26672,"o":"clear_bars"},{"a":30005,"t":"code","b":[205,255,146],"m":"call","oa":37631,"o":"start_menu"},{"a":30008,"t":"code","b":[62,179],"m":"ld","o":"a,$B3"},{"a":30010,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":30013,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30014,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":30017,"t":"code","b":[62,178],"m":"ld","o":"a,$B2"},{"a":30019,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":30022,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":30024,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":30027,"t":"code","b":[251],"m":"ei"},{"a":30028,"t":"code","b":[205,2,146],"m":"call","oa":37378,"o":"run_menu"},{"a":30031,"t":"code","b":[243],"m":"di"},{"a":30032,"t":"code","b":[33,87,117],"m":"ld","o":"hl,$7557"},{"a":30035,"t":"code","b":[205,34,147],"m":"call","oa":37666,"o":"dispatch_menu"},{"a":30038,"t":"code","b":[201],"m":"ret"},{"a":30039,"l":"end_turn_actions","c":"The two handlers end_turn's menu dispatches to: option 0, CANCEL ($755D), and option 1, END TURN ($755B).","t":"word","b":[93,117,91,117],"d":[30045,30043]},{"a":30043,"l":"end_turn_yes","c":"END TURN confirmed: drops three return addresses, which leaves the human turn's loop.","t":"code","b":[225],"m":"pop","o":"hl"},{"a":30044,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":30045,"l":"end_turn_no","c":"CANCEL: drops the menu's own return address and goes back to the cursor.","t":"code","b":[225],"m":"pop","o":"hl"},{"a":30046,"t":"code","b":[243],"m":"di"},{"a":30047,"t":"code","b":[201],"m":"ret"},{"a":30048,"l":"start_of_turn","c":"The upkeep at the start of a player's turn (player $5B11, 0 for the independent creatures). For each of the player's creatures: it is shown (bit 7 of byte 1), its potion counts down a turn (byte 3) and an invisibility potion or being a pixie ($93) keeps it invisible; on the ground it takes damage from what it stands on (8 in tangle vine, $37; another player's or the wild fire, $38-$41, by that fire's strength at $D04B; another player's gooey blob, $42-$49, by $D050) plus twice its fatal wound, through damage_and_rider. A survivor gets its action points back ($D200; halved when its stamina is under a sixth of the most, and divided by the number of times its constitution goes into the most, so whole above half, halved at half or below, a third at a third or below; flying first costs stamina, half its action points), and stamina back, a sixth of the most (a half under a speed or super potion), up to the most. It is made the selected creature, put back on the map and its engaged bit cleared, and the scenario's hook at $D027 runs. Then for a wizard's player: mana goes up by a 25th of the starting mana ($84D5), $D054 counts down, and a human player gets PRESS FIRE TO CONTINUE.","t":"code","b":[175],"m":"xor","o":"a","x":[24897,24927]},{"a":30049,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":30051,"t":"code","b":[50,37,91],"m":"ld","oa":23333,"o":"($5B25),a"},{"a":30054,"t":"code","b":[205,119,135],"m":"call","oa":34679,"o":"draw_turn_panel"},{"a":30057,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":30059,"t":"code","b":[50,187,209],"m":"ld","oa":53691,"o":"($D1BB),a"},{"a":30062,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":30064,"t":"code","b":[50,38,91],"m":"ld","oa":23334,"o":"($5B26),a"},{"a":30067,"t":"code","b":[33,90,91],"m":"ld","o":"hl,$5B5A"},{"a":30070,"t":"code","b":[34,87,255],"m":"ld","oa":65367,"o":"($FF57),hl"},{"a":30073,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":30075,"t":"code","b":[197],"m":"push","o":"bc","x":[30434]},{"a":30076,"t":"code","b":[62,145],"m":"ld","o":"a,$91"},{"a":30078,"t":"code","b":[144],"m":"sub","o":"b"},{"a":30079,"t":"code","b":[50,43,255],"m":"ld","oa":65323,"o":"($FF2B),a"},{"a":30082,"t":"code","b":[221,42,87,255],"m":"ld","oa":65367,"o":"ix,($FF57)"},{"a":30086,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":30089,"t":"code","b":[60],"m":"inc","o":"a"},{"a":30090,"t":"code","b":[202,214,118],"m":"jp","oa":30422,"o":"z,$76D6"},{"a":30093,"t":"code","b":[254,141],"m":"cp","o":"$8D"},{"a":30095,"t":"code","b":[218,214,118],"m":"jp","oa":30422,"o":"c,$76D6"},{"a":30098,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":30101,"t":"code","b":[50,47,91],"m":"ld","oa":23343,"o":"($5B2F),a"},{"a":30104,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":30107,"t":"code","b":[253,34,80,91],"m":"ld","oa":23376,"o":"($5B50),iy"},{"a":30111,"t":"code","b":[205,195,97],"m":"call","oa":25027,"o":"owner_is_player"},{"a":30114,"t":"code","b":[194,214,118],"m":"jp","oa":30422,"o":"nz,$76D6"},{"a":30117,"t":"code","b":[221,203,1,254],"m":"set","o":"7,(ix+$01)"},{"a":30121,"t":"code","b":[253,203,4,158],"m":"res","o":"3,(iy+$04)"},{"a":30125,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":30128,"t":"code","b":[183],"m":"or","o":"a"},{"a":30129,"t":"code","b":[40,11],"m":"jr","oa":30142,"o":"z,$75BE"},{"a":30131,"t":"code","b":[61],"m":"dec","o":"a"},{"a":30132,"t":"code","b":[253,119,3],"m":"ld","o":"(iy+$03),a"},{"a":30135,"t":"code","b":[230,31],"m":"and","o":"$1F"},{"a":30137,"t":"code","b":[32,3],"m":"jr","oa":30142,"o":"nz,$75BE"},{"a":30139,"t":"code","b":[253,119,3],"m":"ld","o":"(iy+$03),a"},{"a":30142,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)","x":[30129,30137]},{"a":30145,"t":"code","b":[230,224],"m":"and","o":"$E0"},{"a":30147,"t":"code","b":[254,96],"m":"cp","o":"$60"},{"a":30149,"t":"code","b":[40,7],"m":"jr","oa":30158,"o":"z,$75CE"},{"a":30151,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":30154,"t":"code","b":[254,147],"m":"cp","o":"$93"},{"a":30156,"t":"code","b":[32,4],"m":"jr","oa":30162,"o":"nz,$75D2"},{"a":30158,"t":"code","b":[253,203,4,222],"m":"set","o":"3,(iy+$04)","x":[30149]},{"a":30162,"t":"code","b":[6,0],"m":"ld","o":"b,$00","x":[30156]},{"a":30164,"t":"code","b":[205,137,120],"m":"call","oa":30857,"o":"is_loose"},{"a":30167,"t":"code","b":[32,72],"m":"jr","oa":30241,"o":"nz,$7621"},{"a":30169,"t":"code","b":[205,142,120],"m":"call","oa":30862,"o":"terrain_under"},{"a":30172,"t":"code","b":[254,55],"m":"cp","o":"$37"},{"a":30174,"t":"code","b":[32,4],"m":"jr","oa":30180,"o":"nz,$75E4"},{"a":30176,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":30178,"t":"code","b":[24,61],"m":"jr","oa":30241,"o":"$7621"},{"a":30180,"t":"code","b":[254,56],"m":"cp","o":"$38","x":[30174]},{"a":30182,"t":"code","b":[56,57],"m":"jr","oa":30241,"o":"c,$7621"},{"a":30184,"t":"code","b":[254,74],"m":"cp","o":"$4A"},{"a":30186,"t":"code","b":[48,53],"m":"jr","oa":30241,"o":"nc,$7621"},{"a":30188,"t":"code","b":[254,66],"m":"cp","o":"$42"},{"a":30190,"t":"code","b":[48,26],"m":"jr","oa":30218,"o":"nc,$760A"},{"a":30192,"t":"code","b":[214,56],"m":"sub","o":"$38"},{"a":30194,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":30196,"t":"code","b":[40,6],"m":"jr","oa":30204,"o":"z,$75FC"},{"a":30198,"t":"code","b":[33,17,91],"m":"ld","o":"hl,$5B11"},{"a":30201,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":30202,"t":"code","b":[40,37],"m":"jr","oa":30241,"o":"z,$7621"},{"a":30204,"t":"code","b":[95],"m":"ld","o":"e,a","x":[30196]},{"a":30205,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":30207,"t":"code","b":[33,75,208],"m":"ld","o":"hl,$D04B"},{"a":30210,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":30211,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":30212,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":30213,"t":"code","b":[198,25],"m":"add","o":"a,$19"},{"a":30215,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":30216,"t":"code","b":[24,23],"m":"jr","oa":30241,"o":"$7621"},{"a":30218,"t":"code","b":[214,66],"m":"sub","o":"$42","x":[30190]},{"a":30220,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":30222,"t":"code","b":[60],"m":"inc","o":"a"},{"a":30223,"t":"code","b":[33,17,91],"m":"ld","o":"hl,$5B11"},{"a":30226,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":30227,"t":"code","b":[40,12],"m":"jr","oa":30241,"o":"z,$7621"},{"a":30229,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":30230,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":30232,"t":"code","b":[33,80,208],"m":"ld","o":"hl,$D050"},{"a":30235,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":30236,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":30237,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":30238,"t":"code","b":[198,16],"m":"add","o":"a,$10"},{"a":30240,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":30241,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)","x":[30167,30178,30182,30186,30202,30216,30227]},{"a":30244,"t":"code","b":[230,224],"m":"and","o":"$E0"},{"a":30246,"t":"code","b":[7],"m":"rlca"},{"a":30247,"t":"code","b":[7],"m":"rlca"},{"a":30248,"t":"code","b":[7],"m":"rlca"},{"a":30249,"t":"code","b":[7],"m":"rlca"},{"a":30250,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":30251,"t":"code","b":[205,214,120],"m":"call","oa":30934,"o":"damage_and_rider"},{"a":30254,"t":"code","b":[58,48,255],"m":"ld","oa":65328,"o":"a,($FF30)"},{"a":30257,"t":"code","b":[183],"m":"or","o":"a"},{"a":30258,"t":"code","b":[194,214,118],"m":"jp","oa":30422,"o":"nz,$76D6"},{"a":30261,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)"},{"a":30265,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":30268,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":30270,"t":"code","b":[32,16],"m":"jr","oa":30288,"o":"nz,$7650"},{"a":30272,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":30275,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":30277,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":30278,"t":"code","b":[58,252,209],"m":"ld","oa":53756,"o":"a,($D1FC)"},{"a":30281,"t":"code","b":[144],"m":"sub","o":"b"},{"a":30282,"t":"code","b":[48,1],"m":"jr","oa":30285,"o":"nc,$764D"},{"a":30284,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30285,"t":"code","b":[50,252,209],"m":"ld","oa":53756,"o":"($D1FC),a","x":[30282]},{"a":30288,"t":"code","b":[58,0,210],"m":"ld","oa":53760,"o":"a,($D200)","x":[30270]},{"a":30291,"t":"code","b":[221,119,0],"m":"ld","o":"(ix+$00),a"},{"a":30294,"t":"code","b":[58,1,210],"m":"ld","oa":53761,"o":"a,($D201)"},{"a":30297,"t":"code","b":[6,6],"m":"ld","o":"b,$06"},{"a":30299,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":30302,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":30303,"t":"code","b":[58,252,209],"m":"ld","oa":53756,"o":"a,($D1FC)"},{"a":30306,"t":"code","b":[184],"m":"cp","o":"b"},{"a":30307,"t":"code","b":[48,4],"m":"jr","oa":30313,"o":"nc,$7669"},{"a":30309,"t":"code","b":[221,203,0,62],"m":"srl","o":"(ix+$00)"},{"a":30313,"t":"code","b":[58,253,209],"m":"ld","oa":53757,"o":"a,($D1FD)","x":[30307]},{"a":30316,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":30317,"t":"code","b":[58,2,210],"m":"ld","oa":53762,"o":"a,($D202)"},{"a":30320,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":30323,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":30324,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":30327,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":30330,"t":"code","b":[221,119,0],"m":"ld","o":"(ix+$00),a"},{"a":30333,"t":"code","b":[6,6],"m":"ld","o":"b,$06"},{"a":30335,"t":"code","b":[221,126,3],"m":"ld","o":"a,(ix+$03)"},{"a":30338,"t":"code","b":[230,224],"m":"and","o":"$E0"},{"a":30340,"t":"code","b":[254,192],"m":"cp","o":"$C0"},{"a":30342,"t":"code","b":[40,4],"m":"jr","oa":30348,"o":"z,$768C"},{"a":30344,"t":"code","b":[254,128],"m":"cp","o":"$80"},{"a":30346,"t":"code","b":[32,2],"m":"jr","oa":30350,"o":"nz,$768E"},{"a":30348,"t":"code","b":[6,2],"m":"ld","o":"b,$02","x":[30342]},{"a":30350,"t":"code","b":[58,1,210],"m":"ld","oa":53761,"o":"a,($D201)","x":[30346]},{"a":30353,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":30356,"t":"code","b":[33,252,209],"m":"ld","o":"hl,$D1FC"},{"a":30359,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":30360,"t":"code","b":[33,1,210],"m":"ld","o":"hl,$D201"},{"a":30363,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":30364,"t":"code","b":[56,3],"m":"jr","oa":30369,"o":"c,$76A1"},{"a":30366,"t":"code","b":[58,1,210],"m":"ld","oa":53761,"o":"a,($D201)"},{"a":30369,"t":"code","b":[221,119,1],"m":"ld","o":"(ix+$01),a","x":[30364]},{"a":30372,"t":"code","b":[42,249,255],"m":"ld","oa":65529,"o":"hl,($FFF9)"},{"a":30375,"t":"code","b":[34,77,91],"m":"ld","oa":23373,"o":"($5B4D),hl"},{"a":30378,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":30379,"t":"code","b":[50,85,91],"m":"ld","oa":23381,"o":"($5B55),a"},{"a":30382,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30383,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":30384,"t":"code","b":[230,63],"m":"and","o":"$3F"},{"a":30386,"t":"code","b":[50,86,91],"m":"ld","oa":23382,"o":"($5B56),a"},{"a":30389,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30390,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":30391,"t":"code","b":[50,84,91],"m":"ld","oa":23380,"o":"($5B54),a"},{"a":30394,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":30397,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":30399,"t":"code","b":[56,10],"m":"jr","oa":30411,"o":"c,$76CB"},{"a":30401,"t":"code","b":[205,103,170],"m":"call","oa":43623,"o":"map_address_selected"},{"a":30404,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":30407,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":30408,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":30411,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)","x":[30399]},{"a":30415,"t":"code","b":[221,203,4,166],"m":"res","o":"4,(ix+$04)"},{"a":30419,"t":"code","b":[205,39,208],"m":"call","oa":53287,"o":"$D027"},{"a":30422,"t":"code","b":[193],"m":"pop","o":"bc","x":[30090,30095,30114,30258]},{"a":30423,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":30426,"t":"code","b":[42,87,255],"m":"ld","oa":65367,"o":"hl,($FF57)"},{"a":30429,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":30430,"t":"code","b":[34,87,255],"m":"ld","oa":65367,"o":"($FF57),hl"},{"a":30433,"t":"code","b":[5],"m":"dec","o":"b"},{"a":30434,"t":"code","b":[194,123,117],"m":"jp","oa":30075,"o":"nz,$757B"},{"a":30437,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30438,"t":"code","b":[50,187,209],"m":"ld","oa":53691,"o":"($D1BB),a"},{"a":30441,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":30444,"t":"code","b":[183],"m":"or","o":"a"},{"a":30445,"t":"code","b":[200],"m":"ret","o":"z"},{"a":30446,"t":"code","b":[205,140,128],"m":"call","oa":32908,"o":"wizard_record"},{"a":30449,"t":"code","b":[34,4,91],"m":"ld","oa":23300,"o":"($5B04),hl"},{"a":30452,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":30453,"t":"code","b":[6,25],"m":"ld","o":"b,$19"},{"a":30455,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":30458,"t":"code","b":[205,213,132],"m":"call","oa":34005,"o":"add_mana"},{"a":30461,"t":"code","b":[62,145],"m":"ld","o":"a,$91"},{"a":30463,"t":"code","b":[50,40,91],"m":"ld","oa":23336,"o":"($5B28),a"},{"a":30466,"t":"code","b":[62,45],"m":"ld","o":"a,$2D"},{"a":30468,"t":"code","b":[50,58,255],"m":"ld","oa":65338,"o":"($FF3A),a"},{"a":30471,"t":"code","b":[237,91,17,91],"m":"ld","oa":23313,"o":"de,($5B11)"},{"a":30475,"t":"code","b":[29],"m":"dec","o":"e"},{"a":30476,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":30478,"t":"code","b":[33,84,208],"m":"ld","o":"hl,$D054"},{"a":30481,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":30482,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":30483,"t":"code","b":[183],"m":"or","o":"a"},{"a":30484,"t":"code","b":[40,1],"m":"jr","oa":30487,"o":"z,$7717"},{"a":30486,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":30487,"t":"code","b":[58,100,208],"m":"ld","oa":53348,"o":"a,($D064)","x":[30484]},{"a":30490,"t":"code","b":[183],"m":"or","o":"a"},{"a":30491,"t":"code","b":[40,6],"m":"jr","oa":30499,"o":"z,$7723"},{"a":30493,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":30496,"t":"code","b":[254,2],"m":"cp","o":"$02"},{"a":30498,"t":"code","b":[200],"m":"ret","o":"z"},{"a":30499,"t":"code","b":[62,70],"m":"ld","o":"a,$46","x":[30491]},{"a":30501,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":30504,"t":"code","b":[62,229],"m":"ld","o":"a,$E5"},{"a":30506,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":30509,"t":"code","b":[205,233,145],"m":"call","oa":37353,"o":"wait_fire"},{"a":30512,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":30515,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":30518,"t":"code","b":[201],"m":"ret"},{"a":30519,"l":"load_creature","c":"Makes creature A the one being looked at: $5B58 = A, IX and $FFF9 its entry, IY its type record ($B5A7), IX its record ($B58F); lists what it carries and copies its figures to $D1FB on ($9342).","t":"code","b":[50,88,91],"m":"ld","oa":23384,"o":"($5B58),a","x":[27974,30567,34210,34240,34312,39066,39207,40107,40559,42189,45445]},{"a":30522,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":30525,"t":"code","b":[34,249,255],"m":"ld","oa":65529,"o":"($FFF9),hl"},{"a":30528,"t":"code","b":[221,42,249,255],"m":"ld","oa":65529,"o":"ix,($FFF9)"},{"a":30532,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":30535,"t":"code","b":[253,229],"m":"push","o":"iy"},{"a":30537,"t":"code","b":[205,167,181],"m":"call","oa":46503,"o":"type_record_of"},{"a":30540,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":30542,"t":"code","b":[205,70,103],"m":"call","oa":26438,"o":"list_found_carries"},{"a":30545,"t":"code","b":[205,66,147],"m":"call","oa":37698,"o":"load_figures"},{"a":30548,"t":"code","b":[201],"m":"ret"},{"a":30549,"l":"damage_creature","c":"Takes A ($FF2D) from the constitution of creature $FF2B. A blow of more than a quarter of the starting constitution adds one to the fatal wound (top three bits of byte 4, at most 7). If the creature dies: its death is shown ($973C), constitution 0, action points $FF; in a game against the computer a dead computer creature is struck from its list ($994B); it leaves the object table (type $FF) and the map (the terrain under it put back), $FF30 is set, and the player who killed it ($5B26 + 1, when not its owner) gets its victory points (byte 10 of its type, halved unless a wizard struck the blow, $5B27) in $D058, up to 255. What it carried falls to the ground; a rider it carried takes the square on the map when the rider is shown (bit 7 of byte 1 of its entry). A dead computer wizard ($8D) zeroes the computer's points ($D059); a dead wizard is handled by $8C0C. Returns with $FF2E the rider's index when the dead creature was flying, $FF otherwise.","t":"code","b":[50,45,255],"m":"ld","oa":65325,"o":"($FF2D),a","x":[30934,30953,32715]},{"a":30552,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":30554,"t":"code","b":[50,46,255],"m":"ld","oa":65326,"o":"($FF2E),a"},{"a":30557,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30558,"t":"code","b":[50,47,255],"m":"ld","oa":65327,"o":"($FF2F),a"},{"a":30561,"t":"code","b":[50,48,255],"m":"ld","oa":65328,"o":"($FF30),a"},{"a":30564,"t":"code","b":[58,43,255],"m":"ld","oa":65323,"o":"a,($FF2B)"},{"a":30567,"t":"code","b":[205,55,119],"m":"call","oa":30519,"o":"load_creature"},{"a":30570,"t":"code","b":[58,2,210],"m":"ld","oa":53762,"o":"a,($D202)"},{"a":30573,"t":"code","b":[6,4],"m":"ld","o":"b,$04"},{"a":30575,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":30578,"t":"code","b":[33,45,255],"m":"ld","o":"hl,$FF2D"},{"a":30581,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":30582,"t":"code","b":[48,26],"m":"jr","oa":30610,"o":"nc,$7792"},{"a":30584,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":30587,"t":"code","b":[230,224],"m":"and","o":"$E0"},{"a":30589,"t":"code","b":[7],"m":"rlca"},{"a":30590,"t":"code","b":[7],"m":"rlca"},{"a":30591,"t":"code","b":[7],"m":"rlca"},{"a":30592,"t":"code","b":[254,7],"m":"cp","o":"$07"},{"a":30594,"t":"code","b":[40,14],"m":"jr","oa":30610,"o":"z,$7792"},{"a":30596,"t":"code","b":[60],"m":"inc","o":"a"},{"a":30597,"t":"code","b":[15],"m":"rrca"},{"a":30598,"t":"code","b":[15],"m":"rrca"},{"a":30599,"t":"code","b":[15],"m":"rrca"},{"a":30600,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":30601,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":30604,"t":"code","b":[230,31],"m":"and","o":"$1F"},{"a":30606,"t":"code","b":[176],"m":"or","o":"b"},{"a":30607,"t":"code","b":[221,119,4],"m":"ld","o":"(ix+$04),a"},{"a":30610,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)","x":[30582,30594]},{"a":30613,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":30614,"t":"code","b":[33,45,255],"m":"ld","o":"hl,$FF2D"},{"a":30617,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":30618,"t":"code","b":[221,119,2],"m":"ld","o":"(ix+$02),a"},{"a":30621,"t":"code","b":[50,253,209],"m":"ld","oa":53757,"o":"($D1FD),a"},{"a":30624,"t":"code","b":[40,2],"m":"jr","oa":30628,"o":"z,$77A4"},{"a":30626,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":30627,"t":"code","b":[112],"m":"ld","o":"(hl),b"},{"a":30628,"t":"code","b":[205,60,151],"m":"call","oa":38716,"o":"clear_plan","x":[30624]},{"a":30631,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30632,"t":"code","b":[50,253,209],"m":"ld","oa":53757,"o":"($D1FD),a"},{"a":30635,"t":"code","b":[221,119,2],"m":"ld","o":"(ix+$02),a"},{"a":30638,"t":"code","b":[221,54,0,255],"m":"ld","o":"(ix+$00),$FF"},{"a":30642,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":30645,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":30647,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":30648,"t":"code","b":[254,2],"m":"cp","o":"$02"},{"a":30650,"t":"code","b":[32,18],"m":"jr","oa":30670,"o":"nz,$77CE"},{"a":30652,"t":"code","b":[58,100,208],"m":"ld","oa":53348,"o":"a,($D064)"},{"a":30655,"t":"code","b":[183],"m":"or","o":"a"},{"a":30656,"t":"code","b":[40,12],"m":"jr","oa":30670,"o":"z,$77CE"},{"a":30658,"t":"code","b":[213],"m":"push","o":"de"},{"a":30659,"t":"code","b":[58,43,255],"m":"ld","oa":65323,"o":"a,($FF2B)"},{"a":30662,"t":"code","b":[205,75,153],"m":"call","oa":39243,"o":"find_in_wizard_list"},{"a":30665,"t":"code","b":[32,2],"m":"jr","oa":30669,"o":"nz,$77CD"},{"a":30667,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":30669,"t":"code","b":[209],"m":"pop","o":"de","x":[30665]},{"a":30670,"t":"code","b":[221,42,249,255],"m":"ld","oa":65529,"o":"ix,($FFF9)","x":[30650,30656]},{"a":30674,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":30677,"t":"code","b":[50,5,255],"m":"ld","oa":65285,"o":"($FF05),a"},{"a":30680,"t":"code","b":[221,54,2,255],"m":"ld","o":"(ix+$02),$FF"},{"a":30684,"t":"code","b":[205,98,140],"m":"call","oa":35938,"o":"entry_square"},{"a":30687,"t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":30690,"t":"code","b":[205,142,120],"m":"call","oa":30862,"o":"terrain_under"},{"a":30693,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":30694,"t":"code","b":[229],"m":"push","o":"hl"},{"a":30695,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":30697,"t":"code","b":[50,48,255],"m":"ld","oa":65328,"o":"($FF30),a"},{"a":30700,"t":"code","b":[58,38,91],"m":"ld","oa":23334,"o":"a,($5B26)"},{"a":30703,"t":"code","b":[60],"m":"inc","o":"a"},{"a":30704,"t":"code","b":[40,31],"m":"jr","oa":30737,"o":"z,$7811"},{"a":30706,"t":"code","b":[186],"m":"cp","o":"d"},{"a":30707,"t":"code","b":[40,28],"m":"jr","oa":30737,"o":"z,$7811"},{"a":30709,"t":"code","b":[253,70,10],"m":"ld","o":"b,(iy+$0A)"},{"a":30712,"t":"code","b":[58,39,91],"m":"ld","oa":23335,"o":"a,($5B27)"},{"a":30715,"t":"code","b":[183],"m":"or","o":"a"},{"a":30716,"t":"code","b":[32,2],"m":"jr","oa":30720,"o":"nz,$7800"},{"a":30718,"t":"code","b":[203,56],"m":"srl","o":"b"},{"a":30720,"t":"code","b":[120],"m":"ld","o":"a,b","x":[30716]},{"a":30721,"t":"code","b":[237,91,38,91],"m":"ld","oa":23334,"o":"de,($5B26)"},{"a":30725,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":30727,"t":"code","b":[33,88,208],"m":"ld","o":"hl,$D058"},{"a":30730,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":30731,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":30732,"t":"code","b":[48,2],"m":"jr","oa":30736,"o":"nc,$7810"},{"a":30734,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":30736,"t":"code","b":[119],"m":"ld","o":"(hl),a","x":[30732]},{"a":30737,"t":"code","b":[6,145],"m":"ld","o":"b,$91","x":[30704,30707]},{"a":30739,"t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A"},{"a":30743,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)","x":[30786]},{"a":30746,"t":"code","b":[60],"m":"inc","o":"a"},{"a":30747,"t":"code","b":[40,32],"m":"jr","oa":30781,"o":"z,$783D"},{"a":30749,"t":"code","b":[58,88,91],"m":"ld","oa":23384,"o":"a,($5B58)"},{"a":30752,"t":"code","b":[221,190,4],"m":"cp","o":"(ix+$04)"},{"a":30755,"t":"code","b":[32,24],"m":"jr","oa":30781,"o":"nz,$783D"},{"a":30757,"t":"code","b":[221,54,4,255],"m":"ld","o":"(ix+$04),$FF"},{"a":30761,"t":"code","b":[221,203,3,190],"m":"res","o":"7,(ix+$03)"},{"a":30765,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":30768,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":30770,"t":"code","b":[56,9],"m":"jr","oa":30781,"o":"c,$783D"},{"a":30772,"t":"code","b":[50,47,255],"m":"ld","oa":65327,"o":"($FF2F),a"},{"a":30775,"t":"code","b":[62,145],"m":"ld","o":"a,$91"},{"a":30777,"t":"code","b":[144],"m":"sub","o":"b"},{"a":30778,"t":"code","b":[50,46,255],"m":"ld","oa":65326,"o":"($FF2E),a"},{"a":30781,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006","x":[30747,30755,30770]},{"a":30784,"t":"code","b":[221,25],"m":"add","o":"ix,de"},{"a":30786,"t":"code","b":[16,211],"m":"djnz","oa":30743,"o":"$7817"},{"a":30788,"t":"code","b":[209],"m":"pop","o":"de"},{"a":30789,"t":"code","b":[58,47,255],"m":"ld","oa":65327,"o":"a,($FF2F)"},{"a":30792,"t":"code","b":[183],"m":"or","o":"a"},{"a":30793,"t":"code","b":[40,17],"m":"jr","oa":30812,"o":"z,$785C"},{"a":30795,"t":"code","b":[58,46,255],"m":"ld","oa":65326,"o":"a,($FF2E)"},{"a":30798,"t":"code","b":[213],"m":"push","o":"de"},{"a":30799,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":30802,"t":"code","b":[209],"m":"pop","o":"de"},{"a":30803,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30804,"t":"code","b":[203,126],"m":"bit","o":"7,(hl)"},{"a":30806,"t":"code","b":[40,4],"m":"jr","oa":30812,"o":"z,$785C"},{"a":30808,"t":"code","b":[58,47,255],"m":"ld","oa":65327,"o":"a,($FF2F)"},{"a":30811,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":30812,"t":"code","b":[221,42,249,255],"m":"ld","oa":65529,"o":"ix,($FFF9)","x":[30793,30806]},{"a":30816,"t":"code","b":[58,100,208],"m":"ld","oa":53348,"o":"a,($D064)"},{"a":30819,"t":"code","b":[183],"m":"or","o":"a"},{"a":30820,"t":"code","b":[40,11],"m":"jr","oa":30833,"o":"z,$7871"},{"a":30822,"t":"code","b":[58,5,255],"m":"ld","oa":65285,"o":"a,($FF05)"},{"a":30825,"t":"code","b":[254,141],"m":"cp","o":"$8D"},{"a":30827,"t":"code","b":[32,4],"m":"jr","oa":30833,"o":"nz,$7871"},{"a":30829,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30830,"t":"code","b":[50,89,208],"m":"ld","oa":53337,"o":"($D059),a"},{"a":30833,"t":"code","b":[58,5,255],"m":"ld","oa":65285,"o":"a,($FF05)","x":[30820,30827]},{"a":30836,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":30838,"t":"code","b":[220,12,140],"m":"call","oa":35852,"o":"c,wizard_gone"},{"a":30841,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying"},{"a":30844,"t":"code","b":[200],"m":"ret","o":"z"},{"a":30845,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":30847,"t":"code","b":[50,46,255],"m":"ld","oa":65326,"o":"($FF2E),a"},{"a":30850,"t":"code","b":[201],"m":"ret"},{"a":30851,"l":"is_flying","c":"Z set when the entry at IX has $FE in byte 4: a creature in the air.","t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)","x":[26100,26363,28132,30841,36905,37275,38677,40185,40412,45545,45724,45843,45860,45879]},{"a":30854,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":30856,"t":"code","b":[201],"m":"ret"},{"a":30857,"l":"is_loose","c":"Z set when the entry at IX has $FF in byte 4: a creature on the ground or an object no one carries.","t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)","x":[26573,29330,30164,31730,32076,32682,33738,36617,36651,40216]},{"a":30860,"t":"code","b":[60],"m":"inc","o":"a"},{"a":30861,"t":"code","b":[201],"m":"ret"},{"a":30862,"l":"terrain_under","c":"A = the terrain under the entry at IX (byte 3 without bit 7).","t":"code","b":[221,126,3],"m":"ld","o":"a,(ix+$03)","x":[25806,25907,26606,30169,30690,31106,31735,36921,45398,45651,46558]},{"a":30865,"t":"code","b":[230,127],"m":"and","o":"$7F"},{"a":30867,"t":"code","b":[201],"m":"ret"},{"a":30868,"l":"entry_position","c":"E = the row and D = the column of the entry at IX.","t":"code","b":[221,94,0],"m":"ld","o":"e,(ix+$00)","x":[39340,40463,41162]},{"a":30871,"t":"code","b":[205,162,120],"m":"call","oa":30882,"o":"entry_column"},{"a":30874,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":30875,"t":"code","b":[201],"m":"ret"},{"a":30876,"l":"read_table_word","c":"HL = the word at HL + DE: an entry of a table of addresses.","t":"code","b":[25],"m":"add","o":"hl,de","x":[25141,32916,33526,33651,37491,37680,39702,42075,44327,52344]},{"a":30877,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":30878,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30879,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":30880,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":30881,"t":"code","b":[201],"m":"ret"},{"a":30882,"l":"entry_column","c":"A = the column of the entry at IX (byte 1 without its top two bits).","t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)","x":[26374,26590,30871,35389,35941,37259,39105,41054,45587,45645,45744]},{"a":30885,"t":"code","b":[230,63],"m":"and","o":"$3F"},{"a":30887,"t":"code","b":[201],"m":"ret"},{"a":30888,"l":"reset_ff86","c":"The plain cursor, for looking round: graphic 1 in colour set 0 ($FF86, $FF87).","t":"code","b":[33,1,0],"m":"ld","o":"hl,$0001","x":[25043,34194,35154,36714]},{"a":30891,"t":"code","b":[34,134,255],"m":"ld","oa":65414,"o":"($FF86),hl"},{"a":30894,"t":"code","b":[201],"m":"ret"},{"a":30895,"l":"value_against_best_at","c":"Adds DE to HL and goes on into value_against_best.","t":"code","b":[25],"m":"add","o":"hl,de","x":[41564,41656,41694]},{"a":30896,"l":"value_against_best","c":"A = the byte at HL without bit 7, compared with the computer's best value so far ($D19D): carry set when it is smaller, Z when equal.","t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[42478]},{"a":30897,"t":"code","b":[230,127],"m":"and","o":"$7F"},{"a":30899,"t":"code","b":[33,157,209],"m":"ld","o":"hl,$D19D"},{"a":30902,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":30903,"t":"code","b":[201],"m":"ret"},{"a":30904,"l":"cursor_on_selected","c":"Z set when the cursor ($D0D3) is on the selected creature's square ($5B55).","t":"code","b":[58,85,91],"m":"ld","oa":23381,"o":"a,($5B55)","x":[31440,31616,34419,35494,35594]},{"a":30907,"t":"code","b":[33,211,208],"m":"ld","o":"hl,$D0D3"},{"a":30910,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":30911,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":30912,"t":"code","b":[58,86,91],"m":"ld","oa":23382,"o":"a,($5B56)"},{"a":30915,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30916,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":30917,"t":"code","b":[201],"m":"ret"},{"a":30918,"l":"carry_limit","c":"A = byte 7 of the selected creature's type record ($5B52): the weight it can carry.","t":"code","b":[253,42,82,91],"m":"ld","oa":23378,"o":"iy,($5B52)","x":[27701,28792,39180,41724]},{"a":30922,"t":"code","b":[253,126,7],"m":"ld","o":"a,(iy+$07)"},{"a":30925,"t":"code","b":[201],"m":"ret"},{"a":30926,"l":"selected_potion","c":"A = byte 3 of the selected creature's record ($5B50): its potion and the turns left.","t":"code","b":[253,42,80,91],"m":"ld","oa":23376,"o":"iy,($5B50)","x":[35560,41144,41396,41676]},{"a":30930,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":30933,"t":"code","b":[201],"m":"ret"},{"a":30934,"l":"damage_and_rider","c":"damage_creature, and if the creature dies in the air with a rider, the rider too: 255 points of damage.","t":"code","b":[205,85,119],"m":"call","oa":30549,"o":"damage_creature","x":[30251,34391,35448]},{"a":30937,"t":"code","b":[58,48,255],"m":"ld","oa":65328,"o":"a,($FF30)"},{"a":30940,"t":"code","b":[183],"m":"or","o":"a"},{"a":30941,"t":"code","b":[200],"m":"ret","o":"z"},{"a":30942,"t":"code","b":[58,46,255],"m":"ld","oa":65326,"o":"a,($FF2E)"},{"a":30945,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":30947,"t":"code","b":[200],"m":"ret","o":"z"},{"a":30948,"t":"code","b":[50,43,255],"m":"ld","oa":65323,"o":"($FF2B),a"},{"a":30951,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":30953,"t":"code","b":[205,85,119],"m":"call","oa":30549,"o":"damage_creature"},{"a":30956,"t":"code","b":[201],"m":"ret"},{"a":30957,"l":"print_number","c":"Prints A as a decimal number of up to three digits without leading zeros, padded with spaces after it to three columns.","t":"code","b":[14,0],"m":"ld","o":"c,$00","x":[24753,28430,28817,31057,31068,33053,33204,33232,34756,34794,36550,38617,52116,52206]},{"a":30959,"t":"code","b":[6,100],"m":"ld","o":"b,$64"},{"a":30961,"t":"code","b":[205,15,121],"m":"call","oa":30991,"o":"print_digit"},{"a":30964,"t":"code","b":[6,10],"m":"ld","o":"b,$0A"},{"a":30966,"t":"code","b":[205,15,121],"m":"call","oa":30991,"o":"print_digit"},{"a":30969,"t":"code","b":[6,1],"m":"ld","o":"b,$01"},{"a":30971,"t":"code","b":[205,15,121],"m":"call","oa":30991,"o":"print_digit"},{"a":30974,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":30976,"t":"code","b":[145],"m":"sub","o":"c"},{"a":30977,"t":"code","b":[200],"m":"ret","o":"z"},{"a":30978,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":30979,"t":"code","b":[62,32],"m":"ld","o":"a,$20","x":[30988]},{"a":30981,"t":"code","b":[205,83,172],"m":"call","oa":44115,"o":"print_char"},{"a":30984,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16"},{"a":30987,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":30988,"t":"code","b":[16,245],"m":"djnz","oa":30979,"o":"$7903"},{"a":30990,"t":"code","b":[201],"m":"ret"},{"a":30991,"l":"print_digit","c":"One digit of print_number: how many times B goes into A, printed unless it is a leading zero; returns the remainder.","t":"code","b":[30,0],"m":"ld","o":"e,$00","x":[30961,30966,30971]},{"a":30993,"t":"code","b":[144],"m":"sub","o":"b","x":[30997]},{"a":30994,"t":"code","b":[56,3],"m":"jr","oa":30999,"o":"c,$7917"},{"a":30996,"t":"code","b":[28],"m":"inc","o":"e"},{"a":30997,"t":"code","b":[24,250],"m":"jr","oa":30993,"o":"$7911"},{"a":30999,"t":"code","b":[128],"m":"add","o":"a,b","x":[30994]},{"a":31000,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":31001,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":31002,"t":"code","b":[183],"m":"or","o":"a"},{"a":31003,"t":"code","b":[32,9],"m":"jr","oa":31014,"o":"nz,$7926"},{"a":31005,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":31006,"t":"code","b":[254,1],"m":"cp","o":"$01"},{"a":31008,"t":"code","b":[40,4],"m":"jr","oa":31014,"o":"z,$7926"},{"a":31010,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":31011,"t":"code","b":[183],"m":"or","o":"a"},{"a":31012,"t":"code","b":[40,11],"m":"jr","oa":31025,"o":"z,$7931"},{"a":31014,"t":"code","b":[123],"m":"ld","o":"a,e","x":[31003,31008]},{"a":31015,"t":"code","b":[198,48],"m":"add","o":"a,$30"},{"a":31017,"t":"code","b":[205,83,172],"m":"call","oa":44115,"o":"print_char"},{"a":31020,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16"},{"a":31023,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":31024,"t":"code","b":[12],"m":"inc","o":"c"},{"a":31025,"t":"code","b":[122],"m":"ld","o":"a,d","x":[31012]},{"a":31026,"t":"code","b":[201],"m":"ret"},{"a":31027,"l":"show_enemy_spotted","c":"When enemies are in view ($5B40 on the ground, $5B41 in the air) prints ENEMY SPOTTED with the two counts on the message line and returns Z clear; Z set and nothing printed when there are none.","t":"code","b":[58,64,91],"m":"ld","oa":23360,"o":"a,($5B40)","x":[27085,28013,36958]},{"a":31030,"t":"code","b":[33,65,91],"m":"ld","o":"hl,$5B41"},{"a":31033,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":31034,"t":"code","b":[200],"m":"ret","o":"z"},{"a":31035,"t":"code","b":[205,100,100],"m":"call","oa":25700,"o":"clear_message_line"},{"a":31038,"t":"code","b":[62,189],"m":"ld","o":"a,$BD"},{"a":31040,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":31043,"t":"code","b":[33,71,71],"m":"ld","o":"hl,$4747"},{"a":31046,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":31049,"t":"code","b":[62,22],"m":"ld","o":"a,$16"},{"a":31051,"t":"code","b":[50,22,91],"m":"ld","oa":23318,"o":"($5B16),a"},{"a":31054,"t":"code","b":[58,64,91],"m":"ld","oa":23360,"o":"a,($5B40)"},{"a":31057,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number"},{"a":31060,"t":"code","b":[62,29],"m":"ld","o":"a,$1D"},{"a":31062,"t":"code","b":[50,22,91],"m":"ld","oa":23318,"o":"($5B16),a"},{"a":31065,"t":"code","b":[58,65,91],"m":"ld","oa":23361,"o":"a,($5B41)"},{"a":31068,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number"},{"a":31071,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31072,"t":"code","b":[50,215,208],"m":"ld","oa":53463,"o":"($D0D7),a"},{"a":31075,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":31078,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":31080,"t":"code","b":[183],"m":"or","o":"a"},{"a":31081,"t":"code","b":[201],"m":"ret"},{"a":31082,"l":"clear_map_things","c":"Takes every entry of the object table off the map: bits 6 and 7 of its byte 1 are cleared (entry_square, $8C62, leaves the column without them; bit 7 is the shown flag the sight code sets) and its map square gets back the terrain under it (byte 3). Run after each player's turn.","t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A","x":[24903,24963]},{"a":31086,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":31089,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":31091,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)","x":[31112]},{"a":31094,"t":"code","b":[60],"m":"inc","o":"a"},{"a":31095,"t":"code","b":[40,13],"m":"jr","oa":31110,"o":"z,$7986"},{"a":31097,"t":"code","b":[205,98,140],"m":"call","oa":35938,"o":"entry_square"},{"a":31100,"t":"code","b":[221,119,1],"m":"ld","o":"(ix+$01),a"},{"a":31103,"t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":31106,"t":"code","b":[205,142,120],"m":"call","oa":30862,"o":"terrain_under"},{"a":31109,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":31110,"t":"code","b":[221,25],"m":"add","o":"ix,de","x":[31095]},{"a":31112,"t":"code","b":[16,233],"m":"djnz","oa":31091,"o":"$7973"},{"a":31114,"t":"code","b":[201],"m":"ret"},{"a":31115,"l":"show_hit","c":"Shows a blow landing on creature $FFF9, unless the turn is hidden ($D066) or $79F9 says to skip it once (it is cleared either way): its map square briefly shows the hit graphic ($4E) with a sound, flickers once for each point of damage ($FF2D, also in $C839) and, if it died ($FF30), shows the death graphic ($4F) with another sound until the interrupt has moved the counter at ($D032) + $18F from $A5 to $A8. The square then gets back what it showed.","t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)","x":[32726,34394,35451]},{"a":31118,"t":"code","b":[183],"m":"or","o":"a"},{"a":31119,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":31120,"t":"code","b":[33,249,121],"m":"ld","o":"hl,$79F9"},{"a":31123,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31124,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":31126,"t":"code","b":[183],"m":"or","o":"a"},{"a":31127,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":31128,"t":"code","b":[221,42,249,255],"m":"ld","oa":65529,"o":"ix,($FFF9)"},{"a":31132,"t":"code","b":[205,98,140],"m":"call","oa":35938,"o":"entry_square"},{"a":31135,"t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":31138,"t":"code","b":[34,59,91],"m":"ld","oa":23355,"o":"($5B3B),hl"},{"a":31141,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31142,"t":"code","b":[50,18,91],"m":"ld","oa":23314,"o":"($5B12),a"},{"a":31145,"t":"code","b":[54,78],"m":"ld","o":"(hl),$4E"},{"a":31147,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":31149,"t":"code","b":[205,58,200],"m":"call","oa":51258,"o":"set_sound"},{"a":31152,"t":"code","b":[251],"m":"ei"},{"a":31153,"t":"code","b":[58,45,255],"m":"ld","oa":65325,"o":"a,($FF2D)"},{"a":31156,"t":"code","b":[183],"m":"or","o":"a"},{"a":31157,"t":"code","b":[40,48],"m":"jr","oa":31207,"o":"z,$79E7"},{"a":31159,"t":"code","b":[50,57,200],"m":"ld","oa":51257,"o":"(sound_running),a"},{"a":31162,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":31163,"t":"code","b":[175],"m":"xor","o":"a","x":[31173]},{"a":31164,"t":"code","b":[50,208,208],"m":"ld","oa":53456,"o":"($D0D0),a"},{"a":31167,"t":"code","b":[50,91,180],"m":"ld","oa":46171,"o":"(blink_count),a"},{"a":31170,"t":"code","b":[205,31,149],"m":"call","oa":38175,"o":"delay_8"},{"a":31173,"t":"code","b":[16,244],"m":"djnz","oa":31163,"o":"$79BB"},{"a":31175,"t":"code","b":[243],"m":"di"},{"a":31176,"t":"code","b":[58,48,255],"m":"ld","oa":65328,"o":"a,($FF30)"},{"a":31179,"t":"code","b":[183],"m":"or","o":"a"},{"a":31180,"t":"code","b":[40,25],"m":"jr","oa":31207,"o":"z,$79E7"},{"a":31182,"t":"code","b":[42,59,91],"m":"ld","oa":23355,"o":"hl,($5B3B)"},{"a":31185,"t":"code","b":[54,79],"m":"ld","o":"(hl),$4F"},{"a":31187,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":31189,"t":"code","b":[205,58,200],"m":"call","oa":51258,"o":"set_sound"},{"a":31192,"t":"code","b":[42,50,208],"m":"ld","oa":53298,"o":"hl,($D032)"},{"a":31195,"t":"code","b":[17,143,1],"m":"ld","o":"de,$018F"},{"a":31198,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":31199,"t":"code","b":[54,165],"m":"ld","o":"(hl),$A5"},{"a":31201,"t":"code","b":[251],"m":"ei"},{"a":31202,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[31205]},{"a":31203,"t":"code","b":[254,168],"m":"cp","o":"$A8"},{"a":31205,"t":"code","b":[32,251],"m":"jr","oa":31202,"o":"nz,$79E2"},{"a":31207,"t":"code","b":[251],"m":"ei","x":[31157,31180]},{"a":31208,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31209,"t":"code","b":[50,57,200],"m":"ld","oa":51257,"o":"(sound_running),a"},{"a":31212,"t":"code","b":[58,18,91],"m":"ld","oa":23314,"o":"a,($5B12)"},{"a":31215,"t":"code","b":[42,59,91],"m":"ld","oa":23355,"o":"hl,($5B3B)"},{"a":31218,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":31219,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":31221,"t":"code","b":[50,91,180],"m":"ld","oa":46171,"o":"(blink_count),a"},{"a":31224,"t":"code","b":[201],"m":"ret"},{"a":31225,"l":"skip_hit","c":"When not 0, show_hit shows nothing the next time it is called; it clears it.","t":"byte","b":[0],"x":[35875]},{"a":31226,"l":"throw_air","c":"THROW-A (select menu option $0E): throw at a flying target ($FF31 = $FE).","t":"code","b":[62,254],"m":"ld","o":"a,$FE"},{"a":31228,"t":"code","b":[50,49,255],"m":"ld","oa":65329,"o":"($FF31),a"},{"a":31231,"t":"code","b":[24,5],"m":"jr","oa":31238,"o":"$7A06"},{"a":31233,"l":"throw_ground","c":"THROW-G (select menu option $0F): throw at a target on the ground ($FF31 = $FF). Picks the square ($7AC1, range by weight and strength); fire on the thrower's own square cancels. A ground throw at impassable terrain (byte 0 of its record $FF) or a square out of sight gives NO LINE OF SIGHT and asks again.","t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":31235,"t":"code","b":[50,49,255],"m":"ld","oa":65329,"o":"($FF31),a"},{"a":31238,"t":"code","b":[205,193,122],"m":"call","oa":31425,"o":"pick_throw_target","x":[31231,31270]},{"a":31241,"t":"code","b":[200],"m":"ret","o":"z"},{"a":31242,"t":"code","b":[205,234,144],"m":"call","oa":37098,"o":"what_is_under_cursor"},{"a":31245,"t":"code","b":[205,39,145],"m":"call","oa":37159,"o":"terrain_record"},{"a":31248,"t":"code","b":[58,49,255],"m":"ld","oa":65329,"o":"a,($FF31)"},{"a":31251,"t":"code","b":[60],"m":"inc","o":"a"},{"a":31252,"t":"code","b":[32,6],"m":"jr","oa":31260,"o":"nz,$7A1C"},{"a":31254,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":31257,"t":"code","b":[60],"m":"inc","o":"a"},{"a":31258,"t":"code","b":[40,5],"m":"jr","oa":31265,"o":"z,$7A21"},{"a":31260,"t":"code","b":[205,233,122],"m":"call","oa":31465,"o":"line_of_sight","x":[31252]},{"a":31263,"t":"code","b":[40,7],"m":"jr","oa":31272,"o":"z,throw_object"},{"a":31265,"t":"code","b":[62,206],"m":"ld","o":"a,$CE","x":[31258]},{"a":31267,"t":"code","b":[205,130,106],"m":"call","oa":27266,"o":"show_message"},{"a":31270,"t":"code","b":[24,222],"m":"jr","oa":31238,"o":"$7A06"},{"a":31272,"l":"throw_object","c":"The object in use flies to the target square ($D0D3): it lies there, shown, no longer carried, with the square's terrain under it; the flight is drawn (projectile 3, $B5F7, and $AE02 when the turn is shown) and the map updated. If its type does damage when thrown (byte 4 of its record, into $FF62) the creature on that square at the target height takes a ranged blow from the thrower ($85F1). Costs 8 action points; a sound when it is a human's turn.","t":"code","b":[205,234,144],"m":"call","oa":37098,"o":"what_is_under_cursor","x":[31263,42549]},{"a":31275,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":31278,"t":"code","b":[58,218,208],"m":"ld","oa":53466,"o":"a,($D0DA)"},{"a":31281,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":31284,"t":"code","b":[58,211,208],"m":"ld","oa":53459,"o":"a,($D0D3)"},{"a":31287,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":31288,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":31289,"t":"code","b":[58,212,208],"m":"ld","oa":53460,"o":"a,($D0D4)"},{"a":31292,"t":"code","b":[246,128],"m":"or","o":"$80"},{"a":31294,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":31295,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":31296,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":31297,"t":"code","b":[58,16,91],"m":"ld","oa":23312,"o":"a,($5B10)"},{"a":31300,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":31301,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":31302,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":31304,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":31306,"t":"code","b":[205,247,181],"m":"call","oa":46583,"o":"set_missile"},{"a":31309,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":31312,"t":"code","b":[183],"m":"or","o":"a"},{"a":31313,"t":"code","b":[204,2,174],"m":"call","oa":44546,"o":"z,draw_missile"},{"a":31316,"t":"code","b":[42,61,255],"m":"ld","oa":65341,"o":"hl,($FF3D)"},{"a":31319,"t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":31322,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31323,"t":"code","b":[254,80],"m":"cp","o":"$50"},{"a":31325,"t":"code","b":[48,4],"m":"jr","oa":31331,"o":"nc,$7A63"},{"a":31327,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":31330,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":31331,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)","x":[31325]},{"a":31334,"t":"code","b":[183],"m":"or","o":"a"},{"a":31335,"t":"code","b":[204,76,169],"m":"call","oa":43340,"o":"z,draw_map"},{"a":31338,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31339,"t":"code","b":[50,99,255],"m":"ld","oa":65379,"o":"($FF63),a"},{"a":31342,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":31345,"t":"code","b":[205,160,148],"m":"call","oa":38048,"o":"object_record"},{"a":31348,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":31351,"t":"code","b":[183],"m":"or","o":"a"},{"a":31352,"t":"code","b":[40,52],"m":"jr","oa":31406,"o":"z,$7AAE"},{"a":31354,"t":"code","b":[50,98,255],"m":"ld","oa":65378,"o":"($FF62),a"},{"a":31357,"t":"code","b":[42,61,255],"m":"ld","oa":65341,"o":"hl,($FF3D)","x":[31648]},{"a":31360,"t":"code","b":[205,198,102],"m":"call","oa":26310,"o":"find_creatures_any"},{"a":31363,"t":"code","b":[58,174,209],"m":"ld","oa":53678,"o":"a,($D1AE)"},{"a":31366,"t":"code","b":[183],"m":"or","o":"a"},{"a":31367,"t":"code","b":[40,37],"m":"jr","oa":31406,"o":"z,$7AAE"},{"a":31369,"t":"code","b":[221,42,175,209],"m":"ld","oa":53679,"o":"ix,($D1AF)"},{"a":31373,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":31376,"t":"code","b":[33,49,255],"m":"ld","o":"hl,$FF31"},{"a":31379,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":31380,"t":"code","b":[58,177,209],"m":"ld","oa":53681,"o":"a,($D1B1)"},{"a":31383,"t":"code","b":[40,9],"m":"jr","oa":31394,"o":"z,$7AA2"},{"a":31385,"t":"code","b":[58,178,209],"m":"ld","oa":53682,"o":"a,($D1B2)"},{"a":31388,"t":"code","b":[183],"m":"or","o":"a"},{"a":31389,"t":"code","b":[40,15],"m":"jr","oa":31406,"o":"z,$7AAE"},{"a":31391,"t":"code","b":[58,181,209],"m":"ld","oa":53685,"o":"a,($D1B5)"},{"a":31394,"t":"code","b":[50,43,255],"m":"ld","oa":65323,"o":"($FF2B),a","x":[31383]},{"a":31397,"t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)"},{"a":31400,"t":"code","b":[50,44,255],"m":"ld","oa":65324,"o":"($FF2C),a"},{"a":31403,"t":"code","b":[205,241,133],"m":"call","oa":34289,"o":"strike_ranged"},{"a":31406,"t":"code","b":[62,8],"m":"ld","o":"a,$08","x":[31352,31367,31389]},{"a":31408,"t":"code","b":[205,186,109],"m":"call","oa":28090,"o":"spend_action_points"},{"a":31411,"t":"code","b":[58,99,208],"m":"ld","oa":53347,"o":"a,($D063)"},{"a":31414,"t":"code","b":[183],"m":"or","o":"a"},{"a":31415,"t":"code","b":[32,4],"m":"jr","oa":31421,"o":"nz,$7ABD"},{"a":31417,"t":"code","b":[251],"m":"ei"},{"a":31418,"t":"code","b":[205,26,149],"m":"call","oa":38170,"o":"delay_255"},{"a":31421,"t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre","x":[31415]},{"a":31424,"t":"code","b":[201],"m":"ret"},{"a":31425,"l":"pick_throw_target","c":"Shows the moves, waits for the controls to be let go and lets the player pick a square within throwing range ($7AD4); Z set when the cursor is on the thrower.","t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre","x":[31238]},{"a":31428,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":31431,"t":"code","b":[58,87,91],"m":"ld","oa":23383,"o":"a,($5B57)"},{"a":31434,"t":"code","b":[205,212,122],"m":"call","oa":31444,"o":"throw_range"},{"a":31437,"t":"code","b":[205,2,114],"m":"call","oa":29186,"o":"pick_target"},{"a":31440,"t":"code","b":[205,184,120],"m":"call","oa":30904,"o":"cursor_on_selected"},{"a":31443,"t":"code","b":[201],"m":"ret"},{"a":31444,"l":"throw_range","c":"How far an object of type A can be thrown: the thrower's strength ($D1FE) times 2 over the object's weight (byte 1 of its record), plus 5, at most 36.","t":"code","b":[205,160,148],"m":"call","oa":38048,"o":"object_record","x":[31434,42498]},{"a":31447,"t":"code","b":[253,70,1],"m":"ld","o":"b,(iy+$01)"},{"a":31450,"t":"code","b":[58,254,209],"m":"ld","oa":53758,"o":"a,($D1FE)"},{"a":31453,"t":"code","b":[7],"m":"rlca"},{"a":31454,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":31457,"t":"code","b":[198,5],"m":"add","o":"a,$05"},{"a":31459,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":31461,"t":"code","b":[216],"m":"ret","o":"c"},{"a":31462,"t":"code","b":[62,36],"m":"ld","o":"a,$24"},{"a":31464,"t":"code","b":[201],"m":"ret"},{"a":31465,"l":"line_of_sight","c":"Whether the selected creature ($5B55, into $FF88) can see the cursor's square ($D0D3, into $FF4D): with a target in the air, or a thrower in the air, the line is traced at once ($B40F); otherwise a creature under a roof (bit 4 of byte 4 of its square's terrain record) or a target square with one fails without the trace (Z clear). Both on the ground: the ground trace ($B416). Z set when the line is clear.","t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)","x":[31260,31620,34433,40326,42527]},{"a":31468,"t":"code","b":[34,136,255],"m":"ld","oa":65416,"o":"($FF88),hl"},{"a":31471,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":31474,"t":"code","b":[34,77,255],"m":"ld","oa":65357,"o":"($FF4D),hl"},{"a":31477,"l":"line_between","c":"The same test for the line from square $FF88 to square $FF4D, with the target's height in $FF31.","t":"code","b":[58,49,255],"m":"ld","oa":65329,"o":"a,($FF31)","x":[40834]},{"a":31480,"t":"code","b":[60],"m":"inc","o":"a"},{"a":31481,"t":"code","b":[40,29],"m":"jr","oa":31512,"o":"z,$7B18"},{"a":31483,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":31486,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":31488,"t":"code","b":[32,4],"m":"jr","oa":31494,"o":"nz,$7B06"},{"a":31490,"t":"code","b":[205,15,180],"m":"call","oa":46095,"o":"trace_line_air"},{"a":31493,"t":"code","b":[201],"m":"ret"},{"a":31494,"t":"code","b":[42,136,255],"m":"ld","oa":65416,"o":"hl,($FF88)","x":[31488]},{"a":31497,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":31500,"t":"code","b":[205,39,145],"m":"call","oa":37159,"o":"terrain_record"},{"a":31503,"t":"code","b":[253,203,4,102],"m":"bit","o":"4,(iy+$04)"},{"a":31507,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":31508,"t":"code","b":[205,15,180],"m":"call","oa":46095,"o":"trace_line_air"},{"a":31511,"t":"code","b":[201],"m":"ret"},{"a":31512,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)","x":[31481]},{"a":31515,"t":"code","b":[60],"m":"inc","o":"a"},{"a":31516,"t":"code","b":[40,15],"m":"jr","oa":31533,"o":"z,$7B2D"},{"a":31518,"t":"code","b":[205,234,144],"m":"call","oa":37098,"o":"what_is_under_cursor"},{"a":31521,"t":"code","b":[205,39,145],"m":"call","oa":37159,"o":"terrain_record"},{"a":31524,"t":"code","b":[253,203,4,102],"m":"bit","o":"4,(iy+$04)"},{"a":31528,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":31529,"t":"code","b":[205,15,180],"m":"call","oa":46095,"o":"trace_line_air"},{"a":31532,"t":"code","b":[201],"m":"ret"},{"a":31533,"t":"code","b":[205,22,180],"m":"call","oa":46102,"o":"trace_line_ground","x":[31516]},{"a":31536,"t":"code","b":[201],"m":"ret"},{"a":31537,"l":"fire_air","c":"FIRE-A (select menu option $10): fire at a flying target.","t":"code","b":[62,254],"m":"ld","o":"a,$FE"},{"a":31539,"t":"code","b":[50,49,255],"m":"ld","oa":65329,"o":"($FF31),a"},{"a":31542,"t":"code","b":[24,5],"m":"jr","oa":31549,"o":"fire_missile"},{"a":31544,"l":"fire_ground","c":"FIRE-G (select menu option $11): fire at a target on the ground.","t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":31546,"t":"code","b":[50,49,255],"m":"ld","oa":65329,"o":"($FF31),a"},{"a":31549,"l":"fire_missile","c":"Dragons ($90-$92) breathe flame (projectile 0); an archer shoots projectile 1 with a bow ($5C) and projectile 2 with anything else (the magic bow). The computer's target is $FF02; a human picks it within range ($FF60), the shooter's own square cancelling and a square out of sight giving NO LINE OF SIGHT. The flight is drawn when the turn is shown and the target takes the hit ($7A7D). Flame ($FF5D) then sets the target square on fire ($38) when a random number is below its terrain's flammability (low four bits of byte 3 of its record), with $5B22 = $14.","t":"code","b":[175],"m":"xor","o":"a","x":[31542,40340]},{"a":31550,"t":"code","b":[50,99,255],"m":"ld","oa":65379,"o":"($FF63),a"},{"a":31553,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":31556,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":31558,"t":"code","b":[56,10],"m":"jr","oa":31570,"o":"c,$7B52"},{"a":31560,"t":"code","b":[254,147],"m":"cp","o":"$93"},{"a":31562,"t":"code","b":[48,6],"m":"jr","oa":31570,"o":"nc,$7B52"},{"a":31564,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31565,"t":"code","b":[205,247,181],"m":"call","oa":46583,"o":"set_missile"},{"a":31568,"t":"code","b":[24,17],"m":"jr","oa":31587,"o":"$7B63"},{"a":31570,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[31558,31562]},{"a":31572,"t":"code","b":[205,247,181],"m":"call","oa":46583,"o":"set_missile"},{"a":31575,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":31578,"t":"code","b":[254,92],"m":"cp","o":"$5C"},{"a":31580,"t":"code","b":[40,5],"m":"jr","oa":31587,"o":"z,$7B63"},{"a":31582,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":31584,"t":"code","b":[205,247,181],"m":"call","oa":46583,"o":"set_missile"},{"a":31587,"t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre","x":[31568,31580,31630]},{"a":31590,"t":"code","b":[58,99,208],"m":"ld","oa":53347,"o":"a,($D063)"},{"a":31593,"t":"code","b":[183],"m":"or","o":"a"},{"a":31594,"t":"code","b":[40,11],"m":"jr","oa":31607,"o":"z,$7B77"},{"a":31596,"t":"code","b":[42,2,255],"m":"ld","oa":65282,"o":"hl,($FF02)"},{"a":31599,"t":"code","b":[34,61,255],"m":"ld","oa":65341,"o":"($FF3D),hl"},{"a":31602,"t":"code","b":[34,211,208],"m":"ld","oa":53459,"o":"($D0D3),hl"},{"a":31605,"t":"code","b":[24,25],"m":"jr","oa":31632,"o":"$7B90"},{"a":31607,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release","x":[31594]},{"a":31610,"t":"code","b":[58,96,255],"m":"ld","oa":65376,"o":"a,($FF60)"},{"a":31613,"t":"code","b":[205,2,114],"m":"call","oa":29186,"o":"pick_target"},{"a":31616,"t":"code","b":[205,184,120],"m":"call","oa":30904,"o":"cursor_on_selected"},{"a":31619,"t":"code","b":[200],"m":"ret","o":"z"},{"a":31620,"t":"code","b":[205,233,122],"m":"call","oa":31465,"o":"line_of_sight"},{"a":31623,"t":"code","b":[40,7],"m":"jr","oa":31632,"o":"z,$7B90"},{"a":31625,"t":"code","b":[62,206],"m":"ld","o":"a,$CE"},{"a":31627,"t":"code","b":[205,130,106],"m":"call","oa":27266,"o":"show_message"},{"a":31630,"t":"code","b":[24,211],"m":"jr","oa":31587,"o":"$7B63"},{"a":31632,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)","x":[31605,31623]},{"a":31635,"t":"code","b":[183],"m":"or","o":"a"},{"a":31636,"t":"code","b":[32,6],"m":"jr","oa":31644,"o":"nz,$7B9C"},{"a":31638,"t":"code","b":[205,2,174],"m":"call","oa":44546,"o":"draw_missile"},{"a":31641,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":31644,"t":"code","b":[175],"m":"xor","o":"a","x":[31636]},{"a":31645,"t":"code","b":[50,217,208],"m":"ld","oa":53465,"o":"($D0D9),a"},{"a":31648,"t":"code","b":[205,125,122],"m":"call","oa":31357,"o":"$7A7D"},{"a":31651,"t":"code","b":[58,93,255],"m":"ld","oa":65373,"o":"a,($FF5D)"},{"a":31654,"t":"code","b":[183],"m":"or","o":"a"},{"a":31655,"t":"code","b":[200],"m":"ret","o":"z"},{"a":31656,"t":"code","b":[62,56],"m":"ld","o":"a,$38"},{"a":31658,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":31661,"t":"code","b":[62,20],"m":"ld","o":"a,$14"},{"a":31663,"t":"code","b":[50,34,91],"m":"ld","oa":23330,"o":"($5B22),a"},{"a":31666,"t":"code","b":[42,61,255],"m":"ld","oa":65341,"o":"hl,($FF3D)"},{"a":31669,"t":"code","b":[34,136,255],"m":"ld","oa":65416,"o":"($FF88),hl"},{"a":31672,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":31675,"t":"code","b":[205,39,145],"m":"call","oa":37159,"o":"terrain_record"},{"a":31678,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":31681,"t":"code","b":[230,15],"m":"and","o":"$0F"},{"a":31683,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":31684,"l":"maybe_set_terrain","c":"Sets square $FF88 to the terrain in $5B10 when a random number ($A737) is below B; carry set when it did.","t":"code","b":[205,55,167],"m":"call","oa":42807,"o":"random_below","x":[32621,34653]},{"a":31687,"t":"code","b":[184],"m":"cp","o":"b"},{"a":31688,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":31689,"l":"set_square_terrain","c":"Sets square $FF88's terrain to $5B10: the entries there get it as the terrain under them and the map square shows it unless something stands on it. Returns with carry set.","t":"code","b":[237,91,136,255],"m":"ld","oa":65416,"o":"de,($FF88)","x":[32511,36303]},{"a":31693,"t":"code","b":[205,129,115],"m":"call","oa":29569,"o":"set_terrain_under"},{"a":31696,"t":"code","b":[42,136,255],"m":"ld","oa":65416,"o":"hl,($FF88)"},{"a":31699,"t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":31702,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31703,"t":"code","b":[254,80],"m":"cp","o":"$50"},{"a":31705,"t":"code","b":[48,4],"m":"jr","oa":31711,"o":"nc,$7BDF"},{"a":31707,"t":"code","b":[58,16,91],"m":"ld","oa":23312,"o":"a,($5B10)"},{"a":31710,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":31711,"t":"code","b":[55],"m":"scf","x":[31705]},{"a":31712,"t":"code","b":[201],"m":"ret"},{"a":31713,"l":"destroy_lost_objects","c":"Objects lying loose on water ($36), or in fire or magic fire ($38-$41) unless fireproof (bit 3 of byte 5 of their record), are destroyed (type $FF).","t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A","x":[24912,24969,32730]},{"a":31717,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":31719,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)","x":[31768]},{"a":31722,"t":"code","b":[254,80],"m":"cp","o":"$50"},{"a":31724,"t":"code","b":[56,37],"m":"jr","oa":31763,"o":"c,$7C13"},{"a":31726,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":31728,"t":"code","b":[48,33],"m":"jr","oa":31763,"o":"nc,$7C13"},{"a":31730,"t":"code","b":[205,137,120],"m":"call","oa":30857,"o":"is_loose"},{"a":31733,"t":"code","b":[32,28],"m":"jr","oa":31763,"o":"nz,$7C13"},{"a":31735,"t":"code","b":[205,142,120],"m":"call","oa":30862,"o":"terrain_under"},{"a":31738,"t":"code","b":[254,54],"m":"cp","o":"$36"},{"a":31740,"t":"code","b":[40,17],"m":"jr","oa":31759,"o":"z,$7C0F"},{"a":31742,"t":"code","b":[254,56],"m":"cp","o":"$38"},{"a":31744,"t":"code","b":[56,17],"m":"jr","oa":31763,"o":"c,$7C13"},{"a":31746,"t":"code","b":[254,66],"m":"cp","o":"$42"},{"a":31748,"t":"code","b":[48,13],"m":"jr","oa":31763,"o":"nc,$7C13"},{"a":31750,"t":"code","b":[205,157,148],"m":"call","oa":38045,"o":"object_record_of"},{"a":31753,"t":"code","b":[253,203,5,94],"m":"bit","o":"3,(iy+$05)"},{"a":31757,"t":"code","b":[32,4],"m":"jr","oa":31763,"o":"nz,$7C13"},{"a":31759,"t":"code","b":[221,54,2,255],"m":"ld","o":"(ix+$02),$FF","x":[31740]},{"a":31763,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006","x":[31724,31728,31733,31744,31748,31757]},{"a":31766,"t":"code","b":[221,25],"m":"add","o":"ix,de"},{"a":31768,"t":"code","b":[16,205],"m":"djnz","oa":31719,"o":"$7BE7"},{"a":31770,"t":"code","b":[201],"m":"ret"},{"a":31771,"l":"big_map_height","c":"Which creatures the big map shows where two share a square: $FE the flying one, $FF the one on the ground. Flipped while the map shows.","t":"byte","b":[254]},{"a":31772,"l":"big_map","c":"BIG MAP on both menus: draws 23 rows of 31 squares of the map, from 8 rows above and 12 columns left of the window, in the scenario's small font ($D009) with each terrain's character and colour from the table at ($D007), objects as character 8 and creatures as 1 (a wizard), 2 (on the ground) or 3 (in the air) in their owner's colour; frames the view and waits about 100 polls for fire, redrawing only the creatures with the other height each time round.","t":"code","b":[243],"m":"di"},{"a":31773,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":31776,"t":"code","b":[42,200,208],"m":"ld","oa":53448,"o":"hl,($D0C8)"},{"a":31779,"t":"code","b":[34,204,208],"m":"ld","oa":53452,"o":"($D0CC),hl"},{"a":31782,"t":"code","b":[58,204,208],"m":"ld","oa":53452,"o":"a,($D0CC)"},{"a":31785,"t":"code","b":[214,8],"m":"sub","o":"$08"},{"a":31787,"t":"code","b":[48,2],"m":"jr","oa":31791,"o":"nc,$7C2F"},{"a":31789,"t":"code","b":[198,36],"m":"add","o":"a,$24"},{"a":31791,"t":"code","b":[50,204,208],"m":"ld","oa":53452,"o":"($D0CC),a","x":[31787]},{"a":31794,"t":"code","b":[50,55,255],"m":"ld","oa":65335,"o":"($FF37),a"},{"a":31797,"t":"code","b":[58,205,208],"m":"ld","oa":53453,"o":"a,($D0CD)"},{"a":31800,"t":"code","b":[214,12],"m":"sub","o":"$0C"},{"a":31802,"t":"code","b":[48,2],"m":"jr","oa":31806,"o":"nc,$7C3E"},{"a":31804,"t":"code","b":[198,36],"m":"add","o":"a,$24"},{"a":31806,"t":"code","b":[50,205,208],"m":"ld","oa":53453,"o":"($D0CD),a","x":[31802]},{"a":31809,"t":"code","b":[50,56,255],"m":"ld","oa":65336,"o":"($FF38),a"},{"a":31812,"t":"code","b":[42,9,208],"m":"ld","oa":53257,"o":"hl,($D009)"},{"a":31815,"t":"code","b":[34,14,91],"m":"ld","oa":23310,"o":"($5B0E),hl"},{"a":31818,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":31821,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":31824,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":31826,"t":"code","b":[50,20,91],"m":"ld","oa":23316,"o":"($5B14),a"},{"a":31829,"t":"code","b":[50,54,255],"m":"ld","oa":65334,"o":"($FF36),a"},{"a":31832,"t":"code","b":[6,23],"m":"ld","o":"b,$17"},{"a":31834,"t":"code","b":[197],"m":"push","o":"bc","x":[31902,31954]},{"a":31835,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31836,"t":"code","b":[50,22,91],"m":"ld","oa":23318,"o":"($5B16),a"},{"a":31839,"t":"code","b":[58,56,255],"m":"ld","oa":65336,"o":"a,($FF38)"},{"a":31842,"t":"code","b":[50,205,208],"m":"ld","oa":53453,"o":"($D0CD),a"},{"a":31845,"t":"code","b":[6,31],"m":"ld","o":"b,$1F"},{"a":31847,"t":"code","b":[197],"m":"push","o":"bc","x":[31880]},{"a":31848,"t":"code","b":[58,54,255],"m":"ld","oa":65334,"o":"a,($FF36)"},{"a":31851,"t":"code","b":[183],"m":"or","o":"a"},{"a":31852,"t":"code","b":[40,3],"m":"jr","oa":31857,"o":"z,$7C71"},{"a":31854,"t":"code","b":[205,217,124],"m":"call","oa":31961,"o":"big_map_terrain"},{"a":31857,"t":"code","b":[205,0,125],"m":"call","oa":32000,"o":"big_map_creature","x":[31852]},{"a":31860,"t":"code","b":[58,22,91],"m":"ld","oa":23318,"o":"a,($5B16)"},{"a":31863,"t":"code","b":[60],"m":"inc","o":"a"},{"a":31864,"t":"code","b":[50,22,91],"m":"ld","oa":23318,"o":"($5B16),a"},{"a":31867,"t":"code","b":[58,205,208],"m":"ld","oa":53453,"o":"a,($D0CD)"},{"a":31870,"t":"code","b":[60],"m":"inc","o":"a"},{"a":31871,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":31873,"t":"code","b":[32,1],"m":"jr","oa":31876,"o":"nz,$7C84"},{"a":31875,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31876,"t":"code","b":[50,205,208],"m":"ld","oa":53453,"o":"($D0CD),a","x":[31873]},{"a":31879,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":31880,"t":"code","b":[16,221],"m":"djnz","oa":31847,"o":"$7C67"},{"a":31882,"t":"code","b":[58,21,91],"m":"ld","oa":23317,"o":"a,($5B15)"},{"a":31885,"t":"code","b":[60],"m":"inc","o":"a"},{"a":31886,"t":"code","b":[50,21,91],"m":"ld","oa":23317,"o":"($5B15),a"},{"a":31889,"t":"code","b":[58,204,208],"m":"ld","oa":53452,"o":"a,($D0CC)"},{"a":31892,"t":"code","b":[60],"m":"inc","o":"a"},{"a":31893,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":31895,"t":"code","b":[32,1],"m":"jr","oa":31898,"o":"nz,$7C9A"},{"a":31897,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31898,"t":"code","b":[50,204,208],"m":"ld","oa":53452,"o":"($D0CC),a","x":[31895]},{"a":31901,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":31902,"t":"code","b":[16,186],"m":"djnz","oa":31834,"o":"$7C5A"},{"a":31904,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31905,"t":"code","b":[50,54,255],"m":"ld","oa":65334,"o":"($FF36),a"},{"a":31908,"t":"code","b":[205,91,125],"m":"call","oa":32091,"o":"big_map_frame"},{"a":31911,"t":"code","b":[6,100],"m":"ld","o":"b,$64"},{"a":31913,"t":"code","b":[197],"m":"push","o":"bc","x":[31928]},{"a":31914,"t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls"},{"a":31917,"t":"code","b":[205,16,149],"m":"call","oa":38160,"o":"delay_2"},{"a":31920,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":31923,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":31925,"t":"code","b":[40,29],"m":"jr","oa":31956,"o":"z,$7CD4"},{"a":31927,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":31928,"t":"code","b":[16,239],"m":"djnz","oa":31913,"o":"$7CA9"},{"a":31930,"t":"code","b":[205,91,125],"m":"call","oa":32091,"o":"big_map_frame"},{"a":31933,"t":"code","b":[42,55,255],"m":"ld","oa":65335,"o":"hl,($FF37)"},{"a":31936,"t":"code","b":[34,204,208],"m":"ld","oa":53452,"o":"($D0CC),hl"},{"a":31939,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":31942,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":31945,"t":"code","b":[6,23],"m":"ld","o":"b,$17"},{"a":31947,"t":"code","b":[62,253],"m":"ld","o":"a,$FD"},{"a":31949,"t":"code","b":[33,27,124],"m":"ld","o":"hl,$7C1B"},{"a":31952,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":31953,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":31954,"t":"code","b":[24,134],"m":"jr","oa":31834,"o":"$7C5A"},{"a":31956,"t":"code","b":[193],"m":"pop","o":"bc","x":[31925]},{"a":31957,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":31960,"t":"code","b":[201],"m":"ret"},{"a":31961,"l":"big_map_terrain","c":"One square of the big map's terrain: the map byte's character and colour from ($D007), or character 8 in red for an object; nothing for a creature.","t":"code","b":[205,93,170],"m":"call","oa":43613,"o":"map_address_window","x":[31854]},{"a":31964,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31965,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":31967,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":31968,"t":"code","b":[254,80],"m":"cp","o":"$50"},{"a":31970,"t":"code","b":[56,9],"m":"jr","oa":31981,"o":"c,$7CED"},{"a":31972,"t":"code","b":[62,66],"m":"ld","o":"a,$42"},{"a":31974,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":31977,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":31979,"t":"code","b":[24,15],"m":"jr","oa":31996,"o":"$7CFC"},{"a":31981,"t":"code","b":[7],"m":"rlca","x":[31970]},{"a":31982,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":31983,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":31985,"t":"code","b":[42,7,208],"m":"ld","oa":53255,"o":"hl,($D007)"},{"a":31988,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":31989,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":31990,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31991,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":31994,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":31995,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31996,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small","x":[31979]},{"a":31999,"t":"code","b":[201],"m":"ret"},{"a":32000,"l":"big_map_creature","c":"One square of the big map's creatures: the creature there (the shown one, or the one at the height big_map_height asks for) as character 1, 2 or 3 in colour $47 less its owner.","t":"code","b":[205,93,170],"m":"call","oa":43613,"o":"map_address_window","x":[31857]},{"a":32003,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32004,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":32006,"t":"code","b":[216],"m":"ret","o":"c"},{"a":32007,"t":"code","b":[42,204,208],"m":"ld","oa":53452,"o":"hl,($D0CC)"},{"a":32010,"t":"code","b":[205,198,102],"m":"call","oa":26310,"o":"find_creatures_any"},{"a":32013,"t":"code","b":[221,42,175,209],"m":"ld","oa":53679,"o":"ix,($D1AF)"},{"a":32017,"t":"code","b":[58,178,209],"m":"ld","oa":53682,"o":"a,($D1B2)"},{"a":32020,"t":"code","b":[183],"m":"or","o":"a"},{"a":32021,"t":"code","b":[40,27],"m":"jr","oa":32050,"o":"z,$7D32"},{"a":32023,"t":"code","b":[221,203,1,126],"m":"bit","o":"7,(ix+$01)"},{"a":32027,"t":"code","b":[40,9],"m":"jr","oa":32038,"o":"z,$7D26"},{"a":32029,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":32032,"t":"code","b":[33,27,124],"m":"ld","o":"hl,$7C1B"},{"a":32035,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":32036,"t":"code","b":[40,12],"m":"jr","oa":32050,"o":"z,$7D32"},{"a":32038,"t":"code","b":[42,179,209],"m":"ld","oa":53683,"o":"hl,($D1B3)","x":[32027]},{"a":32041,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32042,"t":"code","b":[203,126],"m":"bit","o":"7,(hl)"},{"a":32044,"t":"code","b":[40,4],"m":"jr","oa":32050,"o":"z,$7D32"},{"a":32046,"t":"code","b":[221,42,179,209],"m":"ld","oa":53683,"o":"ix,($D1B3)"},{"a":32050,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of","x":[32021,32036,32044]},{"a":32053,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":32056,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":32058,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":32059,"t":"code","b":[62,71],"m":"ld","o":"a,$47"},{"a":32061,"t":"code","b":[144],"m":"sub","o":"b"},{"a":32062,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":32065,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":32068,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":32070,"t":"code","b":[48,4],"m":"jr","oa":32076,"o":"nc,$7D4C"},{"a":32072,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":32074,"t":"code","b":[24,11],"m":"jr","oa":32087,"o":"$7D57"},{"a":32076,"t":"code","b":[205,137,120],"m":"call","oa":30857,"o":"is_loose","x":[32070]},{"a":32079,"t":"code","b":[32,4],"m":"jr","oa":32085,"o":"nz,$7D55"},{"a":32081,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":32083,"t":"code","b":[24,2],"m":"jr","oa":32087,"o":"$7D57"},{"a":32085,"t":"code","b":[62,3],"m":"ld","o":"a,$03","x":[32079]},{"a":32087,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small","x":[32074,32083]},{"a":32090,"t":"code","b":[201],"m":"ret"},{"a":32091,"l":"big_map_frame","c":"Draws the big map's frame: two horizontal lines of 56 points and two vertical lines of 54, with the plotting routine at $ACC9.","t":"code","b":[62,2],"m":"ld","o":"a,$02","x":[31908,31930]},{"a":32093,"t":"code","b":[50,50,255],"m":"ld","oa":65330,"o":"($FF32),a"},{"a":32096,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":32098,"t":"code","b":[50,97,255],"m":"ld","oa":65377,"o":"($FF61),a"},{"a":32101,"t":"code","b":[62,64],"m":"ld","o":"a,$40"},{"a":32103,"t":"code","b":[50,51,255],"m":"ld","oa":65331,"o":"($FF33),a"},{"a":32106,"t":"code","b":[6,56],"m":"ld","o":"b,$38"},{"a":32108,"t":"code","b":[197],"m":"push","o":"bc","x":[32130]},{"a":32109,"t":"code","b":[62,96],"m":"ld","o":"a,$60"},{"a":32111,"t":"code","b":[50,52,255],"m":"ld","oa":65332,"o":"($FF34),a"},{"a":32114,"t":"code","b":[205,201,172],"m":"call","oa":44233,"o":"plot"},{"a":32117,"t":"code","b":[62,151],"m":"ld","o":"a,$97"},{"a":32119,"t":"code","b":[50,52,255],"m":"ld","oa":65332,"o":"($FF34),a"},{"a":32122,"t":"code","b":[205,201,172],"m":"call","oa":44233,"o":"plot"},{"a":32125,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":32126,"t":"code","b":[33,51,255],"m":"ld","o":"hl,$FF33"},{"a":32129,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":32130,"t":"code","b":[16,232],"m":"djnz","oa":32108,"o":"$7D6C"},{"a":32132,"t":"code","b":[62,97],"m":"ld","o":"a,$61"},{"a":32134,"t":"code","b":[50,52,255],"m":"ld","oa":65332,"o":"($FF34),a"},{"a":32137,"t":"code","b":[6,54],"m":"ld","o":"b,$36"},{"a":32139,"t":"code","b":[197],"m":"push","o":"bc","x":[32161]},{"a":32140,"t":"code","b":[62,64],"m":"ld","o":"a,$40"},{"a":32142,"t":"code","b":[50,51,255],"m":"ld","oa":65331,"o":"($FF33),a"},{"a":32145,"t":"code","b":[205,201,172],"m":"call","oa":44233,"o":"plot"},{"a":32148,"t":"code","b":[62,119],"m":"ld","o":"a,$77"},{"a":32150,"t":"code","b":[50,51,255],"m":"ld","oa":65331,"o":"($FF33),a"},{"a":32153,"t":"code","b":[205,201,172],"m":"call","oa":44233,"o":"plot"},{"a":32156,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":32157,"t":"code","b":[33,52,255],"m":"ld","o":"hl,$FF34"},{"a":32160,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":32161,"t":"code","b":[16,232],"m":"djnz","oa":32139,"o":"$7D8B"},{"a":32163,"t":"code","b":[201],"m":"ret"},{"a":32164,"l":"set_spread_types","c":"Sets the two terrains spread_magic spreads for the current player: $FF07 its magic fire ($38 + 2 x player: the wild fire for player 0) and $FF06 its gooey blob ($40 + 2 x player; none for player 0).","t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)","x":[32189,34570]},{"a":32167,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":32168,"t":"code","b":[198,56],"m":"add","o":"a,$38"},{"a":32170,"t":"code","b":[50,7,255],"m":"ld","oa":65287,"o":"($FF07),a"},{"a":32173,"t":"code","b":[198,8],"m":"add","o":"a,$08"},{"a":32175,"t":"code","b":[50,6,255],"m":"ld","oa":65286,"o":"($FF06),a"},{"a":32178,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":32181,"t":"code","b":[183],"m":"or","o":"a"},{"a":32182,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":32183,"t":"code","b":[62,254],"m":"ld","o":"a,$FE"},{"a":32185,"t":"code","b":[50,6,255],"m":"ld","oa":65286,"o":"($FF06),a"},{"a":32188,"t":"code","b":[201],"m":"ret"},{"a":32189,"l":"spread_magic","c":"Magic fire and gooey blob grow or die back at the start of each player's turn. Every square of the 36 x 36 map holding the player's magic fire ($FF07) or gooey blob ($FF06) spreads to its neighbours ($7EA5) by the player's strength for it ($D04B or $D04F, indexed by player), as the next type up (newly spread, $FF05), then dies back to the terrain at $D049 (indexed by fire or blob) when a random number against the table at $B4B5 (fire) or $B4AD (blob) for that strength is at least a quarter of the neighbours' susceptibility plus $28. A second pass turns every newly spread square into the ordinary type.","t":"code","b":[205,164,125],"m":"call","oa":32164,"o":"set_spread_types","x":[24909,24966]},{"a":32192,"t":"code","b":[175],"m":"xor","o":"a"},{"a":32193,"t":"code","b":[50,204,208],"m":"ld","oa":53452,"o":"($D0CC),a"},{"a":32196,"t":"code","b":[6,36],"m":"ld","o":"b,$24"},{"a":32198,"t":"code","b":[197],"m":"push","o":"bc","x":[32351]},{"a":32199,"t":"code","b":[175],"m":"xor","o":"a"},{"a":32200,"t":"code","b":[50,205,208],"m":"ld","oa":53453,"o":"($D0CD),a"},{"a":32203,"t":"code","b":[6,36],"m":"ld","o":"b,$24"},{"a":32205,"t":"code","b":[197],"m":"push","o":"bc","x":[32339]},{"a":32206,"t":"code","b":[205,93,170],"m":"call","oa":43613,"o":"map_address_window"},{"a":32209,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32210,"t":"code","b":[33,7,255],"m":"ld","o":"hl,$FF07"},{"a":32213,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":32214,"t":"code","b":[40,19],"m":"jr","oa":32235,"o":"z,$7DEB"},{"a":32216,"t":"code","b":[33,6,255],"m":"ld","o":"hl,$FF06"},{"a":32219,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":32220,"t":"code","b":[194,74,126],"m":"jp","oa":32330,"o":"nz,$7E4A"},{"a":32223,"t":"code","b":[50,5,255],"m":"ld","oa":65285,"o":"($FF05),a"},{"a":32226,"t":"code","b":[175],"m":"xor","o":"a"},{"a":32227,"t":"code","b":[50,4,255],"m":"ld","oa":65284,"o":"($FF04),a"},{"a":32230,"t":"code","b":[33,79,208],"m":"ld","o":"hl,$D04F"},{"a":32233,"t":"code","b":[24,11],"m":"jr","oa":32246,"o":"$7DF6"},{"a":32235,"t":"code","b":[50,5,255],"m":"ld","oa":65285,"o":"($FF05),a","x":[32214]},{"a":32238,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":32240,"t":"code","b":[50,4,255],"m":"ld","oa":65284,"o":"($FF04),a"},{"a":32243,"t":"code","b":[33,75,208],"m":"ld","o":"hl,$D04B"},{"a":32246,"t":"code","b":[237,91,17,91],"m":"ld","oa":23313,"o":"de,($5B11)","x":[32233]},{"a":32250,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":32252,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":32253,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32254,"t":"code","b":[50,11,255],"m":"ld","oa":65291,"o":"($FF0B),a"},{"a":32257,"t":"code","b":[33,5,255],"m":"ld","o":"hl,$FF05"},{"a":32260,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":32261,"t":"code","b":[205,165,126],"m":"call","oa":32421,"o":"spread_to_neighbours"},{"a":32264,"t":"code","b":[58,10,255],"m":"ld","oa":65290,"o":"a,($FF0A)"},{"a":32267,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":32269,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":32271,"t":"code","b":[198,40],"m":"add","o":"a,$28"},{"a":32273,"t":"code","b":[50,10,255],"m":"ld","oa":65290,"o":"($FF0A),a"},{"a":32276,"t":"code","b":[237,91,11,255],"m":"ld","oa":65291,"o":"de,($FF0B)"},{"a":32280,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":32282,"t":"code","b":[33,181,180],"m":"ld","o":"hl,$B4B5"},{"a":32285,"t":"code","b":[58,4,255],"m":"ld","oa":65284,"o":"a,($FF04)"},{"a":32288,"t":"code","b":[183],"m":"or","o":"a"},{"a":32289,"t":"code","b":[32,3],"m":"jr","oa":32294,"o":"nz,$7E26"},{"a":32291,"t":"code","b":[33,173,180],"m":"ld","o":"hl,$B4AD"},{"a":32294,"t":"code","b":[25],"m":"add","o":"hl,de","x":[32289]},{"a":32295,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32296,"t":"code","b":[205,52,167],"m":"call","oa":42804,"o":"random_below_a"},{"a":32299,"t":"code","b":[33,10,255],"m":"ld","o":"hl,$FF0A"},{"a":32302,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":32303,"t":"code","b":[56,25],"m":"jr","oa":32330,"o":"c,$7E4A"},{"a":32305,"t":"code","b":[33,73,208],"m":"ld","o":"hl,$D049"},{"a":32308,"t":"code","b":[237,91,4,255],"m":"ld","oa":65284,"o":"de,($FF04)"},{"a":32312,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":32314,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":32315,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32316,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":32319,"t":"code","b":[205,93,170],"m":"call","oa":43613,"o":"map_address_window"},{"a":32322,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32323,"t":"code","b":[237,91,204,208],"m":"ld","oa":53452,"o":"de,($D0CC)"},{"a":32327,"t":"code","b":[205,129,115],"m":"call","oa":29569,"o":"set_terrain_under"},{"a":32330,"t":"code","b":[58,205,208],"m":"ld","oa":53453,"o":"a,($D0CD)","x":[32220,32303]},{"a":32333,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32334,"t":"code","b":[50,205,208],"m":"ld","oa":53453,"o":"($D0CD),a"},{"a":32337,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":32338,"t":"code","b":[5],"m":"dec","o":"b"},{"a":32339,"t":"code","b":[194,205,125],"m":"jp","oa":32205,"o":"nz,$7DCD"},{"a":32342,"t":"code","b":[58,204,208],"m":"ld","oa":53452,"o":"a,($D0CC)"},{"a":32345,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32346,"t":"code","b":[50,204,208],"m":"ld","oa":53452,"o":"($D0CC),a"},{"a":32349,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":32350,"t":"code","b":[5],"m":"dec","o":"b"},{"a":32351,"t":"code","b":[194,198,125],"m":"jp","oa":32198,"o":"nz,$7DC6"},{"a":32354,"t":"code","b":[175],"m":"xor","o":"a"},{"a":32355,"t":"code","b":[50,204,208],"m":"ld","oa":53452,"o":"($D0CC),a"},{"a":32358,"t":"code","b":[6,36],"m":"ld","o":"b,$24"},{"a":32360,"t":"code","b":[197],"m":"push","o":"bc","x":[32418]},{"a":32361,"t":"code","b":[175],"m":"xor","o":"a"},{"a":32362,"t":"code","b":[50,205,208],"m":"ld","oa":53453,"o":"($D0CD),a"},{"a":32365,"t":"code","b":[6,36],"m":"ld","o":"b,$24"},{"a":32367,"t":"code","b":[197],"m":"push","o":"bc","x":[32408]},{"a":32368,"t":"code","b":[205,93,170],"m":"call","oa":43613,"o":"map_address_window"},{"a":32371,"t":"code","b":[58,7,255],"m":"ld","oa":65287,"o":"a,($FF07)"},{"a":32374,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32375,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":32376,"t":"code","b":[40,7],"m":"jr","oa":32385,"o":"z,$7E81"},{"a":32378,"t":"code","b":[58,6,255],"m":"ld","oa":65286,"o":"a,($FF06)"},{"a":32381,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32382,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":32383,"t":"code","b":[32,15],"m":"jr","oa":32400,"o":"nz,$7E90"},{"a":32385,"t":"code","b":[61],"m":"dec","o":"a","x":[32376]},{"a":32386,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":32389,"t":"code","b":[205,93,170],"m":"call","oa":43613,"o":"map_address_window"},{"a":32392,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32393,"t":"code","b":[237,91,204,208],"m":"ld","oa":53452,"o":"de,($D0CC)"},{"a":32397,"t":"code","b":[205,129,115],"m":"call","oa":29569,"o":"set_terrain_under"},{"a":32400,"t":"code","b":[58,205,208],"m":"ld","oa":53453,"o":"a,($D0CD)","x":[32383]},{"a":32403,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32404,"t":"code","b":[50,205,208],"m":"ld","oa":53453,"o":"($D0CD),a"},{"a":32407,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":32408,"t":"code","b":[16,213],"m":"djnz","oa":32367,"o":"$7E6F"},{"a":32410,"t":"code","b":[58,204,208],"m":"ld","oa":53452,"o":"a,($D0CC)"},{"a":32413,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32414,"t":"code","b":[50,204,208],"m":"ld","oa":53452,"o":"($D0CC),a"},{"a":32417,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":32418,"t":"code","b":[16,196],"m":"djnz","oa":32360,"o":"$7E68"},{"a":32420,"t":"code","b":[201],"m":"ret"},{"a":32421,"l":"spread_to_neighbours","c":"Spreads the terrain $FF05 from square $D0CC to each of its eight neighbours ($90AB) whose terrain's susceptibility (fire: low four bits of byte 3 of its record; blob: high four bits) is at least a random number plus 1, adding the susceptibilities into $FF0A. Sets $5B22 to $46 less three times A, the strength.","t":"code","b":[71],"m":"ld","o":"b,a","x":[32261,34668]},{"a":32422,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":32423,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":32424,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":32425,"t":"code","b":[62,70],"m":"ld","o":"a,$46"},{"a":32427,"t":"code","b":[144],"m":"sub","o":"b"},{"a":32428,"t":"code","b":[50,34,91],"m":"ld","oa":23330,"o":"($5B22),a"},{"a":32431,"t":"code","b":[175],"m":"xor","o":"a"},{"a":32432,"t":"code","b":[50,10,255],"m":"ld","oa":65290,"o":"($FF0A),a"},{"a":32435,"t":"code","b":[42,204,208],"m":"ld","oa":53452,"o":"hl,($D0CC)"},{"a":32438,"t":"code","b":[205,171,144],"m":"call","oa":37035,"o":"list_neighbours"},{"a":32441,"t":"code","b":[33,12,255],"m":"ld","o":"hl,$FF0C"},{"a":32444,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":32446,"t":"code","b":[197],"m":"push","o":"bc","x":[32518]},{"a":32447,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":32448,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32449,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":32450,"t":"code","b":[229],"m":"push","o":"hl"},{"a":32451,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":32452,"t":"code","b":[34,8,255],"m":"ld","oa":65288,"o":"($FF08),hl"},{"a":32455,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":32458,"t":"code","b":[205,39,145],"m":"call","oa":37159,"o":"terrain_record"},{"a":32461,"t":"code","b":[205,55,167],"m":"call","oa":42807,"o":"random_below"},{"a":32464,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32465,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":32466,"t":"code","b":[58,4,255],"m":"ld","oa":65284,"o":"a,($FF04)"},{"a":32469,"t":"code","b":[183],"m":"or","o":"a"},{"a":32470,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":32473,"t":"code","b":[40,4],"m":"jr","oa":32479,"o":"z,$7EDF"},{"a":32475,"t":"code","b":[230,15],"m":"and","o":"$0F"},{"a":32477,"t":"code","b":[24,6],"m":"jr","oa":32485,"o":"$7EE5"},{"a":32479,"t":"code","b":[230,240],"m":"and","o":"$F0","x":[32473]},{"a":32481,"t":"code","b":[15],"m":"rrca"},{"a":32482,"t":"code","b":[15],"m":"rrca"},{"a":32483,"t":"code","b":[15],"m":"rrca"},{"a":32484,"t":"code","b":[15],"m":"rrca"},{"a":32485,"t":"code","b":[245],"m":"push","o":"af","x":[32477]},{"a":32486,"t":"code","b":[33,10,255],"m":"ld","o":"hl,$FF0A"},{"a":32489,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":32490,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32491,"t":"code","b":[241],"m":"pop","o":"af"},{"a":32492,"t":"code","b":[184],"m":"cp","o":"b"},{"a":32493,"t":"code","b":[56,19],"m":"jr","oa":32514,"o":"c,$7F02"},{"a":32495,"t":"code","b":[237,91,8,255],"m":"ld","oa":65288,"o":"de,($FF08)"},{"a":32499,"t":"code","b":[58,5,255],"m":"ld","oa":65285,"o":"a,($FF05)"},{"a":32502,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":32505,"t":"code","b":[42,8,255],"m":"ld","oa":65288,"o":"hl,($FF08)"},{"a":32508,"t":"code","b":[34,136,255],"m":"ld","oa":65416,"o":"($FF88),hl"},{"a":32511,"t":"code","b":[205,201,123],"m":"call","oa":31689,"o":"set_square_terrain"},{"a":32514,"t":"code","b":[225],"m":"pop","o":"hl","x":[32493]},{"a":32515,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32516,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32517,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":32518,"t":"code","b":[16,182],"m":"djnz","oa":32446,"o":"$7EBE"},{"a":32520,"t":"code","b":[201],"m":"ret"},{"a":32521,"l":"flood_area","c":"FLOOD and TANGLE VINE over an area: every square within the spell's level plus 3 ($FF0B, by distance) of the target ($FF94) becomes water ($36) or tangle vine ($37, by $5B21) when a random number is below its terrain's resistance to it (the low or high four bits of byte 2 of its record); $5B22 depends on the distance.","t":"code","b":[58,148,255],"m":"ld","oa":65428,"o":"a,($FF94)","x":[34564]},{"a":32524,"t":"code","b":[214,4],"m":"sub","o":"$04"},{"a":32526,"t":"code","b":[48,2],"m":"jr","oa":32530,"o":"nc,$7F12"},{"a":32528,"t":"code","b":[198,36],"m":"add","o":"a,$24"},{"a":32530,"t":"code","b":[50,136,255],"m":"ld","oa":65416,"o":"($FF88),a","x":[32526]},{"a":32533,"t":"code","b":[58,149,255],"m":"ld","oa":65429,"o":"a,($FF95)"},{"a":32536,"t":"code","b":[214,4],"m":"sub","o":"$04"},{"a":32538,"t":"code","b":[48,2],"m":"jr","oa":32542,"o":"nc,$7F1E"},{"a":32540,"t":"code","b":[198,36],"m":"add","o":"a,$24"},{"a":32542,"t":"code","b":[50,137,255],"m":"ld","oa":65417,"o":"($FF89),a","x":[32538]},{"a":32545,"t":"code","b":[6,9],"m":"ld","o":"b,$09"},{"a":32547,"t":"code","b":[197],"m":"push","o":"bc","x":[32661]},{"a":32548,"t":"code","b":[6,9],"m":"ld","o":"b,$09"},{"a":32550,"t":"code","b":[197],"m":"push","o":"bc","x":[32637]},{"a":32551,"t":"code","b":[42,148,255],"m":"ld","oa":65428,"o":"hl,($FF94)"},{"a":32554,"t":"code","b":[237,91,136,255],"m":"ld","oa":65416,"o":"de,($FF88)"},{"a":32558,"t":"code","b":[205,77,114],"m":"call","oa":29261,"o":"distance"},{"a":32561,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":32562,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":32565,"t":"code","b":[198,3],"m":"add","o":"a,$03"},{"a":32567,"t":"code","b":[184],"m":"cp","o":"b"},{"a":32568,"t":"code","b":[56,54],"m":"jr","oa":32624,"o":"c,$7F70"},{"a":32570,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":32573,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":32574,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":32575,"t":"code","b":[62,18],"m":"ld","o":"a,$12"},{"a":32577,"t":"code","b":[145],"m":"sub","o":"c"},{"a":32578,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":32579,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":32580,"t":"code","b":[50,34,91],"m":"ld","oa":23330,"o":"($5B22),a"},{"a":32583,"t":"code","b":[42,136,255],"m":"ld","oa":65416,"o":"hl,($FF88)"},{"a":32586,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":32589,"t":"code","b":[205,39,145],"m":"call","oa":37159,"o":"terrain_record"},{"a":32592,"t":"code","b":[58,33,91],"m":"ld","oa":23329,"o":"a,($5B21)"},{"a":32595,"t":"code","b":[183],"m":"or","o":"a"},{"a":32596,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)"},{"a":32599,"t":"code","b":[32,4],"m":"jr","oa":32605,"o":"nz,$7F5D"},{"a":32601,"t":"code","b":[230,15],"m":"and","o":"$0F"},{"a":32603,"t":"code","b":[24,6],"m":"jr","oa":32611,"o":"$7F63"},{"a":32605,"t":"code","b":[230,240],"m":"and","o":"$F0","x":[32599]},{"a":32607,"t":"code","b":[15],"m":"rrca"},{"a":32608,"t":"code","b":[15],"m":"rrca"},{"a":32609,"t":"code","b":[15],"m":"rrca"},{"a":32610,"t":"code","b":[15],"m":"rrca"},{"a":32611,"t":"code","b":[71],"m":"ld","o":"b,a","x":[32603]},{"a":32612,"t":"code","b":[33,33,91],"m":"ld","o":"hl,$5B21"},{"a":32615,"t":"code","b":[62,54],"m":"ld","o":"a,$36"},{"a":32617,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":32618,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":32621,"t":"code","b":[205,196,123],"m":"call","oa":31684,"o":"maybe_set_terrain"},{"a":32624,"t":"code","b":[58,137,255],"m":"ld","oa":65417,"o":"a,($FF89)","x":[32568]},{"a":32627,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32628,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":32630,"t":"code","b":[32,1],"m":"jr","oa":32633,"o":"nz,$7F79"},{"a":32632,"t":"code","b":[175],"m":"xor","o":"a"},{"a":32633,"t":"code","b":[50,137,255],"m":"ld","oa":65417,"o":"($FF89),a","x":[32630]},{"a":32636,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":32637,"t":"code","b":[16,167],"m":"djnz","oa":32550,"o":"$7F26"},{"a":32639,"t":"code","b":[214,9],"m":"sub","o":"$09"},{"a":32641,"t":"code","b":[48,2],"m":"jr","oa":32645,"o":"nc,$7F85"},{"a":32643,"t":"code","b":[198,36],"m":"add","o":"a,$24"},{"a":32645,"t":"code","b":[50,137,255],"m":"ld","oa":65417,"o":"($FF89),a","x":[32641]},{"a":32648,"t":"code","b":[58,136,255],"m":"ld","oa":65416,"o":"a,($FF88)"},{"a":32651,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32652,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":32654,"t":"code","b":[32,1],"m":"jr","oa":32657,"o":"nz,$7F91"},{"a":32656,"t":"code","b":[175],"m":"xor","o":"a"},{"a":32657,"t":"code","b":[50,136,255],"m":"ld","oa":65416,"o":"($FF88),a","x":[32654]},{"a":32660,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":32661,"t":"code","b":[16,140],"m":"djnz","oa":32547,"o":"$7F23"},{"a":32663,"t":"code","b":[201],"m":"ret"},{"a":32664,"l":"step_effects","c":"What the square a creature has stepped onto does ($FF91). On water ($36) a creature on the ground that cannot swim (bit 5 of byte 11 of its type) drowns one time in four: $D181 = 2 and 255 points of damage. On the portal ($35) a wizard escapes: it leaves the map, the objects it carries are taken out of play and their values (byte 0 of their records) and the escape bonus ($D045) added to its player's victory points ($D058), which are kept as the final score at $D05C; $8C0C removes the wizard, $D181 = 3, and its caller's caller is returned to.","t":"code","b":[175],"m":"xor","o":"a","x":[27057,39862]},{"a":32665,"t":"code","b":[50,48,255],"m":"ld","oa":65328,"o":"($FF30),a"},{"a":32668,"t":"code","b":[58,145,255],"m":"ld","oa":65425,"o":"a,($FF91)"},{"a":32671,"t":"code","b":[254,53],"m":"cp","o":"$35"},{"a":32673,"t":"code","b":[40,85],"m":"jr","oa":32760,"o":"z,$7FF8"},{"a":32675,"t":"code","b":[254,54],"m":"cp","o":"$36"},{"a":32677,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":32678,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":32682,"t":"code","b":[205,137,120],"m":"call","oa":30857,"o":"is_loose"},{"a":32685,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":32686,"t":"code","b":[253,42,82,91],"m":"ld","oa":23378,"o":"iy,($5B52)"},{"a":32690,"t":"code","b":[253,203,11,110],"m":"bit","o":"5,(iy+$0B)"},{"a":32694,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":32695,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":32697,"t":"code","b":[205,52,167],"m":"call","oa":42804,"o":"random_below_a"},{"a":32700,"t":"code","b":[183],"m":"or","o":"a"},{"a":32701,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":32702,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":32704,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":32707,"t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)"},{"a":32710,"t":"code","b":[50,43,255],"m":"ld","oa":65323,"o":"($FF2B),a"},{"a":32713,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":32715,"t":"code","b":[205,85,119],"m":"call","oa":30549,"o":"damage_creature"},{"a":32718,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":32720,"t":"code","b":[50,45,255],"m":"ld","oa":65325,"o":"($FF2D),a"},{"a":32723,"t":"code","b":[50,48,255],"m":"ld","oa":65328,"o":"($FF30),a"},{"a":32726,"t":"code","b":[205,139,121],"m":"call","oa":31115,"o":"show_hit"},{"a":32729,"t":"code","b":[243],"m":"di"},{"a":32730,"t":"code","b":[205,225,123],"m":"call","oa":31713,"o":"destroy_lost_objects"},{"a":32733,"t":"code","b":[42,59,91],"m":"ld","oa":23355,"o":"hl,($5B3B)"},{"a":32736,"t":"code","b":[58,144,255],"m":"ld","oa":65424,"o":"a,($FF90)"},{"a":32739,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32740,"t":"code","b":[58,87,91],"m":"ld","oa":23383,"o":"a,($5B57)"},{"a":32743,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":32745,"t":"code","b":[216],"m":"ret","o":"c"},{"a":32746,"t":"code","b":[221,42,219,208],"m":"ld","oa":53467,"o":"ix,($D0DB)"},{"a":32750,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":32753,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32754,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":32756,"t":"code","b":[221,119,4],"m":"ld","o":"(ix+$04),a"},{"a":32759,"t":"code","b":[201],"m":"ret"},{"a":32760,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)","x":[32673]},{"a":32763,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":32765,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":32766,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":32770,"t":"code","b":[221,54,2,255],"m":"ld","o":"(ix+$02),$FF"},{"a":32774,"t":"code","b":[205,103,170],"m":"call","oa":43623,"o":"map_address_selected"},{"a":32777,"t":"code","b":[58,144,255],"m":"ld","oa":65424,"o":"a,($FF90)"},{"a":32780,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32781,"t":"code","b":[205,65,103],"m":"call","oa":26433,"o":"list_selected_carries"},{"a":32784,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":32786,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":32789,"t":"code","b":[183],"m":"or","o":"a"},{"a":32790,"t":"code","b":[40,31],"m":"jr","oa":32823,"o":"z,$8037"},{"a":32792,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":32793,"t":"code","b":[33,192,209],"m":"ld","o":"hl,$D1C0"},{"a":32796,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[32821]},{"a":32797,"t":"code","b":[229],"m":"push","o":"hl"},{"a":32798,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":32801,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32802,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32803,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":32805,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":32806,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32807,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32808,"t":"code","b":[205,160,148],"m":"call","oa":38048,"o":"object_record"},{"a":32811,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":32814,"t":"code","b":[129],"m":"add","o":"a,c"},{"a":32815,"t":"code","b":[48,2],"m":"jr","oa":32819,"o":"nc,$8033"},{"a":32817,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":32819,"t":"code","b":[79],"m":"ld","o":"c,a","x":[32815]},{"a":32820,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32821,"t":"code","b":[16,229],"m":"djnz","oa":32796,"o":"$801C"},{"a":32823,"t":"code","b":[237,91,17,91],"m":"ld","oa":23313,"o":"de,($5B11)","x":[32790]},{"a":32827,"t":"code","b":[29],"m":"dec","o":"e"},{"a":32828,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":32830,"t":"code","b":[33,88,208],"m":"ld","o":"hl,$D058"},{"a":32833,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":32834,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32835,"t":"code","b":[129],"m":"add","o":"a,c"},{"a":32836,"t":"code","b":[48,2],"m":"jr","oa":32840,"o":"nc,$8048"},{"a":32838,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":32840,"t":"code","b":[119],"m":"ld","o":"(hl),a","x":[32836]},{"a":32841,"t":"code","b":[58,69,208],"m":"ld","oa":53317,"o":"a,($D045)"},{"a":32844,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":32845,"t":"code","b":[48,2],"m":"jr","oa":32849,"o":"nc,$8051"},{"a":32847,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":32849,"t":"code","b":[119],"m":"ld","o":"(hl),a","x":[32845]},{"a":32850,"t":"code","b":[33,92,208],"m":"ld","o":"hl,$D05C"},{"a":32853,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":32854,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32855,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":32858,"t":"code","b":[50,5,255],"m":"ld","oa":65285,"o":"($FF05),a"},{"a":32861,"t":"code","b":[205,12,140],"m":"call","oa":35852,"o":"wizard_gone"},{"a":32864,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":32866,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":32869,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":32870,"t":"code","b":[201],"m":"ret"},{"a":32871,"l":"free_entry","c":"Finds a free entry (type $FF) in the object table from the start: Z set with IX on it and its number counted in $5B1F (which the caller clears), Z clear when the table is full.","t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A","x":[33758]},{"a":32875,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":32877,"t":"code","b":[24,11],"m":"jr","oa":32890,"o":"$807A"},{"a":32879,"l":"free_entry_after_wizards","c":"The same from entry 4, leaving the four wizards' entries alone.","t":"code","b":[221,33,114,91],"m":"ld","o":"ix,$5B72","x":[33629,33766]},{"a":32883,"t":"code","b":[6,141],"m":"ld","o":"b,$8D"},{"a":32885,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":32887,"t":"code","b":[50,31,91],"m":"ld","oa":23327,"o":"($5B1F),a"},{"a":32890,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006","x":[32877]},{"a":32893,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)","x":[32904]},{"a":32896,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32897,"t":"code","b":[200],"m":"ret","o":"z"},{"a":32898,"t":"code","b":[221,25],"m":"add","o":"ix,de"},{"a":32900,"t":"code","b":[33,31,91],"m":"ld","o":"hl,$5B1F"},{"a":32903,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":32904,"t":"code","b":[16,243],"m":"djnz","oa":32893,"o":"$807D"},{"a":32906,"t":"code","b":[4],"m":"inc","o":"b"},{"a":32907,"t":"code","b":[201],"m":"ret"},{"a":32908,"l":"wizard_record","c":"HL = the 70-byte record of the wizard of player A (1 to 4), from wizard_records.","t":"code","b":[61],"m":"dec","o":"a","x":[24765,30446,36132,41906,46534,52164]},{"a":32909,"l":"wizard_record_0","c":"The same for A from 0 to 3.","t":"code","b":[135],"m":"add","o":"a,a","x":[52438]},{"a":32910,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":32911,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":32913,"t":"code","b":[33,152,128],"m":"ld","o":"hl,$8098"},{"a":32916,"t":"code","b":[205,156,120],"m":"call","oa":30876,"o":"read_table_word"},{"a":32919,"t":"code","b":[201],"m":"ret"},{"a":32920,"l":"wizard_records","c":"The four wizards' records: $CEEA, $CF30, $CF76 and $CFBC.","t":"word","b":[234,206,48,207,118,207,188,207],"d":[52970,53040,53110,53180]},{"a":32928,"l":"spell_name","c":"The message number of spell A's name: the 25 summon spells (0-$18) are the creatures ($91 up), $19-$1F the seven potions ($6C up), $20 and $21 magic fire and gooey blob ($42, $43), $22 tangle vine ($38) and $23-$2C flood to magic shield ($D3 up).","t":"code","b":[254,25],"m":"cp","o":"$19","x":[33154]},{"a":32930,"t":"code","b":[48,3],"m":"jr","oa":32935,"o":"nc,$80A7"},{"a":32932,"t":"code","b":[198,145],"m":"add","o":"a,$91"},{"a":32934,"t":"code","b":[201],"m":"ret"},{"a":32935,"t":"code","b":[254,32],"m":"cp","o":"$20","x":[32930]},{"a":32937,"t":"code","b":[48,3],"m":"jr","oa":32942,"o":"nc,$80AE"},{"a":32939,"t":"code","b":[198,83],"m":"add","o":"a,$53"},{"a":32941,"t":"code","b":[201],"m":"ret"},{"a":32942,"t":"code","b":[254,34],"m":"cp","o":"$22","x":[32937]},{"a":32944,"t":"code","b":[48,3],"m":"jr","oa":32949,"o":"nc,$80B5"},{"a":32946,"t":"code","b":[198,34],"m":"add","o":"a,$22"},{"a":32948,"t":"code","b":[201],"m":"ret"},{"a":32949,"t":"code","b":[254,35],"m":"cp","o":"$23","x":[32944]},{"a":32951,"t":"code","b":[48,3],"m":"jr","oa":32956,"o":"nc,$80BC"},{"a":32953,"t":"code","b":[62,56],"m":"ld","o":"a,$38"},{"a":32955,"t":"code","b":[201],"m":"ret"},{"a":32956,"t":"code","b":[198,176],"m":"add","o":"a,$B0","x":[32951]},{"a":32958,"t":"code","b":[201],"m":"ret"},{"a":32959,"l":"spell_list","c":"The spell list a wizard casts from: the wizard's name, MANA, COST and LEVEL, its mana ($D0E0 for the player, into $5B2A), and the 45 spells with their costs and levels ($C98A, $8202). The player chooses one ($8232, into $FF3A; $2D is cancel); a spell with a level left needs 8 action points (NOT ENOUGH ACTION POINTS) and its cost in mana (NOT ENOUGH MANA), and the list is offered again until one can be cast or the player cancels.","t":"code","b":[243],"m":"di","x":[33398]},{"a":32960,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":32962,"t":"code","b":[50,90,180],"m":"ld","oa":46170,"o":"(word_gap),a"},{"a":32965,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":32968,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":32971,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":32974,"t":"code","b":[33,6,70],"m":"ld","o":"hl,$4606"},{"a":32977,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":32980,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":32983,"t":"code","b":[198,140],"m":"add","o":"a,$8C"},{"a":32985,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":32988,"t":"code","b":[62,222],"m":"ld","o":"a,$DE"},{"a":32990,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":32993,"t":"code","b":[33,71,71],"m":"ld","o":"hl,$4747"},{"a":32996,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":32999,"t":"code","b":[33,11,1],"m":"ld","o":"hl,$010B"},{"a":33002,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":33005,"t":"code","b":[62,62],"m":"ld","o":"a,$3E"},{"a":33007,"t":"code","b":[205,226,175],"m":"call","oa":45026,"o":"print_char_big"},{"a":33010,"t":"code","b":[33,11,22],"m":"ld","o":"hl,$160B"},{"a":33013,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":33016,"t":"code","b":[62,60],"m":"ld","o":"a,$3C"},{"a":33018,"t":"code","b":[205,226,175],"m":"call","oa":45026,"o":"print_char_big"},{"a":33021,"t":"code","b":[33,0,15],"m":"ld","o":"hl,$0F00"},{"a":33024,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":33027,"t":"code","b":[62,61],"m":"ld","o":"a,$3D"},{"a":33029,"t":"code","b":[205,226,175],"m":"call","oa":45026,"o":"print_char_big"},{"a":33032,"t":"code","b":[33,0,16],"m":"ld","o":"hl,$1000"},{"a":33035,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":33038,"t":"code","b":[237,91,17,91],"m":"ld","oa":23313,"o":"de,($5B11)"},{"a":33042,"t":"code","b":[29],"m":"dec","o":"e"},{"a":33043,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":33045,"t":"code","b":[33,224,208],"m":"ld","o":"hl,$D0E0"},{"a":33048,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33049,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33050,"t":"code","b":[50,42,91],"m":"ld","oa":23338,"o":"($5B2A),a"},{"a":33053,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number"},{"a":33056,"t":"code","b":[62,66],"m":"ld","o":"a,$42"},{"a":33058,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":33061,"t":"code","b":[33,2,0],"m":"ld","o":"hl,$0002"},{"a":33064,"t":"code","b":[17,21,31],"m":"ld","o":"de,$1F15"},{"a":33067,"t":"code","b":[205,138,201],"m":"call","oa":51594,"o":"draw_frame"},{"a":33070,"t":"code","b":[205,2,130],"m":"call","oa":33282,"o":"print_spell_page"},{"a":33073,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":33076,"t":"code","b":[205,50,130],"m":"call","oa":33330,"o":"choose_spell","x":[33132]},{"a":33079,"t":"code","b":[205,77,200],"m":"call","oa":51277,"o":"sound_0"},{"a":33082,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)"},{"a":33085,"t":"code","b":[205,212,129],"m":"call","oa":33236,"o":"spell_cost"},{"a":33088,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":33091,"t":"code","b":[183],"m":"or","o":"a"},{"a":33092,"t":"code","b":[40,20],"m":"jr","oa":33114,"o":"z,$815A"},{"a":33094,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":33097,"t":"code","b":[254,8],"m":"cp","o":"$08"},{"a":33099,"t":"code","b":[62,180],"m":"ld","o":"a,$B4"},{"a":33101,"t":"code","b":[56,20],"m":"jr","oa":33123,"o":"c,$8163"},{"a":33103,"t":"code","b":[58,42,91],"m":"ld","oa":23338,"o":"a,($5B2A)"},{"a":33106,"t":"code","b":[33,57,255],"m":"ld","o":"hl,$FF39"},{"a":33109,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":33110,"t":"code","b":[62,223],"m":"ld","o":"a,$DF"},{"a":33112,"t":"code","b":[56,9],"m":"jr","oa":33123,"o":"c,$8163"},{"a":33114,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen","x":[33092]},{"a":33117,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":33119,"t":"code","b":[50,90,180],"m":"ld","oa":46170,"o":"(word_gap),a"},{"a":33122,"t":"code","b":[201],"m":"ret"},{"a":33123,"t":"code","b":[33,223,208],"m":"ld","o":"hl,$D0DF","x":[33101,33112]},{"a":33126,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":33128,"t":"code","b":[205,130,106],"m":"call","oa":27266,"o":"show_message"},{"a":33131,"t":"code","b":[243],"m":"di"},{"a":33132,"t":"code","b":[24,198],"m":"jr","oa":33076,"o":"$8134"},{"a":33134,"l":"print_spell_line","c":"One line of the spell list for spell A: its name in white when it can be cast and in red when not, padded to column 21, then its cost and its level, each blank (black) when the level is 0.","t":"code","b":[245],"m":"push","o":"af","x":[33306]},{"a":33135,"t":"code","b":[33,6,70],"m":"ld","o":"hl,$4606"},{"a":33138,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":33141,"t":"code","b":[205,212,129],"m":"call","oa":33236,"o":"spell_cost"},{"a":33144,"t":"code","b":[183],"m":"or","o":"a"},{"a":33145,"t":"code","b":[32,6],"m":"jr","oa":33153,"o":"nz,$8181"},{"a":33147,"t":"code","b":[33,2,66],"m":"ld","o":"hl,$4202"},{"a":33150,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":33153,"t":"code","b":[241],"m":"pop","o":"af","x":[33145]},{"a":33154,"t":"code","b":[205,160,128],"m":"call","oa":32928,"o":"spell_name"},{"a":33157,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":33160,"t":"code","b":[62,21],"m":"ld","o":"a,$15"},{"a":33162,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16"},{"a":33165,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":33166,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":33167,"t":"code","b":[40,14],"m":"jr","oa":33183,"o":"z,$819F"},{"a":33169,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33170,"t":"code","b":[197],"m":"push","o":"bc","x":[33181]},{"a":33171,"t":"code","b":[62,32],"m":"ld","o":"a,$20"},{"a":33173,"t":"code","b":[205,226,175],"m":"call","oa":45026,"o":"print_char_big"},{"a":33176,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16"},{"a":33179,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":33180,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":33181,"t":"code","b":[16,243],"m":"djnz","oa":33170,"o":"$8192"},{"a":33183,"t":"code","b":[52],"m":"inc","o":"(hl)","x":[33167]},{"a":33184,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":33185,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":33186,"t":"code","b":[33,4,68],"m":"ld","o":"hl,$4404"},{"a":33189,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":33192,"t":"code","b":[58,57,255],"m":"ld","oa":65337,"o":"a,($FF39)"},{"a":33195,"t":"code","b":[183],"m":"or","o":"a"},{"a":33196,"t":"code","b":[32,6],"m":"jr","oa":33204,"o":"nz,$81B4"},{"a":33198,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":33201,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":33204,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number","x":[33196]},{"a":33207,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16"},{"a":33210,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":33211,"t":"code","b":[33,5,69],"m":"ld","o":"hl,$4505"},{"a":33214,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":33217,"t":"code","b":[58,57,255],"m":"ld","oa":65337,"o":"a,($FF39)"},{"a":33220,"t":"code","b":[183],"m":"or","o":"a"},{"a":33221,"t":"code","b":[32,6],"m":"jr","oa":33229,"o":"nz,$81CD"},{"a":33223,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":33226,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":33229,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)","x":[33221]},{"a":33232,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number"},{"a":33235,"t":"code","b":[201],"m":"ret"},{"a":33236,"l":"spell_cost","c":"For spell A of the current wizard ($5B04): $FF0B = its level (the low four bits of its byte at record + 2 + A) and $FF39 its cost, the spell's base cost from the table at $B4BE times the level plus one; both 0 for $2D (cancel). Returns HL on the spell's byte.","t":"code","b":[254,45],"m":"cp","o":"$2D","x":[33085,33141,33445,41994]},{"a":33238,"t":"code","b":[32,8],"m":"jr","oa":33248,"o":"nz,$81E0"},{"a":33240,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33241,"t":"code","b":[50,57,255],"m":"ld","oa":65337,"o":"($FF39),a"},{"a":33244,"t":"code","b":[50,11,255],"m":"ld","oa":65291,"o":"($FF0B),a"},{"a":33247,"t":"code","b":[201],"m":"ret"},{"a":33248,"t":"code","b":[95],"m":"ld","o":"e,a","x":[33238]},{"a":33249,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":33251,"t":"code","b":[42,4,91],"m":"ld","oa":23300,"o":"hl,($5B04)"},{"a":33254,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33255,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33256,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33257,"t":"code","b":[229],"m":"push","o":"hl"},{"a":33258,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33259,"t":"code","b":[230,15],"m":"and","o":"$0F"},{"a":33261,"t":"code","b":[50,11,255],"m":"ld","oa":65291,"o":"($FF0B),a"},{"a":33264,"t":"code","b":[183],"m":"or","o":"a"},{"a":33265,"t":"code","b":[40,10],"m":"jr","oa":33277,"o":"z,$81FD"},{"a":33267,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33268,"t":"code","b":[33,190,180],"m":"ld","o":"hl,$B4BE"},{"a":33271,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33272,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33273,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":33274,"t":"code","b":[129],"m":"add","o":"a,c","x":[33275]},{"a":33275,"t":"code","b":[16,253],"m":"djnz","oa":33274,"o":"$81FA"},{"a":33277,"t":"code","b":[50,57,255],"m":"ld","oa":65337,"o":"($FF39),a","x":[33265]},{"a":33280,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":33281,"t":"code","b":[201],"m":"ret"},{"a":33282,"l":"print_spell_page","c":"Prints nine lines of the spell list, from four before the current choice ($FF3A) to four after, wrapping round the 46 entries (45 spells and the cancel line, $2D), on every second row from row 3.","t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)","x":[33070,33374]},{"a":33285,"t":"code","b":[214,4],"m":"sub","o":"$04"},{"a":33287,"t":"code","b":[48,2],"m":"jr","oa":33291,"o":"nc,$820B"},{"a":33289,"t":"code","b":[198,46],"m":"add","o":"a,$2E"},{"a":33291,"t":"code","b":[50,5,255],"m":"ld","oa":65285,"o":"($FF05),a","x":[33287]},{"a":33294,"t":"code","b":[33,3,2],"m":"ld","o":"hl,$0203"},{"a":33297,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":33300,"t":"code","b":[6,9],"m":"ld","o":"b,$09"},{"a":33302,"t":"code","b":[197],"m":"push","o":"bc","x":[33327]},{"a":33303,"t":"code","b":[58,5,255],"m":"ld","oa":65285,"o":"a,($FF05)"},{"a":33306,"t":"code","b":[205,110,129],"m":"call","oa":33134,"o":"print_spell_line"},{"a":33309,"t":"code","b":[33,26,91],"m":"ld","o":"hl,$5B1A"},{"a":33312,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":33313,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":33314,"t":"code","b":[58,5,255],"m":"ld","oa":65285,"o":"a,($FF05)"},{"a":33317,"t":"code","b":[60],"m":"inc","o":"a"},{"a":33318,"t":"code","b":[254,46],"m":"cp","o":"$2E"},{"a":33320,"t":"code","b":[56,1],"m":"jr","oa":33323,"o":"c,$822B"},{"a":33322,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33323,"t":"code","b":[50,5,255],"m":"ld","oa":65285,"o":"($FF05),a","x":[33320]},{"a":33326,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":33327,"t":"code","b":[16,229],"m":"djnz","oa":33302,"o":"$8216"},{"a":33329,"t":"code","b":[201],"m":"ret"},{"a":33330,"l":"choose_spell","c":"Lets up and down move the spell list's choice ($FF3A), wrapping, reprinting the page each time, until fire is pressed.","t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls","x":[33076,33380]},{"a":33333,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":33336,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":33338,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33339,"t":"code","b":[203,87],"m":"bit","o":"2,a"},{"a":33341,"t":"code","b":[32,14],"m":"jr","oa":33357,"o":"nz,$824D"},{"a":33343,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)"},{"a":33346,"t":"code","b":[60],"m":"inc","o":"a"},{"a":33347,"t":"code","b":[254,46],"m":"cp","o":"$2E"},{"a":33349,"t":"code","b":[56,1],"m":"jr","oa":33352,"o":"c,$8248"},{"a":33351,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33352,"t":"code","b":[50,58,255],"m":"ld","oa":65338,"o":"($FF3A),a","x":[33349]},{"a":33355,"t":"code","b":[24,17],"m":"jr","oa":33374,"o":"$825E"},{"a":33357,"t":"code","b":[203,79],"m":"bit","o":"1,a","x":[33341]},{"a":33359,"t":"code","b":[32,16],"m":"jr","oa":33377,"o":"nz,$8261"},{"a":33361,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)"},{"a":33364,"t":"code","b":[61],"m":"dec","o":"a"},{"a":33365,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":33367,"t":"code","b":[32,2],"m":"jr","oa":33371,"o":"nz,$825B"},{"a":33369,"t":"code","b":[62,45],"m":"ld","o":"a,$2D"},{"a":33371,"t":"code","b":[50,58,255],"m":"ld","oa":65338,"o":"($FF3A),a","x":[33367]},{"a":33374,"t":"code","b":[205,2,130],"m":"call","oa":33282,"o":"print_spell_page","x":[33355]},{"a":33377,"t":"code","b":[205,219,148],"m":"call","oa":38107,"o":"key_repeat","x":[33359]},{"a":33380,"t":"code","b":[24,204],"m":"jr","oa":33330,"o":"choose_spell"},{"a":33382,"l":"cast_air","c":"CAST-A (select menu option $12): cast at a flying target ($FF31 = $FE).","t":"code","b":[62,254],"m":"ld","o":"a,$FE"},{"a":33384,"t":"code","b":[50,49,255],"m":"ld","oa":65329,"o":"($FF31),a"},{"a":33387,"t":"code","b":[24,5],"m":"jr","oa":33394,"o":"$8272"},{"a":33389,"l":"cast_ground","c":"CAST-G (select menu option $13): cast at a target on the ground ($FF31 = $FF). The wizard picks from the spell list; nothing happens without a spell of level 1 or more. The spell is cast (cast_spell); one that is not refused (carry clear) is paid for (pay_for_spell), and after the spells from magic fire to teleport ($20-$2A) the game waits 20 frames and redraws the moves.","t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":33391,"t":"code","b":[50,49,255],"m":"ld","oa":65329,"o":"($FF31),a"},{"a":33394,"t":"code","b":[175],"m":"xor","o":"a","x":[33387]},{"a":33395,"t":"code","b":[50,37,91],"m":"ld","oa":23333,"o":"($5B25),a"},{"a":33398,"t":"code","b":[205,191,128],"m":"call","oa":32959,"o":"spell_list"},{"a":33401,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":33404,"t":"code","b":[183],"m":"or","o":"a"},{"a":33405,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33406,"t":"code","b":[205,215,130],"m":"call","oa":33495,"o":"cast_spell"},{"a":33409,"t":"code","b":[216],"m":"ret","o":"c"},{"a":33410,"t":"code","b":[205,162,130],"m":"call","oa":33442,"o":"pay_for_spell"},{"a":33413,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33414,"t":"code","b":[50,208,208],"m":"ld","oa":53456,"o":"($D0D0),a"},{"a":33417,"t":"code","b":[62,16],"m":"ld","o":"a,$10"},{"a":33419,"t":"code","b":[50,91,180],"m":"ld","oa":46171,"o":"(blink_count),a"},{"a":33422,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)"},{"a":33425,"t":"code","b":[254,32],"m":"cp","o":"$20"},{"a":33427,"t":"code","b":[216],"m":"ret","o":"c"},{"a":33428,"t":"code","b":[254,43],"m":"cp","o":"$2B"},{"a":33430,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":33431,"t":"code","b":[251],"m":"ei"},{"a":33432,"t":"code","b":[6,20],"m":"ld","o":"b,$14"},{"a":33434,"t":"code","b":[118],"m":"halt","x":[33435]},{"a":33435,"t":"code","b":[16,253],"m":"djnz","oa":33434,"o":"$829A"},{"a":33437,"t":"code","b":[243],"m":"di"},{"a":33438,"t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre"},{"a":33441,"t":"code","b":[201],"m":"ret"},{"a":33442,"l":"pay_for_spell","c":"Pays for spell $FF3A: its current level (the low four bits of its byte in the wizard record) goes down by one, its cost comes off the player's mana ($D0E0), 8 action points are spent and the selected creature's figures are kept ($B5D2).","t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)","x":[33410,42204]},{"a":33445,"t":"code","b":[205,212,129],"m":"call","oa":33236,"o":"spell_cost"},{"a":33448,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":33451,"t":"code","b":[61],"m":"dec","o":"a"},{"a":33452,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33453,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33454,"t":"code","b":[230,240],"m":"and","o":"$F0"},{"a":33456,"t":"code","b":[176],"m":"or","o":"b"},{"a":33457,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33458,"t":"code","b":[58,57,255],"m":"ld","oa":65337,"o":"a,($FF39)"},{"a":33461,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33462,"t":"code","b":[237,91,17,91],"m":"ld","oa":23313,"o":"de,($5B11)"},{"a":33466,"t":"code","b":[29],"m":"dec","o":"e"},{"a":33467,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":33469,"t":"code","b":[33,224,208],"m":"ld","o":"hl,$D0E0"},{"a":33472,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33473,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33474,"t":"code","b":[144],"m":"sub","o":"b"},{"a":33475,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33476,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)"},{"a":33480,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":33483,"t":"code","b":[214,8],"m":"sub","o":"$08"},{"a":33485,"t":"code","b":[221,119,0],"m":"ld","o":"(ix+$00),a"},{"a":33488,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":33491,"t":"code","b":[205,210,181],"m":"call","oa":46546,"o":"keep_figures"},{"a":33494,"t":"code","b":[201],"m":"ret"},{"a":33495,"l":"cast_spell","c":"Sends spell $FF3A to its routine: 0-2 the dragons, 3-$18 the other summons, $19-$1F the potions, $20-$23 magic fire, gooey blob, tangle vine and flood ($869D), and $24-$2C through spell_routines. Each returns carry set when the spell is refused and not paid for.","t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)","x":[33406]},{"a":33498,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":33500,"t":"code","b":[218,32,131],"m":"jp","oa":33568,"o":"c,summon_dragon"},{"a":33503,"t":"code","b":[254,25],"m":"cp","o":"$19"},{"a":33505,"t":"code","b":[56,95],"m":"jr","oa":33602,"o":"c,summon_creature"},{"a":33507,"t":"code","b":[254,32],"m":"cp","o":"$20"},{"a":33509,"t":"code","b":[218,101,132],"m":"jp","oa":33893,"o":"c,brew_potion"},{"a":33512,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":33514,"t":"code","b":[218,157,134],"m":"jp","oa":34461,"o":"c,area_spell"},{"a":33517,"t":"code","b":[214,36],"m":"sub","o":"$24"},{"a":33519,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":33520,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":33521,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":33523,"t":"code","b":[33,250,130],"m":"ld","o":"hl,$82FA"},{"a":33526,"t":"code","b":[205,156,120],"m":"call","oa":30876,"o":"read_table_word"},{"a":33529,"t":"code","b":[233],"m":"jp","o":"(hl)"},{"a":33530,"l":"spell_routines","c":"The routines of the spells from enchant to magic shield ($24-$2C), in order.","t":"word","b":[241,135,92,137,212,137,19,138],"d":[34801,35164,35284,35347]},{"a":33538,"t":"word","b":[95,136,171,136,225,138,138,138],"d":[34911,34987,35553,35466]},{"a":33546,"t":"word","b":[236,139],"d":[35820]},{"a":33548,"l":"free_record","c":"Finds a free creature record (byte 0 $FF) among the 86 at $5EC0, five bytes each, which run up to $606D: Z set with C its number and HL on it, Z clear when all are in use.","t":"code","b":[17,5,0],"m":"ld","o":"de,$0005","x":[33624,33794]},{"a":33551,"t":"code","b":[33,192,94],"m":"ld","o":"hl,$5EC0"},{"a":33554,"t":"code","b":[6,86],"m":"ld","o":"b,$56"},{"a":33556,"t":"code","b":[62,86],"m":"ld","o":"a,$56","x":[33564]},{"a":33558,"t":"code","b":[144],"m":"sub","o":"b"},{"a":33559,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":33560,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33561,"t":"code","b":[60],"m":"inc","o":"a"},{"a":33562,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33563,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33564,"t":"code","b":[16,246],"m":"djnz","oa":33556,"o":"$8314"},{"a":33566,"t":"code","b":[4],"m":"inc","o":"b"},{"a":33567,"t":"code","b":[201],"m":"ret"},{"a":33568,"l":"summon_dragon","c":"A dragon spell. Cast on the ground when the heaviest object on the square ($5B2C, normally the cauldron) is the matching dragon potion ($68 + spell), it summons the dragon as summon_creature does. Over an empty cauldron ($67) with dragon herb ($53) on the square it brews that potion instead ($848A). Anything else refuses the spell. Cast at the air (CAST-A) it returns with carry clear, so the spell is paid for and nothing happens.","t":"code","b":[58,49,255],"m":"ld","oa":65329,"o":"a,($FF31)","x":[33500,42168]},{"a":33571,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":33573,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33574,"t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here"},{"a":33577,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)"},{"a":33580,"t":"code","b":[198,104],"m":"add","o":"a,$68"},{"a":33582,"t":"code","b":[50,38,255],"m":"ld","oa":65318,"o":"($FF26),a"},{"a":33585,"t":"code","b":[33,44,91],"m":"ld","o":"hl,$5B2C"},{"a":33588,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":33589,"t":"code","b":[40,11],"m":"jr","oa":33602,"o":"z,summon_creature"},{"a":33591,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33592,"t":"code","b":[254,103],"m":"cp","o":"$67"},{"a":33594,"t":"code","b":[55],"m":"scf"},{"a":33595,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":33596,"t":"code","b":[14,83],"m":"ld","o":"c,$53"},{"a":33598,"t":"code","b":[205,138,132],"m":"call","oa":33930,"o":"brew_with"},{"a":33601,"t":"code","b":[216],"m":"ret","o":"c"},{"a":33602,"l":"summon_creature","c":"A summon spell (creature type $90 + spell), refused when cast at the air or by a flying wizard. For each level of the spell, while a free record and a free entry remain, up to 40 random squares among the eight around the wizard ($FF0C) are tried for one that is free (square_free); the creature appears there (create_creature), the square showing the summoning sparkle ($4F) on a human's turn.","t":"code","b":[58,49,255],"m":"ld","oa":65329,"o":"a,($FF31)","x":[33505,33589,42173]},{"a":33605,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":33607,"t":"code","b":[55],"m":"scf"},{"a":33608,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33609,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":33612,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":33614,"t":"code","b":[55],"m":"scf"},{"a":33615,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33616,"t":"code","b":[205,168,144],"m":"call","oa":37032,"o":"list_neighbours_of_selected"},{"a":33619,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":33622,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33623,"t":"code","b":[197],"m":"push","o":"bc","x":[33695]},{"a":33624,"t":"code","b":[205,12,131],"m":"call","oa":33548,"o":"free_record"},{"a":33627,"t":"code","b":[32,70],"m":"jr","oa":33699,"o":"nz,$83A3"},{"a":33629,"t":"code","b":[205,111,128],"m":"call","oa":32879,"o":"free_entry_after_wizards"},{"a":33632,"t":"code","b":[32,65],"m":"jr","oa":33699,"o":"nz,$83A3"},{"a":33634,"t":"code","b":[6,40],"m":"ld","o":"b,$28"},{"a":33636,"t":"code","b":[197],"m":"push","o":"bc","x":[33665]},{"a":33637,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":33639,"t":"code","b":[205,52,167],"m":"call","oa":42804,"o":"random_below_a"},{"a":33642,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33643,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":33644,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":33645,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":33646,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":33648,"t":"code","b":[33,12,255],"m":"ld","o":"hl,$FF0C"},{"a":33651,"t":"code","b":[205,156,120],"m":"call","oa":30876,"o":"read_table_word"},{"a":33654,"t":"code","b":[34,35,91],"m":"ld","oa":23331,"o":"($5B23),hl"},{"a":33657,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":33659,"t":"code","b":[205,166,131],"m":"call","oa":33702,"o":"square_free"},{"a":33662,"t":"code","b":[40,5],"m":"jr","oa":33669,"o":"z,$8385"},{"a":33664,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":33665,"t":"code","b":[16,225],"m":"djnz","oa":33636,"o":"$8364"},{"a":33667,"t":"code","b":[24,30],"m":"jr","oa":33699,"o":"$83A3"},{"a":33669,"t":"code","b":[193],"m":"pop","o":"bc","x":[33662]},{"a":33670,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)"},{"a":33673,"t":"code","b":[198,144],"m":"add","o":"a,$90"},{"a":33675,"t":"code","b":[50,37,91],"m":"ld","oa":23333,"o":"($5B25),a"},{"a":33678,"t":"code","b":[42,59,91],"m":"ld","oa":23355,"o":"hl,($5B3B)"},{"a":33681,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33682,"t":"code","b":[58,99,208],"m":"ld","oa":53347,"o":"a,($D063)"},{"a":33685,"t":"code","b":[183],"m":"or","o":"a"},{"a":33686,"t":"code","b":[32,2],"m":"jr","oa":33690,"o":"nz,$839A"},{"a":33688,"t":"code","b":[6,79],"m":"ld","o":"b,$4F"},{"a":33690,"t":"code","b":[112],"m":"ld","o":"(hl),b","x":[33686]},{"a":33691,"t":"code","b":[205,227,131],"m":"call","oa":33763,"o":"create_creature"},{"a":33694,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":33695,"t":"code","b":[16,182],"m":"djnz","oa":33623,"o":"$8357"},{"a":33697,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33698,"t":"code","b":[201],"m":"ret"},{"a":33699,"t":"code","b":[193],"m":"pop","o":"bc","x":[33627,33632,33667]},{"a":33700,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33701,"t":"code","b":[201],"m":"ret"},{"a":33702,"l":"square_free","c":"Z set when square $5B23 can take a creature on the ground: its terrain is passable (byte 0 of its record not $FF) and no creature stands there, or only a flying one. Leaves the terrain in $5B10.","t":"code","b":[221,229],"m":"push","o":"ix","x":[33659,41063,42129]},{"a":33704,"t":"code","b":[42,35,91],"m":"ld","oa":23331,"o":"hl,($5B23)"},{"a":33707,"t":"code","b":[205,205,102],"m":"call","oa":26317,"o":"find_creatures_at"},{"a":33710,"t":"code","b":[42,35,91],"m":"ld","oa":23331,"o":"hl,($5B23)"},{"a":33713,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":33716,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":33719,"t":"code","b":[205,39,145],"m":"call","oa":37159,"o":"terrain_record"},{"a":33722,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":33725,"t":"code","b":[60],"m":"inc","o":"a"},{"a":33726,"t":"code","b":[40,21],"m":"jr","oa":33749,"o":"z,$83D5"},{"a":33728,"t":"code","b":[58,174,209],"m":"ld","oa":53678,"o":"a,($D1AE)"},{"a":33731,"t":"code","b":[183],"m":"or","o":"a"},{"a":33732,"t":"code","b":[40,18],"m":"jr","oa":33752,"o":"z,$83D8"},{"a":33734,"t":"code","b":[221,42,175,209],"m":"ld","oa":53679,"o":"ix,($D1AF)"},{"a":33738,"t":"code","b":[205,137,120],"m":"call","oa":30857,"o":"is_loose"},{"a":33741,"t":"code","b":[40,6],"m":"jr","oa":33749,"o":"z,$83D5"},{"a":33743,"t":"code","b":[58,178,209],"m":"ld","oa":53682,"o":"a,($D1B2)"},{"a":33746,"t":"code","b":[183],"m":"or","o":"a"},{"a":33747,"t":"code","b":[40,3],"m":"jr","oa":33752,"o":"z,$83D8"},{"a":33749,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[33726,33741]},{"a":33751,"t":"code","b":[183],"m":"or","o":"a"},{"a":33752,"t":"code","b":[221,225],"m":"pop","o":"ix","x":[33732,33747]},{"a":33754,"t":"code","b":[201],"m":"ret"},{"a":33755,"l":"create_creature_any","c":"create_creature using any entry of the object table.","t":"code","b":[58,37,91],"m":"ld","oa":23333,"o":"a,($5B25)","x":[36183]},{"a":33758,"t":"code","b":[205,103,128],"m":"call","oa":32871,"o":"free_entry"},{"a":33761,"t":"code","b":[24,6],"m":"jr","oa":33769,"o":"$83E9"},{"a":33763,"l":"create_creature","c":"Makes a creature of type $5B25 at square $5B23, owned by the current player, in a free entry (from entry 4) and a free record: its entry holds the square, the type, the terrain under it ($5B10), $FF (on the ground) and the record's number; its record gets its type's action points, stamina and constitution (bytes 0, 2 and 3), no potion and the owner, with a pixie ($93) invisible. On the computer's turn it is added to the computer's list ($A4FA).","t":"code","b":[58,37,91],"m":"ld","oa":23333,"o":"a,($5B25)","x":[33691]},{"a":33766,"t":"code","b":[205,111,128],"m":"call","oa":32879,"o":"free_entry_after_wizards"},{"a":33769,"t":"code","b":[42,35,91],"m":"ld","oa":23331,"o":"hl,($5B23)","x":[33761]},{"a":33772,"t":"code","b":[221,117,0],"m":"ld","o":"(ix+$00),l"},{"a":33775,"t":"code","b":[221,116,1],"m":"ld","o":"(ix+$01),h"},{"a":33778,"t":"code","b":[58,37,91],"m":"ld","oa":23333,"o":"a,($5B25)"},{"a":33781,"t":"code","b":[221,119,2],"m":"ld","o":"(ix+$02),a"},{"a":33784,"t":"code","b":[58,16,91],"m":"ld","oa":23312,"o":"a,($5B10)"},{"a":33787,"t":"code","b":[221,119,3],"m":"ld","o":"(ix+$03),a"},{"a":33790,"t":"code","b":[221,54,4,255],"m":"ld","o":"(ix+$04),$FF"},{"a":33794,"t":"code","b":[205,12,131],"m":"call","oa":33548,"o":"free_record"},{"a":33797,"t":"code","b":[221,113,5],"m":"ld","o":"(ix+$05),c"},{"a":33800,"t":"code","b":[58,37,91],"m":"ld","oa":23333,"o":"a,($5B25)"},{"a":33803,"t":"code","b":[205,170,181],"m":"call","oa":46506,"o":"type_record"},{"a":33806,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":33809,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33810,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33811,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)"},{"a":33814,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33815,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33816,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":33819,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33820,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33821,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":33823,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33824,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":33827,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33828,"t":"code","b":[58,37,91],"m":"ld","oa":23333,"o":"a,($5B25)"},{"a":33831,"t":"code","b":[254,147],"m":"cp","o":"$93"},{"a":33833,"t":"code","b":[32,2],"m":"jr","oa":33837,"o":"nz,$842D"},{"a":33835,"t":"code","b":[203,222],"m":"set","o":"3,(hl)"},{"a":33837,"t":"code","b":[58,99,208],"m":"ld","oa":53347,"o":"a,($D063)","x":[33833]},{"a":33840,"t":"code","b":[183],"m":"or","o":"a"},{"a":33841,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33842,"t":"code","b":[205,250,164],"m":"call","oa":42234,"o":"add_to_wizard_list"},{"a":33845,"t":"code","b":[201],"m":"ret"},{"a":33846,"l":"summon_display","c":"Plays the summoning sound and waits while the interrupt runs the summoning animation (the counter at ($D032) + $18F from $A5 to $A8), with the sound effect at $C856 going.","t":"code","b":[62,15],"m":"ld","o":"a,$0F","x":[28004]},{"a":33848,"t":"code","b":[205,78,200],"m":"call","oa":51278,"o":"start_sound"},{"a":33851,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":33853,"t":"code","b":[205,58,200],"m":"call","oa":51258,"o":"set_sound"},{"a":33856,"t":"code","b":[42,50,208],"m":"ld","oa":53298,"o":"hl,($D032)"},{"a":33859,"t":"code","b":[17,143,1],"m":"ld","o":"de,$018F"},{"a":33862,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33863,"t":"code","b":[54,165],"m":"ld","o":"(hl),$A5"},{"a":33865,"t":"code","b":[62,21],"m":"ld","o":"a,$15"},{"a":33867,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":33870,"t":"code","b":[50,57,200],"m":"ld","oa":51257,"o":"(sound_running),a"},{"a":33873,"t":"code","b":[251],"m":"ei"},{"a":33874,"t":"code","b":[229],"m":"push","o":"hl","x":[33882]},{"a":33875,"t":"code","b":[205,86,200],"m":"call","oa":51286,"o":"play_sound"},{"a":33878,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":33879,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33880,"t":"code","b":[254,168],"m":"cp","o":"$A8"},{"a":33882,"t":"code","b":[32,246],"m":"jr","oa":33874,"o":"nz,$8452"},{"a":33884,"t":"code","b":[243],"m":"di"},{"a":33885,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33886,"t":"code","b":[50,57,200],"m":"ld","oa":51257,"o":"(sound_running),a"},{"a":33889,"t":"code","b":[50,37,91],"m":"ld","oa":23333,"o":"($5B25),a"},{"a":33892,"t":"code","b":[201],"m":"ret"},{"a":33893,"l":"brew_potion","c":"A potion spell ($19-$1F): needs an empty cauldron ($67) on the square and, among the objects there, the potion's ingredient from potion_ingredients; refused otherwise.","t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here","x":[33509,42701]},{"a":33896,"t":"code","b":[58,221,208],"m":"ld","oa":53469,"o":"a,($D0DD)"},{"a":33899,"t":"code","b":[183],"m":"or","o":"a"},{"a":33900,"t":"code","b":[55],"m":"scf"},{"a":33901,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33902,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)"},{"a":33905,"t":"code","b":[254,103],"m":"cp","o":"$67"},{"a":33907,"t":"code","b":[55],"m":"scf"},{"a":33908,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":33909,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)"},{"a":33912,"t":"code","b":[198,82],"m":"add","o":"a,$52"},{"a":33914,"t":"code","b":[50,38,255],"m":"ld","oa":65318,"o":"($FF26),a"},{"a":33917,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)"},{"a":33920,"t":"code","b":[214,25],"m":"sub","o":"$19"},{"a":33922,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":33923,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":33925,"t":"code","b":[33,206,132],"m":"ld","o":"hl,$84CE"},{"a":33928,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33929,"t":"code","b":[78],"m":"ld","o":"c,(hl)"},{"a":33930,"l":"brew_with","c":"Brews potion $FF26 from ingredient C: refuses (carry) if no object of type C lies on the square; otherwise the ingredient is used up and the cauldron becomes the potion, with the spell's level plus 3 gulps in the high four bits of byte 5 and its strength, the level less 1, in the low four. The square shows the sparkle ($4F) on a human's turn.","t":"code","b":[33,213,209],"m":"ld","o":"hl,$D1D5","x":[33598]},{"a":33933,"t":"code","b":[58,221,208],"m":"ld","oa":53469,"o":"a,($D0DD)"},{"a":33936,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33937,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[33943]},{"a":33938,"t":"code","b":[185],"m":"cp","o":"c"},{"a":33939,"t":"code","b":[40,6],"m":"jr","oa":33947,"o":"z,$849B"},{"a":33941,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33942,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33943,"t":"code","b":[16,248],"m":"djnz","oa":33937,"o":"$8491"},{"a":33945,"t":"code","b":[55],"m":"scf"},{"a":33946,"t":"code","b":[201],"m":"ret"},{"a":33947,"t":"code","b":[43],"m":"dec","o":"hl","x":[33939]},{"a":33948,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33949,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":33952,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33953,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33954,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":33956,"t":"code","b":[58,45,91],"m":"ld","oa":23341,"o":"a,($5B2D)"},{"a":33959,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":33962,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33963,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33964,"t":"code","b":[58,38,255],"m":"ld","oa":65318,"o":"a,($FF26)"},{"a":33967,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33968,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33969,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33970,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33971,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":33974,"t":"code","b":[61],"m":"dec","o":"a"},{"a":33975,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":33976,"t":"code","b":[198,4],"m":"add","o":"a,$04"},{"a":33978,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":33979,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":33980,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":33981,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":33982,"t":"code","b":[177],"m":"or","o":"c"},{"a":33983,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33984,"t":"code","b":[50,37,91],"m":"ld","oa":23333,"o":"($5B25),a"},{"a":33987,"t":"code","b":[205,103,170],"m":"call","oa":43623,"o":"map_address_selected"},{"a":33990,"t":"code","b":[58,99,208],"m":"ld","oa":53347,"o":"a,($D063)"},{"a":33993,"t":"code","b":[183],"m":"or","o":"a"},{"a":33994,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":33995,"t":"code","b":[54,79],"m":"ld","o":"(hl),$4F"},{"a":33997,"t":"code","b":[201],"m":"ret"},{"a":33998,"l":"potion_ingredients","c":"The ingredient each potion spell needs, by spell from $19: mistletoe ($54, strength), clover ($57, protection), crystal ($81, invisibility), sulph ($56, speed), fairy wing ($58, flying), ambergris ($55, super) and apple ($7F, healing).","t":"byte","b":[84,87,129,86,88,85,127]},{"a":34005,"l":"add_mana","c":"Adds A to the current player's mana ($D0E0), up to the wizard's starting mana (byte 0 of its record).","t":"code","b":[237,91,17,91],"m":"ld","oa":23313,"o":"de,($5B11)","x":[29998,30458]},{"a":34009,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":34011,"t":"code","b":[29],"m":"dec","o":"e"},{"a":34012,"t":"code","b":[33,224,208],"m":"ld","o":"hl,$D0E0"},{"a":34015,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":34016,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":34017,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":34018,"t":"code","b":[229],"m":"push","o":"hl"},{"a":34019,"t":"code","b":[42,4,91],"m":"ld","oa":23300,"o":"hl,($5B04)"},{"a":34022,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":34023,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":34024,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":34025,"t":"code","b":[216],"m":"ret","o":"c"},{"a":34026,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":34027,"t":"code","b":[201],"m":"ret"},{"a":34028,"l":"attack","c":"A creature attacks the one it walks into ($FF2A). Needs 8 action points and 8 stamina (NOT ENOUGH ACTION POINTS, NOT ENOUGH STAMINA) and spends them. The attacker strikes (strike); if the defender lives and has 4 action points and 4 stamina left it spends them striking back ($5B0C set). If the attacker dies, $B1A6 runs on its square, $FF86 is reset and select mode ends (its caller's return address is dropped, Z clear). Otherwise the attacker is reloaded and its panel redrawn ($B148).","t":"code","b":[243],"m":"di","x":[27104,39828]},{"a":34029,"t":"code","b":[175],"m":"xor","o":"a"},{"a":34030,"t":"code","b":[50,48,255],"m":"ld","oa":65328,"o":"($FF30),a"},{"a":34033,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)"},{"a":34037,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":34040,"t":"code","b":[254,8],"m":"cp","o":"$08"},{"a":34042,"t":"code","b":[218,175,133],"m":"jp","oa":34223,"o":"c,$85AF"},{"a":34045,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":34048,"t":"code","b":[214,8],"m":"sub","o":"$08"},{"a":34050,"t":"code","b":[218,182,133],"m":"jp","oa":34230,"o":"c,$85B6"},{"a":34053,"t":"code","b":[221,119,1],"m":"ld","o":"(ix+$01),a"},{"a":34056,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":34059,"t":"code","b":[214,8],"m":"sub","o":"$08"},{"a":34061,"t":"code","b":[221,119,0],"m":"ld","o":"(ix+$00),a"},{"a":34064,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":34066,"t":"code","b":[50,41,91],"m":"ld","oa":23337,"o":"($5B29),a"},{"a":34069,"t":"code","b":[205,210,181],"m":"call","oa":46546,"o":"keep_figures"},{"a":34072,"t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)"},{"a":34075,"t":"code","b":[50,44,255],"m":"ld","oa":65324,"o":"($FF2C),a"},{"a":34078,"t":"code","b":[58,42,255],"m":"ld","oa":65322,"o":"a,($FF2A)"},{"a":34081,"t":"code","b":[50,43,255],"m":"ld","oa":65323,"o":"($FF2B),a"},{"a":34084,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":34086,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":34089,"t":"code","b":[175],"m":"xor","o":"a"},{"a":34090,"t":"code","b":[50,99,255],"m":"ld","oa":65379,"o":"($FF63),a"},{"a":34093,"t":"code","b":[50,12,91],"m":"ld","oa":23308,"o":"($5B0C),a"},{"a":34096,"t":"code","b":[205,189,133],"m":"call","oa":34237,"o":"strike"},{"a":34099,"t":"code","b":[243],"m":"di"},{"a":34100,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":34103,"t":"code","b":[183],"m":"or","o":"a"},{"a":34104,"t":"code","b":[204,76,169],"m":"call","oa":43340,"o":"z,draw_map"},{"a":34107,"t":"code","b":[58,48,255],"m":"ld","oa":65328,"o":"a,($FF30)"},{"a":34110,"t":"code","b":[183],"m":"or","o":"a"},{"a":34111,"t":"code","b":[32,89],"m":"jr","oa":34202,"o":"nz,$859A"},{"a":34113,"t":"code","b":[221,42,40,255],"m":"ld","oa":65320,"o":"ix,($FF28)"},{"a":34117,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":34120,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":34123,"t":"code","b":[254,4],"m":"cp","o":"$04"},{"a":34125,"t":"code","b":[56,75],"m":"jr","oa":34202,"o":"c,$859A"},{"a":34127,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)"},{"a":34130,"t":"code","b":[214,4],"m":"sub","o":"$04"},{"a":34132,"t":"code","b":[56,68],"m":"jr","oa":34202,"o":"c,$859A"},{"a":34134,"t":"code","b":[253,119,1],"m":"ld","o":"(iy+$01),a"},{"a":34137,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":34140,"t":"code","b":[214,4],"m":"sub","o":"$04"},{"a":34142,"t":"code","b":[253,119,0],"m":"ld","o":"(iy+$00),a"},{"a":34145,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":34147,"t":"code","b":[50,12,91],"m":"ld","oa":23308,"o":"($5B0C),a"},{"a":34150,"t":"code","b":[58,42,255],"m":"ld","oa":65322,"o":"a,($FF2A)"},{"a":34153,"t":"code","b":[50,44,255],"m":"ld","oa":65324,"o":"($FF2C),a"},{"a":34156,"t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)"},{"a":34159,"t":"code","b":[50,43,255],"m":"ld","oa":65323,"o":"($FF2B),a"},{"a":34162,"t":"code","b":[62,21],"m":"ld","o":"a,$15"},{"a":34164,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":34167,"t":"code","b":[175],"m":"xor","o":"a"},{"a":34168,"t":"code","b":[50,99,255],"m":"ld","oa":65379,"o":"($FF63),a"},{"a":34171,"t":"code","b":[205,189,133],"m":"call","oa":34237,"o":"strike"},{"a":34174,"t":"code","b":[243],"m":"di"},{"a":34175,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":34178,"t":"code","b":[183],"m":"or","o":"a"},{"a":34179,"t":"code","b":[204,76,169],"m":"call","oa":43340,"o":"z,draw_map"},{"a":34182,"t":"code","b":[58,48,255],"m":"ld","oa":65328,"o":"a,($FF30)"},{"a":34185,"t":"code","b":[183],"m":"or","o":"a"},{"a":34186,"t":"code","b":[40,14],"m":"jr","oa":34202,"o":"z,$859A"},{"a":34188,"t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)"},{"a":34191,"t":"code","b":[205,166,177],"m":"call","oa":45478,"o":"work_out_sight"},{"a":34194,"t":"code","b":[205,168,120],"m":"call","oa":30888,"o":"reset_ff86"},{"a":34197,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":34198,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":34200,"t":"code","b":[183],"m":"or","o":"a"},{"a":34201,"t":"code","b":[201],"m":"ret"},{"a":34202,"t":"code","b":[62,21],"m":"ld","o":"a,$15","x":[34111,34125,34132,34186]},{"a":34204,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":34207,"t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)"},{"a":34210,"t":"code","b":[205,55,119],"m":"call","oa":30519,"o":"load_creature"},{"a":34213,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":34216,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":34219,"t":"code","b":[183],"m":"or","o":"a"},{"a":34220,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":34221,"t":"code","b":[251],"m":"ei"},{"a":34222,"t":"code","b":[201],"m":"ret"},{"a":34223,"t":"code","b":[62,180],"m":"ld","o":"a,$B4","x":[34042]},{"a":34225,"t":"code","b":[205,130,106],"m":"call","oa":27266,"o":"show_message"},{"a":34228,"t":"code","b":[251],"m":"ei"},{"a":34229,"t":"code","b":[201],"m":"ret"},{"a":34230,"t":"code","b":[62,181],"m":"ld","o":"a,$B5","x":[34050]},{"a":34232,"t":"code","b":[205,130,106],"m":"call","oa":27266,"o":"show_message"},{"a":34235,"t":"code","b":[251],"m":"ei"},{"a":34236,"t":"code","b":[201],"m":"ret"},{"a":34237,"l":"strike","c":"One blow from creature $FF2C at creature $FF2B. $5B26 is the attacker's player less 1, $5B27 is set when the attacker is a wizard, $FF62 its combat ($D1FE). An undead attacker (bit 1 of byte 11 of its type) counts as magic ($FF63).","t":"code","b":[58,44,255],"m":"ld","oa":65324,"o":"a,($FF2C)","x":[34096,34171]},{"a":34240,"t":"code","b":[205,55,119],"m":"call","oa":30519,"o":"load_creature"},{"a":34243,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":34246,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":34248,"t":"code","b":[61],"m":"dec","o":"a"},{"a":34249,"t":"code","b":[50,38,91],"m":"ld","oa":23334,"o":"($5B26),a"},{"a":34252,"t":"code","b":[6,0],"m":"ld","o":"b,$00"},{"a":34254,"t":"code","b":[221,42,249,255],"m":"ld","oa":65529,"o":"ix,($FFF9)"},{"a":34258,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":34261,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":34263,"t":"code","b":[48,2],"m":"jr","oa":34267,"o":"nc,$85DB"},{"a":34265,"t":"code","b":[6,1],"m":"ld","o":"b,$01"},{"a":34267,"t":"code","b":[33,39,91],"m":"ld","o":"hl,$5B27","x":[34263]},{"a":34270,"t":"code","b":[112],"m":"ld","o":"(hl),b"},{"a":34271,"t":"code","b":[58,254,209],"m":"ld","oa":53758,"o":"a,($D1FE)"},{"a":34274,"t":"code","b":[50,98,255],"m":"ld","oa":65378,"o":"($FF62),a"},{"a":34277,"t":"code","b":[58,99,255],"m":"ld","oa":65379,"o":"a,($FF63)"},{"a":34280,"t":"code","b":[183],"m":"or","o":"a"},{"a":34281,"t":"code","b":[32,26],"m":"jr","oa":34309,"o":"nz,strike_hit"},{"a":34283,"t":"code","b":[253,203,11,78],"m":"bit","o":"1,(iy+$0B)"},{"a":34287,"t":"code","b":[32,15],"m":"jr","oa":34304,"o":"nz,$8600"},{"a":34289,"l":"strike_ranged","c":"Entered here for a thrown or fired blow: a magic weapon in use ($60-$66 but not $63, the magic bow) counts as magic.","t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)","x":[31403]},{"a":34292,"t":"code","b":[254,96],"m":"cp","o":"$60"},{"a":34294,"t":"code","b":[56,13],"m":"jr","oa":34309,"o":"c,strike_hit"},{"a":34296,"t":"code","b":[254,103],"m":"cp","o":"$67"},{"a":34298,"t":"code","b":[48,9],"m":"jr","oa":34309,"o":"nc,strike_hit"},{"a":34300,"t":"code","b":[254,99],"m":"cp","o":"$63"},{"a":34302,"t":"code","b":[40,5],"m":"jr","oa":34309,"o":"z,strike_hit"},{"a":34304,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[34287,34954,35133]},{"a":34306,"t":"code","b":[50,99,255],"m":"ld","oa":65379,"o":"($FF63),a"},{"a":34309,"l":"strike_hit","c":"The blow lands on creature $FF2B: on the computer's turn, an attack that is not a return blow makes it visible. The fight is drawn when the turn is shown ($AEC2). An undead defender takes nothing from a blow that is not magic. Damage is a random number below twice the attack strength plus 2, less the defender's defence ($D1FF); above 0 it is dealt (damage_and_rider) and shown (show_hit).","t":"code","b":[58,43,255],"m":"ld","oa":65323,"o":"a,($FF2B)","x":[34281,34294,34298,34302]},{"a":34312,"t":"code","b":[205,55,119],"m":"call","oa":30519,"o":"load_creature"},{"a":34315,"t":"code","b":[58,99,208],"m":"ld","oa":53347,"o":"a,($D063)"},{"a":34318,"t":"code","b":[183],"m":"or","o":"a"},{"a":34319,"t":"code","b":[40,10],"m":"jr","oa":34331,"o":"z,$861B"},{"a":34321,"t":"code","b":[58,12,91],"m":"ld","oa":23308,"o":"a,($5B0C)"},{"a":34324,"t":"code","b":[183],"m":"or","o":"a"},{"a":34325,"t":"code","b":[32,4],"m":"jr","oa":34331,"o":"nz,$861B"},{"a":34327,"t":"code","b":[221,203,4,158],"m":"res","o":"3,(ix+$04)"},{"a":34331,"t":"code","b":[42,249,255],"m":"ld","oa":65529,"o":"hl,($FFF9)","x":[34319,34325]},{"a":34334,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":34335,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34336,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":34337,"t":"code","b":[230,63],"m":"and","o":"$3F"},{"a":34339,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":34340,"t":"code","b":[243],"m":"di"},{"a":34341,"t":"code","b":[175],"m":"xor","o":"a"},{"a":34342,"t":"code","b":[50,208,208],"m":"ld","oa":53456,"o":"($D0D0),a"},{"a":34345,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":34347,"t":"code","b":[50,91,180],"m":"ld","oa":46171,"o":"(blink_count),a"},{"a":34350,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":34353,"t":"code","b":[183],"m":"or","o":"a"},{"a":34354,"t":"code","b":[32,6],"m":"jr","oa":34362,"o":"nz,$863A"},{"a":34356,"t":"code","b":[205,194,174],"m":"call","oa":44738,"o":"draw_hit"},{"a":34359,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":34362,"t":"code","b":[253,203,11,78],"m":"bit","o":"1,(iy+$0B)","x":[34354]},{"a":34366,"t":"code","b":[40,5],"m":"jr","oa":34373,"o":"z,$8645"},{"a":34368,"t":"code","b":[58,99,255],"m":"ld","oa":65379,"o":"a,($FF63)"},{"a":34371,"t":"code","b":[183],"m":"or","o":"a"},{"a":34372,"t":"code","b":[200],"m":"ret","o":"z"},{"a":34373,"t":"code","b":[58,98,255],"m":"ld","oa":65378,"o":"a,($FF62)","x":[34366]},{"a":34376,"t":"code","b":[60],"m":"inc","o":"a"},{"a":34377,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":34378,"t":"code","b":[48,2],"m":"jr","oa":34382,"o":"nc,$864E"},{"a":34380,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":34382,"t":"code","b":[205,52,167],"m":"call","oa":42804,"o":"random_below_a","x":[34378]},{"a":34385,"t":"code","b":[33,255,209],"m":"ld","o":"hl,$D1FF"},{"a":34388,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":34389,"t":"code","b":[216],"m":"ret","o":"c"},{"a":34390,"t":"code","b":[200],"m":"ret","o":"z"},{"a":34391,"t":"code","b":[205,214,120],"m":"call","oa":30934,"o":"damage_and_rider"},{"a":34394,"t":"code","b":[205,139,121],"m":"call","oa":31115,"o":"show_hit"},{"a":34397,"t":"code","b":[201],"m":"ret"},{"a":34398,"l":"pick_spell_target","c":"Lets the wizard pick a target square within twice the spell's level plus 7 ($FF0B). Carry set when the cursor is left on the wizard (cancelled). The area spells below enchant ($24) need no line of sight; the others give NO LINE OF SIGHT and ask again until the square can be seen.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[34471,34804,34914,34996,35309]},{"a":34400,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":34403,"t":"code","b":[251],"m":"ei"},{"a":34404,"t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre","x":[34442]},{"a":34407,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":34410,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":34413,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":34414,"t":"code","b":[198,7],"m":"add","o":"a,$07"},{"a":34416,"t":"code","b":[205,2,114],"m":"call","oa":29186,"o":"pick_target"},{"a":34419,"t":"code","b":[205,184,120],"m":"call","oa":30904,"o":"cursor_on_selected"},{"a":34422,"t":"code","b":[32,2],"m":"jr","oa":34426,"o":"nz,$867A"},{"a":34424,"t":"code","b":[55],"m":"scf"},{"a":34425,"t":"code","b":[201],"m":"ret"},{"a":34426,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)","x":[34422]},{"a":34429,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":34431,"t":"code","b":[63],"m":"ccf"},{"a":34432,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":34433,"t":"code","b":[205,233,122],"m":"call","oa":31465,"o":"line_of_sight"},{"a":34436,"t":"code","b":[200],"m":"ret","o":"z"},{"a":34437,"t":"code","b":[62,206],"m":"ld","o":"a,$CE"},{"a":34439,"t":"code","b":[205,130,106],"m":"call","oa":27266,"o":"show_message"},{"a":34442,"t":"code","b":[24,216],"m":"jr","oa":34404,"o":"$8664"},{"a":34444,"l":"draw_spell_bolt","c":"Draws the spell's flight from the wizard to the target (projectile 4, $B5F7 and $AE02), keeping the cursor's square.","t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)","x":[34475,34807,35313]},{"a":34447,"t":"code","b":[229],"m":"push","o":"hl"},{"a":34448,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":34450,"t":"code","b":[205,247,181],"m":"call","oa":46583,"o":"set_missile"},{"a":34453,"t":"code","b":[205,2,174],"m":"call","oa":44546,"o":"draw_missile"},{"a":34456,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":34457,"t":"code","b":[34,211,208],"m":"ld","oa":53459,"o":"($D0D3),hl"},{"a":34460,"t":"code","b":[201],"m":"ret"},{"a":34461,"l":"area_spell","c":"Magic fire, gooey blob, tangle vine and flood ($20-$23): refused when cast at the air; otherwise the wizard picks a square, the bolt flies and area_spell_at takes effect.","t":"code","b":[58,49,255],"m":"ld","oa":65329,"o":"a,($FF31)","x":[33514]},{"a":34464,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":34466,"t":"code","b":[55],"m":"scf"},{"a":34467,"t":"code","b":[200],"m":"ret","o":"z"},{"a":34468,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":34471,"t":"code","b":[205,94,134],"m":"call","oa":34398,"o":"pick_spell_target"},{"a":34474,"t":"code","b":[216],"m":"ret","o":"c"},{"a":34475,"t":"code","b":[205,140,134],"m":"call","oa":34444,"o":"draw_spell_bolt"},{"a":34478,"t":"code","b":[205,178,134],"m":"call","oa":34482,"o":"area_spell_at"},{"a":34481,"t":"code","b":[201],"m":"ret"},{"a":34482,"l":"area_spell_at","c":"An area spell at square HL ($FF94): the square's susceptibility to it comes from its terrain record (magic fire: low four bits of byte 3; gooey blob: high four bits of byte 3; flood: low four bits of byte 2; tangle vine: high four bits of byte 2), and nothing happens where it is 0. Flood and tangle vine cover an area (flood_area). Magic fire and gooey blob set the player's strength for them from the spell's level ($D04B, and the level less 1 at $D04F, both by player), catch on the square when a random number is below its susceptibility and then spread to its neighbours with twice the strength. The map is redrawn when the turn is shown.","t":"code","b":[34,148,255],"m":"ld","oa":65428,"o":"($FF94),hl","x":[34478]},{"a":34485,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":34488,"t":"code","b":[205,39,145],"m":"call","oa":37159,"o":"terrain_record"},{"a":34491,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)"},{"a":34494,"t":"code","b":[254,32],"m":"cp","o":"$20"},{"a":34496,"t":"code","b":[32,12],"m":"jr","oa":34510,"o":"nz,$86CE"},{"a":34498,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":34500,"t":"code","b":[50,4,255],"m":"ld","oa":65284,"o":"($FF04),a"},{"a":34503,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":34506,"t":"code","b":[230,15],"m":"and","o":"$0F"},{"a":34508,"t":"code","b":[24,44],"m":"jr","oa":34554,"o":"$86FA"},{"a":34510,"t":"code","b":[254,33],"m":"cp","o":"$21","x":[34496]},{"a":34512,"t":"code","b":[32,11],"m":"jr","oa":34525,"o":"nz,$86DD"},{"a":34514,"t":"code","b":[175],"m":"xor","o":"a"},{"a":34515,"t":"code","b":[50,4,255],"m":"ld","oa":65284,"o":"($FF04),a"},{"a":34518,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":34521,"t":"code","b":[230,240],"m":"and","o":"$F0"},{"a":34523,"t":"code","b":[24,25],"m":"jr","oa":34550,"o":"$86F6"},{"a":34525,"t":"code","b":[254,35],"m":"cp","o":"$23","x":[34512]},{"a":34527,"t":"code","b":[32,11],"m":"jr","oa":34540,"o":"nz,$86EC"},{"a":34529,"t":"code","b":[175],"m":"xor","o":"a"},{"a":34530,"t":"code","b":[50,33,91],"m":"ld","oa":23329,"o":"($5B21),a"},{"a":34533,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)"},{"a":34536,"t":"code","b":[230,15],"m":"and","o":"$0F"},{"a":34538,"t":"code","b":[24,14],"m":"jr","oa":34554,"o":"$86FA"},{"a":34540,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[34527]},{"a":34542,"t":"code","b":[50,33,91],"m":"ld","oa":23329,"o":"($5B21),a"},{"a":34545,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)"},{"a":34548,"t":"code","b":[230,240],"m":"and","o":"$F0"},{"a":34550,"t":"code","b":[15],"m":"rrca","x":[34523]},{"a":34551,"t":"code","b":[15],"m":"rrca"},{"a":34552,"t":"code","b":[15],"m":"rrca"},{"a":34553,"t":"code","b":[15],"m":"rrca"},{"a":34554,"t":"code","b":[183],"m":"or","o":"a","x":[34508,34538]},{"a":34555,"t":"code","b":[200],"m":"ret","o":"z"},{"a":34556,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":34557,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)"},{"a":34560,"t":"code","b":[254,34],"m":"cp","o":"$22"},{"a":34562,"t":"code","b":[56,5],"m":"jr","oa":34569,"o":"c,$8709"},{"a":34564,"t":"code","b":[205,9,127],"m":"call","oa":32521,"o":"flood_area"},{"a":34567,"t":"code","b":[183],"m":"or","o":"a"},{"a":34568,"t":"code","b":[201],"m":"ret"},{"a":34569,"t":"code","b":[197],"m":"push","o":"bc","x":[34562]},{"a":34570,"t":"code","b":[205,164,125],"m":"call","oa":32164,"o":"set_spread_types"},{"a":34573,"t":"code","b":[58,6,255],"m":"ld","oa":65286,"o":"a,($FF06)"},{"a":34576,"t":"code","b":[33,4,255],"m":"ld","o":"hl,$FF04"},{"a":34579,"t":"code","b":[203,70],"m":"bit","o":"0,(hl)"},{"a":34581,"t":"code","b":[40,3],"m":"jr","oa":34586,"o":"z,$871A"},{"a":34583,"t":"code","b":[58,7,255],"m":"ld","oa":65287,"o":"a,($FF07)"},{"a":34586,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a","x":[34581]},{"a":34589,"t":"code","b":[50,5,255],"m":"ld","oa":65285,"o":"($FF05),a"},{"a":34592,"t":"code","b":[237,91,17,91],"m":"ld","oa":23313,"o":"de,($5B11)"},{"a":34596,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":34598,"t":"code","b":[33,75,208],"m":"ld","o":"hl,$D04B"},{"a":34601,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":34602,"t":"code","b":[221,42,4,91],"m":"ld","oa":23300,"o":"ix,($5B04)"},{"a":34606,"t":"code","b":[221,126,34],"m":"ld","o":"a,(ix+$22)"},{"a":34609,"t":"code","b":[230,15],"m":"and","o":"$0F"},{"a":34611,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":34612,"t":"code","b":[50,10,255],"m":"ld","oa":65290,"o":"($FF0A),a"},{"a":34615,"t":"code","b":[29],"m":"dec","o":"e"},{"a":34616,"t":"code","b":[33,80,208],"m":"ld","o":"hl,$D050"},{"a":34619,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":34620,"t":"code","b":[221,126,35],"m":"ld","o":"a,(ix+$23)"},{"a":34623,"t":"code","b":[230,15],"m":"and","o":"$0F"},{"a":34625,"t":"code","b":[61],"m":"dec","o":"a"},{"a":34626,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":34627,"t":"code","b":[33,4,255],"m":"ld","o":"hl,$FF04"},{"a":34630,"t":"code","b":[203,70],"m":"bit","o":"0,(hl)"},{"a":34632,"t":"code","b":[32,3],"m":"jr","oa":34637,"o":"nz,$874D"},{"a":34634,"t":"code","b":[50,10,255],"m":"ld","oa":65290,"o":"($FF0A),a"},{"a":34637,"t":"code","b":[193],"m":"pop","o":"bc","x":[34632]},{"a":34638,"t":"code","b":[33,11,255],"m":"ld","o":"hl,$FF0B"},{"a":34641,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":34643,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":34644,"t":"code","b":[50,34,91],"m":"ld","oa":23330,"o":"($5B22),a"},{"a":34647,"t":"code","b":[42,148,255],"m":"ld","oa":65428,"o":"hl,($FF94)"},{"a":34650,"t":"code","b":[34,136,255],"m":"ld","oa":65416,"o":"($FF88),hl"},{"a":34653,"t":"code","b":[205,196,123],"m":"call","oa":31684,"o":"maybe_set_terrain"},{"a":34656,"t":"code","b":[48,13],"m":"jr","oa":34671,"o":"nc,$876F"},{"a":34658,"t":"code","b":[42,148,255],"m":"ld","oa":65428,"o":"hl,($FF94)"},{"a":34661,"t":"code","b":[34,204,208],"m":"ld","oa":53452,"o":"($D0CC),hl"},{"a":34664,"t":"code","b":[58,10,255],"m":"ld","oa":65290,"o":"a,($FF0A)"},{"a":34667,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":34668,"t":"code","b":[205,165,126],"m":"call","oa":32421,"o":"spread_to_neighbours"},{"a":34671,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)","x":[34656]},{"a":34674,"t":"code","b":[183],"m":"or","o":"a"},{"a":34675,"t":"code","b":[204,76,169],"m":"call","oa":43340,"o":"z,draw_map"},{"a":34678,"t":"code","b":[201],"m":"ret"},{"a":34679,"l":"draw_turn_panel","c":"Clears the screen and draws the panel shown before each turn: for player 0 INDEPENDENT CREATURES in a frame; for a wizard WIZARD ... TURN with its name and the turn number ($D065), with PORTAL and the turns it has left ($D042) once the turn has reached $D062; then the victory points ($8E8A).","t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen","x":[30054,35901]},{"a":34682,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":34685,"t":"code","b":[183],"m":"or","o":"a"},{"a":34686,"t":"code","b":[32,20],"m":"jr","oa":34708,"o":"nz,$8794"},{"a":34688,"t":"code","b":[62,233],"m":"ld","o":"a,$E9"},{"a":34690,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":34693,"t":"code","b":[62,68],"m":"ld","o":"a,$44"},{"a":34695,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":34698,"t":"code","b":[33,8,9],"m":"ld","o":"hl,$0908"},{"a":34701,"t":"code","b":[17,13,21],"m":"ld","o":"de,$150D"},{"a":34704,"t":"code","b":[205,138,201],"m":"call","oa":51594,"o":"draw_frame"},{"a":34707,"t":"code","b":[201],"m":"ret"},{"a":34708,"t":"code","b":[62,70],"m":"ld","o":"a,$46","x":[34686]},{"a":34710,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":34713,"t":"code","b":[33,1,1],"m":"ld","o":"hl,$0101"},{"a":34716,"t":"code","b":[17,22,30],"m":"ld","o":"de,$1E16"},{"a":34719,"t":"code","b":[205,138,201],"m":"call","oa":51594,"o":"draw_frame"},{"a":34722,"t":"code","b":[62,224],"m":"ld","o":"a,$E0"},{"a":34724,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":34727,"t":"code","b":[33,3,13],"m":"ld","o":"hl,$0D03"},{"a":34730,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":34733,"t":"code","b":[33,5,69],"m":"ld","o":"hl,$4505"},{"a":34736,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":34739,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":34742,"t":"code","b":[198,140],"m":"add","o":"a,$8C"},{"a":34744,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":34747,"t":"code","b":[33,6,11],"m":"ld","o":"hl,$0B06"},{"a":34750,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":34753,"t":"code","b":[58,101,208],"m":"ld","oa":53349,"o":"a,($D065)"},{"a":34756,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number"},{"a":34759,"t":"code","b":[58,101,208],"m":"ld","oa":53349,"o":"a,($D065)"},{"a":34762,"t":"code","b":[33,98,208],"m":"ld","o":"hl,$D062"},{"a":34765,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":34766,"t":"code","b":[56,29],"m":"jr","oa":34797,"o":"c,$87ED"},{"a":34768,"t":"code","b":[33,6,15],"m":"ld","o":"hl,$0F06"},{"a":34771,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":34774,"t":"code","b":[33,6,70],"m":"ld","o":"hl,$4606"},{"a":34777,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":34780,"t":"code","b":[62,54],"m":"ld","o":"a,$36"},{"a":34782,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":34785,"t":"code","b":[33,6,22],"m":"ld","o":"hl,$1606"},{"a":34788,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":34791,"t":"code","b":[58,66,208],"m":"ld","oa":53314,"o":"a,($D042)"},{"a":34794,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number"},{"a":34797,"t":"code","b":[205,138,142],"m":"call","oa":36490,"o":"print_victory_points","x":[34766]},{"a":34800,"t":"code","b":[201],"m":"ret"},{"a":34801,"l":"enchant","c":"ENCHANT (spell $24): every ordinary weapon ($59-$5F, sword to axe) carried by the target creature, and by its rider, becomes its magic version (type + 7) for the spell's level plus 3 turns (byte 5); cast on the ground it also enchants the weapons lying on the target's square.","t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":34804,"t":"code","b":[205,94,134],"m":"call","oa":34398,"o":"pick_spell_target"},{"a":34807,"t":"code","b":[205,140,134],"m":"call","oa":34444,"o":"draw_spell_bolt"},{"a":34810,"t":"code","b":[205,143,136],"m":"call","oa":34959,"o":"creature_at_height"},{"a":34813,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":34815,"t":"code","b":[40,26],"m":"jr","oa":34843,"o":"z,$881B"},{"a":34817,"t":"code","b":[205,73,103],"m":"call","oa":26441,"o":"list_carried"},{"a":34820,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":34823,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":34825,"t":"code","b":[56,6],"m":"jr","oa":34833,"o":"c,$8811"},{"a":34827,"t":"code","b":[58,218,208],"m":"ld","oa":53466,"o":"a,($D0DA)"},{"a":34830,"t":"code","b":[205,73,103],"m":"call","oa":26441,"o":"list_carried"},{"a":34833,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)","x":[34825]},{"a":34836,"t":"code","b":[221,33,192,209],"m":"ld","o":"ix,$D1C0"},{"a":34840,"t":"code","b":[205,51,136],"m":"call","oa":34867,"o":"enchant_list"},{"a":34843,"t":"code","b":[58,49,255],"m":"ld","oa":65329,"o":"a,($FF31)","x":[34815]},{"a":34846,"t":"code","b":[60],"m":"inc","o":"a"},{"a":34847,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":34848,"t":"code","b":[237,91,211,208],"m":"ld","oa":53459,"o":"de,($D0D3)"},{"a":34852,"t":"code","b":[205,167,103],"m":"call","oa":26535,"o":"list_objects_at"},{"a":34855,"t":"code","b":[58,221,208],"m":"ld","oa":53469,"o":"a,($D0DD)"},{"a":34858,"t":"code","b":[221,33,212,209],"m":"ld","o":"ix,$D1D4"},{"a":34862,"t":"code","b":[205,51,136],"m":"call","oa":34867,"o":"enchant_list"},{"a":34865,"t":"code","b":[175],"m":"xor","o":"a"},{"a":34866,"t":"code","b":[201],"m":"ret"},{"a":34867,"l":"enchant_list","c":"Enchants the weapons in a list of A pairs of index and type at IX.","t":"code","b":[183],"m":"or","o":"a","x":[34840,34862]},{"a":34868,"t":"code","b":[200],"m":"ret","o":"z"},{"a":34869,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":34870,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)","x":[34908]},{"a":34873,"t":"code","b":[254,89],"m":"cp","o":"$59"},{"a":34875,"t":"code","b":[56,27],"m":"jr","oa":34904,"o":"c,$8858"},{"a":34877,"t":"code","b":[254,96],"m":"cp","o":"$60"},{"a":34879,"t":"code","b":[48,23],"m":"jr","oa":34904,"o":"nc,$8858"},{"a":34881,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":34884,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":34887,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34888,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34889,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":34892,"t":"code","b":[198,7],"m":"add","o":"a,$07"},{"a":34894,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":34895,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34896,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34897,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34898,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":34901,"t":"code","b":[198,3],"m":"add","o":"a,$03"},{"a":34903,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":34904,"t":"code","b":[221,35],"m":"inc","o":"ix","x":[34875,34879]},{"a":34906,"t":"code","b":[221,35],"m":"inc","o":"ix"},{"a":34908,"t":"code","b":[16,216],"m":"djnz","oa":34870,"o":"$8836"},{"a":34910,"t":"code","b":[201],"m":"ret"},{"a":34911,"l":"magic_bolt","c":"MAGIC BOLT (spell $28): the bolt flies (projectile 5) and the creature at the target's height takes a magic blow of strength four times the level plus $19.","t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":34914,"t":"code","b":[205,94,134],"m":"call","oa":34398,"o":"pick_spell_target"},{"a":34917,"t":"code","b":[216],"m":"ret","o":"c"},{"a":34918,"l":"magic_bolt_at","c":"The bolt at the target already in the cursor's square ($D0D3): where the scenarios' spell routines for the computer enter, having chosen the target themselves.","t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":34921,"t":"code","b":[229],"m":"push","o":"hl"},{"a":34922,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":34924,"t":"code","b":[205,247,181],"m":"call","oa":46583,"o":"set_missile"},{"a":34927,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":34930,"t":"code","b":[183],"m":"or","o":"a"},{"a":34931,"t":"code","b":[204,2,174],"m":"call","oa":44546,"o":"z,draw_missile"},{"a":34934,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":34935,"t":"code","b":[205,143,136],"m":"call","oa":34959,"o":"creature_at_height"},{"a":34938,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":34940,"t":"code","b":[200],"m":"ret","o":"z"},{"a":34941,"t":"code","b":[50,43,255],"m":"ld","oa":65323,"o":"($FF2B),a"},{"a":34944,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":34947,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":34948,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":34949,"t":"code","b":[198,25],"m":"add","o":"a,$19"},{"a":34951,"t":"code","b":[50,98,255],"m":"ld","oa":65378,"o":"($FF62),a"},{"a":34954,"t":"code","b":[205,0,134],"m":"call","oa":34304,"o":"$8600"},{"a":34957,"t":"code","b":[183],"m":"or","o":"a"},{"a":34958,"t":"code","b":[201],"m":"ret"},{"a":34959,"l":"creature_at_height","c":"A = the index of the creature at square HL at the height $FF31 asks for ($FF when there is none), IX its entry.","t":"code","b":[205,198,102],"m":"call","oa":26310,"o":"find_creatures_any","x":[34810,34935,35123,35316,35644]},{"a":34962,"t":"code","b":[221,42,175,209],"m":"ld","oa":53679,"o":"ix,($D1AF)"},{"a":34966,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":34969,"t":"code","b":[33,49,255],"m":"ld","o":"hl,$FF31"},{"a":34972,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":34973,"t":"code","b":[58,177,209],"m":"ld","oa":53681,"o":"a,($D1B1)"},{"a":34976,"t":"code","b":[200],"m":"ret","o":"z"},{"a":34977,"t":"code","b":[58,181,209],"m":"ld","oa":53685,"o":"a,($D1B5)"},{"a":34980,"t":"code","b":[221,42,179,209],"m":"ld","oa":53683,"o":"ix,($D1B3)"},{"a":34984,"t":"code","b":[201],"m":"ret"},{"a":34985,"t":"code","b":[55],"m":"scf","x":[34994]},{"a":34986,"t":"code","b":[201],"m":"ret"},{"a":34987,"l":"magic_lightning","c":"MAGIC LIGHTNING (spell $29), refused to the computer when entered here (the scenarios' own routines enter at magic_lightning_at, past the refusal): a square whose terrain has bit 3 of its flags ($D38E) set cannot be the target. The lightning flies (projectile 6) and strikes the target and its eight neighbours ($90AB) with strength four times the level plus $1E: each square's terrain breaks into its remains when a random number below twice the strength reaches its toughness (byte 1 of its record), and a creature at the target height there takes a magic blow. A wizard caught in its own lightning that dies ends its select mode.","t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":34990,"t":"code","b":[58,99,208],"m":"ld","oa":53347,"o":"a,($D063)","x":[35012]},{"a":34993,"t":"code","b":[183],"m":"or","o":"a"},{"a":34994,"t":"code","b":[32,245],"m":"jr","oa":34985,"o":"nz,$88A9"},{"a":34996,"t":"code","b":[205,94,134],"m":"call","oa":34398,"o":"pick_spell_target"},{"a":34999,"t":"code","b":[216],"m":"ret","o":"c"},{"a":35000,"l":"magic_lightning_at","c":"The lightning once the target is picked (by the player, or by a scenario's routine for the computer, which sets the cursor's square and comes in here).","t":"code","b":[205,234,144],"m":"call","oa":37098,"o":"what_is_under_cursor"},{"a":35003,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":35004,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":35006,"t":"code","b":[17,142,211],"m":"ld","o":"de,$D38E"},{"a":35009,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":35010,"t":"code","b":[203,94],"m":"bit","o":"3,(hl)"},{"a":35012,"t":"code","b":[32,232],"m":"jr","oa":34990,"o":"nz,$88AE"},{"a":35014,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":35017,"t":"code","b":[229],"m":"push","o":"hl"},{"a":35018,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":35020,"t":"code","b":[205,247,181],"m":"call","oa":46583,"o":"set_missile"},{"a":35023,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":35026,"t":"code","b":[183],"m":"or","o":"a"},{"a":35027,"t":"code","b":[204,2,174],"m":"call","oa":44546,"o":"z,draw_missile"},{"a":35030,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":35031,"t":"code","b":[34,211,208],"m":"ld","oa":53459,"o":"($D0D3),hl"},{"a":35034,"t":"code","b":[205,126,144],"m":"call","oa":36990,"o":"centre_on"},{"a":35037,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":35040,"t":"code","b":[183],"m":"or","o":"a"},{"a":35041,"t":"code","b":[204,76,169],"m":"call","oa":43340,"o":"z,draw_map"},{"a":35044,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":35047,"t":"code","b":[34,36,255],"m":"ld","oa":65316,"o":"($FF24),hl"},{"a":35050,"t":"code","b":[205,171,144],"m":"call","oa":37035,"o":"list_neighbours"},{"a":35053,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":35056,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":35057,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":35058,"t":"code","b":[198,30],"m":"add","o":"a,$1E"},{"a":35060,"t":"code","b":[50,98,255],"m":"ld","oa":65378,"o":"($FF62),a"},{"a":35063,"t":"code","b":[33,12,255],"m":"ld","o":"hl,$FF0C"},{"a":35066,"t":"code","b":[6,9],"m":"ld","o":"b,$09"},{"a":35068,"t":"code","b":[197],"m":"push","o":"bc","x":[35141]},{"a":35069,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":35070,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35071,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":35072,"t":"code","b":[229],"m":"push","o":"hl"},{"a":35073,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":35074,"t":"code","b":[34,71,91],"m":"ld","oa":23367,"o":"($5B47),hl"},{"a":35077,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":35080,"t":"code","b":[205,39,145],"m":"call","oa":37159,"o":"terrain_record"},{"a":35083,"t":"code","b":[58,98,255],"m":"ld","oa":65378,"o":"a,($FF62)"},{"a":35086,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":35087,"t":"code","b":[205,52,167],"m":"call","oa":42804,"o":"random_below_a"},{"a":35090,"t":"code","b":[253,190,1],"m":"cp","o":"(iy+$01)"},{"a":35093,"t":"code","b":[56,25],"m":"jr","oa":35120,"o":"c,$8930"},{"a":35095,"t":"code","b":[205,252,104],"m":"call","oa":26876,"o":"terrain_remains"},{"a":35098,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":35101,"t":"code","b":[42,59,91],"m":"ld","oa":23355,"o":"hl,($5B3B)"},{"a":35104,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":35105,"t":"code","b":[254,80],"m":"cp","o":"$50"},{"a":35107,"t":"code","b":[48,4],"m":"jr","oa":35113,"o":"nc,$8929"},{"a":35109,"t":"code","b":[58,16,91],"m":"ld","oa":23312,"o":"a,($5B10)"},{"a":35112,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":35113,"t":"code","b":[237,91,71,91],"m":"ld","oa":23367,"o":"de,($5B47)","x":[35107]},{"a":35117,"t":"code","b":[205,129,115],"m":"call","oa":29569,"o":"set_terrain_under"},{"a":35120,"t":"code","b":[42,71,91],"m":"ld","oa":23367,"o":"hl,($5B47)","x":[35093]},{"a":35123,"t":"code","b":[205,143,136],"m":"call","oa":34959,"o":"creature_at_height"},{"a":35126,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":35128,"t":"code","b":[40,7],"m":"jr","oa":35137,"o":"z,$8941"},{"a":35130,"t":"code","b":[50,43,255],"m":"ld","oa":65323,"o":"($FF2B),a"},{"a":35133,"t":"code","b":[205,0,134],"m":"call","oa":34304,"o":"$8600"},{"a":35136,"t":"code","b":[243],"m":"di"},{"a":35137,"t":"code","b":[225],"m":"pop","o":"hl","x":[35128]},{"a":35138,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35139,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35140,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":35141,"t":"code","b":[16,181],"m":"djnz","oa":35068,"o":"$88FC"},{"a":35143,"t":"code","b":[42,80,91],"m":"ld","oa":23376,"o":"hl,($5B50)"},{"a":35146,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35147,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35148,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":35149,"t":"code","b":[183],"m":"or","o":"a"},{"a":35150,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":35151,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":35152,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":35153,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":35154,"t":"code","b":[205,168,120],"m":"call","oa":30888,"o":"reset_ff86"},{"a":35157,"t":"code","b":[175],"m":"xor","o":"a"},{"a":35158,"t":"code","b":[50,96,255],"m":"ld","oa":65376,"o":"($FF60),a"},{"a":35161,"t":"code","b":[201],"m":"ret"},{"a":35162,"l":"subvert_rider","c":"Set by subversion when the target carries a rider, who changes sides too.","t":"byte","b":[0],"x":[35196,35240]},{"a":35163,"l":"subvert_resistance","c":"The magic resistance subversion must beat: the target's, or its rider's if higher.","t":"byte","b":[0],"x":[35180,35218]},{"a":35164,"l":"subversion","c":"SUBVERSION (spell $25): fails on a wizard. The target's magic resistance (byte 6 of its type), or its rider's if higher (a wizard rider makes it fail), against a random number; success puts the target, and its rider, on the caster's side (low three bits of byte 4 of the record). SPELL FAILS otherwise.","t":"code","b":[205,234,137],"m":"call","oa":35306,"o":"pick_creature_target"},{"a":35167,"t":"code","b":[216],"m":"ret","o":"c"},{"a":35168,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":35171,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":35173,"t":"code","b":[56,79],"m":"jr","oa":35254,"o":"c,$89B6"},{"a":35175,"t":"code","b":[253,34,71,91],"m":"ld","oa":23367,"o":"($5B47),iy"},{"a":35179,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":35180,"t":"code","b":[50,91,137],"m":"ld","oa":35163,"o":"(subvert_resistance),a"},{"a":35183,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":35184,"t":"code","b":[205,73,103],"m":"call","oa":26441,"o":"list_carried"},{"a":35187,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":35190,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":35192,"t":"code","b":[56,34],"m":"jr","oa":35228,"o":"c,$899C"},{"a":35194,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":35196,"t":"code","b":[50,90,137],"m":"ld","oa":35162,"o":"(subvert_rider),a"},{"a":35199,"t":"code","b":[58,218,208],"m":"ld","oa":53466,"o":"a,($D0DA)"},{"a":35202,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":35205,"t":"code","b":[229],"m":"push","o":"hl"},{"a":35206,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":35208,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":35211,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":35213,"t":"code","b":[56,39],"m":"jr","oa":35254,"o":"c,$89B6"},{"a":35215,"t":"code","b":[205,202,137],"m":"call","oa":35274,"o":"magic_resistance"},{"a":35218,"t":"code","b":[58,91,137],"m":"ld","oa":35163,"o":"a,(subvert_resistance)"},{"a":35221,"t":"code","b":[184],"m":"cp","o":"b"},{"a":35222,"t":"code","b":[48,4],"m":"jr","oa":35228,"o":"nc,$899C"},{"a":35224,"t":"code","b":[33,91,137],"m":"ld","o":"hl,$895B"},{"a":35227,"t":"code","b":[112],"m":"ld","o":"(hl),b"},{"a":35228,"t":"code","b":[205,55,167],"m":"call","oa":42807,"o":"random_below","x":[35192,35222]},{"a":35231,"t":"code","b":[33,91,137],"m":"ld","o":"hl,$895B"},{"a":35234,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":35235,"t":"code","b":[56,17],"m":"jr","oa":35254,"o":"c,$89B6"},{"a":35237,"t":"code","b":[205,189,137],"m":"call","oa":35261,"o":"take_over"},{"a":35240,"t":"code","b":[58,90,137],"m":"ld","oa":35162,"o":"a,(subvert_rider)"},{"a":35243,"t":"code","b":[183],"m":"or","o":"a"},{"a":35244,"t":"code","b":[200],"m":"ret","o":"z"},{"a":35245,"t":"code","b":[253,42,71,91],"m":"ld","oa":23367,"o":"iy,($5B47)"},{"a":35249,"t":"code","b":[205,189,137],"m":"call","oa":35261,"o":"take_over"},{"a":35252,"t":"code","b":[175],"m":"xor","o":"a"},{"a":35253,"t":"code","b":[201],"m":"ret"},{"a":35254,"t":"code","b":[62,225],"m":"ld","o":"a,$E1","x":[35173,35213,35235,35294]},{"a":35256,"t":"code","b":[205,130,106],"m":"call","oa":27266,"o":"show_message"},{"a":35259,"t":"code","b":[183],"m":"or","o":"a"},{"a":35260,"t":"code","b":[201],"m":"ret"},{"a":35261,"l":"take_over","c":"Gives the creature record at IY to the current player.","t":"code","b":[33,17,91],"m":"ld","o":"hl,$5B11","x":[35237,35249]},{"a":35264,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":35267,"t":"code","b":[230,248],"m":"and","o":"$F8"},{"a":35269,"t":"code","b":[182],"m":"or","o":"(hl)"},{"a":35270,"t":"code","b":[253,119,4],"m":"ld","o":"(iy+$04),a"},{"a":35273,"t":"code","b":[201],"m":"ret"},{"a":35274,"l":"magic_resistance","c":"B = the magic resistance of the creature at IX (byte 6 of its type), IY its record.","t":"code","b":[205,167,181],"m":"call","oa":46503,"o":"type_record_of","x":[35215,35335,35412]},{"a":35277,"t":"code","b":[253,70,6],"m":"ld","o":"b,(iy+$06)"},{"a":35280,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":35283,"t":"code","b":[201],"m":"ret"},{"a":35284,"l":"curse","c":"CURSE (spell $26): a random number plus 10 against the target's magic resistance; success gives it the worst fatal wound (all three top bits of byte 4). SPELL FAILS otherwise.","t":"code","b":[205,234,137],"m":"call","oa":35306,"o":"pick_creature_target"},{"a":35287,"t":"code","b":[216],"m":"ret","o":"c"},{"a":35288,"t":"code","b":[205,55,167],"m":"call","oa":42807,"o":"random_below"},{"a":35291,"t":"code","b":[198,10],"m":"add","o":"a,$0A"},{"a":35293,"t":"code","b":[184],"m":"cp","o":"b"},{"a":35294,"t":"code","b":[218,182,137],"m":"jp","oa":35254,"o":"c,$89B6"},{"a":35297,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":35300,"t":"code","b":[246,224],"m":"or","o":"$E0"},{"a":35302,"t":"code","b":[253,119,4],"m":"ld","o":"(iy+$04),a"},{"a":35305,"t":"code","b":[201],"m":"ret"},{"a":35306,"l":"pick_creature_target","c":"The start of the spells cast at one creature: the target is picked and the bolt drawn; with no creature at the target height the spell is spent and does nothing (its caller is left, carry clear). Sets $5B22 to eight times the level plus $37 and returns the target's index in C, its resistance in B.","t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen","x":[35164,35284,35347]},{"a":35309,"t":"code","b":[205,94,134],"m":"call","oa":34398,"o":"pick_spell_target"},{"a":35312,"t":"code","b":[216],"m":"ret","o":"c"},{"a":35313,"t":"code","b":[205,140,134],"m":"call","oa":34444,"o":"draw_spell_bolt"},{"a":35316,"t":"code","b":[205,143,136],"m":"call","oa":34959,"o":"creature_at_height"},{"a":35319,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":35321,"t":"code","b":[40,17],"m":"jr","oa":35340,"o":"z,$8A0C"},{"a":35323,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":35324,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":35327,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":35328,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":35329,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":35330,"t":"code","b":[198,55],"m":"add","o":"a,$37"},{"a":35332,"t":"code","b":[50,34,91],"m":"ld","oa":23330,"o":"($5B22),a"},{"a":35335,"t":"code","b":[205,202,137],"m":"call","oa":35274,"o":"magic_resistance"},{"a":35338,"t":"code","b":[175],"m":"xor","o":"a"},{"a":35339,"t":"code","b":[201],"m":"ret"},{"a":35340,"t":"code","b":[175],"m":"xor","o":"a","x":[35321]},{"a":35341,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":35342,"t":"code","b":[201],"m":"ret"},{"a":35343,"l":"attack_radius","c":"Magic attack's reach: twice the level plus 1.","t":"byte","b":[0],"x":[35362]},{"a":35344,"l":"attack_type","c":"The creature type magic attack strikes.","t":"byte","b":[0],"x":[35354]},{"a":35345,"l":"attack_centre","c":"The square magic attack was cast at.","t":"word","b":[0,0],"d":[0],"x":[35368,35400]},{"a":35347,"l":"magic_attack","c":"MAGIC ATTACK (spell $27): every creature of the target's type within its reach of the target square that fails a magic resistance check is killed (255 points of damage), each shown with the map redrawn.","t":"code","b":[205,234,137],"m":"call","oa":35306,"o":"pick_creature_target"},{"a":35350,"t":"code","b":[216],"m":"ret","o":"c"},{"a":35351,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":35354,"t":"code","b":[50,16,138],"m":"ld","oa":35344,"o":"(attack_type),a"},{"a":35357,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":35360,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":35361,"t":"code","b":[60],"m":"inc","o":"a"},{"a":35362,"t":"code","b":[50,15,138],"m":"ld","oa":35343,"o":"(attack_radius),a"},{"a":35365,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":35368,"t":"code","b":[34,17,138],"m":"ld","oa":35345,"o":"(attack_centre),hl"},{"a":35371,"t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A"},{"a":35375,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":35377,"t":"code","b":[221,229],"m":"push","o":"ix","x":[35462]},{"a":35379,"t":"code","b":[197],"m":"push","o":"bc"},{"a":35380,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":35383,"t":"code","b":[33,16,138],"m":"ld","o":"hl,$8A10"},{"a":35386,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":35387,"t":"code","b":[32,65],"m":"jr","oa":35454,"o":"nz,$8A7E"},{"a":35389,"t":"code","b":[205,162,120],"m":"call","oa":30882,"o":"entry_column"},{"a":35392,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":35393,"t":"code","b":[221,94,0],"m":"ld","o":"e,(ix+$00)"},{"a":35396,"t":"code","b":[237,83,148,255],"m":"ld","oa":65428,"o":"($FF94),de"},{"a":35400,"t":"code","b":[42,17,138],"m":"ld","oa":35345,"o":"hl,(attack_centre)"},{"a":35403,"t":"code","b":[205,77,114],"m":"call","oa":29261,"o":"distance"},{"a":35406,"t":"code","b":[33,15,138],"m":"ld","o":"hl,$8A0F"},{"a":35409,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":35410,"t":"code","b":[48,42],"m":"jr","oa":35454,"o":"nc,$8A7E"},{"a":35412,"t":"code","b":[205,202,137],"m":"call","oa":35274,"o":"magic_resistance"},{"a":35415,"t":"code","b":[205,55,167],"m":"call","oa":42807,"o":"random_below"},{"a":35418,"t":"code","b":[184],"m":"cp","o":"b"},{"a":35419,"t":"code","b":[56,33],"m":"jr","oa":35454,"o":"c,$8A7E"},{"a":35421,"t":"code","b":[42,148,255],"m":"ld","oa":65428,"o":"hl,($FF94)"},{"a":35424,"t":"code","b":[243],"m":"di"},{"a":35425,"t":"code","b":[205,126,144],"m":"call","oa":36990,"o":"centre_on"},{"a":35428,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":35431,"t":"code","b":[237,91,148,255],"m":"ld","oa":65428,"o":"de,($FF94)"},{"a":35435,"t":"code","b":[205,194,174],"m":"call","oa":44738,"o":"draw_hit"},{"a":35438,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":35439,"t":"code","b":[62,145],"m":"ld","o":"a,$91"},{"a":35441,"t":"code","b":[144],"m":"sub","o":"b"},{"a":35442,"t":"code","b":[197],"m":"push","o":"bc"},{"a":35443,"t":"code","b":[50,43,255],"m":"ld","oa":65323,"o":"($FF2B),a"},{"a":35446,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":35448,"t":"code","b":[205,214,120],"m":"call","oa":30934,"o":"damage_and_rider"},{"a":35451,"t":"code","b":[205,139,121],"m":"call","oa":31115,"o":"show_hit"},{"a":35454,"t":"code","b":[193],"m":"pop","o":"bc","x":[35387,35410,35419]},{"a":35455,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":35457,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":35460,"t":"code","b":[221,25],"m":"add","o":"ix,de"},{"a":35462,"t":"code","b":[16,169],"m":"djnz","oa":35377,"o":"$8A31"},{"a":35464,"t":"code","b":[201],"m":"ret"},{"a":35465,"l":"magic_eye_on","c":"Set while magic eye's sight is being worked out, read by the line of sight ($B1A6, $B2F3).","t":"byte","b":[0],"x":[35537,35544,45811]},{"a":35466,"l":"magic_eye","c":"MAGIC EYE (spell $2B): the wizard picks a square within three times the level plus 10, and the sight from there, at the target height ($FF31 into $5B2F; on the ground with the terrain flag at $D38E in $FF4B), is worked out as if a creature stood there ($B1A6), which shows what it sees.","t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":35469,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":35471,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":35474,"t":"code","b":[251],"m":"ei"},{"a":35475,"t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre"},{"a":35478,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":35481,"t":"code","b":[33,11,255],"m":"ld","o":"hl,$FF0B"},{"a":35484,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":35487,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":35488,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":35489,"t":"code","b":[198,10],"m":"add","o":"a,$0A"},{"a":35491,"t":"code","b":[205,2,114],"m":"call","oa":29186,"o":"pick_target"},{"a":35494,"t":"code","b":[205,184,120],"m":"call","oa":30904,"o":"cursor_on_selected"},{"a":35497,"t":"code","b":[55],"m":"scf"},{"a":35498,"t":"code","b":[200],"m":"ret","o":"z"},{"a":35499,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":35502,"t":"code","b":[245],"m":"push","o":"af"},{"a":35503,"t":"code","b":[175],"m":"xor","o":"a"},{"a":35504,"t":"code","b":[50,75,255],"m":"ld","oa":65355,"o":"($FF4B),a"},{"a":35507,"t":"code","b":[58,49,255],"m":"ld","oa":65329,"o":"a,($FF31)"},{"a":35510,"t":"code","b":[50,47,91],"m":"ld","oa":23343,"o":"($5B2F),a"},{"a":35513,"t":"code","b":[60],"m":"inc","o":"a"},{"a":35514,"t":"code","b":[32,16],"m":"jr","oa":35532,"o":"nz,$8ACC"},{"a":35516,"t":"code","b":[205,234,144],"m":"call","oa":37098,"o":"what_is_under_cursor"},{"a":35519,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":35520,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":35522,"t":"code","b":[17,142,211],"m":"ld","o":"de,$D38E"},{"a":35525,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":35526,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":35527,"t":"code","b":[230,4],"m":"and","o":"$04"},{"a":35529,"t":"code","b":[50,75,255],"m":"ld","oa":65355,"o":"($FF4B),a"},{"a":35532,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)","x":[35514]},{"a":35535,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":35537,"t":"code","b":[50,137,138],"m":"ld","oa":35465,"o":"(magic_eye_on),a"},{"a":35540,"t":"code","b":[205,166,177],"m":"call","oa":45478,"o":"work_out_sight"},{"a":35543,"t":"code","b":[175],"m":"xor","o":"a"},{"a":35544,"t":"code","b":[50,137,138],"m":"ld","oa":35465,"o":"(magic_eye_on),a"},{"a":35547,"t":"code","b":[241],"m":"pop","o":"af"},{"a":35548,"t":"code","b":[50,47,91],"m":"ld","oa":23343,"o":"($5B2F),a"},{"a":35551,"t":"code","b":[183],"m":"or","o":"a"},{"a":35552,"t":"code","b":[201],"m":"ret"},{"a":35553,"l":"teleport","c":"TELEPORT (spell $2A): into the air only under a flying potion. The wizard picks a square within twice the level plus $1E; the further it is beyond twice the level, the more the landing square is moved at random ($8BB1, by $5B22).","t":"code","b":[243],"m":"di"},{"a":35554,"t":"code","b":[58,49,255],"m":"ld","oa":65329,"o":"a,($FF31)"},{"a":35557,"t":"code","b":[60],"m":"inc","o":"a"},{"a":35558,"t":"code","b":[40,9],"m":"jr","oa":35569,"o":"z,$8AF1"},{"a":35560,"t":"code","b":[205,206,120],"m":"call","oa":30926,"o":"selected_potion"},{"a":35563,"t":"code","b":[230,224],"m":"and","o":"$E0"},{"a":35565,"t":"code","b":[254,160],"m":"cp","o":"$A0"},{"a":35567,"t":"code","b":[55],"m":"scf"},{"a":35568,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":35569,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen","x":[35558]},{"a":35572,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":35574,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":35577,"t":"code","b":[251],"m":"ei"},{"a":35578,"t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre"},{"a":35581,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":35584,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":35587,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":35588,"t":"code","b":[198,30],"m":"add","o":"a,$1E"},{"a":35590,"t":"code","b":[205,2,114],"m":"call","oa":29186,"o":"pick_target"},{"a":35593,"t":"code","b":[243],"m":"di"},{"a":35594,"t":"code","b":[205,184,120],"m":"call","oa":30904,"o":"cursor_on_selected"},{"a":35597,"t":"code","b":[55],"m":"scf"},{"a":35598,"t":"code","b":[200],"m":"ret","o":"z"},{"a":35599,"t":"code","b":[237,91,211,208],"m":"ld","oa":53459,"o":"de,($D0D3)"},{"a":35603,"t":"code","b":[205,74,114],"m":"call","oa":29258,"o":"distance_from_selected"},{"a":35606,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":35607,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":35610,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":35611,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":35612,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":35613,"t":"code","b":[144],"m":"sub","o":"b"},{"a":35614,"t":"code","b":[56,25],"m":"jr","oa":35641,"o":"c,$8B39"},{"a":35616,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35618,"t":"code","b":[60],"m":"inc","o":"a"},{"a":35619,"t":"code","b":[50,34,91],"m":"ld","oa":23330,"o":"($5B22),a"},{"a":35622,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35624,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":35625,"t":"code","b":[205,55,167],"m":"call","oa":42807,"o":"random_below"},{"a":35628,"t":"code","b":[33,211,208],"m":"ld","o":"hl,$D0D3"},{"a":35631,"t":"code","b":[205,177,139],"m":"call","oa":35761,"o":"jitter_coordinate"},{"a":35634,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35635,"t":"code","b":[205,55,167],"m":"call","oa":42807,"o":"random_below"},{"a":35638,"t":"code","b":[205,177,139],"m":"call","oa":35761,"o":"jitter_coordinate"},{"a":35641,"c":"The landing square must be free at the target height: in the air its terrain must not have bit 3 of byte 4 set, on the ground it must be passable (byte 0 of its record not $FF). Otherwise SPELL FAILS, and the spell is spent.","t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)","x":[35614]},{"a":35644,"t":"code","b":[205,143,136],"m":"call","oa":34959,"o":"creature_at_height"},{"a":35647,"t":"code","b":[60],"m":"inc","o":"a"},{"a":35648,"t":"code","b":[32,27],"m":"jr","oa":35677,"o":"nz,$8B5D"},{"a":35650,"t":"code","b":[205,234,144],"m":"call","oa":37098,"o":"what_is_under_cursor"},{"a":35653,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":35654,"t":"code","b":[205,39,145],"m":"call","oa":37159,"o":"terrain_record"},{"a":35657,"t":"code","b":[58,49,255],"m":"ld","oa":65329,"o":"a,($FF31)"},{"a":35660,"t":"code","b":[60],"m":"inc","o":"a"},{"a":35661,"t":"code","b":[40,8],"m":"jr","oa":35671,"o":"z,$8B57"},{"a":35663,"t":"code","b":[253,203,4,94],"m":"bit","o":"3,(iy+$04)"},{"a":35667,"t":"code","b":[40,20],"m":"jr","oa":35689,"o":"z,$8B69"},{"a":35669,"t":"code","b":[24,6],"m":"jr","oa":35677,"o":"$8B5D"},{"a":35671,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)","x":[35661]},{"a":35674,"t":"code","b":[60],"m":"inc","o":"a"},{"a":35675,"t":"code","b":[32,12],"m":"jr","oa":35689,"o":"nz,$8B69"},{"a":35677,"t":"code","b":[33,223,208],"m":"ld","o":"hl,$D0DF","x":[35648,35669]},{"a":35680,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":35682,"t":"code","b":[62,225],"m":"ld","o":"a,$E1"},{"a":35684,"t":"code","b":[205,130,106],"m":"call","oa":27266,"o":"show_message"},{"a":35687,"t":"code","b":[175],"m":"xor","o":"a"},{"a":35688,"t":"code","b":[201],"m":"ret"},{"a":35689,"c":"The wizard moves: its old square shows what it left ($FF90), it takes the new square, height and terrain, the new square shows it, and its action points are set to 8, which paying for the spell takes back to 0.","t":"code","b":[205,103,170],"m":"call","oa":43623,"o":"map_address_selected","x":[35667,35675]},{"a":35692,"t":"code","b":[58,144,255],"m":"ld","oa":65424,"o":"a,($FF90)"},{"a":35695,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":35696,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":35697,"t":"code","b":[50,145,255],"m":"ld","oa":65425,"o":"($FF91),a"},{"a":35700,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":35703,"t":"code","b":[34,85,91],"m":"ld","oa":23381,"o":"($5B55),hl"},{"a":35706,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":35710,"t":"code","b":[221,119,3],"m":"ld","o":"(ix+$03),a"},{"a":35713,"t":"code","b":[58,85,91],"m":"ld","oa":23381,"o":"a,($5B55)"},{"a":35716,"t":"code","b":[221,119,0],"m":"ld","o":"(ix+$00),a"},{"a":35719,"t":"code","b":[58,86,91],"m":"ld","oa":23382,"o":"a,($5B56)"},{"a":35722,"t":"code","b":[221,119,1],"m":"ld","o":"(ix+$01),a"},{"a":35725,"t":"code","b":[58,49,255],"m":"ld","oa":65329,"o":"a,($FF31)"},{"a":35728,"t":"code","b":[221,119,4],"m":"ld","o":"(ix+$04),a"},{"a":35731,"t":"code","b":[50,47,91],"m":"ld","oa":23343,"o":"($5B2F),a"},{"a":35734,"t":"code","b":[175],"m":"xor","o":"a"},{"a":35735,"t":"code","b":[50,67,91],"m":"ld","oa":23363,"o":"($5B43),a"},{"a":35738,"t":"code","b":[205,97,181],"m":"call","oa":46433,"o":"move_carried"},{"a":35741,"t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":35744,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":35747,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":35748,"t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre"},{"a":35751,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":35754,"t":"code","b":[42,80,91],"m":"ld","oa":23376,"o":"hl,($5B50)"},{"a":35757,"t":"code","b":[54,8],"m":"ld","o":"(hl),$08"},{"a":35759,"t":"code","b":[183],"m":"or","o":"a"},{"a":35760,"t":"code","b":[201],"m":"ret"},{"a":35761,"l":"jitter_coordinate","c":"Adds A to the coordinate at HL and takes B away, wrapping within 0 to 35.","t":"code","b":[134],"m":"add","o":"a,(hl)","x":[35631,35638]},{"a":35762,"t":"code","b":[144],"m":"sub","o":"b"},{"a":35763,"t":"code","b":[48,4],"m":"jr","oa":35769,"o":"nc,$8BB9"},{"a":35765,"t":"code","b":[198,36],"m":"add","o":"a,$24"},{"a":35767,"t":"code","b":[24,6],"m":"jr","oa":35775,"o":"$8BBF"},{"a":35769,"t":"code","b":[254,36],"m":"cp","o":"$24","x":[35763]},{"a":35771,"t":"code","b":[56,2],"m":"jr","oa":35775,"o":"c,$8BBF"},{"a":35773,"t":"code","b":[214,36],"m":"sub","o":"$24"},{"a":35775,"t":"code","b":[119],"m":"ld","o":"(hl),a","x":[35767,35771]},{"a":35776,"t":"code","b":[201],"m":"ret"},{"a":35777,"l":"enchantments_wear_off","c":"Once a game turn: every magic weapon ($60-$66) counts down byte 5 and turns back into its ordinary weapon (type - 7) when it reaches 0.","t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A","x":[24915]},{"a":35781,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":35784,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":35786,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)","x":[35817]},{"a":35789,"t":"code","b":[254,96],"m":"cp","o":"$60"},{"a":35791,"t":"code","b":[56,22],"m":"jr","oa":35815,"o":"c,$8BE7"},{"a":35793,"t":"code","b":[254,103],"m":"cp","o":"$67"},{"a":35795,"t":"code","b":[48,18],"m":"jr","oa":35815,"o":"nc,$8BE7"},{"a":35797,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":35800,"t":"code","b":[61],"m":"dec","o":"a"},{"a":35801,"t":"code","b":[221,119,5],"m":"ld","o":"(ix+$05),a"},{"a":35804,"t":"code","b":[183],"m":"or","o":"a"},{"a":35805,"t":"code","b":[32,8],"m":"jr","oa":35815,"o":"nz,$8BE7"},{"a":35807,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":35810,"t":"code","b":[214,7],"m":"sub","o":"$07"},{"a":35812,"t":"code","b":[221,119,2],"m":"ld","o":"(ix+$02),a"},{"a":35815,"t":"code","b":[221,25],"m":"add","o":"ix,de","x":[35791,35795,35805]},{"a":35817,"t":"code","b":[16,223],"m":"djnz","oa":35786,"o":"$8BCA"},{"a":35819,"t":"code","b":[201],"m":"ret"},{"a":35820,"l":"magic_shield","c":"MAGIC SHIELD (spell $2C): sets the wizard's shield ($D054, by wizard) to the level plus 1, which start_of_turn counts down; the wizard's square shows the sparkle on a human's turn.","t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":35823,"t":"code","b":[214,140],"m":"sub","o":"$8C"},{"a":35825,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":35826,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":35828,"t":"code","b":[33,84,208],"m":"ld","o":"hl,$D054"},{"a":35831,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":35832,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":35835,"t":"code","b":[60],"m":"inc","o":"a"},{"a":35836,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":35837,"t":"code","b":[50,37,91],"m":"ld","oa":23333,"o":"($5B25),a"},{"a":35840,"t":"code","b":[58,99,208],"m":"ld","oa":53347,"o":"a,($D063)"},{"a":35843,"t":"code","b":[183],"m":"or","o":"a"},{"a":35844,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":35845,"t":"code","b":[205,103,170],"m":"call","oa":43623,"o":"map_address_selected"},{"a":35848,"t":"code","b":[54,79],"m":"ld","o":"(hl),$4F"},{"a":35850,"t":"code","b":[183],"m":"or","o":"a"},{"a":35851,"t":"code","b":[201],"m":"ret"},{"a":35852,"l":"wizard_gone","c":"A wizard has died or escaped ($FF05 its type): the screen shows its square, the death animation plays (seven frames, $8C6A) with a sound, and the next show_hit is skipped. One more wizard is out of the game ($D069); when all are, or in a game against the computer when the human's wizard ($8C) is gone (the computer's points then become its score, $D05D), the game ends (game_over).","t":"code","b":[243],"m":"di","x":[30838,32861]},{"a":35853,"t":"code","b":[58,187,209],"m":"ld","oa":53691,"o":"a,($D1BB)"},{"a":35856,"t":"code","b":[183],"m":"or","o":"a"},{"a":35857,"t":"code","b":[196,212,99],"m":"call","oa":25556,"o":"nz,clear_screen"},{"a":35860,"t":"code","b":[205,98,140],"m":"call","oa":35938,"o":"entry_square"},{"a":35863,"t":"code","b":[205,126,144],"m":"call","oa":36990,"o":"centre_on"},{"a":35866,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":35869,"t":"code","b":[175],"m":"xor","o":"a"},{"a":35870,"t":"code","b":[50,7,255],"m":"ld","oa":65287,"o":"($FF07),a"},{"a":35873,"t":"code","b":[62,13],"m":"ld","o":"a,$0D"},{"a":35875,"t":"code","b":[50,249,121],"m":"ld","oa":31225,"o":"(skip_hit),a"},{"a":35878,"t":"code","b":[205,58,200],"m":"call","oa":51258,"o":"set_sound"},{"a":35881,"t":"code","b":[6,7],"m":"ld","o":"b,$07"},{"a":35883,"t":"code","b":[197],"m":"push","o":"bc","x":[35892]},{"a":35884,"t":"code","b":[205,106,140],"m":"call","oa":35946,"o":"death_animation_frame"},{"a":35887,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":35888,"t":"code","b":[33,7,255],"m":"ld","o":"hl,$FF07"},{"a":35891,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":35892,"t":"code","b":[16,245],"m":"djnz","oa":35883,"o":"$8C2B"},{"a":35894,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":35897,"t":"code","b":[58,187,209],"m":"ld","oa":53691,"o":"a,($D1BB)"},{"a":35900,"t":"code","b":[183],"m":"or","o":"a"},{"a":35901,"t":"code","b":[196,119,135],"m":"call","oa":34679,"o":"nz,draw_turn_panel"},{"a":35904,"t":"code","b":[58,105,208],"m":"ld","oa":53353,"o":"a,($D069)"},{"a":35907,"t":"code","b":[60],"m":"inc","o":"a"},{"a":35908,"t":"code","b":[50,105,208],"m":"ld","oa":53353,"o":"($D069),a"},{"a":35911,"t":"code","b":[33,103,208],"m":"ld","o":"hl,$D067"},{"a":35914,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":35915,"t":"code","b":[202,211,141],"m":"jp","oa":36307,"o":"z,game_over"},{"a":35918,"t":"code","b":[58,100,208],"m":"ld","oa":53348,"o":"a,($D064)"},{"a":35921,"t":"code","b":[183],"m":"or","o":"a"},{"a":35922,"t":"code","b":[200],"m":"ret","o":"z"},{"a":35923,"t":"code","b":[58,5,255],"m":"ld","oa":65285,"o":"a,($FF05)"},{"a":35926,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":35928,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":35929,"t":"code","b":[58,89,208],"m":"ld","oa":53337,"o":"a,($D059)"},{"a":35932,"t":"code","b":[50,93,208],"m":"ld","oa":53341,"o":"($D05D),a"},{"a":35935,"t":"code","b":[195,211,141],"m":"jp","oa":36307,"o":"game_over"},{"a":35938,"l":"entry_square","c":"HL = the square of the entry at IX: row in L, column in H.","t":"code","b":[221,110,0],"m":"ld","o":"l,(ix+$00)","x":[30684,31097,31132,35860,40190]},{"a":35941,"t":"code","b":[205,162,120],"m":"call","oa":30882,"o":"entry_column"},{"a":35944,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":35945,"t":"code","b":[201],"m":"ret"},{"a":35946,"l":"death_animation_frame","c":"One frame of the death animation: the figure $FF05 drawn in colour set $FF07 at the eight points round the middle of the map window, in ten steps one character further out ($FF06) each time, with a step of the sound after each.","t":"code","b":[6,10],"m":"ld","o":"b,$0A","x":[35884]},{"a":35948,"t":"code","b":[175],"m":"xor","o":"a"},{"a":35949,"t":"code","b":[50,6,255],"m":"ld","oa":65286,"o":"($FF06),a"},{"a":35952,"t":"code","b":[197],"m":"push","o":"bc","x":[36044]},{"a":35953,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":35954,"t":"code","b":[61],"m":"dec","o":"a"},{"a":35955,"t":"code","b":[50,213,208],"m":"ld","oa":53461,"o":"($D0D5),a"},{"a":35958,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":35960,"t":"code","b":[50,214,208],"m":"ld","oa":53462,"o":"($D0D6),a"},{"a":35963,"t":"code","b":[205,207,140],"m":"call","oa":36047,"o":"draw_death_figure"},{"a":35966,"t":"code","b":[58,6,255],"m":"ld","oa":65286,"o":"a,($FF06)"},{"a":35969,"t":"code","b":[198,9],"m":"add","o":"a,$09"},{"a":35971,"t":"code","b":[50,214,208],"m":"ld","oa":53462,"o":"($D0D6),a"},{"a":35974,"t":"code","b":[205,207,140],"m":"call","oa":36047,"o":"draw_death_figure"},{"a":35977,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":35979,"t":"code","b":[50,213,208],"m":"ld","oa":53461,"o":"($D0D5),a"},{"a":35982,"t":"code","b":[205,207,140],"m":"call","oa":36047,"o":"draw_death_figure"},{"a":35985,"t":"code","b":[58,6,255],"m":"ld","oa":65286,"o":"a,($FF06)"},{"a":35988,"t":"code","b":[198,9],"m":"add","o":"a,$09"},{"a":35990,"t":"code","b":[50,213,208],"m":"ld","oa":53461,"o":"($D0D5),a"},{"a":35993,"t":"code","b":[205,207,140],"m":"call","oa":36047,"o":"draw_death_figure"},{"a":35996,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":35998,"t":"code","b":[50,214,208],"m":"ld","oa":53462,"o":"($D0D6),a"},{"a":36001,"t":"code","b":[205,207,140],"m":"call","oa":36047,"o":"draw_death_figure"},{"a":36004,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":36006,"t":"code","b":[33,6,255],"m":"ld","o":"hl,$FF06"},{"a":36009,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":36010,"t":"code","b":[50,214,208],"m":"ld","oa":53462,"o":"($D0D6),a"},{"a":36013,"t":"code","b":[205,207,140],"m":"call","oa":36047,"o":"draw_death_figure"},{"a":36016,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":36018,"t":"code","b":[50,213,208],"m":"ld","oa":53461,"o":"($D0D5),a"},{"a":36021,"t":"code","b":[205,207,140],"m":"call","oa":36047,"o":"draw_death_figure"},{"a":36024,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":36026,"t":"code","b":[33,6,255],"m":"ld","o":"hl,$FF06"},{"a":36029,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":36030,"t":"code","b":[50,213,208],"m":"ld","oa":53461,"o":"($D0D5),a"},{"a":36033,"t":"code","b":[205,207,140],"m":"call","oa":36047,"o":"draw_death_figure"},{"a":36036,"t":"code","b":[205,86,200],"m":"call","oa":51286,"o":"play_sound"},{"a":36039,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":36040,"t":"code","b":[33,6,255],"m":"ld","o":"hl,$FF06"},{"a":36043,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":36044,"t":"code","b":[16,162],"m":"djnz","oa":35952,"o":"$8C70"},{"a":36046,"t":"code","b":[201],"m":"ret"},{"a":36047,"l":"draw_death_figure","c":"Draws frame $FF07 of figure $FF05 at the screen position $D0D5, $D0D6 ($A84A, $A75E).","t":"code","b":[58,5,255],"m":"ld","oa":65285,"o":"a,($FF05)","x":[35963,35974,35982,35993,36001,36013,36021,36033]},{"a":36050,"t":"code","b":[33,7,255],"m":"ld","o":"hl,$FF07"},{"a":36053,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":36054,"t":"code","b":[197],"m":"push","o":"bc"},{"a":36055,"t":"code","b":[205,74,168],"m":"call","oa":43082,"o":"thing_graphic"},{"a":36058,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":36059,"t":"code","b":[205,94,167],"m":"call","oa":42846,"o":"draw_block_at"},{"a":36062,"t":"code","b":[201],"m":"ret"},{"a":36063,"l":"copy_wizard_name","c":"Copies the current player's wizard name (the ten bytes from byte 59 of its record) into the scenario's table of names at ($D03A), eleven bytes a player.","t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)","x":[36138,52175]},{"a":36066,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":36067,"t":"code","b":[42,58,208],"m":"ld","oa":53306,"o":"hl,($D03A)"},{"a":36070,"t":"code","b":[17,11,0],"m":"ld","o":"de,$000B"},{"a":36073,"t":"code","b":[25],"m":"add","o":"hl,de","x":[36074]},{"a":36074,"t":"code","b":[16,253],"m":"djnz","oa":36073,"o":"$8CE9"},{"a":36076,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":36077,"t":"code","b":[42,4,91],"m":"ld","oa":23300,"o":"hl,($5B04)"},{"a":36080,"t":"code","b":[1,59,0],"m":"ld","o":"bc,$003B"},{"a":36083,"t":"code","b":[9],"m":"add","o":"hl,bc"},{"a":36084,"t":"code","b":[1,10,0],"m":"ld","o":"bc,$000A"},{"a":36087,"t":"code","b":[237,176],"m":"ldir"},{"a":36089,"t":"code","b":[201],"m":"ret"},{"a":36090,"l":"set_up_game","c":"Sets up a new game: the portal's turn ($D062) is $D040 plus a random number below $D041; $5B22 = $D043. Each player's wizard (type $8C up) is made on a starting square from the scenario's list at $D072 (its own square in a one-player scenario, otherwise a random one not yet taken), with its scenario data copied in and its mana set from its record ($D0E0). The turn number becomes 1. In a game against the computer the records of wizards 3 and 4 are cleared and the computer's wizard (entry 1, type $8D) goes on the computer's list ($A4FA).","t":"code","b":[62,254],"m":"ld","o":"a,$FE","x":[24868]},{"a":36092,"t":"code","b":[50,131,255],"m":"ld","oa":65411,"o":"($FF83),a"},{"a":36095,"t":"code","b":[58,65,208],"m":"ld","oa":53313,"o":"a,($D041)"},{"a":36098,"t":"code","b":[205,52,167],"m":"call","oa":42804,"o":"random_below_a"},{"a":36101,"t":"code","b":[33,64,208],"m":"ld","o":"hl,$D040"},{"a":36104,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":36105,"t":"code","b":[50,98,208],"m":"ld","oa":53346,"o":"($D062),a"},{"a":36108,"t":"code","b":[58,67,208],"m":"ld","oa":53315,"o":"a,($D043)"},{"a":36111,"t":"code","b":[50,34,91],"m":"ld","oa":23330,"o":"($5B22),a"},{"a":36114,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":36116,"t":"code","b":[50,17,91],"m":"ld","oa":23313,"o":"($5B11),a"},{"a":36119,"t":"code","b":[62,140],"m":"ld","o":"a,$8C"},{"a":36121,"t":"code","b":[50,37,91],"m":"ld","oa":23333,"o":"($5B25),a"},{"a":36124,"t":"code","b":[58,103,208],"m":"ld","oa":53351,"o":"a,($D067)"},{"a":36127,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":36128,"t":"code","b":[197],"m":"push","o":"bc","x":[36210]},{"a":36129,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":36132,"t":"code","b":[205,140,128],"m":"call","oa":32908,"o":"wizard_record"},{"a":36135,"t":"code","b":[34,4,91],"m":"ld","oa":23300,"o":"($5B04),hl"},{"a":36138,"t":"code","b":[205,223,140],"m":"call","oa":36063,"o":"copy_wizard_name"},{"a":36141,"t":"code","b":[58,72,208],"m":"ld","oa":53320,"o":"a,($D048)","x":[36166]},{"a":36144,"t":"code","b":[183],"m":"or","o":"a"},{"a":36145,"t":"code","b":[40,6],"m":"jr","oa":36153,"o":"z,$8D39"},{"a":36147,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":36150,"t":"code","b":[61],"m":"dec","o":"a"},{"a":36151,"t":"code","b":[24,3],"m":"jr","oa":36156,"o":"$8D3C"},{"a":36153,"t":"code","b":[205,55,167],"m":"call","oa":42807,"o":"random_below","x":[36145]},{"a":36156,"t":"code","b":[135],"m":"add","o":"a,a","x":[36151]},{"a":36157,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":36158,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":36160,"t":"code","b":[33,114,208],"m":"ld","o":"hl,$D072"},{"a":36163,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":36164,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":36165,"t":"code","b":[60],"m":"inc","o":"a"},{"a":36166,"t":"code","b":[40,229],"m":"jr","oa":36141,"o":"z,$8D2D"},{"a":36168,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":36169,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":36171,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":36172,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":36173,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":36174,"t":"code","b":[34,35,91],"m":"ld","oa":23331,"o":"($5B23),hl"},{"a":36177,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":36180,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":36183,"t":"code","b":[205,219,131],"m":"call","oa":33755,"o":"create_creature_any"},{"a":36186,"t":"code","b":[42,4,91],"m":"ld","oa":23300,"o":"hl,($5B04)"},{"a":36189,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":36190,"t":"code","b":[237,91,17,91],"m":"ld","oa":23313,"o":"de,($5B11)"},{"a":36194,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":36196,"t":"code","b":[33,223,208],"m":"ld","o":"hl,$D0DF"},{"a":36199,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":36200,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":36201,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":36202,"t":"code","b":[33,17,91],"m":"ld","o":"hl,$5B11"},{"a":36205,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":36206,"t":"code","b":[33,37,91],"m":"ld","o":"hl,$5B25"},{"a":36209,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":36210,"t":"code","b":[16,172],"m":"djnz","oa":36128,"o":"$8D20"},{"a":36212,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":36214,"t":"code","b":[50,101,208],"m":"ld","oa":53349,"o":"($D065),a"},{"a":36217,"t":"code","b":[58,100,208],"m":"ld","oa":53348,"o":"a,($D064)"},{"a":36220,"t":"code","b":[183],"m":"or","o":"a"},{"a":36221,"t":"code","b":[200],"m":"ret","o":"z"},{"a":36222,"t":"code","b":[33,118,207],"m":"ld","o":"hl,$CF76"},{"a":36225,"t":"code","b":[17,119,207],"m":"ld","o":"de,$CF77"},{"a":36228,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":36230,"t":"code","b":[1,139,0],"m":"ld","o":"bc,$008B"},{"a":36233,"t":"code","b":[237,176],"m":"ldir"},{"a":36235,"t":"code","b":[221,33,96,91],"m":"ld","o":"ix,$5B60"},{"a":36239,"t":"code","b":[62,141],"m":"ld","o":"a,$8D"},{"a":36241,"t":"code","b":[205,170,181],"m":"call","oa":46506,"o":"type_record"},{"a":36244,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":36246,"t":"code","b":[50,31,91],"m":"ld","oa":23327,"o":"($5B1F),a"},{"a":36249,"t":"code","b":[205,250,164],"m":"call","oa":42234,"o":"add_to_wizard_list"},{"a":36252,"t":"code","b":[201],"m":"ret"},{"a":36253,"l":"portal_turn","c":"Once a game turn: on the portal's turn ($D062) the portal ($35) appears on one of the scenario's squares at $D06A chosen at random (into $D060); after it the turns left ($D042) count down, and the game ends when they run out.","t":"code","b":[58,101,208],"m":"ld","oa":53349,"o":"a,($D065)","x":[24906]},{"a":36256,"t":"code","b":[33,98,208],"m":"ld","o":"hl,$D062"},{"a":36259,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":36260,"t":"code","b":[216],"m":"ret","o":"c"},{"a":36261,"t":"code","b":[40,10],"m":"jr","oa":36273,"o":"z,$8DB1"},{"a":36263,"t":"code","b":[58,66,208],"m":"ld","oa":53314,"o":"a,($D042)"},{"a":36266,"t":"code","b":[61],"m":"dec","o":"a"},{"a":36267,"t":"code","b":[40,38],"m":"jr","oa":36307,"o":"z,game_over"},{"a":36269,"t":"code","b":[50,66,208],"m":"ld","oa":53314,"o":"($D042),a"},{"a":36272,"t":"code","b":[201],"m":"ret"},{"a":36273,"t":"code","b":[58,68,208],"m":"ld","oa":53316,"o":"a,($D044)","x":[36261]},{"a":36276,"t":"code","b":[205,52,167],"m":"call","oa":42804,"o":"random_below_a"},{"a":36279,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":36280,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":36281,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":36283,"t":"code","b":[33,106,208],"m":"ld","o":"hl,$D06A"},{"a":36286,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":36287,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":36288,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":36289,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":36290,"t":"code","b":[237,83,136,255],"m":"ld","oa":65416,"o":"($FF88),de"},{"a":36294,"t":"code","b":[237,83,96,208],"m":"ld","oa":53344,"o":"($D060),de"},{"a":36298,"t":"code","b":[62,53],"m":"ld","o":"a,$35"},{"a":36300,"t":"code","b":[50,16,91],"m":"ld","oa":23312,"o":"($5B10),a"},{"a":36303,"t":"code","b":[205,201,123],"m":"call","oa":31689,"o":"set_square_terrain"},{"a":36306,"t":"code","b":[201],"m":"ret"},{"a":36307,"l":"game_over","c":"The end of the game: the final scores ($D05C) become the victory points; the wizard with the most is named with THE WINNER IS, or NOBODY WINS when no one scored, the points are listed and the player presses fire. In a game against the computer won by a designed wizard ($CEEB not 0) with a score, the score goes into its record (byte 69) and its level goes up by one. Then back to the file panel ($C92D).","t":"code","b":[175],"m":"xor","o":"a","x":[35915,35935,36267]},{"a":36308,"t":"code","b":[50,99,208],"m":"ld","oa":53347,"o":"($D063),a"},{"a":36311,"t":"code","b":[50,102,208],"m":"ld","oa":53350,"o":"($D066),a"},{"a":36314,"t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen"},{"a":36317,"t":"code","b":[62,14],"m":"ld","o":"a,$0E"},{"a":36319,"t":"code","b":[205,78,200],"m":"call","oa":51278,"o":"start_sound"},{"a":36322,"t":"code","b":[33,92,208],"m":"ld","o":"hl,$D05C"},{"a":36325,"t":"code","b":[17,88,208],"m":"ld","o":"de,$D058"},{"a":36328,"t":"code","b":[1,4,0],"m":"ld","o":"bc,$0004"},{"a":36331,"t":"code","b":[237,176],"m":"ldir"},{"a":36333,"t":"code","b":[33,71,7],"m":"ld","o":"hl,$0747"},{"a":36336,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":36339,"t":"code","b":[6,4],"m":"ld","o":"b,$04"},{"a":36341,"t":"code","b":[33,88,208],"m":"ld","o":"hl,$D058"},{"a":36344,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36345,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":36346,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":36347,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[36359]},{"a":36348,"t":"code","b":[185],"m":"cp","o":"c"},{"a":36349,"t":"code","b":[56,7],"m":"jr","oa":36358,"o":"c,$8E06"},{"a":36351,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":36352,"t":"code","b":[62,145],"m":"ld","o":"a,$91"},{"a":36354,"t":"code","b":[144],"m":"sub","o":"b"},{"a":36355,"t":"code","b":[50,5,255],"m":"ld","oa":65285,"o":"($FF05),a"},{"a":36358,"t":"code","b":[35],"m":"inc","o":"hl","x":[36349]},{"a":36359,"t":"code","b":[16,242],"m":"djnz","oa":36347,"o":"$8DFB"},{"a":36361,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":36362,"t":"code","b":[183],"m":"or","o":"a"},{"a":36363,"t":"code","b":[40,19],"m":"jr","oa":36384,"o":"z,$8E20"},{"a":36365,"t":"code","b":[33,6,6],"m":"ld","o":"hl,$0606"},{"a":36368,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":36371,"t":"code","b":[58,5,255],"m":"ld","oa":65285,"o":"a,($FF05)"},{"a":36374,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":36377,"t":"code","b":[62,228],"m":"ld","o":"a,$E4"},{"a":36379,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":36382,"t":"code","b":[24,5],"m":"jr","oa":36389,"o":"$8E25"},{"a":36384,"t":"code","b":[62,227],"m":"ld","o":"a,$E3","x":[36363]},{"a":36386,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":36389,"t":"code","b":[205,138,142],"m":"call","oa":36490,"o":"print_victory_points","x":[36382]},{"a":36392,"t":"code","b":[205,81,142],"m":"call","oa":36433,"o":"wait_fire_flashing"},{"a":36395,"t":"code","b":[58,100,208],"m":"ld","oa":53348,"o":"a,($D064)"},{"a":36398,"t":"code","b":[183],"m":"or","o":"a"},{"a":36399,"t":"code","b":[40,29],"m":"jr","oa":36430,"o":"z,$8E4E"},{"a":36401,"t":"code","b":[58,92,208],"m":"ld","oa":53340,"o":"a,($D05C)"},{"a":36404,"t":"code","b":[183],"m":"or","o":"a"},{"a":36405,"t":"code","b":[40,23],"m":"jr","oa":36430,"o":"z,$8E4E"},{"a":36407,"t":"code","b":[58,5,255],"m":"ld","oa":65285,"o":"a,($FF05)"},{"a":36410,"t":"code","b":[254,141],"m":"cp","o":"$8D"},{"a":36412,"t":"code","b":[32,16],"m":"jr","oa":36430,"o":"nz,$8E4E"},{"a":36414,"t":"code","b":[58,235,206],"m":"ld","oa":52971,"o":"a,($CEEB)"},{"a":36417,"t":"code","b":[183],"m":"or","o":"a"},{"a":36418,"t":"code","b":[40,10],"m":"jr","oa":36430,"o":"z,$8E4E"},{"a":36420,"t":"code","b":[58,92,208],"m":"ld","oa":53340,"o":"a,($D05C)"},{"a":36423,"t":"code","b":[50,47,207],"m":"ld","oa":53039,"o":"($CF2F),a"},{"a":36426,"t":"code","b":[33,235,206],"m":"ld","o":"hl,$CEEB"},{"a":36429,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":36430,"t":"code","b":[195,45,201],"m":"jp","oa":51501,"o":"$C92D","x":[36399,36405,36412,36418]},{"a":36433,"l":"wait_fire_flashing","c":"Waits for fire, redrawing the frame in colour $FF53 with PRESS FIRE TO CONTINUE between short waits.","t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release","x":[36392]},{"a":36436,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36437,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":36440,"t":"code","b":[33,0,60],"m":"ld","o":"hl,$3C00"},{"a":36443,"t":"code","b":[34,14,91],"m":"ld","oa":23310,"o":"($5B0E),hl"},{"a":36446,"t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls","x":[36486]},{"a":36449,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":36452,"t":"code","b":[15],"m":"rrca"},{"a":36453,"t":"code","b":[48,33],"m":"jr","oa":36488,"o":"nc,$8E88"},{"a":36455,"t":"code","b":[58,83,255],"m":"ld","oa":65363,"o":"a,($FF53)"},{"a":36458,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":36461,"t":"code","b":[33,1,1],"m":"ld","o":"hl,$0101"},{"a":36464,"t":"code","b":[17,22,30],"m":"ld","o":"de,$1E16"},{"a":36467,"t":"code","b":[205,138,201],"m":"call","oa":51594,"o":"draw_frame"},{"a":36470,"t":"code","b":[33,0,60],"m":"ld","o":"hl,$3C00"},{"a":36473,"t":"code","b":[34,14,91],"m":"ld","oa":23310,"o":"($5B0E),hl"},{"a":36476,"t":"code","b":[62,229],"m":"ld","o":"a,$E5"},{"a":36478,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":36481,"t":"code","b":[251],"m":"ei"},{"a":36482,"t":"code","b":[205,21,149],"m":"call","oa":38165,"o":"delay_20"},{"a":36485,"t":"code","b":[243],"m":"di"},{"a":36486,"t":"code","b":[24,214],"m":"jr","oa":36446,"o":"$8E5E"},{"a":36488,"t":"code","b":[243],"m":"di","x":[36453]},{"a":36489,"t":"code","b":[201],"m":"ret"},{"a":36490,"l":"print_victory_points","c":"Lists each player's wizard with a row of dots to column 23 and its victory points ($D058), every third row from row 10.","t":"code","b":[33,3,67],"m":"ld","o":"hl,$4303","x":[34797,36389]},{"a":36493,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":36496,"t":"code","b":[33,10,6],"m":"ld","o":"hl,$060A"},{"a":36499,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":36502,"t":"code","b":[58,103,208],"m":"ld","oa":53351,"o":"a,($D067)"},{"a":36505,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":36506,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36507,"t":"code","b":[50,18,91],"m":"ld","oa":23314,"o":"($5B12),a"},{"a":36510,"t":"code","b":[197],"m":"push","o":"bc","x":[36564]},{"a":36511,"t":"code","b":[58,18,91],"m":"ld","oa":23314,"o":"a,($5B12)"},{"a":36514,"t":"code","b":[198,141],"m":"add","o":"a,$8D"},{"a":36516,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":36519,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16"},{"a":36522,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":36523,"t":"code","b":[62,46],"m":"ld","o":"a,$2E","x":[36537]},{"a":36525,"t":"code","b":[205,226,175],"m":"call","oa":45026,"o":"print_char_big"},{"a":36528,"t":"code","b":[58,22,91],"m":"ld","oa":23318,"o":"a,($5B16)"},{"a":36531,"t":"code","b":[60],"m":"inc","o":"a"},{"a":36532,"t":"code","b":[50,22,91],"m":"ld","oa":23318,"o":"($5B16),a"},{"a":36535,"t":"code","b":[254,23],"m":"cp","o":"$17"},{"a":36537,"t":"code","b":[32,240],"m":"jr","oa":36523,"o":"nz,$8EAB"},{"a":36539,"t":"code","b":[237,91,18,91],"m":"ld","oa":23314,"o":"de,($5B12)"},{"a":36543,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":36545,"t":"code","b":[33,88,208],"m":"ld","o":"hl,$D058"},{"a":36548,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":36549,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":36550,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number"},{"a":36553,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":36554,"t":"code","b":[33,18,91],"m":"ld","o":"hl,$5B12"},{"a":36557,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":36558,"t":"code","b":[33,26,91],"m":"ld","o":"hl,$5B1A"},{"a":36561,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":36562,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":36563,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":36564,"t":"code","b":[16,200],"m":"djnz","oa":36510,"o":"$8E9E"},{"a":36566,"t":"code","b":[201],"m":"ret"},{"a":36567,"l":"cursor_menu","c":"Fire on the map in a human's turn: the square is described, and the menu offers SELECT-A and SELECT-G for the player's own creatures there (flying and on the ground), NEXT, INFORM when a creature is there, BIG MAP, END TURN and CANCEL; the choice is dispatched through cursor_actions ($9334), then the panels are drawn again.","t":"code","b":[243],"m":"di","x":[25069]},{"a":36568,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":36570,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":36573,"t":"code","b":[205,157,100],"m":"call","oa":25757,"o":"describe_cursor_square"},{"a":36576,"t":"code","b":[205,62,101],"m":"call","oa":25918,"o":"fill_icon_list"},{"a":36579,"t":"code","b":[205,153,101],"m":"call","oa":26009,"o":"print_square_name"},{"a":36582,"t":"code","b":[205,48,104],"m":"call","oa":26672,"o":"clear_bars"},{"a":36585,"t":"code","b":[205,255,146],"m":"call","oa":37631,"o":"start_menu"},{"a":36588,"t":"code","b":[221,229],"m":"push","o":"ix"},{"a":36590,"t":"code","b":[253,229],"m":"push","o":"iy"},{"a":36592,"t":"code","b":[58,18,91],"m":"ld","oa":23314,"o":"a,($5B12)"},{"a":36595,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":36597,"t":"code","b":[56,68],"m":"jr","oa":36667,"o":"c,$8F3B"},{"a":36599,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":36602,"t":"code","b":[205,198,102],"m":"call","oa":26310,"o":"find_creatures_any"},{"a":36605,"t":"code","b":[221,42,175,209],"m":"ld","oa":53679,"o":"ix,($D1AF)"},{"a":36609,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":36612,"t":"code","b":[205,195,97],"m":"call","oa":25027,"o":"owner_is_player"},{"a":36615,"t":"code","b":[32,16],"m":"jr","oa":36633,"o":"nz,$8F19"},{"a":36617,"t":"code","b":[205,137,120],"m":"call","oa":30857,"o":"is_loose"},{"a":36620,"t":"code","b":[58,177,209],"m":"ld","oa":53681,"o":"a,($D1B1)"},{"a":36623,"t":"code","b":[32,5],"m":"jr","oa":36630,"o":"nz,$8F16"},{"a":36625,"t":"code","b":[205,144,143],"m":"call","oa":36752,"o":"offer_select_ground"},{"a":36628,"t":"code","b":[24,3],"m":"jr","oa":36633,"o":"$8F19"},{"a":36630,"t":"code","b":[205,162,143],"m":"call","oa":36770,"o":"offer_select_air","x":[36623]},{"a":36633,"t":"code","b":[58,178,209],"m":"ld","oa":53682,"o":"a,($D1B2)","x":[36615,36628]},{"a":36636,"t":"code","b":[183],"m":"or","o":"a"},{"a":36637,"t":"code","b":[40,28],"m":"jr","oa":36667,"o":"z,$8F3B"},{"a":36639,"t":"code","b":[221,42,179,209],"m":"ld","oa":53683,"o":"ix,($D1B3)"},{"a":36643,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":36646,"t":"code","b":[205,195,97],"m":"call","oa":25027,"o":"owner_is_player"},{"a":36649,"t":"code","b":[32,16],"m":"jr","oa":36667,"o":"nz,$8F3B"},{"a":36651,"t":"code","b":[205,137,120],"m":"call","oa":30857,"o":"is_loose"},{"a":36654,"t":"code","b":[58,181,209],"m":"ld","oa":53685,"o":"a,($D1B5)"},{"a":36657,"t":"code","b":[32,5],"m":"jr","oa":36664,"o":"nz,$8F38"},{"a":36659,"t":"code","b":[205,144,143],"m":"call","oa":36752,"o":"offer_select_ground"},{"a":36662,"t":"code","b":[24,3],"m":"jr","oa":36667,"o":"$8F3B"},{"a":36664,"t":"code","b":[205,162,143],"m":"call","oa":36770,"o":"offer_select_air","x":[36657]},{"a":36667,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[36597,36637,36649,36662]},{"a":36669,"t":"code","b":[205,247,145],"m":"call","oa":37367,"o":"add_cursor_option"},{"a":36672,"t":"code","b":[58,18,91],"m":"ld","oa":23314,"o":"a,($5B12)"},{"a":36675,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":36677,"t":"code","b":[56,5],"m":"jr","oa":36684,"o":"c,$8F4C"},{"a":36679,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":36681,"t":"code","b":[205,247,145],"m":"call","oa":37367,"o":"add_cursor_option"},{"a":36684,"t":"code","b":[62,3],"m":"ld","o":"a,$03","x":[36677]},{"a":36686,"t":"code","b":[205,247,145],"m":"call","oa":37367,"o":"add_cursor_option"},{"a":36689,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":36691,"t":"code","b":[205,247,145],"m":"call","oa":37367,"o":"add_cursor_option"},{"a":36694,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":36696,"t":"code","b":[205,247,145],"m":"call","oa":37367,"o":"add_cursor_option"},{"a":36699,"t":"code","b":[253,225],"m":"pop","o":"iy"},{"a":36701,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":36703,"t":"code","b":[251],"m":"ei"},{"a":36704,"t":"code","b":[205,2,146],"m":"call","oa":37378,"o":"run_menu"},{"a":36707,"t":"code","b":[243],"m":"di"},{"a":36708,"t":"code","b":[33,52,147],"m":"ld","o":"hl,$9334"},{"a":36711,"t":"code","b":[205,34,147],"m":"call","oa":37666,"o":"dispatch_menu"},{"a":36714,"t":"code","b":[205,168,120],"m":"call","oa":30888,"o":"reset_ff86"},{"a":36717,"t":"code","b":[205,48,104],"m":"call","oa":26672,"o":"clear_bars"},{"a":36720,"t":"code","b":[205,234,99],"m":"call","oa":25578,"o":"clear_info_panel"},{"a":36723,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":36725,"t":"code","b":[205,87,171],"m":"call","oa":43863,"o":"print_panel_text"},{"a":36728,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":36730,"t":"code","b":[205,87,171],"m":"call","oa":43863,"o":"print_panel_text"},{"a":36733,"t":"code","b":[205,157,100],"m":"call","oa":25757,"o":"describe_cursor_square"},{"a":36736,"t":"code","b":[205,62,101],"m":"call","oa":25918,"o":"fill_icon_list"},{"a":36739,"t":"code","b":[205,153,101],"m":"call","oa":26009,"o":"print_square_name"},{"a":36742,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":36744,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":36747,"t":"code","b":[251],"m":"ei"},{"a":36748,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":36751,"t":"code","b":[201],"m":"ret"},{"a":36752,"l":"offer_select_ground","c":"Keeps the player's creature on the ground in $5B38 (index $5B3A) and adds SELECT-G to the menu.","t":"code","b":[50,58,91],"m":"ld","oa":23354,"o":"($5B3A),a","x":[36625,36659]},{"a":36755,"t":"code","b":[221,34,56,91],"m":"ld","oa":23352,"o":"($5B38),ix"},{"a":36759,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":36761,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":36764,"t":"code","b":[62,188],"m":"ld","o":"a,$BC"},{"a":36766,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":36769,"t":"code","b":[201],"m":"ret"},{"a":36770,"l":"offer_select_air","c":"Keeps the player's flying creature in $5B35 (index $5B37) and adds SELECT-A to the menu.","t":"code","b":[50,55,91],"m":"ld","oa":23351,"o":"($5B37),a","x":[36630,36664]},{"a":36773,"t":"code","b":[221,34,53,91],"m":"ld","oa":23349,"o":"($5B35),ix"},{"a":36777,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36778,"t":"code","b":[205,247,145],"m":"call","oa":37367,"o":"add_cursor_option"},{"a":36781,"t":"code","b":[201],"m":"ret"},{"a":36782,"l":"inform","c":"INFORM on the cursor menu: the creature's figures are loaded and its panel drawn, until the controls are let go and pressed.","t":"code","b":[243],"m":"di"},{"a":36783,"t":"code","b":[205,66,147],"m":"call","oa":37698,"o":"load_figures"},{"a":36786,"t":"code","b":[205,189,143],"m":"call","oa":36797,"o":"draw_creature_panel"},{"a":36789,"t":"code","b":[251],"m":"ei"},{"a":36790,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":36793,"t":"code","b":[205,219,145],"m":"call","oa":37339,"o":"wait_press"},{"a":36796,"t":"code","b":[201],"m":"ret"},{"a":36797,"l":"draw_creature_panel","c":"Draws the creature panel in the information display: the frame and panel graphics 1 and 3, clears the bar values at $D1F6, draws the bars ($ACA6) and lets the interrupt's bar routine ($AB0E) run 96 times to grow them.","t":"code","b":[205,55,104],"m":"call","oa":26679,"o":"clear_lower_bars","x":[26951,27997,29215,36786,37308,39073,39133,40566]},{"a":36800,"t":"code","b":[205,76,104],"m":"call","oa":26700,"o":"draw_menu_frame"},{"a":36803,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":36805,"t":"code","b":[205,87,171],"m":"call","oa":43863,"o":"print_panel_text"},{"a":36808,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":36810,"t":"code","b":[205,87,171],"m":"call","oa":43863,"o":"print_panel_text"},{"a":36813,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":36816,"t":"code","b":[34,246,209],"m":"ld","oa":53750,"o":"($D1F6),hl"},{"a":36819,"t":"code","b":[34,248,209],"m":"ld","oa":53752,"o":"($D1F8),hl"},{"a":36822,"t":"code","b":[34,249,209],"m":"ld","oa":53753,"o":"($D1F9),hl"},{"a":36825,"t":"code","b":[205,166,172],"m":"call","oa":44198,"o":"draw_bar_outlines"},{"a":36828,"t":"code","b":[62,21],"m":"ld","o":"a,$15"},{"a":36830,"t":"code","b":[50,223,208],"m":"ld","oa":53471,"o":"($D0DF),a"},{"a":36833,"t":"code","b":[6,96],"m":"ld","o":"b,$60"},{"a":36835,"t":"code","b":[197],"m":"push","o":"bc","x":[36840]},{"a":36836,"t":"code","b":[205,14,171],"m":"call","oa":43790,"o":"slide_bars"},{"a":36839,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":36840,"t":"code","b":[16,249],"m":"djnz","oa":36835,"o":"$8FE3"},{"a":36842,"t":"code","b":[201],"m":"ret"},{"a":36843,"l":"make_selected","c":"Makes the creature being looked at the selected one: its entry ($5B4D), index ($5B4F), record ($5B50), type record ($5B52), type ($5B54), square ($5B55), terrain ($FF91) and object in use ($5B57); its figures are kept ($B5D2); its height in $5B2F ($FF, or $FE flying, with $FF86 $0302 or $0204); $FF90 what its square will show when it moves off (the heaviest object there, or the terrain, or another creature shown there); $5B29 its engaged bit. Draws its panel ($B148) and, when the turn is shown, the enemy count.","t":"code","b":[42,249,255],"m":"ld","oa":65529,"o":"hl,($FFF9)","x":[26954,39136]},{"a":36846,"t":"code","b":[34,77,91],"m":"ld","oa":23373,"o":"($5B4D),hl"},{"a":36849,"t":"code","b":[58,88,91],"m":"ld","oa":23384,"o":"a,($5B58)"},{"a":36852,"t":"code","b":[50,79,91],"m":"ld","oa":23375,"o":"($5B4F),a"},{"a":36855,"t":"code","b":[221,34,80,91],"m":"ld","oa":23376,"o":"($5B50),ix"},{"a":36859,"t":"code","b":[253,34,82,91],"m":"ld","oa":23378,"o":"($5B52),iy"},{"a":36863,"t":"code","b":[58,18,91],"m":"ld","oa":23314,"o":"a,($5B12)"},{"a":36866,"t":"code","b":[50,84,91],"m":"ld","oa":23380,"o":"($5B54),a"},{"a":36869,"t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)"},{"a":36872,"t":"code","b":[34,85,91],"m":"ld","oa":23381,"o":"($5B55),hl"},{"a":36875,"t":"code","b":[58,16,91],"m":"ld","oa":23312,"o":"a,($5B10)"},{"a":36878,"t":"code","b":[50,145,255],"m":"ld","oa":65425,"o":"($FF91),a"},{"a":36881,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":36884,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":36887,"t":"code","b":[205,210,181],"m":"call","oa":46546,"o":"keep_figures"},{"a":36890,"t":"code","b":[33,2,3],"m":"ld","o":"hl,$0302"},{"a":36893,"t":"code","b":[34,134,255],"m":"ld","oa":65414,"o":"($FF86),hl"},{"a":36896,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":36898,"t":"code","b":[50,47,91],"m":"ld","oa":23343,"o":"($5B2F),a"},{"a":36901,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":36905,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying"},{"a":36908,"t":"code","b":[32,11],"m":"jr","oa":36921,"o":"nz,$9039"},{"a":36910,"t":"code","b":[62,254],"m":"ld","o":"a,$FE"},{"a":36912,"t":"code","b":[50,47,91],"m":"ld","oa":23343,"o":"($5B2F),a"},{"a":36915,"t":"code","b":[33,4,2],"m":"ld","o":"hl,$0204"},{"a":36918,"t":"code","b":[34,134,255],"m":"ld","oa":65414,"o":"($FF86),hl"},{"a":36921,"t":"code","b":[205,142,120],"m":"call","oa":30862,"o":"terrain_under","x":[36908]},{"a":36924,"c":"The address $AA6A works out from HL ($0302 or $0204 at this point) is not used.","t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":36927,"t":"code","b":[50,144,255],"m":"ld","oa":65424,"o":"($FF90),a"},{"a":36930,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)"},{"a":36933,"t":"code","b":[183],"m":"or","o":"a"},{"a":36934,"t":"code","b":[40,3],"m":"jr","oa":36939,"o":"z,$904B"},{"a":36936,"t":"code","b":[50,144,255],"m":"ld","oa":65424,"o":"($FF90),a"},{"a":36939,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)","x":[36934]},{"a":36943,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":36946,"t":"code","b":[230,16],"m":"and","o":"$10"},{"a":36948,"t":"code","b":[50,41,91],"m":"ld","oa":23337,"o":"($5B29),a"},{"a":36951,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":36954,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":36957,"t":"code","b":[183],"m":"or","o":"a"},{"a":36958,"t":"code","b":[204,51,121],"m":"call","oa":31027,"o":"z,show_enemy_spotted"},{"a":36961,"t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)"},{"a":36964,"t":"code","b":[205,202,102],"m":"call","oa":26314,"o":"find_others_at"},{"a":36967,"t":"code","b":[58,174,209],"m":"ld","oa":53678,"o":"a,($D1AE)"},{"a":36970,"t":"code","b":[183],"m":"or","o":"a"},{"a":36971,"t":"code","b":[200],"m":"ret","o":"z"},{"a":36972,"t":"code","b":[42,175,209],"m":"ld","oa":53679,"o":"hl,($D1AF)"},{"a":36975,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":36976,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":36977,"t":"code","b":[203,126],"m":"bit","o":"7,(hl)"},{"a":36979,"t":"code","b":[200],"m":"ret","o":"z"},{"a":36980,"t":"code","b":[58,174,209],"m":"ld","oa":53678,"o":"a,($D1AE)"},{"a":36983,"t":"code","b":[50,144,255],"m":"ld","oa":65424,"o":"($FF90),a"},{"a":36986,"t":"code","b":[201],"m":"ret"},{"a":36987,"l":"centre","c":"CENTRE (select menu option 4): puts the cursor on the selected creature ($5B55).","t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)","x":[26957,27191,27394,29280,31421,31425,31587,33438,34404,35475,35578,35748,39872,42176,44582]},{"a":36990,"l":"centre_on","c":"Puts the cursor on square HL and moves the window so that it is in the middle: origin three rows and three columns before it (wrapping), offset 3, 3.","t":"code","b":[34,211,208],"m":"ld","oa":53459,"o":"($D0D3),hl","x":[35034,35425,35863,37293]},{"a":36993,"t":"code","b":[34,71,91],"m":"ld","oa":23367,"o":"($5B47),hl"},{"a":36996,"t":"code","b":[125],"m":"ld","o":"a,l"},{"a":36997,"t":"code","b":[214,3],"m":"sub","o":"$03"},{"a":36999,"t":"code","b":[48,2],"m":"jr","oa":37003,"o":"nc,$908B"},{"a":37001,"t":"code","b":[214,220],"m":"sub","o":"$DC"},{"a":37003,"t":"code","b":[50,200,208],"m":"ld","oa":53448,"o":"($D0C8),a","x":[36999]},{"a":37006,"t":"code","b":[50,75,91],"m":"ld","oa":23371,"o":"($5B4B),a"},{"a":37009,"t":"code","b":[124],"m":"ld","o":"a,h"},{"a":37010,"t":"code","b":[214,3],"m":"sub","o":"$03"},{"a":37012,"t":"code","b":[48,2],"m":"jr","oa":37016,"o":"nc,$9098"},{"a":37014,"t":"code","b":[214,220],"m":"sub","o":"$DC"},{"a":37016,"t":"code","b":[50,201,208],"m":"ld","oa":53449,"o":"($D0C9),a","x":[37012]},{"a":37019,"t":"code","b":[50,76,91],"m":"ld","oa":23372,"o":"($5B4C),a"},{"a":37022,"t":"code","b":[33,3,3],"m":"ld","o":"hl,$0303"},{"a":37025,"t":"code","b":[34,209,208],"m":"ld","oa":53457,"o":"($D0D1),hl"},{"a":37028,"t":"code","b":[34,73,91],"m":"ld","oa":23369,"o":"($5B49),hl"},{"a":37031,"t":"code","b":[201],"m":"ret"},{"a":37032,"l":"list_neighbours_of_selected","c":"list_neighbours for the selected creature's square.","t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)","x":[26981,33616,39441,40772,40913,42104]},{"a":37035,"l":"list_neighbours","c":"Lists the eight squares around square HL ($FF88) at $FF0C, three bytes each: the row and column (from the steps at $B49D, wrapping at the edges) and $00 or $80 alternately.","t":"code","b":[34,136,255],"m":"ld","oa":65416,"o":"($FF88),hl","x":[32438,35050]},{"a":37038,"t":"code","b":[17,12,255],"m":"ld","o":"de,$FF0C"},{"a":37041,"t":"code","b":[33,157,180],"m":"ld","o":"hl,$B49D"},{"a":37044,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":37046,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":37048,"t":"code","b":[58,136,255],"m":"ld","oa":65416,"o":"a,($FF88)","x":[37095]},{"a":37051,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":37052,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":37054,"t":"code","b":[32,4],"m":"jr","oa":37060,"o":"nz,$90C4"},{"a":37056,"t":"code","b":[62,35],"m":"ld","o":"a,$23"},{"a":37058,"t":"code","b":[24,5],"m":"jr","oa":37065,"o":"$90C9"},{"a":37060,"t":"code","b":[254,36],"m":"cp","o":"$24","x":[37054]},{"a":37062,"t":"code","b":[32,1],"m":"jr","oa":37065,"o":"nz,$90C9"},{"a":37064,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37065,"t":"code","b":[18],"m":"ld","o":"(de),a","x":[37058,37062]},{"a":37066,"t":"code","b":[19],"m":"inc","o":"de"},{"a":37067,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":37068,"t":"code","b":[58,137,255],"m":"ld","oa":65417,"o":"a,($FF89)"},{"a":37071,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":37072,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":37074,"t":"code","b":[32,4],"m":"jr","oa":37080,"o":"nz,$90D8"},{"a":37076,"t":"code","b":[62,35],"m":"ld","o":"a,$23"},{"a":37078,"t":"code","b":[24,5],"m":"jr","oa":37085,"o":"$90DD"},{"a":37080,"t":"code","b":[254,36],"m":"cp","o":"$24","x":[37074]},{"a":37082,"t":"code","b":[32,1],"m":"jr","oa":37085,"o":"nz,$90DD"},{"a":37084,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37085,"t":"code","b":[18],"m":"ld","o":"(de),a","x":[37078,37082]},{"a":37086,"t":"code","b":[19],"m":"inc","o":"de"},{"a":37087,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":37088,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":37089,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":37090,"t":"code","b":[62,128],"m":"ld","o":"a,$80"},{"a":37092,"t":"code","b":[169],"m":"xor","o":"c"},{"a":37093,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":37094,"t":"code","b":[19],"m":"inc","o":"de"},{"a":37095,"t":"code","b":[16,207],"m":"djnz","oa":37048,"o":"$90B8"},{"a":37097,"t":"code","b":[201],"m":"ret"},{"a":37098,"l":"what_is_under_cursor","c":"what_is_at for the cursor's square.","t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)","x":[29293,31242,31272,31518,35000,35516,35650]},{"a":37101,"l":"what_is_at","c":"The terrain at square HL: $5B3B is set to its map address and $5B12 to the map byte; a byte below $50 is the terrain itself, otherwise the terrain under the first entry of the object table on the square. If none is there the border turns yellow, a check left in by the authors.","t":"code","b":[229],"m":"push","o":"hl","x":[27461,31497,31672,32455,32586,33713,34485,35077,36177,40224,40849,46147,51758]},{"a":37102,"t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":37105,"t":"code","b":[34,59,91],"m":"ld","oa":23355,"o":"($5B3B),hl"},{"a":37108,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":37109,"t":"code","b":[50,18,91],"m":"ld","oa":23314,"o":"($5B12),a"},{"a":37112,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":37113,"t":"code","b":[254,80],"m":"cp","o":"$50"},{"a":37115,"t":"code","b":[216],"m":"ret","o":"c"},{"a":37116,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":37117,"t":"code","b":[33,90,91],"m":"ld","o":"hl,$5B5A"},{"a":37120,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":37122,"t":"code","b":[197],"m":"push","o":"bc","x":[37149]},{"a":37123,"t":"code","b":[229],"m":"push","o":"hl"},{"a":37124,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":37125,"t":"code","b":[187],"m":"cp","o":"e"},{"a":37126,"t":"code","b":[32,15],"m":"jr","oa":37143,"o":"nz,$9117"},{"a":37128,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":37129,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":37130,"t":"code","b":[230,63],"m":"and","o":"$3F"},{"a":37132,"t":"code","b":[186],"m":"cp","o":"d"},{"a":37133,"t":"code","b":[32,8],"m":"jr","oa":37143,"o":"nz,$9117"},{"a":37135,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":37136,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":37137,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":37138,"t":"code","b":[230,127],"m":"and","o":"$7F"},{"a":37140,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":37141,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":37142,"t":"code","b":[201],"m":"ret"},{"a":37143,"t":"code","b":[225],"m":"pop","o":"hl","x":[37126,37133]},{"a":37144,"t":"code","b":[1,6,0],"m":"ld","o":"bc,$0006"},{"a":37147,"t":"code","b":[9],"m":"add","o":"hl,bc"},{"a":37148,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":37149,"t":"code","b":[16,227],"m":"djnz","oa":37122,"o":"$9102"},{"a":37151,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":37153,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":37155,"t":"code","b":[201],"m":"ret"},{"a":37156,"l":"terrain_record_here","c":"terrain_record for the terrain in $FF91.","t":"code","b":[58,145,255],"m":"ld","oa":65425,"o":"a,($FF91)","x":[26790,28098,39957,51880]},{"a":37159,"l":"terrain_record","c":"IY = the record of terrain A: five bytes each at $D208 in the scenario.","t":"code","b":[229],"m":"push","o":"hl","x":[31245,31500,31521,31675,32458,32589,33719,34488,35080,35654,40227,40852]},{"a":37160,"t":"code","b":[213],"m":"push","o":"de"},{"a":37161,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":37162,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":37163,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37164,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":37165,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":37166,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37167,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37168,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":37169,"t":"code","b":[17,8,210],"m":"ld","o":"de,$D208"},{"a":37172,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":37173,"t":"code","b":[229],"m":"push","o":"hl"},{"a":37174,"t":"code","b":[253,225],"m":"pop","o":"iy"},{"a":37176,"t":"code","b":[209],"m":"pop","o":"de"},{"a":37177,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":37178,"t":"code","b":[201],"m":"ret"},{"a":37179,"l":"short_wait","c":"Waits while a control is held: up to 255 polls of the controls, a short delay before each, returning as soon as none is held.","t":"code","b":[6,255],"m":"ld","o":"b,$FF","x":[25092,27168]},{"a":37181,"t":"code","b":[197],"m":"push","o":"bc","x":[37196]},{"a":37182,"t":"code","b":[6,45],"m":"ld","o":"b,$2D"},{"a":37184,"t":"code","b":[16,254],"m":"djnz","oa":37184,"o":"$9140","x":[37184]},{"a":37186,"t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls"},{"a":37189,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":37192,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37193,"t":"code","b":[40,4],"m":"jr","oa":37199,"o":"z,$914F"},{"a":37195,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":37196,"t":"code","b":[16,239],"m":"djnz","oa":37181,"o":"$913D"},{"a":37198,"t":"code","b":[201],"m":"ret"},{"a":37199,"t":"code","b":[193],"m":"pop","o":"bc","x":[37193]},{"a":37200,"t":"code","b":[201],"m":"ret"},{"a":37201,"l":"next_creature","c":"NEXT on the cursor menu: steps $5B28 round the object table to the player's next creature (at most 145 tries), shows it on its square (a rider is left to its mount), centres the window on it, describes it and draws its panel, then waits for a control.","t":"code","b":[243],"m":"di","x":[25050]},{"a":37202,"t":"code","b":[62,146],"m":"ld","o":"a,$92"},{"a":37204,"t":"code","b":[50,247,255],"m":"ld","oa":65527,"o":"($FFF7),a"},{"a":37207,"t":"code","b":[58,247,255],"m":"ld","oa":65527,"o":"a,($FFF7)","x":[37241,37245,37253]},{"a":37210,"t":"code","b":[61],"m":"dec","o":"a"},{"a":37211,"t":"code","b":[50,247,255],"m":"ld","oa":65527,"o":"($FFF7),a"},{"a":37214,"t":"code","b":[200],"m":"ret","o":"z"},{"a":37215,"t":"code","b":[58,40,91],"m":"ld","oa":23336,"o":"a,($5B28)"},{"a":37218,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37219,"t":"code","b":[254,145],"m":"cp","o":"$91"},{"a":37221,"t":"code","b":[56,1],"m":"jr","oa":37224,"o":"c,$9168"},{"a":37223,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37224,"t":"code","b":[50,40,91],"m":"ld","oa":23336,"o":"($5B28),a","x":[37221]},{"a":37227,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":37230,"t":"code","b":[34,249,255],"m":"ld","oa":65529,"o":"($FFF9),hl"},{"a":37233,"t":"code","b":[221,42,249,255],"m":"ld","oa":65529,"o":"ix,($FFF9)"},{"a":37237,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":37240,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37241,"t":"code","b":[40,220],"m":"jr","oa":37207,"o":"z,$9157"},{"a":37243,"t":"code","b":[254,141],"m":"cp","o":"$8D"},{"a":37245,"t":"code","b":[56,216],"m":"jr","oa":37207,"o":"c,$9157"},{"a":37247,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":37250,"t":"code","b":[205,195,97],"m":"call","oa":25027,"o":"owner_is_player"},{"a":37253,"t":"code","b":[32,208],"m":"jr","oa":37207,"o":"nz,$9157"},{"a":37255,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":37258,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":37259,"t":"code","b":[205,162,120],"m":"call","oa":30882,"o":"entry_column"},{"a":37262,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":37263,"t":"code","b":[34,136,255],"m":"ld","oa":65416,"o":"($FF88),hl"},{"a":37266,"t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":37269,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":37272,"t":"code","b":[50,18,91],"m":"ld","oa":23314,"o":"($5B12),a"},{"a":37275,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying"},{"a":37278,"t":"code","b":[56,4],"m":"jr","oa":37284,"o":"c,$91A4"},{"a":37280,"t":"code","b":[58,18,91],"m":"ld","oa":23314,"o":"a,($5B12)"},{"a":37283,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":37284,"t":"code","b":[58,40,91],"m":"ld","oa":23336,"o":"a,($5B28)","x":[37278]},{"a":37287,"t":"code","b":[50,88,91],"m":"ld","oa":23384,"o":"($5B58),a"},{"a":37290,"t":"code","b":[42,136,255],"m":"ld","oa":65416,"o":"hl,($FF88)"},{"a":37293,"t":"code","b":[205,126,144],"m":"call","oa":36990,"o":"centre_on"},{"a":37296,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":37299,"t":"code","b":[205,44,101],"m":"call","oa":25900,"o":"describe_creature"},{"a":37302,"t":"code","b":[205,62,101],"m":"call","oa":25918,"o":"fill_icon_list"},{"a":37305,"t":"code","b":[205,66,147],"m":"call","oa":37698,"o":"load_figures"},{"a":37308,"t":"code","b":[205,189,143],"m":"call","oa":36797,"o":"draw_creature_panel"},{"a":37311,"t":"code","b":[205,100,100],"m":"call","oa":25700,"o":"clear_message_line"},{"a":37314,"t":"code","b":[205,153,101],"m":"call","oa":26009,"o":"print_square_name"},{"a":37317,"t":"code","b":[251],"m":"ei"},{"a":37318,"t":"code","b":[205,219,145],"m":"call","oa":37339,"o":"wait_press"},{"a":37321,"l":"do_nothing","c":"The RET that ends next_creature, which the select menu's CANCEL jumps to.","t":"code","b":[201],"m":"ret"},{"a":37322,"l":"wait_release","c":"Waits, reading the controls, until none is pressed; each poll counts $FFF8 on, which the random numbers use.","t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls","x":[26964,27092,27292,28042,28486,28955,29223,30515,31428,31607,33073,34407,35478,35581,36433,36748,36790,37337,37407,38624,50984,52012,52549]},{"a":37325,"t":"code","b":[33,248,255],"m":"ld","o":"hl,$FFF8"},{"a":37328,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":37329,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":37332,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37333,"t":"code","b":[200],"m":"ret","o":"z"},{"a":37334,"t":"code","b":[205,21,149],"m":"call","oa":38165,"o":"delay_20"},{"a":37337,"t":"code","b":[24,239],"m":"jr","oa":37322,"o":"wait_release"},{"a":37339,"l":"wait_press","c":"Waits until a control is pressed, counting $FFF8 on.","t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls","x":[27295,28958,36793,37318,37350]},{"a":37342,"t":"code","b":[33,248,255],"m":"ld","o":"hl,$FFF8"},{"a":37345,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":37346,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":37349,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37350,"t":"code","b":[40,243],"m":"jr","oa":37339,"o":"z,wait_press"},{"a":37352,"t":"code","b":[201],"m":"ret"},{"a":37353,"l":"wait_fire","c":"Waits until fire is pressed, counting $FFF8 on.","t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls","x":[30509,37364,38627]},{"a":37356,"t":"code","b":[33,248,255],"m":"ld","o":"hl,$FFF8"},{"a":37359,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":37360,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":37363,"t":"code","b":[15],"m":"rrca"},{"a":37364,"t":"code","b":[56,243],"m":"jr","oa":37353,"o":"c,wait_fire"},{"a":37366,"t":"code","b":[201],"m":"ret"},{"a":37367,"l":"add_cursor_option","c":"Adds option A to the menu being built, printing its name (message $AE + A).","t":"code","b":[245],"m":"push","o":"af","x":[36669,36681,36686,36691,36696,36778]},{"a":37368,"t":"code","b":[205,21,147],"m":"call","oa":37653,"o":"add_menu_option"},{"a":37371,"t":"code","b":[241],"m":"pop","o":"af"},{"a":37372,"t":"code","b":[198,174],"m":"add","o":"a,$AE"},{"a":37374,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":37377,"t":"code","b":[201],"m":"ret"},{"a":37378,"l":"run_menu","c":"Runs the menu built with add_menu_option: a frame in red on blue sized to the options, the first option highlighted, up and down moving the highlight with wrap until fire is pressed; the choice is left in $C662.","t":"code","b":[243],"m":"di","x":[27949,30028,36704]},{"a":37379,"t":"code","b":[33,2,22],"m":"ld","o":"hl,$1602"},{"a":37382,"t":"code","b":[22,31],"m":"ld","o":"d,$1F"},{"a":37384,"t":"code","b":[58,10,91],"m":"ld","oa":23306,"o":"a,($5B0A)"},{"a":37387,"t":"code","b":[198,3],"m":"add","o":"a,$03"},{"a":37389,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":37390,"t":"code","b":[62,65],"m":"ld","o":"a,$41"},{"a":37392,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":37395,"t":"code","b":[205,138,201],"m":"call","oa":51594,"o":"draw_frame"},{"a":37398,"t":"code","b":[251],"m":"ei"},{"a":37399,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37400,"t":"code","b":[50,98,198],"m":"ld","oa":50786,"o":"(menu_choice),a"},{"a":37403,"t":"code","b":[205,167,146],"m":"call","oa":37543,"o":"highlight_menu_option"},{"a":37406,"t":"code","b":[251],"m":"ei"},{"a":37407,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":37410,"t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls","x":[37467]},{"a":37413,"t":"code","b":[33,98,198],"m":"ld","o":"hl,$C662"},{"a":37416,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":37419,"t":"code","b":[15],"m":"rrca"},{"a":37420,"t":"code","b":[48,47],"m":"jr","oa":37469,"o":"nc,$925D"},{"a":37422,"t":"code","b":[15],"m":"rrca"},{"a":37423,"t":"code","b":[56,17],"m":"jr","oa":37442,"o":"c,$9242"},{"a":37425,"t":"code","b":[205,167,146],"m":"call","oa":37543,"o":"highlight_menu_option"},{"a":37428,"t":"code","b":[251],"m":"ei"},{"a":37429,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":37430,"t":"code","b":[214,1],"m":"sub","o":"$01"},{"a":37432,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":37433,"t":"code","b":[48,25],"m":"jr","oa":37460,"o":"nc,$9254"},{"a":37435,"t":"code","b":[58,10,91],"m":"ld","oa":23306,"o":"a,($5B0A)"},{"a":37438,"t":"code","b":[61],"m":"dec","o":"a"},{"a":37439,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":37440,"t":"code","b":[24,18],"m":"jr","oa":37460,"o":"$9254"},{"a":37442,"t":"code","b":[15],"m":"rrca","x":[37423]},{"a":37443,"t":"code","b":[56,19],"m":"jr","oa":37464,"o":"c,$9258"},{"a":37445,"t":"code","b":[205,167,146],"m":"call","oa":37543,"o":"highlight_menu_option"},{"a":37448,"t":"code","b":[251],"m":"ei"},{"a":37449,"t":"code","b":[58,10,91],"m":"ld","oa":23306,"o":"a,($5B0A)"},{"a":37452,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37453,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":37454,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":37455,"t":"code","b":[184],"m":"cp","o":"b"},{"a":37456,"t":"code","b":[56,2],"m":"jr","oa":37460,"o":"c,$9254"},{"a":37458,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":37460,"t":"code","b":[205,167,146],"m":"call","oa":37543,"o":"highlight_menu_option","x":[37433,37440,37456]},{"a":37463,"t":"code","b":[251],"m":"ei"},{"a":37464,"t":"code","b":[205,219,148],"m":"call","oa":38107,"o":"key_repeat","x":[37443]},{"a":37467,"t":"code","b":[24,197],"m":"jr","oa":37410,"o":"$9222"},{"a":37469,"t":"code","b":[243],"m":"di","x":[37420]},{"a":37470,"t":"code","b":[205,77,200],"m":"call","oa":51277,"o":"sound_0"},{"a":37473,"t":"code","b":[201],"m":"ret"},{"a":37474,"l":"highlight_file_option","c":"Highlights the file panel's current line ($C662) in one of four layouts chosen by $5B0B (from file_layouts): each sets where the bar starts ($5B07 its width) and the lines are two rows apart.","t":"code","b":[243],"m":"di","x":[51459,52034,52053,52067,52304,52376,52429,52528]},{"a":37475,"t":"code","b":[229],"m":"push","o":"hl"},{"a":37476,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":37478,"t":"code","b":[50,6,91],"m":"ld","oa":23302,"o":"($5B06),a"},{"a":37481,"t":"code","b":[58,11,91],"m":"ld","oa":23307,"o":"a,($5B0B)"},{"a":37484,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":37485,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":37486,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":37488,"t":"code","b":[33,119,146],"m":"ld","o":"hl,$9277"},{"a":37491,"t":"code","b":[205,156,120],"m":"call","oa":30876,"o":"read_table_word"},{"a":37494,"t":"code","b":[233],"m":"jp","o":"(hl)"},{"a":37495,"l":"file_layouts","c":"The four layouts highlight_file_option chooses from: where the bar starts (DE, from the attribute file at $5800) and its width ($5B07).","t":"word","b":[127,146,137,146,147,146,157,146],"d":[37503,37513,37523,37533]},{"a":37503,"l":"layout_turn_menu","c":"Layout 0, the end of turn menu: a bar twelve cells wide from row 8, column 10.","t":"code","b":[17,10,1],"m":"ld","o":"de,$010A"},{"a":37506,"t":"code","b":[62,12],"m":"ld","o":"a,$0C"},{"a":37508,"t":"code","b":[50,7,91],"m":"ld","oa":23303,"o":"($5B07),a"},{"a":37511,"t":"code","b":[24,44],"m":"jr","oa":37557,"o":"highlight_bar"},{"a":37513,"l":"layout_file_panel","c":"Layout 1, the file panel's options: fifteen cells wide from column 0.","t":"code","b":[17,224,0],"m":"ld","o":"de,$00E0"},{"a":37516,"t":"code","b":[62,15],"m":"ld","o":"a,$0F"},{"a":37518,"t":"code","b":[50,7,91],"m":"ld","oa":23303,"o":"($5B07),a"},{"a":37521,"t":"code","b":[24,34],"m":"jr","oa":37557,"o":"highlight_bar"},{"a":37523,"l":"layout_wizard_list","c":"Layout 2, the list of wizards: fourteen cells wide from column 17.","t":"code","b":[17,81,1],"m":"ld","o":"de,$0151"},{"a":37526,"t":"code","b":[62,14],"m":"ld","o":"a,$0E"},{"a":37528,"t":"code","b":[50,7,91],"m":"ld","oa":23303,"o":"($5B07),a"},{"a":37531,"t":"code","b":[24,24],"m":"jr","oa":37557,"o":"highlight_bar"},{"a":37533,"l":"layout_designer","c":"Layout 3, the SELECT CONTROLS menu at start-up (program_start, in the designer's block): seventeen cells wide from column 7.","t":"code","b":[17,7,1],"m":"ld","o":"de,$0107"},{"a":37536,"t":"code","b":[62,17],"m":"ld","o":"a,$11"},{"a":37538,"t":"code","b":[50,7,91],"m":"ld","oa":23303,"o":"($5B07),a"},{"a":37541,"t":"code","b":[24,14],"m":"jr","oa":37557,"o":"highlight_bar"},{"a":37543,"l":"highlight_menu_option","c":"Highlights the menu's current line ($C662): the attributes of 8 cells from $5857 on its row swap ink and paper, bright. Called again it puts them back.","t":"code","b":[243],"m":"di","x":[37403,37425,37445,37460]},{"a":37544,"t":"code","b":[229],"m":"push","o":"hl"},{"a":37545,"t":"code","b":[17,87,0],"m":"ld","o":"de,$0057"},{"a":37548,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37549,"t":"code","b":[50,6,91],"m":"ld","oa":23302,"o":"($5B06),a"},{"a":37552,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":37554,"t":"code","b":[50,7,91],"m":"ld","oa":23303,"o":"($5B07),a"},{"a":37557,"l":"highlight_bar","c":"Swaps ink and paper, bright, in a bar $5B07 cells wide on the line of the choice ($C662, two rows apart and two rows high when $5B06 is set), from the attribute address $5800 + DE, one row down.","t":"code","b":[33,0,88],"m":"ld","o":"hl,$5800","x":[37511,37521,37531,37541]},{"a":37560,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":37561,"t":"code","b":[17,32,0],"m":"ld","o":"de,$0020"},{"a":37564,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":37567,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37568,"t":"code","b":[58,6,91],"m":"ld","oa":23302,"o":"a,($5B06)"},{"a":37571,"t":"code","b":[183],"m":"or","o":"a"},{"a":37572,"t":"code","b":[40,2],"m":"jr","oa":37576,"o":"z,$92C8"},{"a":37574,"t":"code","b":[203,32],"m":"sla","o":"b"},{"a":37576,"t":"code","b":[4],"m":"inc","o":"b","x":[37572]},{"a":37577,"t":"code","b":[25],"m":"add","o":"hl,de","x":[37578]},{"a":37578,"t":"code","b":[16,253],"m":"djnz","oa":37577,"o":"$92C9"},{"a":37580,"t":"code","b":[58,6,91],"m":"ld","oa":23302,"o":"a,($5B06)"},{"a":37583,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37584,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37585,"t":"code","b":[197],"m":"push","o":"bc","x":[37627]},{"a":37586,"t":"code","b":[58,7,91],"m":"ld","oa":23303,"o":"a,($5B07)"},{"a":37589,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37590,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[37613]},{"a":37591,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":37593,"t":"code","b":[15],"m":"rrca"},{"a":37594,"t":"code","b":[203,25],"m":"rr","o":"c"},{"a":37596,"t":"code","b":[15],"m":"rrca"},{"a":37597,"t":"code","b":[203,25],"m":"rr","o":"c"},{"a":37599,"t":"code","b":[15],"m":"rrca"},{"a":37600,"t":"code","b":[203,25],"m":"rr","o":"c"},{"a":37602,"t":"code","b":[203,57],"m":"srl","o":"c"},{"a":37604,"t":"code","b":[203,57],"m":"srl","o":"c"},{"a":37606,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":37608,"t":"code","b":[177],"m":"or","o":"c"},{"a":37609,"t":"code","b":[246,64],"m":"or","o":"$40"},{"a":37611,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":37612,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":37613,"t":"code","b":[16,231],"m":"djnz","oa":37590,"o":"$92D6"},{"a":37615,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":37616,"t":"code","b":[58,7,91],"m":"ld","oa":23303,"o":"a,($5B07)"},{"a":37619,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":37620,"t":"code","b":[62,32],"m":"ld","o":"a,$20"},{"a":37622,"t":"code","b":[145],"m":"sub","o":"c"},{"a":37623,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":37624,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":37626,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":37627,"t":"code","b":[16,212],"m":"djnz","oa":37585,"o":"$92D1"},{"a":37629,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":37630,"t":"code","b":[201],"m":"ret"},{"a":37631,"l":"start_menu","c":"Starts building a menu: prints SELECT OPTION, clears the count ($5B0A), sets the list pointer ($FF84) to $D1E8 and the print position to row 3, column 23.","t":"code","b":[62,203],"m":"ld","o":"a,$CB","x":[27455,30005,36585]},{"a":37633,"t":"code","b":[205,115,171],"m":"call","oa":43891,"o":"print_text"},{"a":37636,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37637,"t":"code","b":[50,10,91],"m":"ld","oa":23306,"o":"($5B0A),a"},{"a":37640,"t":"code","b":[33,232,209],"m":"ld","o":"hl,$D1E8"},{"a":37643,"t":"code","b":[34,132,255],"m":"ld","oa":65412,"o":"($FF84),hl"},{"a":37646,"t":"code","b":[33,3,23],"m":"ld","o":"hl,$1703"},{"a":37649,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":37652,"t":"code","b":[201],"m":"ret"},{"a":37653,"l":"add_menu_option","c":"Adds option A to the menu list at $D1E8 and counts it.","t":"code","b":[42,132,255],"m":"ld","oa":65412,"o":"hl,($FF84)","x":[27493,27503,27513,27592,27621,27631,27645,27661,27681,27693,27745,27769,27792,27807,27822,27842,27869,27879,27922,27932,27940,30014,30024,36761,37368]},{"a":37656,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":37657,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":37658,"t":"code","b":[34,132,255],"m":"ld","oa":65412,"o":"($FF84),hl"},{"a":37661,"t":"code","b":[33,10,91],"m":"ld","o":"hl,$5B0A"},{"a":37664,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":37665,"t":"code","b":[201],"m":"ret"},{"a":37666,"l":"dispatch_menu","c":"Jumps to the handler, in the table at HL, of the option chosen in the menu ($D1E8 entry $C662).","t":"code","b":[229],"m":"push","o":"hl","x":[27955,30035,36711]},{"a":37667,"t":"code","b":[33,232,209],"m":"ld","o":"hl,$D1E8"},{"a":37670,"t":"code","b":[237,91,98,198],"m":"ld","oa":50786,"o":"de,(menu_choice)"},{"a":37674,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":37676,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":37677,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":37678,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":37679,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":37680,"t":"code","b":[205,156,120],"m":"call","oa":30876,"o":"read_table_word"},{"a":37683,"t":"code","b":[233],"m":"jp","o":"(hl)"},{"a":37684,"l":"cursor_actions","c":"The cursor menu's handlers by option: SELECT-A, NEXT, INFORM, BIG MAP, END TURN, CANCEL, SELECT-G.","t":"word","b":[4,105,81,145,174,143,28,124],"d":[26884,37201,36782,31772]},{"a":37692,"t":"word","b":[50,117,201,145,31,105],"d":[30002,37321,26911]},{"a":37698,"l":"load_figures","c":"Works out the figures of the creature at IX (record) and IY (type) into $D1FB on: action points ($D1FB); flying and ground action points ($FF59, $FF5A; a flying potion gives a creature with no wings twice its ground points to fly with, a speed or super potion doubles both) and the most for its height ($D200); stamina and its most ($D1FC, $D201); constitution and its most ($D1FD, $D202); combat (type byte 4, plus 20 under a strength or super potion, plus the weapon in use's byte 2 for a creature that uses weapons, $D203) divided by the number of times constitution goes into its most, a whole number, so cut only at half or below ($D1FE, at least 1); defence (type byte 5, plus 25 under a protection or super potion, $D204) and the best defence of the weapons it carries.","t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)","x":[26948,30545,36783,37305,39126]},{"a":37701,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":37704,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)"},{"a":37707,"t":"code","b":[50,89,255],"m":"ld","oa":65369,"o":"($FF59),a"},{"a":37710,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":37713,"t":"code","b":[50,90,255],"m":"ld","oa":65370,"o":"($FF5A),a"},{"a":37716,"t":"code","b":[221,126,3],"m":"ld","o":"a,(ix+$03)"},{"a":37719,"t":"code","b":[230,224],"m":"and","o":"$E0"},{"a":37721,"t":"code","b":[7],"m":"rlca"},{"a":37722,"t":"code","b":[7],"m":"rlca"},{"a":37723,"t":"code","b":[7],"m":"rlca"},{"a":37724,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":37725,"t":"code","b":[254,5],"m":"cp","o":"$05"},{"a":37727,"t":"code","b":[32,13],"m":"jr","oa":37742,"o":"nz,$936E"},{"a":37729,"t":"code","b":[58,89,255],"m":"ld","oa":65369,"o":"a,($FF59)"},{"a":37732,"t":"code","b":[183],"m":"or","o":"a"},{"a":37733,"t":"code","b":[32,7],"m":"jr","oa":37742,"o":"nz,$936E"},{"a":37735,"t":"code","b":[58,90,255],"m":"ld","oa":65370,"o":"a,($FF5A)"},{"a":37738,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":37739,"t":"code","b":[50,89,255],"m":"ld","oa":65369,"o":"($FF59),a"},{"a":37742,"t":"code","b":[122],"m":"ld","o":"a,d","x":[37727,37733]},{"a":37743,"t":"code","b":[254,4],"m":"cp","o":"$04"},{"a":37745,"t":"code","b":[40,4],"m":"jr","oa":37751,"o":"z,$9377"},{"a":37747,"t":"code","b":[254,6],"m":"cp","o":"$06"},{"a":37749,"t":"code","b":[32,8],"m":"jr","oa":37759,"o":"nz,$937F"},{"a":37751,"t":"code","b":[33,89,255],"m":"ld","o":"hl,$FF59","x":[37745]},{"a":37754,"t":"code","b":[203,38],"m":"sla","o":"(hl)"},{"a":37756,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":37757,"t":"code","b":[203,38],"m":"sla","o":"(hl)"},{"a":37759,"t":"code","b":[221,229],"m":"push","o":"ix","x":[37749]},{"a":37761,"t":"code","b":[221,42,249,255],"m":"ld","oa":65529,"o":"ix,($FFF9)"},{"a":37765,"t":"code","b":[58,90,255],"m":"ld","oa":65370,"o":"a,($FF5A)"},{"a":37768,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37769,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":37772,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":37774,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37775,"t":"code","b":[40,11],"m":"jr","oa":37788,"o":"z,$939C"},{"a":37777,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":37779,"t":"code","b":[56,7],"m":"jr","oa":37788,"o":"c,$939C"},{"a":37781,"t":"code","b":[58,89,255],"m":"ld","oa":65369,"o":"a,($FF59)"},{"a":37784,"t":"code","b":[183],"m":"or","o":"a"},{"a":37785,"t":"code","b":[40,1],"m":"jr","oa":37788,"o":"z,$939C"},{"a":37787,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37788,"t":"code","b":[33,0,210],"m":"ld","o":"hl,$D200","x":[37775,37779,37785]},{"a":37791,"t":"code","b":[112],"m":"ld","o":"(hl),b"},{"a":37792,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":37795,"t":"code","b":[50,252,209],"m":"ld","oa":53756,"o":"($D1FC),a"},{"a":37798,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)"},{"a":37801,"t":"code","b":[50,1,210],"m":"ld","oa":53761,"o":"($D201),a"},{"a":37804,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":37807,"t":"code","b":[50,253,209],"m":"ld","oa":53757,"o":"($D1FD),a"},{"a":37810,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":37813,"t":"code","b":[50,2,210],"m":"ld","oa":53762,"o":"($D202),a"},{"a":37816,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":37819,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37820,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":37821,"t":"code","b":[254,1],"m":"cp","o":"$01"},{"a":37823,"t":"code","b":[40,6],"m":"jr","oa":37831,"o":"z,$93C7"},{"a":37825,"t":"code","b":[254,6],"m":"cp","o":"$06"},{"a":37827,"t":"code","b":[40,2],"m":"jr","oa":37831,"o":"z,$93C7"},{"a":37829,"t":"code","b":[24,4],"m":"jr","oa":37835,"o":"$93CB"},{"a":37831,"t":"code","b":[62,20],"m":"ld","o":"a,$14","x":[37823,37827]},{"a":37833,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":37834,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37835,"t":"code","b":[253,229],"m":"push","o":"iy","x":[37829]},{"a":37837,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":37840,"t":"code","b":[183],"m":"or","o":"a"},{"a":37841,"t":"code","b":[40,23],"m":"jr","oa":37866,"o":"z,$93EA"},{"a":37843,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37844,"t":"code","b":[253,203,11,86],"m":"bit","o":"2,(iy+$0B)"},{"a":37848,"t":"code","b":[40,16],"m":"jr","oa":37866,"o":"z,$93EA"},{"a":37850,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":37853,"t":"code","b":[205,160,148],"m":"call","oa":38048,"o":"object_record"},{"a":37856,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37857,"t":"code","b":[253,203,5,70],"m":"bit","o":"0,(iy+$05)"},{"a":37861,"t":"code","b":[40,3],"m":"jr","oa":37866,"o":"z,$93EA"},{"a":37863,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)"},{"a":37866,"t":"code","b":[253,225],"m":"pop","o":"iy","x":[37841,37848,37861]},{"a":37868,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":37869,"t":"code","b":[50,3,210],"m":"ld","oa":53763,"o":"($D203),a"},{"a":37872,"t":"code","b":[58,253,209],"m":"ld","oa":53757,"o":"a,($D1FD)"},{"a":37875,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37876,"t":"code","b":[58,2,210],"m":"ld","oa":53762,"o":"a,($D202)"},{"a":37879,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":37882,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37883,"t":"code","b":[197],"m":"push","o":"bc"},{"a":37884,"t":"code","b":[58,3,210],"m":"ld","oa":53763,"o":"a,($D203)"},{"a":37887,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":37890,"t":"code","b":[183],"m":"or","o":"a"},{"a":37891,"t":"code","b":[32,1],"m":"jr","oa":37894,"o":"nz,$9406"},{"a":37893,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37894,"t":"code","b":[50,254,209],"m":"ld","oa":53758,"o":"($D1FE),a","x":[37891]},{"a":37897,"t":"code","b":[253,126,5],"m":"ld","o":"a,(iy+$05)"},{"a":37900,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37901,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":37902,"t":"code","b":[254,2],"m":"cp","o":"$02"},{"a":37904,"t":"code","b":[40,6],"m":"jr","oa":37912,"o":"z,$9418"},{"a":37906,"t":"code","b":[254,6],"m":"cp","o":"$06"},{"a":37908,"t":"code","b":[40,2],"m":"jr","oa":37912,"o":"z,$9418"},{"a":37910,"t":"code","b":[24,4],"m":"jr","oa":37916,"o":"$941C"},{"a":37912,"t":"code","b":[62,25],"m":"ld","o":"a,$19","x":[37904,37908]},{"a":37914,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":37915,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37916,"t":"code","b":[120],"m":"ld","o":"a,b","x":[37910]},{"a":37917,"t":"code","b":[50,4,210],"m":"ld","oa":53764,"o":"($D204),a"},{"a":37920,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":37922,"t":"code","b":[253,203,11,86],"m":"bit","o":"2,(iy+$0B)"},{"a":37926,"t":"code","b":[40,40],"m":"jr","oa":37968,"o":"z,$9450"},{"a":37928,"t":"code","b":[205,70,103],"m":"call","oa":26438,"o":"list_found_carries"},{"a":37931,"t":"code","b":[33,193,209],"m":"ld","o":"hl,$D1C1"},{"a":37934,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":37936,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":37939,"t":"code","b":[183],"m":"or","o":"a"},{"a":37940,"t":"code","b":[40,26],"m":"jr","oa":37968,"o":"z,$9450"},{"a":37942,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37943,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[37966]},{"a":37944,"t":"code","b":[253,229],"m":"push","o":"iy"},{"a":37946,"t":"code","b":[205,160,148],"m":"call","oa":38048,"o":"object_record"},{"a":37949,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":37952,"t":"code","b":[253,203,5,70],"m":"bit","o":"0,(iy+$05)"},{"a":37956,"t":"code","b":[253,225],"m":"pop","o":"iy"},{"a":37958,"t":"code","b":[40,4],"m":"jr","oa":37964,"o":"z,$944C"},{"a":37960,"t":"code","b":[185],"m":"cp","o":"c"},{"a":37961,"t":"code","b":[56,1],"m":"jr","oa":37964,"o":"c,$944C"},{"a":37963,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":37964,"t":"code","b":[35],"m":"inc","o":"hl","x":[37958,37961]},{"a":37965,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":37966,"t":"code","b":[16,231],"m":"djnz","oa":37943,"o":"$9437"},{"a":37968,"t":"code","b":[58,4,210],"m":"ld","oa":53764,"o":"a,($D204)","x":[37926,37940]},{"a":37971,"t":"code","b":[129],"m":"add","o":"a,c"},{"a":37972,"t":"code","b":[50,4,210],"m":"ld","oa":53764,"o":"($D204),a"},{"a":37975,"c":"A wizard under a magic shield ($D054, by wizard) gets four times the shield plus 12 more defence, up to 255. The defence is then divided by the same number as combat, into $D1FF (at least 1). $5B44 is the index of the creature it carries as rider, or $FD.","t":"code","b":[42,249,255],"m":"ld","oa":65529,"o":"hl,($FFF9)"},{"a":37978,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":37979,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":37980,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":37981,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":37983,"t":"code","b":[48,28],"m":"jr","oa":38013,"o":"nc,$947D"},{"a":37985,"t":"code","b":[214,140],"m":"sub","o":"$8C"},{"a":37987,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":37988,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":37990,"t":"code","b":[33,84,208],"m":"ld","o":"hl,$D054"},{"a":37993,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":37994,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":37995,"t":"code","b":[183],"m":"or","o":"a"},{"a":37996,"t":"code","b":[40,15],"m":"jr","oa":38013,"o":"z,$947D"},{"a":37998,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":37999,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":38000,"t":"code","b":[198,12],"m":"add","o":"a,$0C"},{"a":38002,"t":"code","b":[33,4,210],"m":"ld","o":"hl,$D204"},{"a":38005,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":38006,"t":"code","b":[48,2],"m":"jr","oa":38010,"o":"nc,$947A"},{"a":38008,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":38010,"t":"code","b":[50,4,210],"m":"ld","oa":53764,"o":"($D204),a","x":[38006]},{"a":38013,"t":"code","b":[58,4,210],"m":"ld","oa":53764,"o":"a,($D204)","x":[37983,37996]},{"a":38016,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":38017,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":38020,"t":"code","b":[183],"m":"or","o":"a"},{"a":38021,"t":"code","b":[32,1],"m":"jr","oa":38024,"o":"nz,$9488"},{"a":38023,"t":"code","b":[60],"m":"inc","o":"a"},{"a":38024,"t":"code","b":[50,255,209],"m":"ld","oa":53759,"o":"($D1FF),a","x":[38021]},{"a":38027,"t":"code","b":[62,253],"m":"ld","o":"a,$FD"},{"a":38029,"t":"code","b":[50,68,91],"m":"ld","oa":23364,"o":"($5B44),a"},{"a":38032,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":38035,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":38037,"t":"code","b":[216],"m":"ret","o":"c"},{"a":38038,"t":"code","b":[58,218,208],"m":"ld","oa":53466,"o":"a,($D0DA)"},{"a":38041,"t":"code","b":[50,68,91],"m":"ld","oa":23364,"o":"($5B44),a"},{"a":38044,"t":"code","b":[201],"m":"ret"},{"a":38045,"l":"object_record_of","c":"object_record for the type of the entry at IX.","t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)","x":[26620,29939,31750,41151]},{"a":38048,"l":"object_record","c":"IY = the record of object type A ($50 up): six bytes each from ($D005) in the scenario.","t":"code","b":[229],"m":"push","o":"hl","x":[28383,28848,28994,29915,31345,31444,32808,37853,37946,41291,41750,45948]},{"a":38049,"t":"code","b":[213],"m":"push","o":"de"},{"a":38050,"t":"code","b":[214,80],"m":"sub","o":"$50"},{"a":38052,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":38053,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":38055,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":38056,"t":"code","b":[84],"m":"ld","o":"d,h"},{"a":38057,"t":"code","b":[93],"m":"ld","o":"e,l"},{"a":38058,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":38059,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":38060,"t":"code","b":[237,91,5,208],"m":"ld","oa":53253,"o":"de,($D005)"},{"a":38064,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":38065,"t":"code","b":[229],"m":"push","o":"hl"},{"a":38066,"t":"code","b":[253,225],"m":"pop","o":"iy"},{"a":38068,"t":"code","b":[209],"m":"pop","o":"de"},{"a":38069,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":38070,"t":"code","b":[201],"m":"ret"},{"a":38071,"l":"divide","c":"A = A / B, by repeated subtraction. Dividing by 0 turns the border magenta and returns 0, a check left in by the authors.","t":"code","b":[245],"m":"push","o":"af","x":[29756,30299,30320,30327,30353,30455,30575,31454,37879,37887,38017,41173,41796,44675,44699]},{"a":38072,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":38073,"t":"code","b":[183],"m":"or","o":"a"},{"a":38074,"t":"code","b":[32,8],"m":"jr","oa":38084,"o":"nz,$94C4"},{"a":38076,"t":"code","b":[241],"m":"pop","o":"af"},{"a":38077,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":38079,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":38081,"t":"code","b":[62,0],"m":"ld","o":"a,$00"},{"a":38083,"t":"code","b":[201],"m":"ret"},{"a":38084,"t":"code","b":[241],"m":"pop","o":"af","x":[38074]},{"a":38085,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":38087,"t":"code","b":[144],"m":"sub","o":"b","x":[38091]},{"a":38088,"t":"code","b":[56,3],"m":"jr","oa":38093,"o":"c,$94CD"},{"a":38090,"t":"code","b":[12],"m":"inc","o":"c"},{"a":38091,"t":"code","b":[24,250],"m":"jr","oa":38087,"o":"$94C7"},{"a":38093,"t":"code","b":[121],"m":"ld","o":"a,c","x":[38088]},{"a":38094,"t":"code","b":[201],"m":"ret"},{"a":38095,"l":"key_repeat_slow","c":"key_repeat with long waits: $DC polls for a held control the first time, $5A after.","t":"code","b":[62,90],"m":"ld","o":"a,$5A","x":[52070]},{"a":38097,"t":"code","b":[50,8,91],"m":"ld","oa":23304,"o":"($5B08),a"},{"a":38100,"t":"code","b":[62,220],"m":"ld","o":"a,$DC"},{"a":38102,"t":"code","b":[50,9,91],"m":"ld","oa":23305,"o":"($5B09),a"},{"a":38105,"t":"code","b":[24,10],"m":"jr","oa":38117,"o":"$94E5"},{"a":38107,"l":"key_repeat","c":"The wait between moves of a menu bar while a control is held: none once it is let go ($5B1E cleared); otherwise $32 polls ($5B09) the first time and $14 ($5B08) after, each a short delay ($9510), ending early when the control is let go.","t":"code","b":[62,20],"m":"ld","o":"a,$14","x":[28572,33377,37464]},{"a":38109,"t":"code","b":[50,8,91],"m":"ld","oa":23304,"o":"($5B08),a"},{"a":38112,"t":"code","b":[62,50],"m":"ld","o":"a,$32"},{"a":38114,"t":"code","b":[50,9,91],"m":"ld","oa":23305,"o":"($5B09),a"},{"a":38117,"t":"code","b":[33,30,91],"m":"ld","o":"hl,$5B1E","x":[38105]},{"a":38120,"t":"code","b":[17,19,91],"m":"ld","o":"de,$5B13"},{"a":38123,"t":"code","b":[26],"m":"ld","o":"a,(de)"},{"a":38124,"t":"code","b":[60],"m":"inc","o":"a"},{"a":38125,"t":"code","b":[32,2],"m":"jr","oa":38129,"o":"nz,$94F1"},{"a":38127,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":38128,"t":"code","b":[201],"m":"ret"},{"a":38129,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[38125]},{"a":38130,"t":"code","b":[183],"m":"or","o":"a"},{"a":38131,"t":"code","b":[58,8,91],"m":"ld","oa":23304,"o":"a,($5B08)"},{"a":38134,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":38135,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":38137,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":38138,"t":"code","b":[32,4],"m":"jr","oa":38144,"o":"nz,$9500"},{"a":38140,"t":"code","b":[58,9,91],"m":"ld","oa":23305,"o":"a,($5B09)"},{"a":38143,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":38144,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)","x":[38138,38157]},{"a":38147,"t":"code","b":[60],"m":"inc","o":"a"},{"a":38148,"t":"code","b":[200],"m":"ret","o":"z"},{"a":38149,"t":"code","b":[197],"m":"push","o":"bc"},{"a":38150,"t":"code","b":[205,16,149],"m":"call","oa":38160,"o":"delay_2"},{"a":38153,"t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls"},{"a":38156,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":38157,"t":"code","b":[16,241],"m":"djnz","oa":38144,"o":"$9500"},{"a":38159,"t":"code","b":[201],"m":"ret"},{"a":38160,"l":"delay_2","c":"A delay of 2 x 255 turns of an empty loop.","t":"code","b":[197],"m":"push","o":"bc","x":[31917,38150]},{"a":38161,"t":"code","b":[6,2],"m":"ld","o":"b,$02"},{"a":38163,"t":"code","b":[24,18],"m":"jr","oa":38183,"o":"$9527"},{"a":38165,"l":"delay_20","c":"A delay of $14 x 255 turns.","t":"code","b":[197],"m":"push","o":"bc","x":[36482,37334]},{"a":38166,"t":"code","b":[6,20],"m":"ld","o":"b,$14"},{"a":38168,"t":"code","b":[24,13],"m":"jr","oa":38183,"o":"$9527"},{"a":38170,"l":"delay_255","c":"A delay of 255 x 255 turns.","t":"code","b":[197],"m":"push","o":"bc","x":[31418,50801,51045]},{"a":38171,"t":"code","b":[6,255],"m":"ld","o":"b,$FF"},{"a":38173,"t":"code","b":[24,8],"m":"jr","oa":38183,"o":"$9527"},{"a":38175,"l":"delay_8","c":"A delay of 8 x 255 turns.","t":"code","b":[197],"m":"push","o":"bc","x":[31170]},{"a":38176,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":38178,"t":"code","b":[24,3],"m":"jr","oa":38183,"o":"$9527"},{"a":38180,"l":"delay_50","c":"A delay of $32 x 255 turns.","t":"code","b":[197],"m":"push","o":"bc","x":[43754]},{"a":38181,"t":"code","b":[6,50],"m":"ld","o":"b,$32"},{"a":38183,"t":"code","b":[197],"m":"push","o":"bc","x":[38163,38168,38173,38178,38189]},{"a":38184,"t":"code","b":[6,255],"m":"ld","o":"b,$FF"},{"a":38186,"t":"code","b":[16,254],"m":"djnz","oa":38186,"o":"$952A","x":[38186]},{"a":38188,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":38189,"t":"code","b":[16,248],"m":"djnz","oa":38183,"o":"$9527"},{"a":38191,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":38192,"t":"code","b":[201],"m":"ret"},{"a":38193,"l":"game_font","c":"The game's own character set, eight bytes a character from character 0, which the panels and boxes are built from (the messages at $CE00 through print_panel): a blank, the frame's corners and edges, the icons of the information display and the bars. 49 characters, to $96B8.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":38201,"t":"byte","b":[0,30,58,122,122,66,126,0]},{"a":38209,"t":"byte","b":[0,0,255,255,0,255,0,0]},{"a":38217,"t":"byte","b":[0,120,124,122,122,66,126,0]},{"a":38225,"t":"byte","b":[52,52,52,52,52,52,52,52]},{"a":38233,"t":"byte","b":[0,126,122,122,122,66,126,0]},{"a":38241,"t":"byte","b":[0,126,122,122,122,34,30,0]},{"a":38249,"t":"byte","b":[0,126,122,122,122,66,126,0]},{"a":38257,"t":"byte","b":[0,126,122,122,122,68,120,0]},{"a":38265,"t":"byte","b":[0,31,63,127,113,97,97,98]},{"a":38273,"t":"byte","b":[0,248,252,254,142,134,134,70]},{"a":38281,"t":"byte","b":[60,28,15,10,5,15,7,0]},{"a":38289,"t":"byte","b":[60,56,240,160,80,240,224,0]},{"a":38297,"t":"byte","b":[0,0,1,7,30,61,59,59]},{"a":38305,"t":"byte","b":[0,128,132,140,56,244,200,112]},{"a":38313,"t":"byte","b":[59,55,119,111,31,28,0,0]},{"a":38321,"t":"byte","b":[200,112,192,96,128,0,0,0]},{"a":38329,"t":"byte","b":[0,0,3,3,3,3,6,0]},{"a":38337,"t":"byte","b":[0,0,224,224,224,224,224,224]},{"a":38345,"t":"byte","b":[30,38,66,67,123,3,0,0]},{"a":38353,"t":"byte","b":[216,220,220,110,182,182,96,0]},{"a":38361,"t":"byte","b":[0,4,4,14,14,29,25,14]},{"a":38369,"t":"byte","b":[0,0,0,0,0,32,32,112]},{"a":38377,"t":"byte","b":[0,0,1,1,1,0,0,0]},{"a":38385,"t":"byte","b":[80,232,228,228,228,200,112,0]},{"a":38393,"t":"byte","b":[0,5,16,7,90,39,79,78]},{"a":38401,"t":"byte","b":[0,192,16,228,216,164,242,113]},{"a":38409,"t":"byte","b":[142,207,39,90,39,8,3,0]},{"a":38417,"t":"byte","b":[97,242,164,216,224,16,64,0]},{"a":38425,"t":"byte","b":[0,127,127,120,112,113,99,103]},{"a":38433,"t":"byte","b":[0,254,254,30,30,30,30,158]},{"a":38441,"t":"byte","b":[115,121,124,121,127,127,127,0]},{"a":38449,"t":"byte","b":[142,206,230,242,230,254,254,0]},{"a":38457,"t":"byte","b":[0,127,124,124,120,120,112,112]},{"a":38465,"t":"byte","b":[0,254,14,30,62,126,254,6]},{"a":38473,"t":"byte","b":[127,127,127,126,124,125,127,0]},{"a":38481,"t":"byte","b":[142,30,62,126,254,254,254,0]},{"a":38489,"t":"byte","b":[0,127,127,99,65,64,64,64]},{"a":38497,"t":"byte","b":[0,254,254,198,130,2,2,2]},{"a":38505,"t":"byte","b":[96,96,112,120,124,126,127,0]},{"a":38513,"t":"byte","b":[6,6,14,30,62,126,254,0]},{"a":38521,"t":"byte","b":[0,127,127,127,127,127,127,114]},{"a":38529,"t":"byte","b":[0,254,254,230,198,142,30,62]},{"a":38537,"t":"byte","b":[120,120,112,99,103,127,127,0]},{"a":38545,"t":"byte","b":[126,254,126,126,254,254,254,0]},{"a":38553,"t":"byte","b":[0,127,127,111,102,96,96,96]},{"a":38561,"t":"byte","b":[0,254,254,246,102,6,6,6]},{"a":38569,"t":"byte","b":[96,112,112,120,124,126,127,0]},{"a":38577,"t":"byte","b":[6,14,14,30,62,126,254,0]},{"a":38585,"l":"debug_count","c":"The counter debug_probe prints.","t":"byte","b":[0]},{"a":38586,"l":"debug_probe","c":"A routine nothing calls, left in by the authors: it counts debug_count up, prints it at row 21, column 0, just above the message line, in the ROM's font, yellow on red and waits for the controls to be let go and fire pressed, keeping every register. A breakpoint they could drop into any routine with a CALL.","t":"code","b":[245],"m":"push","o":"af"},{"a":38587,"t":"code","b":[197],"m":"push","o":"bc"},{"a":38588,"t":"code","b":[213],"m":"push","o":"de"},{"a":38589,"t":"code","b":[229],"m":"push","o":"hl"},{"a":38590,"t":"code","b":[33,23,91],"m":"ld","o":"hl,$5B17"},{"a":38593,"t":"code","b":[54,86],"m":"ld","o":"(hl),$56"},{"a":38595,"t":"code","b":[33,21,0],"m":"ld","o":"hl,$0015"},{"a":38598,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":38601,"t":"code","b":[33,20,91],"m":"ld","o":"hl,$5B14"},{"a":38604,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":38606,"t":"code","b":[33,0,60],"m":"ld","o":"hl,$3C00"},{"a":38609,"t":"code","b":[34,14,91],"m":"ld","oa":23310,"o":"($5B0E),hl"},{"a":38612,"t":"code","b":[33,185,150],"m":"ld","o":"hl,$96B9"},{"a":38615,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":38616,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":38617,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number"},{"a":38620,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16"},{"a":38623,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":38624,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":38627,"t":"code","b":[205,233,145],"m":"call","oa":37353,"o":"wait_fire"},{"a":38630,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":38631,"t":"code","b":[209],"m":"pop","o":"de"},{"a":38632,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":38633,"t":"code","b":[241],"m":"pop","o":"af"},{"a":38634,"t":"code","b":[201],"m":"ret"},{"a":38635,"l":"computer_turn","c":"A turn the computer plays: the independent creatures' (player 0) and, in a game against the computer, player 2's. $D063 (computer moving) and $D066 (turn hidden) are set while every creature the player owns that is not riding is moved in turn ($974E), $D186 counting the entries of the object table.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[24900,24948]},{"a":38637,"t":"code","b":[50,99,208],"m":"ld","oa":53347,"o":"($D063),a"},{"a":38640,"t":"code","b":[50,102,208],"m":"ld","oa":53350,"o":"($D066),a"},{"a":38643,"t":"code","b":[50,187,209],"m":"ld","oa":53691,"o":"($D1BB),a"},{"a":38646,"t":"code","b":[33,90,91],"m":"ld","o":"hl,$5B5A"},{"a":38649,"t":"code","b":[34,132,209],"m":"ld","oa":53636,"o":"($D184),hl"},{"a":38652,"t":"code","b":[175],"m":"xor","o":"a"},{"a":38653,"t":"code","b":[50,134,209],"m":"ld","oa":53638,"o":"($D186),a"},{"a":38656,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":38658,"t":"code","b":[197],"m":"push","o":"bc","x":[38706]},{"a":38659,"t":"code","b":[175],"m":"xor","o":"a"},{"a":38660,"t":"code","b":[50,73,152],"m":"ld","oa":38985,"o":"(computer_steps),a"},{"a":38663,"t":"code","b":[221,42,132,209],"m":"ld","oa":53636,"o":"ix,($D184)"},{"a":38667,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":38670,"t":"code","b":[60],"m":"inc","o":"a"},{"a":38671,"t":"code","b":[40,18],"m":"jr","oa":38691,"o":"z,$9723"},{"a":38673,"t":"code","b":[254,141],"m":"cp","o":"$8D"},{"a":38675,"t":"code","b":[56,14],"m":"jr","oa":38691,"o":"c,$9723"},{"a":38677,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying"},{"a":38680,"t":"code","b":[56,9],"m":"jr","oa":38691,"o":"c,$9723"},{"a":38682,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":38685,"t":"code","b":[205,195,97],"m":"call","oa":25027,"o":"owner_is_player"},{"a":38688,"t":"code","b":[204,78,151],"m":"call","oa":38734,"o":"z,computer_move_creature"},{"a":38691,"t":"code","b":[193],"m":"pop","o":"bc","x":[38671,38675,38680]},{"a":38692,"t":"code","b":[42,132,209],"m":"ld","oa":53636,"o":"hl,($D184)"},{"a":38695,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":38698,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":38699,"t":"code","b":[34,132,209],"m":"ld","oa":53636,"o":"($D184),hl"},{"a":38702,"t":"code","b":[33,134,209],"m":"ld","o":"hl,$D186"},{"a":38705,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":38706,"t":"code","b":[16,206],"m":"djnz","oa":38658,"o":"$9702"},{"a":38708,"t":"code","b":[175],"m":"xor","o":"a"},{"a":38709,"t":"code","b":[50,99,208],"m":"ld","oa":53347,"o":"($D063),a"},{"a":38712,"t":"code","b":[50,102,208],"m":"ld","oa":53350,"o":"($D066),a"},{"a":38715,"t":"code","b":[201],"m":"ret"},{"a":38716,"l":"clear_plan","c":"Clears the computer's scratch area $D0E4-$D11F to $FF and $D188.","t":"code","b":[33,228,208],"m":"ld","o":"hl,$D0E4","x":[30628,38735]},{"a":38719,"t":"code","b":[17,229,208],"m":"ld","o":"de,$D0E5"},{"a":38722,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":38724,"t":"code","b":[1,59,0],"m":"ld","o":"bc,$003B"},{"a":38727,"t":"code","b":[237,176],"m":"ldir"},{"a":38729,"t":"code","b":[175],"m":"xor","o":"a"},{"a":38730,"t":"code","b":[50,136,209],"m":"ld","oa":53640,"o":"($D188),a"},{"a":38733,"t":"code","b":[201],"m":"ret"},{"a":38734,"l":"computer_move_creature","c":"Plays one computer creature ($D186): loads it ($98E4) and finds its entry in the computer's list ($994E, into $D182; bit 7 of byte 3 into $D1BA), skipping it when bit 6 of that byte is set (an order to wait), unless it noted an enemy when it was loaded ($D188), which clears the bit. Then up to 50 steps ($9849), each deciding what to do: with no partner on its square, the checks for drinking, eating, using, picking up and spells ($A196, $A382, $A0F0, $A279, $A2FC, $A5BD, $A22B, $9E3A); then the fight and move choices ($9CC5, $9E7D, $9DAD, $A021, $9992, $9A0D, $9858, $A1ED, $9AF3), until $D181 says it is done. Fifty steps turn the border red, a check left in. Then END MOVE.","t":"code","b":[243],"m":"di","x":[38688]},{"a":38735,"t":"code","b":[205,60,151],"m":"call","oa":38716,"o":"clear_plan"},{"a":38738,"t":"code","b":[205,228,152],"m":"call","oa":39140,"o":"computer_load_creature"},{"a":38741,"t":"code","b":[58,134,209],"m":"ld","oa":53638,"o":"a,($D186)"},{"a":38744,"t":"code","b":[205,78,153],"m":"call","oa":39246,"o":"find_in_list"},{"a":38747,"t":"code","b":[34,130,209],"m":"ld","oa":53634,"o":"($D182),hl"},{"a":38750,"t":"code","b":[32,7],"m":"jr","oa":38759,"o":"nz,$9767"},{"a":38752,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":38755,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":38756,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":38757,"t":"code","b":[230,128],"m":"and","o":"$80"},{"a":38759,"t":"code","b":[50,186,209],"m":"ld","oa":53690,"o":"($D1BA),a","x":[38750]},{"a":38762,"t":"code","b":[42,130,209],"m":"ld","oa":53634,"o":"hl,($D182)"},{"a":38765,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":38768,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":38769,"t":"code","b":[58,136,209],"m":"ld","oa":53640,"o":"a,($D188)"},{"a":38772,"t":"code","b":[183],"m":"or","o":"a"},{"a":38773,"t":"code","b":[40,2],"m":"jr","oa":38777,"o":"z,$9779"},{"a":38775,"t":"code","b":[203,182],"m":"res","o":"6,(hl)"},{"a":38777,"t":"code","b":[203,118],"m":"bit","o":"6,(hl)","x":[38773]},{"a":38779,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":38780,"t":"code","b":[205,36,153],"m":"call","oa":39204,"o":"computer_combat_figures"},{"a":38783,"t":"code","b":[205,179,154],"m":"call","oa":39603,"o":"forget_trail"},{"a":38786,"t":"code","b":[205,220,154],"m":"call","oa":39644,"o":"remember_square"},{"a":38789,"t":"code","b":[175],"m":"xor","o":"a"},{"a":38790,"t":"code","b":[50,155,209],"m":"ld","oa":53659,"o":"($D19B),a"},{"a":38793,"t":"code","b":[50,188,209],"m":"ld","oa":53692,"o":"($D1BC),a"},{"a":38796,"t":"code","b":[50,152,209],"m":"ld","oa":53656,"o":"($D198),a"},{"a":38799,"t":"code","b":[50,142,209],"m":"ld","oa":53646,"o":"($D18E),a"},{"a":38802,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":38805,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[38970]},{"a":38807,"t":"code","b":[50,13,91],"m":"ld","oa":23309,"o":"($5B0D),a"},{"a":38810,"t":"code","b":[205,86,113],"m":"call","oa":29014,"o":"find_partner"},{"a":38813,"t":"code","b":[32,6],"m":"jr","oa":38821,"o":"nz,$97A5"},{"a":38815,"t":"code","b":[175],"m":"xor","o":"a"},{"a":38816,"t":"code","b":[50,13,91],"m":"ld","oa":23309,"o":"($5B0D),a"},{"a":38819,"t":"code","b":[24,24],"m":"jr","oa":38845,"o":"$97BD"},{"a":38821,"t":"code","b":[205,150,161],"m":"call","oa":41366,"o":"computer_drink","x":[38813]},{"a":38824,"t":"code","b":[205,130,163],"m":"call","oa":41858,"o":"computer_cast"},{"a":38827,"t":"code","b":[205,240,160],"m":"call","oa":41200,"o":"computer_pick_up"},{"a":38830,"t":"code","b":[205,121,162],"m":"call","oa":41593,"o":"computer_choose_vial"},{"a":38833,"t":"code","b":[205,252,162],"m":"call","oa":41724,"o":"computer_eat"},{"a":38836,"t":"code","b":[205,189,165],"m":"call","oa":42429,"o":"computer_deliver"},{"a":38839,"t":"code","b":[205,43,162],"m":"call","oa":41515,"o":"computer_choose_weapon"},{"a":38842,"t":"code","b":[205,58,158],"m":"call","oa":40506,"o":"computer_take_off"},{"a":38845,"t":"code","b":[175],"m":"xor","o":"a","x":[38819]},{"a":38846,"t":"code","b":[50,155,209],"m":"ld","oa":53659,"o":"($D19B),a"},{"a":38849,"t":"code","b":[58,13,91],"m":"ld","oa":23309,"o":"a,($5B0D)"},{"a":38852,"t":"code","b":[183],"m":"or","o":"a"},{"a":38853,"t":"code","b":[40,17],"m":"jr","oa":38872,"o":"z,$97D8"},{"a":38855,"t":"code","b":[205,197,156],"m":"call","oa":40133,"o":"computer_shoot"},{"a":38858,"t":"code","b":[58,138,209],"m":"ld","oa":53642,"o":"a,($D18A)"},{"a":38861,"t":"code","b":[183],"m":"or","o":"a"},{"a":38862,"t":"code","b":[194,23,152],"m":"jp","oa":38935,"o":"nz,$9817"},{"a":38865,"t":"code","b":[58,129,209],"m":"ld","oa":53633,"o":"a,($D181)"},{"a":38868,"t":"code","b":[183],"m":"or","o":"a"},{"a":38869,"t":"code","b":[194,23,152],"m":"jp","oa":38935,"o":"nz,$9817"},{"a":38872,"t":"code","b":[205,125,158],"m":"call","oa":40573,"o":"computer_flee","x":[38853]},{"a":38875,"t":"code","b":[58,152,209],"m":"ld","oa":53656,"o":"a,($D198)"},{"a":38878,"t":"code","b":[183],"m":"or","o":"a"},{"a":38879,"t":"code","b":[32,42],"m":"jr","oa":38923,"o":"nz,$980B"},{"a":38881,"t":"code","b":[205,173,157],"m":"call","oa":40365,"o":"computer_find_prey"},{"a":38884,"t":"code","b":[58,140,209],"m":"ld","oa":53644,"o":"a,($D18C)"},{"a":38887,"t":"code","b":[183],"m":"or","o":"a"},{"a":38888,"t":"code","b":[32,33],"m":"jr","oa":38923,"o":"nz,$980B"},{"a":38890,"t":"code","b":[205,33,160],"m":"call","oa":40993,"o":"computer_seek_object"},{"a":38893,"t":"code","b":[58,155,209],"m":"ld","oa":53659,"o":"a,($D19B)"},{"a":38896,"t":"code","b":[183],"m":"or","o":"a"},{"a":38897,"t":"code","b":[40,21],"m":"jr","oa":38920,"o":"z,$9808"},{"a":38899,"t":"code","b":[58,155,209],"m":"ld","oa":53659,"o":"a,($D19B)"},{"a":38902,"t":"code","b":[254,122],"m":"cp","o":"$7A"},{"a":38904,"t":"code","b":[40,17],"m":"jr","oa":38923,"o":"z,$980B"},{"a":38906,"t":"code","b":[254,123],"m":"cp","o":"$7B"},{"a":38908,"t":"code","b":[40,13],"m":"jr","oa":38923,"o":"z,$980B"},{"a":38910,"t":"code","b":[205,74,152],"m":"call","oa":38986,"o":"at_target"},{"a":38913,"t":"code","b":[40,40],"m":"jr","oa":38955,"o":"z,$982B"},{"a":38915,"t":"code","b":[175],"m":"xor","o":"a"},{"a":38916,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":38918,"t":"code","b":[24,3],"m":"jr","oa":38923,"o":"$980B"},{"a":38920,"t":"code","b":[205,146,153],"m":"call","oa":39314,"o":"computer_choose_target","x":[38897]},{"a":38923,"t":"code","b":[205,13,154],"m":"call","oa":39437,"o":"rank_neighbours","x":[38879,38888,38904,38908,38918]},{"a":38926,"t":"code","b":[205,88,152],"m":"call","oa":39000,"o":"computer_maybe_land"},{"a":38929,"t":"code","b":[205,237,161],"m":"call","oa":41453,"o":"computer_open_chest"},{"a":38932,"t":"code","b":[205,243,154],"m":"call","oa":39667,"o":"computer_try_steps"},{"a":38935,"t":"code","b":[175],"m":"xor","o":"a","x":[38862,38869,39364,41363,41512,42231,42715]},{"a":38936,"t":"code","b":[50,142,209],"m":"ld","oa":53646,"o":"($D18E),a"},{"a":38939,"t":"code","b":[58,154,209],"m":"ld","oa":53658,"o":"a,($D19A)"},{"a":38942,"t":"code","b":[183],"m":"or","o":"a"},{"a":38943,"t":"code","b":[40,10],"m":"jr","oa":38955,"o":"z,$982B"},{"a":38945,"t":"code","b":[205,74,152],"m":"call","oa":38986,"o":"at_target"},{"a":38948,"t":"code","b":[32,5],"m":"jr","oa":38955,"o":"nz,$982B"},{"a":38950,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":38952,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":38955,"t":"code","b":[58,73,152],"m":"ld","oa":38985,"o":"a,(computer_steps)","x":[38913,38943,38948]},{"a":38958,"t":"code","b":[60],"m":"inc","o":"a"},{"a":38959,"t":"code","b":[50,73,152],"m":"ld","oa":38985,"o":"(computer_steps),a"},{"a":38962,"t":"code","b":[254,50],"m":"cp","o":"$32"},{"a":38964,"t":"code","b":[40,11],"m":"jr","oa":38977,"o":"z,$9841"},{"a":38966,"t":"code","b":[58,129,209],"m":"ld","oa":53633,"o":"a,($D181)"},{"a":38969,"t":"code","b":[183],"m":"or","o":"a"},{"a":38970,"t":"code","b":[202,149,151],"m":"jp","oa":38805,"o":"z,$9795"},{"a":38973,"t":"code","b":[205,166,106],"m":"call","oa":27302,"o":"end_move"},{"a":38976,"t":"code","b":[201],"m":"ret"},{"a":38977,"t":"code","b":[62,2],"m":"ld","o":"a,$02","x":[38964]},{"a":38979,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":38981,"t":"code","b":[205,166,106],"m":"call","oa":27302,"o":"end_move"},{"a":38984,"t":"code","b":[201],"m":"ret"},{"a":38985,"l":"computer_steps","c":"The steps computer_move_creature has taken with the current creature.","t":"byte","b":[0],"x":[38660,38955,38959]},{"a":38986,"l":"at_target","c":"Z set when the selected creature stands on the computer's target square ($D1B6).","t":"code","b":[58,85,91],"m":"ld","oa":23381,"o":"a,($5B55)","x":[38910,38945,41205]},{"a":38989,"t":"code","b":[33,182,209],"m":"ld","o":"hl,$D1B6"},{"a":38992,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":38993,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":38994,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":38995,"t":"code","b":[58,86,91],"m":"ld","oa":23382,"o":"a,($5B56)"},{"a":38998,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":38999,"t":"code","b":[201],"m":"ret"},{"a":39000,"l":"computer_maybe_land","c":"Whether the computer's flying creature should land: not when it is on the ground or done ($D198); a flying creature with no target object or move ($D19B, $D18C) that is not a wizard stays up; otherwise, once it has made its step ($D18E), it lands when it may, unless its target is a chest and it can carry nothing more ($D17A).","t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)","x":[38926]},{"a":39003,"t":"code","b":[60],"m":"inc","o":"a"},{"a":39004,"t":"code","b":[200],"m":"ret","o":"z"},{"a":39005,"t":"code","b":[58,152,209],"m":"ld","oa":53656,"o":"a,($D198)"},{"a":39008,"t":"code","b":[183],"m":"or","o":"a"},{"a":39009,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":39010,"t":"code","b":[58,155,209],"m":"ld","oa":53659,"o":"a,($D19B)"},{"a":39013,"t":"code","b":[183],"m":"or","o":"a"},{"a":39014,"t":"code","b":[32,12],"m":"jr","oa":39028,"o":"nz,$9874"},{"a":39016,"t":"code","b":[58,140,209],"m":"ld","oa":53644,"o":"a,($D18C)"},{"a":39019,"t":"code","b":[183],"m":"or","o":"a"},{"a":39020,"t":"code","b":[32,6],"m":"jr","oa":39028,"o":"nz,$9874"},{"a":39022,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":39025,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":39027,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":39028,"t":"code","b":[58,142,209],"m":"ld","oa":53646,"o":"a,($D18E)","x":[39014,39020]},{"a":39031,"t":"code","b":[183],"m":"or","o":"a"},{"a":39032,"t":"code","b":[200],"m":"ret","o":"z"},{"a":39033,"t":"code","b":[58,155,209],"m":"ld","oa":53659,"o":"a,($D19B)"},{"a":39036,"t":"code","b":[183],"m":"or","o":"a"},{"a":39037,"t":"code","b":[40,13],"m":"jr","oa":39052,"o":"z,computer_land"},{"a":39039,"t":"code","b":[254,122],"m":"cp","o":"$7A"},{"a":39041,"t":"code","b":[56,9],"m":"jr","oa":39052,"o":"c,computer_land"},{"a":39043,"t":"code","b":[254,124],"m":"cp","o":"$7C"},{"a":39045,"t":"code","b":[48,5],"m":"jr","oa":39052,"o":"nc,computer_land"},{"a":39047,"t":"code","b":[58,122,209],"m":"ld","oa":53626,"o":"a,($D17A)"},{"a":39050,"t":"code","b":[183],"m":"or","o":"a"},{"a":39051,"t":"code","b":[200],"m":"ret","o":"z"},{"a":39052,"l":"computer_land","c":"Lands the selected creature if the rules allow it ($6DC2), reloads it and redraws its panel. Z clear when it landed.","t":"code","b":[205,194,109],"m":"call","oa":28098,"o":"can_fly_or_land","x":[39037,39041,39045,41245,41422,42157]},{"a":39055,"t":"code","b":[58,145,209],"m":"ld","oa":53649,"o":"a,($D191)"},{"a":39058,"t":"code","b":[183],"m":"or","o":"a"},{"a":39059,"t":"code","b":[200],"m":"ret","o":"z"},{"a":39060,"t":"code","b":[205,27,110],"m":"call","oa":28187,"o":"land"},{"a":39063,"t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)"},{"a":39066,"t":"code","b":[205,55,119],"m":"call","oa":30519,"o":"load_creature"},{"a":39069,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":39072,"t":"code","b":[183],"m":"or","o":"a"},{"a":39073,"t":"code","b":[204,189,143],"m":"call","oa":36797,"o":"z,draw_creature_panel"},{"a":39076,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":39079,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":39081,"t":"code","b":[183],"m":"or","o":"a"},{"a":39082,"t":"code","b":[201],"m":"ret"},{"a":39083,"l":"look_at_creature","c":"Makes creature A the one being looked at and the selected one: its square goes to $FF88 and the cursor ($D0D3), it is described, its figures loaded and, when shown, its panel drawn, then make_selected.","t":"code","b":[50,88,91],"m":"ld","oa":23384,"o":"($5B58),a","x":[39143,40361]},{"a":39086,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":39089,"t":"code","b":[229],"m":"push","o":"hl"},{"a":39090,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":39092,"t":"code","b":[221,34,249,255],"m":"ld","oa":65529,"o":"($FFF9),ix"},{"a":39096,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":39099,"t":"code","b":[50,136,255],"m":"ld","oa":65416,"o":"($FF88),a"},{"a":39102,"t":"code","b":[50,211,208],"m":"ld","oa":53459,"o":"($D0D3),a"},{"a":39105,"t":"code","b":[205,162,120],"m":"call","oa":30882,"o":"entry_column"},{"a":39108,"t":"code","b":[50,137,255],"m":"ld","oa":65417,"o":"($FF89),a"},{"a":39111,"t":"code","b":[50,212,208],"m":"ld","oa":53460,"o":"($D0D4),a"},{"a":39114,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":39117,"t":"code","b":[50,18,91],"m":"ld","oa":23314,"o":"($5B12),a"},{"a":39120,"t":"code","b":[205,44,101],"m":"call","oa":25900,"o":"describe_creature"},{"a":39123,"t":"code","b":[205,62,101],"m":"call","oa":25918,"o":"fill_icon_list"},{"a":39126,"t":"code","b":[205,66,147],"m":"call","oa":37698,"o":"load_figures"},{"a":39129,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":39132,"t":"code","b":[183],"m":"or","o":"a"},{"a":39133,"t":"code","b":[204,189,143],"m":"call","oa":36797,"o":"z,draw_creature_panel"},{"a":39136,"t":"code","b":[205,235,143],"m":"call","oa":36843,"o":"make_selected"},{"a":39139,"t":"code","b":[201],"m":"ret"},{"a":39140,"l":"computer_load_creature","c":"Loads the computer's creature $D186 as the selected one and sets its plan figures: $D17B and $D17C the ranged combat and range of the weapon in use (bow 15 and 16, magic bow 30 and 22; a dragon's breath 35 and 12), $D17A the weight it can still carry, $D17F its type's weapon bit and $D180 its USE bit.","t":"code","b":[58,134,209],"m":"ld","oa":53638,"o":"a,($D186)","x":[38738]},{"a":39143,"t":"code","b":[205,171,152],"m":"call","oa":39083,"o":"look_at_creature"},{"a":39146,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":39149,"t":"code","b":[205,55,153],"m":"call","oa":39223,"o":"weapon_range"},{"a":39152,"t":"code","b":[237,83,123,209],"m":"ld","oa":53627,"o":"($D17B),de"},{"a":39156,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":39159,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":39161,"t":"code","b":[56,11],"m":"jr","oa":39174,"o":"c,$9906"},{"a":39163,"t":"code","b":[254,147],"m":"cp","o":"$93"},{"a":39165,"t":"code","b":[48,7],"m":"jr","oa":39174,"o":"nc,$9906"},{"a":39167,"t":"code","b":[17,35,12],"m":"ld","o":"de,$0C23"},{"a":39170,"t":"code","b":[237,83,123,209],"m":"ld","oa":53627,"o":"($D17B),de"},{"a":39174,"t":"code","b":[205,44,113],"m":"call","oa":28972,"o":"carried_weight","x":[39161,39165]},{"a":39177,"t":"code","b":[33,81,255],"m":"ld","o":"hl,$FF51"},{"a":39180,"t":"code","b":[205,198,120],"m":"call","oa":30918,"o":"carry_limit"},{"a":39183,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":39184,"t":"code","b":[50,122,209],"m":"ld","oa":53626,"o":"($D17A),a"},{"a":39187,"t":"code","b":[253,126,11],"m":"ld","o":"a,(iy+$0B)"},{"a":39190,"t":"code","b":[230,4],"m":"and","o":"$04"},{"a":39192,"t":"code","b":[50,127,209],"m":"ld","oa":53631,"o":"($D17F),a"},{"a":39195,"t":"code","b":[253,126,11],"m":"ld","o":"a,(iy+$0B)"},{"a":39198,"t":"code","b":[230,128],"m":"and","o":"$80"},{"a":39200,"t":"code","b":[50,128,209],"m":"ld","oa":53632,"o":"($D180),a"},{"a":39203,"t":"code","b":[201],"m":"ret"},{"a":39204,"l":"computer_combat_figures","c":"Copies the computer creature's combat and defence ($D1FE, $D1FF) to $D17D and $D17E.","t":"code","b":[58,134,209],"m":"ld","oa":53638,"o":"a,($D186)","x":[38780,39770]},{"a":39207,"t":"code","b":[205,55,119],"m":"call","oa":30519,"o":"load_creature"},{"a":39210,"t":"code","b":[58,254,209],"m":"ld","oa":53758,"o":"a,($D1FE)"},{"a":39213,"t":"code","b":[50,125,209],"m":"ld","oa":53629,"o":"($D17D),a"},{"a":39216,"t":"code","b":[58,255,209],"m":"ld","oa":53759,"o":"a,($D1FF)"},{"a":39219,"t":"code","b":[50,126,209],"m":"ld","oa":53630,"o":"($D17E),a"},{"a":39222,"t":"code","b":[201],"m":"ret"},{"a":39223,"l":"weapon_range","c":"DE = the range figures of object A: $100F for a bow ($5C), $161E for a magic bow ($63), 0 for anything else.","t":"code","b":[254,92],"m":"cp","o":"$5C","x":[39149]},{"a":39225,"t":"code","b":[32,4],"m":"jr","oa":39231,"o":"nz,$993F"},{"a":39227,"t":"code","b":[17,15,16],"m":"ld","o":"de,$100F"},{"a":39230,"t":"code","b":[201],"m":"ret"},{"a":39231,"t":"code","b":[254,99],"m":"cp","o":"$63","x":[39225]},{"a":39233,"t":"code","b":[32,4],"m":"jr","oa":39239,"o":"nz,$9947"},{"a":39235,"t":"code","b":[17,30,22],"m":"ld","o":"de,$161E"},{"a":39238,"t":"code","b":[201],"m":"ret"},{"a":39239,"t":"code","b":[17,0,0],"m":"ld","o":"de,$0000","x":[39233]},{"a":39242,"t":"code","b":[201],"m":"ret"},{"a":39243,"l":"find_in_wizard_list","c":"Finds creature A in the computer wizard's list at $CF76.","t":"code","b":[71],"m":"ld","o":"b,a","x":[30662]},{"a":39244,"t":"code","b":[24,10],"m":"jr","oa":39256,"o":"$9958"},{"a":39246,"l":"find_in_list","c":"Finds creature A in a plan list of four-byte entries ending with $FE: the scenario's list at ($D015) for the independent creatures (player 0), otherwise the computer wizard's at $CF76, the record space of wizard 3, which a game against the computer does not use. An entry is the creature, its route, its step along the route and its orders (bit 7: guard the wizard; bit 6: wait where it is until released; bits 0-5: the group that releases it, release_group). Z set and HL on the entry when found; not found turns the border blue, a check left in.","t":"code","b":[42,21,208],"m":"ld","oa":53269,"o":"hl,($D015)","x":[38744]},{"a":39249,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":39250,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":39253,"t":"code","b":[183],"m":"or","o":"a"},{"a":39254,"t":"code","b":[40,3],"m":"jr","oa":39259,"o":"z,$995B"},{"a":39256,"t":"code","b":[33,118,207],"m":"ld","o":"hl,$CF76","x":[39244]},{"a":39259,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004","x":[39254]},{"a":39262,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[39270]},{"a":39263,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":39265,"t":"code","b":[40,5],"m":"jr","oa":39272,"o":"z,$9968"},{"a":39267,"t":"code","b":[184],"m":"cp","o":"b"},{"a":39268,"t":"code","b":[200],"m":"ret","o":"z"},{"a":39269,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39270,"t":"code","b":[24,246],"m":"jr","oa":39262,"o":"$995E"},{"a":39272,"t":"code","b":[33,118,207],"m":"ld","o":"hl,$CF76","x":[39265]},{"a":39275,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":39277,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":39279,"t":"code","b":[183],"m":"or","o":"a"},{"a":39280,"t":"code","b":[201],"m":"ret"},{"a":39281,"l":"waypoint_square","c":"DE = square A of the scenario's waypoint table at ($D013), two bytes each, row in E. A is not checked against the table's length: a route naming a waypoint past the end gets the bytes that follow the table.","t":"code","b":[229],"m":"push","o":"hl","x":[39396,42372]},{"a":39282,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":39283,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":39285,"t":"code","b":[42,19,208],"m":"ld","oa":53267,"o":"hl,($D013)"},{"a":39288,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39289,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39290,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":39291,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39292,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":39293,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":39294,"t":"code","b":[201],"m":"ret"},{"a":39295,"l":"route_address","c":"HL = the first waypoint of route A in the scenario's route list at ($D00F), where each route starts with its length in the low seven bits.","t":"code","b":[42,15,208],"m":"ld","oa":53263,"o":"hl,($D00F)","x":[39386,42359]},{"a":39298,"t":"code","b":[60],"m":"inc","o":"a"},{"a":39299,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":39300,"t":"code","b":[5],"m":"dec","o":"b","x":[39310]},{"a":39301,"t":"code","b":[40,9],"m":"jr","oa":39312,"o":"z,$9990"},{"a":39303,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39304,"t":"code","b":[230,127],"m":"and","o":"$7F"},{"a":39306,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":39307,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":39309,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39310,"t":"code","b":[24,244],"m":"jr","oa":39300,"o":"$9984"},{"a":39312,"t":"code","b":[35],"m":"inc","o":"hl","x":[39301]},{"a":39313,"t":"code","b":[201],"m":"ret"},{"a":39314,"l":"computer_choose_target","c":"Picks the square the computer creature heads for ($D1B6). When it carries treasure for the wizard ($D1BC, from computer_deliver) or it guards the wizard (bit 7 of its orders, $D1BA), the computer's wizard (entry 1 of the object table) while it lives: a guard within five squares of it stops there ($D181 = 5). Otherwise, once the portal is open (turn $D065 at or past $D062), the portal ($D060). Otherwise the next waypoint of its route; on reaching one it moves on to the next, back to the first after the last, and forgets the squares it has walked ($9AB3).","t":"code","b":[253,42,130,209],"m":"ld","oa":53634,"o":"iy,($D182)","x":[38920]},{"a":39318,"t":"code","b":[58,188,209],"m":"ld","oa":53692,"o":"a,($D1BC)"},{"a":39321,"t":"code","b":[183],"m":"or","o":"a"},{"a":39322,"t":"code","b":[32,6],"m":"jr","oa":39330,"o":"nz,$99A2"},{"a":39324,"t":"code","b":[58,186,209],"m":"ld","oa":53690,"o":"a,($D1BA)"},{"a":39327,"t":"code","b":[183],"m":"or","o":"a"},{"a":39328,"t":"code","b":[40,37],"m":"jr","oa":39367,"o":"z,$99C7"},{"a":39330,"t":"code","b":[221,33,96,91],"m":"ld","o":"ix,$5B60","x":[39322]},{"a":39334,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":39337,"t":"code","b":[60],"m":"inc","o":"a"},{"a":39338,"t":"code","b":[40,27],"m":"jr","oa":39367,"o":"z,$99C7"},{"a":39340,"t":"code","b":[205,148,120],"m":"call","oa":30868,"o":"entry_position"},{"a":39343,"t":"code","b":[237,83,182,209],"m":"ld","oa":53686,"o":"($D1B6),de"},{"a":39347,"t":"code","b":[58,188,209],"m":"ld","oa":53692,"o":"a,($D1BC)"},{"a":39350,"t":"code","b":[183],"m":"or","o":"a"},{"a":39351,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":39352,"t":"code","b":[205,74,114],"m":"call","oa":29258,"o":"distance_from_selected"},{"a":39355,"t":"code","b":[254,5],"m":"cp","o":"$05"},{"a":39357,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":39358,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":39360,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":39363,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":39364,"t":"code","b":[195,23,152],"m":"jp","oa":38935,"o":"$9817"},{"a":39367,"t":"code","b":[58,101,208],"m":"ld","oa":53349,"o":"a,($D065)","x":[39328,39338]},{"a":39370,"t":"code","b":[33,98,208],"m":"ld","o":"hl,$D062"},{"a":39373,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39374,"t":"code","b":[56,7],"m":"jr","oa":39383,"o":"c,$99D7"},{"a":39376,"t":"code","b":[42,96,208],"m":"ld","oa":53344,"o":"hl,($D060)"},{"a":39379,"t":"code","b":[34,182,209],"m":"ld","oa":53686,"o":"($D1B6),hl"},{"a":39382,"t":"code","b":[201],"m":"ret"},{"a":39383,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)","x":[39374,39430]},{"a":39386,"t":"code","b":[205,127,153],"m":"call","oa":39295,"o":"route_address"},{"a":39389,"t":"code","b":[253,94,2],"m":"ld","o":"e,(iy+$02)"},{"a":39392,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":39394,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39395,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39396,"t":"code","b":[205,113,153],"m":"call","oa":39281,"o":"waypoint_square"},{"a":39399,"t":"code","b":[58,85,91],"m":"ld","oa":23381,"o":"a,($5B55)"},{"a":39402,"t":"code","b":[187],"m":"cp","o":"e"},{"a":39403,"t":"code","b":[32,27],"m":"jr","oa":39432,"o":"nz,$9A08"},{"a":39405,"t":"code","b":[58,86,91],"m":"ld","oa":23382,"o":"a,($5B56)"},{"a":39408,"t":"code","b":[186],"m":"cp","o":"d"},{"a":39409,"t":"code","b":[32,21],"m":"jr","oa":39432,"o":"nz,$9A08"},{"a":39411,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39412,"t":"code","b":[253,52,2],"m":"inc","o":"(iy+$02)"},{"a":39415,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39416,"t":"code","b":[203,127],"m":"bit","o":"7,a"},{"a":39418,"t":"code","b":[40,4],"m":"jr","oa":39424,"o":"z,$9A00"},{"a":39420,"t":"code","b":[253,54,2,0],"m":"ld","o":"(iy+$02),$00"},{"a":39424,"t":"code","b":[205,179,154],"m":"call","oa":39603,"o":"forget_trail","x":[39418]},{"a":39427,"t":"code","b":[205,220,154],"m":"call","oa":39644,"o":"remember_square"},{"a":39430,"t":"code","b":[24,207],"m":"jr","oa":39383,"o":"$99D7"},{"a":39432,"t":"code","b":[237,83,182,209],"m":"ld","oa":53686,"o":"($D1B6),de","x":[39403,39409]},{"a":39436,"t":"code","b":[201],"m":"ret"},{"a":39437,"l":"rank_neighbours","c":"Lists the eight squares around the creature, adds to each one's third byte its distance from the target ($D1B6) and sorts them nearest first ($9A48). $D18E is set when the nearest is the target itself.","t":"code","b":[175],"m":"xor","o":"a","x":[38923]},{"a":39438,"t":"code","b":[50,142,209],"m":"ld","oa":53646,"o":"($D18E),a"},{"a":39441,"t":"code","b":[205,168,144],"m":"call","oa":37032,"o":"list_neighbours_of_selected"},{"a":39444,"t":"code","b":[237,91,182,209],"m":"ld","oa":53686,"o":"de,($D1B6)"},{"a":39448,"t":"code","b":[33,12,255],"m":"ld","o":"hl,$FF0C"},{"a":39451,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":39453,"t":"code","b":[197],"m":"push","o":"bc","x":[39468]},{"a":39454,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39455,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39456,"t":"code","b":[229],"m":"push","o":"hl"},{"a":39457,"t":"code","b":[102],"m":"ld","o":"h,(hl)"},{"a":39458,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":39459,"t":"code","b":[205,77,114],"m":"call","oa":29261,"o":"distance"},{"a":39462,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":39463,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39464,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":39465,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":39466,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39467,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":39468,"t":"code","b":[16,239],"m":"djnz","oa":39453,"o":"$9A1D"},{"a":39470,"t":"code","b":[205,72,154],"m":"call","oa":39496,"o":"sort_neighbours"},{"a":39473,"t":"code","b":[33,12,255],"m":"ld","o":"hl,$FF0C"},{"a":39476,"t":"code","b":[58,182,209],"m":"ld","oa":53686,"o":"a,($D1B6)"},{"a":39479,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39480,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":39481,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39482,"t":"code","b":[58,183,209],"m":"ld","oa":53687,"o":"a,($D1B7)"},{"a":39485,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39486,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":39487,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":39489,"t":"code","b":[50,142,209],"m":"ld","oa":53646,"o":"($D18E),a"},{"a":39492,"t":"code","b":[201],"m":"ret"},{"a":39493,"l":"sort_pass","c":"The number of comparisons in each pass of sort_neighbours, 7, written once; the passes are counted in B.","t":"byte","b":[0],"x":[39498,39503]},{"a":39494,"l":"sort_entry","c":"The entry sort_neighbours compares.","t":"word","b":[0,0],"d":[0],"x":[39518,39522,39543,39558,39565,39574]},{"a":39496,"l":"sort_neighbours","c":"Sorts the eight three-byte squares at $FF0C by the low seven bits of their third byte, the smallest first: a bubble sort of seven passes.","t":"code","b":[62,7],"m":"ld","o":"a,$07","x":[39470,40893,40983]},{"a":39498,"t":"code","b":[50,69,154],"m":"ld","oa":39493,"o":"(sort_pass),a"},{"a":39501,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":39502,"t":"code","b":[197],"m":"push","o":"bc","x":[39581]},{"a":39503,"t":"code","b":[58,69,154],"m":"ld","oa":39493,"o":"a,(sort_pass)"},{"a":39506,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":39507,"t":"code","b":[33,12,255],"m":"ld","o":"hl,$FF0C"},{"a":39510,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":39512,"t":"code","b":[88],"m":"ld","o":"e,b"},{"a":39513,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39514,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39515,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39516,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39517,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39518,"t":"code","b":[34,70,154],"m":"ld","oa":39494,"o":"(sort_entry),hl"},{"a":39521,"t":"code","b":[197],"m":"push","o":"bc","x":[39578]},{"a":39522,"t":"code","b":[42,70,154],"m":"ld","oa":39494,"o":"hl,(sort_entry)"},{"a":39525,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":39528,"t":"code","b":[175],"m":"xor","o":"a"},{"a":39529,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39530,"t":"code","b":[230,127],"m":"and","o":"$7F"},{"a":39532,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":39534,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":39535,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39536,"t":"code","b":[230,127],"m":"and","o":"$7F"},{"a":39538,"t":"code","b":[184],"m":"cp","o":"b"},{"a":39539,"t":"code","b":[56,24],"m":"jr","oa":39565,"o":"c,$9A8D"},{"a":39541,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":39543,"t":"code","b":[42,70,154],"m":"ld","oa":39494,"o":"hl,(sort_entry)","x":[39561]},{"a":39546,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":39549,"t":"code","b":[175],"m":"xor","o":"a"},{"a":39550,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39551,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":39553,"t":"code","b":[78],"m":"ld","o":"c,(hl)"},{"a":39554,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":39555,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39556,"t":"code","b":[113],"m":"ld","o":"(hl),c"},{"a":39557,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":39558,"t":"code","b":[34,70,154],"m":"ld","oa":39494,"o":"(sort_entry),hl"},{"a":39561,"t":"code","b":[16,236],"m":"djnz","oa":39543,"o":"$9A77"},{"a":39563,"t":"code","b":[24,12],"m":"jr","oa":39577,"o":"$9A99"},{"a":39565,"t":"code","b":[42,70,154],"m":"ld","oa":39494,"o":"hl,(sort_entry)","x":[39539]},{"a":39568,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":39571,"t":"code","b":[175],"m":"xor","o":"a"},{"a":39572,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":39574,"t":"code","b":[34,70,154],"m":"ld","oa":39494,"o":"(sort_entry),hl"},{"a":39577,"t":"code","b":[193],"m":"pop","o":"bc","x":[39563]},{"a":39578,"t":"code","b":[16,197],"m":"djnz","oa":39521,"o":"$9A61"},{"a":39580,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":39581,"t":"code","b":[16,175],"m":"djnz","oa":39502,"o":"$9A4E"},{"a":39583,"t":"code","b":[201],"m":"ret"},{"a":39584,"l":"trail_next","c":"Where remember_square writes next in trail.","t":"word","b":[0,0],"d":[0],"x":[39606,39648,39663]},{"a":39586,"l":"trail","c":"The last eight squares the computer creature has stood on, two bytes each, ending with $FE.","t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":39594,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":39602,"t":"byte","b":[254]},{"a":39603,"l":"forget_trail","c":"Empties trail.","t":"code","b":[33,162,154],"m":"ld","o":"hl,$9AA2","x":[38783,39424,40763,41359,41449]},{"a":39606,"t":"code","b":[34,160,154],"m":"ld","oa":39584,"o":"(trail_next),hl"},{"a":39609,"t":"code","b":[17,163,154],"m":"ld","o":"de,$9AA3"},{"a":39612,"t":"code","b":[1,15,0],"m":"ld","o":"bc,$000F"},{"a":39615,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":39617,"t":"code","b":[237,176],"m":"ldir"},{"a":39619,"t":"code","b":[201],"m":"ret"},{"a":39620,"l":"on_trail","c":"Z set when square $FF8A is on trail.","t":"code","b":[6,8],"m":"ld","o":"b,$08","x":[39851]},{"a":39622,"t":"code","b":[33,162,154],"m":"ld","o":"hl,$9AA2"},{"a":39625,"t":"code","b":[58,138,255],"m":"ld","oa":65418,"o":"a,($FF8A)","x":[39640]},{"a":39628,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39629,"t":"code","b":[32,7],"m":"jr","oa":39638,"o":"nz,$9AD6"},{"a":39631,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39632,"t":"code","b":[58,139,255],"m":"ld","oa":65419,"o":"a,($FF8B)"},{"a":39635,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39636,"t":"code","b":[200],"m":"ret","o":"z"},{"a":39637,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":39638,"t":"code","b":[35],"m":"inc","o":"hl","x":[39629]},{"a":39639,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39640,"t":"code","b":[16,239],"m":"djnz","oa":39625,"o":"$9AC9"},{"a":39642,"t":"code","b":[4],"m":"inc","o":"b"},{"a":39643,"t":"code","b":[201],"m":"ret"},{"a":39644,"l":"remember_square","c":"Adds the selected creature's square ($5B55) to trail, over the oldest.","t":"code","b":[237,91,85,91],"m":"ld","oa":23381,"o":"de,($5B55)","x":[38786,39427,39865]},{"a":39648,"t":"code","b":[42,160,154],"m":"ld","oa":39584,"o":"hl,(trail_next)"},{"a":39651,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39652,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":39654,"t":"code","b":[32,3],"m":"jr","oa":39659,"o":"nz,$9AEB"},{"a":39656,"t":"code","b":[33,162,154],"m":"ld","o":"hl,$9AA2"},{"a":39659,"t":"code","b":[115],"m":"ld","o":"(hl),e","x":[39654]},{"a":39660,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39661,"t":"code","b":[114],"m":"ld","o":"(hl),d"},{"a":39662,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39663,"t":"code","b":[34,160,154],"m":"ld","oa":39584,"o":"(trail_next),hl"},{"a":39666,"t":"code","b":[201],"m":"ret"},{"a":39667,"l":"computer_try_steps","c":"Tries the eight squares around the creature, nearest the target first, until one works. Each is classified ($CA2B: a diagonal step, bit 7 of its third byte, costs half as much again), the scenario may change the class ($D01E), and the class in $FF8F picks the action from computer_step_actions. When none works the creature is done ($D181 = 6).","t":"code","b":[6,8],"m":"ld","o":"b,$08","x":[38932]},{"a":39669,"t":"code","b":[33,12,255],"m":"ld","o":"hl,$FF0C"},{"a":39672,"t":"code","b":[197],"m":"push","o":"bc","x":[39708]},{"a":39673,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":39674,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39675,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":39676,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39677,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39678,"t":"code","b":[230,128],"m":"and","o":"$80"},{"a":39680,"t":"code","b":[50,146,255],"m":"ld","oa":65426,"o":"($FF92),a"},{"a":39683,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39684,"t":"code","b":[229],"m":"push","o":"hl"},{"a":39685,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":39686,"t":"code","b":[205,43,202],"m":"call","oa":51755,"o":"classify_step"},{"a":39689,"t":"code","b":[205,30,208],"m":"call","oa":53278,"o":"$D01E"},{"a":39692,"t":"code","b":[58,143,255],"m":"ld","oa":65423,"o":"a,($FF8F)"},{"a":39695,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":39696,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":39697,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":39699,"t":"code","b":[33,39,155],"m":"ld","o":"hl,$9B27"},{"a":39702,"t":"code","b":[205,156,120],"m":"call","oa":30876,"o":"read_table_word"},{"a":39705,"t":"code","b":[233],"m":"jp","o":"(hl)"},{"a":39706,"t":"code","b":[225],"m":"pop","o":"hl","x":[39751,39848,39854,39883,39889,39970]},{"a":39707,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":39708,"t":"code","b":[16,218],"m":"djnz","oa":39672,"o":"$9AF8"},{"a":39710,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":39712,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":39715,"t":"code","b":[201],"m":"ret"},{"a":39716,"t":"code","b":[225],"m":"pop","o":"hl","x":[39740]},{"a":39717,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":39718,"t":"code","b":[201],"m":"ret"},{"a":39719,"l":"computer_step_actions","c":"The action for each class of square: 0 cannot enter, 1 too few action points, 2 too little stamina, 3 a partner there, 4 an enemy, 5 free, 6 free but engaged, 7 just dismounted in the air.","t":"word","b":[206,155,55,155,55,155,62,155],"d":[39886,39735,39735,39742]},{"a":39727,"t":"word","b":[68,155,160,155,203,155,55,155],"d":[39748,39840,39883,39735]},{"a":39735,"l":"computer_step_done","c":"The creature has done what it can: $D181 = 7.","t":"code","b":[62,7],"m":"ld","o":"a,$07"},{"a":39737,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":39740,"t":"code","b":[24,230],"m":"jr","oa":39716,"o":"$9B24"},{"a":39742,"l":"computer_step_end","c":"Ends the creature's move.","t":"code","b":[225],"m":"pop","o":"hl"},{"a":39743,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":39744,"t":"code","b":[205,166,106],"m":"call","oa":27302,"o":"end_move"},{"a":39747,"t":"code","b":[201],"m":"ret"},{"a":39748,"l":"computer_step_attack","c":"Attacks the enemy on the square if computer_decide_attack agrees, otherwise tries the next square. After it the creature is done if it died ($D181 = 8), or its combat figures are taken again.","t":"code","b":[205,97,155],"m":"call","oa":39777,"o":"computer_decide_attack"},{"a":39751,"t":"code","b":[202,26,155],"m":"jp","oa":39706,"o":"z,$9B1A"},{"a":39754,"t":"code","b":[42,80,91],"m":"ld","oa":23376,"o":"hl,($5B50)"},{"a":39757,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39758,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39759,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39760,"t":"code","b":[183],"m":"or","o":"a"},{"a":39761,"t":"code","b":[32,7],"m":"jr","oa":39770,"o":"nz,$9B5A"},{"a":39763,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":39765,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":39768,"t":"code","b":[24,3],"m":"jr","oa":39773,"o":"$9B5D"},{"a":39770,"t":"code","b":[205,36,153],"m":"call","oa":39204,"o":"computer_combat_figures","x":[39761]},{"a":39773,"t":"code","b":[225],"m":"pop","o":"hl","x":[39768]},{"a":39774,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":39775,"t":"code","b":[243],"m":"di"},{"a":39776,"t":"code","b":[201],"m":"ret"},{"a":39777,"l":"computer_decide_attack","c":"Attacks the enemy at ($FF28) when the creature has eight action points and eight stamina, unless the enemy is undead and the creature is not, when it needs a magic hand weapon ($60-$66) other than the magic bow ($63). Z clear when it attacked ($84EC) and redrew its panel.","t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[39748]},{"a":39780,"t":"code","b":[254,8],"m":"cp","o":"$08"},{"a":39782,"t":"code","b":[56,54],"m":"jr","oa":39838,"o":"c,$9B9E"},{"a":39784,"t":"code","b":[58,252,209],"m":"ld","oa":53756,"o":"a,($D1FC)"},{"a":39787,"t":"code","b":[254,8],"m":"cp","o":"$08"},{"a":39789,"t":"code","b":[56,47],"m":"jr","oa":39838,"o":"c,$9B9E"},{"a":39791,"t":"code","b":[221,42,40,255],"m":"ld","oa":65320,"o":"ix,($FF28)"},{"a":39795,"t":"code","b":[205,167,181],"m":"call","oa":46503,"o":"type_record_of"},{"a":39798,"t":"code","b":[253,203,11,78],"m":"bit","o":"1,(iy+$0B)"},{"a":39802,"t":"code","b":[40,24],"m":"jr","oa":39828,"o":"z,$9B94"},{"a":39804,"t":"code","b":[253,42,82,91],"m":"ld","oa":23378,"o":"iy,($5B52)"},{"a":39808,"t":"code","b":[253,203,11,78],"m":"bit","o":"1,(iy+$0B)"},{"a":39812,"t":"code","b":[32,14],"m":"jr","oa":39828,"o":"nz,$9B94"},{"a":39814,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":39817,"t":"code","b":[254,99],"m":"cp","o":"$63"},{"a":39819,"t":"code","b":[200],"m":"ret","o":"z"},{"a":39820,"t":"code","b":[254,96],"m":"cp","o":"$60"},{"a":39822,"t":"code","b":[56,14],"m":"jr","oa":39838,"o":"c,$9B9E"},{"a":39824,"t":"code","b":[254,103],"m":"cp","o":"$67"},{"a":39826,"t":"code","b":[48,10],"m":"jr","oa":39838,"o":"nc,$9B9E"},{"a":39828,"t":"code","b":[205,236,132],"m":"call","oa":34028,"o":"attack","x":[39802,39812]},{"a":39831,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":39834,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":39836,"t":"code","b":[183],"m":"or","o":"a"},{"a":39837,"t":"code","b":[201],"m":"ret"},{"a":39838,"t":"code","b":[175],"m":"xor","o":"a","x":[39782,39789,39822,39826]},{"a":39839,"t":"code","b":[201],"m":"ret"},{"a":39840,"l":"computer_step_move","c":"Steps onto the free square unless the creature is engaged or has stood there lately: moves it ($B4EB), applies the square's effects ($7F98), remembers the square, runs the scenario's step hook ($D021), centres the view and redraws the map when the turn is shown.","t":"code","b":[253,42,80,91],"m":"ld","oa":23376,"o":"iy,($5B50)"},{"a":39844,"t":"code","b":[253,203,4,102],"m":"bit","o":"4,(iy+$04)"},{"a":39848,"t":"code","b":[194,26,155],"m":"jp","oa":39706,"o":"nz,$9B1A"},{"a":39851,"t":"code","b":[205,196,154],"m":"call","oa":39620,"o":"on_trail"},{"a":39854,"t":"code","b":[202,26,155],"m":"jp","oa":39706,"o":"z,$9B1A"},{"a":39857,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":39858,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":39859,"t":"code","b":[205,235,180],"m":"call","oa":46315,"o":"move_selected"},{"a":39862,"t":"code","b":[205,152,127],"m":"call","oa":32664,"o":"step_effects"},{"a":39865,"t":"code","b":[205,220,154],"m":"call","oa":39644,"o":"remember_square"},{"a":39868,"t":"code","b":[205,33,208],"m":"call","oa":53281,"o":"$D021"},{"a":39871,"t":"code","b":[243],"m":"di"},{"a":39872,"t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre"},{"a":39875,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":39878,"t":"code","b":[183],"m":"or","o":"a"},{"a":39879,"t":"code","b":[204,76,169],"m":"call","oa":43340,"o":"z,draw_map"},{"a":39882,"t":"code","b":[201],"m":"ret"},{"a":39883,"l":"computer_step_skip","c":"Tries the next square.","t":"code","b":[195,26,155],"m":"jp","oa":39706,"o":"$9B1A"},{"a":39886,"l":"computer_step_blocked","c":"A square it cannot enter. With nothing sharing its square, a creature that can USE opens a closed door ($22-$24) for four action points, or a locked one ($1F-$21) when it carries a key ($7D, made the object in use through computer_take_object); not enough action points ends its move ($D181 = 9). Any other terrain it attacks ($6862) when half as much again as its combat reaches the terrain's toughness.","t":"code","b":[205,86,113],"m":"call","oa":29014,"o":"find_partner"},{"a":39889,"t":"code","b":[202,26,155],"m":"jp","oa":39706,"o":"z,$9B1A"},{"a":39892,"t":"code","b":[58,128,209],"m":"ld","oa":53632,"o":"a,($D180)"},{"a":39895,"t":"code","b":[183],"m":"or","o":"a"},{"a":39896,"t":"code","b":[40,59],"m":"jr","oa":39957,"o":"z,$9C15"},{"a":39898,"t":"code","b":[58,145,255],"m":"ld","oa":65425,"o":"a,($FF91)"},{"a":39901,"t":"code","b":[254,34],"m":"cp","o":"$22"},{"a":39903,"t":"code","b":[56,32],"m":"jr","oa":39937,"o":"c,$9C01"},{"a":39905,"t":"code","b":[254,37],"m":"cp","o":"$25"},{"a":39907,"t":"code","b":[48,28],"m":"jr","oa":39937,"o":"nc,$9C01"},{"a":39909,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[39955]},{"a":39912,"t":"code","b":[214,4],"m":"sub","o":"$04"},{"a":39914,"t":"code","b":[56,62],"m":"jr","oa":39978,"o":"c,$9C2A"},{"a":39916,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":39919,"t":"code","b":[42,138,255],"m":"ld","oa":65418,"o":"hl,($FF8A)"},{"a":39922,"t":"code","b":[34,211,208],"m":"ld","oa":53459,"o":"($D0D3),hl"},{"a":39925,"t":"code","b":[205,108,114],"m":"call","oa":29292,"o":"use_square"},{"a":39928,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":39931,"t":"code","b":[183],"m":"or","o":"a"},{"a":39932,"t":"code","b":[204,76,169],"m":"call","oa":43340,"o":"z,draw_map"},{"a":39935,"t":"code","b":[24,46],"m":"jr","oa":39983,"o":"$9C2F"},{"a":39937,"t":"code","b":[58,145,255],"m":"ld","oa":65425,"o":"a,($FF91)","x":[39903,39907]},{"a":39940,"t":"code","b":[254,31],"m":"cp","o":"$1F"},{"a":39942,"t":"code","b":[56,13],"m":"jr","oa":39957,"o":"c,$9C15"},{"a":39944,"t":"code","b":[254,34],"m":"cp","o":"$22"},{"a":39946,"t":"code","b":[48,9],"m":"jr","oa":39957,"o":"nc,$9C15"},{"a":39948,"t":"code","b":[62,125],"m":"ld","o":"a,$7D"},{"a":39950,"t":"code","b":[205,50,156],"m":"call","oa":39986,"o":"computer_take_object"},{"a":39953,"t":"code","b":[56,23],"m":"jr","oa":39978,"o":"c,$9C2A"},{"a":39955,"t":"code","b":[40,208],"m":"jr","oa":39909,"o":"z,$9BE5"},{"a":39957,"t":"code","b":[205,36,145],"m":"call","oa":37156,"o":"terrain_record_here","x":[39896,39942,39946]},{"a":39960,"t":"code","b":[58,254,209],"m":"ld","oa":53758,"o":"a,($D1FE)"},{"a":39963,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":39964,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":39966,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":39967,"t":"code","b":[253,190,1],"m":"cp","o":"(iy+$01)"},{"a":39970,"t":"code","b":[218,26,155],"m":"jp","oa":39706,"o":"c,$9B1A"},{"a":39973,"t":"code","b":[205,98,104],"m":"call","oa":26722,"o":"attack_terrain"},{"a":39976,"t":"code","b":[24,5],"m":"jr","oa":39983,"o":"$9C2F"},{"a":39978,"t":"code","b":[62,9],"m":"ld","o":"a,$09","x":[39914,39953]},{"a":39980,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":39983,"t":"code","b":[225],"m":"pop","o":"hl","x":[39935,39976]},{"a":39984,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":39985,"t":"code","b":[201],"m":"ret"},{"a":39986,"l":"computer_take_object","c":"Makes object type A the computer creature's object in use. Z set when it already is, or when it is carried ($D1C1, the list of what the creature carries) and four action points are paid: the old object loses its in-use bit (bit 7 of byte 3) and the new one gets it. Carry set when there are not four action points; Z clear when it is not carried.","t":"code","b":[33,217,208],"m":"ld","o":"hl,$D0D9","x":[39950,41470,41589,41707,41838,42534,42655,42670]},{"a":39989,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39990,"t":"code","b":[200],"m":"ret","o":"z"},{"a":39991,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":39992,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":39995,"t":"code","b":[183],"m":"or","o":"a"},{"a":39996,"t":"code","b":[40,75],"m":"jr","oa":40073,"o":"z,$9C89"},{"a":39998,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":39999,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":40000,"t":"code","b":[33,193,209],"m":"ld","o":"hl,$D1C1"},{"a":40003,"t":"code","b":[190],"m":"cp","o":"(hl)","x":[40008]},{"a":40004,"t":"code","b":[40,6],"m":"jr","oa":40012,"o":"z,$9C4C"},{"a":40006,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40007,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40008,"t":"code","b":[16,249],"m":"djnz","oa":40003,"o":"$9C43"},{"a":40010,"t":"code","b":[24,61],"m":"jr","oa":40073,"o":"$9C89"},{"a":40012,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[40004]},{"a":40015,"t":"code","b":[254,4],"m":"cp","o":"$04"},{"a":40017,"t":"code","b":[216],"m":"ret","o":"c"},{"a":40018,"t":"code","b":[58,218,208],"m":"ld","oa":53466,"o":"a,($D0DA)"},{"a":40021,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40022,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":40023,"t":"code","b":[50,217,208],"m":"ld","oa":53465,"o":"($D0D9),a"},{"a":40026,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":40029,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":40030,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40031,"t":"code","b":[50,218,208],"m":"ld","oa":53466,"o":"($D0DA),a"},{"a":40034,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":40037,"t":"code","b":[34,219,208],"m":"ld","oa":53467,"o":"($D0DB),hl"},{"a":40040,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40041,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40042,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40043,"t":"code","b":[203,254],"m":"set","o":"7,(hl)"},{"a":40045,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":40046,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":40048,"t":"code","b":[40,8],"m":"jr","oa":40058,"o":"z,$9C7A"},{"a":40050,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":40053,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40054,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40055,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40056,"t":"code","b":[203,190],"m":"res","o":"7,(hl)"},{"a":40058,"t":"code","b":[62,4],"m":"ld","o":"a,$04","x":[40048]},{"a":40060,"t":"code","b":[205,186,109],"m":"call","oa":28090,"o":"spend_action_points"},{"a":40063,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":40066,"t":"code","b":[214,4],"m":"sub","o":"$04"},{"a":40068,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":40071,"t":"code","b":[175],"m":"xor","o":"a"},{"a":40072,"t":"code","b":[201],"m":"ret"},{"a":40073,"t":"code","b":[175],"m":"xor","o":"a","x":[39996,40010]},{"a":40074,"t":"code","b":[60],"m":"inc","o":"a"},{"a":40075,"t":"code","b":[201],"m":"ret"},{"a":40076,"l":"note_enemy","c":"Adds enemy creature $5B20, seen by the computer, to its list of enemies at $D0E4 (three bytes each: the creature, its combat and its defence, from $7737), at most 20, and sets $D187.","t":"code","b":[221,229],"m":"push","o":"ix","x":[46058]},{"a":40078,"t":"code","b":[58,136,209],"m":"ld","oa":53640,"o":"a,($D188)"},{"a":40081,"t":"code","b":[254,20],"m":"cp","o":"$14"},{"a":40083,"t":"code","b":[40,45],"m":"jr","oa":40130,"o":"z,$9CC2"},{"a":40085,"t":"code","b":[60],"m":"inc","o":"a"},{"a":40086,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40087,"t":"code","b":[33,225,208],"m":"ld","o":"hl,$D0E1"},{"a":40090,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":40093,"t":"code","b":[25],"m":"add","o":"hl,de","x":[40100]},{"a":40094,"t":"code","b":[58,32,91],"m":"ld","oa":23328,"o":"a,($5B20)"},{"a":40097,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":40098,"t":"code","b":[40,30],"m":"jr","oa":40130,"o":"z,$9CC2"},{"a":40100,"t":"code","b":[16,247],"m":"djnz","oa":40093,"o":"$9C9D"},{"a":40102,"t":"code","b":[229],"m":"push","o":"hl"},{"a":40103,"t":"code","b":[58,32,91],"m":"ld","oa":23328,"o":"a,($5B20)"},{"a":40106,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":40107,"t":"code","b":[205,55,119],"m":"call","oa":30519,"o":"load_creature"},{"a":40110,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":40111,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40112,"t":"code","b":[58,254,209],"m":"ld","oa":53758,"o":"a,($D1FE)"},{"a":40115,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":40116,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40117,"t":"code","b":[58,255,209],"m":"ld","oa":53759,"o":"a,($D1FF)"},{"a":40120,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":40121,"t":"code","b":[33,136,209],"m":"ld","o":"hl,$D188"},{"a":40124,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":40125,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":40127,"t":"code","b":[50,135,209],"m":"ld","oa":53639,"o":"($D187),a"},{"a":40130,"t":"code","b":[221,225],"m":"pop","o":"ix","x":[40083,40098]},{"a":40132,"t":"code","b":[201],"m":"ret"},{"a":40133,"l":"computer_shoot","c":"A computer creature with a ranged weapon or flame breath ($D17C, its range, not 0) shoots at the first enemy on its list that it can harm: one whose defence plus a half is at most twice the ranged combat ($D17B), not riding, within range and in sight. An undead enemy needs the magic bow, or a dragon's flame on flammable ground. Shooting needs eight action points ($D181 = $0A when there are fewer).","t":"code","b":[175],"m":"xor","o":"a","x":[38855]},{"a":40134,"t":"code","b":[50,138,209],"m":"ld","oa":53642,"o":"($D18A),a"},{"a":40137,"t":"code","b":[58,136,209],"m":"ld","oa":53640,"o":"a,($D188)"},{"a":40140,"t":"code","b":[183],"m":"or","o":"a"},{"a":40141,"t":"code","b":[200],"m":"ret","o":"z"},{"a":40142,"t":"code","b":[58,124,209],"m":"ld","oa":53628,"o":"a,($D17C)"},{"a":40145,"t":"code","b":[183],"m":"or","o":"a"},{"a":40146,"t":"code","b":[200],"m":"ret","o":"z"},{"a":40147,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":40150,"t":"code","b":[61],"m":"dec","o":"a"},{"a":40151,"t":"code","b":[50,38,91],"m":"ld","oa":23334,"o":"($5B26),a"},{"a":40154,"t":"code","b":[58,136,209],"m":"ld","oa":53640,"o":"a,($D188)"},{"a":40157,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40158,"t":"code","b":[33,230,208],"m":"ld","o":"hl,$D0E6"},{"a":40161,"t":"code","b":[197],"m":"push","o":"bc","x":[40266]},{"a":40162,"t":"code","b":[229],"m":"push","o":"hl"},{"a":40163,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40164,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40165,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":40167,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":40168,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40169,"t":"code","b":[58,123,209],"m":"ld","oa":53627,"o":"a,($D17B)"},{"a":40172,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":40173,"t":"code","b":[184],"m":"cp","o":"b"},{"a":40174,"t":"code","b":[56,83],"m":"jr","oa":40259,"o":"c,$9D43"},{"a":40176,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":40177,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":40178,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40179,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":40182,"t":"code","b":[229],"m":"push","o":"hl"},{"a":40183,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":40185,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying"},{"a":40188,"t":"code","b":[56,69],"m":"jr","oa":40259,"o":"c,$9D43"},{"a":40190,"t":"code","b":[205,98,140],"m":"call","oa":35938,"o":"entry_square"},{"a":40193,"t":"code","b":[34,2,255],"m":"ld","oa":65282,"o":"($FF02),hl"},{"a":40196,"t":"code","b":[205,167,181],"m":"call","oa":46503,"o":"type_record_of"},{"a":40199,"t":"code","b":[253,203,11,78],"m":"bit","o":"1,(iy+$0B)"},{"a":40203,"t":"code","b":[40,41],"m":"jr","oa":40246,"o":"z,$9D36"},{"a":40205,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":40208,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":40210,"t":"code","b":[56,27],"m":"jr","oa":40239,"o":"c,$9D2F"},{"a":40212,"t":"code","b":[254,147],"m":"cp","o":"$93"},{"a":40214,"t":"code","b":[48,23],"m":"jr","oa":40239,"o":"nc,$9D2F"},{"a":40216,"t":"code","b":[205,137,120],"m":"call","oa":30857,"o":"is_loose"},{"a":40219,"t":"code","b":[32,38],"m":"jr","oa":40259,"o":"nz,$9D43"},{"a":40221,"t":"code","b":[42,2,255],"m":"ld","oa":65282,"o":"hl,($FF02)"},{"a":40224,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":40227,"t":"code","b":[205,39,145],"m":"call","oa":37159,"o":"terrain_record"},{"a":40230,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":40233,"t":"code","b":[230,15],"m":"and","o":"$0F"},{"a":40235,"t":"code","b":[40,22],"m":"jr","oa":40259,"o":"z,$9D43"},{"a":40237,"t":"code","b":[24,7],"m":"jr","oa":40246,"o":"$9D36"},{"a":40239,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)","x":[40210,40214]},{"a":40242,"t":"code","b":[254,99],"m":"cp","o":"$63"},{"a":40244,"t":"code","b":[32,13],"m":"jr","oa":40259,"o":"nz,$9D43"},{"a":40246,"t":"code","b":[237,91,2,255],"m":"ld","oa":65282,"o":"de,($FF02)","x":[40203,40237]},{"a":40250,"t":"code","b":[205,74,114],"m":"call","oa":29258,"o":"distance_from_selected"},{"a":40253,"t":"code","b":[33,124,209],"m":"ld","o":"hl,$D17C"},{"a":40256,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":40257,"t":"code","b":[56,11],"m":"jr","oa":40270,"o":"c,$9D4E"},{"a":40259,"t":"code","b":[225],"m":"pop","o":"hl","x":[40174,40188,40219,40235,40244,40329,40338]},{"a":40260,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":40263,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":40264,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40265,"t":"code","b":[5],"m":"dec","o":"b"},{"a":40266,"t":"code","b":[194,225,156],"m":"jp","oa":40161,"o":"nz,$9CE1"},{"a":40269,"t":"code","b":[201],"m":"ret"},{"a":40270,"c":"Shooting needs eight action points. The reach is $0C squares for a dragon's breath, $10 for a bow and $16 for a magic bow ($FF60); the shot goes only when the line of sight is clear and no longer than that ($FF48). It is fired ($7B3D), costs eight action points, and the creature is looked at again; $D18A says it shot.","t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[40257]},{"a":40273,"t":"code","b":[214,8],"m":"sub","o":"$08"},{"a":40275,"t":"code","b":[48,8],"m":"jr","oa":40285,"o":"nc,$9D5D"},{"a":40277,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":40279,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":40282,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":40283,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40284,"t":"code","b":[201],"m":"ret"},{"a":40285,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)","x":[40275]},{"a":40288,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":40290,"t":"code","b":[56,8],"m":"jr","oa":40300,"o":"c,$9D6C"},{"a":40292,"t":"code","b":[254,147],"m":"cp","o":"$93"},{"a":40294,"t":"code","b":[48,4],"m":"jr","oa":40300,"o":"nc,$9D6C"},{"a":40296,"t":"code","b":[62,12],"m":"ld","o":"a,$0C"},{"a":40298,"t":"code","b":[24,13],"m":"jr","oa":40313,"o":"$9D79"},{"a":40300,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)","x":[40290,40294]},{"a":40303,"t":"code","b":[254,92],"m":"cp","o":"$5C"},{"a":40305,"t":"code","b":[32,4],"m":"jr","oa":40311,"o":"nz,$9D77"},{"a":40307,"t":"code","b":[62,16],"m":"ld","o":"a,$10"},{"a":40309,"t":"code","b":[24,2],"m":"jr","oa":40313,"o":"$9D79"},{"a":40311,"t":"code","b":[62,22],"m":"ld","o":"a,$16","x":[40305]},{"a":40313,"t":"code","b":[50,96,255],"m":"ld","oa":65376,"o":"($FF60),a","x":[40298,40309]},{"a":40316,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":40319,"t":"code","b":[50,49,255],"m":"ld","oa":65329,"o":"($FF31),a"},{"a":40322,"t":"code","b":[175],"m":"xor","o":"a"},{"a":40323,"t":"code","b":[50,72,255],"m":"ld","oa":65352,"o":"($FF48),a"},{"a":40326,"t":"code","b":[205,233,122],"m":"call","oa":31465,"o":"line_of_sight"},{"a":40329,"t":"code","b":[32,184],"m":"jr","oa":40259,"o":"nz,$9D43"},{"a":40331,"t":"code","b":[58,96,255],"m":"ld","oa":65376,"o":"a,($FF60)"},{"a":40334,"t":"code","b":[33,72,255],"m":"ld","o":"hl,$FF48"},{"a":40337,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":40338,"t":"code","b":[56,175],"m":"jr","oa":40259,"o":"c,$9D43"},{"a":40340,"t":"code","b":[205,61,123],"m":"call","oa":31549,"o":"fire_missile"},{"a":40343,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":40346,"t":"code","b":[214,8],"m":"sub","o":"$08"},{"a":40348,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":40351,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":40352,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40353,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":40355,"t":"code","b":[50,138,209],"m":"ld","oa":53642,"o":"($D18A),a"},{"a":40358,"t":"code","b":[58,134,209],"m":"ld","oa":53638,"o":"a,($D186)"},{"a":40361,"t":"code","b":[205,171,152],"m":"call","oa":39083,"o":"look_at_creature"},{"a":40364,"t":"code","b":[201],"m":"ret"},{"a":40365,"l":"computer_find_prey","c":"Picks the nearest enemy on the computer's list that the creature could hurt as its target ($D1B6, with $D18C set and the enemy's height in $D18D): one whose defence plus a half is at most twice the creature's combat ($D17D), not riding, at the creature's height unless the creature flies, and for a creature that is not undead hunting an undead one, only while it holds a magic weapon from $60 to $67 other than the magic bow. The range takes in the cauldron ($67), which computer_decide_attack does not, so a creature holding a cauldron can chase an undead enemy it will then not attack.","t":"code","b":[33,140,209],"m":"ld","o":"hl,$D18C","x":[38881]},{"a":40368,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":40370,"t":"code","b":[58,136,209],"m":"ld","oa":53640,"o":"a,($D188)"},{"a":40373,"t":"code","b":[183],"m":"or","o":"a"},{"a":40374,"t":"code","b":[200],"m":"ret","o":"z"},{"a":40375,"t":"code","b":[33,139,209],"m":"ld","o":"hl,$D18B"},{"a":40378,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":40380,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40381,"t":"code","b":[253,33,228,208],"m":"ld","o":"iy,$D0E4"},{"a":40385,"t":"code","b":[197],"m":"push","o":"bc","x":[40502]},{"a":40386,"t":"code","b":[253,229],"m":"push","o":"iy"},{"a":40388,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)"},{"a":40391,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40392,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":40394,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":40395,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40396,"t":"code","b":[58,125,209],"m":"ld","oa":53629,"o":"a,($D17D)"},{"a":40399,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":40400,"t":"code","b":[184],"m":"cp","o":"b"},{"a":40401,"t":"code","b":[56,90],"m":"jr","oa":40493,"o":"c,$9E2D"},{"a":40403,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":40406,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":40409,"t":"code","b":[229],"m":"push","o":"hl"},{"a":40410,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":40412,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying"},{"a":40415,"t":"code","b":[56,76],"m":"jr","oa":40493,"o":"c,$9E2D"},{"a":40417,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":40420,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":40422,"t":"code","b":[40,5],"m":"jr","oa":40429,"o":"z,$9DED"},{"a":40424,"t":"code","b":[221,190,4],"m":"cp","o":"(ix+$04)"},{"a":40427,"t":"code","b":[32,64],"m":"jr","oa":40493,"o":"nz,$9E2D"},{"a":40429,"t":"code","b":[205,167,181],"m":"call","oa":46503,"o":"type_record_of","x":[40422]},{"a":40432,"t":"code","b":[253,203,11,78],"m":"bit","o":"1,(iy+$0B)"},{"a":40436,"t":"code","b":[40,25],"m":"jr","oa":40463,"o":"z,$9E0F"},{"a":40438,"t":"code","b":[253,42,82,91],"m":"ld","oa":23378,"o":"iy,($5B52)"},{"a":40442,"t":"code","b":[253,203,11,78],"m":"bit","o":"1,(iy+$0B)"},{"a":40446,"t":"code","b":[32,15],"m":"jr","oa":40463,"o":"nz,$9E0F"},{"a":40448,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":40451,"t":"code","b":[254,99],"m":"cp","o":"$63"},{"a":40453,"t":"code","b":[40,38],"m":"jr","oa":40493,"o":"z,$9E2D"},{"a":40455,"t":"code","b":[254,96],"m":"cp","o":"$60"},{"a":40457,"t":"code","b":[56,34],"m":"jr","oa":40493,"o":"c,$9E2D"},{"a":40459,"t":"code","b":[254,104],"m":"cp","o":"$68"},{"a":40461,"t":"code","b":[48,30],"m":"jr","oa":40493,"o":"nc,$9E2D"},{"a":40463,"t":"code","b":[205,148,120],"m":"call","oa":30868,"o":"entry_position","x":[40436,40446]},{"a":40466,"t":"code","b":[213],"m":"push","o":"de"},{"a":40467,"t":"code","b":[205,74,114],"m":"call","oa":29258,"o":"distance_from_selected"},{"a":40470,"t":"code","b":[209],"m":"pop","o":"de"},{"a":40471,"t":"code","b":[33,139,209],"m":"ld","o":"hl,$D18B"},{"a":40474,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":40475,"t":"code","b":[48,16],"m":"jr","oa":40493,"o":"nc,$9E2D"},{"a":40477,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":40478,"t":"code","b":[237,83,182,209],"m":"ld","oa":53686,"o":"($D1B6),de"},{"a":40482,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":40484,"t":"code","b":[50,140,209],"m":"ld","oa":53644,"o":"($D18C),a"},{"a":40487,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":40490,"t":"code","b":[50,141,209],"m":"ld","oa":53645,"o":"($D18D),a"},{"a":40493,"t":"code","b":[253,225],"m":"pop","o":"iy","x":[40401,40415,40427,40453,40457,40461,40475]},{"a":40495,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":40498,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":40500,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40501,"t":"code","b":[5],"m":"dec","o":"b"},{"a":40502,"t":"code","b":[194,193,157],"m":"jp","oa":40385,"o":"nz,$9DC1"},{"a":40505,"t":"code","b":[201],"m":"ret"},{"a":40506,"l":"computer_take_off","c":"A computer creature on the ground that can fly ($FF59) takes off whenever the rules allow it ($6DC2): flying costs six action points, and a creature with fewer than six is done ($D181 = $0B).","t":"code","b":[175],"m":"xor","o":"a","x":[38842]},{"a":40507,"t":"code","b":[50,144,209],"m":"ld","oa":53648,"o":"($D190),a"},{"a":40510,"t":"code","b":[50,145,209],"m":"ld","oa":53649,"o":"($D191),a"},{"a":40513,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":40516,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":40518,"t":"code","b":[200],"m":"ret","o":"z"},{"a":40519,"t":"code","b":[58,89,255],"m":"ld","oa":65369,"o":"a,($FF59)"},{"a":40522,"t":"code","b":[183],"m":"or","o":"a"},{"a":40523,"t":"code","b":[200],"m":"ret","o":"z"},{"a":40524,"t":"code","b":[205,194,109],"m":"call","oa":28098,"o":"can_fly_or_land"},{"a":40527,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":40530,"t":"code","b":[254,6],"m":"cp","o":"$06"},{"a":40532,"t":"code","b":[48,6],"m":"jr","oa":40540,"o":"nc,$9E5C"},{"a":40534,"t":"code","b":[62,11],"m":"ld","o":"a,$0B"},{"a":40536,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":40539,"t":"code","b":[201],"m":"ret"},{"a":40540,"t":"code","b":[58,144,209],"m":"ld","oa":53648,"o":"a,($D190)","x":[40532]},{"a":40543,"t":"code","b":[183],"m":"or","o":"a"},{"a":40544,"t":"code","b":[200],"m":"ret","o":"z"},{"a":40545,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":40548,"t":"code","b":[214,6],"m":"sub","o":"$06"},{"a":40550,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":40553,"t":"code","b":[205,81,110],"m":"call","oa":28241,"o":"fly"},{"a":40556,"t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)"},{"a":40559,"t":"code","b":[205,55,119],"m":"call","oa":30519,"o":"load_creature"},{"a":40562,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":40565,"t":"code","b":[183],"m":"or","o":"a"},{"a":40566,"t":"code","b":[204,189,143],"m":"call","oa":36797,"o":"z,draw_creature_panel"},{"a":40569,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":40572,"t":"code","b":[201],"m":"ret"},{"a":40573,"l":"computer_flee","c":"A creature that is not a guard looks for danger: enemies on its list whose combat plus a half is more than twice its defence ($D17E), leaving out those that cannot fly when it can, and for an undead creature those that are neither undead nor holding a magic weapon. Their squares go to the list at $D120 ($D199 of them). With none, $D198 is cleared. Otherwise it flees ($D198 set; its trail is forgotten when the flight begins): to the first square next to it that no enemy on its list can see and that it can enter ($D19A set), or, when every one is seen or blocked, to the neighbour farthest from the dangerous enemies, by the sum of the distances.","t":"code","b":[175],"m":"xor","o":"a","x":[38872]},{"a":40574,"t":"code","b":[50,153,209],"m":"ld","oa":53657,"o":"($D199),a"},{"a":40577,"t":"code","b":[50,154,209],"m":"ld","oa":53658,"o":"($D19A),a"},{"a":40580,"t":"code","b":[50,184,209],"m":"ld","oa":53688,"o":"($D1B8),a"},{"a":40583,"t":"code","b":[58,186,209],"m":"ld","oa":53690,"o":"a,($D1BA)"},{"a":40586,"t":"code","b":[183],"m":"or","o":"a"},{"a":40587,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":40588,"t":"code","b":[58,136,209],"m":"ld","oa":53640,"o":"a,($D188)"},{"a":40591,"t":"code","b":[183],"m":"or","o":"a"},{"a":40592,"t":"code","b":[202,50,159],"m":"jp","oa":40754,"o":"z,$9F32"},{"a":40595,"t":"code","b":[33,32,209],"m":"ld","o":"hl,$D120"},{"a":40598,"t":"code","b":[34,146,209],"m":"ld","oa":53650,"o":"($D192),hl"},{"a":40601,"t":"code","b":[17,33,209],"m":"ld","o":"de,$D121"},{"a":40604,"t":"code","b":[1,39,0],"m":"ld","o":"bc,$0027"},{"a":40607,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":40609,"t":"code","b":[237,176],"m":"ldir"},{"a":40611,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40612,"t":"code","b":[33,228,208],"m":"ld","o":"hl,$D0E4"},{"a":40615,"t":"code","b":[34,150,209],"m":"ld","oa":53654,"o":"($D196),hl"},{"a":40618,"t":"code","b":[197],"m":"push","o":"bc","x":[40745]},{"a":40619,"t":"code","b":[253,42,150,209],"m":"ld","oa":53654,"o":"iy,($D196)"},{"a":40623,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)"},{"a":40626,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40627,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":40629,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":40630,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40631,"t":"code","b":[58,126,209],"m":"ld","oa":53630,"o":"a,($D17E)"},{"a":40634,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":40635,"t":"code","b":[184],"m":"cp","o":"b"},{"a":40636,"t":"code","b":[48,95],"m":"jr","oa":40733,"o":"nc,$9F1D"},{"a":40638,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":40641,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":40644,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40645,"t":"code","b":[50,148,209],"m":"ld","oa":53652,"o":"($D194),a"},{"a":40648,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40649,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40650,"t":"code","b":[230,63],"m":"and","o":"$3F"},{"a":40652,"t":"code","b":[50,149,209],"m":"ld","oa":53653,"o":"($D195),a"},{"a":40655,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40656,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40657,"t":"code","b":[205,170,181],"m":"call","oa":46506,"o":"type_record"},{"a":40660,"t":"code","b":[221,42,82,91],"m":"ld","oa":23378,"o":"ix,($5B52)"},{"a":40664,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":40667,"t":"code","b":[183],"m":"or","o":"a"},{"a":40668,"t":"code","b":[40,6],"m":"jr","oa":40676,"o":"z,$9EE4"},{"a":40670,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)"},{"a":40673,"t":"code","b":[183],"m":"or","o":"a"},{"a":40674,"t":"code","b":[40,57],"m":"jr","oa":40733,"o":"z,$9F1D"},{"a":40676,"t":"code","b":[221,42,82,91],"m":"ld","oa":23378,"o":"ix,($5B52)","x":[40668]},{"a":40680,"t":"code","b":[221,203,11,78],"m":"bit","o":"1,(ix+$0B)"},{"a":40684,"t":"code","b":[40,24],"m":"jr","oa":40710,"o":"z,$9F06"},{"a":40686,"t":"code","b":[253,203,11,78],"m":"bit","o":"1,(iy+$0B)"},{"a":40690,"t":"code","b":[32,18],"m":"jr","oa":40710,"o":"nz,$9F06"},{"a":40692,"t":"code","b":[42,150,209],"m":"ld","oa":53654,"o":"hl,($D196)"},{"a":40695,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40696,"t":"code","b":[205,73,103],"m":"call","oa":26441,"o":"list_carried"},{"a":40699,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":40702,"t":"code","b":[254,96],"m":"cp","o":"$60"},{"a":40704,"t":"code","b":[56,27],"m":"jr","oa":40733,"o":"c,$9F1D"},{"a":40706,"t":"code","b":[254,103],"m":"cp","o":"$67"},{"a":40708,"t":"code","b":[48,23],"m":"jr","oa":40733,"o":"nc,$9F1D"},{"a":40710,"t":"code","b":[42,146,209],"m":"ld","oa":53650,"o":"hl,($D192)","x":[40684,40690]},{"a":40713,"t":"code","b":[237,91,148,209],"m":"ld","oa":53652,"o":"de,($D194)"},{"a":40717,"t":"code","b":[115],"m":"ld","o":"(hl),e"},{"a":40718,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40719,"t":"code","b":[114],"m":"ld","o":"(hl),d"},{"a":40720,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40721,"t":"code","b":[34,146,209],"m":"ld","oa":53650,"o":"($D192),hl"},{"a":40724,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":40726,"t":"code","b":[50,184,209],"m":"ld","oa":53688,"o":"($D1B8),a"},{"a":40729,"t":"code","b":[33,153,209],"m":"ld","o":"hl,$D199"},{"a":40732,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":40733,"t":"code","b":[42,150,209],"m":"ld","oa":53654,"o":"hl,($D196)","x":[40636,40674,40704,40708]},{"a":40736,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":40739,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":40740,"t":"code","b":[34,150,209],"m":"ld","oa":53654,"o":"($D196),hl"},{"a":40743,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40744,"t":"code","b":[5],"m":"dec","o":"b"},{"a":40745,"t":"code","b":[194,170,158],"m":"jp","oa":40618,"o":"nz,$9EAA"},{"a":40748,"t":"code","b":[58,184,209],"m":"ld","oa":53688,"o":"a,($D1B8)"},{"a":40751,"t":"code","b":[183],"m":"or","o":"a"},{"a":40752,"t":"code","b":[32,5],"m":"jr","oa":40759,"o":"nz,$9F37"},{"a":40754,"t":"code","b":[175],"m":"xor","o":"a","x":[40592]},{"a":40755,"t":"code","b":[50,152,209],"m":"ld","oa":53656,"o":"($D198),a"},{"a":40758,"t":"code","b":[201],"m":"ret"},{"a":40759,"t":"code","b":[58,152,209],"m":"ld","oa":53656,"o":"a,($D198)","x":[40752]},{"a":40762,"t":"code","b":[183],"m":"or","o":"a"},{"a":40763,"t":"code","b":[204,179,154],"m":"call","oa":39603,"o":"z,forget_trail"},{"a":40766,"t":"code","b":[58,184,209],"m":"ld","oa":53688,"o":"a,($D1B8)"},{"a":40769,"t":"code","b":[50,152,209],"m":"ld","oa":53656,"o":"($D198),a"},{"a":40772,"t":"code","b":[205,168,144],"m":"call","oa":37032,"o":"list_neighbours_of_selected"},{"a":40775,"t":"code","b":[33,12,255],"m":"ld","o":"hl,$FF0C"},{"a":40778,"t":"code","b":[34,148,209],"m":"ld","oa":53652,"o":"($D194),hl"},{"a":40781,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":40783,"t":"code","b":[197],"m":"push","o":"bc","x":[40891]},{"a":40784,"t":"code","b":[42,148,209],"m":"ld","oa":53652,"o":"hl,($D194)"},{"a":40787,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":40788,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40789,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":40790,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40791,"t":"code","b":[34,148,209],"m":"ld","oa":53652,"o":"($D194),hl"},{"a":40794,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":40796,"t":"code","b":[237,83,77,255],"m":"ld","oa":65357,"o":"($FF4D),de"},{"a":40800,"t":"code","b":[33,228,208],"m":"ld","o":"hl,$D0E4"},{"a":40803,"t":"code","b":[58,136,209],"m":"ld","oa":53640,"o":"a,($D188)"},{"a":40806,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40807,"t":"code","b":[197],"m":"push","o":"bc","x":[40881]},{"a":40808,"t":"code","b":[229],"m":"push","o":"hl"},{"a":40809,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40810,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":40813,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":40814,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40815,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40816,"t":"code","b":[230,63],"m":"and","o":"$3F"},{"a":40818,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":40819,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40820,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40821,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40822,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40823,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":40825,"t":"code","b":[56,19],"m":"jr","oa":40846,"o":"c,$9F8E"},{"a":40827,"t":"code","b":[50,49,255],"m":"ld","oa":65329,"o":"($FF31),a"},{"a":40830,"t":"code","b":[237,83,136,255],"m":"ld","oa":65416,"o":"($FF88),de"},{"a":40834,"t":"code","b":[205,245,122],"m":"call","oa":31477,"o":"line_between"},{"a":40837,"t":"code","b":[32,7],"m":"jr","oa":40846,"o":"nz,$9F8E"},{"a":40839,"t":"code","b":[42,148,209],"m":"ld","oa":53652,"o":"hl,($D194)","x":[40865,40873]},{"a":40842,"t":"code","b":[54,1],"m":"ld","o":"(hl),$01"},{"a":40844,"t":"code","b":[24,29],"m":"jr","oa":40875,"o":"$9FAB"},{"a":40846,"t":"code","b":[42,77,255],"m":"ld","oa":65357,"o":"hl,($FF4D)","x":[40825,40837]},{"a":40849,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":40852,"t":"code","b":[205,39,145],"m":"call","oa":37159,"o":"terrain_record"},{"a":40855,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":40858,"t":"code","b":[60],"m":"inc","o":"a"},{"a":40859,"t":"code","b":[40,8],"m":"jr","oa":40869,"o":"z,$9FA5"},{"a":40861,"t":"code","b":[253,203,4,94],"m":"bit","o":"3,(iy+$04)"},{"a":40865,"t":"code","b":[32,228],"m":"jr","oa":40839,"o":"nz,$9F87"},{"a":40867,"t":"code","b":[24,6],"m":"jr","oa":40875,"o":"$9FAB"},{"a":40869,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)","x":[40859]},{"a":40872,"t":"code","b":[60],"m":"inc","o":"a"},{"a":40873,"t":"code","b":[40,220],"m":"jr","oa":40839,"o":"z,$9F87"},{"a":40875,"t":"code","b":[225],"m":"pop","o":"hl","x":[40844,40867]},{"a":40876,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40877,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":40880,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":40881,"t":"code","b":[16,180],"m":"djnz","oa":40807,"o":"$9F67"},{"a":40883,"t":"code","b":[42,148,209],"m":"ld","oa":53652,"o":"hl,($D194)"},{"a":40886,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40887,"t":"code","b":[34,148,209],"m":"ld","oa":53652,"o":"($D194),hl"},{"a":40890,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40891,"t":"code","b":[16,146],"m":"djnz","oa":40783,"o":"$9F4F"},{"a":40893,"t":"code","b":[205,72,154],"m":"call","oa":39496,"o":"sort_neighbours"},{"a":40896,"t":"code","b":[58,14,255],"m":"ld","oa":65294,"o":"a,($FF0E)"},{"a":40899,"t":"code","b":[183],"m":"or","o":"a"},{"a":40900,"t":"code","b":[32,11],"m":"jr","oa":40913,"o":"nz,$9FD1"},{"a":40902,"t":"code","b":[42,12,255],"m":"ld","oa":65292,"o":"hl,($FF0C)"},{"a":40905,"t":"code","b":[34,182,209],"m":"ld","oa":53686,"o":"($D1B6),hl"},{"a":40908,"t":"code","b":[60],"m":"inc","o":"a"},{"a":40909,"t":"code","b":[50,154,209],"m":"ld","oa":53658,"o":"($D19A),a"},{"a":40912,"t":"code","b":[201],"m":"ret"},{"a":40913,"t":"code","b":[205,168,144],"m":"call","oa":37032,"o":"list_neighbours_of_selected","x":[40900]},{"a":40916,"t":"code","b":[33,12,255],"m":"ld","o":"hl,$FF0C"},{"a":40919,"t":"code","b":[34,148,209],"m":"ld","oa":53652,"o":"($D194),hl"},{"a":40922,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":40924,"t":"code","b":[197],"m":"push","o":"bc","x":[40981]},{"a":40925,"t":"code","b":[42,148,209],"m":"ld","oa":53652,"o":"hl,($D194)"},{"a":40928,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":40929,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40930,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":40931,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40932,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":40934,"t":"code","b":[34,148,209],"m":"ld","oa":53652,"o":"($D194),hl"},{"a":40937,"t":"code","b":[237,83,77,255],"m":"ld","oa":65357,"o":"($FF4D),de"},{"a":40941,"t":"code","b":[58,153,209],"m":"ld","oa":53657,"o":"a,($D199)"},{"a":40944,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40945,"t":"code","b":[33,32,209],"m":"ld","o":"hl,$D120"},{"a":40948,"t":"code","b":[197],"m":"push","o":"bc","x":[40971]},{"a":40949,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":40950,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40951,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":40952,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40953,"t":"code","b":[229],"m":"push","o":"hl"},{"a":40954,"t":"code","b":[42,77,255],"m":"ld","oa":65357,"o":"hl,($FF4D)"},{"a":40957,"t":"code","b":[205,77,114],"m":"call","oa":29261,"o":"distance"},{"a":40960,"t":"code","b":[42,148,209],"m":"ld","oa":53652,"o":"hl,($D194)"},{"a":40963,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":40964,"t":"code","b":[48,2],"m":"jr","oa":40968,"o":"nc,$A008"},{"a":40966,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":40968,"t":"code","b":[119],"m":"ld","o":"(hl),a","x":[40964]},{"a":40969,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":40970,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40971,"t":"code","b":[16,231],"m":"djnz","oa":40948,"o":"$9FF4"},{"a":40973,"t":"code","b":[42,148,209],"m":"ld","oa":53652,"o":"hl,($D194)"},{"a":40976,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40977,"t":"code","b":[34,148,209],"m":"ld","oa":53652,"o":"($D194),hl"},{"a":40980,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40981,"t":"code","b":[16,197],"m":"djnz","oa":40924,"o":"$9FDC"},{"a":40983,"t":"code","b":[205,72,154],"m":"call","oa":39496,"o":"sort_neighbours"},{"a":40986,"t":"code","b":[42,33,255],"m":"ld","oa":65313,"o":"hl,($FF21)"},{"a":40989,"t":"code","b":[34,182,209],"m":"ld","oa":53686,"o":"($D1B6),hl"},{"a":40992,"t":"code","b":[201],"m":"ret"},{"a":40993,"l":"computer_seek_object","c":"Picks the object worth going for among those the creature has seen ($D189 of them, their entries listed at $D148), if it carries fewer than ten things. Each object type's worth is in the scenario's table at $D3B9 (0: never); its square must be one the creature can stand on. A locked chest needs a chest key carried; chests are for creatures that can USE; a healing potion is for a creature that has lost constitution and the other potions ($6B-$70) for one with no potion working; anything else must not be too heavy to carry ($D17A). The score is the worth divided by the distance plus one, and the best gives the target square ($D1B6) and the object type ($D19B).","t":"code","b":[175],"m":"xor","o":"a","x":[38890]},{"a":40994,"t":"code","b":[50,155,209],"m":"ld","oa":53659,"o":"($D19B),a"},{"a":40997,"t":"code","b":[50,156,209],"m":"ld","oa":53660,"o":"($D19C),a"},{"a":41000,"t":"code","b":[58,137,209],"m":"ld","oa":53641,"o":"a,($D189)"},{"a":41003,"t":"code","b":[183],"m":"or","o":"a"},{"a":41004,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41005,"t":"code","b":[205,65,103],"m":"call","oa":26433,"o":"list_selected_carries"},{"a":41008,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":41011,"t":"code","b":[254,10],"m":"cp","o":"$0A"},{"a":41013,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":41014,"t":"code","b":[58,137,209],"m":"ld","oa":53641,"o":"a,($D189)"},{"a":41017,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":41018,"t":"code","b":[33,72,209],"m":"ld","o":"hl,$D148"},{"a":41021,"t":"code","b":[197],"m":"push","o":"bc","x":[41196]},{"a":41022,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":41023,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41024,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":41025,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41026,"t":"code","b":[229],"m":"push","o":"hl"},{"a":41027,"t":"code","b":[213],"m":"push","o":"de"},{"a":41028,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":41030,"t":"code","b":[221,94,2],"m":"ld","o":"e,(ix+$02)"},{"a":41033,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":41035,"t":"code","b":[33,185,211],"m":"ld","o":"hl,$D3B9"},{"a":41038,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":41039,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41040,"t":"code","b":[230,127],"m":"and","o":"$7F"},{"a":41042,"t":"code","b":[202,233,160],"m":"jp","oa":41193,"o":"z,$A0E9"},{"a":41045,"t":"code","b":[50,34,91],"m":"ld","oa":23330,"o":"($5B22),a"},{"a":41048,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":41051,"t":"code","b":[50,35,91],"m":"ld","oa":23331,"o":"($5B23),a"},{"a":41054,"t":"code","b":[205,162,120],"m":"call","oa":30882,"o":"entry_column"},{"a":41057,"t":"code","b":[50,36,91],"m":"ld","oa":23332,"o":"($5B24),a"},{"a":41060,"t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)"},{"a":41063,"t":"code","b":[205,166,131],"m":"call","oa":33702,"o":"square_free"},{"a":41066,"t":"code","b":[194,233,160],"m":"jp","oa":41193,"o":"nz,$A0E9"},{"a":41069,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":41072,"t":"code","b":[254,122],"m":"cp","o":"$7A"},{"a":41074,"t":"code","b":[32,23],"m":"jr","oa":41099,"o":"nz,$A08B"},{"a":41076,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":41079,"t":"code","b":[183],"m":"or","o":"a"},{"a":41080,"t":"code","b":[202,233,160],"m":"jp","oa":41193,"o":"z,$A0E9"},{"a":41083,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":41084,"t":"code","b":[62,126],"m":"ld","o":"a,$7E"},{"a":41086,"t":"code","b":[33,193,209],"m":"ld","o":"hl,$D1C1"},{"a":41089,"t":"code","b":[190],"m":"cp","o":"(hl)","x":[41094]},{"a":41090,"t":"code","b":[40,7],"m":"jr","oa":41099,"o":"z,$A08B"},{"a":41092,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41093,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41094,"t":"code","b":[16,249],"m":"djnz","oa":41089,"o":"$A081"},{"a":41096,"t":"code","b":[195,233,160],"m":"jp","oa":41193,"o":"$A0E9"},{"a":41099,"t":"code","b":[58,128,209],"m":"ld","oa":53632,"o":"a,($D180)","x":[41074,41090]},{"a":41102,"t":"code","b":[183],"m":"or","o":"a"},{"a":41103,"t":"code","b":[40,11],"m":"jr","oa":41116,"o":"z,$A09C"},{"a":41105,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":41108,"t":"code","b":[254,122],"m":"cp","o":"$7A"},{"a":41110,"t":"code","b":[40,50],"m":"jr","oa":41162,"o":"z,$A0CA"},{"a":41112,"t":"code","b":[254,123],"m":"cp","o":"$7B"},{"a":41114,"t":"code","b":[40,46],"m":"jr","oa":41162,"o":"z,$A0CA"},{"a":41116,"t":"code","b":[254,113],"m":"cp","o":"$71","x":[41103]},{"a":41118,"t":"code","b":[32,13],"m":"jr","oa":41133,"o":"nz,$A0AD"},{"a":41120,"t":"code","b":[253,42,80,91],"m":"ld","oa":23376,"o":"iy,($5B50)"},{"a":41124,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)"},{"a":41127,"t":"code","b":[33,2,210],"m":"ld","o":"hl,$D202"},{"a":41130,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41131,"t":"code","b":[56,29],"m":"jr","oa":41162,"o":"c,$A0CA"},{"a":41133,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)","x":[41118]},{"a":41136,"t":"code","b":[254,107],"m":"cp","o":"$6B"},{"a":41138,"t":"code","b":[56,11],"m":"jr","oa":41151,"o":"c,$A0BF"},{"a":41140,"t":"code","b":[254,113],"m":"cp","o":"$71"},{"a":41142,"t":"code","b":[48,7],"m":"jr","oa":41151,"o":"nc,$A0BF"},{"a":41144,"t":"code","b":[205,206,120],"m":"call","oa":30926,"o":"selected_potion"},{"a":41147,"t":"code","b":[230,31],"m":"and","o":"$1F"},{"a":41149,"t":"code","b":[40,11],"m":"jr","oa":41162,"o":"z,$A0CA"},{"a":41151,"t":"code","b":[205,157,148],"m":"call","oa":38045,"o":"object_record_of","x":[41138,41142]},{"a":41154,"t":"code","b":[58,122,209],"m":"ld","oa":53626,"o":"a,($D17A)"},{"a":41157,"t":"code","b":[253,150,1],"m":"sub","o":"(iy+$01)"},{"a":41160,"t":"code","b":[56,31],"m":"jr","oa":41193,"o":"c,$A0E9"},{"a":41162,"t":"code","b":[205,148,120],"m":"call","oa":30868,"o":"entry_position","x":[41110,41114,41131,41149]},{"a":41165,"t":"code","b":[205,74,114],"m":"call","oa":29258,"o":"distance_from_selected"},{"a":41168,"t":"code","b":[60],"m":"inc","o":"a"},{"a":41169,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":41170,"t":"code","b":[58,34,91],"m":"ld","oa":23330,"o":"a,($5B22)"},{"a":41173,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":41176,"t":"code","b":[33,156,209],"m":"ld","o":"hl,$D19C"},{"a":41179,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41180,"t":"code","b":[56,11],"m":"jr","oa":41193,"o":"c,$A0E9"},{"a":41182,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":41183,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":41186,"t":"code","b":[50,155,209],"m":"ld","oa":53659,"o":"($D19B),a"},{"a":41189,"t":"code","b":[237,83,182,209],"m":"ld","oa":53686,"o":"($D1B6),de"},{"a":41193,"t":"code","b":[225],"m":"pop","o":"hl","x":[41042,41066,41080,41096,41160,41180]},{"a":41194,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":41195,"t":"code","b":[5],"m":"dec","o":"b"},{"a":41196,"t":"code","b":[194,61,160],"m":"jp","oa":41021,"o":"nz,$A03D"},{"a":41199,"t":"code","b":[201],"m":"ret"},{"a":41200,"l":"computer_pick_up","c":"On the target object's square, with no partner there ($D181 = $0C otherwise): chests and potions are left to computer_open_chest and computer_drink; anything else is picked up and made the object in use, landing first if the creature flies. It costs eight action points ($D181 = $0D when there are fewer). The weight it can still carry ($D17A) goes down by the object's weight. Ends the step.","t":"code","b":[58,155,209],"m":"ld","oa":53659,"o":"a,($D19B)","x":[38827]},{"a":41203,"t":"code","b":[183],"m":"or","o":"a"},{"a":41204,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41205,"t":"code","b":[205,74,152],"m":"call","oa":38986,"o":"at_target"},{"a":41208,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":41209,"t":"code","b":[205,86,113],"m":"call","oa":29014,"o":"find_partner"},{"a":41212,"t":"code","b":[32,8],"m":"jr","oa":41222,"o":"nz,$A106"},{"a":41214,"t":"code","b":[62,12],"m":"ld","o":"a,$0C"},{"a":41216,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":41219,"t":"code","b":[195,146,161],"m":"jp","oa":41362,"o":"$A192"},{"a":41222,"t":"code","b":[58,155,209],"m":"ld","oa":53659,"o":"a,($D19B)","x":[41212]},{"a":41225,"t":"code","b":[254,122],"m":"cp","o":"$7A"},{"a":41227,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41228,"t":"code","b":[254,123],"m":"cp","o":"$7B"},{"a":41230,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41231,"t":"code","b":[254,107],"m":"cp","o":"$6B"},{"a":41233,"t":"code","b":[56,3],"m":"jr","oa":41238,"o":"c,$A116"},{"a":41235,"t":"code","b":[254,114],"m":"cp","o":"$72"},{"a":41237,"t":"code","b":[216],"m":"ret","o":"c"},{"a":41238,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)","x":[41233]},{"a":41241,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":41243,"t":"code","b":[32,4],"m":"jr","oa":41249,"o":"nz,$A121"},{"a":41245,"t":"code","b":[205,140,152],"m":"call","oa":39052,"o":"computer_land"},{"a":41248,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41249,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[41243]},{"a":41252,"t":"code","b":[214,8],"m":"sub","o":"$08"},{"a":41254,"t":"code","b":[48,7],"m":"jr","oa":41263,"o":"nc,$A12F"},{"a":41256,"t":"code","b":[62,13],"m":"ld","o":"a,$0D"},{"a":41258,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":41261,"t":"code","b":[24,99],"m":"jr","oa":41362,"o":"$A192"},{"a":41263,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a","x":[41254]},{"a":41266,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":41268,"t":"code","b":[205,186,109],"m":"call","oa":28090,"o":"spend_action_points"},{"a":41271,"t":"code","b":[205,65,103],"m":"call","oa":26433,"o":"list_selected_carries"},{"a":41274,"t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here"},{"a":41277,"t":"code","b":[33,213,209],"m":"ld","o":"hl,$D1D5"},{"a":41280,"t":"code","b":[58,155,209],"m":"ld","oa":53659,"o":"a,($D19B)"},{"a":41283,"t":"code","b":[190],"m":"cp","o":"(hl)","x":[41288]},{"a":41284,"t":"code","b":[40,4],"m":"jr","oa":41290,"o":"z,$A14A"},{"a":41286,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41287,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41288,"t":"code","b":[24,249],"m":"jr","oa":41283,"o":"$A143"},{"a":41290,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[41284]},{"a":41291,"t":"code","b":[205,160,148],"m":"call","oa":38048,"o":"object_record"},{"a":41294,"t":"code","b":[58,122,209],"m":"ld","oa":53626,"o":"a,($D17A)"},{"a":41297,"t":"code","b":[253,150,1],"m":"sub","o":"(iy+$01)"},{"a":41300,"t":"code","b":[50,122,209],"m":"ld","oa":53626,"o":"($D17A),a"},{"a":41303,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41304,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":41307,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":41308,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41309,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":41312,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":41315,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":41316,"t":"code","b":[203,254],"m":"set","o":"7,(hl)"},{"a":41318,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41319,"t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)"},{"a":41322,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":41323,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":41326,"t":"code","b":[183],"m":"or","o":"a"},{"a":41327,"t":"code","b":[40,8],"m":"jr","oa":41337,"o":"z,$A179"},{"a":41329,"t":"code","b":[221,42,219,208],"m":"ld","oa":53467,"o":"ix,($D0DB)"},{"a":41333,"t":"code","b":[221,203,3,190],"m":"res","o":"7,(ix+$03)"},{"a":41337,"t":"code","b":[58,87,91],"m":"ld","oa":23383,"o":"a,($5B57)","x":[41327]},{"a":41340,"t":"code","b":[50,217,208],"m":"ld","oa":53465,"o":"($D0D9),a"},{"a":41343,"t":"code","b":[58,145,255],"m":"ld","oa":65425,"o":"a,($FF91)"},{"a":41346,"t":"code","b":[50,144,255],"m":"ld","oa":65424,"o":"($FF90),a"},{"a":41349,"t":"code","b":[175],"m":"xor","o":"a"},{"a":41350,"t":"code","b":[50,155,209],"m":"ld","oa":53659,"o":"($D19B),a"},{"a":41353,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":41356,"t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here"},{"a":41359,"t":"code","b":[205,179,154],"m":"call","oa":39603,"o":"forget_trail"},{"a":41362,"t":"code","b":[225],"m":"pop","o":"hl","x":[41219,41261]},{"a":41363,"t":"code","b":[195,23,152],"m":"jp","oa":38935,"o":"$9817"},{"a":41366,"l":"computer_drink","c":"Drinks a potion ($6B-$71) lying on the creature's square ($5B2C): the healing potion only when constitution is below its most, the others only when no potion is working. Costs four action points ($D181 = $0E when there are fewer) and lands the creature first if it flies.","t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here","x":[38821]},{"a":41369,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)"},{"a":41372,"t":"code","b":[254,107],"m":"cp","o":"$6B"},{"a":41374,"t":"code","b":[216],"m":"ret","o":"c"},{"a":41375,"t":"code","b":[254,114],"m":"cp","o":"$72"},{"a":41377,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":41378,"t":"code","b":[253,42,80,91],"m":"ld","oa":23376,"o":"iy,($5B50)"},{"a":41382,"t":"code","b":[254,113],"m":"cp","o":"$71"},{"a":41384,"t":"code","b":[32,10],"m":"jr","oa":41396,"o":"nz,$A1B4"},{"a":41386,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)"},{"a":41389,"t":"code","b":[33,2,210],"m":"ld","o":"hl,$D202"},{"a":41392,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41393,"t":"code","b":[56,7],"m":"jr","oa":41402,"o":"c,$A1BA"},{"a":41395,"t":"code","b":[201],"m":"ret"},{"a":41396,"t":"code","b":[205,206,120],"m":"call","oa":30926,"o":"selected_potion","x":[41384]},{"a":41399,"t":"code","b":[230,31],"m":"and","o":"$1F"},{"a":41401,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":41402,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[41393]},{"a":41405,"t":"code","b":[214,4],"m":"sub","o":"$04"},{"a":41407,"t":"code","b":[48,6],"m":"jr","oa":41415,"o":"nc,$A1C7"},{"a":41409,"t":"code","b":[62,14],"m":"ld","o":"a,$0E"},{"a":41411,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":41414,"t":"code","b":[201],"m":"ret"},{"a":41415,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)","x":[41407]},{"a":41418,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":41420,"t":"code","b":[32,4],"m":"jr","oa":41426,"o":"nz,$A1D2"},{"a":41422,"t":"code","b":[205,140,152],"m":"call","oa":39052,"o":"computer_land"},{"a":41425,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41426,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[41420]},{"a":41429,"t":"code","b":[214,4],"m":"sub","o":"$04"},{"a":41431,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":41434,"t":"code","b":[205,208,115],"m":"call","oa":29648,"o":"drink"},{"a":41437,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":41440,"t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here"},{"a":41443,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)"},{"a":41446,"t":"code","b":[50,144,255],"m":"ld","oa":65424,"o":"($FF90),a"},{"a":41449,"t":"code","b":[205,179,154],"m":"call","oa":39603,"o":"forget_trail"},{"a":41452,"t":"code","b":[201],"m":"ret"},{"a":41453,"l":"computer_open_chest","c":"When the next step reaches a target chest: a locked chest is opened with a chest key made the object in use, then USE ($726C) on the square for four action points; not possible ends the move ($D181 = $0F). Ends the step.","t":"code","b":[58,142,209],"m":"ld","oa":53646,"o":"a,($D18E)","x":[38929]},{"a":41456,"t":"code","b":[183],"m":"or","o":"a"},{"a":41457,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41458,"t":"code","b":[58,155,209],"m":"ld","oa":53659,"o":"a,($D19B)"},{"a":41461,"t":"code","b":[254,123],"m":"cp","o":"$7B"},{"a":41463,"t":"code","b":[40,10],"m":"jr","oa":41475,"o":"z,$A203"},{"a":41465,"t":"code","b":[254,122],"m":"cp","o":"$7A"},{"a":41467,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":41468,"t":"code","b":[62,126],"m":"ld","o":"a,$7E"},{"a":41470,"t":"code","b":[205,50,156],"m":"call","oa":39986,"o":"computer_take_object"},{"a":41473,"t":"code","b":[56,31],"m":"jr","oa":41506,"o":"c,$A222"},{"a":41475,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[41463]},{"a":41478,"t":"code","b":[214,4],"m":"sub","o":"$04"},{"a":41480,"t":"code","b":[56,24],"m":"jr","oa":41506,"o":"c,$A222"},{"a":41482,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":41485,"t":"code","b":[42,182,209],"m":"ld","oa":53686,"o":"hl,($D1B6)"},{"a":41488,"t":"code","b":[34,211,208],"m":"ld","oa":53459,"o":"($D0D3),hl"},{"a":41491,"t":"code","b":[205,108,114],"m":"call","oa":29292,"o":"use_square"},{"a":41494,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":41497,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":41500,"t":"code","b":[183],"m":"or","o":"a"},{"a":41501,"t":"code","b":[204,76,169],"m":"call","oa":43340,"o":"z,draw_map"},{"a":41504,"t":"code","b":[24,5],"m":"jr","oa":41511,"o":"$A227"},{"a":41506,"t":"code","b":[62,15],"m":"ld","o":"a,$0F","x":[41473,41480]},{"a":41508,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":41511,"t":"code","b":[225],"m":"pop","o":"hl","x":[41504]},{"a":41512,"t":"code","b":[195,23,152],"m":"jp","oa":38935,"o":"$9817"},{"a":41515,"l":"computer_choose_weapon","c":"A creature that uses weapons (bit 2 of byte 11 of its type) holds the best weapon it carries, by the scenario's worth table: swords to axes and their magic kinds ($59-$66), but not shields ($5B, $62).","t":"code","b":[253,42,82,91],"m":"ld","oa":23378,"o":"iy,($5B52)","x":[38839]},{"a":41519,"t":"code","b":[253,203,11,86],"m":"bit","o":"2,(iy+$0B)"},{"a":41523,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41524,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":41527,"t":"code","b":[183],"m":"or","o":"a"},{"a":41528,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41529,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":41530,"t":"code","b":[175],"m":"xor","o":"a"},{"a":41531,"t":"code","b":[50,157,209],"m":"ld","oa":53661,"o":"($D19D),a"},{"a":41534,"t":"code","b":[50,158,209],"m":"ld","oa":53662,"o":"($D19E),a"},{"a":41537,"t":"code","b":[33,193,209],"m":"ld","o":"hl,$D1C1"},{"a":41540,"t":"code","b":[229],"m":"push","o":"hl","x":[41577]},{"a":41541,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41542,"t":"code","b":[254,91],"m":"cp","o":"$5B"},{"a":41544,"t":"code","b":[40,28],"m":"jr","oa":41574,"o":"z,$A266"},{"a":41546,"t":"code","b":[254,98],"m":"cp","o":"$62"},{"a":41548,"t":"code","b":[40,24],"m":"jr","oa":41574,"o":"z,$A266"},{"a":41550,"t":"code","b":[254,89],"m":"cp","o":"$59"},{"a":41552,"t":"code","b":[56,20],"m":"jr","oa":41574,"o":"c,$A266"},{"a":41554,"t":"code","b":[254,103],"m":"cp","o":"$67"},{"a":41556,"t":"code","b":[48,16],"m":"jr","oa":41574,"o":"nc,$A266"},{"a":41558,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":41559,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":41561,"t":"code","b":[33,185,211],"m":"ld","o":"hl,$D3B9"},{"a":41564,"t":"code","b":[205,175,120],"m":"call","oa":30895,"o":"value_against_best_at"},{"a":41567,"t":"code","b":[56,5],"m":"jr","oa":41574,"o":"c,$A266"},{"a":41569,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":41570,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":41571,"t":"code","b":[50,158,209],"m":"ld","oa":53662,"o":"($D19E),a"},{"a":41574,"t":"code","b":[225],"m":"pop","o":"hl","x":[41544,41548,41552,41556,41567]},{"a":41575,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41576,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41577,"t":"code","b":[16,217],"m":"djnz","oa":41540,"o":"$A244"},{"a":41579,"t":"code","b":[58,158,209],"m":"ld","oa":53662,"o":"a,($D19E)"},{"a":41582,"t":"code","b":[183],"m":"or","o":"a"},{"a":41583,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41584,"t":"code","b":[33,217,208],"m":"ld","o":"hl,$D0D9"},{"a":41587,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41588,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41589,"t":"code","b":[205,50,156],"m":"call","oa":39986,"o":"computer_take_object"},{"a":41592,"t":"code","b":[201],"m":"ret"},{"a":41593,"l":"computer_choose_vial","c":"Picks a vial ($73-$79) it carries to drink: the healing vial at once when constitution plus a half is below its most; otherwise the one of highest worth.","t":"code","b":[205,65,103],"m":"call","oa":26433,"o":"list_selected_carries","x":[38830]},{"a":41596,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":41599,"t":"code","b":[183],"m":"or","o":"a"},{"a":41600,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41601,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":41602,"t":"code","b":[175],"m":"xor","o":"a"},{"a":41603,"t":"code","b":[50,157,209],"m":"ld","oa":53661,"o":"($D19D),a"},{"a":41606,"t":"code","b":[50,158,209],"m":"ld","oa":53662,"o":"($D19E),a"},{"a":41609,"t":"code","b":[33,193,209],"m":"ld","o":"hl,$D1C1"},{"a":41612,"t":"code","b":[229],"m":"push","o":"hl","x":[41669]},{"a":41613,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41614,"t":"code","b":[254,115],"m":"cp","o":"$73"},{"a":41616,"t":"code","b":[56,48],"m":"jr","oa":41666,"o":"c,$A2C2"},{"a":41618,"t":"code","b":[254,122],"m":"cp","o":"$7A"},{"a":41620,"t":"code","b":[48,44],"m":"jr","oa":41666,"o":"nc,$A2C2"},{"a":41622,"t":"code","b":[254,121],"m":"cp","o":"$79"},{"a":41624,"t":"code","b":[32,24],"m":"jr","oa":41650,"o":"nz,$A2B2"},{"a":41626,"t":"code","b":[42,80,91],"m":"ld","oa":23376,"o":"hl,($5B50)"},{"a":41629,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41630,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41631,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41632,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":41633,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":41635,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":41636,"t":"code","b":[33,2,210],"m":"ld","o":"hl,$D202"},{"a":41639,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41640,"t":"code","b":[48,24],"m":"jr","oa":41666,"o":"nc,$A2C2"},{"a":41642,"t":"code","b":[62,121],"m":"ld","o":"a,$79"},{"a":41644,"t":"code","b":[50,158,209],"m":"ld","oa":53662,"o":"($D19E),a"},{"a":41647,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":41648,"t":"code","b":[24,48],"m":"jr","oa":41698,"o":"$A2E2"},{"a":41650,"t":"code","b":[95],"m":"ld","o":"e,a","x":[41624]},{"a":41651,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":41653,"t":"code","b":[33,185,211],"m":"ld","o":"hl,$D3B9"},{"a":41656,"t":"code","b":[205,175,120],"m":"call","oa":30895,"o":"value_against_best_at"},{"a":41659,"t":"code","b":[56,5],"m":"jr","oa":41666,"o":"c,$A2C2"},{"a":41661,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":41662,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":41663,"t":"code","b":[50,158,209],"m":"ld","oa":53662,"o":"($D19E),a"},{"a":41666,"t":"code","b":[225],"m":"pop","o":"hl","x":[41616,41620,41640,41659]},{"a":41667,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41668,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41669,"t":"code","b":[16,197],"m":"djnz","oa":41612,"o":"$A28C"},{"a":41671,"t":"code","b":[58,158,209],"m":"ld","oa":53662,"o":"a,($D19E)"},{"a":41674,"t":"code","b":[183],"m":"or","o":"a"},{"a":41675,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41676,"c":"A potion already working is kept when the worth of its vial ($D3B9 + $72 + the potion) is at least that of the best vial. Otherwise the vial is made the object in use and drunk ($73D0) for four action points.","t":"code","b":[205,206,120],"m":"call","oa":30926,"o":"selected_potion"},{"a":41679,"t":"code","b":[230,224],"m":"and","o":"$E0"},{"a":41681,"t":"code","b":[40,15],"m":"jr","oa":41698,"o":"z,$A2E2"},{"a":41683,"t":"code","b":[7],"m":"rlca"},{"a":41684,"t":"code","b":[7],"m":"rlca"},{"a":41685,"t":"code","b":[7],"m":"rlca"},{"a":41686,"t":"code","b":[198,34],"m":"add","o":"a,$22"},{"a":41688,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":41689,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":41691,"t":"code","b":[33,9,212],"m":"ld","o":"hl,$D409"},{"a":41694,"t":"code","b":[205,175,120],"m":"call","oa":30895,"o":"value_against_best_at"},{"a":41697,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":41698,"t":"code","b":[58,158,209],"m":"ld","oa":53662,"o":"a,($D19E)","x":[41648,41681]},{"a":41701,"t":"code","b":[33,217,208],"m":"ld","o":"hl,$D0D9"},{"a":41704,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41705,"t":"code","b":[40,4],"m":"jr","oa":41711,"o":"z,$A2EF"},{"a":41707,"t":"code","b":[205,50,156],"m":"call","oa":39986,"o":"computer_take_object"},{"a":41710,"t":"code","b":[216],"m":"ret","o":"c"},{"a":41711,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[41705]},{"a":41714,"t":"code","b":[214,4],"m":"sub","o":"$04"},{"a":41716,"t":"code","b":[216],"m":"ret","o":"c"},{"a":41717,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":41720,"t":"code","b":[205,208,115],"m":"call","oa":29648,"o":"drink"},{"a":41723,"t":"code","b":[201],"m":"ret"},{"a":41724,"l":"computer_eat","c":"A creature that can carry things eats the best of the food it carries (bit 2 of byte 5 of the object's record): a wizard scores food by twice the mana it gives (byte 3); otherwise food scores by the constitution it gives (byte 2), and only while constitution plus a half is below its most or stamina is down to a quarter of its most. The food is made the object in use and eaten ($74E5) for four action points.","t":"code","b":[205,198,120],"m":"call","oa":30918,"o":"carry_limit","x":[38833]},{"a":41727,"t":"code","b":[183],"m":"or","o":"a"},{"a":41728,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41729,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":41732,"t":"code","b":[183],"m":"or","o":"a"},{"a":41733,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41734,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":41735,"t":"code","b":[175],"m":"xor","o":"a"},{"a":41736,"t":"code","b":[50,158,209],"m":"ld","oa":53662,"o":"($D19E),a"},{"a":41739,"t":"code","b":[60],"m":"inc","o":"a"},{"a":41740,"t":"code","b":[50,157,209],"m":"ld","oa":53661,"o":"($D19D),a"},{"a":41743,"t":"code","b":[33,193,209],"m":"ld","o":"hl,$D1C1"},{"a":41746,"t":"code","b":[229],"m":"push","o":"hl","x":[41824]},{"a":41747,"t":"code","b":[197],"m":"push","o":"bc"},{"a":41748,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41749,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":41750,"t":"code","b":[205,160,148],"m":"call","oa":38048,"o":"object_record"},{"a":41753,"t":"code","b":[253,203,5,86],"m":"bit","o":"2,(iy+$05)"},{"a":41757,"t":"code","b":[40,61],"m":"jr","oa":41820,"o":"z,$A35C"},{"a":41759,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":41762,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":41764,"t":"code","b":[48,9],"m":"jr","oa":41775,"o":"nc,$A32F"},{"a":41766,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":41769,"t":"code","b":[183],"m":"or","o":"a"},{"a":41770,"t":"code","b":[40,3],"m":"jr","oa":41775,"o":"z,$A32F"},{"a":41772,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":41773,"t":"code","b":[24,34],"m":"jr","oa":41809,"o":"$A351"},{"a":41775,"t":"code","b":[42,80,91],"m":"ld","oa":23376,"o":"hl,($5B50)","x":[41764,41770]},{"a":41778,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41779,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41780,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41781,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":41782,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":41784,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":41785,"t":"code","b":[33,2,210],"m":"ld","o":"hl,$D202"},{"a":41788,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41789,"t":"code","b":[56,15],"m":"jr","oa":41806,"o":"c,$A34E"},{"a":41791,"t":"code","b":[58,1,210],"m":"ld","oa":53761,"o":"a,($D201)"},{"a":41794,"t":"code","b":[6,4],"m":"ld","o":"b,$04"},{"a":41796,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":41799,"t":"code","b":[42,80,91],"m":"ld","oa":23376,"o":"hl,($5B50)"},{"a":41802,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41803,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41804,"t":"code","b":[56,14],"m":"jr","oa":41820,"o":"c,$A35C"},{"a":41806,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)","x":[41789]},{"a":41809,"t":"code","b":[33,157,209],"m":"ld","o":"hl,$D19D","x":[41773]},{"a":41812,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41813,"t":"code","b":[56,5],"m":"jr","oa":41820,"o":"c,$A35C"},{"a":41815,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":41816,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":41817,"t":"code","b":[50,158,209],"m":"ld","oa":53662,"o":"($D19E),a"},{"a":41820,"t":"code","b":[193],"m":"pop","o":"bc","x":[41757,41804,41813]},{"a":41821,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":41822,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41823,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41824,"t":"code","b":[16,176],"m":"djnz","oa":41746,"o":"$A312"},{"a":41826,"t":"code","b":[58,158,209],"m":"ld","oa":53662,"o":"a,($D19E)"},{"a":41829,"t":"code","b":[183],"m":"or","o":"a"},{"a":41830,"t":"code","b":[183],"m":"or","o":"a"},{"a":41831,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41832,"t":"code","b":[33,217,208],"m":"ld","o":"hl,$D0D9"},{"a":41835,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41836,"t":"code","b":[40,4],"m":"jr","oa":41842,"o":"z,$A372"},{"a":41838,"t":"code","b":[205,50,156],"m":"call","oa":39986,"o":"computer_take_object"},{"a":41841,"t":"code","b":[216],"m":"ret","o":"c"},{"a":41842,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[41836]},{"a":41845,"t":"code","b":[214,4],"m":"sub","o":"$04"},{"a":41847,"t":"code","b":[216],"m":"ret","o":"c"},{"a":41848,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":41851,"t":"code","b":[205,229,116],"m":"call","oa":29925,"o":"eat"},{"a":41854,"t":"code","b":[205,65,103],"m":"call","oa":26433,"o":"list_selected_carries"},{"a":41857,"t":"code","b":[201],"m":"ret"},{"a":41858,"l":"computer_cast","c":"A computer wizard (types below $90) with eight action points and no partner on its square casts a spell when enemies are in view ($5B40, $5B41) or it still has half its action points. It tries the spells in the order of the scenario's priorities, the 45 bytes at $D3DC, highest first: a tried spell's priority goes up by one, which marks it (priorities are even), and the marks are cleared when every spell has been tried without a cast.","t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)","x":[38824]},{"a":41861,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":41863,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":41864,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":41867,"t":"code","b":[254,8],"m":"cp","o":"$08"},{"a":41869,"t":"code","b":[216],"m":"ret","o":"c"},{"a":41870,"t":"code","b":[205,86,113],"m":"call","oa":29014,"o":"find_partner"},{"a":41873,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41874,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":41876,"t":"code","b":[50,39,91],"m":"ld","oa":23335,"o":"($5B27),a"},{"a":41879,"t":"code","b":[50,38,91],"m":"ld","oa":23334,"o":"($5B26),a"},{"a":41882,"t":"code","b":[58,64,91],"m":"ld","oa":23360,"o":"a,($5B40)"},{"a":41885,"t":"code","b":[183],"m":"or","o":"a"},{"a":41886,"t":"code","b":[32,15],"m":"jr","oa":41903,"o":"nz,$A3AF"},{"a":41888,"t":"code","b":[58,65,91],"m":"ld","oa":23361,"o":"a,($5B41)"},{"a":41891,"t":"code","b":[183],"m":"or","o":"a"},{"a":41892,"t":"code","b":[32,9],"m":"jr","oa":41903,"o":"nz,$A3AF"},{"a":41894,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":41897,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":41898,"t":"code","b":[33,0,210],"m":"ld","o":"hl,$D200"},{"a":41901,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41902,"t":"code","b":[216],"m":"ret","o":"c"},{"a":41903,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)","x":[41886,41892]},{"a":41906,"t":"code","b":[205,140,128],"m":"call","oa":32908,"o":"wizard_record"},{"a":41909,"t":"code","b":[34,4,91],"m":"ld","oa":23300,"o":"($5B04),hl"},{"a":41912,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":41914,"t":"code","b":[50,185,209],"m":"ld","oa":53689,"o":"($D1B9),a"},{"a":41917,"t":"code","b":[175],"m":"xor","o":"a","x":[41977]},{"a":41918,"t":"code","b":[50,158,209],"m":"ld","oa":53662,"o":"($D19E),a"},{"a":41921,"t":"code","b":[50,157,209],"m":"ld","oa":53661,"o":"($D19D),a"},{"a":41924,"t":"code","b":[33,220,211],"m":"ld","o":"hl,$D3DC"},{"a":41927,"t":"code","b":[6,45],"m":"ld","o":"b,$2D"},{"a":41929,"t":"code","b":[197],"m":"push","o":"bc","x":[41962]},{"a":41930,"t":"code","b":[229],"m":"push","o":"hl"},{"a":41931,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41932,"t":"code","b":[33,157,209],"m":"ld","o":"hl,$D19D"},{"a":41935,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41936,"t":"code","b":[56,17],"m":"jr","oa":41955,"o":"c,$A3E3"},{"a":41938,"t":"code","b":[40,15],"m":"jr","oa":41955,"o":"z,$A3E3"},{"a":41940,"t":"code","b":[33,185,209],"m":"ld","o":"hl,$D1B9"},{"a":41943,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41944,"t":"code","b":[48,9],"m":"jr","oa":41955,"o":"nc,$A3E3"},{"a":41946,"t":"code","b":[50,157,209],"m":"ld","oa":53661,"o":"($D19D),a"},{"a":41949,"t":"code","b":[58,158,209],"m":"ld","oa":53662,"o":"a,($D19E)"},{"a":41952,"t":"code","b":[50,58,255],"m":"ld","oa":65338,"o":"($FF3A),a"},{"a":41955,"t":"code","b":[33,158,209],"m":"ld","o":"hl,$D19E","x":[41936,41938,41944]},{"a":41958,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":41959,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":41960,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41961,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":41962,"t":"code","b":[16,221],"m":"djnz","oa":41929,"o":"$A3C9"},{"a":41964,"t":"code","b":[58,157,209],"m":"ld","oa":53661,"o":"a,($D19D)"},{"a":41967,"t":"code","b":[183],"m":"or","o":"a"},{"a":41968,"t":"code","b":[40,9],"m":"jr","oa":41979,"o":"z,$A3FB"},{"a":41970,"t":"code","b":[60],"m":"inc","o":"a"},{"a":41971,"t":"code","b":[50,185,209],"m":"ld","oa":53689,"o":"($D1B9),a"},{"a":41974,"t":"code","b":[205,7,164],"m":"call","oa":41991,"o":"computer_try_spell"},{"a":41977,"t":"code","b":[24,194],"m":"jr","oa":41917,"o":"$A3BD"},{"a":41979,"t":"code","b":[6,45],"m":"ld","o":"b,$2D","x":[41968]},{"a":41981,"t":"code","b":[33,220,211],"m":"ld","o":"hl,$D3DC"},{"a":41984,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[41988]},{"a":41985,"t":"code","b":[230,254],"m":"and","o":"$FE"},{"a":41987,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":41988,"t":"code","b":[16,250],"m":"djnz","oa":41984,"o":"$A400"},{"a":41990,"t":"code","b":[201],"m":"ret"},{"a":41991,"l":"computer_try_spell","c":"Tries spell $FF3A: only with a level left and the mana to pay for it ($D0E1, the computer's mana). Summons other than dragons ($03-$18) go to computer_summon; dragons and potions to computer_brew; the other spells ($20 on) to the scenario's routine for them, from the table at ($D019). Then marks the spell tried.","t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)","x":[41974]},{"a":41994,"t":"code","b":[205,212,129],"m":"call","oa":33236,"o":"spell_cost"},{"a":41997,"t":"code","b":[58,11,255],"m":"ld","oa":65291,"o":"a,($FF0B)"},{"a":42000,"t":"code","b":[183],"m":"or","o":"a"},{"a":42001,"t":"code","b":[40,51],"m":"jr","oa":42054,"o":"z,$A446"},{"a":42003,"t":"code","b":[58,225,208],"m":"ld","oa":53473,"o":"a,($D0E1)"},{"a":42006,"t":"code","b":[33,57,255],"m":"ld","o":"hl,$FF39"},{"a":42009,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":42010,"t":"code","b":[56,42],"m":"jr","oa":42054,"o":"c,$A446"},{"a":42012,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":42015,"t":"code","b":[50,49,255],"m":"ld","oa":65329,"o":"($FF31),a"},{"a":42018,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)"},{"a":42021,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":42023,"t":"code","b":[56,9],"m":"jr","oa":42034,"o":"c,$A432"},{"a":42025,"t":"code","b":[254,25],"m":"cp","o":"$19"},{"a":42027,"t":"code","b":[48,5],"m":"jr","oa":42034,"o":"nc,$A432"},{"a":42029,"t":"code","b":[205,96,164],"m":"call","oa":42080,"o":"computer_summon"},{"a":42032,"t":"code","b":[24,20],"m":"jr","oa":42054,"o":"$A446"},{"a":42034,"t":"code","b":[254,3],"m":"cp","o":"$03","x":[42023,42027]},{"a":42036,"t":"code","b":[56,8],"m":"jr","oa":42046,"o":"c,$A43E"},{"a":42038,"t":"code","b":[254,25],"m":"cp","o":"$19"},{"a":42040,"t":"code","b":[56,9],"m":"jr","oa":42051,"o":"c,$A443"},{"a":42042,"t":"code","b":[254,32],"m":"cp","o":"$20"},{"a":42044,"t":"code","b":[48,5],"m":"jr","oa":42051,"o":"nc,$A443"},{"a":42046,"t":"code","b":[205,68,166],"m":"call","oa":42564,"o":"computer_brew","x":[42036]},{"a":42049,"t":"code","b":[24,3],"m":"jr","oa":42054,"o":"$A446"},{"a":42051,"t":"code","b":[205,82,164],"m":"call","oa":42066,"o":"scenario_spell","x":[42040,42044]},{"a":42054,"t":"code","b":[237,91,58,255],"m":"ld","oa":65338,"o":"de,($FF3A)","x":[42001,42010,42032,42049]},{"a":42058,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":42060,"t":"code","b":[33,220,211],"m":"ld","o":"hl,$D3DC"},{"a":42063,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42064,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":42065,"t":"code","b":[201],"m":"ret"},{"a":42066,"l":"scenario_spell","c":"Jumps to the scenario's routine for spell A ($20 up), from the table at ($D019).","t":"code","b":[214,32],"m":"sub","o":"$20","x":[42051]},{"a":42068,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":42069,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":42070,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":42072,"t":"code","b":[42,25,208],"m":"ld","oa":53273,"o":"hl,($D019)"},{"a":42075,"t":"code","b":[205,156,120],"m":"call","oa":30876,"o":"read_table_word"},{"a":42078,"t":"code","b":[233],"m":"jp","o":"(hl)"},{"a":42079,"l":"no_scenario_spell","c":"A RET: the scenarios' tables of computer spell routines (scenario_spell) name it for the spells the computer's wizard never casts.","t":"code","b":[201],"m":"ret"},{"a":42080,"l":"computer_summon","c":"Casts a summon spell when it leaves at least the scenario's reserve of mana ($D046) or enemies are in view, and there are at least as many free squares round the wizard as the spell's level. A flying wizard lands first. Dragons go to summon_dragon, the rest to summon_creature. After a cast the view is centred, the map redrawn when shown, the spell's priority halved, the spell paid for ($82A2) and the panel redrawn; the step ends.","t":"code","b":[58,225,208],"m":"ld","oa":53473,"o":"a,($D0E1)","x":[42029,42695]},{"a":42083,"t":"code","b":[33,57,255],"m":"ld","o":"hl,$FF39"},{"a":42086,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":42087,"t":"code","b":[33,70,208],"m":"ld","o":"hl,$D046"},{"a":42090,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":42091,"t":"code","b":[48,11],"m":"jr","oa":42104,"o":"nc,$A478"},{"a":42093,"t":"code","b":[58,65,91],"m":"ld","oa":23361,"o":"a,($5B41)"},{"a":42096,"t":"code","b":[183],"m":"or","o":"a"},{"a":42097,"t":"code","b":[32,5],"m":"jr","oa":42104,"o":"nz,$A478"},{"a":42099,"t":"code","b":[58,64,91],"m":"ld","oa":23360,"o":"a,($5B40)"},{"a":42102,"t":"code","b":[183],"m":"or","o":"a"},{"a":42103,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42104,"t":"code","b":[205,168,144],"m":"call","oa":37032,"o":"list_neighbours_of_selected","x":[42091,42097]},{"a":42107,"t":"code","b":[175],"m":"xor","o":"a"},{"a":42108,"t":"code","b":[50,158,209],"m":"ld","oa":53662,"o":"($D19E),a"},{"a":42111,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":42113,"t":"code","b":[33,12,255],"m":"ld","o":"hl,$FF0C"},{"a":42116,"t":"code","b":[197],"m":"push","o":"bc","x":[42140]},{"a":42117,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":42118,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42119,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":42120,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42121,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42122,"t":"code","b":[229],"m":"push","o":"hl"},{"a":42123,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":42124,"t":"code","b":[34,35,91],"m":"ld","oa":23331,"o":"($5B23),hl"},{"a":42127,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":42129,"t":"code","b":[205,166,131],"m":"call","oa":33702,"o":"square_free"},{"a":42132,"t":"code","b":[32,4],"m":"jr","oa":42138,"o":"nz,$A49A"},{"a":42134,"t":"code","b":[33,158,209],"m":"ld","o":"hl,$D19E"},{"a":42137,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":42138,"t":"code","b":[225],"m":"pop","o":"hl","x":[42132]},{"a":42139,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":42140,"t":"code","b":[16,230],"m":"djnz","oa":42116,"o":"$A484"},{"a":42142,"t":"code","b":[58,158,209],"m":"ld","oa":53662,"o":"a,($D19E)"},{"a":42145,"t":"code","b":[33,11,255],"m":"ld","o":"hl,$FF0B"},{"a":42148,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":42149,"t":"code","b":[216],"m":"ret","o":"c"},{"a":42150,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":42153,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":42155,"t":"code","b":[32,4],"m":"jr","oa":42161,"o":"nz,$A4B1"},{"a":42157,"t":"code","b":[205,140,152],"m":"call","oa":39052,"o":"computer_land"},{"a":42160,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42161,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)","x":[42155]},{"a":42164,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":42166,"t":"code","b":[48,5],"m":"jr","oa":42173,"o":"nc,$A4BD"},{"a":42168,"t":"code","b":[205,32,131],"m":"call","oa":33568,"o":"summon_dragon"},{"a":42171,"t":"code","b":[24,3],"m":"jr","oa":42176,"o":"computer_spell_done"},{"a":42173,"t":"code","b":[205,66,131],"m":"call","oa":33602,"o":"summon_creature","x":[42166]},{"a":42176,"l":"computer_spell_done","c":"The end of every spell the computer's wizard casts, where the scenarios' own spell routines jump too: the view is centred, the map redrawn when the turn is shown, the creature loaded again, the spell's priority halved, the spell paid for ($82A2), and the step ends (three return addresses dropped, back into computer_move_creature at $9817).","t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre","x":[42171,42704]},{"a":42179,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":42182,"t":"code","b":[183],"m":"or","o":"a"},{"a":42183,"t":"code","b":[204,76,169],"m":"call","oa":43340,"o":"z,draw_map"},{"a":42186,"t":"code","b":[58,134,209],"m":"ld","oa":53638,"o":"a,($D186)"},{"a":42189,"t":"code","b":[205,55,119],"m":"call","oa":30519,"o":"load_creature"},{"a":42192,"t":"code","b":[237,91,58,255],"m":"ld","oa":65338,"o":"de,($FF3A)"},{"a":42196,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":42198,"t":"code","b":[33,220,211],"m":"ld","o":"hl,$D3DC"},{"a":42201,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42202,"t":"code","b":[203,62],"m":"srl","o":"(hl)"},{"a":42204,"t":"code","b":[205,162,130],"m":"call","oa":33442,"o":"pay_for_spell"},{"a":42207,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":42210,"t":"code","b":[50,87,91],"m":"ld","oa":23383,"o":"($5B57),a"},{"a":42213,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":42216,"t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here"},{"a":42219,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)"},{"a":42222,"t":"code","b":[183],"m":"or","o":"a"},{"a":42223,"t":"code","b":[40,3],"m":"jr","oa":42228,"o":"z,$A4F4"},{"a":42225,"t":"code","b":[50,144,255],"m":"ld","oa":65424,"o":"($FF90),a"},{"a":42228,"t":"code","b":[225],"m":"pop","o":"hl","x":[42223]},{"a":42229,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":42230,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":42231,"t":"code","b":[195,23,152],"m":"jp","oa":38935,"o":"$9817"},{"a":42234,"l":"add_to_wizard_list","c":"Adds creature $5B1F to the computer wizard's list at $CF76 (35 entries; a full list turns the border yellow, a check left in). Its route is chosen at random among the scenario's $D047 routes until one suits its type (IY), by the route's flags at ($D011): bit 0 needs a flyer, bit 2 a creature that can carry, bits 1, 3, 4 and 5 the type flags 7, 4, 5 and 6 of byte 11, and bit 6 lets a wizard take it. It starts at the waypoint of the route nearest its square ($5B23). It guards the wizard (bit 7 of its orders) when a random number below 100 is under byte 8 of its type.","t":"code","b":[33,118,207],"m":"ld","o":"hl,$CF76","x":[33842,36249]},{"a":42237,"t":"code","b":[6,35],"m":"ld","o":"b,$23"},{"a":42239,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004"},{"a":42242,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[42247]},{"a":42243,"t":"code","b":[60],"m":"inc","o":"a"},{"a":42244,"t":"code","b":[40,8],"m":"jr","oa":42254,"o":"z,$A50E"},{"a":42246,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42247,"t":"code","b":[16,249],"m":"djnz","oa":42242,"o":"$A502"},{"a":42249,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":42251,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":42253,"t":"code","b":[201],"m":"ret"},{"a":42254,"t":"code","b":[58,31,91],"m":"ld","oa":23327,"o":"a,($5B1F)","x":[42244]},{"a":42257,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":42258,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42259,"t":"code","b":[34,55,255],"m":"ld","oa":65335,"o":"($FF37),hl"},{"a":42262,"t":"code","b":[58,71,208],"m":"ld","oa":53319,"o":"a,($D047)"},{"a":42265,"t":"code","b":[50,34,91],"m":"ld","oa":23330,"o":"($5B22),a"},{"a":42268,"t":"code","b":[205,55,167],"m":"call","oa":42807,"o":"random_below","x":[42289,42299,42309,42319,42329,42339,42350]},{"a":42271,"t":"code","b":[50,158,209],"m":"ld","oa":53662,"o":"($D19E),a"},{"a":42274,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":42275,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":42277,"t":"code","b":[42,17,208],"m":"ld","oa":53265,"o":"hl,($D011)"},{"a":42280,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42281,"t":"code","b":[203,70],"m":"bit","o":"0,(hl)"},{"a":42283,"t":"code","b":[40,6],"m":"jr","oa":42291,"o":"z,$A533"},{"a":42285,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)"},{"a":42288,"t":"code","b":[183],"m":"or","o":"a"},{"a":42289,"t":"code","b":[40,233],"m":"jr","oa":42268,"o":"z,$A51C"},{"a":42291,"t":"code","b":[203,78],"m":"bit","o":"1,(hl)","x":[42283]},{"a":42293,"t":"code","b":[40,6],"m":"jr","oa":42301,"o":"z,$A53D"},{"a":42295,"t":"code","b":[253,203,11,126],"m":"bit","o":"7,(iy+$0B)"},{"a":42299,"t":"code","b":[40,223],"m":"jr","oa":42268,"o":"z,$A51C"},{"a":42301,"t":"code","b":[203,86],"m":"bit","o":"2,(hl)","x":[42293]},{"a":42303,"t":"code","b":[40,6],"m":"jr","oa":42311,"o":"z,$A547"},{"a":42305,"t":"code","b":[253,126,7],"m":"ld","o":"a,(iy+$07)"},{"a":42308,"t":"code","b":[183],"m":"or","o":"a"},{"a":42309,"t":"code","b":[40,213],"m":"jr","oa":42268,"o":"z,$A51C"},{"a":42311,"t":"code","b":[203,94],"m":"bit","o":"3,(hl)","x":[42303]},{"a":42313,"t":"code","b":[40,6],"m":"jr","oa":42321,"o":"z,$A551"},{"a":42315,"t":"code","b":[253,203,11,102],"m":"bit","o":"4,(iy+$0B)"},{"a":42319,"t":"code","b":[40,203],"m":"jr","oa":42268,"o":"z,$A51C"},{"a":42321,"t":"code","b":[203,102],"m":"bit","o":"4,(hl)","x":[42313]},{"a":42323,"t":"code","b":[40,6],"m":"jr","oa":42331,"o":"z,$A55B"},{"a":42325,"t":"code","b":[253,203,11,110],"m":"bit","o":"5,(iy+$0B)"},{"a":42329,"t":"code","b":[40,193],"m":"jr","oa":42268,"o":"z,$A51C"},{"a":42331,"t":"code","b":[203,110],"m":"bit","o":"5,(hl)","x":[42323]},{"a":42333,"t":"code","b":[40,6],"m":"jr","oa":42341,"o":"z,$A565"},{"a":42335,"t":"code","b":[253,203,11,118],"m":"bit","o":"6,(iy+$0B)"},{"a":42339,"t":"code","b":[40,183],"m":"jr","oa":42268,"o":"z,$A51C"},{"a":42341,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)","x":[42333]},{"a":42344,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":42346,"t":"code","b":[48,4],"m":"jr","oa":42352,"o":"nc,$A570"},{"a":42348,"t":"code","b":[203,118],"m":"bit","o":"6,(hl)"},{"a":42350,"t":"code","b":[40,172],"m":"jr","oa":42268,"o":"z,$A51C"},{"a":42352,"t":"code","b":[42,55,255],"m":"ld","oa":65335,"o":"hl,($FF37)","x":[42346]},{"a":42355,"t":"code","b":[58,158,209],"m":"ld","oa":53662,"o":"a,($D19E)"},{"a":42358,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":42359,"t":"code","b":[205,127,153],"m":"call","oa":39295,"o":"route_address"},{"a":42362,"t":"code","b":[175],"m":"xor","o":"a"},{"a":42363,"t":"code","b":[50,54,255],"m":"ld","oa":65334,"o":"($FF36),a"},{"a":42366,"t":"code","b":[61],"m":"dec","o":"a"},{"a":42367,"t":"code","b":[50,157,209],"m":"ld","oa":53661,"o":"($D19D),a"},{"a":42370,"t":"code","b":[229],"m":"push","o":"hl","x":[42404]},{"a":42371,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":42372,"t":"code","b":[205,113,153],"m":"call","oa":39281,"o":"waypoint_square"},{"a":42375,"t":"code","b":[42,35,91],"m":"ld","oa":23331,"o":"hl,($5B23)"},{"a":42378,"t":"code","b":[205,77,114],"m":"call","oa":29261,"o":"distance"},{"a":42381,"t":"code","b":[33,157,209],"m":"ld","o":"hl,$D19D"},{"a":42384,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":42385,"t":"code","b":[48,9],"m":"jr","oa":42396,"o":"nc,$A59C"},{"a":42387,"t":"code","b":[50,157,209],"m":"ld","oa":53661,"o":"($D19D),a"},{"a":42390,"t":"code","b":[58,54,255],"m":"ld","oa":65334,"o":"a,($FF36)"},{"a":42393,"t":"code","b":[50,100,255],"m":"ld","oa":65380,"o":"($FF64),a"},{"a":42396,"t":"code","b":[33,54,255],"m":"ld","o":"hl,$FF36","x":[42385]},{"a":42399,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":42400,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":42401,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42402,"t":"code","b":[203,126],"m":"bit","o":"7,(hl)"},{"a":42404,"t":"code","b":[40,220],"m":"jr","oa":42370,"o":"z,$A582"},{"a":42406,"t":"code","b":[42,55,255],"m":"ld","oa":65335,"o":"hl,($FF37)"},{"a":42409,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42410,"t":"code","b":[58,100,255],"m":"ld","oa":65380,"o":"a,($FF64)"},{"a":42413,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":42414,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42415,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":42417,"t":"code","b":[62,100],"m":"ld","o":"a,$64"},{"a":42419,"t":"code","b":[205,52,167],"m":"call","oa":42804,"o":"random_below_a"},{"a":42422,"t":"code","b":[253,190,8],"m":"cp","o":"(iy+$08)"},{"a":42425,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":42426,"t":"code","b":[54,128],"m":"ld","o":"(hl),$80"},{"a":42428,"t":"code","b":[201],"m":"ret"},{"a":42429,"l":"computer_deliver","c":"A computer creature (not a wizard, not an independent) carrying treasure for the wizard (types whose worth byte at $D3B9 has bit 7 set; the worthiest in $D1BC) throws it to the wizard when the wizard is within throwing range and in sight: the treasure is made the object in use and thrown ($7A28) for eight action points, then the next. Not possible ends its move ($D181 = $10).","t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)","x":[38836,42555]},{"a":42432,"t":"code","b":[183],"m":"or","o":"a"},{"a":42433,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42434,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":42437,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":42439,"t":"code","b":[216],"m":"ret","o":"c"},{"a":42440,"t":"code","b":[175],"m":"xor","o":"a"},{"a":42441,"t":"code","b":[50,157,209],"m":"ld","oa":53661,"o":"($D19D),a"},{"a":42444,"t":"code","b":[50,188,209],"m":"ld","oa":53692,"o":"($D1BC),a"},{"a":42447,"t":"code","b":[58,98,91],"m":"ld","oa":23394,"o":"a,($5B62)"},{"a":42450,"t":"code","b":[60],"m":"inc","o":"a"},{"a":42451,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42452,"t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)"},{"a":42455,"t":"code","b":[183],"m":"or","o":"a"},{"a":42456,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42457,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":42458,"t":"code","b":[33,193,209],"m":"ld","o":"hl,$D1C1"},{"a":42461,"t":"code","b":[229],"m":"push","o":"hl","x":[42491]},{"a":42462,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":42463,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":42465,"t":"code","b":[48,21],"m":"jr","oa":42488,"o":"nc,$A5F8"},{"a":42467,"t":"code","b":[33,185,211],"m":"ld","o":"hl,$D3B9"},{"a":42470,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":42471,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":42473,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42474,"t":"code","b":[203,126],"m":"bit","o":"7,(hl)"},{"a":42476,"t":"code","b":[40,10],"m":"jr","oa":42488,"o":"z,$A5F8"},{"a":42478,"t":"code","b":[205,176,120],"m":"call","oa":30896,"o":"value_against_best"},{"a":42481,"t":"code","b":[56,5],"m":"jr","oa":42488,"o":"c,$A5F8"},{"a":42483,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":42484,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":42485,"t":"code","b":[50,188,209],"m":"ld","oa":53692,"o":"($D1BC),a"},{"a":42488,"t":"code","b":[225],"m":"pop","o":"hl","x":[42465,42476,42481]},{"a":42489,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42490,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42491,"t":"code","b":[16,224],"m":"djnz","oa":42461,"o":"$A5DD"},{"a":42493,"t":"code","b":[58,188,209],"m":"ld","oa":53692,"o":"a,($D1BC)"},{"a":42496,"t":"code","b":[183],"m":"or","o":"a"},{"a":42497,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42498,"t":"code","b":[205,212,122],"m":"call","oa":31444,"o":"throw_range"},{"a":42501,"t":"code","b":[245],"m":"push","o":"af"},{"a":42502,"t":"code","b":[58,96,91],"m":"ld","oa":23392,"o":"a,($5B60)"},{"a":42505,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":42506,"t":"code","b":[58,97,91],"m":"ld","oa":23393,"o":"a,($5B61)"},{"a":42509,"t":"code","b":[230,63],"m":"and","o":"$3F"},{"a":42511,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":42512,"t":"code","b":[237,83,211,208],"m":"ld","oa":53459,"o":"($D0D3),de"},{"a":42516,"t":"code","b":[205,74,114],"m":"call","oa":29258,"o":"distance_from_selected"},{"a":42519,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":42520,"t":"code","b":[184],"m":"cp","o":"b"},{"a":42521,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":42522,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":42524,"t":"code","b":[50,49,255],"m":"ld","oa":65329,"o":"($FF31),a"},{"a":42527,"t":"code","b":[205,233,122],"m":"call","oa":31465,"o":"line_of_sight"},{"a":42530,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":42531,"t":"code","b":[58,188,209],"m":"ld","oa":53692,"o":"a,($D1BC)"},{"a":42534,"t":"code","b":[205,50,156],"m":"call","oa":39986,"o":"computer_take_object"},{"a":42537,"t":"code","b":[56,19],"m":"jr","oa":42558,"o":"c,$A63E"},{"a":42539,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)"},{"a":42542,"t":"code","b":[214,8],"m":"sub","o":"$08"},{"a":42544,"t":"code","b":[56,12],"m":"jr","oa":42558,"o":"c,$A63E"},{"a":42546,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":42549,"t":"code","b":[205,40,122],"m":"call","oa":31272,"o":"throw_object"},{"a":42552,"t":"code","b":[205,65,103],"m":"call","oa":26433,"o":"list_selected_carries"},{"a":42555,"t":"code","b":[195,189,165],"m":"jp","oa":42429,"o":"computer_deliver"},{"a":42558,"t":"code","b":[62,16],"m":"ld","o":"a,$10","x":[42537,42544]},{"a":42560,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":42563,"t":"code","b":[201],"m":"ret"},{"a":42564,"l":"computer_brew","c":"Brews for a dragon or potion spell when nothing but the cauldron and ingredients lie on the square: a cauldron ($67) carried is dropped there unless one lies there already, and the ingredient (dragon herb $53 for a dragon; for a potion, from potion_ingredients) likewise, each made the object in use first. Needs eight action points ($D181 = $11 otherwise, ending the step). A dragon spell then goes on as computer_summon, a potion spell brews ($8465) and is paid for as a cast.","t":"code","b":[58,144,255],"m":"ld","oa":65424,"o":"a,($FF90)","x":[42046]},{"a":42567,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":42569,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":42570,"t":"code","b":[254,107],"m":"cp","o":"$6B"},{"a":42572,"t":"code","b":[56,12],"m":"jr","oa":42586,"o":"c,$A65A"},{"a":42574,"t":"code","b":[254,114],"m":"cp","o":"$72"},{"a":42576,"t":"code","b":[216],"m":"ret","o":"c"},{"a":42577,"t":"code","b":[254,122],"m":"cp","o":"$7A"},{"a":42579,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42580,"t":"code","b":[254,123],"m":"cp","o":"$7B"},{"a":42582,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42583,"t":"code","b":[254,124],"m":"cp","o":"$7C"},{"a":42585,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42586,"t":"code","b":[175],"m":"xor","o":"a","x":[42572]},{"a":42587,"t":"code","b":[50,190,209],"m":"ld","oa":53694,"o":"($D1BE),a"},{"a":42590,"t":"code","b":[50,189,209],"m":"ld","oa":53693,"o":"($D1BD),a"},{"a":42593,"t":"code","b":[205,163,103],"m":"call","oa":26531,"o":"list_objects_here"},{"a":42596,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)"},{"a":42599,"t":"code","b":[254,103],"m":"cp","o":"$67"},{"a":42601,"t":"code","b":[40,11],"m":"jr","oa":42614,"o":"z,$A676"},{"a":42603,"t":"code","b":[14,103],"m":"ld","o":"c,$67"},{"a":42605,"t":"code","b":[205,222,166],"m":"call","oa":42718,"o":"carries_type"},{"a":42608,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42609,"t":"code","b":[62,103],"m":"ld","o":"a,$67"},{"a":42611,"t":"code","b":[50,190,209],"m":"ld","oa":53694,"o":"($D1BE),a"},{"a":42614,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)","x":[42601]},{"a":42617,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":42619,"t":"code","b":[48,4],"m":"jr","oa":42625,"o":"nc,$A681"},{"a":42621,"t":"code","b":[62,83],"m":"ld","o":"a,$53"},{"a":42623,"t":"code","b":[24,10],"m":"jr","oa":42635,"o":"$A68B"},{"a":42625,"t":"code","b":[214,25],"m":"sub","o":"$19","x":[42619]},{"a":42627,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":42628,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":42630,"t":"code","b":[33,206,132],"m":"ld","o":"hl,$84CE"},{"a":42633,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42634,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":42635,"t":"code","b":[79],"m":"ld","o":"c,a","x":[42623]},{"a":42636,"t":"code","b":[205,233,166],"m":"call","oa":42729,"o":"lies_here"},{"a":42639,"t":"code","b":[32,8],"m":"jr","oa":42649,"o":"nz,$A699"},{"a":42641,"t":"code","b":[205,222,166],"m":"call","oa":42718,"o":"carries_type"},{"a":42644,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42645,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":42646,"t":"code","b":[50,189,209],"m":"ld","oa":53693,"o":"($D1BD),a"},{"a":42649,"t":"code","b":[58,190,209],"m":"ld","oa":53694,"o":"a,($D1BE)","x":[42639]},{"a":42652,"t":"code","b":[183],"m":"or","o":"a"},{"a":42653,"t":"code","b":[40,9],"m":"jr","oa":42664,"o":"z,$A6A8"},{"a":42655,"t":"code","b":[205,50,156],"m":"call","oa":39986,"o":"computer_take_object"},{"a":42658,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":42659,"t":"code","b":[56,46],"m":"jr","oa":42707,"o":"c,$A6D3"},{"a":42661,"t":"code","b":[205,241,111],"m":"call","oa":28657,"o":"drop"},{"a":42664,"t":"code","b":[58,189,209],"m":"ld","oa":53693,"o":"a,($D1BD)","x":[42653]},{"a":42667,"t":"code","b":[183],"m":"or","o":"a"},{"a":42668,"t":"code","b":[40,9],"m":"jr","oa":42679,"o":"z,$A6B7"},{"a":42670,"t":"code","b":[205,50,156],"m":"call","oa":39986,"o":"computer_take_object"},{"a":42673,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":42674,"t":"code","b":[56,31],"m":"jr","oa":42707,"o":"c,$A6D3"},{"a":42676,"t":"code","b":[205,241,111],"m":"call","oa":28657,"o":"drop"},{"a":42679,"t":"code","b":[58,251,209],"m":"ld","oa":53755,"o":"a,($D1FB)","x":[42668]},{"a":42682,"t":"code","b":[214,8],"m":"sub","o":"$08"},{"a":42684,"t":"code","b":[56,21],"m":"jr","oa":42707,"o":"c,$A6D3"},{"a":42686,"t":"code","b":[175],"m":"xor","o":"a"},{"a":42687,"t":"code","b":[50,155,209],"m":"ld","oa":53659,"o":"($D19B),a"},{"a":42690,"t":"code","b":[58,58,255],"m":"ld","oa":65338,"o":"a,($FF3A)"},{"a":42693,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":42695,"t":"code","b":[218,96,164],"m":"jp","oa":42080,"o":"c,computer_summon"},{"a":42698,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":42701,"t":"code","b":[205,101,132],"m":"call","oa":33893,"o":"brew_potion"},{"a":42704,"t":"code","b":[195,192,164],"m":"jp","oa":42176,"o":"computer_spell_done"},{"a":42707,"t":"code","b":[62,17],"m":"ld","o":"a,$11","x":[42659,42674,42684]},{"a":42709,"t":"code","b":[50,129,209],"m":"ld","oa":53633,"o":"($D181),a"},{"a":42712,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":42713,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":42714,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":42715,"t":"code","b":[195,23,152],"m":"jp","oa":38935,"o":"$9817"},{"a":42718,"l":"carries_type","c":"Z clear when the selected creature carries an object of type C (the list at $D1C1).","t":"code","b":[58,222,208],"m":"ld","oa":53470,"o":"a,($D0DE)","x":[42605,42641]},{"a":42721,"t":"code","b":[183],"m":"or","o":"a"},{"a":42722,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42723,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":42724,"t":"code","b":[33,193,209],"m":"ld","o":"hl,$D1C1"},{"a":42727,"t":"code","b":[24,9],"m":"jr","oa":42738,"o":"$A6F2"},{"a":42729,"l":"lies_here","c":"Z clear when an object of type C lies on the selected creature's square (the list at $D1D5).","t":"code","b":[58,221,208],"m":"ld","oa":53469,"o":"a,($D0DD)","x":[42636]},{"a":42732,"t":"code","b":[183],"m":"or","o":"a"},{"a":42733,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42734,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":42735,"t":"code","b":[33,213,209],"m":"ld","o":"hl,$D1D5"},{"a":42738,"t":"code","b":[121],"m":"ld","o":"a,c","x":[42727]},{"a":42739,"t":"code","b":[190],"m":"cp","o":"(hl)","x":[42744]},{"a":42740,"t":"code","b":[40,6],"m":"jr","oa":42748,"o":"z,$A6FC"},{"a":42742,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42743,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42744,"t":"code","b":[16,249],"m":"djnz","oa":42739,"o":"$A6F3"},{"a":42746,"t":"code","b":[175],"m":"xor","o":"a"},{"a":42747,"t":"code","b":[201],"m":"ret"},{"a":42748,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[42740]},{"a":42750,"t":"code","b":[183],"m":"or","o":"a"},{"a":42751,"t":"code","b":[201],"m":"ret"},{"a":42752,"l":"release_group","c":"Lets the independent creatures of group B move: clears bit 6 of the orders of every entry in the scenario's list at ($D015) whose group (bits 0-5) is B.","t":"code","b":[71],"m":"ld","o":"b,a","x":[42793]},{"a":42753,"t":"code","b":[42,21,208],"m":"ld","oa":53269,"o":"hl,($D015)"},{"a":42756,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[42772]},{"a":42757,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":42759,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42760,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42761,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42762,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42763,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":42764,"t":"code","b":[230,63],"m":"and","o":"$3F"},{"a":42766,"t":"code","b":[184],"m":"cp","o":"b"},{"a":42767,"t":"code","b":[32,2],"m":"jr","oa":42771,"o":"nz,$A713"},{"a":42769,"t":"code","b":[203,182],"m":"res","o":"6,(hl)"},{"a":42771,"t":"code","b":[35],"m":"inc","o":"hl","x":[42767]},{"a":42772,"t":"code","b":[24,238],"m":"jr","oa":42756,"o":"$A704"},{"a":42774,"l":"trip_square","c":"When square E, D (row, column) is one of the scenario's trip squares, three bytes each at ($D017) ending with $FE (row, column, group), releases that group: opening a door or changing the terrain there wakes the creatures waiting behind it.","t":"code","b":[42,23,208],"m":"ld","oa":53271,"o":"hl,($D017)","x":[29497,29606]},{"a":42777,"t":"code","b":[229],"m":"push","o":"hl","x":[42800]},{"a":42778,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":42779,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":42781,"t":"code","b":[40,19],"m":"jr","oa":42802,"o":"z,$A732"},{"a":42783,"t":"code","b":[187],"m":"cp","o":"e"},{"a":42784,"t":"code","b":[32,10],"m":"jr","oa":42796,"o":"nz,$A72C"},{"a":42786,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42787,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":42788,"t":"code","b":[186],"m":"cp","o":"d"},{"a":42789,"t":"code","b":[32,5],"m":"jr","oa":42796,"o":"nz,$A72C"},{"a":42791,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42792,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":42793,"t":"code","b":[205,0,167],"m":"call","oa":42752,"o":"release_group"},{"a":42796,"t":"code","b":[225],"m":"pop","o":"hl","x":[42784,42789]},{"a":42797,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42798,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42799,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42800,"t":"code","b":[24,231],"m":"jr","oa":42777,"o":"$A719"},{"a":42802,"t":"code","b":[225],"m":"pop","o":"hl","x":[42781]},{"a":42803,"t":"code","b":[201],"m":"ret"},{"a":42804,"l":"random_below_a","c":"random_below with the limit in A.","t":"code","b":[50,34,91],"m":"ld","oa":23330,"o":"($5B22),a","x":[26797,32296,32697,33639,34382,35087,36098,36276,42419]},{"a":42807,"l":"random_below","c":"A = a random number below $5B22 (from 1 to 255; with a limit of 0 it never returns, since no number is below 0): the refresh register R exclusive-ored with three bytes 256 apart at each of the two pointers that walk through memory ($606F, $6071) and with the byte at $FFF8, drawn again until it is below the limit. R counts the instructions the processor has run, so the result depends on exactly how long everything before it took.","t":"code","b":[229],"m":"push","o":"hl","x":[31684,32461,35228,35288,35415,35625,35635,36153,42268,51537]},{"a":42808,"t":"code","b":[237,95],"m":"ld","o":"a,r","x":[42842]},{"a":42810,"t":"code","b":[42,111,96],"m":"ld","oa":24687,"o":"hl,(random_pointer_1)"},{"a":42813,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42814,"t":"code","b":[34,111,96],"m":"ld","oa":24687,"o":"(random_pointer_1),hl"},{"a":42817,"t":"code","b":[174],"m":"xor","o":"(hl)"},{"a":42818,"t":"code","b":[36],"m":"inc","o":"h"},{"a":42819,"t":"code","b":[174],"m":"xor","o":"(hl)"},{"a":42820,"t":"code","b":[36],"m":"inc","o":"h"},{"a":42821,"t":"code","b":[174],"m":"xor","o":"(hl)"},{"a":42822,"t":"code","b":[42,113,96],"m":"ld","oa":24689,"o":"hl,(random_pointer_2)"},{"a":42825,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42826,"t":"code","b":[34,113,96],"m":"ld","oa":24689,"o":"(random_pointer_2),hl"},{"a":42829,"t":"code","b":[174],"m":"xor","o":"(hl)"},{"a":42830,"t":"code","b":[36],"m":"inc","o":"h"},{"a":42831,"t":"code","b":[174],"m":"xor","o":"(hl)"},{"a":42832,"t":"code","b":[36],"m":"inc","o":"h"},{"a":42833,"t":"code","b":[174],"m":"xor","o":"(hl)"},{"a":42834,"t":"code","b":[33,248,255],"m":"ld","o":"hl,$FFF8"},{"a":42837,"t":"code","b":[174],"m":"xor","o":"(hl)"},{"a":42838,"t":"code","b":[33,34,91],"m":"ld","o":"hl,$5B22"},{"a":42841,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":42842,"t":"code","b":[48,220],"m":"jr","oa":42808,"o":"nc,$A738"},{"a":42844,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":42845,"t":"code","b":[201],"m":"ret"},{"a":42846,"l":"draw_block_at","c":"draw_block for graphic A in colour set B at the map window's character row $D0D5 and column $D0D6: the three screen lines' addresses go to block_lines from the table at $AF61, the first attribute address to block_attr.","t":"code","b":[197],"m":"push","o":"bc","x":[36059,43078,44785]},{"a":42847,"t":"code","b":[237,91,213,208],"m":"ld","oa":53461,"o":"de,($D0D5)"},{"a":42851,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":42853,"t":"code","b":[33,97,175],"m":"ld","o":"hl,$AF61"},{"a":42856,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42857,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42858,"t":"code","b":[17,166,167],"m":"ld","o":"de,$A7A6"},{"a":42861,"t":"code","b":[237,83,172,167],"m":"ld","oa":42924,"o":"(block_line),de"},{"a":42865,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":42867,"t":"code","b":[94],"m":"ld","o":"e,(hl)","x":[42890]},{"a":42868,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42869,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":42870,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42871,"t":"code","b":[229],"m":"push","o":"hl"},{"a":42872,"t":"code","b":[42,214,208],"m":"ld","oa":53462,"o":"hl,($D0D6)"},{"a":42875,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":42877,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42878,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":42879,"t":"code","b":[42,172,167],"m":"ld","oa":42924,"o":"hl,(block_line)"},{"a":42882,"t":"code","b":[115],"m":"ld","o":"(hl),e"},{"a":42883,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42884,"t":"code","b":[114],"m":"ld","o":"(hl),d"},{"a":42885,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42886,"t":"code","b":[34,172,167],"m":"ld","oa":42924,"o":"(block_line),hl"},{"a":42889,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":42890,"t":"code","b":[16,231],"m":"djnz","oa":42867,"o":"$A773"},{"a":42892,"t":"code","b":[42,213,208],"m":"ld","oa":53461,"o":"hl,($D0D5)"},{"a":42895,"t":"code","b":[92],"m":"ld","o":"e,h"},{"a":42896,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":42898,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":42900,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":42901,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":42902,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":42903,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":42904,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":42905,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42906,"t":"code","b":[17,0,88],"m":"ld","o":"de,$5800"},{"a":42909,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42910,"t":"code","b":[34,176,167],"m":"ld","oa":42928,"o":"(block_attr),hl"},{"a":42913,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":42914,"t":"code","b":[205,182,167],"m":"call","oa":42934,"o":"draw_block"},{"a":42917,"t":"code","b":[201],"m":"ret"},{"a":42918,"l":"block_lines","c":"The screen addresses of the three character rows of the block being drawn.","t":"word","b":[0,0,0,0,0,0],"d":[0,0,0]},{"a":42924,"l":"block_line","c":"The entry of block_lines in use.","t":"word","b":[0,0],"d":[0],"x":[42861,42879,42886,42973,42979,43047,43058,43170,43296]},{"a":42926,"l":"block_screen","c":"The screen address of the character being drawn.","t":"word","b":[0,0],"d":[0],"x":[42985,43035,43040,43050]},{"a":42928,"l":"block_attr","c":"The attribute address of the character being drawn.","t":"word","b":[0,0],"d":[0],"x":[42910,43027,43032,43061,43068,43174,43292,43355,43498,43507,43590,43597]},{"a":42930,"l":"block_chars","c":"The next character number of the graphic being drawn.","t":"word","b":[0,0],"d":[0],"x":[42949,42992,42997,43178,43288]},{"a":42932,"l":"block_colours","c":"The next attribute of the colour set being drawn.","t":"word","b":[0,0],"d":[0],"x":[42967,43019,43024,43182,43284]},{"a":42934,"l":"draw_block","c":"Draws graphic A, nine characters in three rows of three (from the scenario's table at ($D038), nine character numbers a graphic, the characters from the set at $D03D), in colour set B (nine attributes a set, from ($D036)): one square of the map.","t":"code","b":[111],"m":"ld","o":"l,a","x":[42914,43495]},{"a":42935,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":42937,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":42938,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":42939,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":42940,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":42941,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":42943,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42944,"t":"code","b":[237,91,56,208],"m":"ld","oa":53304,"o":"de,($D038)"},{"a":42948,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42949,"t":"code","b":[34,178,167],"m":"ld","oa":42930,"o":"(block_chars),hl"},{"a":42952,"t":"code","b":[104],"m":"ld","o":"l,b"},{"a":42953,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":42955,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":42956,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":42957,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":42958,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":42960,"t":"code","b":[88],"m":"ld","o":"e,b"},{"a":42961,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42962,"t":"code","b":[237,91,54,208],"m":"ld","oa":53302,"o":"de,($D036)"},{"a":42966,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42967,"t":"code","b":[34,180,167],"m":"ld","oa":42932,"o":"(block_colours),hl"},{"a":42970,"t":"code","b":[33,166,167],"m":"ld","o":"hl,$A7A6"},{"a":42973,"t":"code","b":[34,172,167],"m":"ld","oa":42924,"o":"(block_line),hl"},{"a":42976,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":42978,"t":"code","b":[197],"m":"push","o":"bc","x":[43072]},{"a":42979,"t":"code","b":[42,172,167],"m":"ld","oa":42924,"o":"hl,(block_line)"},{"a":42982,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":42983,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42984,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":42985,"t":"code","b":[237,83,174,167],"m":"ld","oa":42926,"o":"(block_screen),de"},{"a":42989,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":42991,"t":"code","b":[197],"m":"push","o":"bc","x":[43045]},{"a":42992,"t":"code","b":[42,178,167],"m":"ld","oa":42930,"o":"hl,(block_chars)"},{"a":42995,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":42996,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42997,"t":"code","b":[34,178,167],"m":"ld","oa":42930,"o":"(block_chars),hl"},{"a":43000,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":43001,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":43003,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43004,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43005,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43006,"t":"code","b":[237,75,61,208],"m":"ld","oa":53309,"o":"bc,($D03D)"},{"a":43010,"t":"code","b":[9],"m":"add","o":"hl,bc"},{"a":43011,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":43013,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[43017]},{"a":43014,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":43015,"t":"code","b":[20],"m":"inc","o":"d"},{"a":43016,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43017,"t":"code","b":[16,250],"m":"djnz","oa":43013,"o":"$A805"},{"a":43019,"t":"code","b":[42,180,167],"m":"ld","oa":42932,"o":"hl,(block_colours)"},{"a":43022,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43023,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43024,"t":"code","b":[34,180,167],"m":"ld","oa":42932,"o":"(block_colours),hl"},{"a":43027,"t":"code","b":[42,176,167],"m":"ld","oa":42928,"o":"hl,(block_attr)"},{"a":43030,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":43031,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43032,"t":"code","b":[34,176,167],"m":"ld","oa":42928,"o":"(block_attr),hl"},{"a":43035,"t":"code","b":[237,91,174,167],"m":"ld","oa":42926,"o":"de,(block_screen)"},{"a":43039,"t":"code","b":[19],"m":"inc","o":"de"},{"a":43040,"t":"code","b":[237,83,174,167],"m":"ld","oa":42926,"o":"(block_screen),de"},{"a":43044,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":43045,"t":"code","b":[16,200],"m":"djnz","oa":42991,"o":"$A7EF"},{"a":43047,"t":"code","b":[42,172,167],"m":"ld","oa":42924,"o":"hl,(block_line)"},{"a":43050,"t":"code","b":[237,91,174,167],"m":"ld","oa":42926,"o":"de,(block_screen)"},{"a":43054,"t":"code","b":[115],"m":"ld","o":"(hl),e"},{"a":43055,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43056,"t":"code","b":[114],"m":"ld","o":"(hl),d"},{"a":43057,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43058,"t":"code","b":[34,172,167],"m":"ld","oa":42924,"o":"(block_line),hl"},{"a":43061,"t":"code","b":[42,176,167],"m":"ld","oa":42928,"o":"hl,(block_attr)"},{"a":43064,"t":"code","b":[17,29,0],"m":"ld","o":"de,$001D"},{"a":43067,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43068,"t":"code","b":[34,176,167],"m":"ld","oa":42928,"o":"(block_attr),hl"},{"a":43071,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":43072,"t":"code","b":[16,160],"m":"djnz","oa":42978,"o":"$A7E2"},{"a":43074,"t":"code","b":[201],"m":"ret"},{"a":43075,"l":"draw_thing_at","c":"draw_block_at for thing A: thing_graphic then the drawing.","t":"code","b":[205,74,168],"m":"call","oa":43082,"o":"thing_graphic","x":[43776]},{"a":43078,"t":"code","b":[205,94,167],"m":"call","oa":42846,"o":"draw_block_at"},{"a":43081,"t":"code","b":[201],"m":"ret"},{"a":43082,"l":"thing_graphic","c":"A = the graphic and B = the colour set of thing A (a map byte: terrain, object or creature), from its five-byte entry in the scenario's table at ($D032). Byte 0 picks the character set, from the scenario's table of sets at $D07A, when it is not the one in use ($D03C, address in $D03D). Bytes 3 and 4 are its animation: the frames left and the next frame.","t":"code","b":[111],"m":"ld","o":"l,a","x":[36055,43075]},{"a":43083,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":43085,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43086,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43087,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":43089,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":43090,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43091,"t":"code","b":[237,91,50,208],"m":"ld","oa":53298,"o":"de,($D032)"},{"a":43095,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43096,"t":"code","b":[58,60,208],"m":"ld","oa":53308,"o":"a,($D03C)"},{"a":43099,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":43100,"t":"code","b":[202,116,168],"m":"jp","oa":43124,"o":"z,$A874"},{"a":43103,"t":"code","b":[229],"m":"push","o":"hl"},{"a":43104,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43105,"t":"code","b":[50,60,208],"m":"ld","oa":53308,"o":"($D03C),a"},{"a":43108,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":43109,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":43111,"t":"code","b":[33,122,208],"m":"ld","o":"hl,$D07A"},{"a":43114,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43115,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43116,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":43117,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43118,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":43119,"t":"code","b":[237,83,61,208],"m":"ld","oa":53309,"o":"($D03D),de"},{"a":43123,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":43124,"t":"code","b":[35],"m":"inc","o":"hl","x":[43100]},{"a":43125,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43126,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43127,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":43128,"t":"code","b":[201],"m":"ret"},{"a":43129,"l":"interrupt","c":"The interrupt routine, every frame through the vector at $FFFF: interrupts off (DI) at its start, then on every second frame the main work ($A891), on every frame the information display's bars slide when bit 4 of $D0DF is set ($AB0E), and EI before RETI.","t":"code","b":[243],"m":"di"},{"a":43130,"t":"code","b":[245],"m":"push","o":"af"},{"a":43131,"t":"code","b":[58,110,96],"m":"ld","oa":24686,"o":"a,(frame_toggle)"},{"a":43134,"t":"code","b":[238,1],"m":"xor","o":"$01"},{"a":43136,"t":"code","b":[50,110,96],"m":"ld","oa":24686,"o":"(frame_toggle),a"},{"a":43139,"t":"code","b":[204,145,168],"m":"call","oa":43153,"o":"z,interrupt_work"},{"a":43142,"t":"code","b":[58,223,208],"m":"ld","oa":53471,"o":"a,($D0DF)"},{"a":43145,"t":"code","b":[203,103],"m":"bit","o":"4,a"},{"a":43147,"t":"code","b":[196,14,171],"m":"call","oa":43790,"o":"nz,slide_bars"},{"a":43150,"t":"code","b":[241],"m":"pop","o":"af"},{"a":43151,"t":"code","b":[251],"m":"ei"},{"a":43152,"t":"code","b":[201],"m":"ret"},{"a":43153,"l":"interrupt_work","c":"The work of every second frame, keeping the drawing state of the main program: every animated thing (170 five-byte entries in ($D032); a count of $FF is not animated) counts down and at 0 takes its next frame ($A936); the cursor blinks ($AA83); the flashing colour $FF53 takes the next value from the list at $B494. Then by the bits of $D0DF: bit 0 redraws the map window, bit 1 the information display's pictures and icons ($AAA5), bit 2 the first two pictures only ($AA9F), bit 3 the menu bar ($AAD4); with $5B42 set the message line flashes. Restoring the state, the instruction at $A914 reads block_colours instead of writing it back, so a block the main program is drawing when the interrupt comes takes the rest of its attributes from wherever the interrupt's own drawing left the pointer.","t":"code","b":[221,229],"m":"push","o":"ix","x":[43139]},{"a":43155,"t":"code","b":[197],"m":"push","o":"bc"},{"a":43156,"t":"code","b":[213],"m":"push","o":"de"},{"a":43157,"t":"code","b":[229],"m":"push","o":"hl"},{"a":43158,"t":"code","b":[58,60,208],"m":"ld","oa":53308,"o":"a,($D03C)"},{"a":43161,"t":"code","b":[245],"m":"push","o":"af"},{"a":43162,"t":"code","b":[42,213,208],"m":"ld","oa":53461,"o":"hl,($D0D5)"},{"a":43165,"t":"code","b":[229],"m":"push","o":"hl"},{"a":43166,"t":"code","b":[42,61,208],"m":"ld","oa":53309,"o":"hl,($D03D)"},{"a":43169,"t":"code","b":[229],"m":"push","o":"hl"},{"a":43170,"t":"code","b":[42,172,167],"m":"ld","oa":42924,"o":"hl,(block_line)"},{"a":43173,"t":"code","b":[229],"m":"push","o":"hl"},{"a":43174,"t":"code","b":[42,176,167],"m":"ld","oa":42928,"o":"hl,(block_attr)"},{"a":43177,"t":"code","b":[229],"m":"push","o":"hl"},{"a":43178,"t":"code","b":[42,178,167],"m":"ld","oa":42930,"o":"hl,(block_chars)"},{"a":43181,"t":"code","b":[229],"m":"push","o":"hl"},{"a":43182,"t":"code","b":[42,180,167],"m":"ld","oa":42932,"o":"hl,(block_colours)"},{"a":43185,"t":"code","b":[229],"m":"push","o":"hl"},{"a":43186,"t":"code","b":[42,50,208],"m":"ld","oa":53298,"o":"hl,($D032)"},{"a":43189,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":43192,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43193,"t":"code","b":[6,170],"m":"ld","o":"b,$AA"},{"a":43195,"t":"code","b":[197],"m":"push","o":"bc","x":[43215]},{"a":43196,"t":"code","b":[229],"m":"push","o":"hl"},{"a":43197,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43198,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":43200,"t":"code","b":[202,201,168],"m":"jp","oa":43209,"o":"z,$A8C9"},{"a":43203,"t":"code","b":[61],"m":"dec","o":"a"},{"a":43204,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":43205,"t":"code","b":[183],"m":"or","o":"a"},{"a":43206,"t":"code","b":[204,54,169],"m":"call","oa":43318,"o":"z,next_frame"},{"a":43209,"t":"code","b":[225],"m":"pop","o":"hl","x":[43200]},{"a":43210,"t":"code","b":[17,5,0],"m":"ld","o":"de,$0005"},{"a":43213,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43214,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":43215,"t":"code","b":[16,234],"m":"djnz","oa":43195,"o":"$A8BB"},{"a":43217,"t":"code","b":[205,131,170],"m":"call","oa":43651,"o":"blink_cursor"},{"a":43220,"t":"code","b":[42,146,180],"m":"ld","oa":46226,"o":"hl,(flash_next)"},{"a":43223,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43224,"t":"code","b":[34,146,180],"m":"ld","oa":46226,"o":"(flash_next),hl"},{"a":43227,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43228,"t":"code","b":[60],"m":"inc","o":"a"},{"a":43229,"t":"code","b":[32,6],"m":"jr","oa":43237,"o":"nz,$A8E5"},{"a":43231,"t":"code","b":[33,148,180],"m":"ld","o":"hl,$B494"},{"a":43234,"t":"code","b":[34,146,180],"m":"ld","oa":46226,"o":"(flash_next),hl"},{"a":43237,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[43229]},{"a":43238,"t":"code","b":[50,83,255],"m":"ld","oa":65363,"o":"($FF53),a"},{"a":43241,"t":"code","b":[58,223,208],"m":"ld","oa":53471,"o":"a,($D0DF)"},{"a":43244,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":43246,"t":"code","b":[196,76,169],"m":"call","oa":43340,"o":"nz,draw_map"},{"a":43249,"t":"code","b":[58,223,208],"m":"ld","oa":53471,"o":"a,($D0DF)"},{"a":43252,"t":"code","b":[203,79],"m":"bit","o":"1,a"},{"a":43254,"t":"code","b":[196,165,170],"m":"call","oa":43685,"o":"nz,redraw_pictures"},{"a":43257,"t":"code","b":[58,223,208],"m":"ld","oa":53471,"o":"a,($D0DF)"},{"a":43260,"t":"code","b":[203,87],"m":"bit","o":"2,a"},{"a":43262,"t":"code","b":[196,159,170],"m":"call","oa":43679,"o":"nz,redraw_two_pictures"},{"a":43265,"t":"code","b":[58,223,208],"m":"ld","oa":53471,"o":"a,($D0DF)"},{"a":43268,"t":"code","b":[203,95],"m":"bit","o":"3,a"},{"a":43270,"t":"code","b":[196,212,170],"m":"call","oa":43732,"o":"nz,flash_menu_bar"},{"a":43273,"t":"code","b":[58,66,91],"m":"ld","oa":23362,"o":"a,($5B42)"},{"a":43276,"t":"code","b":[183],"m":"or","o":"a"},{"a":43277,"t":"code","b":[58,83,255],"m":"ld","oa":65363,"o":"a,($FF53)"},{"a":43280,"t":"code","b":[196,104,100],"m":"call","oa":25704,"o":"nz,fill_message_line"},{"a":43283,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":43284,"t":"code","b":[42,180,167],"m":"ld","oa":42932,"o":"hl,(block_colours)"},{"a":43287,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":43288,"t":"code","b":[34,178,167],"m":"ld","oa":42930,"o":"(block_chars),hl"},{"a":43291,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":43292,"t":"code","b":[34,176,167],"m":"ld","oa":42928,"o":"(block_attr),hl"},{"a":43295,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":43296,"t":"code","b":[34,172,167],"m":"ld","oa":42924,"o":"(block_line),hl"},{"a":43299,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":43300,"t":"code","b":[34,61,208],"m":"ld","oa":53309,"o":"($D03D),hl"},{"a":43303,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":43304,"t":"code","b":[34,213,208],"m":"ld","oa":53461,"o":"($D0D5),hl"},{"a":43307,"t":"code","b":[241],"m":"pop","o":"af"},{"a":43308,"t":"code","b":[50,60,208],"m":"ld","oa":53308,"o":"($D03C),a"},{"a":43311,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":43312,"t":"code","b":[209],"m":"pop","o":"de"},{"a":43313,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":43314,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":43316,"t":"code","b":[201],"m":"ret"},{"a":43317,"l":"unused_A935","c":"A byte nothing reads.","t":"byte","b":[0]},{"a":43318,"l":"next_frame","c":"The thing whose animation count (its address in HL) has run out takes its next frame: graphic, colour set, count and next frame, four bytes from the scenario's frame table at ($D034).","t":"code","b":[235],"m":"ex","o":"de,hl","x":[43206]},{"a":43319,"t":"code","b":[19],"m":"inc","o":"de"},{"a":43320,"t":"code","b":[26],"m":"ld","o":"a,(de)"},{"a":43321,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":43322,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":43324,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43325,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43326,"t":"code","b":[237,75,52,208],"m":"ld","oa":53300,"o":"bc,($D034)"},{"a":43330,"t":"code","b":[9],"m":"add","o":"hl,bc"},{"a":43331,"t":"code","b":[27],"m":"dec","o":"de"},{"a":43332,"t":"code","b":[27],"m":"dec","o":"de"},{"a":43333,"t":"code","b":[27],"m":"dec","o":"de"},{"a":43334,"t":"code","b":[1,4,0],"m":"ld","o":"bc,$0004"},{"a":43337,"t":"code","b":[237,176],"m":"ldir"},{"a":43339,"t":"code","b":[201],"m":"ret"},{"a":43340,"l":"draw_map","c":"Draws the map window, seven squares by seven from the top left square ($D0C8, row and column, wrapping at 36): each square's thing (map byte), looked up as thing_graphic does, the same steps written out again, except the cursor's square while the cursor is on ($D0D0), which shows the cursor (graphic in $FF86, colour set in $FF87, characters from set 0 at $B646). A sound in progress ($C839) gets a step after each row.","t":"code","b":[42,200,208],"m":"ld","oa":53448,"o":"hl,($D0C8)","x":[25381,26838,26960,27252,27959,29518,29554,31335,31641,34104,34179,34359,34675,35041,35428,35751,35866,35894,37296,39879,39932,41501,42183,43246,44589,44645]},{"a":43343,"t":"code","b":[34,204,208],"m":"ld","oa":53452,"o":"($D0CC),hl"},{"a":43346,"t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":43349,"t":"code","b":[34,206,208],"m":"ld","oa":53454,"o":"($D0CE),hl"},{"a":43352,"t":"code","b":[33,0,88],"m":"ld","o":"hl,$5800"},{"a":43355,"t":"code","b":[34,176,167],"m":"ld","oa":42928,"o":"(block_attr),hl"},{"a":43358,"t":"code","b":[33,97,175],"m":"ld","o":"hl,$AF61"},{"a":43361,"t":"code","b":[34,202,208],"m":"ld","oa":53450,"o":"($D0CA),hl"},{"a":43364,"t":"code","b":[6,7],"m":"ld","o":"b,$07"},{"a":43366,"t":"code","b":[197],"m":"push","o":"bc","x":[43609]},{"a":43367,"t":"code","b":[42,202,208],"m":"ld","oa":53450,"o":"hl,($D0CA)"},{"a":43370,"t":"code","b":[17,166,167],"m":"ld","o":"de,$A7A6"},{"a":43373,"t":"code","b":[237,160],"m":"ldi"},{"a":43375,"t":"code","b":[237,160],"m":"ldi"},{"a":43377,"t":"code","b":[237,160],"m":"ldi"},{"a":43379,"t":"code","b":[237,160],"m":"ldi"},{"a":43381,"t":"code","b":[237,160],"m":"ldi"},{"a":43383,"t":"code","b":[237,160],"m":"ldi"},{"a":43385,"t":"code","b":[34,202,208],"m":"ld","oa":53450,"o":"($D0CA),hl"},{"a":43388,"t":"code","b":[6,7],"m":"ld","o":"b,$07"},{"a":43390,"t":"code","b":[197],"m":"push","o":"bc","x":[43536]},{"a":43391,"t":"code","b":[58,204,208],"m":"ld","oa":53452,"o":"a,($D0CC)"},{"a":43394,"t":"code","b":[33,211,208],"m":"ld","o":"hl,$D0D3"},{"a":43397,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":43398,"t":"code","b":[32,41],"m":"jr","oa":43441,"o":"nz,$A9B1"},{"a":43400,"t":"code","b":[58,205,208],"m":"ld","oa":53453,"o":"a,($D0CD)"},{"a":43403,"t":"code","b":[33,212,208],"m":"ld","o":"hl,$D0D4"},{"a":43406,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":43407,"t":"code","b":[32,32],"m":"jr","oa":43441,"o":"nz,$A9B1"},{"a":43409,"t":"code","b":[58,208,208],"m":"ld","oa":53456,"o":"a,($D0D0)"},{"a":43412,"t":"code","b":[183],"m":"or","o":"a"},{"a":43413,"t":"code","b":[40,26],"m":"jr","oa":43441,"o":"z,$A9B1"},{"a":43415,"t":"code","b":[175],"m":"xor","o":"a"},{"a":43416,"t":"code","b":[50,60,208],"m":"ld","oa":53308,"o":"($D03C),a"},{"a":43419,"t":"code","b":[33,70,182],"m":"ld","o":"hl,$B646"},{"a":43422,"t":"code","b":[34,61,208],"m":"ld","oa":53309,"o":"($D03D),hl"},{"a":43425,"t":"code","b":[58,135,255],"m":"ld","oa":65415,"o":"a,($FF87)"},{"a":43428,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":43429,"t":"code","b":[58,134,255],"m":"ld","oa":65414,"o":"a,($FF86)"},{"a":43432,"t":"code","b":[42,206,208],"m":"ld","oa":53454,"o":"hl,($D0CE)"},{"a":43435,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43436,"t":"code","b":[34,206,208],"m":"ld","oa":53454,"o":"($D0CE),hl"},{"a":43439,"t":"code","b":[24,54],"m":"jr","oa":43495,"o":"$A9E7"},{"a":43441,"t":"code","b":[42,206,208],"m":"ld","oa":53454,"o":"hl,($D0CE)","x":[43398,43407,43413]},{"a":43444,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43445,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43446,"t":"code","b":[34,206,208],"m":"ld","oa":53454,"o":"($D0CE),hl"},{"a":43449,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":43450,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":43452,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43453,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43454,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":43456,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":43457,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43458,"t":"code","b":[237,91,50,208],"m":"ld","oa":53298,"o":"de,($D032)"},{"a":43462,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43463,"t":"code","b":[58,60,208],"m":"ld","oa":53308,"o":"a,($D03C)"},{"a":43466,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":43467,"t":"code","b":[202,227,169],"m":"jp","oa":43491,"o":"z,$A9E3"},{"a":43470,"t":"code","b":[229],"m":"push","o":"hl"},{"a":43471,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43472,"t":"code","b":[50,60,208],"m":"ld","oa":53308,"o":"($D03C),a"},{"a":43475,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":43476,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":43478,"t":"code","b":[33,122,208],"m":"ld","o":"hl,$D07A"},{"a":43481,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43482,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43483,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":43484,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43485,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":43486,"t":"code","b":[237,83,61,208],"m":"ld","oa":53309,"o":"($D03D),de"},{"a":43490,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":43491,"t":"code","b":[35],"m":"inc","o":"hl","x":[43467]},{"a":43492,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43493,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43494,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":43495,"t":"code","b":[205,182,167],"m":"call","oa":42934,"o":"draw_block","x":[43439]},{"a":43498,"t":"code","b":[42,176,167],"m":"ld","oa":42928,"o":"hl,(block_attr)"},{"a":43501,"t":"code","b":[17,93,0],"m":"ld","o":"de,$005D"},{"a":43504,"t":"code","b":[175],"m":"xor","o":"a"},{"a":43505,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":43507,"t":"code","b":[34,176,167],"m":"ld","oa":42928,"o":"(block_attr),hl"},{"a":43510,"t":"code","b":[58,205,208],"m":"ld","oa":53453,"o":"a,($D0CD)"},{"a":43513,"t":"code","b":[60],"m":"inc","o":"a"},{"a":43514,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":43516,"t":"code","b":[194,11,170],"m":"jp","oa":43531,"o":"nz,$AA0B"},{"a":43519,"t":"code","b":[42,206,208],"m":"ld","oa":53454,"o":"hl,($D0CE)"},{"a":43522,"t":"code","b":[17,36,0],"m":"ld","o":"de,$0024"},{"a":43525,"t":"code","b":[175],"m":"xor","o":"a"},{"a":43526,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":43528,"t":"code","b":[34,206,208],"m":"ld","oa":53454,"o":"($D0CE),hl"},{"a":43531,"t":"code","b":[50,205,208],"m":"ld","oa":53453,"o":"($D0CD),a","x":[43516]},{"a":43534,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":43535,"t":"code","b":[5],"m":"dec","o":"b"},{"a":43536,"t":"code","b":[194,126,169],"m":"jp","oa":43390,"o":"nz,$A97E"},{"a":43539,"t":"code","b":[42,206,208],"m":"ld","oa":53454,"o":"hl,($D0CE)"},{"a":43542,"t":"code","b":[17,29,0],"m":"ld","o":"de,$001D"},{"a":43545,"t":"code","b":[58,201,208],"m":"ld","oa":53449,"o":"a,($D0C9)"},{"a":43548,"t":"code","b":[254,29],"m":"cp","o":"$1D"},{"a":43550,"t":"code","b":[218,36,170],"m":"jp","oa":43556,"o":"c,$AA24"},{"a":43553,"t":"code","b":[17,65,0],"m":"ld","o":"de,$0041"},{"a":43556,"t":"code","b":[25],"m":"add","o":"hl,de","x":[43550]},{"a":43557,"t":"code","b":[34,206,208],"m":"ld","oa":53454,"o":"($D0CE),hl"},{"a":43560,"t":"code","b":[58,201,208],"m":"ld","oa":53449,"o":"a,($D0C9)"},{"a":43563,"t":"code","b":[50,205,208],"m":"ld","oa":53453,"o":"($D0CD),a"},{"a":43566,"t":"code","b":[58,204,208],"m":"ld","oa":53452,"o":"a,($D0CC)"},{"a":43569,"t":"code","b":[60],"m":"inc","o":"a"},{"a":43570,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":43572,"t":"code","b":[194,67,170],"m":"jp","oa":43587,"o":"nz,$AA43"},{"a":43575,"t":"code","b":[175],"m":"xor","o":"a"},{"a":43576,"t":"code","b":[42,206,208],"m":"ld","oa":53454,"o":"hl,($D0CE)"},{"a":43579,"t":"code","b":[17,16,5],"m":"ld","o":"de,$0510"},{"a":43582,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":43584,"t":"code","b":[34,206,208],"m":"ld","oa":53454,"o":"($D0CE),hl"},{"a":43587,"t":"code","b":[50,204,208],"m":"ld","oa":53452,"o":"($D0CC),a","x":[43572]},{"a":43590,"t":"code","b":[42,176,167],"m":"ld","oa":42928,"o":"hl,(block_attr)"},{"a":43593,"t":"code","b":[17,75,0],"m":"ld","o":"de,$004B"},{"a":43596,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43597,"t":"code","b":[34,176,167],"m":"ld","oa":42928,"o":"(block_attr),hl"},{"a":43600,"t":"code","b":[58,57,200],"m":"ld","oa":51257,"o":"a,(sound_running)"},{"a":43603,"t":"code","b":[183],"m":"or","o":"a"},{"a":43604,"t":"code","b":[196,86,200],"m":"call","oa":51286,"o":"nz,play_sound"},{"a":43607,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":43608,"t":"code","b":[5],"m":"dec","o":"b"},{"a":43609,"t":"code","b":[194,102,169],"m":"jp","oa":43366,"o":"nz,$A966"},{"a":43612,"t":"code","b":[201],"m":"ret"},{"a":43613,"l":"map_address_window","c":"map_address for the map window's top left square, $D0CC.","t":"code","b":[42,204,208],"m":"ld","oa":53452,"o":"hl,($D0CC)","x":[31961,32000,32206,32319,32368,32389]},{"a":43616,"t":"code","b":[24,8],"m":"jr","oa":43626,"o":"map_address"},{"a":43618,"l":"map_address_cursor","c":"map_address for the cursor's square, $D0D3.","t":"code","b":[42,211,208],"m":"ld","oa":53459,"o":"hl,($D0D3)","x":[26009,26885,26912,27255]},{"a":43621,"t":"code","b":[24,3],"m":"jr","oa":43626,"o":"map_address"},{"a":43623,"l":"map_address_selected","c":"map_address for the selected creature's square, $5B55.","t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)","x":[27312,27353,30401,32774,33987,35689,35845,45431,46315]},{"a":43626,"l":"map_address","c":"HL = the address in the map (36 by 36 bytes at ($D030)) of the square at row L, column H.","t":"code","b":[197],"m":"push","o":"bc","x":[25770,26821,30687,31103,31135,31319,31699,35741,36924,37102,37266,43346,43616,43621,45761]},{"a":43627,"t":"code","b":[213],"m":"push","o":"de"},{"a":43628,"t":"code","b":[68],"m":"ld","o":"b,h"},{"a":43629,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":43631,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43632,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43633,"t":"code","b":[84],"m":"ld","o":"d,h"},{"a":43634,"t":"code","b":[93],"m":"ld","o":"e,l"},{"a":43635,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43636,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43637,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":43638,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43639,"t":"code","b":[88],"m":"ld","o":"e,b"},{"a":43640,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":43642,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43643,"t":"code","b":[237,91,48,208],"m":"ld","oa":53296,"o":"de,($D030)"},{"a":43647,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43648,"t":"code","b":[209],"m":"pop","o":"de"},{"a":43649,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":43650,"t":"code","b":[201],"m":"ret"},{"a":43651,"l":"blink_cursor","c":"Turns the cursor on ($D0D0) for three calls and off for two, counting in $B45B.","t":"code","b":[58,91,180],"m":"ld","oa":46171,"o":"a,(blink_count)","x":[43217]},{"a":43654,"t":"code","b":[61],"m":"dec","o":"a"},{"a":43655,"t":"code","b":[50,91,180],"m":"ld","oa":46171,"o":"(blink_count),a"},{"a":43658,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":43659,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":43661,"t":"code","b":[50,91,180],"m":"ld","oa":46171,"o":"(blink_count),a"},{"a":43664,"t":"code","b":[58,208,208],"m":"ld","oa":53456,"o":"a,($D0D0)"},{"a":43667,"t":"code","b":[238,1],"m":"xor","o":"$01"},{"a":43669,"t":"code","b":[50,208,208],"m":"ld","oa":53456,"o":"($D0D0),a"},{"a":43672,"t":"code","b":[200],"m":"ret","o":"z"},{"a":43673,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":43675,"t":"code","b":[50,91,180],"m":"ld","oa":46171,"o":"(blink_count),a"},{"a":43678,"t":"code","b":[201],"m":"ret"},{"a":43679,"l":"redraw_two_pictures","c":"Redraws the first two pictures of the information display (a first of $FF is skipped).","t":"code","b":[6,2],"m":"ld","o":"b,$02","x":[43262]},{"a":43681,"t":"code","b":[14,255],"m":"ld","o":"c,$FF"},{"a":43683,"t":"code","b":[24,4],"m":"jr","oa":43689,"o":"$AAA9"},{"a":43685,"l":"redraw_pictures","c":"Redraws the eight pictures of the information display, from the list at $B45C (thing, row and column each; the first is the terrain), skipping empty ones after the first, then flashes its icons.","t":"code","b":[6,8],"m":"ld","o":"b,$08","x":[43254]},{"a":43687,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":43689,"t":"code","b":[33,92,180],"m":"ld","o":"hl,$B45C","x":[43683]},{"a":43692,"t":"code","b":[205,238,170],"m":"call","oa":43758,"o":"draw_thing_list"},{"a":43695,"l":"flash_icons","c":"Colours each icon of the information display that is on ($D1A9-$D1AD: undead, flying, mount, fatal wound, invisible) with the flashing colour $FF53.","t":"code","b":[58,83,255],"m":"ld","oa":65363,"o":"a,($FF53)","x":[25393]},{"a":43698,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":43699,"t":"code","b":[6,5],"m":"ld","o":"b,$05"},{"a":43701,"t":"code","b":[221,33,22,88],"m":"ld","o":"ix,$5816"},{"a":43705,"t":"code","b":[33,169,209],"m":"ld","o":"hl,$D1A9"},{"a":43708,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[43729]},{"a":43709,"t":"code","b":[183],"m":"or","o":"a"},{"a":43710,"t":"code","b":[40,12],"m":"jr","oa":43724,"o":"z,$AACC"},{"a":43712,"t":"code","b":[221,114,0],"m":"ld","o":"(ix+$00),d"},{"a":43715,"t":"code","b":[221,114,1],"m":"ld","o":"(ix+$01),d"},{"a":43718,"t":"code","b":[221,114,32],"m":"ld","o":"(ix+$20),d"},{"a":43721,"t":"code","b":[221,114,33],"m":"ld","o":"(ix+$21),d"},{"a":43724,"t":"code","b":[221,35],"m":"inc","o":"ix","x":[43710]},{"a":43726,"t":"code","b":[221,35],"m":"inc","o":"ix"},{"a":43728,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43729,"t":"code","b":[16,233],"m":"djnz","oa":43708,"o":"$AABC"},{"a":43731,"t":"code","b":[201],"m":"ret"},{"a":43732,"l":"flash_menu_bar","c":"Redraws the menu's pictures ($5B0A of them from $B474), colours the bar on the choice ($C662) with the flashing colour and waits about 167,600 T-states (delay_50, 50 x 255 turns of an empty loop), inside the interrupt.","t":"code","b":[58,10,91],"m":"ld","oa":23306,"o":"a,($5B0A)","x":[43270]},{"a":43735,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":43736,"t":"code","b":[33,116,180],"m":"ld","o":"hl,$B474"},{"a":43739,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":43741,"t":"code","b":[205,238,170],"m":"call","oa":43758,"o":"draw_thing_list"},{"a":43744,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":43747,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":43748,"t":"code","b":[58,83,255],"m":"ld","oa":65363,"o":"a,($FF53)"},{"a":43751,"t":"code","b":[205,195,111],"m":"call","oa":28611,"o":"colour_choice_row"},{"a":43754,"t":"code","b":[205,36,149],"m":"call","oa":38180,"o":"delay_50"},{"a":43757,"t":"code","b":[201],"m":"ret"},{"a":43758,"l":"draw_thing_list","c":"Draws B things from a list of three bytes each at HL (thing, row, column), skipping one equal to C (C is 0 after the first).","t":"code","b":[197],"m":"push","o":"bc","x":[43692,43741,43787]},{"a":43759,"t":"code","b":[229],"m":"push","o":"hl"},{"a":43760,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43761,"t":"code","b":[185],"m":"cp","o":"c"},{"a":43762,"t":"code","b":[40,15],"m":"jr","oa":43779,"o":"z,$AB03"},{"a":43764,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":43765,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43766,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43767,"t":"code","b":[50,213,208],"m":"ld","oa":53461,"o":"($D0D5),a"},{"a":43770,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43771,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43772,"t":"code","b":[50,214,208],"m":"ld","oa":53462,"o":"($D0D6),a"},{"a":43775,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":43776,"t":"code","b":[205,67,168],"m":"call","oa":43075,"o":"draw_thing_at"},{"a":43779,"t":"code","b":[225],"m":"pop","o":"hl","x":[43762]},{"a":43780,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":43783,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":43784,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":43785,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":43787,"t":"code","b":[16,225],"m":"djnz","oa":43758,"o":"draw_thing_list"},{"a":43789,"t":"code","b":[201],"m":"ret"},{"a":43790,"l":"slide_bars","c":"Moves each of the information display's five bars one pixel toward its value: the drawn length at $D1F6 on, the value at $D1FB on (at most $5F), filling or clearing one pixel line of the bar ($AC99).","t":"code","b":[221,229],"m":"push","o":"ix","x":[25390,36836,43147]},{"a":43792,"t":"code","b":[245],"m":"push","o":"af"},{"a":43793,"t":"code","b":[197],"m":"push","o":"bc"},{"a":43794,"t":"code","b":[213],"m":"push","o":"de"},{"a":43795,"t":"code","b":[229],"m":"push","o":"hl"},{"a":43796,"t":"code","b":[221,33,246,209],"m":"ld","o":"ix,$D1F6"},{"a":43800,"t":"code","b":[22,22],"m":"ld","o":"d,$16"},{"a":43802,"t":"code","b":[6,5],"m":"ld","o":"b,$05"},{"a":43804,"t":"code","b":[197],"m":"push","o":"bc","x":[43854]},{"a":43805,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":43808,"t":"code","b":[221,190,5],"m":"cp","o":"(ix+$05)"},{"a":43811,"t":"code","b":[40,36],"m":"jr","oa":43849,"o":"z,$AB49"},{"a":43813,"t":"code","b":[48,18],"m":"jr","oa":43833,"o":"nc,$AB39"},{"a":43815,"t":"code","b":[254,95],"m":"cp","o":"$5F"},{"a":43817,"t":"code","b":[40,30],"m":"jr","oa":43849,"o":"z,$AB49"},{"a":43819,"t":"code","b":[60],"m":"inc","o":"a"},{"a":43820,"t":"code","b":[221,119,0],"m":"ld","o":"(ix+$00),a"},{"a":43823,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":43824,"t":"code","b":[62,152],"m":"ld","o":"a,$98"},{"a":43826,"t":"code","b":[144],"m":"sub","o":"b"},{"a":43827,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":43828,"t":"code","b":[205,153,172],"m":"call","oa":44185,"o":"bar_fill_line"},{"a":43831,"t":"code","b":[24,16],"m":"jr","oa":43849,"o":"$AB49"},{"a":43833,"t":"code","b":[71],"m":"ld","o":"b,a","x":[43813]},{"a":43834,"t":"code","b":[61],"m":"dec","o":"a"},{"a":43835,"t":"code","b":[221,119,0],"m":"ld","o":"(ix+$00),a"},{"a":43838,"t":"code","b":[254,95],"m":"cp","o":"$5F"},{"a":43840,"t":"code","b":[48,7],"m":"jr","oa":43849,"o":"nc,$AB49"},{"a":43842,"t":"code","b":[62,152],"m":"ld","o":"a,$98"},{"a":43844,"t":"code","b":[144],"m":"sub","o":"b"},{"a":43845,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":43846,"t":"code","b":[205,153,172],"m":"call","oa":44185,"o":"bar_fill_line"},{"a":43849,"t":"code","b":[193],"m":"pop","o":"bc","x":[43811,43817,43831,43840]},{"a":43850,"t":"code","b":[221,35],"m":"inc","o":"ix"},{"a":43852,"t":"code","b":[20],"m":"inc","o":"d"},{"a":43853,"t":"code","b":[20],"m":"inc","o":"d"},{"a":43854,"t":"code","b":[16,204],"m":"djnz","oa":43804,"o":"$AB1C"},{"a":43856,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":43857,"t":"code","b":[209],"m":"pop","o":"de"},{"a":43858,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":43859,"t":"code","b":[241],"m":"pop","o":"af"},{"a":43860,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":43862,"t":"code","b":[201],"m":"ret"},{"a":43863,"l":"print_panel_text","c":"Prints message A from the engine's own text ($CE00 messages, $CE57 words) in its own font ($9531), single height.","t":"code","b":[243],"m":"di","x":[25058,26114,26711,28458,28607,36725,36730,36805,36810]},{"a":43864,"t":"code","b":[33,0,206],"m":"ld","o":"hl,$CE00"},{"a":43867,"t":"code","b":[34,251,255],"m":"ld","oa":65531,"o":"($FFFB),hl"},{"a":43870,"t":"code","b":[33,87,206],"m":"ld","o":"hl,$CE57"},{"a":43873,"t":"code","b":[34,253,255],"m":"ld","oa":65533,"o":"($FFFD),hl"},{"a":43876,"t":"code","b":[33,49,149],"m":"ld","o":"hl,$9531"},{"a":43879,"t":"code","b":[34,14,91],"m":"ld","oa":23310,"o":"($5B0E),hl"},{"a":43882,"t":"code","b":[33,20,91],"m":"ld","o":"hl,$5B14"},{"a":43885,"t":"code","b":[54,1],"m":"ld","o":"(hl),$01"},{"a":43887,"t":"code","b":[205,156,171],"m":"call","oa":43932,"o":"print_message"},{"a":43890,"t":"code","b":[201],"m":"ret"},{"a":43891,"l":"print_text","c":"Prints message A of the scenario in single height, unless the computer is moving ($D063).","t":"code","b":[33,99,208],"m":"ld","o":"hl,$D063","x":[27498,27508,27518,27597,27616,27626,27650,27666,27686,27698,27750,27774,27797,27812,27827,27847,27874,27884,27917,27927,27945,30010,30019,30506,36478,36766,37374,37633]},{"a":43894,"t":"code","b":[203,70],"m":"bit","o":"0,(hl)"},{"a":43896,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":43897,"t":"code","b":[33,20,91],"m":"ld","o":"hl,$5B14"},{"a":43900,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":43902,"t":"code","b":[24,5],"m":"jr","oa":43909,"o":"print_scenario_text"},{"a":43904,"l":"print_text_big","c":"Prints message A of the scenario in double height.","t":"code","b":[33,20,91],"m":"ld","o":"hl,$5B14","x":[24721,26032,26236,26270,27283,28403,28717,28801,28951,31040,32985,32990,33157,34690,34724,34744,34782,36374,36379,36386,36516,51435,52085,52111,52188,52218]},{"a":43907,"t":"code","b":[54,8],"m":"ld","o":"(hl),$08"},{"a":43909,"l":"print_scenario_text","c":"Prints message A from the scenario's tables ($D00B messages, $D00D words) in the ROM's font ($3C00).","t":"code","b":[243],"m":"di","x":[43902]},{"a":43910,"t":"code","b":[42,11,208],"m":"ld","oa":53259,"o":"hl,($D00B)"},{"a":43913,"t":"code","b":[34,251,255],"m":"ld","oa":65531,"o":"($FFFB),hl"},{"a":43916,"t":"code","b":[42,13,208],"m":"ld","oa":53261,"o":"hl,($D00D)"},{"a":43919,"t":"code","b":[34,253,255],"m":"ld","oa":65533,"o":"($FFFD),hl"},{"a":43922,"t":"code","b":[33,0,60],"m":"ld","o":"hl,$3C00"},{"a":43925,"t":"code","b":[34,14,91],"m":"ld","oa":23310,"o":"($5B0E),hl"},{"a":43928,"t":"code","b":[205,156,171],"m":"call","oa":43932,"o":"print_message"},{"a":43931,"t":"code","b":[201],"m":"ret"},{"a":43932,"l":"print_message","c":"Prints message A of the tables at ($FFFB) and ($FFFD) from the start of the line ($5B1A). A message is a length byte then word numbers and control codes; a word is a length byte then characters. Codes: $FF a new line (two lines down in double height), $FE a colour (one byte, two in double height), $FD and $FC turn a gap after each word on and off ($B45A; bit 1 prints a space in it), $FB a position (row and column). $FA in a word is skipped.","t":"code","b":[71],"m":"ld","o":"b,a","x":[43887,43928,51382]},{"a":43933,"t":"code","b":[42,26,91],"m":"ld","oa":23322,"o":"hl,($5B1A)"},{"a":43936,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":43939,"t":"code","b":[42,251,255],"m":"ld","oa":65531,"o":"hl,($FFFB)"},{"a":43942,"t":"code","b":[205,244,171],"m":"call","oa":44020,"o":"find_entry"},{"a":43945,"t":"code","b":[5],"m":"dec","o":"b","x":[43956,44018]},{"a":43946,"t":"code","b":[200],"m":"ret","o":"z"},{"a":43947,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43948,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43949,"t":"code","b":[254,251],"m":"cp","o":"$FB"},{"a":43951,"t":"code","b":[56,5],"m":"jr","oa":43958,"o":"c,$ABB6"},{"a":43953,"t":"code","b":[205,255,171],"m":"call","oa":44031,"o":"text_control"},{"a":43956,"t":"code","b":[24,243],"m":"jr","oa":43945,"o":"$ABA9"},{"a":43958,"t":"code","b":[229],"m":"push","o":"hl","x":[43951]},{"a":43959,"t":"code","b":[197],"m":"push","o":"bc"},{"a":43960,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":43961,"t":"code","b":[42,253,255],"m":"ld","oa":65533,"o":"hl,($FFFD)"},{"a":43964,"t":"code","b":[205,244,171],"m":"call","oa":44020,"o":"find_entry"},{"a":43967,"t":"code","b":[5],"m":"dec","o":"b","x":[43974,43983,43995]},{"a":43968,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":43969,"t":"code","b":[40,26],"m":"jr","oa":43997,"o":"z,end_of_word"},{"a":43971,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":43972,"t":"code","b":[254,250],"m":"cp","o":"$FA"},{"a":43974,"t":"code","b":[40,247],"m":"jr","oa":43967,"o":"z,$ABBF"},{"a":43976,"t":"code","b":[254,251],"m":"cp","o":"$FB"},{"a":43978,"t":"code","b":[56,5],"m":"jr","oa":43985,"o":"c,$ABD1"},{"a":43980,"t":"code","b":[205,255,171],"m":"call","oa":44031,"o":"text_control"},{"a":43983,"t":"code","b":[24,238],"m":"jr","oa":43967,"o":"$ABBF"},{"a":43985,"t":"code","b":[205,83,172],"m":"call","oa":44115,"o":"print_char","x":[43978]},{"a":43988,"t":"code","b":[58,22,91],"m":"ld","oa":23318,"o":"a,($5B16)"},{"a":43991,"t":"code","b":[60],"m":"inc","o":"a"},{"a":43992,"t":"code","b":[50,22,91],"m":"ld","oa":23318,"o":"($5B16),a"},{"a":43995,"t":"code","b":[24,226],"m":"jr","oa":43967,"o":"$ABBF"},{"a":43997,"l":"end_of_word","c":"After a word: the gap, when $B45A asks for one.","t":"code","b":[58,90,180],"m":"ld","oa":46170,"o":"a,(word_gap)","x":[43969]},{"a":44000,"t":"code","b":[183],"m":"or","o":"a"},{"a":44001,"t":"code","b":[40,13],"m":"jr","oa":44016,"o":"z,$ABF0"},{"a":44003,"t":"code","b":[203,79],"m":"bit","o":"1,a"},{"a":44005,"t":"code","b":[40,5],"m":"jr","oa":44012,"o":"z,$ABEC"},{"a":44007,"t":"code","b":[62,32],"m":"ld","o":"a,$20"},{"a":44009,"t":"code","b":[205,83,172],"m":"call","oa":44115,"o":"print_char"},{"a":44012,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16","x":[44005]},{"a":44015,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":44016,"t":"code","b":[193],"m":"pop","o":"bc","x":[44001]},{"a":44017,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":44018,"t":"code","b":[24,181],"m":"jr","oa":43945,"o":"$ABA9"},{"a":44020,"l":"find_entry","c":"HL = entry B of the list at HL, whose entries start with their length (entry 1 is the first); B = its length.","t":"code","b":[22,0],"m":"ld","o":"d,$00","x":[43942,43964]},{"a":44022,"t":"code","b":[5],"m":"dec","o":"b","x":[44027]},{"a":44023,"t":"code","b":[40,4],"m":"jr","oa":44029,"o":"z,$ABFD"},{"a":44025,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":44026,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":44027,"t":"code","b":[24,249],"m":"jr","oa":44022,"o":"$ABF6"},{"a":44029,"t":"code","b":[70],"m":"ld","o":"b,(hl)","x":[44023]},{"a":44030,"t":"code","b":[201],"m":"ret"},{"a":44031,"l":"text_control","c":"Acts on control code A ($FB-$FF) at HL; B counts the bytes it uses.","t":"code","b":[60],"m":"inc","o":"a","x":[43953,43980]},{"a":44032,"t":"code","b":[32,22],"m":"jr","oa":44056,"o":"nz,$AC18"},{"a":44034,"t":"code","b":[237,91,26,91],"m":"ld","oa":23322,"o":"de,($5B1A)"},{"a":44038,"t":"code","b":[28],"m":"inc","o":"e"},{"a":44039,"t":"code","b":[58,20,91],"m":"ld","oa":23316,"o":"a,($5B14)"},{"a":44042,"t":"code","b":[230,8],"m":"and","o":"$08"},{"a":44044,"t":"code","b":[40,1],"m":"jr","oa":44047,"o":"z,$AC0F"},{"a":44046,"t":"code","b":[28],"m":"inc","o":"e"},{"a":44047,"t":"code","b":[237,83,21,91],"m":"ld","oa":23317,"o":"($5B15),de","x":[44044]},{"a":44051,"t":"code","b":[237,83,26,91],"m":"ld","oa":23322,"o":"($5B1A),de"},{"a":44055,"t":"code","b":[201],"m":"ret"},{"a":44056,"t":"code","b":[60],"m":"inc","o":"a","x":[44032]},{"a":44057,"t":"code","b":[32,20],"m":"jr","oa":44079,"o":"nz,$AC2F"},{"a":44059,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44060,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44061,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":44064,"t":"code","b":[58,20,91],"m":"ld","oa":23316,"o":"a,($5B14)"},{"a":44067,"t":"code","b":[230,8],"m":"and","o":"$08"},{"a":44069,"t":"code","b":[40,6],"m":"jr","oa":44077,"o":"z,$AC2D"},{"a":44071,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44072,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44073,"t":"code","b":[50,24,91],"m":"ld","oa":23320,"o":"($5B18),a"},{"a":44076,"t":"code","b":[5],"m":"dec","o":"b"},{"a":44077,"t":"code","b":[5],"m":"dec","o":"b","x":[44069]},{"a":44078,"t":"code","b":[201],"m":"ret"},{"a":44079,"t":"code","b":[60],"m":"inc","o":"a","x":[44057]},{"a":44080,"t":"code","b":[32,6],"m":"jr","oa":44088,"o":"nz,$AC38"},{"a":44082,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":44084,"t":"code","b":[50,90,180],"m":"ld","oa":46170,"o":"(word_gap),a"},{"a":44087,"t":"code","b":[201],"m":"ret"},{"a":44088,"t":"code","b":[60],"m":"inc","o":"a","x":[44080]},{"a":44089,"t":"code","b":[32,5],"m":"jr","oa":44096,"o":"nz,$AC40"},{"a":44091,"t":"code","b":[175],"m":"xor","o":"a"},{"a":44092,"t":"code","b":[50,90,180],"m":"ld","oa":46170,"o":"(word_gap),a"},{"a":44095,"t":"code","b":[201],"m":"ret"},{"a":44096,"t":"code","b":[35],"m":"inc","o":"hl","x":[44089]},{"a":44097,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44098,"t":"code","b":[50,21,91],"m":"ld","oa":23317,"o":"($5B15),a"},{"a":44101,"t":"code","b":[50,26,91],"m":"ld","oa":23322,"o":"($5B1A),a"},{"a":44104,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44105,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44106,"t":"code","b":[50,22,91],"m":"ld","oa":23318,"o":"($5B16),a"},{"a":44109,"t":"code","b":[50,27,91],"m":"ld","oa":23323,"o":"($5B1B),a"},{"a":44112,"t":"code","b":[5],"m":"dec","o":"b"},{"a":44113,"t":"code","b":[5],"m":"dec","o":"b"},{"a":44114,"t":"code","b":[201],"m":"ret"},{"a":44115,"l":"print_char","c":"Prints character A at row $5B15, column $5B16, if the column is below 32: single height ($AF91) or double ($AFE2), by bit 3 of $5B14.","t":"code","b":[245],"m":"push","o":"af","x":[30981,31017,43985,44009]},{"a":44116,"t":"code","b":[58,22,91],"m":"ld","oa":23318,"o":"a,($5B16)"},{"a":44119,"t":"code","b":[254,32],"m":"cp","o":"$20"},{"a":44121,"t":"code","b":[48,19],"m":"jr","oa":44142,"o":"nc,$AC6E"},{"a":44123,"t":"code","b":[241],"m":"pop","o":"af"},{"a":44124,"t":"code","b":[229],"m":"push","o":"hl"},{"a":44125,"t":"code","b":[33,20,91],"m":"ld","o":"hl,$5B14"},{"a":44128,"t":"code","b":[203,94],"m":"bit","o":"3,(hl)"},{"a":44130,"t":"code","b":[32,5],"m":"jr","oa":44137,"o":"nz,$AC69"},{"a":44132,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small"},{"a":44135,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":44136,"t":"code","b":[201],"m":"ret"},{"a":44137,"t":"code","b":[205,226,175],"m":"call","oa":45026,"o":"print_char_big","x":[44130]},{"a":44140,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":44141,"t":"code","b":[201],"m":"ret"},{"a":44142,"t":"code","b":[241],"m":"pop","o":"af","x":[44121]},{"a":44143,"t":"code","b":[201],"m":"ret"},{"a":44144,"l":"pixel_line_address","c":"HL = the screen address of pixel line E, character column D.","t":"code","b":[123],"m":"ld","o":"a,e","x":[44167,44176,44185]},{"a":44145,"t":"code","b":[230,192],"m":"and","o":"$C0"},{"a":44147,"t":"code","b":[31],"m":"rra"},{"a":44148,"t":"code","b":[55],"m":"scf"},{"a":44149,"t":"code","b":[31],"m":"rra"},{"a":44150,"t":"code","b":[15],"m":"rrca"},{"a":44151,"t":"code","b":[171],"m":"xor","o":"e"},{"a":44152,"t":"code","b":[230,248],"m":"and","o":"$F8"},{"a":44154,"t":"code","b":[171],"m":"xor","o":"e"},{"a":44155,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":44156,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":44157,"t":"code","b":[15],"m":"rrca"},{"a":44158,"t":"code","b":[15],"m":"rrca"},{"a":44159,"t":"code","b":[171],"m":"xor","o":"e"},{"a":44160,"t":"code","b":[230,199],"m":"and","o":"$C7"},{"a":44162,"t":"code","b":[171],"m":"xor","o":"e"},{"a":44163,"t":"code","b":[7],"m":"rlca"},{"a":44164,"t":"code","b":[7],"m":"rlca"},{"a":44165,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":44166,"t":"code","b":[201],"m":"ret"},{"a":44167,"l":"bar_edge","c":"Draws one pixel line of a bar's outline (the two side lines) at line E, column D.","t":"code","b":[205,112,172],"m":"call","oa":44144,"o":"pixel_line_address","x":[44209]},{"a":44170,"t":"code","b":[54,16],"m":"ld","o":"(hl),$10"},{"a":44172,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44173,"t":"code","b":[54,8],"m":"ld","o":"(hl),$08"},{"a":44175,"t":"code","b":[201],"m":"ret"},{"a":44176,"l":"bar_top","c":"Draws the top of a bar's outline at line E, column D.","t":"code","b":[205,112,172],"m":"call","oa":44144,"o":"pixel_line_address","x":[44220]},{"a":44179,"t":"code","b":[54,31],"m":"ld","o":"(hl),$1F"},{"a":44181,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44182,"t":"code","b":[54,248],"m":"ld","o":"(hl),$F8"},{"a":44184,"t":"code","b":[201],"m":"ret"},{"a":44185,"l":"bar_fill_line","c":"Inverts the inside of one pixel line of a bar at line E, column D.","t":"code","b":[205,112,172],"m":"call","oa":44144,"o":"pixel_line_address","x":[43828,43846]},{"a":44188,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44189,"t":"code","b":[238,15],"m":"xor","o":"$0F"},{"a":44191,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":44192,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44193,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44194,"t":"code","b":[238,240],"m":"xor","o":"$F0"},{"a":44196,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":44197,"t":"code","b":[201],"m":"ret"},{"a":44198,"l":"draw_bar_outlines","c":"Draws the outlines of the five bars, upward from pixel line $97 in columns $16, $18 ... $1E, each as tall as its most value ($D200 on: action points, stamina, constitution, combat, defence), no higher than line $39.","t":"code","b":[17,151,22],"m":"ld","o":"de,$1697","x":[36825]},{"a":44201,"t":"code","b":[33,0,210],"m":"ld","o":"hl,$D200"},{"a":44204,"t":"code","b":[6,5],"m":"ld","o":"b,$05"},{"a":44206,"t":"code","b":[229],"m":"push","o":"hl","x":[44230]},{"a":44207,"t":"code","b":[197],"m":"push","o":"bc"},{"a":44208,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":44209,"t":"code","b":[205,135,172],"m":"call","oa":44167,"o":"bar_edge","x":[44218]},{"a":44212,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":44213,"t":"code","b":[254,57],"m":"cp","o":"$39"},{"a":44215,"t":"code","b":[40,6],"m":"jr","oa":44223,"o":"z,$ACBF"},{"a":44217,"t":"code","b":[29],"m":"dec","o":"e"},{"a":44218,"t":"code","b":[16,245],"m":"djnz","oa":44209,"o":"$ACB1"},{"a":44220,"t":"code","b":[205,144,172],"m":"call","oa":44176,"o":"bar_top"},{"a":44223,"t":"code","b":[193],"m":"pop","o":"bc","x":[44215]},{"a":44224,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":44225,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44226,"t":"code","b":[20],"m":"inc","o":"d"},{"a":44227,"t":"code","b":[20],"m":"inc","o":"d"},{"a":44228,"t":"code","b":[30,151],"m":"ld","o":"e,$97"},{"a":44230,"t":"code","b":[16,230],"m":"djnz","oa":44206,"o":"$ACAE"},{"a":44232,"t":"code","b":[201],"m":"ret"},{"a":44233,"l":"plot","c":"Plots the pixel at line $FF33, column $FF34: set, cleared or flipped as $FF32 is 0, 1 or 2; when $FF61 is not $FF its character cell takes that attribute.","t":"code","b":[237,91,51,255],"m":"ld","oa":65331,"o":"de,($FF33)","x":[32114,32122,32145,32153,44354]},{"a":44237,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":44238,"t":"code","b":[230,192],"m":"and","o":"$C0"},{"a":44240,"t":"code","b":[31],"m":"rra"},{"a":44241,"t":"code","b":[55],"m":"scf"},{"a":44242,"t":"code","b":[31],"m":"rra"},{"a":44243,"t":"code","b":[15],"m":"rrca"},{"a":44244,"t":"code","b":[171],"m":"xor","o":"e"},{"a":44245,"t":"code","b":[230,248],"m":"and","o":"$F8"},{"a":44247,"t":"code","b":[171],"m":"xor","o":"e"},{"a":44248,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":44249,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":44250,"t":"code","b":[7],"m":"rlca"},{"a":44251,"t":"code","b":[7],"m":"rlca"},{"a":44252,"t":"code","b":[7],"m":"rlca"},{"a":44253,"t":"code","b":[171],"m":"xor","o":"e"},{"a":44254,"t":"code","b":[230,199],"m":"and","o":"$C7"},{"a":44256,"t":"code","b":[171],"m":"xor","o":"e"},{"a":44257,"t":"code","b":[7],"m":"rlca"},{"a":44258,"t":"code","b":[7],"m":"rlca"},{"a":44259,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":44260,"t":"code","b":[58,97,255],"m":"ld","oa":65377,"o":"a,($FF61)"},{"a":44263,"t":"code","b":[60],"m":"inc","o":"a"},{"a":44264,"t":"code","b":[40,15],"m":"jr","oa":44281,"o":"z,$ACF9"},{"a":44266,"t":"code","b":[229],"m":"push","o":"hl"},{"a":44267,"t":"code","b":[124],"m":"ld","o":"a,h"},{"a":44268,"t":"code","b":[15],"m":"rrca"},{"a":44269,"t":"code","b":[15],"m":"rrca"},{"a":44270,"t":"code","b":[15],"m":"rrca"},{"a":44271,"t":"code","b":[230,3],"m":"and","o":"$03"},{"a":44273,"t":"code","b":[246,88],"m":"or","o":"$58"},{"a":44275,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":44276,"t":"code","b":[58,97,255],"m":"ld","oa":65377,"o":"a,($FF61)"},{"a":44279,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":44280,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":44281,"t":"code","b":[122],"m":"ld","o":"a,d","x":[44264]},{"a":44282,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":44284,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":44285,"t":"code","b":[4],"m":"inc","o":"b"},{"a":44286,"t":"code","b":[175],"m":"xor","o":"a"},{"a":44287,"t":"code","b":[55],"m":"scf"},{"a":44288,"t":"code","b":[31],"m":"rra","x":[44289]},{"a":44289,"t":"code","b":[16,253],"m":"djnz","oa":44288,"o":"$AD00"},{"a":44291,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":44292,"t":"code","b":[58,50,255],"m":"ld","oa":65330,"o":"a,($FF32)"},{"a":44295,"t":"code","b":[254,1],"m":"cp","o":"$01"},{"a":44297,"t":"code","b":[40,8],"m":"jr","oa":44307,"o":"z,$AD13"},{"a":44299,"t":"code","b":[254,2],"m":"cp","o":"$02"},{"a":44301,"t":"code","b":[40,10],"m":"jr","oa":44313,"o":"z,$AD19"},{"a":44303,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":44304,"t":"code","b":[182],"m":"or","o":"(hl)"},{"a":44305,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":44306,"t":"code","b":[201],"m":"ret"},{"a":44307,"t":"code","b":[120],"m":"ld","o":"a,b","x":[44297]},{"a":44308,"t":"code","b":[238,255],"m":"xor","o":"$FF"},{"a":44310,"t":"code","b":[166],"m":"and","o":"(hl)"},{"a":44311,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":44312,"t":"code","b":[201],"m":"ret"},{"a":44313,"t":"code","b":[120],"m":"ld","o":"a,b","x":[44301]},{"a":44314,"t":"code","b":[174],"m":"xor","o":"(hl)"},{"a":44315,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":44316,"t":"code","b":[201],"m":"ret"},{"a":44317,"l":"draw_shape","c":"Plots shape $FF5D (from shapes) at the map window's pixel $FF5B, $FF5C, every point inside the window (below $A8).","t":"code","b":[58,93,255],"m":"ld","oa":65373,"o":"a,($FF5D)","x":[44470,44493,44536]},{"a":44320,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":44321,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":44322,"t":"code","b":[33,78,173],"m":"ld","o":"hl,$AD4E"},{"a":44325,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":44327,"t":"code","b":[205,156,120],"m":"call","oa":30876,"o":"read_table_word"},{"a":44330,"t":"code","b":[229],"m":"push","o":"hl","x":[44364]},{"a":44331,"t":"code","b":[58,91,255],"m":"ld","oa":65371,"o":"a,($FF5B)"},{"a":44334,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":44335,"t":"code","b":[254,168],"m":"cp","o":"$A8"},{"a":44337,"t":"code","b":[48,18],"m":"jr","oa":44357,"o":"nc,$AD45"},{"a":44339,"t":"code","b":[50,51,255],"m":"ld","oa":65331,"o":"($FF33),a"},{"a":44342,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44343,"t":"code","b":[58,92,255],"m":"ld","oa":65372,"o":"a,($FF5C)"},{"a":44346,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":44347,"t":"code","b":[254,168],"m":"cp","o":"$A8"},{"a":44349,"t":"code","b":[48,6],"m":"jr","oa":44357,"o":"nc,$AD45"},{"a":44351,"t":"code","b":[50,52,255],"m":"ld","oa":65332,"o":"($FF34),a"},{"a":44354,"t":"code","b":[205,201,172],"m":"call","oa":44233,"o":"plot"},{"a":44357,"t":"code","b":[225],"m":"pop","o":"hl","x":[44337,44349]},{"a":44358,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44359,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44360,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44361,"t":"code","b":[254,127],"m":"cp","o":"$7F"},{"a":44363,"t":"code","b":[200],"m":"ret","o":"z"},{"a":44364,"t":"code","b":[24,220],"m":"jr","oa":44330,"o":"$AD2A"},{"a":44366,"l":"shapes","c":"The shapes of a flying missile: offsets (line, column) ending with $7F.","t":"word","b":[82,173,93,173],"d":[44370,44381]},{"a":44370,"l":"shape_small","c":"A cross of five pixels.","t":"byte","b":[0,0,1,0,255,0,0,1]},{"a":44378,"t":"byte","b":[0,255,127]},{"a":44381,"l":"shape_large","c":"A star of thirteen pixels.","t":"byte","b":[0,0,2,0,254,0,0,2]},{"a":44389,"t":"byte","b":[0,254,3,3,253,253,3,253]},{"a":44397,"t":"byte","b":[253,3,4,0,252,0,0,4]},{"a":44405,"t":"byte","b":[0,252,127]},{"a":44408,"l":"tail_next","c":"Where missile_step writes in the tail.","t":"word","b":[101,255],"d":[65381],"x":[44413,44433,44452,44463,44473,44502,44516]},{"a":44410,"l":"clear_tail","c":"Empties the missile's tail, $FF5F bytes at $FF65 ending with $FE.","t":"code","b":[33,101,255],"m":"ld","o":"hl,$FF65","x":[44547,44648]},{"a":44413,"t":"code","b":[34,120,173],"m":"ld","oa":44408,"o":"(tail_next),hl"},{"a":44416,"t":"code","b":[17,102,255],"m":"ld","o":"de,$FF66"},{"a":44419,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":44421,"t":"code","b":[58,95,255],"m":"ld","oa":65375,"o":"a,($FF5F)"},{"a":44424,"t":"code","b":[6,0],"m":"ld","o":"b,$00"},{"a":44426,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":44427,"t":"code","b":[237,176],"m":"ldir"},{"a":44429,"t":"code","b":[62,254],"m":"ld","o":"a,$FE"},{"a":44431,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":44432,"t":"code","b":[201],"m":"ret"},{"a":44433,"l":"missile_step","c":"Draws the missile at its new place ($FF3B, $FF3C), keeps that in the tail and wipes it at the oldest place in the tail.","t":"code","b":[42,120,173],"m":"ld","oa":44408,"o":"hl,(tail_next)","x":[44721]},{"a":44436,"t":"code","b":[58,59,255],"m":"ld","oa":65339,"o":"a,($FF3B)"},{"a":44439,"t":"code","b":[50,91,255],"m":"ld","oa":65371,"o":"($FF5B),a"},{"a":44442,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":44443,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44444,"t":"code","b":[58,60,255],"m":"ld","oa":65340,"o":"a,($FF3C)"},{"a":44447,"t":"code","b":[50,92,255],"m":"ld","oa":65372,"o":"($FF5C),a"},{"a":44450,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":44451,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44452,"t":"code","b":[34,120,173],"m":"ld","oa":44408,"o":"(tail_next),hl"},{"a":44455,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44456,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":44458,"t":"code","b":[32,6],"m":"jr","oa":44466,"o":"nz,$ADB2"},{"a":44460,"t":"code","b":[33,101,255],"m":"ld","o":"hl,$FF65"},{"a":44463,"t":"code","b":[34,120,173],"m":"ld","oa":44408,"o":"(tail_next),hl"},{"a":44466,"t":"code","b":[175],"m":"xor","o":"a","x":[44458]},{"a":44467,"t":"code","b":[50,50,255],"m":"ld","oa":65330,"o":"($FF32),a"},{"a":44470,"t":"code","b":[205,29,173],"m":"call","oa":44317,"o":"draw_shape"},{"a":44473,"t":"code","b":[42,120,173],"m":"ld","oa":44408,"o":"hl,(tail_next)"},{"a":44476,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44477,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":44479,"t":"code","b":[200],"m":"ret","o":"z"},{"a":44480,"t":"code","b":[50,91,255],"m":"ld","oa":65371,"o":"($FF5B),a"},{"a":44483,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44484,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44485,"t":"code","b":[50,92,255],"m":"ld","oa":65372,"o":"($FF5C),a"},{"a":44488,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":44490,"t":"code","b":[50,50,255],"m":"ld","oa":65330,"o":"($FF32),a"},{"a":44493,"t":"code","b":[205,29,173],"m":"call","oa":44317,"o":"draw_shape"},{"a":44496,"t":"code","b":[201],"m":"ret"},{"a":44497,"l":"wipe_tail","c":"Wipes the missile's tail place by place, with a sound step each.","t":"code","b":[58,95,255],"m":"ld","oa":65375,"o":"a,($FF5F)","x":[44731]},{"a":44500,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":44501,"t":"code","b":[197],"m":"push","o":"bc","x":[44543]},{"a":44502,"t":"code","b":[42,120,173],"m":"ld","oa":44408,"o":"hl,(tail_next)"},{"a":44505,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44506,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44507,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44508,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":44510,"t":"code","b":[32,4],"m":"jr","oa":44516,"o":"nz,$ADE4"},{"a":44512,"t":"code","b":[33,101,255],"m":"ld","o":"hl,$FF65"},{"a":44515,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44516,"t":"code","b":[34,120,173],"m":"ld","oa":44408,"o":"(tail_next),hl","x":[44510]},{"a":44519,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":44521,"t":"code","b":[40,19],"m":"jr","oa":44542,"o":"z,$ADFE"},{"a":44523,"t":"code","b":[50,91,255],"m":"ld","oa":65371,"o":"($FF5B),a"},{"a":44526,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44527,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":44528,"t":"code","b":[50,92,255],"m":"ld","oa":65372,"o":"($FF5C),a"},{"a":44531,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":44533,"t":"code","b":[50,50,255],"m":"ld","oa":65330,"o":"($FF32),a"},{"a":44536,"t":"code","b":[205,29,173],"m":"call","oa":44317,"o":"draw_shape"},{"a":44539,"t":"code","b":[205,86,200],"m":"call","oa":51286,"o":"play_sound"},{"a":44542,"t":"code","b":[193],"m":"pop","o":"bc","x":[44521]},{"a":44543,"t":"code","b":[16,212],"m":"djnz","oa":44501,"o":"$ADD5"},{"a":44545,"t":"code","b":[201],"m":"ret"},{"a":44546,"l":"draw_missile","c":"Draws something flying from the selected creature ($5B55) to the cursor's square ($D0D3), a pixel line at a time ($B0C9, after $B045 has set the line up) from the middle of the map window ($53, $53), $FF5E pixels a frame. Leaving the window moves the view seven squares that way and redraws the map. Every 24 pixels the square under it is checked against the target, and on reaching it the tail is wiped and the hit drawn.","t":"code","b":[243],"m":"di","x":[31313,31638,34453,34931,35027]},{"a":44547,"t":"code","b":[205,122,173],"m":"call","oa":44410,"o":"clear_tail"},{"a":44550,"t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)"},{"a":44553,"t":"code","b":[34,59,255],"m":"ld","oa":65339,"o":"($FF3B),hl"},{"a":44556,"t":"code","b":[237,91,211,208],"m":"ld","oa":53459,"o":"de,($D0D3)"},{"a":44560,"t":"code","b":[237,83,61,255],"m":"ld","oa":65341,"o":"($FF3D),de"},{"a":44564,"t":"code","b":[124],"m":"ld","o":"a,h"},{"a":44565,"t":"code","b":[186],"m":"cp","o":"d"},{"a":44566,"t":"code","b":[32,5],"m":"jr","oa":44573,"o":"nz,$AE1D"},{"a":44568,"t":"code","b":[125],"m":"ld","o":"a,l"},{"a":44569,"t":"code","b":[187],"m":"cp","o":"e"},{"a":44570,"t":"code","b":[202,194,174],"m":"jp","oa":44738,"o":"z,draw_hit"},{"a":44573,"t":"code","b":[205,69,176],"m":"call","oa":45125,"o":"line_setup","x":[44566]},{"a":44576,"t":"code","b":[33,83,83],"m":"ld","o":"hl,$5353"},{"a":44579,"t":"code","b":[34,59,255],"m":"ld","oa":65339,"o":"($FF3B),hl"},{"a":44582,"t":"code","b":[205,123,144],"m":"call","oa":36987,"o":"centre"},{"a":44585,"t":"code","b":[175],"m":"xor","o":"a"},{"a":44586,"t":"code","b":[50,208,208],"m":"ld","oa":53456,"o":"($D0D0),a"},{"a":44589,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":44592,"t":"code","b":[62,24],"m":"ld","o":"a,$18"},{"a":44594,"t":"code","b":[50,247,255],"m":"ld","oa":65527,"o":"($FFF7),a"},{"a":44597,"t":"code","b":[58,94,255],"m":"ld","oa":65374,"o":"a,($FF5E)","x":[44727]},{"a":44600,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":44601,"t":"code","b":[197],"m":"push","o":"bc","x":[44719]},{"a":44602,"t":"code","b":[175],"m":"xor","o":"a"},{"a":44603,"t":"code","b":[50,100,255],"m":"ld","oa":65380,"o":"($FF64),a"},{"a":44606,"t":"code","b":[205,201,176],"m":"call","oa":45257,"o":"line_step_pixels"},{"a":44609,"t":"code","b":[58,59,255],"m":"ld","oa":65339,"o":"a,($FF3B)"},{"a":44612,"t":"code","b":[254,168],"m":"cp","o":"$A8"},{"a":44614,"t":"code","b":[204,7,175],"m":"call","oa":44807,"o":"z,scroll_down"},{"a":44617,"t":"code","b":[58,59,255],"m":"ld","oa":65339,"o":"a,($FF3B)"},{"a":44620,"t":"code","b":[60],"m":"inc","o":"a"},{"a":44621,"t":"code","b":[204,31,175],"m":"call","oa":44831,"o":"z,scroll_up"},{"a":44624,"t":"code","b":[58,60,255],"m":"ld","oa":65340,"o":"a,($FF3C)"},{"a":44627,"t":"code","b":[254,168],"m":"cp","o":"$A8"},{"a":44629,"t":"code","b":[204,52,175],"m":"call","oa":44852,"o":"z,scroll_right"},{"a":44632,"t":"code","b":[58,60,255],"m":"ld","oa":65340,"o":"a,($FF3C)"},{"a":44635,"t":"code","b":[60],"m":"inc","o":"a"},{"a":44636,"t":"code","b":[204,76,175],"m":"call","oa":44876,"o":"z,scroll_left"},{"a":44639,"t":"code","b":[58,100,255],"m":"ld","oa":65380,"o":"a,($FF64)"},{"a":44642,"t":"code","b":[183],"m":"or","o":"a"},{"a":44643,"t":"code","b":[40,11],"m":"jr","oa":44656,"o":"z,$AE70"},{"a":44645,"t":"code","b":[205,76,169],"m":"call","oa":43340,"o":"draw_map"},{"a":44648,"t":"code","b":[205,122,173],"m":"call","oa":44410,"o":"clear_tail"},{"a":44651,"t":"code","b":[62,12],"m":"ld","o":"a,$0C"},{"a":44653,"t":"code","b":[50,247,255],"m":"ld","oa":65527,"o":"($FFF7),a"},{"a":44656,"t":"code","b":[58,247,255],"m":"ld","oa":65527,"o":"a,($FFF7)","x":[44643]},{"a":44659,"t":"code","b":[61],"m":"dec","o":"a"},{"a":44660,"t":"code","b":[50,247,255],"m":"ld","oa":65527,"o":"($FFF7),a"},{"a":44663,"t":"code","b":[32,53],"m":"jr","oa":44718,"o":"nz,$AEAE"},{"a":44665,"t":"code","b":[62,24],"m":"ld","o":"a,$18"},{"a":44667,"t":"code","b":[50,247,255],"m":"ld","oa":65527,"o":"($FFF7),a"},{"a":44670,"t":"code","b":[58,59,255],"m":"ld","oa":65339,"o":"a,($FF3B)"},{"a":44673,"t":"code","b":[6,24],"m":"ld","o":"b,$18"},{"a":44675,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":44678,"t":"code","b":[33,200,208],"m":"ld","o":"hl,$D0C8"},{"a":44681,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":44682,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":44684,"t":"code","b":[56,2],"m":"jr","oa":44688,"o":"c,$AE90"},{"a":44686,"t":"code","b":[214,36],"m":"sub","o":"$24"},{"a":44688,"t":"code","b":[33,61,255],"m":"ld","o":"hl,$FF3D","x":[44684]},{"a":44691,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":44692,"t":"code","b":[32,24],"m":"jr","oa":44718,"o":"nz,$AEAE"},{"a":44694,"t":"code","b":[58,60,255],"m":"ld","oa":65340,"o":"a,($FF3C)"},{"a":44697,"t":"code","b":[6,24],"m":"ld","o":"b,$18"},{"a":44699,"t":"code","b":[205,183,148],"m":"call","oa":38071,"o":"divide"},{"a":44702,"t":"code","b":[33,201,208],"m":"ld","o":"hl,$D0C9"},{"a":44705,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":44706,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":44708,"t":"code","b":[56,2],"m":"jr","oa":44712,"o":"c,$AEA8"},{"a":44710,"t":"code","b":[214,36],"m":"sub","o":"$24"},{"a":44712,"t":"code","b":[33,62,255],"m":"ld","o":"hl,$FF3E","x":[44708]},{"a":44715,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":44716,"t":"code","b":[40,12],"m":"jr","oa":44730,"o":"z,$AEBA"},{"a":44718,"t":"code","b":[193],"m":"pop","o":"bc","x":[44663,44692]},{"a":44719,"t":"code","b":[16,136],"m":"djnz","oa":44601,"o":"$AE39"},{"a":44721,"t":"code","b":[205,145,173],"m":"call","oa":44433,"o":"missile_step"},{"a":44724,"t":"code","b":[205,86,200],"m":"call","oa":51286,"o":"play_sound"},{"a":44727,"t":"code","b":[195,53,174],"m":"jp","oa":44597,"o":"$AE35"},{"a":44730,"t":"code","b":[193],"m":"pop","o":"bc","x":[44716]},{"a":44731,"t":"code","b":[205,209,173],"m":"call","oa":44497,"o":"wipe_tail"},{"a":44734,"t":"code","b":[237,91,61,255],"m":"ld","oa":65341,"o":"de,($FF3D)"},{"a":44738,"l":"draw_hit","c":"Draws the hit on square E, D: the burst, graphics $53 to $55 of the scenario's graphics table in colour set 0, from character set 1 ($BE3C), at the square's place in the window, with a step of sound 8 after each; then character set 0 ($B646) is put back.","t":"code","b":[123],"m":"ld","o":"a,e","x":[26787,34356,35435,44570]},{"a":44739,"t":"code","b":[33,200,208],"m":"ld","o":"hl,$D0C8"},{"a":44742,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":44743,"t":"code","b":[48,2],"m":"jr","oa":44747,"o":"nc,$AECB"},{"a":44745,"t":"code","b":[198,36],"m":"add","o":"a,$24"},{"a":44747,"t":"code","b":[71],"m":"ld","o":"b,a","x":[44743]},{"a":44748,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":44749,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":44750,"t":"code","b":[50,213,208],"m":"ld","oa":53461,"o":"($D0D5),a"},{"a":44753,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":44754,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44755,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":44756,"t":"code","b":[48,2],"m":"jr","oa":44760,"o":"nc,$AED8"},{"a":44758,"t":"code","b":[198,36],"m":"add","o":"a,$24"},{"a":44760,"t":"code","b":[71],"m":"ld","o":"b,a","x":[44756]},{"a":44761,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":44762,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":44763,"t":"code","b":[50,214,208],"m":"ld","oa":53462,"o":"($D0D6),a"},{"a":44766,"t":"code","b":[33,60,190],"m":"ld","o":"hl,$BE3C"},{"a":44769,"t":"code","b":[34,61,208],"m":"ld","oa":53309,"o":"($D03D),hl"},{"a":44772,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":44774,"t":"code","b":[205,58,200],"m":"call","oa":51258,"o":"set_sound"},{"a":44777,"t":"code","b":[62,83],"m":"ld","o":"a,$53"},{"a":44779,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":44781,"t":"code","b":[197],"m":"push","o":"bc","x":[44794]},{"a":44782,"t":"code","b":[245],"m":"push","o":"af"},{"a":44783,"t":"code","b":[6,0],"m":"ld","o":"b,$00"},{"a":44785,"t":"code","b":[205,94,167],"m":"call","oa":42846,"o":"draw_block_at"},{"a":44788,"t":"code","b":[205,86,200],"m":"call","oa":51286,"o":"play_sound"},{"a":44791,"t":"code","b":[241],"m":"pop","o":"af"},{"a":44792,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":44793,"t":"code","b":[60],"m":"inc","o":"a"},{"a":44794,"t":"code","b":[16,241],"m":"djnz","oa":44781,"o":"$AEED"},{"a":44796,"t":"code","b":[33,70,182],"m":"ld","o":"hl,$B646"},{"a":44799,"t":"code","b":[34,61,208],"m":"ld","oa":53309,"o":"($D03D),hl"},{"a":44802,"t":"code","b":[175],"m":"xor","o":"a"},{"a":44803,"t":"code","b":[50,60,208],"m":"ld","oa":53308,"o":"($D03C),a"},{"a":44806,"t":"code","b":[201],"m":"ret"},{"a":44807,"l":"scroll_down","c":"The missile has left the map window at the bottom: the window moves seven rows down the map (wrapping at 36) and the missile to its top line; $FF64 says the view moved.","t":"code","b":[175],"m":"xor","o":"a","x":[44614]},{"a":44808,"t":"code","b":[50,59,255],"m":"ld","oa":65339,"o":"($FF3B),a"},{"a":44811,"t":"code","b":[58,200,208],"m":"ld","oa":53448,"o":"a,($D0C8)"},{"a":44814,"t":"code","b":[198,7],"m":"add","o":"a,$07"},{"a":44816,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":44818,"t":"code","b":[56,2],"m":"jr","oa":44822,"o":"c,$AF16"},{"a":44820,"t":"code","b":[214,36],"m":"sub","o":"$24"},{"a":44822,"t":"code","b":[50,200,208],"m":"ld","oa":53448,"o":"($D0C8),a","x":[44818]},{"a":44825,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":44827,"t":"code","b":[50,100,255],"m":"ld","oa":65380,"o":"($FF64),a"},{"a":44830,"t":"code","b":[201],"m":"ret"},{"a":44831,"l":"scroll_up","c":"The missile has left the window at the top: the window moves seven rows up and the missile to its bottom line ($A7).","t":"code","b":[62,167],"m":"ld","o":"a,$A7","x":[44621]},{"a":44833,"t":"code","b":[50,100,255],"m":"ld","oa":65380,"o":"($FF64),a"},{"a":44836,"t":"code","b":[50,59,255],"m":"ld","oa":65339,"o":"($FF3B),a"},{"a":44839,"t":"code","b":[58,200,208],"m":"ld","oa":53448,"o":"a,($D0C8)"},{"a":44842,"t":"code","b":[214,7],"m":"sub","o":"$07"},{"a":44844,"t":"code","b":[48,2],"m":"jr","oa":44848,"o":"nc,$AF30"},{"a":44846,"t":"code","b":[198,36],"m":"add","o":"a,$24"},{"a":44848,"t":"code","b":[50,200,208],"m":"ld","oa":53448,"o":"($D0C8),a","x":[44844]},{"a":44851,"t":"code","b":[201],"m":"ret"},{"a":44852,"l":"scroll_right","c":"The missile has left the window at the right: the window moves seven columns right and the missile to its left edge.","t":"code","b":[175],"m":"xor","o":"a","x":[44629]},{"a":44853,"t":"code","b":[50,60,255],"m":"ld","oa":65340,"o":"($FF3C),a"},{"a":44856,"t":"code","b":[58,201,208],"m":"ld","oa":53449,"o":"a,($D0C9)"},{"a":44859,"t":"code","b":[198,7],"m":"add","o":"a,$07"},{"a":44861,"t":"code","b":[254,36],"m":"cp","o":"$24"},{"a":44863,"t":"code","b":[56,2],"m":"jr","oa":44867,"o":"c,$AF43"},{"a":44865,"t":"code","b":[214,36],"m":"sub","o":"$24"},{"a":44867,"t":"code","b":[50,201,208],"m":"ld","oa":53449,"o":"($D0C9),a","x":[44863]},{"a":44870,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":44872,"t":"code","b":[50,100,255],"m":"ld","oa":65380,"o":"($FF64),a"},{"a":44875,"t":"code","b":[201],"m":"ret"},{"a":44876,"l":"scroll_left","c":"The missile has left the window at the left: the window moves seven columns left and the missile to its right edge ($A7).","t":"code","b":[62,167],"m":"ld","o":"a,$A7","x":[44636]},{"a":44878,"t":"code","b":[50,100,255],"m":"ld","oa":65380,"o":"($FF64),a"},{"a":44881,"t":"code","b":[50,60,255],"m":"ld","oa":65340,"o":"($FF3C),a"},{"a":44884,"t":"code","b":[58,201,208],"m":"ld","oa":53449,"o":"a,($D0C9)"},{"a":44887,"t":"code","b":[214,7],"m":"sub","o":"$07"},{"a":44889,"t":"code","b":[48,2],"m":"jr","oa":44893,"o":"nc,$AF5D"},{"a":44891,"t":"code","b":[198,36],"m":"add","o":"a,$24"},{"a":44893,"t":"code","b":[50,201,208],"m":"ld","oa":53449,"o":"($D0C9),a","x":[44889]},{"a":44896,"t":"code","b":[201],"m":"ret"},{"a":44897,"l":"screen_rows","c":"The screen address of each of the 24 character rows.","t":"word","b":[0,64,32,64,64,64,96,64],"d":[16384,16416,16448,16480]},{"a":44905,"t":"word","b":[128,64,160,64,192,64,224,64],"d":[16512,16544,16576,16608]},{"a":44913,"t":"word","b":[0,72,32,72,64,72,96,72],"d":[18432,18464,18496,18528]},{"a":44921,"t":"word","b":[128,72,160,72,192,72,224,72],"d":[18560,18592,18624,18656]},{"a":44929,"t":"word","b":[0,80,32,80,64,80,96,80],"d":[20480,20512,20544,20576]},{"a":44937,"t":"word","b":[128,80,160,80,192,80,224,80],"d":[20608,20640,20672,20704]},{"a":44945,"l":"print_char_small","c":"Prints character A of the font at ($5B0E) at row $5B15, column $5B16 in attribute $5B17: as it is when bit 0 of $5B14 is set (the engine's own font), otherwise in bold (each line ored with itself moved right by a pixel).","t":"code","b":[197],"m":"push","o":"bc","x":[25737,31996,32087,44132,51620,51631,51642,51659,51687,51698,51733,51744,52258]},{"a":44946,"t":"code","b":[229],"m":"push","o":"hl"},{"a":44947,"t":"code","b":[213],"m":"push","o":"de"},{"a":44948,"t":"code","b":[245],"m":"push","o":"af"},{"a":44949,"t":"code","b":[237,91,21,91],"m":"ld","oa":23317,"o":"de,($5B15)"},{"a":44953,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":44954,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":44956,"t":"code","b":[33,97,175],"m":"ld","o":"hl,$AF61"},{"a":44959,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":44960,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":44961,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":44962,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44963,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":44964,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":44965,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":44967,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":44968,"t":"code","b":[241],"m":"pop","o":"af"},{"a":44969,"t":"code","b":[229],"m":"push","o":"hl"},{"a":44970,"t":"code","b":[237,91,14,91],"m":"ld","oa":23310,"o":"de,($5B0E)"},{"a":44974,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":44976,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":44977,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":44978,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":44979,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":44980,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":44981,"t":"code","b":[209],"m":"pop","o":"de"},{"a":44982,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":44984,"t":"code","b":[58,20,91],"m":"ld","oa":23316,"o":"a,($5B14)"},{"a":44987,"t":"code","b":[230,1],"m":"and","o":"$01"},{"a":44989,"t":"code","b":[32,10],"m":"jr","oa":45001,"o":"nz,$AFC9"},{"a":44991,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[44997]},{"a":44992,"t":"code","b":[15],"m":"rrca"},{"a":44993,"t":"code","b":[182],"m":"or","o":"(hl)"},{"a":44994,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":44995,"t":"code","b":[20],"m":"inc","o":"d"},{"a":44996,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":44997,"t":"code","b":[16,248],"m":"djnz","oa":44991,"o":"$AFBF"},{"a":44999,"t":"code","b":[24,6],"m":"jr","oa":45007,"o":"$AFCF"},{"a":45001,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[44989,45005]},{"a":45002,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":45003,"t":"code","b":[20],"m":"inc","o":"d"},{"a":45004,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":45005,"t":"code","b":[16,250],"m":"djnz","oa":45001,"o":"$AFC9"},{"a":45007,"t":"code","b":[235],"m":"ex","o":"de,hl","x":[44999]},{"a":45008,"t":"code","b":[37],"m":"dec","o":"h"},{"a":45009,"t":"code","b":[124],"m":"ld","o":"a,h"},{"a":45010,"t":"code","b":[15],"m":"rrca"},{"a":45011,"t":"code","b":[15],"m":"rrca"},{"a":45012,"t":"code","b":[15],"m":"rrca"},{"a":45013,"t":"code","b":[230,3],"m":"and","o":"$03"},{"a":45015,"t":"code","b":[246,88],"m":"or","o":"$58"},{"a":45017,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":45018,"t":"code","b":[58,23,91],"m":"ld","oa":23319,"o":"a,($5B17)"},{"a":45021,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":45022,"t":"code","b":[209],"m":"pop","o":"de"},{"a":45023,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":45024,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":45025,"t":"code","b":[201],"m":"ret"},{"a":45026,"l":"print_char_big","c":"Prints character A in double height and bold at rows $5B15 and $5B15 + 1, column $5B16: the top half in attribute $5B17, the bottom in $5B18.","t":"code","b":[229],"m":"push","o":"hl","x":[26216,26266,33007,33018,33029,33173,36525,44137,52686]},{"a":45027,"t":"code","b":[213],"m":"push","o":"de"},{"a":45028,"t":"code","b":[197],"m":"push","o":"bc"},{"a":45029,"t":"code","b":[245],"m":"push","o":"af"},{"a":45030,"t":"code","b":[50,25,91],"m":"ld","oa":23321,"o":"($5B19),a"},{"a":45033,"t":"code","b":[237,91,21,91],"m":"ld","oa":23317,"o":"de,($5B15)"},{"a":45037,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":45038,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":45040,"t":"code","b":[33,97,175],"m":"ld","o":"hl,$AF61"},{"a":45043,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":45044,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":45045,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":45046,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":45047,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":45048,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":45049,"t":"code","b":[78],"m":"ld","o":"c,(hl)"},{"a":45050,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":45051,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":45052,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":45053,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":45055,"t":"code","b":[9],"m":"add","o":"hl,bc"},{"a":45056,"t":"code","b":[229],"m":"push","o":"hl"},{"a":45057,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":45058,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":45060,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":45061,"t":"code","b":[229],"m":"push","o":"hl"},{"a":45062,"t":"code","b":[237,91,14,91],"m":"ld","oa":23310,"o":"de,($5B0E)"},{"a":45066,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":45068,"t":"code","b":[58,25,91],"m":"ld","oa":23321,"o":"a,($5B19)"},{"a":45071,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":45072,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":45073,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":45074,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":45075,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":45076,"t":"code","b":[209],"m":"pop","o":"de"},{"a":45077,"t":"code","b":[14,2],"m":"ld","o":"c,$02"},{"a":45079,"t":"code","b":[6,4],"m":"ld","o":"b,$04","x":[45095]},{"a":45081,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[45089]},{"a":45082,"t":"code","b":[15],"m":"rrca"},{"a":45083,"t":"code","b":[182],"m":"or","o":"(hl)"},{"a":45084,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":45085,"t":"code","b":[20],"m":"inc","o":"d"},{"a":45086,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":45087,"t":"code","b":[20],"m":"inc","o":"d"},{"a":45088,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":45089,"t":"code","b":[16,246],"m":"djnz","oa":45081,"o":"$B019"},{"a":45091,"t":"code","b":[13],"m":"dec","o":"c"},{"a":45092,"t":"code","b":[40,3],"m":"jr","oa":45097,"o":"z,$B029"},{"a":45094,"t":"code","b":[209],"m":"pop","o":"de"},{"a":45095,"t":"code","b":[24,238],"m":"jr","oa":45079,"o":"$B017"},{"a":45097,"t":"code","b":[235],"m":"ex","o":"de,hl","x":[45092]},{"a":45098,"t":"code","b":[37],"m":"dec","o":"h"},{"a":45099,"t":"code","b":[124],"m":"ld","o":"a,h"},{"a":45100,"t":"code","b":[15],"m":"rrca"},{"a":45101,"t":"code","b":[15],"m":"rrca"},{"a":45102,"t":"code","b":[15],"m":"rrca"},{"a":45103,"t":"code","b":[230,3],"m":"and","o":"$03"},{"a":45105,"t":"code","b":[246,88],"m":"or","o":"$58"},{"a":45107,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":45108,"t":"code","b":[58,24,91],"m":"ld","oa":23320,"o":"a,($5B18)"},{"a":45111,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":45112,"t":"code","b":[17,224,255],"m":"ld","o":"de,$FFE0"},{"a":45115,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":45116,"t":"code","b":[58,23,91],"m":"ld","oa":23319,"o":"a,($5B17)"},{"a":45119,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":45120,"t":"code","b":[241],"m":"pop","o":"af"},{"a":45121,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":45122,"t":"code","b":[209],"m":"pop","o":"de"},{"a":45123,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":45124,"t":"code","b":[201],"m":"ret"},{"a":45125,"l":"line_setup","c":"Sets up a line from square $FF3B to square $FF3D on the wrapping map, the shorter way round each axis: the row and column steps ($FF3F, $FF40: 1 or $FF) and differences ($FF43, $FF44); the longer difference in $FF46 with the step along it alone in $FF41 or $FF42, the shorter in $FF45; the running error ($FF47) at half the longer; the length so far ($FF48) at 0.","t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000","x":[29268,44573,46123]},{"a":45128,"t":"code","b":[34,63,255],"m":"ld","oa":65343,"o":"($FF3F),hl"},{"a":45131,"t":"code","b":[34,65,255],"m":"ld","oa":65345,"o":"($FF41),hl"},{"a":45134,"t":"code","b":[34,67,255],"m":"ld","oa":65347,"o":"($FF43),hl"},{"a":45137,"t":"code","b":[58,60,255],"m":"ld","oa":65340,"o":"a,($FF3C)"},{"a":45140,"t":"code","b":[33,62,255],"m":"ld","o":"hl,$FF3E"},{"a":45143,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":45144,"t":"code","b":[40,26],"m":"jr","oa":45172,"o":"z,$B074"},{"a":45146,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":45147,"t":"code","b":[33,64,255],"m":"ld","o":"hl,$FF40"},{"a":45150,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":45152,"t":"code","b":[48,2],"m":"jr","oa":45156,"o":"nc,$B064"},{"a":45154,"t":"code","b":[198,36],"m":"add","o":"a,$24"},{"a":45156,"t":"code","b":[254,18],"m":"cp","o":"$12","x":[45152]},{"a":45158,"t":"code","b":[56,9],"m":"jr","oa":45169,"o":"c,$B071"},{"a":45160,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":45161,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":45163,"t":"code","b":[50,64,255],"m":"ld","oa":65344,"o":"($FF40),a"},{"a":45166,"t":"code","b":[62,36],"m":"ld","o":"a,$24"},{"a":45168,"t":"code","b":[144],"m":"sub","o":"b"},{"a":45169,"t":"code","b":[50,68,255],"m":"ld","oa":65348,"o":"($FF44),a","x":[45158]},{"a":45172,"t":"code","b":[58,59,255],"m":"ld","oa":65339,"o":"a,($FF3B)","x":[45144]},{"a":45175,"t":"code","b":[33,61,255],"m":"ld","o":"hl,$FF3D"},{"a":45178,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":45179,"t":"code","b":[40,26],"m":"jr","oa":45207,"o":"z,$B097"},{"a":45181,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":45182,"t":"code","b":[33,63,255],"m":"ld","o":"hl,$FF3F"},{"a":45185,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":45187,"t":"code","b":[48,2],"m":"jr","oa":45191,"o":"nc,$B087"},{"a":45189,"t":"code","b":[198,36],"m":"add","o":"a,$24"},{"a":45191,"t":"code","b":[254,18],"m":"cp","o":"$12","x":[45187]},{"a":45193,"t":"code","b":[56,9],"m":"jr","oa":45204,"o":"c,$B094"},{"a":45195,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":45196,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":45198,"t":"code","b":[50,63,255],"m":"ld","oa":65343,"o":"($FF3F),a"},{"a":45201,"t":"code","b":[62,36],"m":"ld","o":"a,$24"},{"a":45203,"t":"code","b":[144],"m":"sub","o":"b"},{"a":45204,"t":"code","b":[50,67,255],"m":"ld","oa":65347,"o":"($FF43),a","x":[45193]},{"a":45207,"t":"code","b":[58,68,255],"m":"ld","oa":65348,"o":"a,($FF44)","x":[45179]},{"a":45210,"t":"code","b":[33,67,255],"m":"ld","o":"hl,$FF43"},{"a":45213,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":45214,"t":"code","b":[56,15],"m":"jr","oa":45231,"o":"c,$B0AF"},{"a":45216,"t":"code","b":[50,70,255],"m":"ld","oa":65350,"o":"($FF46),a"},{"a":45219,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":45220,"t":"code","b":[50,69,255],"m":"ld","oa":65349,"o":"($FF45),a"},{"a":45223,"t":"code","b":[58,64,255],"m":"ld","oa":65344,"o":"a,($FF40)"},{"a":45226,"t":"code","b":[50,66,255],"m":"ld","oa":65346,"o":"($FF42),a"},{"a":45229,"t":"code","b":[24,13],"m":"jr","oa":45244,"o":"$B0BC"},{"a":45231,"t":"code","b":[50,69,255],"m":"ld","oa":65349,"o":"($FF45),a","x":[45214]},{"a":45234,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":45235,"t":"code","b":[50,70,255],"m":"ld","oa":65350,"o":"($FF46),a"},{"a":45238,"t":"code","b":[58,63,255],"m":"ld","oa":65343,"o":"a,($FF3F)"},{"a":45241,"t":"code","b":[50,65,255],"m":"ld","oa":65345,"o":"($FF41),a"},{"a":45244,"t":"code","b":[58,70,255],"m":"ld","oa":65350,"o":"a,($FF46)","x":[45229]},{"a":45247,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":45249,"t":"code","b":[50,71,255],"m":"ld","oa":65351,"o":"($FF47),a"},{"a":45252,"t":"code","b":[175],"m":"xor","o":"a"},{"a":45253,"t":"code","b":[50,72,255],"m":"ld","oa":65352,"o":"($FF48),a"},{"a":45256,"t":"code","b":[201],"m":"ret"},{"a":45257,"l":"line_step_pixels","c":"line_step on pixel positions in the map window, which do not wrap.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[44606]},{"a":45259,"t":"code","b":[50,53,255],"m":"ld","oa":65333,"o":"($FF35),a"},{"a":45262,"t":"code","b":[24,4],"m":"jr","oa":45268,"o":"$B0D4"},{"a":45264,"l":"line_step","c":"Moves the point $FF3B, $FF3C one step along the line: a diagonal step when the error runs out (the length $FF48 goes up by 3), otherwise a step along the longer axis (the length goes up by 2). On the map ($FF35 = 0) the row and column wrap from 0 to 35.","t":"code","b":[175],"m":"xor","o":"a","x":[46126]},{"a":45265,"t":"code","b":[50,53,255],"m":"ld","oa":65333,"o":"($FF35),a"},{"a":45268,"t":"code","b":[58,71,255],"m":"ld","oa":65351,"o":"a,($FF47)","x":[45262]},{"a":45271,"t":"code","b":[33,69,255],"m":"ld","o":"hl,$FF45"},{"a":45274,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":45275,"t":"code","b":[50,71,255],"m":"ld","oa":65351,"o":"($FF47),a"},{"a":45278,"t":"code","b":[48,50],"m":"jr","oa":45330,"o":"nc,$B112"},{"a":45280,"t":"code","b":[33,70,255],"m":"ld","o":"hl,$FF46"},{"a":45283,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":45284,"t":"code","b":[50,71,255],"m":"ld","oa":65351,"o":"($FF47),a"},{"a":45287,"t":"code","b":[58,60,255],"m":"ld","oa":65340,"o":"a,($FF3C)"},{"a":45290,"t":"code","b":[33,64,255],"m":"ld","o":"hl,$FF40"},{"a":45293,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":45294,"t":"code","b":[33,53,255],"m":"ld","o":"hl,$FF35"},{"a":45297,"t":"code","b":[203,70],"m":"bit","o":"0,(hl)"},{"a":45299,"t":"code","b":[204,60,177],"m":"call","oa":45372,"o":"z,wrap_coordinate"},{"a":45302,"t":"code","b":[50,60,255],"m":"ld","oa":65340,"o":"($FF3C),a"},{"a":45305,"t":"code","b":[58,59,255],"m":"ld","oa":65339,"o":"a,($FF3B)"},{"a":45308,"t":"code","b":[33,63,255],"m":"ld","o":"hl,$FF3F"},{"a":45311,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":45312,"t":"code","b":[33,53,255],"m":"ld","o":"hl,$FF35"},{"a":45315,"t":"code","b":[203,70],"m":"bit","o":"0,(hl)"},{"a":45317,"t":"code","b":[204,60,177],"m":"call","oa":45372,"o":"z,wrap_coordinate"},{"a":45320,"t":"code","b":[50,59,255],"m":"ld","oa":65339,"o":"($FF3B),a"},{"a":45323,"t":"code","b":[33,72,255],"m":"ld","o":"hl,$FF48"},{"a":45326,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":45327,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":45328,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":45329,"t":"code","b":[201],"m":"ret"},{"a":45330,"t":"code","b":[58,60,255],"m":"ld","oa":65340,"o":"a,($FF3C)","x":[45278]},{"a":45333,"t":"code","b":[33,66,255],"m":"ld","o":"hl,$FF42"},{"a":45336,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":45337,"t":"code","b":[33,53,255],"m":"ld","o":"hl,$FF35"},{"a":45340,"t":"code","b":[203,70],"m":"bit","o":"0,(hl)"},{"a":45342,"t":"code","b":[204,60,177],"m":"call","oa":45372,"o":"z,wrap_coordinate"},{"a":45345,"t":"code","b":[50,60,255],"m":"ld","oa":65340,"o":"($FF3C),a"},{"a":45348,"t":"code","b":[58,59,255],"m":"ld","oa":65339,"o":"a,($FF3B)"},{"a":45351,"t":"code","b":[33,65,255],"m":"ld","o":"hl,$FF41"},{"a":45354,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":45355,"t":"code","b":[33,53,255],"m":"ld","o":"hl,$FF35"},{"a":45358,"t":"code","b":[203,70],"m":"bit","o":"0,(hl)"},{"a":45360,"t":"code","b":[204,60,177],"m":"call","oa":45372,"o":"z,wrap_coordinate"},{"a":45363,"t":"code","b":[50,59,255],"m":"ld","oa":65339,"o":"($FF3B),a"},{"a":45366,"t":"code","b":[33,72,255],"m":"ld","o":"hl,$FF48"},{"a":45369,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":45370,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":45371,"t":"code","b":[201],"m":"ret"},{"a":45372,"l":"wrap_coordinate","c":"A row or column of $FF becomes 35 ($23) and one of 36 becomes 0.","t":"code","b":[254,255],"m":"cp","o":"$FF","x":[45299,45317,45342,45360]},{"a":45374,"t":"code","b":[32,3],"m":"jr","oa":45379,"o":"nz,$B143"},{"a":45376,"t":"code","b":[62,35],"m":"ld","o":"a,$23"},{"a":45378,"t":"code","b":[201],"m":"ret"},{"a":45379,"t":"code","b":[254,36],"m":"cp","o":"$24","x":[45374]},{"a":45381,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":45382,"t":"code","b":[175],"m":"xor","o":"a"},{"a":45383,"t":"code","b":[201],"m":"ret"},{"a":45384,"l":"update_view","c":"After the selected creature has moved or acted: works out what it sees ($B1A6; from under cover, bit 2 of its terrain's flags at $D38E, it sees less, unless it flies), puts it back on the map, reloads the computer's creature if new enemies were noted ($D187), and for a creature that may be engaged ($5B29) sets or clears its engaged bit (bit 4 of byte 4 of its record) as an enemy stands next to it at its height ($5B3F), unless bit 3 of that byte holds it.","t":"code","b":[175],"m":"xor","o":"a","x":[28007,30408,34213,36951,39076,39831,40569,41353,41437,41494,42213,42698,46416]},{"a":45385,"t":"code","b":[50,63,91],"m":"ld","oa":23359,"o":"($5B3F),a"},{"a":45388,"t":"code","b":[50,135,209],"m":"ld","oa":53639,"o":"($D187),a"},{"a":45391,"t":"code","b":[50,137,209],"m":"ld","oa":53641,"o":"($D189),a"},{"a":45394,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":45398,"t":"code","b":[205,142,120],"m":"call","oa":30862,"o":"terrain_under"},{"a":45401,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":45402,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":45404,"t":"code","b":[17,142,211],"m":"ld","o":"de,$D38E"},{"a":45407,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":45408,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":45409,"t":"code","b":[230,4],"m":"and","o":"$04"},{"a":45411,"t":"code","b":[50,75,255],"m":"ld","oa":65355,"o":"($FF4B),a"},{"a":45414,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":45417,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":45419,"t":"code","b":[32,4],"m":"jr","oa":45425,"o":"nz,$B171"},{"a":45421,"t":"code","b":[175],"m":"xor","o":"a"},{"a":45422,"t":"code","b":[50,75,255],"m":"ld","oa":65355,"o":"($FF4B),a"},{"a":45425,"t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)","x":[45419]},{"a":45428,"t":"code","b":[205,166,177],"m":"call","oa":45478,"o":"work_out_sight"},{"a":45431,"t":"code","b":[205,103,170],"m":"call","oa":43623,"o":"map_address_selected"},{"a":45434,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":45437,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":45438,"t":"code","b":[58,135,209],"m":"ld","oa":53639,"o":"a,($D187)"},{"a":45441,"t":"code","b":[183],"m":"or","o":"a"},{"a":45442,"t":"code","b":[58,134,209],"m":"ld","oa":53638,"o":"a,($D186)"},{"a":45445,"t":"code","b":[196,55,119],"m":"call","oa":30519,"o":"nz,load_creature"},{"a":45448,"t":"code","b":[58,41,91],"m":"ld","oa":23337,"o":"a,($5B29)"},{"a":45451,"t":"code","b":[183],"m":"or","o":"a"},{"a":45452,"t":"code","b":[200],"m":"ret","o":"z"},{"a":45453,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)"},{"a":45457,"t":"code","b":[221,203,4,94],"m":"bit","o":"3,(ix+$04)"},{"a":45461,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":45462,"t":"code","b":[58,63,91],"m":"ld","oa":23359,"o":"a,($5B3F)"},{"a":45465,"t":"code","b":[183],"m":"or","o":"a"},{"a":45466,"t":"code","b":[32,5],"m":"jr","oa":45473,"o":"nz,$B1A1"},{"a":45468,"t":"code","b":[221,203,4,166],"m":"res","o":"4,(ix+$04)"},{"a":45472,"t":"code","b":[201],"m":"ret"},{"a":45473,"t":"code","b":[221,203,4,230],"m":"set","o":"4,(ix+$04)","x":[45466]},{"a":45477,"t":"code","b":[201],"m":"ret"},{"a":45478,"l":"work_out_sight","c":"Works out what can be seen from square HL ($FF88) at the selected creature's height. The reach is $13 half squares on the ground and $17 in the air, nine and eleven squares in a straight line, as the manual says. Every entry of the object table loses its seen mark (bit 6 of byte 1); the viewer has it. Every entry on a square within reach (by the distance's rule, in $FF4F) that is not riding is checked by a line traced over the ground ($B416), with the flags of the terrain it stands on ($FF4A, $FF4C), then see_square. Counts the enemies in view on the ground and in the air ($5B40, $5B41) as it goes.","t":"code","b":[34,136,255],"m":"ld","oa":65416,"o":"($FF88),hl","x":[34191,35540,45428]},{"a":45481,"t":"code","b":[62,19],"m":"ld","o":"a,$13"},{"a":45483,"t":"code","b":[50,80,255],"m":"ld","oa":65360,"o":"($FF50),a"},{"a":45486,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":45489,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":45491,"t":"code","b":[32,5],"m":"jr","oa":45498,"o":"nz,$B1BA"},{"a":45493,"t":"code","b":[62,23],"m":"ld","o":"a,$17"},{"a":45495,"t":"code","b":[50,80,255],"m":"ld","oa":65360,"o":"($FF50),a"},{"a":45498,"t":"code","b":[33,91,91],"m":"ld","o":"hl,$5B5B","x":[45491]},{"a":45501,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":45504,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":45506,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[45511]},{"a":45507,"t":"code","b":[230,191],"m":"and","o":"$BF"},{"a":45509,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":45510,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":45511,"t":"code","b":[16,249],"m":"djnz","oa":45506,"o":"$B1C2"},{"a":45513,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":45517,"t":"code","b":[221,203,1,246],"m":"set","o":"6,(ix+$01)"},{"a":45521,"t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A"},{"a":45525,"t":"code","b":[6,145],"m":"ld","o":"b,$91"},{"a":45527,"t":"code","b":[175],"m":"xor","o":"a"},{"a":45528,"t":"code","b":[50,65,91],"m":"ld","oa":23361,"o":"($5B41),a"},{"a":45531,"t":"code","b":[50,64,91],"m":"ld","oa":23360,"o":"($5B40),a"},{"a":45534,"t":"code","b":[50,31,91],"m":"ld","oa":23327,"o":"($5B1F),a"},{"a":45537,"t":"code","b":[197],"m":"push","o":"bc","x":[45692]},{"a":45538,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":45541,"t":"code","b":[60],"m":"inc","o":"a"},{"a":45542,"t":"code","b":[202,113,178],"m":"jp","oa":45681,"o":"z,$B271"},{"a":45545,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying"},{"a":45548,"t":"code","b":[218,113,178],"m":"jp","oa":45681,"o":"c,$B271"},{"a":45551,"t":"code","b":[221,203,1,118],"m":"bit","o":"6,(ix+$01)"},{"a":45555,"t":"code","b":[194,113,178],"m":"jp","oa":45681,"o":"nz,$B271"},{"a":45558,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":45561,"t":"code","b":[33,136,255],"m":"ld","o":"hl,$FF88"},{"a":45564,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":45565,"t":"code","b":[48,2],"m":"jr","oa":45569,"o":"nc,$B201"},{"a":45567,"t":"code","b":[237,68],"m":"neg"},{"a":45569,"t":"code","b":[254,18],"m":"cp","o":"$12","x":[45565]},{"a":45571,"t":"code","b":[56,4],"m":"jr","oa":45577,"o":"c,$B209"},{"a":45573,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":45574,"t":"code","b":[62,36],"m":"ld","o":"a,$24"},{"a":45576,"t":"code","b":[144],"m":"sub","o":"b"},{"a":45577,"t":"code","b":[50,68,255],"m":"ld","oa":65348,"o":"($FF44),a","x":[45571]},{"a":45580,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":45581,"t":"code","b":[33,80,255],"m":"ld","o":"hl,$FF50"},{"a":45584,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":45585,"t":"code","b":[48,94],"m":"jr","oa":45681,"o":"nc,$B271"},{"a":45587,"t":"code","b":[205,162,120],"m":"call","oa":30882,"o":"entry_column"},{"a":45590,"t":"code","b":[33,137,255],"m":"ld","o":"hl,$FF89"},{"a":45593,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":45594,"t":"code","b":[48,2],"m":"jr","oa":45598,"o":"nc,$B21E"},{"a":45596,"t":"code","b":[237,68],"m":"neg"},{"a":45598,"t":"code","b":[254,18],"m":"cp","o":"$12","x":[45594]},{"a":45600,"t":"code","b":[56,4],"m":"jr","oa":45606,"o":"c,$B226"},{"a":45602,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":45603,"t":"code","b":[62,36],"m":"ld","o":"a,$24"},{"a":45605,"t":"code","b":[144],"m":"sub","o":"b"},{"a":45606,"t":"code","b":[50,67,255],"m":"ld","oa":65347,"o":"($FF43),a","x":[45600]},{"a":45609,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":45610,"t":"code","b":[33,80,255],"m":"ld","o":"hl,$FF50"},{"a":45613,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":45614,"t":"code","b":[48,65],"m":"jr","oa":45681,"o":"nc,$B271"},{"a":45616,"t":"code","b":[58,67,255],"m":"ld","oa":65347,"o":"a,($FF43)"},{"a":45619,"t":"code","b":[33,68,255],"m":"ld","o":"hl,$FF44"},{"a":45622,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":45623,"t":"code","b":[184],"m":"cp","o":"b"},{"a":45624,"t":"code","b":[48,2],"m":"jr","oa":45628,"o":"nc,$B23C"},{"a":45626,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":45627,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":45628,"t":"code","b":[135],"m":"add","o":"a,a","x":[45624]},{"a":45629,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":45630,"t":"code","b":[50,79,255],"m":"ld","oa":65359,"o":"($FF4F),a"},{"a":45633,"t":"code","b":[33,80,255],"m":"ld","o":"hl,$FF50"},{"a":45636,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":45637,"t":"code","b":[48,42],"m":"jr","oa":45681,"o":"nc,$B271"},{"a":45639,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":45642,"t":"code","b":[50,77,255],"m":"ld","oa":65357,"o":"($FF4D),a"},{"a":45645,"t":"code","b":[205,162,120],"m":"call","oa":30882,"o":"entry_column"},{"a":45648,"t":"code","b":[50,78,255],"m":"ld","oa":65358,"o":"($FF4E),a"},{"a":45651,"t":"code","b":[205,142,120],"m":"call","oa":30862,"o":"terrain_under"},{"a":45654,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":45655,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":45657,"t":"code","b":[17,142,211],"m":"ld","o":"de,$D38E"},{"a":45660,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":45661,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":45662,"t":"code","b":[230,2],"m":"and","o":"$02"},{"a":45664,"t":"code","b":[50,74,255],"m":"ld","oa":65354,"o":"($FF4A),a"},{"a":45667,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":45668,"t":"code","b":[230,4],"m":"and","o":"$04"},{"a":45670,"t":"code","b":[50,76,255],"m":"ld","oa":65356,"o":"($FF4C),a"},{"a":45673,"t":"code","b":[205,22,180],"m":"call","oa":46102,"o":"trace_line_ground"},{"a":45676,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":45677,"t":"code","b":[197],"m":"push","o":"bc"},{"a":45678,"t":"code","b":[205,128,178],"m":"call","oa":45696,"o":"see_square"},{"a":45681,"t":"code","b":[193],"m":"pop","o":"bc","x":[45542,45548,45555,45585,45614,45637]},{"a":45682,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":45685,"t":"code","b":[221,25],"m":"add","o":"ix,de"},{"a":45687,"t":"code","b":[33,31,91],"m":"ld","o":"hl,$5B1F"},{"a":45690,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":45691,"t":"code","b":[5],"m":"dec","o":"b"},{"a":45692,"t":"code","b":[194,225,177],"m":"jp","oa":45537,"o":"nz,$B1E1"},{"a":45695,"t":"code","b":[201],"m":"ret"},{"a":45696,"l":"see_square","c":"Decides, for every entry from $5B1F on that stands on square $FF4D and has no seen mark yet, whether it is seen ($B2E8), and shows on the map the creature seen at the viewer's height, or else one at the other height, or else the heaviest object seen there.","t":"code","b":[221,229],"m":"push","o":"ix","x":[45678]},{"a":45698,"t":"code","b":[175],"m":"xor","o":"a"},{"a":45699,"t":"code","b":[50,46,91],"m":"ld","oa":23342,"o":"($5B2E),a"},{"a":45702,"t":"code","b":[50,44,91],"m":"ld","oa":23340,"o":"($5B2C),a"},{"a":45705,"t":"code","b":[50,62,91],"m":"ld","oa":23358,"o":"($5B3E),a"},{"a":45708,"t":"code","b":[50,61,91],"m":"ld","oa":23357,"o":"($5B3D),a"},{"a":45711,"t":"code","b":[58,31,91],"m":"ld","oa":23327,"o":"a,($5B1F)"},{"a":45714,"t":"code","b":[50,32,91],"m":"ld","oa":23328,"o":"($5B20),a"},{"a":45717,"t":"code","b":[197],"m":"push","o":"bc","x":[45795]},{"a":45718,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":45721,"t":"code","b":[60],"m":"inc","o":"a"},{"a":45722,"t":"code","b":[40,61],"m":"jr","oa":45785,"o":"z,$B2D9"},{"a":45724,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying"},{"a":45727,"t":"code","b":[56,56],"m":"jr","oa":45785,"o":"c,$B2D9"},{"a":45729,"t":"code","b":[221,203,1,118],"m":"bit","o":"6,(ix+$01)"},{"a":45733,"t":"code","b":[32,50],"m":"jr","oa":45785,"o":"nz,$B2D9"},{"a":45735,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":45738,"t":"code","b":[33,77,255],"m":"ld","o":"hl,$FF4D"},{"a":45741,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":45742,"t":"code","b":[32,41],"m":"jr","oa":45785,"o":"nz,$B2D9"},{"a":45744,"t":"code","b":[205,162,120],"m":"call","oa":30882,"o":"entry_column"},{"a":45747,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":45748,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":45749,"t":"code","b":[32,34],"m":"jr","oa":45785,"o":"nz,$B2D9"},{"a":45751,"t":"code","b":[221,229],"m":"push","o":"ix"},{"a":45753,"t":"code","b":[205,232,178],"m":"call","oa":45800,"o":"see_entry"},{"a":45756,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":45758,"t":"code","b":[42,77,255],"m":"ld","oa":65357,"o":"hl,($FF4D)"},{"a":45761,"t":"code","b":[205,106,170],"m":"call","oa":43626,"o":"map_address"},{"a":45764,"t":"code","b":[58,44,91],"m":"ld","oa":23340,"o":"a,($5B2C)"},{"a":45767,"t":"code","b":[183],"m":"or","o":"a"},{"a":45768,"t":"code","b":[40,1],"m":"jr","oa":45771,"o":"z,$B2CB"},{"a":45770,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":45771,"t":"code","b":[58,61,91],"m":"ld","oa":23357,"o":"a,($5B3D)","x":[45768]},{"a":45774,"t":"code","b":[183],"m":"or","o":"a"},{"a":45775,"t":"code","b":[40,1],"m":"jr","oa":45778,"o":"z,$B2D2"},{"a":45777,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":45778,"t":"code","b":[58,62,91],"m":"ld","oa":23358,"o":"a,($5B3E)","x":[45775]},{"a":45781,"t":"code","b":[183],"m":"or","o":"a"},{"a":45782,"t":"code","b":[40,1],"m":"jr","oa":45785,"o":"z,$B2D9"},{"a":45784,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":45785,"t":"code","b":[193],"m":"pop","o":"bc","x":[45722,45727,45733,45742,45749,45782]},{"a":45786,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":45789,"t":"code","b":[221,25],"m":"add","o":"ix,de"},{"a":45791,"t":"code","b":[33,32,91],"m":"ld","o":"hl,$5B20"},{"a":45794,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":45795,"t":"code","b":[16,176],"m":"djnz","oa":45717,"o":"$B295"},{"a":45797,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":45799,"t":"code","b":[201],"m":"ret"},{"a":45800,"l":"see_entry","c":"Whether the entry at IX is seen. An invisible creature (bit 3 of byte 4 of its record) that is not the player's is not, unless the magic eye is open ($8A89). At another height than the viewer's, it is not when the viewer is under cover ($FF4B), or a creature on the ground is under cover ($FF4C). On the ground, a creature in the air is seen; otherwise one next to it ($FF4F below 4) or one the line reaches. In the air, a flying creature is seen; an object on terrain that hides from above ($FF4A) is not; otherwise one next to it or one under open sky. A seen entry is marked shown (bit 7 of byte 1): an object goes on the computer's list of objects seen ($D148, up to 24) and the heaviest object on the square ($5B2C, weight in $5B2E) is kept; an enemy creature loses its invisibility, is counted and noted, and so is a rider it carries.","t":"code","b":[221,203,1,246],"m":"set","o":"6,(ix+$01)","x":[45753]},{"a":45804,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":45807,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":45809,"t":"code","b":[56,19],"m":"jr","oa":45830,"o":"c,$B306"},{"a":45811,"t":"code","b":[58,137,138],"m":"ld","oa":35465,"o":"a,(magic_eye_on)"},{"a":45814,"t":"code","b":[183],"m":"or","o":"a"},{"a":45815,"t":"code","b":[32,13],"m":"jr","oa":45830,"o":"nz,$B306"},{"a":45817,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":45820,"t":"code","b":[253,203,4,94],"m":"bit","o":"3,(iy+$04)"},{"a":45824,"t":"code","b":[40,4],"m":"jr","oa":45830,"o":"z,$B306"},{"a":45826,"t":"code","b":[205,195,97],"m":"call","oa":25027,"o":"owner_is_player"},{"a":45829,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":45830,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)","x":[45809,45815,45824]},{"a":45833,"t":"code","b":[221,190,4],"m":"cp","o":"(ix+$04)"},{"a":45836,"t":"code","b":[40,15],"m":"jr","oa":45853,"o":"z,$B31D"},{"a":45838,"t":"code","b":[58,75,255],"m":"ld","oa":65355,"o":"a,($FF4B)"},{"a":45841,"t":"code","b":[183],"m":"or","o":"a"},{"a":45842,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":45843,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying"},{"a":45846,"t":"code","b":[40,5],"m":"jr","oa":45853,"o":"z,$B31D"},{"a":45848,"t":"code","b":[58,76,255],"m":"ld","oa":65356,"o":"a,($FF4C)"},{"a":45851,"t":"code","b":[183],"m":"or","o":"a"},{"a":45852,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":45853,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)","x":[45836,45846]},{"a":45856,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":45858,"t":"code","b":[40,19],"m":"jr","oa":45879,"o":"z,$B337"},{"a":45860,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying"},{"a":45863,"t":"code","b":[40,45],"m":"jr","oa":45910,"o":"z,$B356"},{"a":45865,"t":"code","b":[58,79,255],"m":"ld","oa":65359,"o":"a,($FF4F)"},{"a":45868,"t":"code","b":[254,4],"m":"cp","o":"$04"},{"a":45870,"t":"code","b":[56,38],"m":"jr","oa":45910,"o":"c,$B356"},{"a":45872,"t":"code","b":[58,73,255],"m":"ld","oa":65353,"o":"a,($FF49)"},{"a":45875,"t":"code","b":[183],"m":"or","o":"a"},{"a":45876,"t":"code","b":[40,32],"m":"jr","oa":45910,"o":"z,$B356"},{"a":45878,"t":"code","b":[201],"m":"ret"},{"a":45879,"t":"code","b":[205,131,120],"m":"call","oa":30851,"o":"is_flying","x":[45858]},{"a":45882,"t":"code","b":[40,26],"m":"jr","oa":45910,"o":"z,$B356"},{"a":45884,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":45887,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":45889,"t":"code","b":[48,5],"m":"jr","oa":45896,"o":"nc,$B348"},{"a":45891,"t":"code","b":[58,74,255],"m":"ld","oa":65354,"o":"a,($FF4A)"},{"a":45894,"t":"code","b":[183],"m":"or","o":"a"},{"a":45895,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":45896,"t":"code","b":[58,79,255],"m":"ld","oa":65359,"o":"a,($FF4F)","x":[45889]},{"a":45899,"t":"code","b":[254,4],"m":"cp","o":"$04"},{"a":45901,"t":"code","b":[56,7],"m":"jr","oa":45910,"o":"c,$B356"},{"a":45903,"t":"code","b":[58,74,255],"m":"ld","oa":65354,"o":"a,($FF4A)"},{"a":45906,"t":"code","b":[183],"m":"or","o":"a"},{"a":45907,"t":"code","b":[40,1],"m":"jr","oa":45910,"o":"z,$B356"},{"a":45909,"t":"code","b":[201],"m":"ret"},{"a":45910,"t":"code","b":[221,203,1,254],"m":"set","o":"7,(ix+$01)","x":[45863,45870,45876,45882,45901,45907]},{"a":45914,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":45917,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":45919,"t":"code","b":[48,48],"m":"jr","oa":45969,"o":"nc,$B391"},{"a":45921,"t":"code","b":[245],"m":"push","o":"af"},{"a":45922,"t":"code","b":[58,137,209],"m":"ld","oa":53641,"o":"a,($D189)"},{"a":45925,"t":"code","b":[254,24],"m":"cp","o":"$18"},{"a":45927,"t":"code","b":[40,18],"m":"jr","oa":45947,"o":"z,$B37B"},{"a":45929,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":45930,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":45932,"t":"code","b":[33,72,209],"m":"ld","o":"hl,$D148"},{"a":45935,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":45936,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":45937,"t":"code","b":[221,229],"m":"push","o":"ix"},{"a":45939,"t":"code","b":[209],"m":"pop","o":"de"},{"a":45940,"t":"code","b":[115],"m":"ld","o":"(hl),e"},{"a":45941,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":45942,"t":"code","b":[114],"m":"ld","o":"(hl),d"},{"a":45943,"t":"code","b":[33,137,209],"m":"ld","o":"hl,$D189"},{"a":45946,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":45947,"t":"code","b":[241],"m":"pop","o":"af","x":[45927]},{"a":45948,"t":"code","b":[205,160,148],"m":"call","oa":38048,"o":"object_record"},{"a":45951,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)"},{"a":45954,"t":"code","b":[33,46,91],"m":"ld","o":"hl,$5B2E"},{"a":45957,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":45958,"t":"code","b":[216],"m":"ret","o":"c"},{"a":45959,"t":"code","b":[50,46,91],"m":"ld","oa":23342,"o":"($5B2E),a"},{"a":45962,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":45965,"t":"code","b":[50,44,91],"m":"ld","oa":23340,"o":"($5B2C),a"},{"a":45968,"t":"code","b":[201],"m":"ret"},{"a":45969,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)","x":[45919]},{"a":45972,"t":"code","b":[221,190,4],"m":"cp","o":"(ix+$04)"},{"a":45975,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":45978,"t":"code","b":[40,5],"m":"jr","oa":45985,"o":"z,$B3A1"},{"a":45980,"t":"code","b":[50,61,91],"m":"ld","oa":23357,"o":"($5B3D),a"},{"a":45983,"t":"code","b":[24,3],"m":"jr","oa":45988,"o":"$B3A4"},{"a":45985,"t":"code","b":[50,62,91],"m":"ld","oa":23358,"o":"($5B3E),a","x":[45978]},{"a":45988,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of","x":[45983]},{"a":45991,"t":"code","b":[205,195,97],"m":"call","oa":25027,"o":"owner_is_player"},{"a":45994,"t":"code","b":[200],"m":"ret","o":"z"},{"a":45995,"t":"code","b":[253,203,4,158],"m":"res","o":"3,(iy+$04)"},{"a":45999,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":46002,"t":"code","b":[50,143,209],"m":"ld","oa":53647,"o":"($D18F),a"},{"a":46005,"t":"code","b":[205,217,179],"m":"call","oa":46041,"o":"count_enemy"},{"a":46008,"t":"code","b":[58,32,91],"m":"ld","oa":23328,"o":"a,($5B20)"},{"a":46011,"t":"code","b":[205,73,103],"m":"call","oa":26441,"o":"list_carried"},{"a":46014,"t":"code","b":[58,217,208],"m":"ld","oa":53465,"o":"a,($D0D9)"},{"a":46017,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":46019,"t":"code","b":[216],"m":"ret","o":"c"},{"a":46020,"t":"code","b":[58,218,208],"m":"ld","oa":53466,"o":"a,($D0DA)"},{"a":46023,"t":"code","b":[205,228,111],"m":"call","oa":28644,"o":"entry_address"},{"a":46026,"t":"code","b":[229],"m":"push","o":"hl"},{"a":46027,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":46029,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of"},{"a":46032,"t":"code","b":[253,203,4,94],"m":"bit","o":"3,(iy+$04)"},{"a":46036,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":46037,"t":"code","b":[221,203,1,254],"m":"set","o":"7,(ix+$01)"},{"a":46041,"l":"count_enemy","c":"Counts an enemy in view at height $D18F ($5B40 on the ground, $5B41 in the air), has the computer note it while it moves ($9C8C), and sets $5B3F when it stands next to the viewer at the same height.","t":"code","b":[33,64,91],"m":"ld","o":"hl,$5B40","x":[46005]},{"a":46044,"t":"code","b":[58,143,209],"m":"ld","oa":53647,"o":"a,($D18F)"},{"a":46047,"t":"code","b":[60],"m":"inc","o":"a"},{"a":46048,"t":"code","b":[40,3],"m":"jr","oa":46053,"o":"z,$B3E5"},{"a":46050,"t":"code","b":[33,65,91],"m":"ld","o":"hl,$5B41"},{"a":46053,"t":"code","b":[52],"m":"inc","o":"(hl)","x":[46048]},{"a":46054,"t":"code","b":[58,99,208],"m":"ld","oa":53347,"o":"a,($D063)"},{"a":46057,"t":"code","b":[183],"m":"or","o":"a"},{"a":46058,"t":"code","b":[196,140,156],"m":"call","oa":40076,"o":"nz,note_enemy"},{"a":46061,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)"},{"a":46064,"t":"code","b":[33,143,209],"m":"ld","o":"hl,$D18F"},{"a":46067,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":46068,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":46069,"t":"code","b":[58,79,255],"m":"ld","oa":65359,"o":"a,($FF4F)"},{"a":46072,"t":"code","b":[254,4],"m":"cp","o":"$04"},{"a":46074,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":46075,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":46077,"t":"code","b":[50,63,91],"m":"ld","oa":23359,"o":"($5B3F),a"},{"a":46080,"t":"code","b":[201],"m":"ret"},{"a":46081,"l":"unused_trace_20","c":"A way into trace_line with flag $20 that nothing calls.","t":"code","b":[62,32],"m":"ld","o":"a,$20"},{"a":46083,"t":"code","b":[50,43,91],"m":"ld","oa":23339,"o":"($5B2B),a"},{"a":46086,"t":"code","b":[24,19],"m":"jr","oa":46107,"o":"trace_line"},{"a":46088,"l":"unused_trace_40","c":"A way into trace_line with flag $40 that nothing calls.","t":"code","b":[62,64],"m":"ld","o":"a,$40"},{"a":46090,"t":"code","b":[50,43,91],"m":"ld","oa":23339,"o":"($5B2B),a"},{"a":46093,"t":"code","b":[24,12],"m":"jr","oa":46107,"o":"trace_line"},{"a":46095,"l":"trace_line_air","c":"trace_line with terrain flag $10, which blocks sight in the air.","t":"code","b":[62,16],"m":"ld","o":"a,$10","x":[31490,31508,31529]},{"a":46097,"t":"code","b":[50,43,91],"m":"ld","oa":23339,"o":"($5B2B),a"},{"a":46100,"t":"code","b":[24,5],"m":"jr","oa":46107,"o":"trace_line"},{"a":46102,"l":"trace_line_ground","c":"trace_line with terrain flag $01, which blocks sight on the ground.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[31533,45673]},{"a":46104,"t":"code","b":[50,43,91],"m":"ld","oa":23339,"o":"($5B2B),a"},{"a":46107,"l":"trace_line","c":"Follows the line from square $FF88 to square $FF4D over the map: Z set (and $FF49 0) when no square on the way has the flag $5B2B among its terrain's flags (the table at $D38E); Z clear and $FF49 = 1 when one blocks it.","t":"code","b":[42,136,255],"m":"ld","oa":65416,"o":"hl,($FF88)","x":[46086,46093,46100]},{"a":46110,"t":"code","b":[34,59,255],"m":"ld","oa":65339,"o":"($FF3B),hl"},{"a":46113,"t":"code","b":[42,77,255],"m":"ld","oa":65357,"o":"hl,($FF4D)"},{"a":46116,"t":"code","b":[34,61,255],"m":"ld","oa":65341,"o":"($FF3D),hl"},{"a":46119,"t":"code","b":[175],"m":"xor","o":"a"},{"a":46120,"t":"code","b":[50,73,255],"m":"ld","oa":65353,"o":"($FF49),a"},{"a":46123,"t":"code","b":[205,69,176],"m":"call","oa":45125,"o":"line_setup"},{"a":46126,"t":"code","b":[205,208,176],"m":"call","oa":45264,"o":"line_step","x":[46161]},{"a":46129,"t":"code","b":[58,59,255],"m":"ld","oa":65339,"o":"a,($FF3B)"},{"a":46132,"t":"code","b":[33,61,255],"m":"ld","o":"hl,$FF3D"},{"a":46135,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":46136,"t":"code","b":[32,6],"m":"jr","oa":46144,"o":"nz,$B440"},{"a":46138,"t":"code","b":[58,60,255],"m":"ld","oa":65340,"o":"a,($FF3C)"},{"a":46141,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":46142,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":46143,"t":"code","b":[200],"m":"ret","o":"z"},{"a":46144,"t":"code","b":[42,59,255],"m":"ld","oa":65339,"o":"hl,($FF3B)","x":[46136]},{"a":46147,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":46150,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":46151,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":46153,"t":"code","b":[17,142,211],"m":"ld","o":"de,$D38E"},{"a":46156,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":46157,"t":"code","b":[58,43,91],"m":"ld","oa":23339,"o":"a,($5B2B)"},{"a":46160,"t":"code","b":[166],"m":"and","o":"(hl)"},{"a":46161,"t":"code","b":[40,219],"m":"jr","oa":46126,"o":"z,$B42E"},{"a":46163,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":46165,"t":"code","b":[50,73,255],"m":"ld","oa":65353,"o":"($FF49),a"},{"a":46168,"t":"code","b":[183],"m":"or","o":"a"},{"a":46169,"t":"code","b":[201],"m":"ret"},{"a":46170,"l":"word_gap","c":"The gap after each word of a message: 0 none, 1 a column skipped, with bit 1 a space printed.","t":"byte","b":[1],"x":[32962,33119,43997,44084,44092]},{"a":46171,"l":"blink_count","c":"Counts the calls to blink_cursor left before the cursor changes.","t":"byte","b":[1],"x":[25373,26850,29564,31167,31221,33419,34347,43651,43655,43661,43675]},{"a":46172,"l":"pictures","c":"The information display's eight pictures, three bytes each (thing, row, column): the terrain, the creature, then six objects in two columns.","t":"byte","b":[0,3,23,0,3,28,0,9],"x":[25923,27347]},{"a":46180,"t":"byte","b":[23,0,9,28,0,13,23,0]},{"a":46188,"t":"byte","b":[13,28,0,17,23,0,17,28]},{"a":46196,"l":"list_pictures","c":"The pictures beside the ten lines of a list (choose_from_list), three bytes each, in two columns at rows 3, 7, 11, 15 and 19.","t":"byte","b":[0,3,1,0,3,28,0,7]},{"a":46204,"t":"byte","b":[1,0,7,28,0,11,1,0]},{"a":46212,"t":"byte","b":[11,28,0,15,1,0,15,28]},{"a":46220,"t":"byte","b":[0,19,1,0,19,28]},{"a":46226,"l":"flash_next","c":"The next colour of flash_colours.","t":"word","b":[148,180],"d":[46228],"x":[43220,43224,43234]},{"a":46228,"l":"flash_colours","c":"The attributes the flashing things cycle through, ending with $FF: bright red, magenta, green, cyan, yellow and back.","t":"byte","b":[66,67,68,69,70,69,68,67]},{"a":46236,"t":"byte","b":[255]},{"a":46237,"l":"neighbour_steps","c":"The steps to the eight squares around a square, row then column, clockwise from the one above.","t":"byte","b":[255,0,255,1,0,1,1,1]},{"a":46245,"t":"byte","b":[1,0,1,255,0,255,255,255]},{"a":46253,"l":"blob_dieback","c":"The chance numbers spread_magic uses for gooey blob dying back, by strength.","t":"byte","b":[114,100,88,80,73,66,61,57]},{"a":46261,"l":"fire_dieback","c":"The chance numbers spread_magic uses for magic fire dying back, by strength.","t":"byte","b":[255,160,127,106,90,79,70,63]},{"a":46269,"t":"byte","b":[57]},{"a":46270,"l":"spell_base_costs","c":"The base mana cost of each of the 45 spells; a cast costs the base times the spell's level plus one.","t":"byte","b":[23,19,15,3,2,3,6,8]},{"a":46278,"t":"byte","b":[5,4,5,9,8,4,5,6]},{"a":46286,"t":"byte","b":[5,2,5,11,5,8,14,14]},{"a":46294,"t":"byte","b":[19,1,1,2,1,1,3,1]},{"a":46302,"t":"byte","b":[3,2,3,3,3,3,2,3]},{"a":46310,"t":"byte","b":[1,2,3,1,2]},{"a":46315,"l":"move_selected","c":"Moves the selected creature to square $FF8A: the old square shows again what lay under it ($FF90), the new one's map byte (at $FF8C) is kept and replaced by the creature. Its terrain becomes $FF91; the step's cost ($FF8E) comes off its action points and half of it off its stamina. What it carries, and its rider or mount, move with it; then update_view.","t":"code","b":[205,103,170],"m":"call","oa":43623,"o":"map_address_selected","x":[27046,39859]},{"a":46318,"t":"code","b":[58,144,255],"m":"ld","oa":65424,"o":"a,($FF90)"},{"a":46321,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":46322,"t":"code","b":[42,138,255],"m":"ld","oa":65418,"o":"hl,($FF8A)"},{"a":46325,"t":"code","b":[34,85,91],"m":"ld","oa":23381,"o":"($5B55),hl"},{"a":46328,"t":"code","b":[42,140,255],"m":"ld","oa":65420,"o":"hl,($FF8C)"},{"a":46331,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":46332,"t":"code","b":[50,144,255],"m":"ld","oa":65424,"o":"($FF90),a"},{"a":46335,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)"},{"a":46338,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":46339,"t":"code","b":[50,216,208],"m":"ld","oa":53464,"o":"($D0D8),a"},{"a":46342,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":46346,"t":"code","b":[221,126,3],"m":"ld","o":"a,(ix+$03)"},{"a":46349,"t":"code","b":[230,128],"m":"and","o":"$80"},{"a":46351,"t":"code","b":[33,145,255],"m":"ld","o":"hl,$FF91"},{"a":46354,"t":"code","b":[182],"m":"or","o":"(hl)"},{"a":46355,"t":"code","b":[221,119,3],"m":"ld","o":"(ix+$03),a"},{"a":46358,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)"},{"a":46362,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":46365,"t":"code","b":[33,142,255],"m":"ld","o":"hl,$FF8E"},{"a":46368,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":46369,"t":"code","b":[221,119,0],"m":"ld","o":"(ix+$00),a"},{"a":46372,"t":"code","b":[50,251,209],"m":"ld","oa":53755,"o":"($D1FB),a"},{"a":46375,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":46376,"t":"code","b":[203,56],"m":"srl","o":"b"},{"a":46378,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":46381,"t":"code","b":[144],"m":"sub","o":"b"},{"a":46382,"t":"code","b":[221,119,1],"m":"ld","o":"(ix+$01),a"},{"a":46385,"t":"code","b":[50,252,209],"m":"ld","oa":53756,"o":"($D1FC),a"},{"a":46388,"t":"code","b":[205,86,113],"m":"call","oa":29014,"o":"find_partner"},{"a":46391,"t":"code","b":[196,210,181],"m":"call","oa":46546,"o":"nz,keep_figures"},{"a":46394,"t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)"},{"a":46397,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":46401,"t":"code","b":[205,84,181],"m":"call","oa":46420,"o":"set_entry_square"},{"a":46404,"t":"code","b":[175],"m":"xor","o":"a"},{"a":46405,"t":"code","b":[50,67,91],"m":"ld","oa":23363,"o":"($5B43),a"},{"a":46408,"t":"code","b":[205,97,181],"m":"call","oa":46433,"o":"move_carried"},{"a":46411,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":46413,"t":"code","b":[50,41,91],"m":"ld","oa":23337,"o":"($5B29),a"},{"a":46416,"t":"code","b":[205,72,177],"m":"call","oa":45384,"o":"update_view"},{"a":46419,"t":"code","b":[201],"m":"ret"},{"a":46420,"l":"set_entry_square","c":"Puts the entry at IX on square L (row), H (column), keeping the top two bits of byte 1.","t":"code","b":[221,117,0],"m":"ld","o":"(ix+$00),l","x":[27329,46401,46458]},{"a":46423,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":46426,"t":"code","b":[230,192],"m":"and","o":"$C0"},{"a":46428,"t":"code","b":[180],"m":"or","o":"h"},{"a":46429,"t":"code","b":[221,119,1],"m":"ld","o":"(ix+$01),a"},{"a":46432,"t":"code","b":[201],"m":"ret"},{"a":46433,"l":"move_carried","c":"Moves to square HL, with terrain $FF91, every entry that the selected creature ($5B4F) or its rider ($5B44) carries.","t":"code","b":[6,145],"m":"ld","o":"b,$91","x":[27400,35738,46408]},{"a":46435,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":46438,"t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A"},{"a":46442,"t":"code","b":[58,79,91],"m":"ld","oa":23375,"o":"a,($5B4F)","x":[46476]},{"a":46445,"t":"code","b":[221,190,4],"m":"cp","o":"(ix+$04)"},{"a":46448,"t":"code","b":[40,8],"m":"jr","oa":46458,"o":"z,$B57A"},{"a":46450,"t":"code","b":[58,68,91],"m":"ld","oa":23364,"o":"a,($5B44)"},{"a":46453,"t":"code","b":[221,190,4],"m":"cp","o":"(ix+$04)"},{"a":46456,"t":"code","b":[32,16],"m":"jr","oa":46474,"o":"nz,$B58A"},{"a":46458,"t":"code","b":[205,84,181],"m":"call","oa":46420,"o":"set_entry_square","x":[46448]},{"a":46461,"t":"code","b":[58,145,255],"m":"ld","oa":65425,"o":"a,($FF91)"},{"a":46464,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":46465,"t":"code","b":[221,126,3],"m":"ld","o":"a,(ix+$03)"},{"a":46468,"t":"code","b":[230,128],"m":"and","o":"$80"},{"a":46470,"t":"code","b":[177],"m":"or","o":"c"},{"a":46471,"t":"code","b":[221,119,3],"m":"ld","o":"(ix+$03),a"},{"a":46474,"t":"code","b":[221,25],"m":"add","o":"ix,de","x":[46456]},{"a":46476,"t":"code","b":[16,220],"m":"djnz","oa":46442,"o":"$B56A"},{"a":46478,"t":"code","b":[201],"m":"ret"},{"a":46479,"l":"creature_record_of","c":"creature_record for the creature number in byte 5 of the entry at IX.","t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)","x":[25012,25842,26127,26188,29106,30104,30532,32050,34117,35280,36609,36643,37247,38682,45817,45988,46029,51825]},{"a":46482,"l":"creature_record","c":"IY = the record of creature A: five bytes each at $5EC0 (action points, stamina, constitution, potion, flags).","t":"code","b":[229],"m":"push","o":"hl","x":[25944]},{"a":46483,"t":"code","b":[213],"m":"push","o":"de"},{"a":46484,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":46485,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":46487,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":46489,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":46490,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":46491,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":46492,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":46493,"t":"code","b":[17,192,94],"m":"ld","o":"de,$5EC0"},{"a":46496,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":46497,"t":"code","b":[229],"m":"push","o":"hl"},{"a":46498,"t":"code","b":[253,225],"m":"pop","o":"iy"},{"a":46500,"t":"code","b":[209],"m":"pop","o":"de"},{"a":46501,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":46502,"t":"code","b":[201],"m":"ret"},{"a":46503,"l":"type_record_of","c":"type_record for the type in byte 2 of the entry at IX.","t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)","x":[25830,25878,27564,30537,35274,39795,40196,40429]},{"a":46506,"l":"type_record","c":"IY = the record of creature type A: for $90 up, twelve bytes each from ($D003) in the scenario; for a wizard ($8C-$8F), the 23 bytes from byte 47 of the player's wizard record.","t":"code","b":[229],"m":"push","o":"hl","x":[33803,36241,40657]},{"a":46507,"t":"code","b":[254,144],"m":"cp","o":"$90"},{"a":46509,"t":"code","b":[56,21],"m":"jr","oa":46532,"o":"c,$B5C4"},{"a":46511,"t":"code","b":[214,144],"m":"sub","o":"$90"},{"a":46513,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":46514,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":46516,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":46517,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":46518,"t":"code","b":[84],"m":"ld","o":"d,h"},{"a":46519,"t":"code","b":[93],"m":"ld","o":"e,l"},{"a":46520,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":46521,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":46522,"t":"code","b":[237,91,3,208],"m":"ld","oa":53251,"o":"de,($D003)"},{"a":46526,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":46527,"t":"code","b":[229],"m":"push","o":"hl"},{"a":46528,"t":"code","b":[253,225],"m":"pop","o":"iy"},{"a":46530,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":46531,"t":"code","b":[201],"m":"ret"},{"a":46532,"t":"code","b":[214,139],"m":"sub","o":"$8B","x":[46509]},{"a":46534,"t":"code","b":[205,140,128],"m":"call","oa":32908,"o":"wizard_record"},{"a":46537,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":46538,"t":"code","b":[253,33,47,0],"m":"ld","o":"iy,$002F"},{"a":46542,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":46544,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":46545,"t":"code","b":[201],"m":"ret"},{"a":46546,"l":"keep_figures","c":"Keeps the selected creature's square, terrain, action points and stamina ($5B30-$5B34).","t":"code","b":[221,229],"m":"push","o":"ix","x":[26776,28022,28029,33491,34069,36887,46391]},{"a":46548,"t":"code","b":[42,85,91],"m":"ld","oa":23381,"o":"hl,($5B55)"},{"a":46551,"t":"code","b":[34,48,91],"m":"ld","oa":23344,"o":"($5B30),hl"},{"a":46554,"t":"code","b":[221,42,77,91],"m":"ld","oa":23373,"o":"ix,($5B4D)"},{"a":46558,"t":"code","b":[205,142,120],"m":"call","oa":30862,"o":"terrain_under"},{"a":46561,"t":"code","b":[50,52,91],"m":"ld","oa":23348,"o":"($5B34),a"},{"a":46564,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)"},{"a":46568,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":46571,"t":"code","b":[50,50,91],"m":"ld","oa":23346,"o":"($5B32),a"},{"a":46574,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":46577,"t":"code","b":[50,51,91],"m":"ld","oa":23347,"o":"($5B33),a"},{"a":46580,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":46582,"t":"code","b":[201],"m":"ret"},{"a":46583,"l":"set_missile","c":"Copies missile style A (eight bytes each from missile_styles) into $FF5D on: shape, pixels a frame, tail length, reach, attribute, combat and magic; and plays its sound (the eighth byte).","t":"code","b":[111],"m":"ld","o":"l,a","x":[31306,31565,31572,31584,34450,34924,35020]},{"a":46584,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":46586,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":46587,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":46588,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":46589,"t":"code","b":[17,14,182],"m":"ld","o":"de,$B60E"},{"a":46592,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":46593,"t":"code","b":[17,93,255],"m":"ld","o":"de,$FF5D"},{"a":46596,"t":"code","b":[1,7,0],"m":"ld","o":"bc,$0007"},{"a":46599,"t":"code","b":[237,176],"m":"ldir"},{"a":46601,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":46602,"t":"code","b":[205,58,200],"m":"call","oa":51258,"o":"set_sound"},{"a":46605,"t":"code","b":[201],"m":"ret"},{"a":46606,"l":"missile_styles","c":"The missile styles: 0 a dragon's flame (reach $0C, combat 35), 1 an arrow (reach $10, combat 15), 2 a magic arrow (reach $16, combat 30, magic), 3 a thrown object, then the spells' bolts.","t":"byte","b":[1,4,29,12,70,35,0,7]},{"a":46614,"t":"byte","b":[0,2,29,16,71,15,0,13]},{"a":46622,"t":"byte","b":[0,2,29,22,71,30,1,13]},{"a":46630,"t":"byte","b":[0,1,29,0,69,0,0,5]},{"a":46638,"t":"byte","b":[0,2,11,0,70,0,1,13]},{"a":46646,"t":"byte","b":[1,4,3,0,71,0,1,6]},{"a":46654,"t":"byte","b":[0,2,29,0,71,0,1,6]},{"a":46662,"l":"charset_0","c":"Character set 0 of the map's graphics (the scenario's table at $D07A points to it), which also holds the cursor: here its first 128 characters.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":46670,"t":"byte","b":[0,63,63,63,60,61,61,60]},{"a":46678,"t":"byte","b":[0,252,252,252,60,188,188,60]},{"a":46686,"t":"byte","b":[60,63,63,63,0,63,63,0]},{"a":46694,"t":"byte","b":[60,252,252,252,0,252,252,0]},{"a":46702,"t":"byte","b":[0,255,255,255,0,255,255,0]},{"a":46710,"t":"byte","b":[60,60,60,60,60,60,60,60]},{"a":46718,"t":"byte","b":[28,60,108,68,68,66,195,2]},{"a":46726,"t":"byte","b":[224,192,160,16,8,6,7,2]},{"a":46734,"t":"byte","b":[0,0,102,189,24,0,0,0]},{"a":46742,"t":"byte","b":[0,0,12,15,3,1,0,1]},{"a":46750,"t":"byte","b":[1,3,7,158,77,219,219,219]},{"a":46758,"t":"byte","b":[0,2,14,124,252,192,120,178]},{"a":46766,"t":"byte","b":[3,7,14,29,29,63,63,63]},{"a":46774,"t":"byte","b":[183,110,94,184,195,255,255,60]},{"a":46782,"t":"byte","b":[209,207,238,136,120,236,236,4]},{"a":46790,"t":"byte","b":[30,14,16,48,96,160,3,5]},{"a":46798,"t":"byte","b":[211,197,96,64,192,128,128,0]},{"a":46806,"t":"byte","b":[4,6,12,20,0,0,0,0]},{"a":46814,"t":"byte","b":[0,0,1,30,7,25,1,3]},{"a":46822,"t":"byte","b":[0,0,0,128,158,184,187,183]},{"a":46830,"t":"byte","b":[0,0,0,64,56,0,254,228]},{"a":46838,"t":"byte","b":[3,7,14,29,29,63,63,63]},{"a":46846,"t":"byte","b":[47,109,94,186,192,255,255,60]},{"a":46854,"t":"byte","b":[57,215,238,136,56,236,236,4]},{"a":46862,"t":"byte","b":[0,0,56,14,7,27,51,3]},{"a":46870,"t":"byte","b":[0,0,64,64,48,28,6,3]},{"a":46878,"t":"byte","b":[7,6,14,29,29,63,63,63]},{"a":46886,"t":"byte","b":[112,102,79,191,202,240,255,60]},{"a":46894,"t":"byte","b":[3,7,156,226,252,0,204,4]},{"a":46902,"t":"byte","b":[0,6,10,11,19,9,29,38]},{"a":46910,"t":"byte","b":[0,0,0,0,0,60,126,255]},{"a":46918,"t":"byte","b":[0,96,80,208,200,144,184,100]},{"a":46926,"t":"byte","b":[88,94,162,160,71,78,200,152]},{"a":46934,"t":"byte","b":[255,255,255,66,60,90,126,90]},{"a":46942,"t":"byte","b":[26,122,69,5,226,114,19,25]},{"a":46950,"t":"byte","b":[144,152,8,8,8,16,16,0]},{"a":46958,"t":"byte","b":[60,66,129,129,66,0,0,0]},{"a":46966,"t":"byte","b":[9,25,16,16,16,8,8,0]},{"a":46974,"t":"byte","b":[0,0,12,18,42,61,53,102]},{"a":46982,"t":"byte","b":[64,92,48,54,111,88,80,144]},{"a":46990,"t":"byte","b":[144,144,144,16,32,0,0,0]},{"a":46998,"t":"byte","b":[0,0,48,72,84,188,172,102]},{"a":47006,"t":"byte","b":[2,58,12,76,246,26,10,9]},{"a":47014,"t":"byte","b":[9,9,9,8,4,0,0,0]},{"a":47022,"t":"byte","b":[60,66,66,36,0,0,0,0]},{"a":47030,"t":"byte","b":[0,66,129,129,231,189,90,126]},{"a":47038,"t":"byte","b":[6,14,61,113,96,96,48,48]},{"a":47046,"t":"byte","b":[165,165,219,231,255,24,126,189]},{"a":47054,"t":"byte","b":[96,120,190,130,28,56,40,128]},{"a":47062,"t":"byte","b":[57,43,3,1,0,3,1,0]},{"a":47070,"t":"byte","b":[195,129,128,0,193,129,0,0]},{"a":47078,"t":"byte","b":[192,224,224,192,0,192,224,64]},{"a":47086,"t":"byte","b":[66,129,129,231,189,90,126,36]},{"a":47094,"t":"byte","b":[6,30,125,65,56,28,20,1]},{"a":47102,"t":"byte","b":[96,112,188,142,6,6,12,28]},{"a":47110,"t":"byte","b":[3,7,7,3,0,3,7,2]},{"a":47118,"t":"byte","b":[195,129,1,0,131,129,0,0]},{"a":47126,"t":"byte","b":[148,192,192,128,0,192,128,0]},{"a":47134,"t":"byte","b":[0,0,0,64,32,20,14,23]},{"a":47142,"t":"byte","b":[63,123,99,1,1,1,1,1]},{"a":47150,"t":"byte","b":[128,224,255,255,255,255,255,188]},{"a":47158,"t":"byte","b":[0,240,250,253,253,125,189,28]},{"a":47166,"t":"byte","b":[3,2,4,4,8,8,0,0]},{"a":47174,"t":"byte","b":[0,64,64,32,32,0,0,0]},{"a":47182,"t":"byte","b":[108,76,68,66,130,2,0,0]},{"a":47190,"t":"byte","b":[0,240,250,253,253,125,121,56]},{"a":47198,"t":"byte","b":[0,1,2,2,0,1,0,0]},{"a":47206,"t":"byte","b":[192,128,128,128,128,0,0,0]},{"a":47214,"t":"byte","b":[16,8,48,64,16,0,0,0]},{"a":47222,"t":"byte","b":[0,240,250,253,253,125,121,112]},{"a":47230,"t":"byte","b":[0,2,2,4,4,0,0,0]},{"a":47238,"t":"byte","b":[192,64,64,32,32,33,0,0]},{"a":47246,"t":"byte","b":[104,76,196,132,136,0,0,0]},{"a":47254,"t":"byte","b":[1,3,2,2,1,0,0,0]},{"a":47262,"t":"byte","b":[128,0,128,128,0,0,0,0]},{"a":47270,"t":"byte","b":[52,16,72,8,8,16,0,0]},{"a":47278,"t":"byte","b":[0,0,0,0,0,4,14,23]},{"a":47286,"t":"byte","b":[7,8,17,19,18,37,37,75]},{"a":47294,"t":"byte","b":[231,126,140,120,248,240,240,224]},{"a":47302,"t":"byte","b":[215,190,249,247,255,255,255,188]},{"a":47310,"t":"byte","b":[0,0,0,0,31,32,71,72]},{"a":47318,"t":"byte","b":[0,0,0,0,192,255,158,252]},{"a":47326,"t":"byte","b":[151,255,252,243,255,255,255,188]},{"a":47334,"t":"byte","b":[240,192,58,253,253,125,121,56]},{"a":47342,"t":"byte","b":[195,239,255,223,231,248,255,220]},{"a":47350,"t":"byte","b":[128,248,255,248,197,29,120,112]},{"a":47358,"t":"byte","b":[0,3,7,2,3,4,7,7]},{"a":47366,"t":"byte","b":[0,0,128,128,0,128,192,224]},{"a":47374,"t":"byte","b":[15,11,26,17,1,0,1,0]},{"a":47382,"t":"byte","b":[96,96,207,191,127,255,255,188]},{"a":47390,"t":"byte","b":[15,27,51,1,1,1,1,0]},{"a":47398,"t":"byte","b":[96,160,175,111,95,191,255,188]},{"a":47406,"t":"byte","b":[0,0,0,0,12,26,56,124]},{"a":47414,"t":"byte","b":[0,0,0,1,3,2,6,4]},{"a":47422,"t":"byte","b":[84,56,146,69,125,56,68,56]},{"a":47430,"t":"byte","b":[0,0,0,0,128,64,192,128]},{"a":47438,"t":"byte","b":[68,102,198,194,132,66,192,0]},{"a":47446,"t":"byte","b":[0,0,0,1,3,4,6,2]},{"a":47454,"t":"byte","b":[0,0,0,0,128,128,192,64]},{"a":47462,"t":"byte","b":[68,204,198,134,66,132,6,0]},{"a":47470,"t":"byte","b":[0,0,0,6,14,24,24,59]},{"a":47478,"t":"byte","b":[0,0,24,60,20,60,76,120]},{"a":47486,"t":"byte","b":[55,31,14,0,0,0,0,0]},{"a":47494,"t":"byte","b":[251,251,252,24,126,126,60,255]},{"a":47502,"t":"byte","b":[48,248,248,48,0,0,0,0]},{"a":47510,"t":"byte","b":[0,1,1,1,0,3,1,0]},{"a":47518,"t":"byte","b":[231,195,129,129,195,195,0,0]},{"a":47526,"t":"byte","b":[0,128,128,128,0,192,128,0]},{"a":47534,"t":"byte","b":[0,0,24,60,20,60,12,62]},{"a":47542,"t":"byte","b":[0,0,0,96,112,24,24,220]},{"a":47550,"t":"byte","b":[12,31,31,12,0,0,0,0]},{"a":47558,"t":"byte","b":[223,223,63,24,126,126,60,255]},{"a":47566,"t":"byte","b":[252,248,112,0,0,0,0,0]},{"a":47574,"t":"byte","b":[0,0,0,0,7,4,27,23]},{"a":47582,"t":"byte","b":[0,0,0,0,0,64,160,192]},{"a":47590,"t":"byte","b":[14,63,127,191,187,61,29,28]},{"a":47598,"t":"byte","b":[33,211,209,234,209,228,249,251]},{"a":47606,"t":"byte","b":[160,144,160,16,160,32,192,224]},{"a":47614,"t":"byte","b":[24,48,48,16,24,0,0,0]},{"a":47622,"t":"byte","b":[28,156,204,12,6,3,3,0]},{"a":47630,"t":"byte","b":[96,48,48,24,24,0,0,0]},{"a":47638,"t":"byte","b":[0,0,0,5,12,19,39,49]},{"a":47646,"t":"byte","b":[0,0,0,0,64,160,192,160]},{"a":47654,"t":"byte","b":[69,210,170,209,220,232,249,251]},{"a":47662,"t":"byte","b":[144,32,16,160,32,64,192,224]},{"a":47670,"t":"byte","b":[0,0,0,0,1,0,1,0]},{"a":47678,"t":"byte","b":[0,0,32,240,184,252,254,126]},{"a":47686,"l":"charset_0_continued","c":"Character set 0 from its character 128 to the end, $BE3B.","t":"byte","b":[24,63,7,1,0,0,0,0]},{"a":47694,"t":"byte","b":[255,237,109,109,91,91,107,119]},{"a":47702,"t":"byte","b":[239,238,238,103,195,6,0,0]},{"a":47710,"t":"byte","b":[0,0,16,120,220,254,126,62]},{"a":47718,"t":"byte","b":[0,0,1,7,6,0,0,0]},{"a":47726,"t":"byte","b":[127,237,237,219,91,55,87,103]},{"a":47734,"t":"byte","b":[0,8,60,110,126,62,31,63]},{"a":47742,"t":"byte","b":[127,109,109,155,183,111,95,63]},{"a":47750,"t":"byte","b":[0,0,0,0,0,14,31,63]},{"a":47758,"t":"byte","b":[0,0,0,0,0,224,240,112]},{"a":47766,"t":"byte","b":[47,127,116,251,7,99,67,67]},{"a":47774,"t":"byte","b":[119,111,223,63,255,255,255,255]},{"a":47782,"t":"byte","b":[198,249,253,252,252,252,252,60]},{"a":47790,"t":"byte","b":[67,7,6,6,12,12,12,0]},{"a":47798,"t":"byte","b":[248,0,96,96,49,49,0,0]},{"a":47806,"t":"byte","b":[60,156,220,204,134,134,6,0]},{"a":47814,"t":"byte","b":[198,249,253,252,252,252,252,56]},{"a":47822,"t":"byte","b":[39,7,7,3,1,1,1,0]},{"a":47830,"t":"byte","b":[248,128,128,128,192,128,128,0]},{"a":47838,"t":"byte","b":[112,96,112,56,24,32,0,0]},{"a":47846,"t":"byte","b":[47,127,116,251,7,99,67,35]},{"a":47854,"t":"byte","b":[17,5,6,6,12,12,0,0]},{"a":47862,"t":"byte","b":[248,192,192,96,97,49,49,0]},{"a":47870,"t":"byte","b":[240,232,220,204,134,134,128,0]},{"a":47878,"t":"byte","b":[35,3,3,1,1,0,0,0]},{"a":47886,"t":"byte","b":[184,0,0,128,192,128,0,0]},{"a":47894,"t":"byte","b":[120,112,112,104,48,48,48,0]},{"a":47902,"t":"byte","b":[0,1,0,7,9,6,6,2]},{"a":47910,"t":"byte","b":[0,192,243,122,183,183,183,167]},{"a":47918,"t":"byte","b":[0,0,192,240,120,188,186,216]},{"a":47926,"t":"byte","b":[7,15,31,11,4,11,11,1]},{"a":47934,"t":"byte","b":[15,221,239,104,160,168,92,190]},{"a":47942,"t":"byte","b":[84,136,0,0,0,0,0,0]},{"a":47950,"t":"byte","b":[1,0,0,0,3,5,0,0]},{"a":47958,"t":"byte","b":[255,251,125,133,4,24,36,0]},{"a":47966,"t":"byte","b":[0,0,128,192,64,0,0,0]},{"a":47974,"t":"byte","b":[0,0,0,7,9,6,6,18]},{"a":47982,"t":"byte","b":[0,0,0,0,128,160,179,178]},{"a":47990,"t":"byte","b":[0,0,0,0,0,0,192,240]},{"a":47998,"t":"byte","b":[55,79,31,11,4,11,11,1]},{"a":48006,"t":"byte","b":[38,222,239,104,160,168,92,190]},{"a":48014,"t":"byte","b":[248,250,124,59,28,10,4,0]},{"a":48022,"t":"byte","b":[0,0,0,0,128,128,128,224]},{"a":48030,"t":"byte","b":[55,111,95,235,164,11,11,1]},{"a":48038,"t":"byte","b":[47,219,237,105,161,168,92,190]},{"a":48046,"t":"byte","b":[128,224,240,248,252,248,126,52]},{"a":48054,"t":"byte","b":[0,0,0,3,15,20,40,44]},{"a":48062,"t":"byte","b":[0,0,24,224,0,0,0,0]},{"a":48070,"t":"byte","b":[23,25,54,119,99,99,49,32]},{"a":48078,"t":"byte","b":[192,160,96,152,239,244,63,219]},{"a":48086,"t":"byte","b":[0,0,0,0,128,192,64,64]},{"a":48094,"t":"byte","b":[1,3,3,3,1,1,0,0]},{"a":48102,"t":"byte","b":[215,25,8,4,130,1,0,0]},{"a":48110,"t":"byte","b":[160,192,96,128,128,192,192,0]},{"a":48118,"t":"byte","b":[0,0,0,128,240,8,0,0]},{"a":48126,"t":"byte","b":[192,160,96,152,237,247,60,222]},{"a":48134,"t":"byte","b":[215,27,15,7,131,1,0,0]},{"a":48142,"t":"byte","b":[96,64,0,128,128,192,192,0]},{"a":48150,"t":"byte","b":[3,7,7,14,12,4,24,27]},{"a":48158,"t":"byte","b":[12,30,23,31,109,115,191,191]},{"a":48166,"t":"byte","b":[0,0,224,248,188,190,214,231]},{"a":48174,"t":"byte","b":[7,1,0,0,0,0,0,0]},{"a":48182,"t":"byte","b":[223,135,8,23,57,124,120,225]},{"a":48190,"t":"byte","b":[195,49,251,139,112,248,240,240]},{"a":48198,"t":"byte","b":[241,120,24,12,28,48,0,0]},{"a":48206,"t":"byte","b":[224,224,224,112,48,24,24,48]},{"a":48214,"t":"byte","b":[0,0,0,48,56,56,24,12]},{"a":48222,"t":"byte","b":[0,0,0,16,121,55,18,0]},{"a":48230,"t":"byte","b":[12,5,15,15,0,0,0,0]},{"a":48238,"t":"byte","b":[223,199,136,23,57,124,120,225]},{"a":48246,"t":"byte","b":[0,0,0,0,0,1,3,7]},{"a":48254,"t":"byte","b":[0,0,0,0,0,0,56,124]},{"a":48262,"t":"byte","b":[2,4,12,7,3,0,0,0]},{"a":48270,"t":"byte","b":[12,104,52,77,125,61,65,60]},{"a":48278,"t":"byte","b":[0,0,192,224,224,224,224,192]},{"a":48286,"t":"byte","b":[66,102,198,12,0,0,0,0]},{"a":48294,"t":"byte","b":[0,1,3,3,1,0,12,22]},{"a":48302,"t":"byte","b":[30,232,125,251,251,251,123,119]},{"a":48310,"t":"byte","b":[2,62,249,206,240,156,248,228]},{"a":48318,"t":"byte","b":[111,255,159,35,1,1,1,3]},{"a":48326,"t":"byte","b":[111,158,249,255,255,255,255,250]},{"a":48334,"t":"byte","b":[218,61,221,188,184,156,12,8]},{"a":48342,"t":"byte","b":[3,7,6,12,24,24,0,0]},{"a":48350,"t":"byte","b":[252,108,28,24,24,48,48,0]},{"a":48358,"t":"byte","b":[24,24,0,0,0,0,0,0]},{"a":48366,"t":"byte","b":[0,0,0,0,7,15,1,14]},{"a":48374,"t":"byte","b":[0,0,0,0,128,192,227,226]},{"a":48382,"t":"byte","b":[0,0,0,0,0,248,254,127]},{"a":48390,"t":"byte","b":[13,27,31,59,33,1,1,3]},{"a":48398,"t":"byte","b":[115,143,252,251,255,255,255,250]},{"a":48406,"t":"byte","b":[157,102,217,188,184,156,12,8]},{"a":48414,"t":"byte","b":[6,47,109,203,159,29,17,3]},{"a":48422,"t":"byte","b":[192,47,255,241,254,254,255,250]},{"a":48430,"t":"byte","b":[0,96,248,244,252,250,63,5]},{"a":48438,"t":"byte","b":[0,0,0,56,122,46,124,139]},{"a":48446,"t":"byte","b":[97,99,62,30,12,0,0,1]},{"a":48454,"t":"byte","b":[183,207,254,254,124,130,125,187]},{"a":48462,"t":"byte","b":[192,224,240,56,24,112,96,0]},{"a":48470,"t":"byte","b":[1,3,3,3,6,14,0,0]},{"a":48478,"t":"byte","b":[215,131,3,1,0,0,1,0]},{"a":48486,"t":"byte","b":[0,128,128,128,192,224,192,0]},{"a":48494,"t":"byte","b":[1,1,3,6,14,52,48,1]},{"a":48502,"t":"byte","b":[192,224,240,56,24,24,48,48]},{"a":48510,"t":"byte","b":[0,0,0,16,16,16,16,16]},{"a":48518,"t":"byte","b":[0,0,0,0,0,34,62,148]},{"a":48526,"t":"byte","b":[17,57,30,22,0,0,0,0]},{"a":48534,"t":"byte","b":[189,155,98,252,124,186,68,186]},{"a":48542,"t":"byte","b":[128,112,248,232,232,232,200,112]},{"a":48550,"t":"byte","b":[1,1,0,0,1,0,0,0]},{"a":48558,"t":"byte","b":[199,199,131,64,131,6,0,0]},{"a":48566,"t":"byte","b":[1,129,66,34,22,14,12,0]},{"a":48574,"t":"byte","b":[0,0,0,12,7,1,0,0]},{"a":48582,"t":"byte","b":[0,24,56,56,16,220,60,252]},{"a":48590,"t":"byte","b":[3,6,0,0,0,0,0,0]},{"a":48598,"t":"byte","b":[142,94,28,30,61,108,230,70]},{"a":48606,"t":"byte","b":[198,75,99,225,0,1,0,0]},{"a":48614,"t":"byte","b":[0,0,0,128,192,128,0,0]},{"a":48622,"t":"byte","b":[0,0,0,0,15,3,0,1]},{"a":48630,"t":"byte","b":[15,0,0,0,0,0,0,0]},{"a":48638,"t":"byte","b":[14,158,28,30,26,56,116,108]},{"a":48646,"t":"byte","b":[108,52,24,24,20,0,0,0]},{"a":48654,"t":"byte","b":[0,0,0,0,0,15,0,15]},{"a":48662,"t":"byte","b":[142,30,28,30,28,28,58,118]},{"a":48670,"t":"byte","b":[99,193,64,97,96,224,0,0]},{"a":48678,"t":"byte","b":[0,128,192,128,0,0,0,0]},{"a":48686,"t":"byte","b":[14,158,28,30,26,60,124,120]},{"a":48694,"t":"byte","b":[56,28,42,26,24,56]},{"a":48700,"l":"charset_1","c":"Character set 1 of the map's graphics, 245 characters, with the burst a hit shows ($AEC2): here its first 56 and a half.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":48708,"t":"byte","b":[0,28,62,93,107,255,251,226]},{"a":48716,"t":"byte","b":[49,95,45,83,75,66,10,64]},{"a":48724,"t":"byte","b":[163,93,186,239,227,221,123,255]},{"a":48732,"t":"byte","b":[204,178,206,250,234,192,74,2]},{"a":48740,"t":"byte","b":[74,2,0,66,0,0,2,0]},{"a":48748,"t":"byte","b":[191,58,172,154,182,44,134,36]},{"a":48756,"t":"byte","b":[72,74,8,64,10,64,0,0]},{"a":48764,"t":"byte","b":[0,0,0,48,72,60,127,124]},{"a":48772,"t":"byte","b":[0,0,12,18,188,220,62,250]},{"a":48780,"t":"byte","b":[127,95,11,67,75,0,10,2]},{"a":48788,"t":"byte","b":[99,227,162,247,255,221,251,191]},{"a":48796,"t":"byte","b":[234,224,234,194,200,136,74,64]},{"a":48804,"t":"byte","b":[0,66,8,0,2,0,0,0]},{"a":48812,"t":"byte","b":[58,173,154,190,44,134,36,0]},{"a":48820,"t":"byte","b":[0,64,10,64,0,0,0,0]},{"a":48828,"t":"byte","b":[0,0,0,0,24,24,24,102]},{"a":48836,"t":"byte","b":[0,1,2,4,4,9,9,16]},{"a":48844,"t":"byte","b":[142,87,215,182,183,187,123,61]},{"a":48852,"t":"byte","b":[0,0,128,224,112,184,216,216]},{"a":48860,"t":"byte","b":[16,48,49,58,26,14,0,0]},{"a":48868,"t":"byte","b":[102,102,102,36,66,102,66,0]},{"a":48876,"t":"byte","b":[232,240,96,96,192,128,0,0]},{"a":48884,"t":"byte","b":[7,25,39,44,88,64,64,96]},{"a":48892,"t":"byte","b":[119,249,253,126,126,126,60,90]},{"a":48900,"t":"byte","b":[128,192,240,248,248,124,60,56]},{"a":48908,"t":"byte","b":[96,115,52,56,28,0,0,0]},{"a":48916,"t":"byte","b":[176,112,48,32,0,0,0,0]},{"a":48924,"t":"byte","b":[0,0,0,0,12,6,19,35]},{"a":48932,"t":"byte","b":[0,0,0,0,24,153,90,231]},{"a":48940,"t":"byte","b":[0,0,0,0,48,96,208,136]},{"a":48948,"t":"byte","b":[32,64,64,64,64,96,96,44]},{"a":48956,"t":"byte","b":[255,126,126,126,126,126,60,90]},{"a":48964,"t":"byte","b":[4,2,2,6,6,4,12,12]},{"a":48972,"t":"byte","b":[50,17,0,0,0,0,0,0]},{"a":48980,"t":"byte","b":[140,126,2,0,0,0,0,0]},{"a":48988,"t":"byte","b":[0,0,2,4,8,16,48,57]},{"a":48996,"t":"byte","b":[0,0,0,48,48,48,236,254]},{"a":49004,"t":"byte","b":[15,6,0,0,0,0,1,1]},{"a":49012,"t":"byte","b":[255,127,60,60,124,238,206,134]},{"a":49020,"t":"byte","b":[0,128,192,96,32,0,0,0]},{"a":49028,"t":"byte","b":[3,3,6,6,12,0,0,0]},{"a":49036,"t":"byte","b":[3,3,1,0,0,1,0,0]},{"a":49044,"t":"byte","b":[0,128,128,192,192,128,0,0]},{"a":49052,"t":"byte","b":[0,2,5,10,20,40,73,70]},{"a":49060,"t":"byte","b":[0,0,48,72,72,132,2,1]},{"a":49068,"t":"byte","b":[48,9,6,0,0,1,2,2]},{"a":49076,"t":"byte","b":[0,192,67,66,130,17,49,73]},{"a":49084,"t":"byte","b":[128,64,32,144,80,32,0,0]},{"a":49092,"t":"byte","b":[4,4,9,9,18,12,0,0]},{"a":49100,"t":"byte","b":[132,132,2,1,1,2,1,0]},{"a":49108,"t":"byte","b":[128,64,64,32,32,64,128,0]},{"a":49116,"t":"byte","b":[0,0,0,1,2,7,14,8]},{"a":49124,"t":"byte","b":[0,0,0,192,240,121,47,95]},{"a":49132,"t":"byte","b":[0,0,0,0,112,188,220,14]},{"a":49140,"t":"byte","b":[44,112,96,0,0,0,0,0]},{"a":49148,"t":"byte","b":[12,4,4,0]},{"a":49152,"l":"charset_1_middle","c":"Character set 1 from $C000, the middle of its character 56, to the middle of character 184.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":49160,"t":"byte","b":[0,1,15,28,0,0,0,0]},{"a":49168,"t":"byte","b":[0,238,95,47,0,0,0,0]},{"a":49176,"t":"byte","b":[0,192,128,240,36,64,0,0]},{"a":49184,"t":"byte","b":[0,0,0,0,113,96,0,0]},{"a":49192,"t":"byte","b":[0,0,0,0,252,252,254,124]},{"a":49200,"t":"byte","b":[12,4,0,0,0,0,0,0]},{"a":49208,"t":"byte","b":[0,14,95,175,0,0,0,0]},{"a":49216,"t":"byte","b":[0,192,128,128,3,3,7,7]},{"a":49224,"t":"byte","b":[12,8,0,0,115,97,129,1]},{"a":49232,"t":"byte","b":[0,0,0,0,224,224,248,240]},{"a":49240,"t":"byte","b":[240,120,112,32,32,0,0,0]},{"a":49248,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":49256,"t":"byte","b":[1,3,7,7,0,0,0,0]},{"a":49264,"t":"byte","b":[128,241,174,95,0,0,0,0]},{"a":49272,"t":"byte","b":[0,128,224,112,14,8,8,0]},{"a":49280,"t":"byte","b":[0,0,0,0,44,112,96,0]},{"a":49288,"t":"byte","b":[0,0,0,0,120,48,56,16]},{"a":49296,"t":"byte","b":[16,16,0,0,0,0,24,60]},{"a":49304,"t":"byte","b":[36,90,90,90,195,60,90,102]},{"a":49312,"t":"byte","b":[126,126,60,90,0,0,0,0]},{"a":49320,"t":"byte","b":[0,8,28,8,0,0,0,0]},{"a":49328,"t":"byte","b":[8,0,42,8,0,0,0,8]},{"a":49336,"t":"byte","b":[0,0,73,8,0,0,0,0]},{"a":49344,"t":"byte","b":[0,0,8,8,102,102,102,36]},{"a":49352,"t":"byte","b":[66,102,0,0,102,102,38,70]},{"a":49360,"t":"byte","b":[100,2,6,0,102,102,100,98]},{"a":49368,"t":"byte","b":[38,64,96,0,1,3,7,7]},{"a":49376,"t":"byte","b":[10,22,22,28,56,57,58,28]},{"a":49384,"t":"byte","b":[12,4,0,0,8,152,240,96]},{"a":49392,"t":"byte","b":[8,28,28,12,12,136,104,24]},{"a":49400,"t":"byte","b":[16,0,0,0,3,7,15,23]},{"a":49408,"t":"byte","b":[22,60,56,48,48,51,36,40]},{"a":49416,"t":"byte","b":[48,48,16,0,232,152,240,104]},{"a":49424,"t":"byte","b":[12,12,6,6,134,114,10,6]},{"a":49432,"t":"byte","b":[4,0,0,0,0,0,24,60]},{"a":49440,"t":"byte","b":[60,24,0,0,0,24,60,126]},{"a":49448,"t":"byte","b":[126,60,24,0,60,126,255,255]},{"a":49456,"t":"byte","b":[255,255,126,60,0,7,15,31]},{"a":49464,"t":"byte","b":[31,31,15,7,0,192,96,160]},{"a":49472,"t":"byte","b":[241,255,255,235,0,56,100,218]},{"a":49480,"t":"byte","b":[250,250,250,250,7,15,63,127]},{"a":49488,"t":"byte","b":[255,255,222,103,253,254,254,254]},{"a":49496,"t":"byte","b":[254,253,251,175,244,248,208,240]},{"a":49504,"t":"byte","b":[208,232,252,244,63,7,3,3]},{"a":49512,"t":"byte","b":[3,1,0,0,255,249,247,236]},{"a":49520,"t":"byte","b":[232,152,240,0,250,250,178,68]},{"a":49528,"t":"byte","b":[56,0,0,0,0,0,7,15]},{"a":49536,"t":"byte","b":[15,15,7,3,0,0,0,128]},{"a":49544,"t":"byte","b":[96,177,255,255,0,0,56,76]},{"a":49552,"t":"byte","b":[244,244,244,244,3,7,15,63]},{"a":49560,"t":"byte","b":[127,127,99,61,219,253,253,253]},{"a":49568,"t":"byte","b":[253,123,175,255,232,240,224,224]},{"a":49576,"t":"byte","b":[224,240,248,232,7,3,1,1]},{"a":49584,"t":"byte","b":[1,0,0,0,253,255,244,232]},{"a":49592,"t":"byte","b":[144,224,0,0,244,244,100,56]},{"a":49600,"t":"byte","b":[0,0,0,0,1,97,48,57]},{"a":49608,"t":"byte","b":[57,19,13,31,128,56,252,206]},{"a":49616,"t":"byte","b":[134,98,121,24,0,48,104,224]},{"a":49624,"t":"byte","b":[236,110,134,102,50,1,51,254]},{"a":49632,"t":"byte","b":[196,18,54,102,13,237,216,27]},{"a":49640,"t":"byte","b":[55,97,198,198,204,156,48,51]},{"a":49648,"t":"byte","b":[151,204,88,20,112,63,31,48]},{"a":49656,"t":"byte","b":[115,51,25,1,227,120,155,7]},{"a":49664,"t":"byte","b":[19,50,164,128,14,102,78,28]},{"a":49672,"t":"byte","b":[120,246,6,2,1,1,224,121]},{"a":49680,"t":"byte","b":[57,19,25,63,128,128,120,254]},{"a":49688,"t":"byte","b":[134,114,125,12,32,64,192,236]},{"a":49696,"t":"byte","b":[238,102,131,99,2,57,127,238]},{"a":49704,"t":"byte","b":[196,18,53,101,6,134,206,157]},{"a":49712,"t":"byte","b":[115,227,141,142,198,158,56,51]},{"a":49720,"t":"byte","b":[23,204,216,20,101,114,63,12]},{"a":49728,"t":"byte","b":[113,51,25,1,199,248,58,7]},{"a":49736,"t":"byte","b":[27,25,146,128,14,102,102,46]},{"a":49744,"t":"byte","b":[92,122,119,1,32,16,56,56]},{"a":49752,"t":"byte","b":[120,112,48,16,0,32,16,24]},{"a":49760,"t":"byte","b":[24,56,120,240,8,8,28,28]},{"a":49768,"t":"byte","b":[60,60,56,24,8,1,1,9]},{"a":49776,"t":"byte","b":[9,25,24,56,225,224,192,193]},{"a":49784,"t":"byte","b":[225,243,255,127,8,132,196,224]},{"a":49792,"t":"byte","b":[224,224,228,196,56,124,127,127]},{"a":49800,"t":"byte","b":[127,63,31,7,110,213,234,85]},{"a":49808,"t":"byte","b":[170,85,171,213,204,254,254,254]},{"a":49816,"t":"byte","b":[254,252,248,224,32,96,64,32]},{"a":49824,"t":"byte","b":[0,0,1,1,8,8,24,121]},{"a":49832,"t":"byte","b":[241,243,227,195,2,4,140,12]},{"a":49840,"t":"byte","b":[4,8,128,128,0,0,0,0]},{"a":49848,"t":"byte","b":[0,16,16,56,131,131,1,1]},{"a":49856,"t":"byte","b":[129,227,255,255,192,224,224,224]},{"a":49864,"t":"byte","b":[224,224,224,192,61,63,127,127]},{"a":49872,"t":"byte","b":[127,63,31,7,255,235,213,171]},{"a":49880,"t":"byte","b":[213,171,213,239,194,228,252,252]},{"a":49888,"t":"byte","b":[248,248,240,224,0,0,0,0]},{"a":49896,"t":"byte","b":[32,48,24,24,8,16,49,49]},{"a":49904,"t":"byte","b":[33,0,0,0,64,128,128,128]},{"a":49912,"t":"byte","b":[128,128,128,8,28,28,28,28]},{"a":49920,"t":"byte","b":[28,60,56,120,64,192,224,241]},{"a":49928,"t":"byte","b":[127,127,127,255,8,132,132,134]},{"a":49936,"t":"byte","b":[134,134,142,206,120,125,127,127]},{"a":49944,"t":"byte","b":[63,63,31,7,221,235,214,235]},{"a":49952,"t":"byte","b":[85,170,213,171,254,254,254,254]},{"a":49960,"t":"byte","b":[252,252,248,240,0,16,32,32]},{"a":49968,"t":"byte","b":[48,56,60,60,0,0,0,0]},{"a":49976,"t":"byte","b":[8,8,24,48,64,192,196,136]},{"a":49984,"t":"byte","b":[24,24,56,60,30,30,30,30]},{"a":49992,"t":"byte","b":[62,60,120,120,112,112,112,120]},{"a":50000,"t":"byte","b":[57,63,127,127,28,28,14,142]},{"a":50008,"t":"byte","b":[142,142,142,142,124,127,127,63]},{"a":50016,"t":"byte","b":[63,31,15,7,255,239,213,170]},{"a":50024,"t":"byte","b":[213,170,213,235,222,254,254,254]},{"a":50032,"t":"byte","b":[252,252,248,240,60,126,231,195]},{"a":50040,"t":"byte","b":[195,231,126,60,0,0,0,0]},{"a":50048,"t":"byte","b":[0,0,3,3,0,0,0,0]},{"a":50056,"t":"byte","b":[60,255,255,255,0,0,0,0]},{"a":50064,"t":"byte","b":[0,0,192,192,7,7,15,15]},{"a":50072,"t":"byte","b":[15,15,7,7,195,129,0,0]},{"a":50080,"t":"byte","b":[0,0,129,195,224,224,240,240]},{"a":50088,"t":"byte","b":[240,240,224,224,3,3,0,0]},{"a":50096,"t":"byte","b":[0,0,0,0,255,255,255,60]},{"a":50104,"t":"byte","b":[0,0,0,0,192,192,0,0]},{"a":50112,"t":"byte","b":[0,0,0,0,0,0,1,7]},{"a":50120,"t":"byte","b":[15,31,31,63,0,126,255,255]},{"a":50128,"t":"byte","b":[255,255,195,0,0,0,128,224]},{"a":50136,"t":"byte","b":[240,248,248,252,62,126,124,124]},{"a":50144,"t":"byte","b":[124,124,126,62,124,126,62,62]},{"a":50152,"t":"byte","b":[62,62,126,124,63,31,31,15]},{"a":50160,"t":"byte","b":[7,1,0,0,0,195,255,255]},{"a":50168,"t":"byte","b":[255,255,126,0,252,248,248,240]},{"a":50176,"l":"charset_1_end","c":"The rest of character set 1, to its last character, 244, at $C5DC.","t":"byte","b":[224,128,0,0,0,0,0,0]},{"a":50184,"t":"byte","b":[0,12,18,237,1,1,2,5]},{"a":50192,"t":"byte","b":[6,5,2,1,34,136,1,64]},{"a":50200,"t":"byte","b":[8,0,82,129,128,128,64,160]},{"a":50208,"t":"byte","b":[96,160,96,192,90,100,56,0]},{"a":50216,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":50224,"t":"byte","b":[3,4,9,8,0,0,0,15]},{"a":50232,"t":"byte","b":[144,65,20,0,0,0,0,0]},{"a":50240,"t":"byte","b":[128,64,192,64,4,13,16,40]},{"a":50248,"t":"byte","b":[32,52,17,10,34,0,1,64]},{"a":50256,"t":"byte","b":[0,0,9,0,192,160,16,8]},{"a":50264,"t":"byte","b":[168,24,40,24,2,3,1,0]},{"a":50272,"t":"byte","b":[0,0,0,0,80,4,83,168]},{"a":50280,"t":"byte","b":[112,0,0,0,144,160,0,0]},{"a":50288,"t":"byte","b":[0,0,0,0,0,0,15,16]},{"a":50296,"t":"byte","b":[34,40,32,0,0,31,32,73]},{"a":50304,"t":"byte","b":[64,0,0,0,0,128,64,32]},{"a":50312,"t":"byte","b":[16,144,16,16,56,68,160,128]},{"a":50320,"t":"byte","b":[144,132,64,34,32,4,4,2]},{"a":50328,"t":"byte","b":[10,2,18,132,24,0,4,5]},{"a":50336,"t":"byte","b":[2,1,0,0,2,0,64,4]},{"a":50344,"t":"byte","b":[35,4,248,0,56,16,144,32]},{"a":50352,"t":"byte","b":[192,0,0,0,0,0,0,0]},{"a":50360,"t":"byte","b":[4,4,14,62,15,3,1,0]},{"a":50368,"t":"byte","b":[0,0,1,1,247,231,129,195]},{"a":50376,"t":"byte","b":[198,180,252,252,0,192,240,128]},{"a":50384,"t":"byte","b":[0,0,0,0,3,2,4,0]},{"a":50392,"t":"byte","b":[0,0,0,0,134,2,1,0]},{"a":50400,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":50408,"t":"byte","b":[0,0,0,7,0,4,4,12]},{"a":50416,"t":"byte","b":[30,62,247,231,0,0,0,0]},{"a":50424,"t":"byte","b":[0,0,0,128,127,24,14,15]},{"a":50432,"t":"byte","b":[7,6,6,5,199,3,0,1]},{"a":50440,"t":"byte","b":[3,3,115,251,192,240,126,240]},{"a":50448,"t":"byte","b":[192,128,0,0,7,15,12,24]},{"a":50456,"t":"byte","b":[16,32,0,0,253,15,3,0]},{"a":50464,"t":"byte","b":[0,0,0,0,0,128,128,192]},{"a":50472,"t":"byte","b":[64,32,0,0,0,0,0,0]},{"a":50480,"t":"byte","b":[0,1,14,16,0,0,0,0]},{"a":50488,"t":"byte","b":[0,255,0,0,0,0,0,0]},{"a":50496,"t":"byte","b":[0,128,112,8,14,7,6,15]},{"a":50504,"t":"byte","b":[31,31,63,63,0,255,208,255]},{"a":50512,"t":"byte","b":[253,254,255,255,112,224,160,176]},{"a":50520,"t":"byte","b":[152,200,204,204,63,31,31,15]},{"a":50528,"t":"byte","b":[7,8,16,0,254,254,253,255]},{"a":50536,"t":"byte","b":[168,255,0,0,204,200,152,48]},{"a":50544,"t":"byte","b":[224,16,8,0,4,0,9,9]},{"a":50552,"t":"byte","b":[4,2,10,16,0,16,2,2]},{"a":50560,"t":"byte","b":[138,137,80,0,0,128,16,128]},{"a":50568,"t":"byte","b":[160,64,80,8,0,8,4,2]},{"a":50576,"t":"byte","b":[2,2,10,16,128,10,128,138]},{"a":50584,"t":"byte","b":[81,0,6,201,128,16,128,160]},{"a":50592,"t":"byte","b":[32,64,16,8,8,8,4,2]},{"a":50600,"t":"byte","b":[0,2,8,17,0,138,130,8]},{"a":50608,"t":"byte","b":[0,14,209,17,16,144,32,0]},{"a":50616,"t":"byte","b":[0,0,80,8,8,0,0,9]},{"a":50624,"t":"byte","b":[4,2,10,16,8,2,8,0]},{"a":50632,"t":"byte","b":[130,138,137,80,16,0,0,0]},{"a":50640,"t":"byte","b":[0,192,80,8,64,8,0,0]},{"a":50648,"t":"byte","b":[2,32,0,0,2,32,0,0]},{"a":50656,"t":"byte","b":[64,8,0,0]},{"a":50660,"l":"tape_error","c":"1 when the last load failed or was broken off with SPACE, 0 when it worked. After a save it is always 1: tape_transfer sets it and only a load that works clears it.","t":"byte","b":[1],"x":[50672,50697,50976,51013,51091,51110,52388]},{"a":50661,"l":"tape_load","c":"Loads DE bytes with flag byte B into IX from tape through the ROM's LD-BYTES, entered at $0562 with a white border; tape_error says how it went.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[50814,50948,50973,51010,51088,51107]},{"a":50663,"t":"code","b":[24,1],"m":"jr","oa":50666,"o":"tape_transfer"},{"a":50665,"l":"tape_save","c":"Saves DE bytes from IX with flag byte B through the ROM's SA-BYTES ($04C6).","t":"code","b":[175],"m":"xor","o":"a","x":[50798,50909,51042,51057]},{"a":50666,"l":"tape_transfer","c":"The common part: A is 1 to load, 0 to save.","t":"code","b":[103],"m":"ld","o":"h,a","x":[50663]},{"a":50667,"t":"code","b":[50,54,198],"m":"ld","oa":50742,"o":"(tape_loading),a"},{"a":50670,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":50672,"t":"code","b":[50,228,197],"m":"ld","oa":50660,"o":"(tape_error),a"},{"a":50675,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":50676,"t":"code","b":[55],"m":"scf"},{"a":50677,"t":"code","b":[37],"m":"dec","o":"h"},{"a":50678,"t":"code","b":[40,4],"m":"jr","oa":50684,"o":"z,$C5FC"},{"a":50680,"t":"code","b":[205,18,198],"m":"call","oa":50706,"o":"call_sa_bytes"},{"a":50683,"t":"code","b":[201],"m":"ret"},{"a":50684,"t":"code","b":[205,25,198],"m":"call","oa":50713,"o":"call_ld_bytes","x":[50678]},{"a":50687,"t":"code","b":[56,4],"m":"jr","oa":50693,"o":"c,$C605"},{"a":50689,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":50691,"t":"code","b":[55],"m":"scf","x":[50704]},{"a":50692,"t":"code","b":[201],"m":"ret"},{"a":50693,"t":"code","b":[58,54,198],"m":"ld","oa":50742,"o":"a,(tape_loading)","x":[50687]},{"a":50696,"t":"code","b":[61],"m":"dec","o":"a"},{"a":50697,"t":"code","b":[50,228,197],"m":"ld","oa":50660,"o":"(tape_error),a"},{"a":50700,"t":"code","b":[183],"m":"or","o":"a"},{"a":50701,"t":"code","b":[200],"m":"ret","o":"z"},{"a":50702,"t":"code","b":[62,107],"m":"ld","o":"a,$6B"},{"a":50704,"t":"code","b":[24,241],"m":"jr","oa":50691,"o":"$C603"},{"a":50706,"l":"call_sa_bytes","c":"Calls SA-BYTES with tape_check as its return.","t":"code","b":[33,39,198],"m":"ld","o":"hl,$C627","x":[50680]},{"a":50709,"t":"code","b":[229],"m":"push","o":"hl"},{"a":50710,"t":"code","b":[195,198,4],"m":"jp","oa":1222,"o":"$04C6"},{"a":50713,"l":"call_ld_bytes","c":"Calls LD-BYTES past its own set-up, with tape_check as its return.","t":"code","b":[20],"m":"inc","o":"d","x":[50684]},{"a":50714,"t":"code","b":[8],"m":"ex","o":"af,af'"},{"a":50715,"t":"code","b":[21],"m":"dec","o":"d"},{"a":50716,"t":"code","b":[62,15],"m":"ld","o":"a,$0F"},{"a":50718,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":50720,"t":"code","b":[33,39,198],"m":"ld","o":"hl,$C627"},{"a":50723,"t":"code","b":[229],"m":"push","o":"hl"},{"a":50724,"t":"code","b":[195,98,5],"m":"jp","oa":1378,"o":"$0562"},{"a":50727,"l":"tape_check","c":"Where the ROM's tape routines return: SPACE held drops the return address of the caller, so the operation is abandoned with tape_error still 1.","t":"code","b":[245],"m":"push","o":"af"},{"a":50728,"t":"code","b":[1,254,127],"m":"ld","o":"bc,$7FFE"},{"a":50731,"t":"code","b":[175],"m":"xor","o":"a"},{"a":50732,"t":"code","b":[237,121],"m":"out","o":"(c),a"},{"a":50734,"t":"code","b":[237,120],"m":"in","o":"a,(c)"},{"a":50736,"t":"code","b":[31],"m":"rra"},{"a":50737,"t":"code","b":[56,1],"m":"jr","oa":50740,"o":"c,$C634"},{"a":50739,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":50740,"t":"code","b":[241],"m":"pop","o":"af","x":[50737]},{"a":50741,"t":"code","b":[201],"m":"ret"},{"a":50742,"l":"tape_loading","c":"1 while loading, 0 while saving.","t":"byte","b":[0],"x":[50667,50693]},{"a":50743,"l":"file_name","c":"The twelve characters of the file name the player typed, the last three its extension.","t":"text","b":[32,32,32,32,32,32,32,32,46,32,32,32],"d":"        .   ","enc":"zx"},{"a":50755,"l":"file_name_end","c":"The $FF after the file name.","t":"byte","b":[255]},{"a":50756,"l":"set_extension","c":"Puts the three characters at HL into the file name's extension.","t":"code","b":[17,64,198],"m":"ld","o":"de,$C640","x":[50881,50916,50958,51027,51070]},{"a":50759,"t":"code","b":[1,3,0],"m":"ld","o":"bc,$0003"},{"a":50762,"t":"code","b":[237,176],"m":"ldir"},{"a":50764,"t":"code","b":[201],"m":"ret"},{"a":50765,"l":"ext_wizard","c":"The extension of a wizard file.","t":"text","b":[87,73,90],"d":"WIZ","enc":"zx"},{"a":50768,"l":"ext_saved_game","c":"The extension of a saved game.","t":"text","b":[83,86,71],"d":"SVG","enc":"zx"},{"a":50771,"l":"ext_scenario","c":"The extension of a scenario.","t":"text","b":[71,65,77],"d":"GAM","enc":"zx"},{"a":50774,"l":"designer_name","c":"The name of the designer's file.","t":"text","b":[68,69,83,73,71,78,69,82,46,32,32,32],"d":"DESIGNER.   ","enc":"zx"},{"a":50786,"l":"menu_choice","c":"The option chosen on the last menu.","t":"byte","b":[0],"x":[28367,28471,28515,28524,28535,28556,28565,28706,28730,28760,28783,28832,37400,37564,37670,43744,50890,50926,51453,51470,52290,52320,52332,52368,52406,52421,52435,52452,52531]},{"a":50787,"l":"panel_value_1","c":"A value the file panels keep (used by the panels at $CC45 and by the designer).","t":"byte","b":[0],"x":[52293,52323,52329]},{"a":50788,"l":"panel_value_2","c":"A second value the file panels keep.","t":"byte","b":[0],"x":[52296,52365,52409,52418,52534]},{"a":50789,"l":"save_header","c":"Saves the file name as the game's own header (twelve bytes, flag $64) and waits.","t":"code","b":[221,33,55,198],"m":"ld","o":"ix,$C637","x":[50884,51030]},{"a":50793,"t":"code","b":[17,12,0],"m":"ld","o":"de,$000C"},{"a":50796,"t":"code","b":[6,100],"m":"ld","o":"b,$64"},{"a":50798,"t":"code","b":[205,233,197],"m":"call","oa":50665,"o":"tape_save"},{"a":50801,"t":"code","b":[205,26,149],"m":"call","oa":38170,"o":"delay_255"},{"a":50804,"t":"code","b":[201],"m":"ret"},{"a":50805,"l":"find_file","c":"Reads the game's headers from tape (twelve bytes, flag $64, into found_name) until one matches the file name, showing each name found at row $16, column $0B with SEARCHING: and LOADING:. Z set when SPACE was held. Only the first character is compared (B is loaded with 12 but nothing counts it down), so the first file whose name starts with the same letter or digit is taken, whatever its extension.","t":"code","b":[221,33,178,198],"m":"ld","o":"ix,$C6B2","x":[50864,50919,50961,50998,51073]},{"a":50809,"t":"code","b":[17,12,0],"m":"ld","o":"de,$000C"},{"a":50812,"t":"code","b":[6,100],"m":"ld","o":"b,$64"},{"a":50814,"t":"code","b":[205,229,197],"m":"call","oa":50661,"o":"tape_load"},{"a":50817,"t":"code","b":[205,142,2],"m":"call","oa":654,"o":"$028E"},{"a":50820,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":50821,"t":"code","b":[254,32],"m":"cp","o":"$20"},{"a":50823,"t":"code","b":[200],"m":"ret","o":"z"},{"a":50824,"t":"code","b":[33,22,11],"m":"ld","o":"hl,$0B16"},{"a":50827,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":50830,"t":"code","b":[17,178,198],"m":"ld","o":"de,$C6B2"},{"a":50833,"t":"code","b":[6,12],"m":"ld","o":"b,$0C"},{"a":50835,"t":"code","b":[205,187,205],"m":"call","oa":52667,"o":"show_name"},{"a":50838,"t":"code","b":[6,12],"m":"ld","o":"b,$0C"},{"a":50840,"t":"code","b":[33,55,198],"m":"ld","o":"hl,$C637"},{"a":50843,"t":"code","b":[17,178,198],"m":"ld","o":"de,$C6B2"},{"a":50846,"t":"code","b":[26],"m":"ld","o":"a,(de)"},{"a":50847,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":50848,"t":"code","b":[32,9],"m":"jr","oa":50859,"o":"nz,$C6AB"},{"a":50850,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":50852,"t":"code","b":[205,147,200],"m":"call","oa":51347,"o":"print_tape_status"},{"a":50855,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":50857,"t":"code","b":[183],"m":"or","o":"a"},{"a":50858,"t":"code","b":[201],"m":"ret"},{"a":50859,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[50848]},{"a":50861,"t":"code","b":[205,147,200],"m":"call","oa":51347,"o":"print_tape_status"},{"a":50864,"t":"code","b":[24,195],"m":"jr","oa":50805,"o":"find_file"},{"a":50866,"l":"found_name","c":"The name in the last header read from tape.","t":"text","b":[0,0,0,0,0,0,0,0,0,0,0,0],"d":"............","enc":"zx"},{"a":50878,"l":"save_wizard","c":"SAVE WIZARD: saves the chosen wizard's 70-byte record ($CEA4 + 70 x (choice + 1)) with a header named with the extension WIZ.","t":"code","b":[33,77,198],"m":"ld","o":"hl,$C64D","x":[52525]},{"a":50881,"t":"code","b":[205,68,198],"m":"call","oa":50756,"o":"set_extension"},{"a":50884,"t":"code","b":[205,101,198],"m":"call","oa":50789,"o":"save_header"},{"a":50887,"t":"code","b":[17,70,0],"m":"ld","o":"de,$0046"},{"a":50890,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":50893,"t":"code","b":[60],"m":"inc","o":"a"},{"a":50894,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":50895,"t":"code","b":[33,164,206],"m":"ld","o":"hl,$CEA4"},{"a":50898,"t":"code","b":[25],"m":"add","o":"hl,de","x":[50899]},{"a":50899,"t":"code","b":[16,253],"m":"djnz","oa":50898,"o":"$C6D2"},{"a":50901,"t":"code","b":[229],"m":"push","o":"hl"},{"a":50902,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":50904,"t":"code","b":[17,70,0],"m":"ld","o":"de,$0046"},{"a":50907,"t":"code","b":[6,200],"m":"ld","o":"b,$C8"},{"a":50909,"t":"code","b":[205,233,197],"m":"call","oa":50665,"o":"tape_save"},{"a":50912,"t":"code","b":[201],"m":"ret"},{"a":50913,"l":"load_wizard","c":"LOAD WIZARD: finds the file and loads 70 bytes into the chosen wizard's record.","t":"code","b":[33,77,198],"m":"ld","o":"hl,$C64D","x":[52385]},{"a":50916,"t":"code","b":[205,68,198],"m":"call","oa":50756,"o":"set_extension"},{"a":50919,"t":"code","b":[205,117,198],"m":"call","oa":50805,"o":"find_file"},{"a":50922,"t":"code","b":[200],"m":"ret","o":"z"},{"a":50923,"t":"code","b":[17,70,0],"m":"ld","o":"de,$0046"},{"a":50926,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":50929,"t":"code","b":[60],"m":"inc","o":"a"},{"a":50930,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":50931,"t":"code","b":[33,164,206],"m":"ld","o":"hl,$CEA4"},{"a":50934,"t":"code","b":[25],"m":"add","o":"hl,de","x":[50935]},{"a":50935,"t":"code","b":[16,253],"m":"djnz","oa":50934,"o":"$C6F6"},{"a":50937,"t":"code","b":[229],"m":"push","o":"hl"},{"a":50938,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":50940,"t":"code","b":[34,4,91],"m":"ld","oa":23300,"o":"($5B04),hl"},{"a":50943,"t":"code","b":[17,70,0],"m":"ld","o":"de,$0046"},{"a":50946,"t":"code","b":[6,200],"m":"ld","o":"b,$C8"},{"a":50948,"t":"code","b":[205,229,197],"m":"call","oa":50661,"o":"tape_load"},{"a":50951,"t":"code","b":[201],"m":"ret"},{"a":50952,"l":"load_scenario","c":"LOAD SCENARIO: asks for the file name, finds the file (extension GAM) and loads $2FFD bytes at $D003. On success the panel starts again ($CC39); on failure it returns.","t":"code","b":[205,58,205],"m":"call","oa":52538,"o":"ask_file_name"},{"a":50955,"t":"code","b":[33,83,198],"m":"ld","o":"hl,$C653"},{"a":50958,"t":"code","b":[205,68,198],"m":"call","oa":50756,"o":"set_extension"},{"a":50961,"t":"code","b":[205,117,198],"m":"call","oa":50805,"o":"find_file"},{"a":50964,"t":"code","b":[221,33,3,208],"m":"ld","o":"ix,$D003"},{"a":50968,"t":"code","b":[17,253,47],"m":"ld","o":"de,$2FFD"},{"a":50971,"t":"code","b":[6,200],"m":"ld","o":"b,$C8"},{"a":50973,"t":"code","b":[205,229,197],"m":"call","oa":50661,"o":"tape_load"},{"a":50976,"t":"code","b":[58,228,197],"m":"ld","oa":50660,"o":"a,(tape_error)"},{"a":50979,"t":"code","b":[183],"m":"or","o":"a"},{"a":50980,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":50981,"t":"code","b":[195,57,204],"m":"jp","oa":52281,"o":"file_panel"},{"a":50984,"l":"load_designer","c":"LOAD DESIGNER: finds the file DESIGNER. and loads $0E45 bytes at $D3DC, then starts the designer there.","t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":50987,"t":"code","b":[33,86,198],"m":"ld","o":"hl,$C656"},{"a":50990,"t":"code","b":[17,55,198],"m":"ld","o":"de,$C637"},{"a":50993,"t":"code","b":[1,12,0],"m":"ld","o":"bc,$000C"},{"a":50996,"t":"code","b":[237,176],"m":"ldir"},{"a":50998,"t":"code","b":[205,117,198],"m":"call","oa":50805,"o":"find_file"},{"a":51001,"t":"code","b":[221,33,220,211],"m":"ld","o":"ix,$D3DC"},{"a":51005,"t":"code","b":[17,69,14],"m":"ld","o":"de,$0E45"},{"a":51008,"t":"code","b":[6,200],"m":"ld","o":"b,$C8"},{"a":51010,"t":"code","b":[205,229,197],"m":"call","oa":50661,"o":"tape_load"},{"a":51013,"t":"code","b":[58,228,197],"m":"ld","oa":50660,"o":"a,(tape_error)"},{"a":51016,"t":"code","b":[183],"m":"or","o":"a"},{"a":51017,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":51018,"t":"code","b":[195,220,211],"m":"jp","oa":54236,"o":"$D3DC"},{"a":51021,"l":"save_game","c":"Saves the game: asks for the file name and saves a header (extension SVG), the object table and the creature records ($0514 bytes from $5B5A) and everything from $CEEA to the top of memory.","t":"code","b":[205,58,205],"m":"call","oa":52538,"o":"ask_file_name","x":[51498]},{"a":51024,"t":"code","b":[33,80,198],"m":"ld","o":"hl,$C650"},{"a":51027,"t":"code","b":[205,68,198],"m":"call","oa":50756,"o":"set_extension"},{"a":51030,"t":"code","b":[205,101,198],"m":"call","oa":50789,"o":"save_header"},{"a":51033,"t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A"},{"a":51037,"t":"code","b":[17,20,5],"m":"ld","o":"de,$0514"},{"a":51040,"t":"code","b":[6,200],"m":"ld","o":"b,$C8"},{"a":51042,"t":"code","b":[205,233,197],"m":"call","oa":50665,"o":"tape_save"},{"a":51045,"t":"code","b":[205,26,149],"m":"call","oa":38170,"o":"delay_255"},{"a":51048,"t":"code","b":[221,33,234,206],"m":"ld","o":"ix,$CEEA"},{"a":51052,"t":"code","b":[17,21,49],"m":"ld","o":"de,$3115"},{"a":51055,"t":"code","b":[6,200],"m":"ld","o":"b,$C8"},{"a":51057,"t":"code","b":[205,233,197],"m":"call","oa":50665,"o":"tape_save"},{"a":51060,"t":"code","b":[201],"m":"ret"},{"a":51061,"l":"load_game","c":"LOAD SAVED GAME: finds the file and loads its two blocks back, then goes into the game's turn loop; a failure goes back to the panel.","t":"code","b":[49,243,255],"m":"ld","o":"sp,$FFF3"},{"a":51064,"t":"code","b":[205,58,205],"m":"call","oa":52538,"o":"ask_file_name"},{"a":51067,"t":"code","b":[33,80,198],"m":"ld","o":"hl,$C650"},{"a":51070,"t":"code","b":[205,68,198],"m":"call","oa":50756,"o":"set_extension"},{"a":51073,"t":"code","b":[205,117,198],"m":"call","oa":50805,"o":"find_file"},{"a":51076,"t":"code","b":[202,57,204],"m":"jp","oa":52281,"o":"z,file_panel"},{"a":51079,"t":"code","b":[221,33,90,91],"m":"ld","o":"ix,$5B5A"},{"a":51083,"t":"code","b":[17,20,5],"m":"ld","o":"de,$0514"},{"a":51086,"t":"code","b":[6,200],"m":"ld","o":"b,$C8"},{"a":51088,"t":"code","b":[205,229,197],"m":"call","oa":50661,"o":"tape_load"},{"a":51091,"t":"code","b":[58,228,197],"m":"ld","oa":50660,"o":"a,(tape_error)"},{"a":51094,"t":"code","b":[183],"m":"or","o":"a"},{"a":51095,"t":"code","b":[194,57,204],"m":"jp","oa":52281,"o":"nz,file_panel"},{"a":51098,"t":"code","b":[221,33,234,206],"m":"ld","o":"ix,$CEEA"},{"a":51102,"t":"code","b":[17,21,49],"m":"ld","o":"de,$3115"},{"a":51105,"t":"code","b":[6,200],"m":"ld","o":"b,$C8"},{"a":51107,"t":"code","b":[205,229,197],"m":"call","oa":50661,"o":"tape_load"},{"a":51110,"t":"code","b":[58,228,197],"m":"ld","oa":50660,"o":"a,(tape_error)"},{"a":51113,"t":"code","b":[183],"m":"or","o":"a"},{"a":51114,"t":"code","b":[194,57,204],"m":"jp","oa":52281,"o":"nz,file_panel"},{"a":51117,"t":"code","b":[195,52,97],"m":"jp","oa":24884,"o":"game_turn_loop"},{"a":51120,"l":"sounds","c":"The game's sixteen sounds, eight bytes each: copied to sound_steps by set_sound.","t":"byte","b":[4,4,213,1,213,1,213,1]},{"a":51128,"t":"byte","b":[12,15,4,8,16,32,64,128]},{"a":51136,"t":"byte","b":[1,2,203,220,251,230,251,240]},{"a":51144,"t":"byte","b":[1,1,4,0,2,0,8,0]},{"a":51152,"t":"byte","b":[4,3,16,1,16,85,16,170]},{"a":51160,"t":"byte","b":[1,1,2,0,1,0,1,10]},{"a":51168,"t":"byte","b":[2,1,2,0,3,0,4,0]},{"a":51176,"t":"byte","b":[4,1,2,0,7,0,63,60]},{"a":51184,"t":"byte","b":[21,1,3,70,5,70,1,1]},{"a":51192,"t":"byte","b":[50,1,3,120,3,140,3,130]},{"a":51200,"t":"byte","b":[50,1,251,250,254,250,253,250]},{"a":51208,"t":"byte","b":[180,1,253,200,254,160,252,100]},{"a":51216,"t":"byte","b":[80,2,4,190,21,57,235,90]},{"a":51224,"t":"byte","b":[1,2,1,0,2,0,12,0]},{"a":51232,"t":"byte","b":[140,10,247,90,224,200,249,1]},{"a":51240,"t":"byte","b":[82,4,25,1,25,1,25,1]},{"a":51248,"l":"sound_steps","c":"How many groups of notes the sound plays.","t":"byte","b":[0],"x":[51286]},{"a":51249,"l":"sound_repeats","c":"How many times each group plays its three notes.","t":"byte","b":[0],"x":[51291]},{"a":51250,"l":"sound_notes","c":"Three pairs of bytes: how much the note's delay changes after each group, then its delay.","t":"byte","b":[0,0,0,0,0,0]},{"a":51256,"l":"speaker","c":"The last byte sent to the speaker (bit 4).","t":"byte","b":[0],"x":[51311,51316]},{"a":51257,"l":"sound_running","c":"Set while a sound is spread over a drawing, which gives it a step now and then ($C856).","t":"byte","b":[0],"x":[31159,31209,33870,33886,43600]},{"a":51258,"l":"set_sound","c":"Makes sound A the one to play: its eight bytes into sound_steps.","t":"code","b":[111],"m":"ld","o":"l,a","x":[31149,31189,33853,35878,44774,46602,51278]},{"a":51259,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":51261,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":51262,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":51263,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":51264,"t":"code","b":[17,176,199],"m":"ld","o":"de,$C7B0"},{"a":51267,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":51268,"t":"code","b":[17,48,200],"m":"ld","o":"de,$C830"},{"a":51271,"t":"code","b":[1,8,0],"m":"ld","o":"bc,$0008"},{"a":51274,"t":"code","b":[237,176],"m":"ldir"},{"a":51276,"t":"code","b":[201],"m":"ret"},{"a":51277,"l":"sound_0","c":"start_sound for sound 0.","t":"code","b":[175],"m":"xor","o":"a","x":[24756,33079,37470,52027,52646]},{"a":51278,"l":"start_sound","c":"Sets sound A and plays it at once, unless the turn is hidden ($D066).","t":"code","b":[205,58,200],"m":"call","oa":51258,"o":"set_sound","x":[27054,28681,28907,29559,29655,29932,33848,36319]},{"a":51281,"t":"code","b":[58,102,208],"m":"ld","oa":53350,"o":"a,($D066)"},{"a":51284,"t":"code","b":[183],"m":"or","o":"a"},{"a":51285,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":51286,"l":"play_sound","c":"Plays the sound set up in sound_steps: for each group, each note's delay loop then a click of the speaker, repeated, the delays changing between groups.","t":"code","b":[58,48,200],"m":"ld","oa":51248,"o":"a,(sound_steps)","x":[33875,36036,43604,44539,44724,44788]},{"a":51289,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":51290,"t":"code","b":[197],"m":"push","o":"bc","x":[51344]},{"a":51291,"t":"code","b":[58,49,200],"m":"ld","oa":51249,"o":"a,(sound_repeats)"},{"a":51294,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":51295,"t":"code","b":[197],"m":"push","o":"bc","x":[51326]},{"a":51296,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":51298,"t":"code","b":[33,51,200],"m":"ld","o":"hl,$C833"},{"a":51301,"t":"code","b":[17,2,0],"m":"ld","o":"de,$0002"},{"a":51304,"t":"code","b":[197],"m":"push","o":"bc","x":[51323]},{"a":51305,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":51306,"t":"code","b":[0],"m":"nop","x":[51309]},{"a":51307,"t":"code","b":[0],"m":"nop"},{"a":51308,"t":"code","b":[0],"m":"nop"},{"a":51309,"t":"code","b":[16,251],"m":"djnz","oa":51306,"o":"$C86A"},{"a":51311,"t":"code","b":[58,56,200],"m":"ld","oa":51256,"o":"a,(speaker)"},{"a":51314,"t":"code","b":[238,16],"m":"xor","o":"$10"},{"a":51316,"t":"code","b":[50,56,200],"m":"ld","oa":51256,"o":"(speaker),a"},{"a":51319,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":51321,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":51322,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":51323,"t":"code","b":[16,235],"m":"djnz","oa":51304,"o":"$C868"},{"a":51325,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":51326,"t":"code","b":[16,223],"m":"djnz","oa":51295,"o":"$C85F"},{"a":51328,"t":"code","b":[33,50,200],"m":"ld","o":"hl,$C832"},{"a":51331,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":51333,"t":"code","b":[17,2,0],"m":"ld","o":"de,$0002"},{"a":51336,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[51341]},{"a":51337,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":51338,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":51339,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":51340,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":51341,"t":"code","b":[16,249],"m":"djnz","oa":51336,"o":"$C888"},{"a":51343,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":51344,"t":"code","b":[16,200],"m":"djnz","oa":51290,"o":"$C85A"},{"a":51346,"t":"code","b":[201],"m":"ret"},{"a":51347,"l":"print_tape_status","c":"Prints SEARCHING:, LOADING: or FILE NAME: (A = 1 to 3) on row $16, in double height, from the little text tables after it.","t":"code","b":[33,20,91],"m":"ld","o":"hl,$5B14","x":[50852,50861,52540]},{"a":51350,"t":"code","b":[54,8],"m":"ld","o":"(hl),$08"},{"a":51352,"t":"code","b":[33,186,200],"m":"ld","o":"hl,$C8BA"},{"a":51355,"t":"code","b":[34,251,255],"m":"ld","oa":65531,"o":"($FFFB),hl"},{"a":51358,"t":"code","b":[33,195,200],"m":"ld","o":"hl,$C8C3"},{"a":51361,"t":"code","b":[34,253,255],"m":"ld","oa":65533,"o":"($FFFD),hl"},{"a":51364,"t":"code","b":[33,0,60],"m":"ld","o":"hl,$3C00"},{"a":51367,"t":"code","b":[34,14,91],"m":"ld","oa":23310,"o":"($5B0E),hl"},{"a":51370,"t":"code","b":[33,22,0],"m":"ld","o":"hl,$0016"},{"a":51373,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":51376,"t":"code","b":[33,68,68],"m":"ld","o":"hl,$4444"},{"a":51379,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":51382,"t":"code","b":[205,156,171],"m":"call","oa":43932,"o":"print_message"},{"a":51385,"t":"code","b":[201],"m":"ret"},{"a":51386,"l":"tape_messages","c":"The three messages of print_tape_status, one word each.","t":"byte","b":[2,1,2,2,5,254,68,68]},{"a":51394,"t":"byte","b":[3]},{"a":51395,"l":"tape_words","c":"The words of print_tape_status.","t":"text","b":[11,83,69,65,82,67,72,73,78,71,58,11,76,79,65,68,73,78,71,58,32,32,11,70,73,76,69,32,78,65,77,69],"d":".SEARCHING:.LOADING:  .FILE NAME","enc":"zx"},{"a":51427,"t":"text","b":[58],"d":":","enc":"zx"},{"a":51428,"l":"end_of_turn_menu","c":"The menu at the end of each game turn (the scenario's message $E8): CONTINUE goes back to the turn loop; ABANDON forgets the scenario ($D03F) and goes back to the file panel; SAVE GAME saves it, but in a game against the computer only five times ($D068 counts; the menu comes back after the fifth).","t":"code","b":[62,70],"m":"ld","o":"a,$46","x":[24988,51492]},{"a":51430,"t":"code","b":[205,213,99],"m":"call","oa":25557,"o":"fill_screen"},{"a":51433,"t":"code","b":[62,232],"m":"ld","o":"a,$E8"},{"a":51435,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":51438,"t":"code","b":[62,66],"m":"ld","o":"a,$42"},{"a":51440,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":51443,"t":"code","b":[33,8,9],"m":"ld","o":"hl,$0908"},{"a":51446,"t":"code","b":[17,15,22],"m":"ld","o":"de,$160F"},{"a":51449,"t":"code","b":[205,138,201],"m":"call","oa":51594,"o":"draw_frame"},{"a":51452,"t":"code","b":[175],"m":"xor","o":"a"},{"a":51453,"t":"code","b":[50,98,198],"m":"ld","oa":50786,"o":"(menu_choice),a"},{"a":51456,"t":"code","b":[50,11,91],"m":"ld","oa":23307,"o":"($5B0B),a"},{"a":51459,"t":"code","b":[205,98,146],"m":"call","oa":37474,"o":"highlight_file_option"},{"a":51462,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":51464,"t":"code","b":[50,10,91],"m":"ld","oa":23306,"o":"($5B0A),a"},{"a":51467,"t":"code","b":[205,44,203],"m":"call","oa":52012,"o":"run_file_menu"},{"a":51470,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":51473,"t":"code","b":[183],"m":"or","o":"a"},{"a":51474,"t":"code","b":[202,52,97],"m":"jp","oa":24884,"o":"z,game_turn_loop"},{"a":51477,"t":"code","b":[254,2],"m":"cp","o":"$02"},{"a":51479,"t":"code","b":[40,20],"m":"jr","oa":51501,"o":"z,$C92D"},{"a":51481,"t":"code","b":[58,100,208],"m":"ld","oa":53348,"o":"a,($D064)"},{"a":51484,"t":"code","b":[183],"m":"or","o":"a"},{"a":51485,"t":"code","b":[40,11],"m":"jr","oa":51498,"o":"z,$C92A"},{"a":51487,"t":"code","b":[58,104,208],"m":"ld","oa":53352,"o":"a,($D068)"},{"a":51490,"t":"code","b":[254,5],"m":"cp","o":"$05"},{"a":51492,"t":"code","b":[40,190],"m":"jr","oa":51428,"o":"z,end_of_turn_menu"},{"a":51494,"t":"code","b":[60],"m":"inc","o":"a"},{"a":51495,"t":"code","b":[50,104,208],"m":"ld","oa":53352,"o":"($D068),a"},{"a":51498,"t":"code","b":[195,77,199],"m":"jp","oa":51021,"o":"save_game","x":[51485]},{"a":51501,"t":"code","b":[175],"m":"xor","o":"a","x":[36430,51479]},{"a":51502,"t":"code","b":[50,63,208],"m":"ld","oa":53311,"o":"($D03F),a"},{"a":51505,"t":"code","b":[58,100,208],"m":"ld","oa":53348,"o":"a,($D064)"},{"a":51508,"t":"code","b":[183],"m":"or","o":"a"},{"a":51509,"t":"code","b":[40,7],"m":"jr","oa":51518,"o":"z,$C93E"},{"a":51511,"t":"code","b":[175],"m":"xor","o":"a"},{"a":51512,"t":"code","b":[50,119,207],"m":"ld","oa":53111,"o":"($CF77),a"},{"a":51515,"t":"code","b":[50,189,207],"m":"ld","oa":53181,"o":"($CFBD),a"},{"a":51518,"t":"code","b":[195,57,204],"m":"jp","oa":52281,"o":"file_panel","x":[51509]},{"a":51521,"l":"random_wizard","c":"Makes a wizard at random in record $5B04 for a player with none: 80 mana, level 0, each of the 45 spells at a random level from 0 to 2, the standard figures and the name WIZARD followed by the player's number.","t":"code","b":[42,4,91],"m":"ld","oa":23300,"o":"hl,($5B04)","x":[24783]},{"a":51524,"t":"code","b":[54,80],"m":"ld","o":"(hl),$50"},{"a":51526,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":51527,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":51529,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":51530,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":51532,"t":"code","b":[50,34,91],"m":"ld","oa":23330,"o":"($5B22),a"},{"a":51535,"t":"code","b":[6,45],"m":"ld","o":"b,$2D"},{"a":51537,"t":"code","b":[205,55,167],"m":"call","oa":42807,"o":"random_below","x":[51546]},{"a":51540,"t":"code","b":[7],"m":"rlca"},{"a":51541,"t":"code","b":[7],"m":"rlca"},{"a":51542,"t":"code","b":[7],"m":"rlca"},{"a":51543,"t":"code","b":[7],"m":"rlca"},{"a":51544,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":51545,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":51546,"t":"code","b":[16,245],"m":"djnz","oa":51537,"o":"$C951"},{"a":51548,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":51549,"t":"code","b":[33,115,201],"m":"ld","o":"hl,$C973"},{"a":51552,"t":"code","b":[1,23,0],"m":"ld","o":"bc,$0017"},{"a":51555,"t":"code","b":[237,176],"m":"ldir"},{"a":51557,"t":"code","b":[42,4,91],"m":"ld","oa":23300,"o":"hl,($5B04)"},{"a":51560,"t":"code","b":[17,65,0],"m":"ld","o":"de,$0041"},{"a":51563,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":51564,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":51567,"t":"code","b":[198,48],"m":"add","o":"a,$30"},{"a":51569,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":51570,"t":"code","b":[201],"m":"ret"},{"a":51571,"l":"random_wizard_figures","c":"The figures of a wizard made at random (twelve bytes, laid out as a creature type) and its name.","t":"byte","b":[34,0,34,34,6,6,90,36]},{"a":51579,"t":"byte","b":[95,2,20,140,87,73,90,65]},{"a":51587,"t":"byte","b":[82,68,250,250,250,250,0]},{"a":51594,"l":"draw_frame","c":"Draws a frame in the game's own font from row $5B00, column $5B01 to row $5B02, column $5B03 (HL and DE): corners, top and bottom edges, sides.","t":"code","b":[34,0,91],"m":"ld","oa":23296,"o":"($5B00),hl","x":[33067,34704,34719,36467,37395,51449,52130,52144]},{"a":51597,"t":"code","b":[237,83,2,91],"m":"ld","oa":23298,"o":"($5B02),de"},{"a":51601,"t":"code","b":[33,49,149],"m":"ld","o":"hl,$9531"},{"a":51604,"t":"code","b":[34,14,91],"m":"ld","oa":23310,"o":"($5B0E),hl"},{"a":51607,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":51609,"t":"code","b":[50,20,91],"m":"ld","oa":23316,"o":"($5B14),a"},{"a":51612,"t":"code","b":[42,0,91],"m":"ld","oa":23296,"o":"hl,($5B00)"},{"a":51615,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":51618,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":51620,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small"},{"a":51623,"t":"code","b":[42,2,91],"m":"ld","oa":23298,"o":"hl,($5B02)"},{"a":51626,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":51629,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":51631,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small"},{"a":51634,"t":"code","b":[58,0,91],"m":"ld","oa":23296,"o":"a,($5B00)"},{"a":51637,"t":"code","b":[50,21,91],"m":"ld","oa":23317,"o":"($5B15),a"},{"a":51640,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":51642,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small"},{"a":51645,"t":"code","b":[58,2,91],"m":"ld","oa":23298,"o":"a,($5B02)"},{"a":51648,"t":"code","b":[50,21,91],"m":"ld","oa":23317,"o":"($5B15),a"},{"a":51651,"t":"code","b":[58,1,91],"m":"ld","oa":23297,"o":"a,($5B01)"},{"a":51654,"t":"code","b":[50,22,91],"m":"ld","oa":23318,"o":"($5B16),a"},{"a":51657,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":51659,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small"},{"a":51662,"t":"code","b":[58,3,91],"m":"ld","oa":23299,"o":"a,($5B03)"},{"a":51665,"t":"code","b":[33,1,91],"m":"ld","o":"hl,$5B01"},{"a":51668,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":51669,"t":"code","b":[61],"m":"dec","o":"a"},{"a":51670,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":51671,"t":"code","b":[58,1,91],"m":"ld","oa":23297,"o":"a,($5B01)"},{"a":51674,"t":"code","b":[60],"m":"inc","o":"a"},{"a":51675,"t":"code","b":[50,22,91],"m":"ld","oa":23318,"o":"($5B16),a"},{"a":51678,"t":"code","b":[197],"m":"push","o":"bc","x":[51706]},{"a":51679,"t":"code","b":[58,0,91],"m":"ld","oa":23296,"o":"a,($5B00)"},{"a":51682,"t":"code","b":[50,21,91],"m":"ld","oa":23317,"o":"($5B15),a"},{"a":51685,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":51687,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small"},{"a":51690,"t":"code","b":[58,2,91],"m":"ld","oa":23298,"o":"a,($5B02)"},{"a":51693,"t":"code","b":[50,21,91],"m":"ld","oa":23317,"o":"($5B15),a"},{"a":51696,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":51698,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small"},{"a":51701,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16"},{"a":51704,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":51705,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":51706,"t":"code","b":[16,226],"m":"djnz","oa":51678,"o":"$C9DE"},{"a":51708,"t":"code","b":[58,2,91],"m":"ld","oa":23298,"o":"a,($5B02)"},{"a":51711,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":51714,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":51715,"t":"code","b":[61],"m":"dec","o":"a"},{"a":51716,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":51717,"t":"code","b":[58,0,91],"m":"ld","oa":23296,"o":"a,($5B00)"},{"a":51720,"t":"code","b":[60],"m":"inc","o":"a"},{"a":51721,"t":"code","b":[50,21,91],"m":"ld","oa":23317,"o":"($5B15),a"},{"a":51724,"t":"code","b":[197],"m":"push","o":"bc","x":[51752]},{"a":51725,"t":"code","b":[58,1,91],"m":"ld","oa":23297,"o":"a,($5B01)"},{"a":51728,"t":"code","b":[50,22,91],"m":"ld","oa":23318,"o":"($5B16),a"},{"a":51731,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":51733,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small"},{"a":51736,"t":"code","b":[58,3,91],"m":"ld","oa":23299,"o":"a,($5B03)"},{"a":51739,"t":"code","b":[50,22,91],"m":"ld","oa":23318,"o":"($5B16),a"},{"a":51742,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":51744,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small"},{"a":51747,"t":"code","b":[33,21,91],"m":"ld","o":"hl,$5B15"},{"a":51750,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":51751,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":51752,"t":"code","b":[16,226],"m":"djnz","oa":51724,"o":"$CA0C"},{"a":51754,"t":"code","b":[201],"m":"ret"},{"a":51755,"l":"classify_step","c":"Classifies a step of the selected creature to square HL into $FF8F, keeping the square ($FF8A), its map address ($FF8C) and terrain ($FF91): 4 an enemy there at the creature's height (3 when the creature has a partner on its square and did not just dismount); otherwise 7 just dismounted in the air; 0 a square it cannot enter; 1 too few action points for the step's cost ($FF8E, half as much again on a diagonal, $FF92); 2 too little stamina (half the cost); 5 free; 6 free but the creature is engaged. The cost is the terrain's (byte 0 of its record; $FF cannot be entered), 4 for a ghost ($A5) or a flying creature, or 4 when the creature's type flags (bits 4-6 of byte 11) match the terrain's (bits 0-2 of byte 4): swimmers in water, for example. In the air a terrain with bit 3 of byte 4 set cannot be entered.","t":"code","b":[34,138,255],"m":"ld","oa":65418,"o":"($FF8A),hl","x":[27026,39686]},{"a":51758,"t":"code","b":[205,237,144],"m":"call","oa":37101,"o":"what_is_at"},{"a":51761,"t":"code","b":[42,59,91],"m":"ld","oa":23355,"o":"hl,($5B3B)"},{"a":51764,"t":"code","b":[34,140,255],"m":"ld","oa":65420,"o":"($FF8C),hl"},{"a":51767,"t":"code","b":[50,145,255],"m":"ld","oa":65425,"o":"($FF91),a"},{"a":51770,"t":"code","b":[42,138,255],"m":"ld","oa":65418,"o":"hl,($FF8A)"},{"a":51773,"t":"code","b":[205,198,102],"m":"call","oa":26310,"o":"find_creatures_any"},{"a":51776,"t":"code","b":[58,174,209],"m":"ld","oa":53678,"o":"a,($D1AE)"},{"a":51779,"t":"code","b":[183],"m":"or","o":"a"},{"a":51780,"t":"code","b":[40,71],"m":"jr","oa":51853,"o":"z,$CA8D"},{"a":51782,"t":"code","b":[221,42,175,209],"m":"ld","oa":53679,"o":"ix,($D1AF)"},{"a":51786,"t":"code","b":[221,34,40,255],"m":"ld","oa":65320,"o":"($FF28),ix"},{"a":51790,"t":"code","b":[58,177,209],"m":"ld","oa":53681,"o":"a,($D1B1)"},{"a":51793,"t":"code","b":[50,42,255],"m":"ld","oa":65322,"o":"($FF2A),a"},{"a":51796,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":51799,"t":"code","b":[33,47,91],"m":"ld","o":"hl,$5B2F"},{"a":51802,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":51803,"t":"code","b":[40,20],"m":"jr","oa":51825,"o":"z,$CA71"},{"a":51805,"t":"code","b":[58,178,209],"m":"ld","oa":53682,"o":"a,($D1B2)"},{"a":51808,"t":"code","b":[183],"m":"or","o":"a"},{"a":51809,"t":"code","b":[40,42],"m":"jr","oa":51853,"o":"z,$CA8D"},{"a":51811,"t":"code","b":[221,42,179,209],"m":"ld","oa":53683,"o":"ix,($D1B3)"},{"a":51815,"t":"code","b":[221,34,40,255],"m":"ld","oa":65320,"o":"($FF28),ix"},{"a":51819,"t":"code","b":[58,181,209],"m":"ld","oa":53685,"o":"a,($D1B5)"},{"a":51822,"t":"code","b":[50,42,255],"m":"ld","oa":65322,"o":"($FF2A),a"},{"a":51825,"t":"code","b":[205,143,181],"m":"call","oa":46479,"o":"creature_record_of","x":[51803]},{"a":51828,"t":"code","b":[205,195,97],"m":"call","oa":25027,"o":"owner_is_player"},{"a":51831,"t":"code","b":[40,20],"m":"jr","oa":51853,"o":"z,$CA8D"},{"a":51833,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":51835,"t":"code","b":[50,143,255],"m":"ld","oa":65423,"o":"($FF8F),a"},{"a":51838,"t":"code","b":[58,67,91],"m":"ld","oa":23363,"o":"a,($5B43)"},{"a":51841,"t":"code","b":[183],"m":"or","o":"a"},{"a":51842,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":51843,"t":"code","b":[205,86,113],"m":"call","oa":29014,"o":"find_partner"},{"a":51846,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":51847,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":51849,"t":"code","b":[50,143,255],"m":"ld","oa":65423,"o":"($FF8F),a"},{"a":51852,"t":"code","b":[201],"m":"ret"},{"a":51853,"t":"code","b":[58,67,91],"m":"ld","oa":23363,"o":"a,($5B43)","x":[51780,51809,51831]},{"a":51856,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":51858,"t":"code","b":[32,6],"m":"jr","oa":51866,"o":"nz,$CA9A"},{"a":51860,"t":"code","b":[62,7],"m":"ld","o":"a,$07"},{"a":51862,"t":"code","b":[50,143,255],"m":"ld","oa":65423,"o":"($FF8F),a"},{"a":51865,"t":"code","b":[201],"m":"ret"},{"a":51866,"t":"code","b":[58,84,91],"m":"ld","oa":23380,"o":"a,($5B54)","x":[51858]},{"a":51869,"t":"code","b":[254,165],"m":"cp","o":"$A5"},{"a":51871,"t":"code","b":[32,7],"m":"jr","oa":51880,"o":"nz,$CAA8"},{"a":51873,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":51875,"t":"code","b":[50,142,255],"m":"ld","oa":65422,"o":"($FF8E),a"},{"a":51878,"t":"code","b":[24,66],"m":"jr","oa":51946,"o":"$CAEA"},{"a":51880,"t":"code","b":[205,36,145],"m":"call","oa":37156,"o":"terrain_record_here","x":[51871]},{"a":51883,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":51886,"t":"code","b":[50,142,255],"m":"ld","oa":65422,"o":"($FF8E),a"},{"a":51889,"t":"code","b":[221,42,82,91],"m":"ld","oa":23378,"o":"ix,($5B52)"},{"a":51893,"t":"code","b":[221,126,11],"m":"ld","o":"a,(ix+$0B)"},{"a":51896,"t":"code","b":[230,112],"m":"and","o":"$70"},{"a":51898,"t":"code","b":[40,18],"m":"jr","oa":51918,"o":"z,$CACE"},{"a":51900,"t":"code","b":[15],"m":"rrca"},{"a":51901,"t":"code","b":[15],"m":"rrca"},{"a":51902,"t":"code","b":[15],"m":"rrca"},{"a":51903,"t":"code","b":[15],"m":"rrca"},{"a":51904,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":51905,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":51908,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":51910,"t":"code","b":[160],"m":"and","o":"b"},{"a":51911,"t":"code","b":[40,5],"m":"jr","oa":51918,"o":"z,$CACE"},{"a":51913,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":51915,"t":"code","b":[50,142,255],"m":"ld","oa":65422,"o":"($FF8E),a"},{"a":51918,"t":"code","b":[58,47,91],"m":"ld","oa":23343,"o":"a,($5B2F)","x":[51898,51911]},{"a":51921,"t":"code","b":[60],"m":"inc","o":"a"},{"a":51922,"t":"code","b":[40,11],"m":"jr","oa":51935,"o":"z,$CADF"},{"a":51924,"t":"code","b":[253,203,4,94],"m":"bit","o":"3,(iy+$04)"},{"a":51928,"t":"code","b":[32,11],"m":"jr","oa":51941,"o":"nz,$CAE5"},{"a":51930,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":51932,"t":"code","b":[50,142,255],"m":"ld","oa":65422,"o":"($FF8E),a"},{"a":51935,"t":"code","b":[58,142,255],"m":"ld","oa":65422,"o":"a,($FF8E)","x":[51922]},{"a":51938,"t":"code","b":[60],"m":"inc","o":"a"},{"a":51939,"t":"code","b":[32,5],"m":"jr","oa":51946,"o":"nz,$CAEA"},{"a":51941,"t":"code","b":[175],"m":"xor","o":"a","x":[51928]},{"a":51942,"t":"code","b":[50,143,255],"m":"ld","oa":65423,"o":"($FF8F),a"},{"a":51945,"t":"code","b":[201],"m":"ret"},{"a":51946,"t":"code","b":[58,146,255],"m":"ld","oa":65426,"o":"a,($FF92)","x":[51878,51939]},{"a":51949,"t":"code","b":[183],"m":"or","o":"a"},{"a":51950,"t":"code","b":[40,10],"m":"jr","oa":51962,"o":"z,$CAFA"},{"a":51952,"t":"code","b":[58,142,255],"m":"ld","oa":65422,"o":"a,($FF8E)"},{"a":51955,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":51957,"t":"code","b":[33,142,255],"m":"ld","o":"hl,$FF8E"},{"a":51960,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":51961,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":51962,"t":"code","b":[221,42,80,91],"m":"ld","oa":23376,"o":"ix,($5B50)","x":[51950]},{"a":51966,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":51969,"t":"code","b":[33,142,255],"m":"ld","o":"hl,$FF8E"},{"a":51972,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":51973,"t":"code","b":[48,6],"m":"jr","oa":51981,"o":"nc,$CB0D"},{"a":51975,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":51977,"t":"code","b":[50,143,255],"m":"ld","oa":65423,"o":"($FF8F),a"},{"a":51980,"t":"code","b":[201],"m":"ret"},{"a":51981,"t":"code","b":[70],"m":"ld","o":"b,(hl)","x":[51973]},{"a":51982,"t":"code","b":[203,56],"m":"srl","o":"b"},{"a":51984,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":51987,"t":"code","b":[184],"m":"cp","o":"b"},{"a":51988,"t":"code","b":[48,6],"m":"jr","oa":51996,"o":"nc,$CB1C"},{"a":51990,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":51992,"t":"code","b":[50,143,255],"m":"ld","oa":65423,"o":"($FF8F),a"},{"a":51995,"t":"code","b":[201],"m":"ret"},{"a":51996,"t":"code","b":[62,5],"m":"ld","o":"a,$05","x":[51988]},{"a":51998,"t":"code","b":[50,143,255],"m":"ld","oa":65423,"o":"($FF8F),a"},{"a":52001,"t":"code","b":[221,203,4,102],"m":"bit","o":"4,(ix+$04)"},{"a":52005,"t":"code","b":[200],"m":"ret","o":"z"},{"a":52006,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":52008,"t":"code","b":[50,143,255],"m":"ld","oa":65423,"o":"($FF8F),a"},{"a":52011,"t":"code","b":[201],"m":"ret"},{"a":52012,"l":"run_file_menu","c":"Runs a file panel's menu: up and down move the bar over the $5B0A options (menu_choice, wrapping round), with the key repeat; fire chooses, with sound 0.","t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release","x":[51467,52317,52379,52432]},{"a":52015,"t":"code","b":[205,43,98],"m":"call","oa":25131,"o":"read_controls","x":[52073]},{"a":52018,"t":"code","b":[33,98,198],"m":"ld","o":"hl,$C662"},{"a":52021,"t":"code","b":[58,19,91],"m":"ld","oa":23315,"o":"a,($5B13)"},{"a":52024,"t":"code","b":[15],"m":"rrca"},{"a":52025,"t":"code","b":[56,4],"m":"jr","oa":52031,"o":"c,$CB3F"},{"a":52027,"t":"code","b":[205,77,200],"m":"call","oa":51277,"o":"sound_0"},{"a":52030,"t":"code","b":[201],"m":"ret"},{"a":52031,"t":"code","b":[15],"m":"rrca","x":[52025]},{"a":52032,"t":"code","b":[56,16],"m":"jr","oa":52050,"o":"c,$CB52"},{"a":52034,"t":"code","b":[205,98,146],"m":"call","oa":37474,"o":"highlight_file_option"},{"a":52037,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":52038,"t":"code","b":[214,1],"m":"sub","o":"$01"},{"a":52040,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":52041,"t":"code","b":[48,24],"m":"jr","oa":52067,"o":"nc,$CB63"},{"a":52043,"t":"code","b":[58,10,91],"m":"ld","oa":23306,"o":"a,($5B0A)"},{"a":52046,"t":"code","b":[61],"m":"dec","o":"a"},{"a":52047,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":52048,"t":"code","b":[24,17],"m":"jr","oa":52067,"o":"$CB63"},{"a":52050,"t":"code","b":[15],"m":"rrca","x":[52032]},{"a":52051,"t":"code","b":[56,17],"m":"jr","oa":52070,"o":"c,$CB66"},{"a":52053,"t":"code","b":[205,98,146],"m":"call","oa":37474,"o":"highlight_file_option"},{"a":52056,"t":"code","b":[58,10,91],"m":"ld","oa":23306,"o":"a,($5B0A)"},{"a":52059,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":52060,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":52061,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":52062,"t":"code","b":[184],"m":"cp","o":"b"},{"a":52063,"t":"code","b":[56,2],"m":"jr","oa":52067,"o":"c,$CB63"},{"a":52065,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":52067,"t":"code","b":[205,98,146],"m":"call","oa":37474,"o":"highlight_file_option","x":[52041,52048,52063]},{"a":52070,"t":"code","b":[205,207,148],"m":"call","oa":38095,"o":"key_repeat_slow","x":[52051]},{"a":52073,"t":"code","b":[24,196],"m":"jr","oa":52015,"o":"$CB2F"},{"a":52075,"l":"draw_file_panel","c":"Draws the scenario's file panel: the title (message $E6) with the number of the scenario loaded ($D03F, or message $E7 for none) in one frame and the four wizards in another.","t":"code","b":[205,212,99],"m":"call","oa":25556,"o":"clear_screen","x":[52286]},{"a":52078,"t":"code","b":[62,70],"m":"ld","o":"a,$46"},{"a":52080,"t":"code","b":[205,213,99],"m":"call","oa":25557,"o":"fill_screen"},{"a":52083,"t":"code","b":[62,230],"m":"ld","o":"a,$E6"},{"a":52085,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":52088,"t":"code","b":[33,1,22],"m":"ld","o":"hl,$1601"},{"a":52091,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":52094,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":52097,"t":"code","b":[33,71,7],"m":"ld","o":"hl,$0747"},{"a":52100,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":52103,"t":"code","b":[58,63,208],"m":"ld","oa":53311,"o":"a,($D03F)"},{"a":52106,"t":"code","b":[183],"m":"or","o":"a"},{"a":52107,"t":"code","b":[32,7],"m":"jr","oa":52116,"o":"nz,$CB94"},{"a":52109,"t":"code","b":[62,231],"m":"ld","o":"a,$E7"},{"a":52111,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":52114,"t":"code","b":[24,3],"m":"jr","oa":52119,"o":"$CB97"},{"a":52116,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number","x":[52107]},{"a":52119,"t":"code","b":[62,68],"m":"ld","o":"a,$44","x":[52114]},{"a":52121,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":52124,"t":"code","b":[33,0,4],"m":"ld","o":"hl,$0400"},{"a":52127,"t":"code","b":[17,3,27],"m":"ld","o":"de,$1B03"},{"a":52130,"t":"code","b":[205,138,201],"m":"call","oa":51594,"o":"draw_frame"},{"a":52133,"t":"code","b":[62,66],"m":"ld","o":"a,$42"},{"a":52135,"t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a"},{"a":52138,"t":"code","b":[33,10,16],"m":"ld","o":"hl,$100A"},{"a":52141,"t":"code","b":[17,19,31],"m":"ld","o":"de,$1F13"},{"a":52144,"t":"code","b":[205,138,201],"m":"call","oa":51594,"o":"draw_frame"},{"a":52147,"t":"code","b":[205,183,203],"m":"call","oa":52151,"o":"list_wizards"},{"a":52150,"t":"code","b":[201],"m":"ret"},{"a":52151,"l":"list_wizards","c":"Lists the four wizards from row $11 upward, two rows each: a slot whose record has a level (byte 1) shows the name, copied into the scenario's table of names and printed as message $8C + the player, and the level; an empty one shows message $E7.","t":"code","b":[33,17,17],"m":"ld","o":"hl,$1111","x":[52147,52400]},{"a":52154,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":52157,"t":"code","b":[6,4],"m":"ld","o":"b,$04"},{"a":52159,"t":"code","b":[197],"m":"push","o":"bc","x":[52230]},{"a":52160,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":52161,"t":"code","b":[50,17,91],"m":"ld","oa":23313,"o":"($5B11),a"},{"a":52164,"t":"code","b":[205,140,128],"m":"call","oa":32908,"o":"wizard_record"},{"a":52167,"t":"code","b":[34,4,91],"m":"ld","oa":23300,"o":"($5B04),hl"},{"a":52170,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":52171,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":52172,"t":"code","b":[183],"m":"or","o":"a"},{"a":52173,"t":"code","b":[40,36],"m":"jr","oa":52211,"o":"z,$CBF3"},{"a":52175,"t":"code","b":[205,223,140],"m":"call","oa":36063,"o":"copy_wizard_name"},{"a":52178,"t":"code","b":[62,70],"m":"ld","o":"a,$46"},{"a":52180,"t":"code","b":[205,9,204],"m":"call","oa":52233,"o":"clear_name_lines"},{"a":52183,"t":"code","b":[58,17,91],"m":"ld","oa":23313,"o":"a,($5B11)"},{"a":52186,"t":"code","b":[198,140],"m":"add","o":"a,$8C"},{"a":52188,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":52191,"t":"code","b":[42,26,91],"m":"ld","oa":23322,"o":"hl,($5B1A)"},{"a":52194,"t":"code","b":[17,0,11],"m":"ld","o":"de,$0B00"},{"a":52197,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":52198,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":52201,"t":"code","b":[42,4,91],"m":"ld","oa":23300,"o":"hl,($5B04)"},{"a":52204,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":52205,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":52206,"t":"code","b":[205,237,120],"m":"call","oa":30957,"o":"print_number"},{"a":52209,"t":"code","b":[24,10],"m":"jr","oa":52221,"o":"$CBFD"},{"a":52211,"t":"code","b":[62,66],"m":"ld","o":"a,$42","x":[52173]},{"a":52213,"t":"code","b":[205,9,204],"m":"call","oa":52233,"o":"clear_name_lines"},{"a":52216,"t":"code","b":[62,231],"m":"ld","o":"a,$E7"},{"a":52218,"t":"code","b":[205,128,171],"m":"call","oa":43904,"o":"print_text_big"},{"a":52221,"t":"code","b":[193],"m":"pop","o":"bc","x":[52209]},{"a":52222,"t":"code","b":[58,26,91],"m":"ld","oa":23322,"o":"a,($5B1A)"},{"a":52225,"t":"code","b":[214,2],"m":"sub","o":"$02"},{"a":52227,"t":"code","b":[50,26,91],"m":"ld","oa":23322,"o":"($5B1A),a"},{"a":52230,"t":"code","b":[16,183],"m":"djnz","oa":52159,"o":"$CBBF"},{"a":52232,"t":"code","b":[201],"m":"ret"},{"a":52233,"l":"clear_name_lines","c":"Clears two rows of fourteen characters from the start of the line ($5B1A) in attribute A.","t":"code","b":[50,23,91],"m":"ld","oa":23319,"o":"($5B17),a","x":[52180,52213]},{"a":52236,"t":"code","b":[50,24,91],"m":"ld","oa":23320,"o":"($5B18),a"},{"a":52239,"t":"code","b":[42,26,91],"m":"ld","oa":23322,"o":"hl,($5B1A)"},{"a":52242,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":52245,"t":"code","b":[33,0,60],"m":"ld","o":"hl,$3C00"},{"a":52248,"t":"code","b":[34,14,91],"m":"ld","oa":23310,"o":"($5B0E),hl"},{"a":52251,"t":"code","b":[6,2],"m":"ld","o":"b,$02"},{"a":52253,"t":"code","b":[197],"m":"push","o":"bc","x":[52278]},{"a":52254,"t":"code","b":[6,14],"m":"ld","o":"b,$0E"},{"a":52256,"t":"code","b":[62,32],"m":"ld","o":"a,$20","x":[52265]},{"a":52258,"t":"code","b":[205,145,175],"m":"call","oa":44945,"o":"print_char_small"},{"a":52261,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16"},{"a":52264,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":52265,"t":"code","b":[16,245],"m":"djnz","oa":52256,"o":"$CC20"},{"a":52267,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":52268,"t":"code","b":[58,27,91],"m":"ld","oa":23323,"o":"a,($5B1B)"},{"a":52271,"t":"code","b":[50,22,91],"m":"ld","oa":23318,"o":"($5B16),a"},{"a":52274,"t":"code","b":[33,21,91],"m":"ld","o":"hl,$5B15"},{"a":52277,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":52278,"t":"code","b":[16,229],"m":"djnz","oa":52253,"o":"$CC1D"},{"a":52280,"t":"code","b":[201],"m":"ret"},{"a":52281,"l":"file_panel","c":"The scenario's file panel, with the interrupts in mode 1 and the stack at $606E: PLAY GAME, LOAD SCENARIO, LOAD DESIGNER, LOAD WIZARD, LOAD SAVED GAME and SAVE WIZARD, each through file_actions; the option chosen is kept in panel_value_1 while it runs.","t":"code","b":[237,86],"m":"im","o":"1","x":[24843,50981,51076,51095,51114,51518]},{"a":52283,"t":"code","b":[49,110,96],"m":"ld","o":"sp,$606E"},{"a":52286,"t":"code","b":[205,107,203],"m":"call","oa":52075,"o":"draw_file_panel"},{"a":52289,"t":"code","b":[175],"m":"xor","o":"a"},{"a":52290,"t":"code","b":[50,98,198],"m":"ld","oa":50786,"o":"(menu_choice),a"},{"a":52293,"t":"code","b":[50,99,198],"m":"ld","oa":50787,"o":"(panel_value_1),a"},{"a":52296,"t":"code","b":[50,100,198],"m":"ld","oa":50788,"o":"(panel_value_2),a"},{"a":52299,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":52301,"t":"code","b":[50,11,91],"m":"ld","oa":23307,"o":"($5B0B),a"},{"a":52304,"t":"code","b":[205,98,146],"m":"call","oa":37474,"o":"highlight_file_option"},{"a":52307,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[52335]},{"a":52309,"t":"code","b":[50,11,91],"m":"ld","oa":23307,"o":"($5B0B),a"},{"a":52312,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":52314,"t":"code","b":[50,10,91],"m":"ld","oa":23306,"o":"($5B0A),a"},{"a":52317,"t":"code","b":[205,44,203],"m":"call","oa":52012,"o":"run_file_menu"},{"a":52320,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":52323,"t":"code","b":[50,99,198],"m":"ld","oa":50787,"o":"(panel_value_1),a"},{"a":52326,"t":"code","b":[205,113,204],"m":"call","oa":52337,"o":"file_action"},{"a":52329,"t":"code","b":[58,99,198],"m":"ld","oa":50787,"o":"a,(panel_value_1)"},{"a":52332,"t":"code","b":[50,98,198],"m":"ld","oa":50786,"o":"(menu_choice),a"},{"a":52335,"t":"code","b":[24,226],"m":"jr","oa":52307,"o":"$CC53"},{"a":52337,"l":"file_action","c":"Jumps to the routine for file panel option A.","t":"code","b":[135],"m":"add","o":"a,a","x":[52326]},{"a":52338,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":52339,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":52341,"t":"code","b":[33,124,204],"m":"ld","o":"hl,$CC7C"},{"a":52344,"t":"code","b":[205,156,120],"m":"call","oa":30876,"o":"read_table_word"},{"a":52347,"t":"code","b":[233],"m":"jp","o":"(hl)"},{"a":52348,"l":"file_actions","c":"The routines of the six options of the file panel.","t":"word","b":[115,96,8,199,40,199,136,204],"d":[24691,50952,50984,52360]},{"a":52356,"t":"word","b":[117,199,189,204],"d":[51061,52413]},{"a":52360,"l":"load_wizard_menu","c":"LOAD WIZARD: chooses one of the four slots (the one last used, panel_value_2, first), asks for the file name and loads it; a failed load leaves the slot empty (byte 1 cleared). The list is drawn again.","t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":52362,"t":"code","b":[50,11,91],"m":"ld","oa":23307,"o":"($5B0B),a"},{"a":52365,"t":"code","b":[58,100,198],"m":"ld","oa":50788,"o":"a,(panel_value_2)"},{"a":52368,"t":"code","b":[50,98,198],"m":"ld","oa":50786,"o":"(menu_choice),a"},{"a":52371,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":52373,"t":"code","b":[50,10,91],"m":"ld","oa":23306,"o":"($5B0A),a"},{"a":52376,"t":"code","b":[205,98,146],"m":"call","oa":37474,"o":"highlight_file_option"},{"a":52379,"t":"code","b":[205,44,203],"m":"call","oa":52012,"o":"run_file_menu"},{"a":52382,"t":"code","b":[205,58,205],"m":"call","oa":52538,"o":"ask_file_name"},{"a":52385,"t":"code","b":[205,225,198],"m":"call","oa":50913,"o":"load_wizard"},{"a":52388,"t":"code","b":[58,228,197],"m":"ld","oa":50660,"o":"a,(tape_error)"},{"a":52391,"t":"code","b":[183],"m":"or","o":"a"},{"a":52392,"t":"code","b":[40,6],"m":"jr","oa":52400,"o":"z,$CCB0"},{"a":52394,"t":"code","b":[42,4,91],"m":"ld","oa":23300,"o":"hl,($5B04)"},{"a":52397,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":52398,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":52400,"t":"code","b":[205,183,203],"m":"call","oa":52151,"o":"list_wizards","x":[52392]},{"a":52403,"t":"code","b":[205,100,100],"m":"call","oa":25700,"o":"clear_message_line"},{"a":52406,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":52409,"t":"code","b":[50,100,198],"m":"ld","oa":50788,"o":"(panel_value_2),a"},{"a":52412,"t":"code","b":[201],"m":"ret"},{"a":52413,"l":"save_wizard_menu","c":"SAVE WIZARD: chooses a slot and, when it holds a wizard, saves it under a name made of the first word of its name, at most seven letters ($FA counts as a space), followed by its level as a digit (10 and up as A, B ...).","t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":52415,"t":"code","b":[50,11,91],"m":"ld","oa":23307,"o":"($5B0B),a"},{"a":52418,"t":"code","b":[58,100,198],"m":"ld","oa":50788,"o":"a,(panel_value_2)"},{"a":52421,"t":"code","b":[50,98,198],"m":"ld","oa":50786,"o":"(menu_choice),a"},{"a":52424,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":52426,"t":"code","b":[50,10,91],"m":"ld","oa":23306,"o":"($5B0A),a"},{"a":52429,"t":"code","b":[205,98,146],"m":"call","oa":37474,"o":"highlight_file_option"},{"a":52432,"t":"code","b":[205,44,203],"m":"call","oa":52012,"o":"run_file_menu"},{"a":52435,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":52438,"t":"code","b":[205,141,128],"m":"call","oa":32909,"o":"wizard_record_0"},{"a":52441,"t":"code","b":[34,4,91],"m":"ld","oa":23300,"o":"($5B04),hl"},{"a":52444,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":52445,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":52446,"t":"code","b":[183],"m":"or","o":"a"},{"a":52447,"t":"code","b":[40,79],"m":"jr","oa":52528,"o":"z,$CD30"},{"a":52449,"t":"code","b":[42,58,208],"m":"ld","oa":53306,"o":"hl,($D03A)"},{"a":52452,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":52455,"t":"code","b":[60],"m":"inc","o":"a"},{"a":52456,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":52457,"t":"code","b":[17,11,0],"m":"ld","o":"de,$000B"},{"a":52460,"t":"code","b":[25],"m":"add","o":"hl,de","x":[52461]},{"a":52461,"t":"code","b":[16,253],"m":"djnz","oa":52460,"o":"$CCEC"},{"a":52463,"t":"code","b":[17,55,198],"m":"ld","o":"de,$C637"},{"a":52466,"t":"code","b":[1,8,0],"m":"ld","o":"bc,$0008"},{"a":52469,"t":"code","b":[237,176],"m":"ldir"},{"a":52471,"t":"code","b":[33,55,198],"m":"ld","o":"hl,$C637"},{"a":52474,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":52476,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[52484]},{"a":52477,"t":"code","b":[254,250],"m":"cp","o":"$FA"},{"a":52479,"t":"code","b":[32,2],"m":"jr","oa":52483,"o":"nz,$CD03"},{"a":52481,"t":"code","b":[54,32],"m":"ld","o":"(hl),$20"},{"a":52483,"t":"code","b":[35],"m":"inc","o":"hl","x":[52479]},{"a":52484,"t":"code","b":[16,246],"m":"djnz","oa":52476,"o":"$CCFC"},{"a":52486,"t":"code","b":[33,55,198],"m":"ld","o":"hl,$C637"},{"a":52489,"t":"code","b":[6,7],"m":"ld","o":"b,$07"},{"a":52491,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[52497]},{"a":52492,"t":"code","b":[254,32],"m":"cp","o":"$20"},{"a":52494,"t":"code","b":[40,5],"m":"jr","oa":52501,"o":"z,$CD15"},{"a":52496,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":52497,"t":"code","b":[16,248],"m":"djnz","oa":52491,"o":"$CD0B"},{"a":52499,"t":"code","b":[24,7],"m":"jr","oa":52508,"o":"$CD1C"},{"a":52501,"t":"code","b":[229],"m":"push","o":"hl","x":[52494]},{"a":52502,"t":"code","b":[35],"m":"inc","o":"hl","x":[52505]},{"a":52503,"t":"code","b":[54,32],"m":"ld","o":"(hl),$20"},{"a":52505,"t":"code","b":[16,251],"m":"djnz","oa":52502,"o":"$CD16"},{"a":52507,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":52508,"t":"code","b":[237,91,4,91],"m":"ld","oa":23300,"o":"de,($5B04)","x":[52499]},{"a":52512,"t":"code","b":[19],"m":"inc","o":"de"},{"a":52513,"t":"code","b":[26],"m":"ld","o":"a,(de)"},{"a":52514,"t":"code","b":[254,10],"m":"cp","o":"$0A"},{"a":52516,"t":"code","b":[56,4],"m":"jr","oa":52522,"o":"c,$CD2A"},{"a":52518,"t":"code","b":[198,55],"m":"add","o":"a,$37"},{"a":52520,"t":"code","b":[24,2],"m":"jr","oa":52524,"o":"$CD2C"},{"a":52522,"t":"code","b":[198,48],"m":"add","o":"a,$30","x":[52516]},{"a":52524,"t":"code","b":[119],"m":"ld","o":"(hl),a","x":[52520]},{"a":52525,"t":"code","b":[205,190,198],"m":"call","oa":50878,"o":"save_wizard"},{"a":52528,"t":"code","b":[205,98,146],"m":"call","oa":37474,"o":"highlight_file_option","x":[52447]},{"a":52531,"t":"code","b":[58,98,198],"m":"ld","oa":50786,"o":"a,(menu_choice)"},{"a":52534,"t":"code","b":[50,100,198],"m":"ld","oa":50788,"o":"(panel_value_2),a"},{"a":52537,"t":"code","b":[201],"m":"ret"},{"a":52538,"l":"ask_file_name","c":"FILE NAME: reads up to eight characters into file_name through the ROM's KEY-SCAN, using the key table: ENTER ends it, the 0 key rubs out the last character, symbol shift does nothing; each key gives sound 0 and waits until it is let go.","t":"code","b":[62,3],"m":"ld","o":"a,$03","x":[50952,51021,51064,52382]},{"a":52540,"t":"code","b":[205,147,200],"m":"call","oa":51347,"o":"print_tape_status"},{"a":52543,"t":"code","b":[33,22,11],"m":"ld","o":"hl,$0B16"},{"a":52546,"t":"code","b":[34,26,91],"m":"ld","oa":23322,"o":"($5B1A),hl"},{"a":52549,"t":"code","b":[205,202,145],"m":"call","oa":37322,"o":"wait_release"},{"a":52552,"t":"code","b":[33,55,198],"m":"ld","o":"hl,$C637"},{"a":52555,"t":"code","b":[17,56,198],"m":"ld","o":"de,$C638"},{"a":52558,"t":"code","b":[54,32],"m":"ld","o":"(hl),$20"},{"a":52560,"t":"code","b":[1,7,0],"m":"ld","o":"bc,$0007"},{"a":52563,"t":"code","b":[237,176],"m":"ldir"},{"a":52565,"t":"code","b":[33,70,70],"m":"ld","o":"hl,$4646"},{"a":52568,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":52571,"t":"code","b":[205,182,205],"m":"call","oa":52662,"o":"show_file_name"},{"a":52574,"t":"code","b":[175],"m":"xor","o":"a"},{"a":52575,"t":"code","b":[50,101,255],"m":"ld","oa":65381,"o":"($FF65),a"},{"a":52578,"t":"code","b":[205,142,2],"m":"call","oa":654,"o":"$028E","x":[52587,52597,52619,52629,52660]},{"a":52581,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":52582,"t":"code","b":[254,33],"m":"cp","o":"$21"},{"a":52584,"t":"code","b":[200],"m":"ret","o":"z"},{"a":52585,"t":"code","b":[254,39],"m":"cp","o":"$27"},{"a":52587,"t":"code","b":[48,245],"m":"jr","oa":52578,"o":"nc,$CD62"},{"a":52589,"t":"code","b":[254,35],"m":"cp","o":"$23"},{"a":52591,"t":"code","b":[32,21],"m":"jr","oa":52614,"o":"nz,$CD86"},{"a":52593,"t":"code","b":[58,101,255],"m":"ld","oa":65381,"o":"a,($FF65)"},{"a":52596,"t":"code","b":[183],"m":"or","o":"a"},{"a":52597,"t":"code","b":[40,235],"m":"jr","oa":52578,"o":"z,$CD62"},{"a":52599,"t":"code","b":[61],"m":"dec","o":"a"},{"a":52600,"t":"code","b":[50,101,255],"m":"ld","oa":65381,"o":"($FF65),a"},{"a":52603,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":52604,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":52606,"t":"code","b":[33,55,198],"m":"ld","o":"hl,$C637"},{"a":52609,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":52610,"t":"code","b":[54,32],"m":"ld","o":"(hl),$20"},{"a":52612,"t":"code","b":[24,35],"m":"jr","oa":52649,"o":"$CDA9"},{"a":52614,"t":"code","b":[58,101,255],"m":"ld","oa":65381,"o":"a,($FF65)","x":[52591]},{"a":52617,"t":"code","b":[254,8],"m":"cp","o":"$08"},{"a":52619,"t":"code","b":[40,213],"m":"jr","oa":52578,"o":"z,$CD62"},{"a":52621,"t":"code","b":[33,217,205],"m":"ld","o":"hl,$CDD9"},{"a":52624,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":52626,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":52627,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":52628,"t":"code","b":[183],"m":"or","o":"a"},{"a":52629,"t":"code","b":[40,203],"m":"jr","oa":52578,"o":"z,$CD62"},{"a":52631,"t":"code","b":[237,91,101,255],"m":"ld","oa":65381,"o":"de,($FF65)"},{"a":52635,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":52637,"t":"code","b":[33,55,198],"m":"ld","o":"hl,$C637"},{"a":52640,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":52641,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":52642,"t":"code","b":[33,101,255],"m":"ld","o":"hl,$FF65"},{"a":52645,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":52646,"t":"code","b":[205,77,200],"m":"call","oa":51277,"o":"sound_0"},{"a":52649,"t":"code","b":[205,182,205],"m":"call","oa":52662,"o":"show_file_name","x":[52612]},{"a":52652,"t":"code","b":[205,142,2],"m":"call","oa":654,"o":"$028E","x":[52658]},{"a":52655,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":52656,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":52658,"t":"code","b":[32,248],"m":"jr","oa":52652,"o":"nz,$CDAC"},{"a":52660,"t":"code","b":[24,172],"m":"jr","oa":52578,"o":"$CD62"},{"a":52662,"l":"show_file_name","c":"Prints the eight characters of the file name.","t":"code","b":[17,55,198],"m":"ld","o":"de,$C637","x":[52571,52649]},{"a":52665,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":52667,"l":"show_name","c":"Prints B characters from DE in double height from the start of the line, in attribute $46 ($FA as a space).","t":"code","b":[33,70,70],"m":"ld","o":"hl,$4646","x":[50835]},{"a":52670,"t":"code","b":[34,23,91],"m":"ld","oa":23319,"o":"($5B17),hl"},{"a":52673,"t":"code","b":[42,26,91],"m":"ld","oa":23322,"o":"hl,($5B1A)"},{"a":52676,"t":"code","b":[34,21,91],"m":"ld","oa":23317,"o":"($5B15),hl"},{"a":52679,"t":"code","b":[26],"m":"ld","o":"a,(de)","x":[52694]},{"a":52680,"t":"code","b":[254,250],"m":"cp","o":"$FA"},{"a":52682,"t":"code","b":[32,2],"m":"jr","oa":52686,"o":"nz,$CDCE"},{"a":52684,"t":"code","b":[62,32],"m":"ld","o":"a,$20"},{"a":52686,"t":"code","b":[205,226,175],"m":"call","oa":45026,"o":"print_char_big","x":[52682]},{"a":52689,"t":"code","b":[33,22,91],"m":"ld","o":"hl,$5B16"},{"a":52692,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":52693,"t":"code","b":[19],"m":"inc","o":"de"},{"a":52694,"t":"code","b":[16,239],"m":"djnz","oa":52679,"o":"$CDC7"},{"a":52696,"t":"code","b":[201],"m":"ret"},{"a":52697,"t":"gap","n":39},{"a":52697,"t":"note","l":"key_table","c":"The character of each key, by the number the ROM's KEY-SCAN gives it (0 for symbol shift and ENTER; caps shift, 39, is left out).","note":"outside the tracked image"},{"a":52736,"l":"panel_messages","c":"The engine's own six messages, which draw the information display's frame, icons and bars in the game's font.","t":"byte","b":[19,251,0,22,1,254,67,251]},{"a":52744,"t":"byte","b":[2,22,2,255,3,255,3,255]},{"a":52752,"t":"byte","b":[3,255,4,31,251,8,22,254]},{"a":52760,"t":"byte","b":[65,2,255,3,255,3,255,3]},{"a":52768,"t":"byte","b":[255,5,255,3,255,3,255,3]},{"a":52776,"t":"byte","b":[255,5,255,3,255,3,255,3]},{"a":52784,"t":"byte","b":[255,4,21,251,19,22,6,251]},{"a":52792,"t":"byte","b":[19,24,7,251,19,26,8,251]},{"a":52800,"t":"byte","b":[19,28,9,251,19,30,10,2]},{"a":52808,"t":"byte","b":[11,4,254,69,12,10,13,255]},{"a":52816,"t":"byte","b":[14,255,14,255,14,255,13]},{"a":52823,"l":"panel_words","c":"The engine's own fourteen words: rows of characters of the game's font, with colours.","t":"byte","b":[24,254,66,9,10,13,14,17]},{"a":52831,"t":"byte","b":[18,21,22,25,26,255,11,12]},{"a":52839,"t":"byte","b":[15,16,19,20,23,24,27,28]},{"a":52847,"t":"byte","b":[11,1,2,2,2,3,1,2]},{"a":52855,"t":"byte","b":[2,2,3,11,4,0,0,0]},{"a":52863,"t":"byte","b":[4,4,0,0,0,4,11,6]},{"a":52871,"t":"byte","b":[2,2,2,8,6,2,2,2]},{"a":52879,"t":"byte","b":[8,11,7,2,2,2,5,7]},{"a":52887,"t":"byte","b":[2,2,2,5,8,254,68,29]},{"a":52895,"t":"byte","b":[30,255,31,32,8,254,70,33]},{"a":52903,"t":"byte","b":[34,255,35,36,8,254,66,37]},{"a":52911,"t":"byte","b":[38,255,39,40,8,254,69,41]},{"a":52919,"t":"byte","b":[42,255,43,44,8,254,7,45]},{"a":52927,"t":"byte","b":[46,255,47,48,21,254,68,0]},{"a":52935,"t":"byte","b":[0,254,70,0,0,254,66,0]},{"a":52943,"t":"byte","b":[0,254,69,0,0,254,7,0]},{"a":52951,"t":"byte","b":[0,6,13,14,255,15,16,6]},{"a":52959,"t":"byte","b":[7,2,2,2,5,6,4,0]},{"a":52967,"t":"byte","b":[0,0,4]},{"a":52970,"l":"wizard_1","c":"The first wizard's record, seventy bytes: starting mana, level (0: no wizard), the 45 spells (full level in the high four bits, current in the low), the wizard's figures laid out as a creature type (twelve bytes), its name (ten bytes) and its score. On the tape it holds a wizard named ROGUE, with no level, so the slot counts as empty.","t":"byte","b":[150,0,1,1,1,0,2,2]},{"a":52978,"t":"byte","b":[0,2,0,1,0,2,0,0]},{"a":52986,"t":"byte","b":[1,0,1,1,2,3,2,1]},{"a":52994,"t":"byte","b":[1,3,1,1,1,1,1,1]},{"a":53002,"t":"byte","b":[1,1,2,3,4,3,2,2]},{"a":53010,"t":"byte","b":[4,2,4,2,1,5,3,34]},{"a":53018,"t":"byte","b":[0,34,34,6,6,90,36,95]},{"a":53026,"t":"byte","b":[2,20,140,82,79,71,85,69]},{"a":53034,"t":"byte","b":[250,250,250,250,250,0]},{"a":53040,"l":"wizard_2","c":"The second wizard's record. On the tape it is empty but for the standard figures and the name JOE BLOGGS.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53048,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53056,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53064,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53072,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53080,"t":"byte","b":[0,0,0,0,0,0,0,34]},{"a":53088,"t":"byte","b":[0,34,34,6,7,90,36,95]},{"a":53096,"t":"byte","b":[2,20,140,74,79,69,32,66]},{"a":53104,"t":"byte","b":[76,79,71,71,83,0]},{"a":53110,"l":"wizard_3","c":"The third wizard's record, which is also the computer's list of creatures in a game against the computer (35 entries of four bytes). On the tape it holds the name WOPPER ZAP.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53118,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53126,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53134,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53142,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53150,"t":"byte","b":[0,0,0,0,0,0,0,34]},{"a":53158,"t":"byte","b":[0,34,34,6,7,90,36,95]},{"a":53166,"t":"byte","b":[2,20,140,87,79,80,80,69]},{"a":53174,"t":"byte","b":[82,32,90,65,80,0]},{"a":53180,"l":"wizard_4","c":"The fourth wizard's record. On the tape it holds the name TORQUEMADA.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53188,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53196,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53204,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53212,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":53220,"t":"byte","b":[0,0,0,0,0,0,0,34]},{"a":53228,"t":"byte","b":[0,34,34,6,7,90,36,95]},{"a":53236,"t":"byte","b":[2,20,140,84,79,82,81,85]},{"a":53244,"t":"byte","b":[69,77,65,68,65,0]},{"a":53250,"l":"wizard_list_end","c":"The $FE that ends the computer's list at $CF76.","t":"byte","b":[254]},{"a":53251,"t":"gap","n":12285,"x":[46522]}]}