{
 "schema": 1,
 "platform": "c64",
 "game": "the-secret-of-bastow-manor",
 "build": "",
 "source": "new_game.py",
 "regions": {
  "exclude": [
   [
    256,
    511,
    "stack"
   ],
   [
    53248,
    57343,
    "I/O and colour RAM"
   ]
  ],
  "extra": [],
  "edges": [
   0,
   256,
   512,
   1024,
   2048,
   4096,
   16384,
   32768,
   40960,
   49152,
   53248,
   57344
  ]
 },
 "blocks": [
  {
   "start": 2049,
   "end": 36806,
   "type": "BASIC"
  }
 ],
 "symbols": [
  {
   "address": 2049,
   "name": "init_variables",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 2449,
   "name": "verb_cut",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 2650,
   "name": "verb_eat",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 2816,
   "name": "show_room",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 3086,
   "name": "place_names",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 3537,
   "name": "place_names_2",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 4183,
   "name": "list_objects",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 4323,
   "name": "list_exits",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 4511,
   "name": "move_events",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 5209,
   "name": "prompt",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 6204,
   "name": "move_by_table",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 6357,
   "name": "verb_dispatch",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 6658,
   "name": "verb_go",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 7326,
   "name": "verb_get",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 7618,
   "name": "verb_drop",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 7802,
   "name": "verb_inventory",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 7812,
   "name": "verb_look",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 8723,
   "name": "verb_look_2",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 9624,
   "name": "look_fallback",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 9797,
   "name": "verb_break",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 10012,
   "name": "verb_climb",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 10256,
   "name": "verb_fill",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 10418,
   "name": "verb_help",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 10537,
   "name": "verb_light",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 10637,
   "name": "verb_move",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 10805,
   "name": "verb_press",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 10883,
   "name": "verb_pull",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 11077,
   "name": "verb_quit",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 11322,
   "name": "verb_read",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 11783,
   "name": "verb_remove",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 11933,
   "name": "verb_ring",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 12057,
   "name": "verb_save",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 12766,
   "name": "verb_unlock",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 13121,
   "name": "verb_throw",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 13325,
   "name": "verb_wear",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 13482,
   "name": "verb_open",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 14192,
   "name": "restore_game",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 14728,
   "name": "resolve_noun",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 15566,
   "name": "resolve_noun_names",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 16203,
   "name": "show_pack",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 16569,
   "name": "hide_sprites",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 16627,
   "name": "msg_locked",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 16657,
   "name": "delay_short",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 16728,
   "name": "find_in_pack",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 16808,
   "name": "unused_tune_player",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 16927,
   "name": "redraw_after_message",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 16978,
   "name": "reveal_object",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 17056,
   "name": "msg_cant_yet",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 17091,
   "name": "death_screen",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 17882,
   "name": "book_page",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 18413,
   "name": "safe_drop",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 18746,
   "name": "combination_lock",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 18986,
   "name": "robot_pushes_back",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 19106,
   "name": "victory",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 19193,
   "name": "title_tune",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 19374,
   "name": "undo_pack_flags",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 19552,
   "name": "old_man_knockout",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 19757,
   "name": "clear_message_area",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 19803,
   "name": "death_in_the_dark",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 19944,
   "name": "ladder_wont_fit",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 20014,
   "name": "coming_soon_screen",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 20618,
   "name": "dim_message",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 20674,
   "name": "ladder_moves",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 20809,
   "name": "slip_and_die",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 20869,
   "name": "pic_gates",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 21653,
   "name": "pic_wall",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 22257,
   "name": "pic_front_door",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 22820,
   "name": "pic_east_side",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 23323,
   "name": "pic_gravel_path",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 23920,
   "name": "pic_garden_shed",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 24498,
   "name": "pic_tree_top",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 24809,
   "name": "pic_shed",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 25303,
   "name": "pic_dim_room",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 25874,
   "name": "pic_hall_north",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 26457,
   "name": "pic_hall_south",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 27186,
   "name": "pic_kitchen",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 27671,
   "name": "pic_wine_cellar",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 28250,
   "name": "pic_secret_room",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 28472,
   "name": "pic_treasure_room",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 28753,
   "name": "pic_master_bedroom",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 29147,
   "name": "pic_bathroom",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 29517,
   "name": "pic_window_ledge",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 29968,
   "name": "pic_foyer",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 30448,
   "name": "pic_closet",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 31058,
   "name": "pic_study",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 31716,
   "name": "pic_tunnel",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 32227,
   "name": "pic_corridor",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 32512,
   "name": "pic_dark_room",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 32603,
   "name": "pic_laboratory",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 32867,
   "name": "pic_library",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 33396,
   "name": "pic_cell",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 33788,
   "name": "unused_goto",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 33796,
   "name": "title_screen",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 34279,
   "name": "sprite_setup",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 34570,
   "name": "intro_text",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 34882,
   "name": "load_sprites_2",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 34960,
   "name": "resume_question",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 35137,
   "name": "data_tune",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 35298,
   "name": "data_sprites_1",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 35770,
   "name": "data_exits",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 35944,
   "name": "data_sprites_2",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 36439,
   "name": "data_objects",
   "type": "UserDefined",
   "kind": "user"
  }
 ],
 "comments": [
  {
   "address": 2049,
   "type": "line",
   "text": "Start of the program. Clears the screen and sets V to $D000 (53248), the base of the video chip, which every later POKEV+n reaches the sprite registers through; A$ is a line of 39 spaces used to wipe the message area. Line 10 dimensions three tables: S$(27,7) the objects lying in each of the 27 places, R$(27,3) the compass directions open from each place, T$(5) the pack (five items at most). Lines 12 and 13 hold the verb tables, three letters per verb, packed in three strings (X1$ for verbs from A to H, X2$ for I to P, X3$ for Q to Z); lines 362, 364 and 366 compare the typed word with them. Y$, Y2$, ZZ$, Y1$, YY$ and WW$ are stock replies and tags. B=1 sets the start place, the manor gates; X=0 is the border and background colour. H2$ and H3$ are the two strings that draw the bedroom window shut or open. Line 17 pokes 168 into $0307, the high byte of BASIC's LIST vector at $0306, which turns it from $A71A into $A81A: after this a LIST no longer lists the program. Line 18 jumps to the title screen at line 4900."
  },
  {
   "address": 2449,
   "type": "line",
   "text": "The CUT verb (third entry of X1$, dispatched from line 362). Takes the noun from the fifth letter on. Only 'cut apple' works: it needs the knife in the pack (line 21 renames the typed 'app' to knife, tests the pack with line 1560), then the apple (line 24 looks for it with line 1565 in the room), and the small key that was hidden inside the apple drops into the room (line 25 adds it with line 1620). Line 25 also empties T$(A), a slot of the pack, but A is the apple's slot among the place's objects, left there by line 1565: the apple stays where it lies, and whatever the pack holds in the slot with that number is lost; when the apple lies in the place's slot 6 or 7, T$(A) is beyond T$(5), the last slot line 10 dimensions, and BASIC stops with a BAD SUBSCRIPT error in line 25 before the small key appears. (Line 34 of EAT, the same statement, empties the pack slot line 1560 found.) Without the knife in the pack, or without the apple in the place, the answer is 'i can't do that...yet' (lines 23 and 24 to 1630). Any other noun answers 'that will not help'."
  },
  {
   "address": 2650,
   "type": "line",
   "text": "The EAT verb (fifth entry of X1$). Only 'eat apple' is understood, and only with the apple in the pack: the apple is eaten and 'feels lumpy....' is printed (line 34), which warns that the apple has something hard inside; the apple is removed from the pack, and nothing else happens. Any other noun answers 'that will not help' (line 32); the 'pardon ?' of line 35 is never reached."
  },
  {
   "address": 2816,
   "type": "line",
   "text": "Redraws the current place. Line 41 prints the stock O.K. reply and pauses (line 1550); line 42 clears the screen; line 44 sets border and background to X (0, black; 2 red in the laboratory); line 46 to 53 pick the picture routine for place B with ON B GOTO, 13 places on the first line and 14 on the second: 2000, 2400, 2200, 2300, 2100, 2600, 2500, 2700, 2800, 2900, 3000, 3100, 3200 for places 1 to 13, then 3300, 3400, 3500, 3600, 3700, 3800, 4450, 4100, 4200, 4250, 4300, 4350, 4400, 4500 for places 14 to 27. The routines for places 14 to 27 end by adding 13 back to B and jumping to line 57; those for places 1 to 13 jump to 57 with B unchanged (the dark places without the torch, and the front door after the bell, go to a death instead). Line 57 and 58 set the text colour (yellow in the laboratory, grey elsewhere) and line 60 puts the cursor 15 lines down, under the picture."
  },
  {
   "address": 3086,
   "type": "line",
   "text": "Prints 'i am ' and then the name of place B. Line 62 jumps by ON B GOTO to the lines below, one per place from 1 to 22, and line 63, which places 24 to 27 reach from line 61 and place 23 by falling through line 62's 22 targets, subtracts 22 and does the same for the cellar end of the map. Each line prints one name and goes to line 110. Places 9, 23, 24 and 27 (lines 80, 100, 102 and 106) first send the player to the death in the dark (line 1920) when the torch is not lit (CC=0). Places 23 to 27 add 22 back to B at line 109 before line 110 lists the objects."
  },
  {
   "address": 3537,
   "type": "line",
   "text": "The rest of the names, from the north end of the hall (place 10) to the study (place 22), and then the five places of the cellar end of the map that line 63 sends on from line 100: the tunnel (23), the corridor (24), the dark room (25), the laboratory (26) and the cell (27). Each prints its name and jumps to line 110 (or, for the cellar places, to line 109 which adds 22 to B again first). The tunnel, the corridor and the cell (lines 100, 102 and 106) go to the death in the dark (line 1920) when the torch is not lit."
  },
  {
   "address": 4183,
   "type": "line",
   "text": "Lists what is in the place. Line 110 prints 'i see ' and walks the seven slots of S$(B,A), printing each non-empty object with a full stop; an object that holds '*' (the marker the save routine puts in an empty slot) is cleared first. II counts the objects printed and a line break goes in after four of them. Then line 116 goes to line 140."
  },
  {
   "address": 4323,
   "type": "line",
   "text": "Prints 'i can go ' and each of the up to three directions stored for the place in R$(B,A): n, s, w or e spelled out. A place with no stored direction prints 'nowhere!!!' (line 130). This is the G command's output (line 310 calls it)."
  },
  {
   "address": 4511,
   "type": "line",
   "text": "What happens at the end of every move, before the prompt. Line 140 counts a move for the dogs: PB=1 means the gate has been opened and PC=0 that the player is in the open, so PA goes up by one; the string Z6$ is also built here from two characters set elsewhere (A6$ and A9$, the second and third letters of the chest's combination, B and D). PA=1 prints 'i hear dogs howling !!', PA above 2 prints 'bark!  bark!  bark!' every move and PA above 7 kills the player (line 144). Line 150 tests whether the branch is in the pack and, each move it is, adds one to HB; when HB passes 3 the player is too tired to go on (HJ=1; the shed, place 8, refuses another step north). Line 155 starts the old man's knock-out when HK=4 in the closet (place 21). Line 160 lets the robot push the player back when place 14 is entered while the robot is still working (HR=0). Lines 165 to 169 run the skeleton: LR=1, set when 'get gold' is typed in the treasure room once the chest is open (line 1406), makes bells ring, LR=2 and place 26 makes the skeleton stir (LR=3), and from then each move adds one to LT; five moves later the skeleton kills the player. Reaching the shed once the chest's combination has been entered (line 168, H8=1 in place 8) sets the skeleton's move count LT back to 0 (LR stays 3, so it counts again on later moves), clears the hiding flag and sets the dog counter to 3. Line 180 jumps to the prompt."
  },
  {
   "address": 5209,
   "type": "line",
   "text": "The command prompt. Clears P$, reads a line with INPUT (the prompt is '> what now ', in cyan), keeps its length in D and adds one to the move counter C (the count the death screen shows). Line 302 and 303 reset the text colour. An empty line redraws the screen (line 305 to 42). A one-letter command is handled from line 308: i is the pack, g lists the exits, and the compass letters n, s, e and w move the player. The special exits are coded one by one (lines 320 to 353): the north hall to the foyer, the dim room to the tunnel, the tunnel and the pit, the corridor, the east door out of the foyer that drops the safe, and so on; most set B and jump to line 41 or 42, and a few go to a refusal or a routine of their own. A letter that is neither a special exit nor in the place's R$ list falls to line 359, 'sorry, can't go there'."
  },
  {
   "address": 6204,
   "type": "line",
   "text": "The ordinary compass move. Walks the three exits R$(B,A) stored for the place; a match on the typed letter moves the player to the next place number up or down: north and west subtract one from B, south and east add one, because the places are numbered so that neighbours are consecutive. Line 359 is the refusal when no stored direction matches."
  },
  {
   "address": 6357,
   "type": "line",
   "text": "Splits the typed line into a verb by its first letter and picks the verb table: a first letter after P (ASCII above 80) uses X3$, one after H uses X2$, the rest X1$. The first three letters are compared with each three-letter entry of the table and ON A GOTO jumps to the handler: X1$ is break, climb, cut, drop, eat, fill, get, go, help to lines 500, 530, 20, 420, 30, 550, 400, 370 and 570; X2$ is inventory, light, look, move, open, press, pull to 430, 600, 435, 620, 875, 640 and 660; X3$ is quit, read, remove, ring, save, unlock, throw, wear to 700, 730, 750, 760, 774, 800, 830 and 860. A word that matches nothing prints 'sorry,can't translate.try again'."
  },
  {
   "address": 6658,
   "type": "line",
   "text": "The GO verb, used for gates, doors, stairs, windows, holes and the trapdoor. The noun is read from the fourth letter. Line 370 takes 'go gate' from the gates (place 1) to the gravel path (place 2) once the gate is open (AM=1); line 371 answers 'i can't do that...yet' when it is only unlocked (DK=1). Lines 372 and 373 are the trapdoor in the shed (place 8), and both need the case moved (KK=1): line 372 goes to line 1930, which refuses with the ladder carried ('sorry,something w1ll not fit') and otherwise returns to line 373, which leads to the dim room (place 9) when the player is not too tired from the branch (HJ=0). Before the case is moved, 'go trapdoor' ends at line 397. Lines 374 to 391 are the manor: the doors in the north hall (place 10) and at the front (place 3) are locked; the stairs join the south hall (11) and the bedroom (16); 'go window' takes the bedroom to the window ledge (18) when the window is open (BW=1), and back only once CW=1 as well; the study door from the south hall needs the brass key and to be opened (GG=1, GZ=1); the dim room's door leads to the north hall once it has been opened (G7=1, set by 'open door' after the beam is off); 'go hole' from the cell (27) leads to the secret room (14) once the hole exists (HH=1); 'go bed' in the bedroom answers 'no time for that!'. Most other cases end at line 397, 'sorry can't go there'."
  },
  {
   "address": 7326,
   "type": "line",
   "text": "The GET verb. Line 400 resolves the noun (line 1400). Lines 405 to 409 refuse it when it is already in the pack, or not here, or (for the unknown noun '999') too heavy. Line 410 looks for a free slot in the pack (five slots; line 411 answers 'my pack is full'), then moves the object from the room's S$ table into T$ and redraws the place (line 412 to 42)."
  },
  {
   "address": 7618,
   "type": "line",
   "text": "The DROP verb. Resolves the noun (line 1400), checks it is in the pack (line 421), finds a free slot in the place's seven (line 423; line 424 prints 'sorry there's too much here already' when full), moves the object from T$ to S$(B,...) and redraws the place at line 41."
  },
  {
   "address": 7802,
   "type": "line",
   "text": "The INVENTORY verb jumps to the pack display at line 1500."
  },
  {
   "address": 7812,
   "type": "line",
   "text": "The LOOK verb. The noun is the three letters from the sixth character on (MID$(P$,6,3)); line 435 turns the mailbox state forward when the old man has moved the brass key there (BM=3 and HK=2 make BM=5). The rest is a long list of situations, one IF per case: looking at the gate (the iron key appears), the mailbox in its first stages (BM: locked, letter, torch), the front door, the case in the shed (the apple), the table (hot food), the chest, the bath, the desk and its drawer (pencil), and so on. Each case reveals an object by putting it in the room (line 1620) or prints a remark. Anything else is 'i see nothing special' (line 480). The windows, the mailbox's brass-key stage, the clock, skeleton, beam, pit, toolbox and small-box cases, with line 471, are in the next group."
  },
  {
   "address": 8723,
   "type": "line",
   "text": "The second half of the cases of LOOK. Looking at the gold in the treasure room, once the combination is right (CO=1), says 'its what i came for..'; the basement door and the window at the east side say 'its the basement door' and 'its on the second floor'; the ledge's window 'its locked' until the player has walked through the dim room's door into the north hall (CW=0 until then); the tree 'i see a branch'; the apple (once looking in the open case has revealed it, BB=2) 'looks like a iie', a joke on the Apple IIe; the door of the dim room 'it's secured with a beam'; the pit 'my gosh!! it's full of snakes'; the skeleton 'i thought it moved!'; the mailbox once the old man has put the brass key in it shows the brass key; the open book on the library desk; the beam 'looks v e r y heavy..'; the toolbox, once opened (DC=1, line 884), gives the crowbar (DC=2); the wall of the cell 'i hear a noise behind it!'; the clock, once opened (DF=1, set by 'open clock' at line 891), gives the knife; the small box gives the note (lines 471 to 485); the robot, once shorted out, 'its shorted out!'; and the chest, once the combination is right (H8=1), gives the gold (MJ=1)."
  },
  {
   "address": 9624,
   "type": "line",
   "text": "The end of LOOK. Line 480 is the answer when no case matched, 'i see nothing special'. Line 481 is the answer for the iron key lying inside the gate. Lines 482 to 485 finish 'look box' for the small box: it must be in the pack (a missing box answers 'i can't do that...yet' or 'i can't see it'), and when it is the note appears (HU=1, BN=3) through line 1620."
  },
  {
   "address": 9797,
   "type": "line",
   "text": "The BREAK verb. 'break branch' in the tree (place 6, BR=0) puts a branch among the objects of the tree top (S$(6,1)) and sets BR=1; 'break window' in the ledge (place 18, with CW=0, meaning the player has not yet walked through the dim room's door into the north hall) is vandalism and ends in a cut wrist (line 512, death through line 1650). Anything else answers 'sorry,i'm not a vandal'."
  },
  {
   "address": 10012,
   "type": "line",
   "text": "The CLIMB verb. Climb the tree from the wall (place 5 to 6, hiding from the dogs) and down again (6 to 5); climb the ladder at the east side (place 4) up to the window ledge (line 1994) and down from the ledge (place 18, line 1991). 'climb wall' (places 1 and 5) breaks the player's neck (line 1997)."
  },
  {
   "address": 10256,
   "type": "line",
   "text": "The FILL verb. Only 'fill bucket' in the bathroom (place 17) does anything: with the bucket in the pack it sets AF=1, the bucket filled from the bath tap, and without it the answer is 'i can't do that...yet' (line 555 to 1630). Anything else prints 'pardon ?'."
  },
  {
   "address": 10418,
   "type": "line",
   "text": "The HELP verb. Prints 'look around and think!' and counts the requests in LW; the seventh answers 'i'm as confused as you!' and starts the count over."
  },
  {
   "address": 10537,
   "type": "line",
   "text": "The LIGHT verb. 'light torch' with the torch in the pack sets CC=1; without CC=1 the dark places (the dim room, the tunnel, the corridor and the cell) kill the player. Line 600 also loads the character 'F' into A5$ whatever the player types: the last letter of the chest's combination."
  },
  {
   "address": 10637,
   "type": "line",
   "text": "The MOVE verb. 'move case' in the shed (place 8) reveals the trapdoor (KK=1, G9=1). 'move crate' in the closet (place 21) uncovers the brass key (H2=1 and HX=1) and starts the old man's attack (HK=4). Anything else answers 'sorry,that will not help'."
  },
  {
   "address": 10805,
   "type": "line",
   "text": "The PRESS verb. Only 'press panel' in the study (place 22): the button appears (DP=1). (The game lists a pencil in the drawer; the panel is never named anywhere but in this verb.)"
  },
  {
   "address": 10883,
   "type": "line",
   "text": "The PULL verb. 'pull switch' in the dark room (place 25) prints a whirr and runs the 'coming soon' advertisement at line 1940; 'pull button' in the study after the panel has been pressed (DP=1) prints 'i hear a rumble', puts a hole in the stone cell (S$(27,7)='hole', HH=1, AZ=1). Line 660 also loads the letter 'I' into A1$ whatever the player types: the first letter of the chest's combination."
  },
  {
   "address": 11077,
   "type": "line",
   "text": "The QUIT verb: asks 'do you want to quit' and, on yes, 'do you want to save the game'. Anything but y or n at the first question repeats it. n at the first returns to the game. At the second, y saves (line 780), n ends the program with NEW, and any other answer goes back to the first question (line 711 to 700)."
  },
  {
   "address": 11322,
   "type": "line",
   "text": "The READ verb. The signs at the manor wall and the front door, the letter in the mailbox ('the left is right' and, on the next line, '..or is the right wrong?'), the note found in the small box ('i see writing.looks like 'vi'...') and the open book in the library (line 733 jumps to line 1699, the page that gives the chest's turns, the rest of it missing). The letter (once the mailbox has given it up, BM>=2) and the note are read only from the pack: without them the answer is 'i can't do that...yet' (lines 741 and 744 to 1630). 'read' of anything else answers 'sorry,must have dropped my glasses'."
  },
  {
   "address": 11783,
   "type": "line",
   "text": "The REMOVE verb. 'remove beam' in the dim room (place 9) with the crowbar in the pack: 'i use the crowbar', the beam is gone (G8=1, DA=1) and the door can be opened. Anything else 'sorry,that wont help'."
  },
  {
   "address": 11933,
   "type": "line",
   "text": "The RING verb. 'ring bell' at the front door (place 3) opens a chute (H1=1) and redraws the place; the chute drops the player to a death (line 2255 to 2257 draws it, then line 1650)."
  },
  {
   "address": 12057,
   "type": "line",
   "text": "The SAVE verb and the save routine. Asks the player to insert and rewind a blank tape, then writes the game's state to cassette file 'mansav' with PRINT#1: first the 58 state variables (place, colours, flags), then the five pack slots and the 27 by 7 object slots, an empty slot written as '*' because an empty string is not read back by INPUT#, and three strings that hold parts of the combination: A5$ ('F'), A1$ ('I') and Z2$ (the joined word, only as complete as it was when it was last built). U$ is a carriage return CHR$(13), so each value is on its own line of the file. Ends by returning to the game at line 42."
  },
  {
   "address": 12766,
   "type": "line",
   "text": "The UNLOCK verb. 'unlock gate' with the iron key (DK=1), 'unlock door' in the south hall with the brass key (GG=1), 'unlock mailbox' with the iron key (BM=1), 'unlock box' with the small box and the small key both in the pack (BN=1, via line 815; with the box and not the key, 'i can't do that...yet'), 'unlock chest' in the treasure room when the robot is shorted out (HR=1) which goes to the combination lock at line 1740. Anything else answers 'sorry', the gate, the door and the mailbox without their key among it."
  },
  {
   "address": 13121,
   "type": "line",
   "text": "The THROW verb. Builds the combination Z2$ from three strings, A1$ + Z6$ + A5$ ('I', 'BD' and 'F' once all are set), every time it is used (line 830). 'throw water' in the stone cell (place 27) with the bucket filled (AF=1) asks 'where ' and wants 'hole': the water is thrown at the robot, HT counts the throws, and the third (HT=3) shorts the robot out (HR=1)."
  },
  {
   "address": 13325,
   "type": "line",
   "text": "The WEAR verb. 'wear armour' with the armour in the pack: 'o.k. is armour in this year ?' and AW=1 (armour on). Without the armour in the pack, 'wear armour' answers 'i can't do that...yet' (line 865 to 1630). Any other noun answers 'sorry,that will not help'."
  },
  {
   "address": 13482,
   "type": "line",
   "text": "The OPEN verb, one IF per thing that can be opened. The drawer in the study (BA=1), the case in the shed (BB=1), the bedroom window (BW=1, redrawn at once), the door of the dim room once the beam has been removed (G7=1), the toolbox in the corridor (DC=1), the study door from the south hall once unlocked with the brass key (GZ=1), the small box once unlocked (BN=2) and the clock (DF=1). 'open gate' with the gate unlocked sets G1=1, AM=1 and PB=1: the gate is open and the dogs start to come. Doors that cannot be opened say so: 'its locked', 'sorry,it's sealed tight' for the foyer door, 'sorry,its jammed shut!' for the door on the east side. Opening the window, the gate, or the drawer, case or toolbox while still open and not yet searched answers 'i already have'; once its find has been made, the drawer and case answer 'o.k.' again (lines 877 and 879) and the toolbox falls through to 'sorry'; the clock answers 'o.k.' again, the two doors just redraw, and an opened small box falls through to 'sorry'."
  },
  {
   "address": 14192,
   "type": "line",
   "text": "Loads a saved game. Asks for the tape, opens 'mansav' for reading (OPEN1,1,0) and INPUT#s the same values in the same order the save wrote them (lines 1003 to 1006: 58 state variables), the pack T$(1) to T$(5), the 27 by 7 objects S$ with '*' turned back into an empty string, and the three strings A5$, A1$ and Z2$ that hold parts of the combination. Closes the file and redraws the place at line 42."
  },
  {
   "address": 14728,
   "type": "line",
   "text": "Turns what the player typed into an object's full name and, for a few objects, does the state change that taking or dropping brings. K is the column where the noun starts: 5 after 'get ', 6 after 'drop '. The three letters are matched against the objects (arm to armour, bra to branch, buc to bucket, lad to ladder, ...). For 'key' it asks 'which one ' and reads a second line (line 1444), then picks the iron, brass or small key (lines 1456 to 1468). Anything not known becomes '999', which GET turns into 'i'm not that strong' (line 408) and DROP into 'its not in my pack' (line 422)."
  },
  {
   "address": 15566,
   "type": "line",
   "text": "The rest of resolve_noun: mostly nouns that are only turned into their full names (letter, small box, armour, bucket, mop, gold, branch, ladder, knife, note), though the mop line also sets H7 (line 1429) and taking the brass key sets H3 (line 1456). 'key' on its own asks 'which one ' and takes the first three letters of the answer (line 1444); line 1456 and the following turn 'bra', 'sma' and 'iro' into the brass, small and iron key; any other answer falls to lines 1466 and 1468, which test the E left by line 150's search of the pack for the branch before every prompt: with the branch carried the answer is taken as the iron key (and DM=1), and without it the reply is 'i can't do that...yet'. The iron key needs the branch in the pack at the gates while DM=0 (line 1462); line 1468 then sets DM=1. Any other noun becomes '999'."
  },
  {
   "address": 16203,
   "type": "line",
   "text": "The pack display. Clears the screen (after lines 1518 to 1521, which move the skeleton's sprite 4 to 0,0 in the laboratory, place 26, and the robot's sprite 3 in the secret room, place 14), prints each non-empty T$ slot three columns in, with '(worn)' after the armour when AW=1 and '(filled)' after the bucket when AF=1. An empty pack prints 'not a cracker !' on the tenth line from the top, from the eighth column (line 1512: home, nine cursor-downs, seven cursor-rights): a message printed when nothing is carried. Then waits (line 1556) and redraws."
  },
  {
   "address": 16569,
   "type": "line",
   "text": "Switches off the sprites that are on screen for the skeleton (place 26) or the robot (place 14) by POKEing zero into their coordinates, V+8 and V+9 or V+6 and V+7. Called before the pack is drawn over them."
  },
  {
   "address": 16627,
   "type": "line",
   "text": "The stock answer 'sorry its locked' for a door the player tried and cannot open."
  },
  {
   "address": 16657,
   "type": "line",
   "text": "Four small timing loops, FOR H=1 TO 500, 1000, 2000 and 4000, one per entry: the game's pauses for messages (line 1550 is the shortest). They run on BASIC's speed, so a pause is the length the interpreter takes for that many empty iterations."
  },
  {
   "address": 16728,
   "type": "line",
   "text": "Searches the pack for the object named N$ and sets E to 1 if it finds it, with A the slot; E stays 0 otherwise. Line 1565 does the same for the objects lying in the place."
  },
  {
   "address": 16808,
   "type": "line",
   "text": "A tune player the program never calls (nothing jumps to line 1570). It sets up voice 2 of the sound chip at $D400 (S=54272), writing 17 and 244 to the attack and decay and the sustain and release registers S+12 and S+13, volume 15, and plays notes read from DATA as pairs of frequency bytes written to S+8 and S+7, gating the voice with 33 in S+11, and a length until it reads a negative high byte. Its triplets match the tune's DATA at line 5900, but the program has no RESTORE and in a new game every DATA item has been read by the time play starts, so a call would stop with OUT OF DATA (in a resumed game the object DATA of line 6200 is still unread, and the word 'gate' would stop it with an error); the title tune has its own player at line 1800."
  },
  {
   "address": 16927,
   "type": "line",
   "text": "The way back to the prompt after a message. Waits (line 1554), puts the cursor 15 lines down and prints eight lines of spaces (A$) to wipe the text area, then jumps to line 60 to print the place name, the objects and the prompt again, without redrawing the picture."
  },
  {
   "address": 16978,
   "type": "line",
   "text": "Prints 'i see something...' and puts the object N$ in the first empty slot of S$(B,...), then redraws the place (line 42). Line 1621 gives up quietly when all seven slots are full."
  },
  {
   "address": 17056,
   "type": "line",
   "text": "The stock answer 'i can't do that...yet' for a puzzle step that is not ready."
  },
  {
   "address": 17091,
   "type": "line",
   "text": "The death screen. Clears to black and draws a grey tombstone with 'rip' on it and red, orange and light red flowers on green stems, then sounds one low note with the sound chip (lines 1660 and 1661: sawtooth at voice 1, frequency set once, then the volume steps from 15 to 0). Prints 'you're dead !!' and 'you have played'  C  'moves', and asks 'want to try again' with y/n: y runs the program from the start (RUN) and n ends it with NEW."
  },
  {
   "address": 17882,
   "type": "line",
   "text": "The library book. Prints, in reverse video, 'locks and cunning escapes', '..and as a general rule', 'for  opening  treasure', 'chests, try...' and then, one to a line, the turns right 3, left 7 and right 2, then in yellow '...the rest of the page is missing..'. These are the turns of the dial for the combination lock; the chest's letters have to be worked out from them (and the note's 'vi'). After a pause returns to the game at line 42."
  },
  {
   "address": 18413,
   "type": "line",
   "text": "The cutscene of old man Bastow dropping the safe from the balcony when the player walks east from the foyer. Turns sprite 0 on (POKEV+21,1), makes it yellow and double size, then steps its y from 50 to 143 by 3 with the sprite pointer 2040 set to block 13 (the safe, the first shape of the second set, poked there by line 5055), then clears the screen and prints the message. With the armour worn (AW=1, line 1731) the player survives and is placed in the library (line 1736); without it the death screen follows (line 1734)."
  },
  {
   "address": 18746,
   "type": "line",
   "text": "The chest's combination lock. Prints that the lock has the letters of the alphabet around its rim and asks for the letters or '*' to quit. A string typed is compared with Z2$ (line 1745): if it matches, 'thats it!' and H8=1, CO=1 (the chest is open); otherwise the question is asked again. The right answer is the four letters I, B, D, F in one line, assembled in Z2$ from A1$ ('I'), Z6$ (A6$ and A9$, 'B' and 'D') and A5$ ('F'): A6$ and A9$ are set in the title's set-up (lines 5070 and 5000), Z6$ at line 140, A1$ at line 660, A5$ at line 600, and Z2$ itself when THROW runs (line 830)."
  },
  {
   "address": 18986,
   "type": "line",
   "text": "The robot pushes the player back out of the secret room: while HR=0, entering place 14 prints 'the robot pushes you back!' and slides sprite 3 (the robot) from x=200 to x=68 in steps of 4 (sprite pointer 2043 set to block 14), clears the sprite and puts the player in the cell (place 27)."
  },
  {
   "address": 19106,
   "type": "line",
   "text": "The ending. Walking west from the gravel path once the chest's combination has been entered (place 2, H8=1; the gold need not be in the pack) clears the screen and prints 'thats it you've got the gold' and '....and your life!', waits and then NEWs the program."
  },
  {
   "address": 19193,
   "type": "line",
   "text": "The title tune. Sets voice 1 of the sound chip with attack and decay 136, and volume 15 (line 1800), then reads three numbers at a time with READ HF,LF,DR: a frequency high byte and low byte and a delay count. Counts the notes in QW; at the ninth note it calls line 4924, which prints the year 1983 on the title screen. Voice 2 (frequency low and high in S+7 and S+8, then registers S+11 to S+13) is set to a constant drone of 675 (high byte 2, low byte 163) with the triangle waveform and gate on (line 1804). Voice 1 plays the tune with the sawtooth waveform (control register S+4 =33). Reads 15 notes but sounds only 14: QW is counted before the test, so the fifteenth read returns at line 1802 without playing, and the routine then returns to line 4923."
  },
  {
   "address": 19374,
   "type": "line",
   "text": "Called when a get finds the pack full or a drop finds the place full, after line 1400 has already changed a flag for the picture. Line 1820 is for a get that finds the pack full (K=5): the bucket, the mop, the small box and the armour in their places have their 'taken' flags put back (H6, H7, G6, H5 set to 0) so the picture still shows them. Line 1840 does the same for a drop that finds the place full (K=6), putting G6 back to 1 for the small box in the dim room."
  },
  {
   "address": 19552,
   "type": "line",
   "text": "The old man knocks the player out in the closet. After a pause the screen clears and the brass key (which the player has just found by moving the crate) is taken from the room and moved to the mailbox by the state flags (BM=5; H3=1; HK=2). The player's head clears and the closet is shown again."
  },
  {
   "address": 19757,
   "type": "line",
   "text": "After a short pause, blanks one line of the text area: the cursor goes home and 19 lines down, and the PRINT's own carriage return takes it one line further, to row 20 counting the top row as 0, the line the move's messages are printed on; A$ is printed there, and two cursor-ups and the next carriage return put the cursor back at the start of that line. Used after the dogs', the bells', the skeleton's and the tired player's messages."
  },
  {
   "address": 19803,
   "type": "line",
   "text": "The death in the dark: shown when a dark place is entered with the torch not lit (CC=0). The screen clears and prints 'i am in a very dark place', asks 'what now' once and whatever is typed ends in 'it's dangerous to move in the dark..' and the death screen (line 1650)."
  },
  {
   "address": 19944,
   "type": "line",
   "text": "Reached from every 'go trapdoor' in the shed once the case has been moved (line 372, KK=1), after a search of the pack for the ladder. When the player carries the ladder (E=1) it prints 'sorry,something w1ll not fit' (the 1 in 'will' is in the program) and returns to the prompt. Without it (E=0) it goes back to line 373, which takes the trapdoor only when the player is not too tired from carrying the branch (HJ=0); otherwise the reply is 'sorry can't go there' (line 397)."
  },
  {
   "address": 20014,
   "type": "line",
   "text": "The 'coming soon' advertisement. Pulling the switch in the dark room (line 661) clears the screen to light grey (colour 15), prints pairs of black blocks down the left and right edges and announces '*** coming  soon ***', 'graphic adventure  no. 2' and a title in a green box, '005 super  spy', 'from' and a red box, and 'look for it' followed by a line of asterisks. Then it returns to the game. Line 1957 toggles G5, the state that shows the switch as pulled in the dark room's picture."
  },
  {
   "address": 20618,
   "type": "line",
   "text": "Prints the text area as nine lines of blanks (eight in a loop and one more) and returns to line 60. Used by the 'i can't do that...yet' reply of the key chooser (line 1466)."
  },
  {
   "address": 20674,
   "type": "line",
   "text": "Climbing the ladder: from the window ledge (place 18) line 1992 goes back down to the east side (place 4) when the ladder is there, and line 1991 refuses when it is not; from place 4 line 1995 goes up to the ledge, puts the ladder among the ledge's objects (S$(18,5)), sets DG=1 and hides the player from the dogs (PC=1, PA=0), and line 1994 refuses ('i can't do that...yet', line 1630) when the ladder is not lying in place 4: line 533 searches the place, not the pack, so carrying the ladder is not enough."
  },
  {
   "address": 20809,
   "type": "line",
   "text": "Climbing the wall breaks the player's neck: 'i slip and break my neck....' and the death screen."
  },
  {
   "address": 20869,
   "type": "line",
   "text": "Place 1, outside the manor gates. Draws the night scene: a few stars (yellow dots), the manor's red roofs at the right, a blue strip of sky over a wall of brown and grey stones with the iron gate between two blocks of it and a red-framed plaque on the right-hand wall. With the gate open (G1=1) the gate is drawn open."
  },
  {
   "address": 21653,
   "type": "line",
   "text": "Place 5, by the manor wall. Draws a blue sky over a brown and grey stone wall, a red mailbox on its post in front of it and the dead tree at the left, over a strip of green grass."
  },
  {
   "address": 22257,
   "type": "line",
   "text": "Place 3, at the front door. Draws a brown door in a grey stone frame with the bell pull beside it and a barred window at the right. After 'ring bell' (H1=1, line 2255) it draws the chute opening and goes straight to the death screen (line 2257)."
  },
  {
   "address": 22820,
   "type": "line",
   "text": "Place 4, at the east side of the manor. Draws a wall of brown and grey stones with a barred window at the top left and a small arched door at the foot, over green grass. While DG=1 (line 2350), which dropping the ladder here sets, a yellow ladder is drawn against the wall."
  },
  {
   "address": 23323,
   "type": "line",
   "text": "Place 2, on a gravel path. Draws green, light-green and orange hills over a path of brown gravel, with a bare branch poking up at the top right."
  },
  {
   "address": 23920,
   "type": "line",
   "text": "Place 7, in the garden outside a shed. Draws a small blue shed with a door, a green tree at its right, a flower bed in red and orange and a path to the shed."
  },
  {
   "address": 24498,
   "type": "line",
   "text": "Place 6, at the top of the dead tree. Draws a large brown tree with its branches spread, over a blue strip of sky."
  },
  {
   "address": 24809,
   "type": "line",
   "text": "Place 8, inside the storage shed. Lines 2730 to 2735 are a subroutine that draws a room as an outline in perspective, grey lines; places 14, 15 and 27 call it too, with a flag (DO, DN or DE) set that makes it return at lines 2736 to 2738 before the shed's own contents. The shed's contents are the case in red with an orange edge (line 2740) and, once it has been moved (G9=1, line 2742), the case drawn aside and the trapdoor (line 2744)."
  },
  {
   "address": 25303,
   "type": "line",
   "text": "Place 9, in a dim room. With the torch not lit (CC=0) the player dies in the dark (line 2800). Otherwise draws a brown door (until it is opened, G7=0, line 2840), the beam across it (until it is removed, G8=0, line 2846), a green block for the small box lying on the floor (until it is picked up, G6=1), on a grey floor with a brown sill; once the beam is removed (G8=1) it is drawn lying at the bottom (line 2858)."
  },
  {
   "address": 25874,
   "type": "line",
   "text": "Place 10, at the north end of the hall. Draws the hall as a grey outline in perspective with a dark grey door at the left and a tall brown clock with a yellow face and pendulum at the right."
  },
  {
   "address": 26457,
   "type": "line",
   "text": "Place 11, at the south end of the hall. Draws a flight of stairs at the left, a brown door at the middle and a framed landscape (green hills, a yellow sun) on the right. With the study door open (GZ=1) the door is drawn open."
  },
  {
   "address": 27186,
   "type": "line",
   "text": "Place 12, in the kitchen. Draws a grey outline with a doorway at the left, a table with an orange top and brown legs with a green bottle and a yellow plate on it, and a brown chair."
  },
  {
   "address": 27671,
   "type": "line",
   "text": "Place 13, in the wine cellar. Draws three racks of bottles as rows of circles (green, red and light grey) and, unless the armour has been taken (H5=1 skips it, line 3230), a suit of armour in red and grey with a yellow plume standing at the right."
  },
  {
   "address": 28250,
   "type": "line",
   "text": "Place 14, in the secret room. Calls the room-outline subroutine (line 3310) and draws the walls at either side (lines 3312 and 3314); then turns on sprite 3 for the robot (POKEV+21,8), colour 7 and multicolour (V+28, V+37 and V+38), expanded in both directions, at x=200, y=122 with the shape pointer 2043 set to block 14."
  },
  {
   "address": 28472,
   "type": "line",
   "text": "Place 15, in the treasure room. Calls the room-outline subroutine (line 3400) and draws the chest in orange with its lock. With the chest open (H8=1) it also draws the yellow gold on top (line 3413)."
  },
  {
   "address": 28753,
   "type": "line",
   "text": "Place 16, in the master bedroom. Draws a leaded window, a bed with a yellow canopy and a blue cover, and the window shut (strings H2$) or, once it is open (BW=1), open (H3$)."
  },
  {
   "address": 29147,
   "type": "line",
   "text": "Place 17, in the master bathroom. Draws a bath in light green with light blue water, a pair of taps over it and two towels on a line, yellow and red."
  },
  {
   "address": 29517,
   "type": "line",
   "text": "Place 18, on a window ledge. Draws the ivy as green blocks at the left, the grid window in cyan (shut or open by BW) and a grey ledge, and while the ladder stands against the east wall below (DG=1, line 3720) it draws the yellow ladder, whether or not the ladder is among the ledge's own objects. DG is set by climbing the ladder in place 4 (line 1995) and by any 'drop ladder' typed there, and cleared only by a 'get ladder' typed there: lines 1424 and 1416 are in resolve_noun, which runs before DROP checks that the ladder is carried and that the place has room (lines 421 to 424) and before GET checks that the pack has room (lines 410 and 411), so a drop or a get that is refused still changes DG, and the ladder can be drawn where it is not, or not drawn where it is."
  },
  {
   "address": 29968,
   "type": "line",
   "text": "Place 19, in the entrance foyer. Draws a blue stippled wall with a brown barred door at the middle, the balcony with its railing at the right in cyan over a cyan doorway, and three candles."
  },
  {
   "address": 30448,
   "type": "line",
   "text": "Place 21, in a closet. Draws the closet as grey lines with a mop (brown handle, yellow head) at the middle, a grey bucket at the left and the orange crate at the right. The bucket and mop are drawn while H6=0 and H7=0 (lines 4134 and 4136) and disappear when taken, which sets them to 1 (lines 1425 and 1427); once the crate has been moved (H2=1) it is drawn one row higher."
  },
  {
   "address": 31058,
   "type": "line",
   "text": "Place 22, in the study. Draws a desk with a drawer in brown and grey, a lamp in pink and yellow at the left and a painting of a green hill with a red frame on the wall. After 'press panel' (DP=1, line 4234) a button is drawn."
  },
  {
   "address": 31716,
   "type": "line",
   "text": "Place 23, in a dark, moss covered tunnel. With the torch not lit (CC=0) the player dies in the dark (line 4250). Otherwise draws the tunnel in perspective in grey, and with the branch across the pit (DB=1, line 4272) draws the brown branch as the bridge."
  },
  {
   "address": 32227,
   "type": "line",
   "text": "Place 24, in a damp stone corridor. With the torch not lit (CC=0) the player dies in the dark (line 4300). Otherwise draws the corridor in perspective with a red end wall and a blue block."
  },
  {
   "address": 32512,
   "type": "line",
   "text": "Place 25, in a dark room. Draws a yellow switch on the wall: the lever drawn pulled (G5=1, line 4362) or not (line 4360)."
  },
  {
   "address": 32603,
   "type": "line",
   "text": "Place 26, in the secret laboratory. Sets border and background to red (POKE53280,2 and 53281,2), then draws a black barred window, a black bench and shelves in white. Turns on sprite 4 (POKEV+21,16) as white (V+43), expanded, at x=80, y=110 (V+8 and V+9) with the shape pointer 2044 set to block 15: the skeleton."
  },
  {
   "address": 32867,
   "type": "line",
   "text": "Place 20, in the library. Draws shelves of books in rows of yellow, red, green and blue (with light red and light blue among them), with a desk in front, orange on brown legs. Its picture routine is placed after the laboratory's, at line 4450."
  },
  {
   "address": 33396,
   "type": "line",
   "text": "Place 27, in a stone cell. With the torch not lit (CC=0) the player dies in the dark (line 4500). Calls the room-outline subroutine (line 4502) and draws the cell's walls; when the hole has been made (HH=1, line 4512) a cyan hole in the wall is drawn."
  },
  {
   "address": 33788,
   "type": "line",
   "text": "A line with just GOTO 60 that nothing jumps to."
  },
  {
   "address": 33796,
   "type": "line",
   "text": "The title screen. Black background; draws the manor as a black silhouette against a blue panel at the lower left (lines 4910 to 4918) and the name of the game in light blue at the top right ('t h e', 's e c r e t', 'o f', 'b a s t o w', 'm a n o r'). Sets A6=68 (the character 'D') and calls the title tune (line 1800); then goes to line 5000. Line 4924 prints '1983' under the title and is called from inside the tune at the ninth note."
  },
  {
   "address": 34279,
   "type": "line",
   "text": "Sets up the sprites for the title. Line 5000 turns on sprites 1 and 2 (V+21=6), gives sprite 1 the colour 11 (V+40), expands sprite 1 only (V+23 and V+29 are 2) and starts the shape counter P at 13; A9$ is set to CHR$(A6), the letter 'D' (A6=68 was set at line 4922). Lines 5001 to 5003 read 63 numbers three times from DATA and POKE them at 832, 896 and 960 (blocks 13, 14, 15). Then the volume fades (line 5004) and sprites 1 and 2 are swept across the title in steps of 3, sprite 1 from the top-left corner down and sprite 2 from the bottom-left up (lines 5006 to 5010), their shape pointers 2041 and 2042 cycling through blocks 13 to 15. Line 5010 then clears the screen."
  },
  {
   "address": 34570,
   "type": "line",
   "text": "Clears the screen and prints 'special commands' and the instructions ('i', 'save', 'g', 'quit', and the direction commands); then loads the exits table, 27 by 3 strings from DATA (line 5015), leaves only sprite 0 enabled (POKEV+21,1), and goes on to the second set of sprite shapes."
  },
  {
   "address": 34882,
   "type": "line",
   "text": "Reads three more 63-byte shapes from DATA into 832, 896 and 960: the second set of shapes (a safe, a robot and a skeleton at line 6100 and after). They replace the first set, which the title screen has used."
  },
  {
   "address": 34960,
   "type": "line",
   "text": "Asks 'do you wish to resume a saved game' and reads the answer. A first letter of y goes to the restore routine at line 998; anything else reads the objects table from DATA (line 5080: seven slots for each of the 27 places, a blank item ends a place's list early by setting AA=7) and starts the game at line 42. Line 5070 also loads the character 'B' into A6$ from A9=66: the second letter of the combination."
  },
  {
   "address": 35137,
   "type": "line",
   "text": "DATA for the title tune: fifteen notes as high byte, low byte and a delay count; the tune is played by line 1800."
  },
  {
   "address": 35298,
   "type": "line",
   "text": "DATA for the first set of three sprite shapes, 63 numbers each, read by lines 5001 to 5003: three 24 by 21 shapes that are used on the title screen."
  },
  {
   "address": 35770,
   "type": "line",
   "text": "DATA for the exits: three directions for each of the 27 places, as the letters n, s, e and w, a blank for 'none'. Place 1 has only south; place 2 west, south and east; and so on. Read by line 5015 into R$."
  },
  {
   "address": 35944,
   "type": "line",
   "text": "DATA for the second set of three sprite shapes (63 numbers each), read by lines 5055 to 5065: the sprites used in play, the safe, the robot and the skeleton."
  },
  {
   "address": 36439,
   "type": "line",
   "text": "DATA for the objects lying in each place at the start: seven slots at most per place, the list for a place ending with a blank item; read by line 5080 into S$. Place 1 holds the gate and the wall, place 2 the garden and the manor, place 3 the door, bell and sign, and so on to place 27, which holds nothing at first."
  }
 ]
}
