1985 · Domark

A View to a Kill

This minisite was curated by unorig, air.

A burning room wins City Hall by jumping into the middle of an instruction, and the word ZOOM is hidden in three of the five programs. Here are the claims the code contradicts, the bugs, and the questions still open.

01 · Checked against the sources

Where the code and the sources disagree

The claimWhat the code does
MI6-HQ: the mine's detonator combination is 32768.The mine checks 6, 7, 1, 3, 4 ($26F0), and only digits 1 to 7 can be entered at all.
C64-Wiki: the game can be played from the keyboard as well as the joystick.In play only the joystick in port 2 is read, and the keyboard scan is stopped. Keys are read only at the code prompts.
The FRGCB blog: each section can be played without its code, "but they will be practically impossible to beat without them".Not practically: completely. Without the code, City Hall starts again at the exit and the mine's bomb always goes off (How it fits together).
The code prompts: RETURN plays the section without the code.It plays, but City Hall and the mine cannot then be won (How it fits together).

02 · City Hall

Bug: a burning room runs the end test from the middle of an instruction

The main loop's test for a burning room branches to $7090, which is the second byte of a branch instruction. From there the processor reads ORA $57AD, then an undocumented instruction that shifts a byte of memory left and ORs it in (SLO, writing $0BFC), and arrives at the load of the code flag in the end test ($7096). With CCPHJ typed, the next pass ends in the mission-complete screen with DB4CT; without it, a new game starts.4 Whether the branch was meant to go to the end test and the target is off by a byte, or was changed later, is not known.

Energy and the clock cannot kill Bond

The energy objects set a value for Bond and one for Stacey that the game never reads or draws ($1B5B, $1B5C). The clock counts and the game never reads it: where a test might have been there are nine NOPs ($6EA1).

Room 38 holds furniture with no place

Room 38's record names a second piece of furniture, type $A1, at address 0 ($A20E, copied to $443E). Bond can still walk in from room 39, the room is drawn, and play goes on;12 what the drawing routine makes of a type that high was not worked out.

A table read from the screen

When the fire spreads to the next floor, the new temperatures are masked with AND $03E9,Y ($95AD), a read of the screen, where an AND # of a fixed value was probably meant. This is untested.

03 · The intro

Bug: the credits depend on where the raster beam is

Before the credits the intro writes $97 to the video chip's control register ($CB50). Its top bit is also the top bit of the raster line the next interrupt is asked for, which becomes line 496, a line a European screen never reaches. A later read, AND and write of the register clears it ($C540), but reading that bit gives the line the beam is on, so if the beam were below line 255 at that moment the bit would be written back set. Then no interrupt would ever come again, and the credits, the music and everything else driven from the interrupt would stop. In test boots the beam was always near the top and the credits scrolled;2 whether the stall can happen at all on this disk is not known.

04 · Paris

Bug: the locator is cut off by one byte

The cockpit's locator lamp should flash, and a beep sound, faster the closer the car is to May Day ($4A50). The interrupt's sound routine calls it at its end, but a return instruction sits on the first byte of that call ($51E9), where the load of the sound option should begin. The game calls it from nowhere else, so the lamp never lights and the beep never sounds.3

05 · The mine

A digit counter with no limit

Each digit entered is stored at $1B73 plus the count so far, and the count has no limit ($38AA). The numbered objects stay in the list after use, so a digit can be entered again and again. The fourteenth digit would land on the pause flag and stop the clock, and the forty-sixth on the code flag itself, which would make the section winnable without DB4CT once the count wraps round after 256. This is untested.

Bug: the helmets do nothing, and one can never be picked up

EXAMINE finds an object whose tile column lies from a column worked out from Bond's position to four more ($36F6). To test the upper end, it subtracts 5 from the object's column ($3727). For the helmet at column 3, just below the start, the subtraction wraps round to 254, which is never below Bond's column, so EXAMINE always buzzes there. Bond would have to fetch the spare helmet at (94, 72), far down in the middle of the mine, but he never needs one. A lit hazard of the kind drawn with glyphs $5E-$65, the falling rocks around the plank at (39, 29), hangs the game for good when the count of helmets taken is 0, because the test then loops on something that can never change ($2B93). With a helmet it only hurts. But the count ($1B16) is already 2 when the mine starts, and taking a helmet only adds to it, so the rocks always just hurt, and the hang can never happen. So the helmets do nothing at all, and a player who ignores them and times the walk past the rocks loses nothing.13

Two smaller slips: the welcome page loads the stack pointer from the byte at $FF where the number $FF was meant ($7D1D), harmless because the next routine sets it again; and the planks' handler tests for an object number that none of the objects has ($3970).

06 · Left in the files

An older code, an older end screen, and a word left in three places

City Hall holds a code prompt the game never calls, which asks for QRS21 and gives three tries ($967B), and an end screen the game never shows: WEBL DONE 007 YOUR CODE IS 111122 ($7E5A). It also holds most of the mine's end text, with ILVCT, among the bytes its loader left behind.

The word ZOOM ends a page of memory in three programs: in the intro as "MOZOOM1000" ($9FF6), in City Hall inside the icon of item 52 ($48FC), and in the mine as four tiles of the map, at row 54 ($9FFC), where the game draws them as four stray tiles. What wrote it is not known.

07 · Open questions

Questions still open