This repo contains two versions of the source code for Star Raiders. Both can be assembled using a modern 6502 assembler to produce an identical copy of the original retail cartridge rom.
starraiders-original.asm is the original source code of the game, sourced from a scanned copy of the game's assembly listing. This was copied from a now archived repo containing a group's attempt at transcribing and formatting the original scanned photographs. I've corrected a bunch of typos and ommissions in that transcription to produce a listing that can be assembled and run.
starraiders-annotated.asm is a fork of Lorenz Wiest's disassembly of Star Raiders that has been modified to build with 64tass. This is the file to read if you're interested in understanding the inner workings of the game since it contains a wealth of commentary and information.
sudo apt install 64tass atari800
This will assemble the original source code and run it with atari800:
make
To build the annotated source code, run:
make starraiders-annotated.xex