1986 · Activision

Aliens

This minisite was contributed by 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/aliens with me to Gold.

What the code holds that the game never shows: a sound nobody hears, routines nothing calls, a test that reads the wrong byte, and the marks a cracker left on the disk.

01 · A silent effect

One of the sixteen sound effects is never played

The engine holds sixteen sound effects, and fifteen of them are started somewhere in the game. The sixteenth, sfx_rumble ($3A74), is complete and works, but no stage starts it.

An effect is started by a call to start_effect ($2A79) with the effect's address in the two bytes after the call. A search of the engine and all nine stage files found no call naming $3A74, and the address appears nowhere else in their memory. The Music tab plays it, with the other fifteen.

02 · Skipping a level

The game's own skip costs the ending, and the crack's does not

The manual tells players stuck on a level how to skip it: hold a key and press RESTORE. The manual warns that a game with a skipped level never reaches the final screen. The code keeps that promise with a single byte, and the cracked disk studied here adds a skip of its own that leaves the byte alone.

With the up-arrow key held, RESTORE leads to stage_abort ($08AC), which sets $0202 to $FF and ends the stage without its status screen. From then until a new game, make_code ($1720) writes no code, so the status screen shows five asterisks, and the ending ($88DA) skips Bishop, the hypersleep text, and The End.

The crack's trainer adds a second skip on the Commodore key (trainer_skip, $3B01). That key ends the stage as if it had been won, through the status screen, and it clears $0202 as it does (skip_pressed, $3B1E). A player using the crack's key still gets codes and the ending, which the game's own skip was written to deny.

03 · A slip in the ducts

Level 4 tests a byte in memory where it meant a number

In the air duct maze, aliens come out of vents chosen by zones of the map. The routine that finds a cell's zone has an instruction that reads the wrong thing.

Each cell of the maze has two zones, four bits each, in a table at $9530. zone_of ($91C7) takes the low four bits, or the high four when a test is set. The test ANDs a byte with $05, written as AND $05, which reads memory location 5, rather than AND #$05, the number 5. The routine also indexes a table by a register the routine does not set. Which of a cell's two zones it gives therefore depends on bytes the routine does not control.

04 · Leftovers

Code that nothing calls

Every byte of the game has been accounted for, and a few turn out to be unreachable: routines with no call, and odd instructions stranded between others.

05 · The title's first byte

The title screen starts by running its own flag

Every stage file begins with two addresses where the engine enters it. The title's both point at $8028, and the byte there is not the start of the code but a flag.

return_armed ($8028) holds bit 7 once RETURN may start the game, from the fifth marker of tune 2 on. The engine enters the stage there all the same. Run as an instruction, $80 is one the 6502's makers never documented: a two-byte NOP, which skips the byte after it. The flag's value when the file arrives was not seen, so whether the stage always starts on $80 is open.

06 · Where no marine starts

A block of rooms is kept free of marines

The APC rescue drops its four marines into random rooms. Bit 7 of a room's byte rules a room out, and all the rooms marked so lie in the map's lower left, where the Newt rescue later puts Newt and the Queen.

random_room ($8984) draws a room and draws again when its byte has bit 7 set, is no room, is the APC, or already holds a marine. The manual's tips speak of marines "in the Aliens' nest area"; whether the marked block is meant as the nest is not said in the code. See the block on the Maps tab.

07 · Credits

The title credits leave out the graphics

The title cycles through seven credits: Activision, the four designers, Russell Lieblich for the music and effects, Brad Fregger as producer, James Cameron's film, and the two copyright notices. The manual credits two more people, Hilary Mills and Jennifer Diane Reitz, for additional graphics, and the game names them nowhere.

The credits are packed pictures, unpacked into the bitmap one at a time (credit_unpackers, $8346), so their text is not stored as characters at all.

08 · Either port

The manual names port 1, and the game reads both

The manual tells players to plug the joystick into port 1. read_joysticks ($0BFE) reads both ports at once and combines them, so port 2 works too. More on the Controls tab.

09 · The crack

This copy carries a cracker's trainer in front of the game

The disk studied here is a cracked copy. A Remember cracktro and a trainer menu, a 22 KB BASIC file, hold the game's engine and load the ten packed stage files. Its additions are marked on the Source tab as the cracker's.

The Remember cracktro
The cracktro.
The trainer menu with its cheats
The trainer menu, with its cheats and the level codes.

trainer_patch ($2C06) pokes each stage's code after it loads, for the cheats switched on in the menu: in level 5 the rounds and Ripley's strength ($8798, $8B64), and in the Queen fight a JMP that stops her winning ($8139) and LDAs in place of her recovery ($88A9). The pokes go to fixed addresses, so the same addresses in other stages' files, such as the briefing's, are marked on the Source tab with the level whose code they change.