{
 "schema": 1,
 "platform": "spectrum",
 "game": "lords-of-chaos",
 "part": "scenario-1",
 "build": "",
 "source": "control file",
 "regions": {
  "exclude": [
   [
    0,
    16383,
    "ROM"
   ],
   [
    65368,
    65523,
    "a copy of the 48K ROM's character set ($3E08-$3EA3, the letters A to S and part of T), left in the file from when it was saved; nothing reads it, and in play the engine's variables and stack take the space"
   ],
   [
    0,
    53250,
    "The engine"
   ]
  ],
  "extra": [],
  "edges": [
   16384,
   32768,
   49152
  ],
  "elsewhere": [
   [
    0,
    53250,
    "The engine"
   ]
  ]
 },
 "blocks": [
  {
   "start": 53251,
   "end": 53252,
   "type": "Word"
  },
  {
   "start": 53253,
   "end": 53254,
   "type": "Word"
  },
  {
   "start": 53255,
   "end": 53256,
   "type": "Word"
  },
  {
   "start": 53257,
   "end": 53258,
   "type": "Word"
  },
  {
   "start": 53259,
   "end": 53260,
   "type": "Word"
  },
  {
   "start": 53261,
   "end": 53262,
   "type": "Word"
  },
  {
   "start": 53263,
   "end": 53264,
   "type": "Word"
  },
  {
   "start": 53265,
   "end": 53266,
   "type": "Word"
  },
  {
   "start": 53267,
   "end": 53268,
   "type": "Word"
  },
  {
   "start": 53269,
   "end": 53270,
   "type": "Word"
  },
  {
   "start": 53271,
   "end": 53272,
   "type": "Word"
  },
  {
   "start": 53273,
   "end": 53274,
   "type": "Word"
  },
  {
   "start": 53275,
   "end": 53277,
   "type": "Code"
  },
  {
   "start": 53278,
   "end": 53280,
   "type": "Code"
  },
  {
   "start": 53281,
   "end": 53283,
   "type": "Code"
  },
  {
   "start": 53284,
   "end": 53286,
   "type": "Code"
  },
  {
   "start": 53287,
   "end": 53289,
   "type": "Code"
  },
  {
   "start": 53290,
   "end": 53292,
   "type": "Code"
  },
  {
   "start": 53293,
   "end": 53295,
   "type": "Code"
  },
  {
   "start": 53296,
   "end": 53297,
   "type": "Word"
  },
  {
   "start": 53298,
   "end": 53299,
   "type": "Word"
  },
  {
   "start": 53300,
   "end": 53301,
   "type": "Word"
  },
  {
   "start": 53302,
   "end": 53303,
   "type": "Word"
  },
  {
   "start": 53304,
   "end": 53305,
   "type": "Word"
  },
  {
   "start": 53306,
   "end": 53307,
   "type": "Word"
  },
  {
   "start": 53308,
   "end": 53308,
   "type": "Byte"
  },
  {
   "start": 53309,
   "end": 53310,
   "type": "Word"
  },
  {
   "start": 53311,
   "end": 53311,
   "type": "Byte"
  },
  {
   "start": 53312,
   "end": 53312,
   "type": "Byte"
  },
  {
   "start": 53313,
   "end": 53313,
   "type": "Byte"
  },
  {
   "start": 53314,
   "end": 53314,
   "type": "Byte"
  },
  {
   "start": 53315,
   "end": 53315,
   "type": "Byte"
  },
  {
   "start": 53316,
   "end": 53316,
   "type": "Byte"
  },
  {
   "start": 53317,
   "end": 53317,
   "type": "Byte"
  },
  {
   "start": 53318,
   "end": 53318,
   "type": "Byte"
  },
  {
   "start": 53319,
   "end": 53319,
   "type": "Byte"
  },
  {
   "start": 53320,
   "end": 53320,
   "type": "Byte"
  },
  {
   "start": 53321,
   "end": 53322,
   "type": "Byte"
  },
  {
   "start": 53323,
   "end": 53327,
   "type": "Byte"
  },
  {
   "start": 53328,
   "end": 53331,
   "type": "Byte"
  },
  {
   "start": 53332,
   "end": 53335,
   "type": "Byte"
  },
  {
   "start": 53336,
   "end": 53339,
   "type": "Byte"
  },
  {
   "start": 53340,
   "end": 53343,
   "type": "Byte"
  },
  {
   "start": 53344,
   "end": 53345,
   "type": "Word"
  },
  {
   "start": 53346,
   "end": 53346,
   "type": "Byte"
  },
  {
   "start": 53347,
   "end": 53347,
   "type": "Byte"
  },
  {
   "start": 53348,
   "end": 53348,
   "type": "Byte"
  },
  {
   "start": 53349,
   "end": 53349,
   "type": "Byte"
  },
  {
   "start": 53350,
   "end": 53350,
   "type": "Byte"
  },
  {
   "start": 53351,
   "end": 53351,
   "type": "Byte"
  },
  {
   "start": 53352,
   "end": 53352,
   "type": "Byte"
  },
  {
   "start": 53353,
   "end": 53353,
   "type": "Byte"
  },
  {
   "start": 53354,
   "end": 53361,
   "type": "Word"
  },
  {
   "start": 53362,
   "end": 53369,
   "type": "Word"
  },
  {
   "start": 53370,
   "end": 53377,
   "type": "Word"
  },
  {
   "start": 53378,
   "end": 53447,
   "type": "Byte"
  },
  {
   "start": 53448,
   "end": 53449,
   "type": "Byte"
  },
  {
   "start": 53450,
   "end": 53451,
   "type": "Word"
  },
  {
   "start": 53452,
   "end": 53453,
   "type": "Byte"
  },
  {
   "start": 53454,
   "end": 53455,
   "type": "Word"
  },
  {
   "start": 53456,
   "end": 53456,
   "type": "Byte"
  },
  {
   "start": 53457,
   "end": 53458,
   "type": "Byte"
  },
  {
   "start": 53459,
   "end": 53460,
   "type": "Byte"
  },
  {
   "start": 53461,
   "end": 53462,
   "type": "Byte"
  },
  {
   "start": 53463,
   "end": 53463,
   "type": "Byte"
  },
  {
   "start": 53464,
   "end": 53464,
   "type": "Byte"
  },
  {
   "start": 53465,
   "end": 53465,
   "type": "Byte"
  },
  {
   "start": 53466,
   "end": 53466,
   "type": "Byte"
  },
  {
   "start": 53467,
   "end": 53468,
   "type": "Word"
  },
  {
   "start": 53469,
   "end": 53469,
   "type": "Byte"
  },
  {
   "start": 53470,
   "end": 53470,
   "type": "Byte"
  },
  {
   "start": 53471,
   "end": 53471,
   "type": "Byte"
  },
  {
   "start": 53472,
   "end": 53475,
   "type": "Byte"
  },
  {
   "start": 53476,
   "end": 53535,
   "type": "Byte"
  },
  {
   "start": 53536,
   "end": 53553,
   "type": "Byte"
  },
  {
   "start": 53554,
   "end": 53575,
   "type": "Byte"
  },
  {
   "start": 53576,
   "end": 53605,
   "type": "Byte"
  },
  {
   "start": 53606,
   "end": 53607,
   "type": "Byte"
  },
  {
   "start": 53608,
   "end": 53625,
   "type": "Byte"
  },
  {
   "start": 53626,
   "end": 53663,
   "type": "Byte"
  },
  {
   "start": 53664,
   "end": 53677,
   "type": "Byte"
  },
  {
   "start": 53678,
   "end": 53685,
   "type": "Byte"
  },
  {
   "start": 53686,
   "end": 53687,
   "type": "Word"
  },
  {
   "start": 53688,
   "end": 53695,
   "type": "Byte"
  },
  {
   "start": 53696,
   "end": 53715,
   "type": "Byte"
  },
  {
   "start": 53716,
   "end": 53735,
   "type": "Byte"
  },
  {
   "start": 53736,
   "end": 53749,
   "type": "Byte"
  },
  {
   "start": 53750,
   "end": 53754,
   "type": "Byte"
  },
  {
   "start": 53755,
   "end": 53767,
   "type": "Byte"
  },
  {
   "start": 53768,
   "end": 54157,
   "type": "Byte"
  },
  {
   "start": 54158,
   "end": 54235,
   "type": "Byte"
  },
  {
   "start": 54236,
   "end": 54280,
   "type": "Byte"
  },
  {
   "start": 54281,
   "end": 54332,
   "type": "Byte"
  },
  {
   "start": 54333,
   "end": 54401,
   "type": "Byte"
  },
  {
   "start": 54402,
   "end": 54412,
   "type": "Byte"
  },
  {
   "start": 54413,
   "end": 54476,
   "type": "Byte"
  },
  {
   "start": 54477,
   "end": 54489,
   "type": "Byte"
  },
  {
   "start": 54490,
   "end": 54490,
   "type": "Byte"
  },
  {
   "start": 54491,
   "end": 54502,
   "type": "Byte"
  },
  {
   "start": 54503,
   "end": 54514,
   "type": "Byte"
  },
  {
   "start": 54515,
   "end": 54526,
   "type": "Byte"
  },
  {
   "start": 54527,
   "end": 54538,
   "type": "Byte"
  },
  {
   "start": 54539,
   "end": 54550,
   "type": "Byte"
  },
  {
   "start": 54551,
   "end": 54562,
   "type": "Byte"
  },
  {
   "start": 54563,
   "end": 54574,
   "type": "Byte"
  },
  {
   "start": 54575,
   "end": 54586,
   "type": "Byte"
  },
  {
   "start": 54587,
   "end": 54598,
   "type": "Byte"
  },
  {
   "start": 54599,
   "end": 54610,
   "type": "Byte"
  },
  {
   "start": 54611,
   "end": 54622,
   "type": "Byte"
  },
  {
   "start": 54623,
   "end": 54634,
   "type": "Byte"
  },
  {
   "start": 54635,
   "end": 54646,
   "type": "Byte"
  },
  {
   "start": 54647,
   "end": 54658,
   "type": "Byte"
  },
  {
   "start": 54659,
   "end": 54670,
   "type": "Byte"
  },
  {
   "start": 54671,
   "end": 54682,
   "type": "Byte"
  },
  {
   "start": 54683,
   "end": 54694,
   "type": "Byte"
  },
  {
   "start": 54695,
   "end": 54706,
   "type": "Byte"
  },
  {
   "start": 54707,
   "end": 54718,
   "type": "Byte"
  },
  {
   "start": 54719,
   "end": 54730,
   "type": "Byte"
  },
  {
   "start": 54731,
   "end": 54742,
   "type": "Byte"
  },
  {
   "start": 54743,
   "end": 54754,
   "type": "Byte"
  },
  {
   "start": 54755,
   "end": 54766,
   "type": "Byte"
  },
  {
   "start": 54767,
   "end": 54778,
   "type": "Byte"
  },
  {
   "start": 54779,
   "end": 54790,
   "type": "Byte"
  },
  {
   "start": 54791,
   "end": 54808,
   "type": "Byte"
  },
  {
   "start": 54809,
   "end": 54844,
   "type": "Byte"
  },
  {
   "start": 54845,
   "end": 54886,
   "type": "Byte"
  },
  {
   "start": 54887,
   "end": 54928,
   "type": "Byte"
  },
  {
   "start": 54929,
   "end": 54994,
   "type": "Byte"
  },
  {
   "start": 54995,
   "end": 55042,
   "type": "Byte"
  },
  {
   "start": 55043,
   "end": 55072,
   "type": "Byte"
  },
  {
   "start": 55073,
   "end": 55096,
   "type": "Byte"
  },
  {
   "start": 55097,
   "end": 55252,
   "type": "Byte"
  },
  {
   "start": 55253,
   "end": 55612,
   "type": "Byte"
  },
  {
   "start": 55613,
   "end": 56393,
   "type": "Byte"
  },
  {
   "start": 56394,
   "end": 56812,
   "type": "Byte"
  },
  {
   "start": 56813,
   "end": 56856,
   "type": "Byte"
  },
  {
   "start": 56857,
   "end": 57705,
   "type": "Byte"
  },
  {
   "start": 57706,
   "end": 57730,
   "type": "Code"
  },
  {
   "start": 57731,
   "end": 57766,
   "type": "Code"
  },
  {
   "start": 57767,
   "end": 57792,
   "type": "Word"
  },
  {
   "start": 57793,
   "end": 57803,
   "type": "Code"
  },
  {
   "start": 57804,
   "end": 57918,
   "type": "Code"
  },
  {
   "start": 57919,
   "end": 58094,
   "type": "Code"
  },
  {
   "start": 58095,
   "end": 58160,
   "type": "Code"
  },
  {
   "start": 58161,
   "end": 58808,
   "type": "Byte"
  },
  {
   "start": 58809,
   "end": 59456,
   "type": "Byte"
  },
  {
   "start": 59457,
   "end": 60096,
   "type": "Byte"
  },
  {
   "start": 60097,
   "end": 60306,
   "type": "Byte"
  },
  {
   "start": 60307,
   "end": 60982,
   "type": "Byte"
  },
  {
   "start": 60983,
   "end": 61432,
   "type": "Byte"
  },
  {
   "start": 61433,
   "end": 62332,
   "type": "Byte"
  },
  {
   "start": 62333,
   "end": 62944,
   "type": "Byte"
  },
  {
   "start": 62945,
   "end": 63584,
   "type": "Byte"
  },
  {
   "start": 63585,
   "end": 64196,
   "type": "Byte"
  },
  {
   "start": 64197,
   "end": 65023,
   "type": "Byte"
  },
  {
   "start": 65024,
   "end": 65024,
   "type": "Byte"
  },
  {
   "start": 65025,
   "end": 65025,
   "type": "Byte"
  },
  {
   "start": 65026,
   "end": 65026,
   "type": "Byte"
  },
  {
   "start": 65027,
   "end": 65190,
   "type": "Code"
  },
  {
   "start": 65191,
   "end": 65300,
   "type": "Code"
  },
  {
   "start": 65301,
   "end": 65342,
   "type": "Byte"
  },
  {
   "start": 65343,
   "end": 65357,
   "type": "Byte"
  },
  {
   "start": 65358,
   "end": 65523,
   "type": "Byte"
  },
  {
   "start": 65524,
   "end": 65526,
   "type": "Code"
  },
  {
   "start": 65527,
   "end": 65534,
   "type": "Byte"
  },
  {
   "start": 65535,
   "end": 65535,
   "type": "Code"
  }
 ],
 "symbols": [
  {
   "address": 53251,
   "name": "scenario_types",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53253,
   "name": "scenario_objects",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53255,
   "name": "scenario_terrain_chars",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53257,
   "name": "scenario_small_font",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53259,
   "name": "scenario_messages",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53261,
   "name": "scenario_words",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53263,
   "name": "scenario_routes",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53265,
   "name": "scenario_route_flags",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53267,
   "name": "scenario_waypoints",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53269,
   "name": "scenario_independents",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53271,
   "name": "scenario_trip_squares",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53273,
   "name": "scenario_spell_routines",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53275,
   "name": "hook_start",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53278,
   "name": "hook_classify_step",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53281,
   "name": "hook_after_step",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53284,
   "name": "hook_use_square",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53287,
   "name": "hook_turn_start",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53290,
   "name": "hook_select_menu",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53293,
   "name": "hook_read",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53296,
   "name": "scenario_map",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53298,
   "name": "scenario_things",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53300,
   "name": "scenario_frames",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53302,
   "name": "scenario_colour_sets",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53304,
   "name": "scenario_graphics",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53306,
   "name": "scenario_names",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53308,
   "name": "charset_in_use",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53309,
   "name": "charset_address",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53311,
   "name": "scenario_number",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53312,
   "name": "portal_first_turn",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53313,
   "name": "portal_turn_range",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53314,
   "name": "portal_turns_left",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53315,
   "name": "start_square_count",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53316,
   "name": "portal_square_count",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53317,
   "name": "escape_bonus",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53318,
   "name": "computer_mana_reserve",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53319,
   "name": "route_count",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53320,
   "name": "one_player",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53321,
   "name": "dieback_terrain",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53323,
   "name": "fire_strength",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53328,
   "name": "blob_strength",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53332,
   "name": "shields",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53336,
   "name": "victory_points",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53340,
   "name": "final_scores",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53344,
   "name": "portal_square",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53346,
   "name": "portal_turn_number",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53347,
   "name": "computer_moving",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53348,
   "name": "versus_computer",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53349,
   "name": "turn_number",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53350,
   "name": "turn_hidden",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53351,
   "name": "player_count",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53352,
   "name": "saves_used",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53353,
   "name": "wizards_out",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53354,
   "name": "portal_squares",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53362,
   "name": "start_squares",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53370,
   "name": "charset_table",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53378,
   "name": "scenario_wizard",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53448,
   "name": "placement_chances",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53450,
   "name": "draw_map_screen",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53452,
   "name": "scan_square",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53454,
   "name": "draw_map_square",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53456,
   "name": "cursor_on",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53457,
   "name": "cursor_offset",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53459,
   "name": "cursor_square",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53461,
   "name": "draw_row",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53463,
   "name": "info_cleared",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53464,
   "name": "cursor_moved",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53465,
   "name": "in_use_type",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53466,
   "name": "in_use_index",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53467,
   "name": "in_use_entry",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53469,
   "name": "objects_here_count",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53470,
   "name": "carried_count",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53471,
   "name": "interrupt_flags",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53472,
   "name": "mana",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53476,
   "name": "enemy_list",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53536,
   "name": "flee_squares",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53554,
   "name": "object_counts",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53576,
   "name": "objects_seen",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53606,
   "name": "unused_D166",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53608,
   "name": "object_lists",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53626,
   "name": "computer_figures",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53664,
   "name": "found_count",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53678,
   "name": "creatures_here",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53686,
   "name": "computer_target",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53688,
   "name": "computer_scratch",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53696,
   "name": "carried_list",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53716,
   "name": "objects_here",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53736,
   "name": "menu_list",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53750,
   "name": "bar_lengths",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53755,
   "name": "figures",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 53768,
   "name": "terrain_records",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54158,
   "name": "terrain_flags",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54236,
   "name": "spell_priorities",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54281,
   "name": "object_worths",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54333,
   "name": "routes",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54402,
   "name": "route_flags",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54413,
   "name": "waypoints",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54477,
   "name": "independents",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54490,
   "name": "trip_squares",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54491,
   "name": "type_gold_dragon",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54503,
   "name": "type_green_dragon",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54515,
   "name": "type_red_dragon",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54527,
   "name": "type_pixie",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54539,
   "name": "type_dwarf",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54551,
   "name": "type_goblin",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54563,
   "name": "type_troll",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54575,
   "name": "type_giant",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54587,
   "name": "type_centaur",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54599,
   "name": "type_unicorn",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54611,
   "name": "type_pegasus",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54623,
   "name": "type_gryphon",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54635,
   "name": "type_elephant",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54647,
   "name": "type_gorilla",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54659,
   "name": "type_lion",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54671,
   "name": "type_bear",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54683,
   "name": "type_crocodile",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54695,
   "name": "type_giant_bat",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54707,
   "name": "type_harpy",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54719,
   "name": "type_giant_spider",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54731,
   "name": "type_zombie",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54743,
   "name": "type_ghost",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54755,
   "name": "type_vampire",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54767,
   "name": "type_spectre",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54779,
   "name": "type_demon",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54791,
   "name": "objects_treasure",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54809,
   "name": "objects_herbs",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54845,
   "name": "objects_weapons",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54887,
   "name": "objects_magic_weapons",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54929,
   "name": "objects_cauldron_and_potions",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 54995,
   "name": "objects_vials",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 55043,
   "name": "objects_chests_and_keys",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 55073,
   "name": "objects_food_and_scrolls",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 55097,
   "name": "terrain_chars",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 55253,
   "name": "small_font",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 55613,
   "name": "messages",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 56394,
   "name": "words",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 56813,
   "name": "player_names",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 56857,
   "name": "more_words",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 57706,
   "name": "keep_out_hazards",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 57731,
   "name": "start_hook",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 57767,
   "name": "spell_routines",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 57793,
   "name": "computer_shield",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 57804,
   "name": "computer_bolt",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 57919,
   "name": "computer_area_spell",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 58095,
   "name": "friend_near",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 58161,
   "name": "map",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 58809,
   "name": "map_rows_18",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 59457,
   "name": "things",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 60097,
   "name": "things_80",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 60307,
   "name": "frames",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 60983,
   "name": "colour_sets",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 61433,
   "name": "graphics",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 62333,
   "name": "graphics_100",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 62945,
   "name": "charset_2",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 63585,
   "name": "charset_2_80",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 64197,
   "name": "charset_3",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 65024,
   "name": "startup_entry",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 65025,
   "name": "startup_list",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 65026,
   "name": "startup_chest_placed",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 65027,
   "name": "scatter_objects",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 65191,
   "name": "place_object",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 65301,
   "name": "start_objects",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 65343,
   "name": "start_creature_records",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 65358,
   "name": "engine_variables",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 65524,
   "name": "interrupt_jump",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 65527,
   "name": "random_counter_area",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 65535,
   "name": "im2_vector",
   "type": "UserDefined",
   "kind": "user"
  }
 ],
 "comments": [
  {
   "address": 53251,
   "type": "line",
   "text": "Scenario 1, The Many Coloured Land: the file the game loads at $D003 with LOAD SCENARIO, 1.GAM on the tape, $D003 to $FFFF. Its header starts here, with the pointers to its tables: this one to the creature types, twelve bytes for each type from $90 (type_record), at $D4DB."
  },
  {
   "address": 53253,
   "type": "line",
   "text": "Pointer to the scenario's object records, six bytes for each object type from $50 (object_record): its worth, weight, two figures that are combat and defence for a weapon and healing and mana for something to eat, thrown damage and flags."
  },
  {
   "address": 53255,
   "type": "line",
   "text": "Pointer to the big map's table of each terrain's character and colour (big_map_terrain)."
  },
  {
   "address": 53257,
   "type": "line",
   "text": "Pointer to the small font the big map draws its squares in (big_map)."
  },
  {
   "address": 53259,
   "type": "line",
   "text": "Pointer to the scenario's messages: each a length byte, then word numbers and control codes (print_message)."
  },
  {
   "address": 53261,
   "type": "line",
   "text": "Pointer to the scenario's words: each a length byte, then its characters."
  },
  {
   "address": 53263,
   "type": "line",
   "text": "Pointer to the computer's routes: each a length in its low seven bits, then waypoint numbers (route_address)."
  },
  {
   "address": 53265,
   "type": "line",
   "text": "Pointer to a flag byte for each route, which says what kind of creature may take it (add_to_wizard_list)."
  },
  {
   "address": 53267,
   "type": "line",
   "text": "Pointer to the waypoints the routes name: a square, two bytes, each (waypoint_square)."
  },
  {
   "address": 53269,
   "type": "line",
   "text": "Pointer to the independent creatures' orders: four bytes a creature, its entry, route, step on the route and orders (guard, wait, release group), as find_in_list reads them."
  },
  {
   "address": 53271,
   "type": "line",
   "text": "Pointer to the trip squares: three bytes each, row, column and the group of waiting creatures released when the square changes (a door there unlocked, opened or closed, a chest there opened, its terrain set), ending with $FE (trip_square)."
  },
  {
   "address": 53273,
   "type": "line",
   "text": "Pointer to the scenario's routines for the spells from $20 up, one word a spell, which the computer's wizard and scenario_spell jump to."
  },
  {
   "address": 53275,
   "type": "line",
   "text": "The scenario's first hook, a JP: start_game calls it before the start-up routine at $FE03."
  },
  {
   "address": 53278,
   "type": "line",
   "text": "The hook, a JP, that classify_step's verdict on a step ($FF8F) passes through, so that the scenario can change what a step means; select_ground and computer_try_steps both call it."
  },
  {
   "address": 53281,
   "type": "line",
   "text": "Three bytes, a RET or a JP: called after a creature has moved a square, by select_ground for a human's creature and by computer_step_move for the computer's."
  },
  {
   "address": 53284,
   "type": "line",
   "text": "Three bytes, the hook use_square ends at for everything it does not do itself: USE by a creature in the air, on a square where a creature stands on the ground or two creatures stand, and on anything but a door or chest that opens, closes or unlocks."
  },
  {
   "address": 53287,
   "type": "line",
   "text": "Three bytes: start_of_turn calls it for each of the player's creatures once that creature is the selected one, after its upkeep."
  },
  {
   "address": 53290,
   "type": "line",
   "text": "Three bytes: select_menu calls it just before it adds CANCEL, so that the scenario can add options of its own."
  },
  {
   "address": 53293,
   "type": "line",
   "text": "Three bytes: READ in the select menu (option $15 of select_actions) runs it."
  },
  {
   "address": 53296,
   "type": "line",
   "text": "Pointer to the map, 36 rows of 36 bytes, one a square (map_address)."
  },
  {
   "address": 53298,
   "type": "line",
   "text": "Pointer to the table of things, five bytes for each value a map byte can hold (terrain, object or creature): its character set, graphic and colour set, then its animation, the frames left and the next frame (thing_graphic)."
  },
  {
   "address": 53300,
   "type": "line",
   "text": "Pointer to the animation frames, four bytes each: graphic, colour set, count and next frame (next_frame)."
  },
  {
   "address": 53302,
   "type": "line",
   "text": "Pointer to the colour sets, nine attributes a set (draw_block)."
  },
  {
   "address": 53304,
   "type": "line",
   "text": "Pointer to the graphics, nine character numbers each, three rows of three (draw_block)."
  },
  {
   "address": 53306,
   "type": "line",
   "text": "Pointer to the table of the players' names, eleven bytes a player, which copy_wizard_name fills."
  },
  {
   "address": 53308,
   "type": "line",
   "text": "The number of the character set the map graphics are being drawn from (thing_graphic)."
  },
  {
   "address": 53309,
   "type": "line",
   "text": "The address of that character set, from charset_table."
  },
  {
   "address": 53311,
   "type": "line",
   "text": "The scenario's number, 1 to 3; 0 means no scenario is loaded, and PLAY GAME does nothing."
  },
  {
   "address": 53312,
   "type": "line",
   "text": "The earliest turn the portal can open on."
  },
  {
   "address": 53313,
   "type": "line",
   "text": "set_up_game adds a random number below this to portal_first_turn to choose the portal's turn."
  },
  {
   "address": 53314,
   "type": "line",
   "text": "How many turns the portal stays open; counted down once it has opened (portal_turn)."
  },
  {
   "address": 53315,
   "type": "line",
   "text": "How many of the start squares at start_squares to choose from."
  },
  {
   "address": 53316,
   "type": "line",
   "text": "How many of the squares at portal_squares the portal can open on."
  },
  {
   "address": 53317,
   "type": "line",
   "text": "The victory points a wizard earns for escaping through the portal (step_effects)."
  },
  {
   "address": 53318,
   "type": "line",
   "text": "The mana the computer's wizard keeps back when it summons with no enemy in view (computer_summon)."
  },
  {
   "address": 53319,
   "type": "line",
   "text": "How many routes the scenario has (add_to_wizard_list)."
  },
  {
   "address": 53320,
   "type": "line",
   "text": "Not 0 for a scenario that is for one player only: HOW MANY PLAYERS? is not asked, and each wizard starts on its own square."
  },
  {
   "address": 53321,
   "type": "line",
   "text": "The terrain that magic fire and gooey blob die back to, one byte each (spread_magic)."
  },
  {
   "address": 53323,
   "type": "line",
   "text": "The strength of each player's magic fire, players 0 to 4 (0 is the wild fire), set from the spell's level when it is cast and used to spread it and to hurt creatures in it."
  },
  {
   "address": 53328,
   "type": "line",
   "text": "The strength of each player's gooey blob, players 1 to 4, the spell's level less 1."
  },
  {
   "address": 53332,
   "type": "line",
   "text": "Each wizard's magic shield, the turns it has left; it adds to the wizard's defence (magic_shield)."
  },
  {
   "address": 53336,
   "type": "line",
   "text": "Each player's victory points, players 1 to 4."
  },
  {
   "address": 53340,
   "type": "line",
   "text": "Each player's score when the wizard leaves through the portal or the game ends (game_over)."
  },
  {
   "address": 53344,
   "type": "line",
   "text": "The square the portal opened on, row then column."
  },
  {
   "address": 53346,
   "type": "line",
   "text": "The turn the portal opens on, chosen by set_up_game."
  },
  {
   "address": 53347,
   "type": "line",
   "text": "Not 0 while the computer moves its creatures."
  },
  {
   "address": 53348,
   "type": "line",
   "text": "Not 0 in a game against the computer, who is player 2."
  },
  {
   "address": 53349,
   "type": "line",
   "text": "The game turn, from 1."
  },
  {
   "address": 53350,
   "type": "line",
   "text": "Not 0 while a turn is played out of sight: no messages, sounds or pictures."
  },
  {
   "address": 53351,
   "type": "line",
   "text": "How many players, 1 to 4 (2 in a game against the computer)."
  },
  {
   "address": 53352,
   "type": "line",
   "text": "How many times a game against the computer has been saved; the end of turn menu allows five."
  },
  {
   "address": 53353,
   "type": "line",
   "text": "How many wizards have died or left the map."
  },
  {
   "address": 53354,
   "type": "line",
   "text": "The squares the portal can open on, two bytes each, row then column (portal_turn)."
  },
  {
   "address": 53362,
   "type": "line",
   "text": "The wizards' starting squares, two bytes each, row then column; set_up_game marks each one it uses with $FF."
  },
  {
   "address": 53370,
   "type": "line",
   "text": "The four character sets the map graphics are drawn from."
  },
  {
   "address": 53378,
   "type": "line",
   "text": "The scenario's own wizard, a 70-byte wizard record (mana, level, the 45 spells, the twelve figures, the name and the score), which becomes wizard 2 in a game against the computer."
  },
  {
   "address": 53448,
   "type": "line",
   "text": "Read once, by the scenario's start-up routine at $FE03, before set_up_game: for each terrain from 0 to $34, two bytes, the chance in 200 that the routine puts objects on a square of that terrain and the number of the list in object_lists it takes them from. From set_up_game on, everything from here to $D207 is working storage for play, and these first two bytes hold the map window's top left square, row then column, the saved copy of the cursor's window (draw_map, restore_cursor)."
  },
  {
   "address": 53450,
   "type": "line",
   "text": "In play: draw_map's screen position as it works across the window."
  },
  {
   "address": 53452,
   "type": "line",
   "text": "In play: a square, row then column, that several routines step across the map with: draw_map across the window, spread_magic and big_map across the whole map, and spread_to_neighbours from it; map_address_window reads it."
  },
  {
   "address": 53454,
   "type": "line",
   "text": "In play: draw_map's map position as it works across the window."
  },
  {
   "address": 53456,
   "type": "line",
   "text": "In play: not 0 while the blinking cursor shows on the map window."
  },
  {
   "address": 53457,
   "type": "line",
   "text": "In play: the saved copy of the cursor's offset in the window, row then column."
  },
  {
   "address": 53459,
   "type": "line",
   "text": "In play: the square under the cursor, row then column."
  },
  {
   "address": 53461,
   "type": "line",
   "text": "In play: the character row and column (two bytes) at which draw_block_at draws."
  },
  {
   "address": 53463,
   "type": "line",
   "text": "In play: set while the information display is clear because the cursor is moving."
  },
  {
   "address": 53464,
   "type": "line",
   "text": "In play: set when the cursor has moved."
  },
  {
   "address": 53465,
   "type": "line",
   "text": "In play: the type of the object the creature being described has in use."
  },
  {
   "address": 53466,
   "type": "line",
   "text": "In play: its index in the object table."
  },
  {
   "address": 53467,
   "type": "line",
   "text": "In play: its entry in the object table."
  },
  {
   "address": 53469,
   "type": "line",
   "text": "In play: how many objects lie on the square, listed at objects_here."
  },
  {
   "address": 53470,
   "type": "line",
   "text": "In play: how many objects the creature carries, listed at carried_list."
  },
  {
   "address": 53471,
   "type": "line",
   "text": "In play: what the interrupt does on its working frames: bit 0 redraws the map window, bit 1 the information display's pictures and icons, bit 2 the first two pictures only, bit 3 the menu bar; bit 4 slides the bars, on every frame."
  },
  {
   "address": 53472,
   "type": "line",
   "text": "In play: each player's mana, players 1 to 4."
  },
  {
   "address": 53476,
   "type": "line",
   "text": "In play: the computer's list of the enemies its creature has seen, three bytes each (the creature, its combat, its defence), up to 20; cleared to $FF by clear_plan."
  },
  {
   "address": 53536,
   "type": "line",
   "text": "In play: the squares of the enemies a fleeing computer creature runs from, two bytes each (computer_flee)."
  },
  {
   "address": 53554,
   "type": "line",
   "text": "Read by the start-up routine: for each object type from $50 to $83, how many more of it may be placed; each one placed counts one off. In play these bytes are the end of flee_squares and the start of objects_seen."
  },
  {
   "address": 53576,
   "type": "line",
   "text": "In play: the entries of the objects a computer creature has seen, two bytes each, up to 24 (see_entry)."
  },
  {
   "address": 53606,
   "type": "line",
   "text": "Two bytes between the object counts and the lists that the start-up routine does not read; in play the middle of objects_seen."
  },
  {
   "address": 53608,
   "type": "line",
   "text": "Read by the start-up routine: ten lists of sixteen object types, from which it draws at random (0 places nothing); list 0 also fills each locked chest and list 1 each closed one. In play these bytes are the end of objects_seen and the computer's working figures below."
  },
  {
   "address": 53626,
   "type": "line",
   "text": "The computer's working figures for the creature it moves: the weight it can still carry ($D17A), the ranged combat and range of its weapon ($D17B, $D17C), its combat and defence ($D17D, $D17E), its type's weapon and USE bits ($D17F, $D180), why its move ended ($D181), its entry in the computer's list ($D182), the object table pointer and count of the computer's turn ($D184, $D186), then $D187-$D19F, bytes many routines keep: the enemies and objects a creature has noted (note_enemy, update_view, see_entry), the targets, flight and steps the computer's choices work with (computer_find_prey, computer_flee, computer_seek_object, computer_shoot, rank_neighbours, computer_cast), and a few that are not the computer's: $D190 and $D191, which can_fly_or_land sets for select_menu, and $D19F, the owner of the creature under the cursor (print_square_name)."
  },
  {
   "address": 53664,
   "type": "line",
   "text": "Working storage for describing a square: creatures found (find_creatures_at), the selected creature's entry ($D1A1), the partner's index ($D1A3) and the ten icon flags ($D1A4-$D1AD)."
  },
  {
   "address": 53678,
   "type": "line",
   "text": "The two creatures find_creatures_at finds on a square: type, entry and index of each."
  },
  {
   "address": 53686,
   "type": "line",
   "text": "The square the computer's creature is heading for, row then column."
  },
  {
   "address": 53688,
   "type": "line",
   "text": "More of the computer's working bytes: flee state ($D1B8), the spell it is trying ($D1B9), guard orders ($D1BA), the player whose turn starts ($D1BB), treasure for the wizard ($D1BC) the brewing state ($D1BD, $D1BE), and a distance the scenario's spell routines keep ($D1BF)."
  },
  {
   "address": 53696,
   "type": "line",
   "text": "The objects the creature carries, pairs of index and type (list_carried), up to ten."
  },
  {
   "address": 53716,
   "type": "line",
   "text": "The objects lying on a square, pairs of index and type (list_objects_at), up to ten."
  },
  {
   "address": 53736,
   "type": "line",
   "text": "The options of the menu being built (add_menu_option)."
  },
  {
   "address": 53750,
   "type": "line",
   "text": "The drawn length of each of the information display's five bars (slide_bars)."
  },
  {
   "address": 53755,
   "type": "line",
   "text": "The selected creature's figures (load_figures): action points, stamina, constitution, combat, defence; then the most of each ($D200-$D204). Nothing reads the last three in play; in the file they are the end of object_lists."
  },
  {
   "address": 53768,
   "type": "line",
   "text": "The terrain records, five bytes for each of the terrain types 0 to $4D (terrain_record): the action points a step onto it costs ($FF where nothing can walk), its toughness against attack, its resistance to flood and to tangle vine (four bits each), its susceptibility to fire and to blob (four bits each), and flags, whose top two bits name the terrain it breaks into."
  },
  {
   "address": 54158,
   "type": "line",
   "text": "A flag byte for each terrain type 0 to $4D: bit 2 is cover, from which a creature on the ground sees less, bit 3 a square magic lightning cannot target, and the bit that trace_line asks about blocks a line of sight. The table at $D3B9 that the computer's worth of each object type is read from starts inside this one: the worths, for types $50 up, lie from $D409."
  },
  {
   "address": 54236,
   "type": "line",
   "text": "The computer's priority for each of the 45 spells, in the order of the wizard record: it tries the highest first (computer_cast) and halves a spell's priority each time it casts it. 24 spells have a priority here; the rest, 0, it never casts. The highest, 220, is MAGIC LIGHTNING."
  },
  {
   "address": 54281,
   "type": "line",
   "text": "The computer's worth of each object type from $50 to $83, read through the table based at $D3B9 (its worth less bit 7 when choosing what to pick up, carry or use). Bit 7 marks treasure a computer creature carries to its wizard: GOLD, RUBY, EMERALD, DRAGON HERB, MISTLETOE, AMBERGRIS, SULPH, CLOVER, FAIRY WING, CAULDRON, APPLE, CRYSTAL, MAGIC MUSHROOM, SCROLL."
  },
  {
   "address": 54333,
   "type": "line",
   "text": "The computer's 11 routes, each a length byte (bit 7 set, the low seven bits counting itself) and the numbers of its waypoints, ending with $80: route 0: 26 31; route 1: 20 21 22 23; route 2: 0 5 10 15; route 3: 13 12 19 18 6 9 2 1; route 4: 3 2 9 8 16 19 12 11; route 5: 24 10 26 5 25; route 6: 4 3 11 14 17 16 8 7; route 7: 14 13 1 4 7 6 18 17; route 8: 24 25; route 9: 27 30 28 29; route 10: 27 30 29 28."
  },
  {
   "address": 54402,
   "type": "line",
   "text": "A flag byte for each route, which add_to_wizard_list checks against the creature it gives a route to: bit 0 asks for a flyer, bit 2 for a creature that can carry, bits 1, 3, 4 and 5 for type flags 7 (USE), 4, 5 (swims) and 6, and bit 6 lets a wizard take the route: $42 $48 $42 $40 $00 $01 $00 $00 $46 $10 $01."
  },
  {
   "address": 54413,
   "type": "line",
   "text": "The 32 waypoints the routes name, two bytes each, row then column."
  },
  {
   "address": 54477,
   "type": "line",
   "text": "The independent creatures' orders, four bytes for each of 3: its entry in the object table, its route, its step along the route, and its orders (bit 7 guard, bit 6 wait until its group is released, bits 0 to 5 the group); $FE ends the list."
  },
  {
   "address": 54490,
   "type": "line",
   "text": "The trip squares: none, only the $FE that ends the list."
  },
  {
   "address": 54491,
   "type": "line",
   "text": "GOLD DRAGON ($90): 38 action points on the ground, 40 flying; stamina 86, constitution 90, combat 50, defence 42, magic resistance 82; carries 30, bodyguard chance 0 in 100, potion consumption 10, 18 victory points; flags $A0 (swims, can USE doors and chests)."
  },
  {
   "address": 54503,
   "type": "line",
   "text": "GREEN DRAGON ($91): 32 action points on the ground, 36 flying; stamina 80, constitution 82, combat 40, defence 43, magic resistance 75; carries 26, bodyguard chance 0 in 100, potion consumption 10, 16 victory points; flags $90 (terrain flag 4, can USE doors and chests)."
  },
  {
   "address": 54515,
   "type": "line",
   "text": "RED DRAGON ($92): 34 action points on the ground, 40 flying; stamina 90, constitution 72, combat 32, defence 34, magic resistance 90; carries 32, bodyguard chance 0 in 100, potion consumption 10, 14 victory points; flags $C0 (terrain flag 6, can USE doors and chests)."
  },
  {
   "address": 54527,
   "type": "line",
   "text": "PIXIE ($93): 34 action points on the ground, 0 flying; stamina 40, constitution 16, combat 4, defence 6, magic resistance 67; carries 30, bodyguard chance 0 in 100, potion consumption 2, 2 victory points; flags $9C (uses weapons, can ride, terrain flag 4, can USE doors and chests)."
  },
  {
   "address": 54539,
   "type": "line",
   "text": "DWARF ($94): 26 action points on the ground, 0 flying; stamina 57, constitution 25, combat 6, defence 6, magic resistance 40; carries 35, bodyguard chance 0 in 100, potion consumption 2, 2 victory points; flags $CC (uses weapons, can ride, terrain flag 6, can USE doors and chests)."
  },
  {
   "address": 54551,
   "type": "line",
   "text": "GOBLIN ($95): 30 action points on the ground, 0 flying; stamina 45, constitution 32, combat 9, defence 9, magic resistance 46; carries 42, bodyguard chance 0 in 100, potion consumption 2, 2 victory points; flags $8C (uses weapons, can ride, can USE doors and chests)."
  },
  {
   "address": 54563,
   "type": "line",
   "text": "TROLL ($96): 32 action points on the ground, 0 flying; stamina 88, constitution 47, combat 12, defence 16, magic resistance 46; carries 40, bodyguard chance 0 in 100, potion consumption 2, 4 victory points; flags $8C (uses weapons, can ride, can USE doors and chests)."
  },
  {
   "address": 54575,
   "type": "line",
   "text": "GIANT ($97): 30 action points on the ground, 0 flying; stamina 48, constitution 66, combat 21, defence 15, magic resistance 50; carries 50, bodyguard chance 20 in 100, potion consumption 4, 6 victory points; flags $84 (uses weapons, can USE doors and chests)."
  },
  {
   "address": 54587,
   "type": "line",
   "text": "CENTAUR ($98): 48 action points on the ground, 0 flying; stamina 62, constitution 36, combat 8, defence 10, magic resistance 54; carries 34, bodyguard chance 0 in 100, potion consumption 3, 2 victory points; flags $84 (uses weapons, can USE doors and chests)."
  },
  {
   "address": 54599,
   "type": "line",
   "text": "UNICORN ($99): 56 action points on the ground, 0 flying; stamina 72, constitution 40, combat 12, defence 9, magic resistance 42; carries 0, bodyguard chance 0 in 100, potion consumption 3, 2 victory points; flags $41 (carries a rider, terrain flag 6)."
  },
  {
   "address": 54611,
   "type": "line",
   "text": "PEGASUS ($9A): 46 action points on the ground, 56 flying; stamina 80, constitution 40, combat 8, defence 9, magic resistance 50; carries 0, bodyguard chance 0 in 100, potion consumption 3, 2 victory points; flags $01 (carries a rider)."
  },
  {
   "address": 54623,
   "type": "line",
   "text": "GRYPHON ($9B): 42 action points on the ground, 52 flying; stamina 73, constitution 53, combat 24, defence 21, magic resistance 57; carries 0, bodyguard chance 0 in 100, potion consumption 4, 8 victory points; flags $41 (carries a rider, terrain flag 6)."
  },
  {
   "address": 54635,
   "type": "line",
   "text": "ELEPHANT ($9C): 36 action points on the ground, 0 flying; stamina 55, constitution 73, combat 14, defence 22, magic resistance 40; carries 0, bodyguard chance 0 in 100, potion consumption 6, 4 victory points; flags $01 (carries a rider)."
  },
  {
   "address": 54647,
   "type": "line",
   "text": "GORILLA ($9D): 34 action points on the ground, 0 flying; stamina 56, constitution 38, combat 15, defence 14, magic resistance 43; carries 26, bodyguard chance 20 in 100, potion consumption 4, 2 victory points; flags $90 (terrain flag 4, can USE doors and chests)."
  },
  {
   "address": 54659,
   "type": "line",
   "text": "LION ($9E): 54 action points on the ground, 0 flying; stamina 64, constitution 34, combat 21, defence 14, magic resistance 46; carries 0, bodyguard chance 20 in 100, potion consumption 4, 4 victory points; flags $10 (terrain flag 4)."
  },
  {
   "address": 54671,
   "type": "line",
   "text": "BEAR ($9F): 38 action points on the ground, 0 flying; stamina 70, constitution 48, combat 22, defence 26, magic resistance 48; carries 0, bodyguard chance 20 in 100, potion consumption 5, 6 victory points; flags $10 (terrain flag 4)."
  },
  {
   "address": 54683,
   "type": "line",
   "text": "CROCODILE ($A0): 26 action points on the ground, 0 flying; stamina 52, constitution 62, combat 26, defence 20, magic resistance 55; carries 0, bodyguard chance 0 in 100, potion consumption 4, 4 victory points; flags $20 (swims)."
  },
  {
   "address": 54695,
   "type": "line",
   "text": "GIANT BAT ($A1): 24 action points on the ground, 62 flying; stamina 75, constitution 20, combat 9, defence 7, magic resistance 41; carries 0, bodyguard chance 10 in 100, potion consumption 2, 2 victory points; flags $00."
  },
  {
   "address": 54707,
   "type": "line",
   "text": "HARPY ($A2): 28 action points on the ground, 52 flying; stamina 60, constitution 28, combat 22, defence 14, magic resistance 60; carries 16, bodyguard chance 0 in 100, potion consumption 4, 6 victory points; flags $80 (can USE doors and chests)."
  },
  {
   "address": 54719,
   "type": "line",
   "text": "GIANT SPIDER ($A3): 44 action points on the ground, 0 flying; stamina 74, constitution 52, combat 41, defence 24, magic resistance 55; carries 0, bodyguard chance 99 in 100, potion consumption 7, 12 victory points; flags $40 (terrain flag 6)."
  },
  {
   "address": 54731,
   "type": "line",
   "text": "ZOMBIE ($A4): 24 action points on the ground, 0 flying; stamina 90, constitution 50, combat 6, defence 5, magic resistance 50; carries 30, bodyguard chance 40 in 100, potion consumption 3, 2 victory points; flags $82 (undead, can USE doors and chests)."
  },
  {
   "address": 54743,
   "type": "line",
   "text": "GHOST ($A5): 36 action points on the ground, 36 flying; stamina 92, constitution 30, combat 8, defence 18, magic resistance 60; carries 0, bodyguard chance 10 in 100, potion consumption 6, 4 victory points; flags $22 (undead, swims)."
  },
  {
   "address": 54755,
   "type": "line",
   "text": "VAMPIRE ($A6): 34 action points on the ground, 40 flying; stamina 85, constitution 60, combat 18, defence 17, magic resistance 65; carries 30, bodyguard chance 99 in 100, potion consumption 5, 8 victory points; flags $82 (undead, can USE doors and chests)."
  },
  {
   "address": 54767,
   "type": "line",
   "text": "SPECTRE ($A7): 38 action points on the ground, 0 flying; stamina 80, constitution 72, combat 28, defence 24, magic resistance 70; carries 0, bodyguard chance 80 in 100, potion consumption 7, 10 victory points; flags $82 (undead, can USE doors and chests)."
  },
  {
   "address": 54779,
   "type": "line",
   "text": "DEMON ($A8): 30 action points on the ground, 0 flying; stamina 90, constitution 78, combat 38, defence 31, magic resistance 78; carries 0, bodyguard chance 99 in 100, potion consumption 9, 14 victory points; flags $82 (undead, can USE doors and chests)."
  },
  {
   "address": 54791,
   "type": "line",
   "text": "Object records, six bytes each: worth in victory points, weight, two figures (the combat and defence a weapon adds, flags bit 0; the healing and mana in something to eat, bit 2), thrown damage and flags (bit 3 fireproof): GOLD ($50) worth 16, weight 6, flags $08; RUBY ($51) worth 12, weight 3, flags $08; EMERALD ($52) worth 8, weight 3, flags $08."
  },
  {
   "address": 54809,
   "type": "line",
   "text": "Object records, six bytes each: worth in victory points, weight, two figures (the combat and defence a weapon adds, flags bit 0; the healing and mana in something to eat, bit 2), thrown damage and flags (bit 3 fireproof): DRAGON HERB ($53) worth 2, weight 2, flags $00; MISTLETOE ($54) worth 1, weight 4, flags $00; AMBERGRIS ($55) worth 1, weight 4, flags $00; SULPH ($56) worth 1, weight 3, flags $00; CLOVER ($57) worth 1, weight 2, flags $00; FAIRY WING ($58) worth 1, weight 1, flags $00."
  },
  {
   "address": 54845,
   "type": "line",
   "text": "Object records, six bytes each: worth in victory points, weight, two figures (the combat and defence a weapon adds, flags bit 0; the healing and mana in something to eat, bit 2), thrown damage and flags (bit 3 fireproof): SWORD ($59) worth 2, weight 10, combat +10, defence +4, thrown 16, flags $01; KNIFE ($5A) worth 1, weight 3, combat +4, defence +1, thrown 20, flags $01; SHIELD ($5B) worth 2, weight 8, defence +13, flags $01; BOW ($5C) worth 1, weight 4, flags $02; SPEAR ($5D) worth 1, weight 5, combat +8, defence +4, thrown 23, flags $01; CLUB ($5E) worth 0, weight 9, combat +5, defence +1, thrown 8, flags $01; AXE ($5F) worth 1, weight 7, combat +9, thrown 28, flags $01."
  },
  {
   "address": 54887,
   "type": "line",
   "text": "Object records, six bytes each: worth in victory points, weight, two figures (the combat and defence a weapon adds, flags bit 0; the healing and mana in something to eat, bit 2), thrown damage and flags (bit 3 fireproof): MAGIC SWORD ($60) worth 2, weight 10, combat +20, defence +8, thrown 32, flags $09; MAGIC KNIFE ($61) worth 1, weight 3, combat +8, defence +2, thrown 40, flags $09; MAGIC SHIELD ($62) worth 2, weight 8, defence +26, flags $09; MAGIC BOW ($63) worth 1, weight 4, flags $0A; MAGIC SPEAR ($64) worth 1, weight 5, combat +16, defence +8, thrown 46, flags $09; MAGIC CLUB ($65) worth 0, weight 9, combat +10, defence +2, thrown 16, flags $09; MAGIC AXE ($66) worth 1, weight 7, combat +18, thrown 56, flags $09."
  },
  {
   "address": 54929,
   "type": "line",
   "text": "Object records, six bytes each: worth in victory points, weight, two figures (the combat and defence a weapon adds, flags bit 0; the healing and mana in something to eat, bit 2), thrown damage and flags (bit 3 fireproof): CAULDRON ($67) worth 0, weight 15, flags $08; GOLD DRAGON POTION ($68) worth 0, weight 255, flags $00; GREEN DRAGON POTION ($69) worth 0, weight 255, flags $00; RED DRAGON POTION ($6A) worth 0, weight 255, flags $00; STRENGTH POTION ($6B) worth 0, weight 255, flags $00; PROTECTION POTION ($6C) worth 0, weight 255, flags $00; INVISIBILITY POTION ($6D) worth 0, weight 255, flags $00; SPEED POTION ($6E) worth 0, weight 255, flags $00; FLYING POTION ($6F) worth 0, weight 255, flags $00; SUPER POTION ($70) worth 0, weight 255, flags $00; HEALING POTION ($71) worth 0, weight 255, flags $00."
  },
  {
   "address": 54995,
   "type": "line",
   "text": "Object records, six bytes each: worth in victory points, weight, two figures (the combat and defence a weapon adds, flags bit 0; the healing and mana in something to eat, bit 2), thrown damage and flags (bit 3 fireproof): VIAL ($72) worth 1, weight 2, flags $00; STRENGTH VIAL ($73) worth 2, weight 4, flags $00; PROTECTION VIAL ($74) worth 2, weight 4, flags $00; INVISIBILITY VIAL ($75) worth 2, weight 4, flags $00; SPEED VIAL ($76) worth 2, weight 4, flags $00; FLYING VIAL ($77) worth 2, weight 4, flags $00; SUPER VIAL ($78) worth 2, weight 4, flags $00; HEALING VIAL ($79) worth 2, weight 4, flags $00."
  },
  {
   "address": 55043,
   "type": "line",
   "text": "Object records, six bytes each: worth in victory points, weight, two figures (the combat and defence a weapon adds, flags bit 0; the healing and mana in something to eat, bit 2), thrown damage and flags (bit 3 fireproof): LOCKED CHEST ($7A) worth 0, weight 255, bytes 2 and 3 hold 2 and 128, thrown 40, flags $08; CLOSED CHEST ($7B) worth 0, weight 255, bytes 2 and 3 hold 1 and 128, thrown 40, flags $08; OPEN CHEST ($7C) worth 0, weight 255, bytes 2 and 3 hold 0 and 128, thrown 40, flags $08; DOOR KEY ($7D) worth 1, weight 1, flags $08; CHEST KEY ($7E) worth 1, weight 1, flags $08."
  },
  {
   "address": 55073,
   "type": "line",
   "text": "Object records, six bytes each: worth in victory points, weight, two figures (the combat and defence a weapon adds, flags bit 0; the healing and mana in something to eat, bit 2), thrown damage and flags (bit 3 fireproof): APPLE ($7F) worth 1, weight 2, heals 10, flags $04; MAGIC APPLE ($80) worth 2, weight 2, heals 20, mana 5, flags $04; CRYSTAL ($81) worth 2, weight 2, flags $08; MAGIC MUSHROOM ($82) worth 1, weight 2, mana 8, flags $04."
  },
  {
   "address": 55097,
   "type": "line",
   "text": "The big map's character and colour for each of 78 terrains, two bytes each (big_map_terrain)."
  },
  {
   "address": 55253,
   "type": "line",
   "text": "The small font the big map draws in, 45 characters of eight bytes: a square's terrain, objects (character 8) and creatures (1 a wizard, 2 on the ground, 3 in the air)."
  },
  {
   "address": 55613,
   "type": "line",
   "text": "The scenario's 233 messages, each a length byte then word numbers and control codes. Message n + 1 names thing n (a terrain, object or creature): WASTELAND is message 1 and GOLD DRAGON message $91; from $AE come the menus, the play messages, the file panels and the turn panel."
  },
  {
   "address": 56394,
   "type": "line",
   "text": "The scenario's words, each a length byte then its characters: the names of its terrains, objects and creatures first."
  },
  {
   "address": 56813,
   "type": "line",
   "text": "Four eleven-byte words, a length byte and ten characters, that hold the players' names (copy_wizard_name writes each from the name pointer $DDE3 plus eleven a player), so that the messages can print them. The file has MERLIN, JEVARREL, THERMIDOR and GRISELDA here."
  },
  {
   "address": 56857,
   "type": "line",
   "text": "The rest of the words: the other creatures, then the menus', messages' and panels' words (SELECT-A, NOT ENOUGH, END MOVE, PRESS FIRE TO CONTINUE ...)."
  },
  {
   "address": 57706,
   "type": "line",
   "text": "The hook at $D01E for this scenario: in a game against the computer, a step by one of the computer's creatures (player 2) onto water, tangle vine or fire ($36 to $41) is made a square it cannot enter ($FF8F = 0), so the computer keeps its creatures out of them. The independent creatures and the human players' creatures are not held back."
  },
  {
   "address": 57731,
   "type": "line",
   "text": "The scenario's first hook ($D01B), run by start_game: fills the object table and the creature records ($5B5A-$606D) with $FF, then copies in the scenario's own objects and creatures, start_objects to the entries from 4 and start_creature_records to the first records."
  },
  {
   "address": 57767,
   "type": "line",
   "text": "The routine for each spell from $20, MAGIC FIRE, to $2C, MAGIC SHIELD, that the computer's wizard runs to cast it (scenario_spell); no_scenario_spell for the ones it never casts."
  },
  {
   "address": 57793,
   "type": "line",
   "text": "MAGIC SHIELD for the computer's wizard: cast only while wizard 2 has no shield ($D055), through the engine's magic_shield, then computer_spell_done."
  },
  {
   "address": 57804,
   "type": "line",
   "text": "MAGIC BOLT and MAGIC LIGHTNING for the computer's wizard. Goes through the enemies its creature has noted (enemy_list, $D188 of them) for the first that the spell can hurt, whose defence and a half is at most twice the blow's strength (four times the level plus 25); that is on the ground or flying, not carried; and that is within twice the level plus 6 half squares of the wizard. For lightning no creature of the computer's may stand within 4 half squares of the target (friend_near). Then the target goes in the cursor's square and the engine casts it (magic_bolt_at, or magic_lightning_at, whose own refusal of the computer is passed by), and the spell ends (computer_spell_done). The engine's own menu never lets the computer cast lightning."
  },
  {
   "address": 57919,
   "type": "line",
   "text": "MAGIC FIRE, GOOEY BLOB, TANGLE VINE and FLOOD for the computer's wizard. Takes the first enemy on its list that stands on the ground within twice the level plus 6 half squares, on a square that is not the computer's own fire ($3C) or blob ($44), water or tangle vine, and whose terrain can take the spell (its susceptibility to fire or blob, or its resistance to vine or flood, not 0). Vine and flood need no creature of the computer's within twice the level plus 1 of the target (friend_near). Then, when the turn is shown, the spell's sound and its flight (draw_spell_bolt), the spell on the square (area_spell_at), and computer_spell_done."
  },
  {
   "address": 58095,
   "type": "line",
   "text": "Z clear when a creature of player 2, the computer, stands within A half squares of the cursor's square ($D1BF keeps A): looks through all 145 entries of the object table for creatures ($8C up) whose record's owner is 2."
  },
  {
   "address": 58161,
   "type": "line",
   "text": "The map, 36 rows of 36 squares, one byte each, the terrain (below $50); rows 0 to 17 here. Objects and creatures are not in it in the file: the start-up and set_up_game put them there."
  },
  {
   "address": 58809,
   "type": "line",
   "text": "Rows 18 to 35 of the map."
  },
  {
   "address": 59457,
   "type": "line",
   "text": "The five-byte entry of every thing a map byte can be, from terrain 0 up (thing_graphic): the character set (0 to 3), graphic and colour set, then the animation, the frames left and the next frame ($FF for none); things 0 to $7F here."
  },
  {
   "address": 60097,
   "type": "line",
   "text": "The entries of things $80 to $A9: the rest of the objects, the wizards and the creatures."
  },
  {
   "address": 60307,
   "type": "line",
   "text": "169 animation frames, four bytes each: graphic, colour set, how long it shows and the next frame (next_frame)."
  },
  {
   "address": 60983,
   "type": "line",
   "text": "50 colour sets, nine attributes each, one for each character of a graphic (draw_block)."
  },
  {
   "address": 61433,
   "type": "line",
   "text": "168 graphics, nine character numbers each, three rows of three (draw_block); graphics 0 to 99 here."
  },
  {
   "address": 62333,
   "type": "line",
   "text": "Graphics 100 to 167."
  },
  {
   "address": 62945,
   "type": "line",
   "text": "Character set 2 of the map graphics (charset_table), eight bytes a character, from character 0."
  },
  {
   "address": 63585,
   "type": "line",
   "text": "Character set 2 from character 80."
  },
  {
   "address": 64197,
   "type": "line",
   "text": "Character set 3 of the map graphics, eight bytes a character, from character 0, up to the start-up routine at $FE00."
  },
  {
   "address": 65024,
   "type": "line",
   "text": "The start-up routine's working bytes: the object table entry of the chest being filled."
  },
  {
   "address": 65025,
   "type": "line",
   "text": "The list a chest's contents come from: 0 for a locked chest, 1 for a closed one."
  },
  {
   "address": 65026,
   "type": "line",
   "text": "Set once a chest has been placed on the square, so that a square gets one chest at most."
  },
  {
   "address": 65027,
   "type": "line",
   "text": "The scenario's start-up routine, which start_game runs once after the first hook: it scatters objects over the map at random. For every square whose terrain is below $35 and has a chance in placement_chances, a random number from 1 to 200 below that chance gives the square objects: one, plus one more for each further random number (below 200) under half the chance, then a quarter, then an eighth, four at most, each drawn from the terrain's list (place_object). Then every locked and closed chest in the object table, those placed by the hook and those just scattered, is filled with one to six objects from list 0 or 1, carried by the chest. All of it lives between $FE00 and $FF14, which start_game fills with $FF for the interrupt table straight after, and the engine's variables take over the rest."
  },
  {
   "address": 65191,
   "type": "line",
   "text": "Places one object from list A of object_lists on square $FF88: up to forty times it draws one of the list's sixteen entries at random, giving up on an entry of 0, until it finds an object type with some left to place (object_counts, which then counts one off). A second chest on the same square is refused, though its count has already gone. The object takes a free entry in the object table (free_entry_after_wizards) with its type, the square and the terrain under it, and an object from $74 to $7B gets a random number below 8 in byte 5, which is a vial's strength: that range takes in the two chests and leaves out the first vial, the STRENGTH VIAL ($73), whose byte 5 keeps the $FF the first hook filled the table with."
  },
  {
   "address": 65301,
   "type": "line",
   "text": "The 7 entries of the object table from entry 4 that the scenario's first hook copies in at the start, six bytes each (row, column, type, the terrain under it, who carries it or $FF, and its creature record or contents): GIANT SPIDER at 3,3; GIANT SPIDER at 32,32; GIANT SPIDER at 0,0; LOCKED CHEST at 0,0; LOCKED CHEST at 35,35; LOCKED CHEST at 0,35; LOCKED CHEST at 35,0."
  },
  {
   "address": 65343,
   "type": "line",
   "text": "The first 3 creature records (five bytes each: action points, stamina, constitution, potion, flags and owner), which the first hook copies to $5EC0."
  },
  {
   "address": 65358,
   "type": "line",
   "text": "From here to $FFF3 the engine keeps its working variables in play (the spell level at $FF0B, the creature being hit at $FF2B ...), and from $FFF3 down its stack: the file's bytes here are left over from when it was saved."
  },
  {
   "address": 65524,
   "type": "line",
   "text": "JP to the interrupt handler, $A879: where the IM 2 vector at $FFFF leads."
  },
  {
   "address": 65527,
   "type": "line",
   "text": "Engine variables: $FFF7, the counter at $FFF8 that wait_release counts on and the random numbers use, the creature at $FFF9, and the message and word table pointers print_message takes ($FFFB, $FFFD). The loader's stack overwrote $FFF8 and $FFFB-$FFFE while the file loaded."
  },
  {
   "address": 65535,
   "type": "line",
   "text": "$18, JR: with I = $FE and the table at $FE00 full of $FF, every interrupt jumps here, and the JR takes its offset from the ROM's first byte at $0000 ($F3), landing on interrupt_jump."
  }
 ]
}