1983 · SoftGold (Gameworx Software; released as Dotsoft)

The Secret of Bastow Manor

This minisite was contributed by air, unorig. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/c64/the-secret-of-bastow-manor with me to Gold.

What the program does that its screens never say, found by reading its BASIC lines.

The program cannot be listed

Line 17 pokes the value 168 into address 775 ($0307), the high byte of the vector BASIC’s LIST command goes through. The ROM’s own value is $A7, so the command now jumps to $A81A instead of $A71A. A LIST of the program in memory then prints nothing but the line number. LIST 5 prints 5 and nothing else, and with the byte put back by hand line 5 lists whole. RUN and every other command are untouched, and the program in memory is complete. This tab’s Source code is read from that memory.

A combination nobody wrote down

The chest’s code is IBDF. The program never holds it as a string. The letter I is loaded by line 660, the top of the pull verb, whether or not the pull works. F is loaded by line 600, the top of light. D and B are set while the title is drawn, at lines 5000 and 5070 from two numbers set at lines 13 and 4922. Line 140 joins B and D the first time a move is made in the open with the dogs about, and the throw verb at line 830 joins I, that pair and F into Z2$. The lock at line 1745 compares the typed line with Z2$.

The book in the library gives only the turns, right 3, left 7 and right 2, and the note in the small box says VI. Counting from the sixth letter, F, three to the right is I, seven to the left of I is B, and two to the right of B is D; the path ends at the starting letter. Typing IBDF at the lock opens the chest.

A consequence follows from the build order. The save routine keeps A5$, A1$ and Z2$ but not B, D or their pair. The disk’s BM-2 save, made outside the shed at move 283, holds Z2$ as IF, because the pair had not been built when the last throw was typed.

You can win without the gold

The way out, west from the gravel path, tests only that the chest’s combination was entered (H8=1, line 331), not that the gold is in the pack. The game then prints “thats it you’ve got the gold” and “….and your life!” as it ends. The winning screen comes up with the gold left in the chest.

Code that is never reached

Two blocks are never run. A tune player at lines 1570 to 1573 takes notes in the title tune’s format on voice 2, and nothing jumps to it. Line 4700 is a bare GOTO 60 that no line reaches. And the title tune’s fifteenth note is read but never sounded, because the routine counts its notes before the test (details).

Small things in the words

Looking at the apple, once looking at the case in the shed has turned it up, prints “looks like a iie”, a joke on the Apple IIe. Trying the trapdoor with the ladder in the pack prints “sorry,something w1ll not fit”, with a digit one in place of the second l. An empty pack, when you ask for it with i, says “not a cracker !”. The special commands screen calls quit “stops hair pulling”.

Two saved games on the disk

The cracker’s disk carries two files that are not programs but games saved by the game’s own save: BM-1, the very start, and BM-2, a game with the gate opened, the hole made, the robot out and the gold already in the pack. Their first two bytes happen to look like a load address, which is why the directory lists them as program files. Nothing on the disk loads either one.