1990 · Rainbow Arts · Commodore 64

Turrican

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

Three bugs any player can meet, and the messages, names and leftovers hidden in the game’s files and maps.

01 · pause and fire

Bug: Holding pause and fire, the hero walks on and no enemy appears

Pressing CTRL pauses the game, and pressing fire carries on. While CTRL is held down, the main loop sets the pause flag ($0203) again every time round ($08EA). Fire clears the flag ($0B48), but it stays clear only for the first half of each frame. In that half the hero moves, the time counts down and the view scrolls. By the time the interrupt near the bottom of the screen runs the enemies ($0CAB), the flag is set again, and the interrupt skips the enemies, so it neither makes nor moves any.

Both pictures start from the same moment in level 1-1. On the left, the hero walked right for six seconds, and ten of the eleven object slots filled with enemies. On the right, CTRL, fire and right were held for the same six seconds. The view scrolled to exactly the same place and the time counted down the same, but no enemy appeared.

Level 1-1 after six seconds of walking right, with enemies around the hero
Walking right for six seconds.
Level 1-1 at the same place with no enemies
CTRL, fire and right for the same six seconds.

02 · the loading tune

Secret: The loading tune checks its own credit line, and goes wrong if it is changed

The tune that plays while the game loads has a player of its own, Romuzak V6.3 by Oliver Blasnik. The player carries a line of text: “ROMUZAK V6.3 <W> BY OLIVER BLASNIK, <C> DIGITAL MARKETING!!”, followed by a telephone number. While the tune plays, the player reads that line one byte at a time and combines each byte into a check value with EOR. At the end of the line it compares the result with $56, the value the line as written gives.

When the line has been changed, the player keeps the wrong value and adds it to two bytes of each voice’s state every 1,024 frames (the boot’s code at $D9EE and $D9D5). A cracker who wrote their own name into the line would hear the tune go wrong about 15 seconds in, and lose most of its notes after that. Both buttons run the player’s own code on a 6502 simulator in the page. The second has one letter of the line changed.

On the simulator, the changed tune first differs at frame 769, about 15 seconds in. In the next minute it starts about a quarter as many notes as the tune as stored. In the game, changing one byte of the line while the tune plays leaves the wrong value at $808F in the same way. This site leaves the telephone number out: ten of its digits are replaced, with values chosen so that the line’s check still comes to $56 and the tune plays as it should.

03 · the ending’s tune

Bug: The ending’s tune plays a piece of the game’s code

Each note in the ending’s tune runs a sound program: a short list of bytes that the voice steps through, one byte a frame. A byte under $80 is added to the note that the tune asks for. A byte from $80 to $DF is a note of its own. Bytes from $E0 up are commands, such as a new waveform, or a jump to another program.

The ending’s file holds 21 sound programs, numbered 0 to 20, and a table of their addresses at $B732. Program 18 ends with the command $E8 $15: go on with program 21. There is no program 21. The table has one more place after program 20’s, at $B75C, and it holds $1808, an address in the middle of the engine’s code.

So the voice plays the code. At $1808 is the end of the routine that moves the screen up a row when the view climbs, and then the routine that moves the colours up a row. Both are long runs of two instructions, LDA and STA, each with an address one screen row below the last. To the player, the two instructions, $BD and $9D, and the high bytes of their addresses, $C8 to $DB, are all notes of their own. The low bytes of the addresses fall by 40 from one instruction to the next, so the player meets every kind of byte: some are added to the tune’s note, some are notes, and the few from $E0 up change the waveform or start a slide. The voice’s pitch changes almost every frame, 50 times a second, and follows the code for as long as the tune lets that note’s program run, up to nearly four seconds.

It happens every time the ending plays. In the tune’s first 30 seconds, voice 1 reads the code from 0.3 seconds to 4 seconds and again from 6 seconds to 9.6 seconds, and voice 3 from 7.9 seconds to 11.5 seconds.

The engine’s code     Its bytes    What the voice plays
$1807  STA $C968,X    9D 68 C9     +$68, note $C9 (the program starts at the 68)
$180A  LDA $CD18,X    BD 18 CD     note $BD, +$18, note $CD
$180D  STA $C940,X    9D 40 C9     note $9D, +$40, note $C9
$1810  LDA $CCF0,X    BD F0 CC     note $BD, waveform $F0 (it takes the $CC)
$1813  STA $C918,X    9D 18 C9     note $9D, +$18, note $C9
$1816  DEX            CA           note $CA
$1817  BPL $17C2      10 A9        +$10, note $A9

The button runs the ending’s own player on a 6502 simulator in the page, with the engine’s bytes at $1808-$18C6 as the game has them. In the game, the player reads from those 191 addresses 413 times in 1,500 frames of the ending, half a minute.

04 · the hall of fame

Bug: A player who finishes the game is listed at level !-!

When a game ends, the engine copies the name of the level reached from two bytes of the level’s file in memory, $8CA2 and $8CA4 ($0957). In every level they hold the level’s own name, such as 1-1. After the last level the ending’s file is in memory instead, and at those two addresses it holds two bytes of the picture of the tower, $65 and $55. The title shows each of them as an exclamation mark (title $7087), so a player who finishes the game is listed at level !-!.

YOUR RESULT, SCORE 0200000, LEVEL !-!
The result screen after the ending. The score was set to 200,000 first so that it would enter the table.
The hall of fame with MR. RETURN at the top at level !-!
The same game in the hall of fame, at the top.

05 · the maps

Secret: Two maps spell out 1989 and DTE inside the rock

Level 1-1’s map has the year 1989 near its bottom, spelled out in pale blocks inside the rock, 15 blocks across and 5 down. Level 1-3’s map has the letters DTE on their side inside its tallest rock, reading from the bottom up, and the letters reach the map’s bottom row. The same three letters begin a line that the title’s file holds and never shows (leftovers).

The year 1989 in pale blocks inside black rock
Level 1-1, blocks 54 to 68 across and 44 to 48 down. Find it on the whole map.
The letters DTE on their side in pale blocks inside a tall rock
Level 1-3, blocks 89 to 93 across and 40 to 50 down. Find it on the whole map.

06 · no name

Secret: Pressing RETURN without a name enters MR. RETURN

A player who presses RETURN without typing a name goes into the hall of fame as ♥ MR. RETURN ♥ (title $7CE2). The second picture under the level !-! bug shows him at the top of the table. The hearts are character $1E, which is an up arrow in the machine’s own characters and a heart in the title’s font.

07 · the first table

Secret: The hall of fame starts with the team’s names and a copyright line

Before anyone has played, the hall of fame lists the people who made the game. Manfred Trenz is at the top with 100,000 points and level 4-2. Its last three rows spell out a copyright line instead of names. The table below is read from the engine’s listing ($6860, loaded from the file IH). In the second picture under the level !-! bug, the line’s last row has dropped off the bottom of the table.

08 · to crackers

Secret: The title’s file holds a message to crackers that the game never prints

The title’s file holds 842 characters of text that the code never reads (title $94A6-$97EF). It is Manfred Trenz writing to whoever would crack the game:

HI FOLKS, THE MANIAC IS BACK !!! ONE QUESTION: WHY DO YOU WANT TO CRACK THIS PROGGY ??? CAN YOU IMAGINE HOW MUCH WORK I DID TO MAKE A GAME LIKE THIS ??? HERE SOME INFORMATIONS ABOUT: STARTING TIME: 01.02.1989 (OH YES) ALL THE IDEAS,GAMEDESIGN,ALIENROUTINIES,GRAPHICS,PLAYBILITY,TECHNICAL PROBLEMS AND MUCH MORE TOOK A LOT OF TIME AND WAS VERY OFTEN NERVE-RACKING! ECHT AETZEND YOU WOULD SAY ... SOMETIMES I WORKED MORE THEN 14 HOURS A DAY, ONLY INTERRUPTED BY ESSENTIAL THINGS LIKE FOOD,COKE AND MTV. I MADE THIS GAME NOT ONLY FOR MONEY BUT NEVERTHELESS I'M SURE YOU AGREE WITH ME, THAT I WANT TO EARN FOR MY WORK. SO DO ME A FAVOUR AND DON'T CRACK AND SPREAD THIS GAME !! IF YOU HAVE ANY QUESTIONS, CALL: [a telephone number] BYE NOW AND THINK ABOUT ! PS.: DO YOU KNOW WHAT A GROELAZ IS ??? YOU BETTER DO NOT !!

“Echt ätzend” is German slang for “really awful”. The credits that the title does show are stored scrambled: each byte is changed with EOR and a key that grows by one step a byte, and the title decodes them when it starts ($7BAB). So a search of the file for a name from the credits does not find it.

09 · the ending’s credits

Secret: The ending’s credits name the disk loader and the protection

The title’s credits name a producer, three musicians and the authors of the sound routines. The credits at the end of the game are shorter and different. They name one musician, Ramiro Vaca. They add two people the title leaves out: Markus Wiederstein for the disk loader, and Alexander Ernst for the protection. Alexander Ernst is also in the first hall of fame. The text ends with “Now enjoy the music or Press Space”, and under it “The End ....??” (the ending’s text, $707E-$75B6).

The tower with Now enjoy the music or Press Space, and The End at the bottom
The end of the ending’s text, over the tower.

10 · saving

Secret: A failed save answers in German: DANN EBEN NICHT !!

S on the hall of fame asks for side 1 of the disk, to save the table on it. When the save fails, the screen turns light red and says DANN EBEN NICHT !!, German for “never mind, then” (title $7546, the text at $923C).

INSERT SIDE 1 OF YOUR GAMEDISK
S on the hall of fame.
DANN EBEN NICHT !! in light red
Fire with no disk in the drive.

11 · the speech

Secret: The spoken sample has a disk command inside it

While the game loads, the boot plays a short spoken sample through the sound chip’s volume register. Inside the sample’s bytes, twice, is the text S:THEMARKUSMONSTER (at $A0FA and $A30C in the boot’s memory). S: is the disk drive’s command to delete a file, here a file called THEMARKUSMONSTER. The text is played as sound, with the rest of the sample.

12 · leftovers

Secret: Three files carry text that the game never reads

Level 4-2’s file ends with 179 bytes that the code never reads, holding the text TUSL.4-2 and 4-2. The title’s file holds DTE+DTZ+ACU+MWS+AV IN 1990 ($C610), which the code never reads either. The boot program is called SCHLUMPF, German for smurf, and carries the text TRALALA !!.