The source code for famed arcade bastard Defender has been posted to Github

The arcade game Defender.
(Image credit: Williams)

Defender is an arcade classic and one of the most successful titles from what is now called the golden age of the arcades. Released in 1980, it was the first videogame co-designed by Eugene Jarvis and he was one of a team of four coders that developed it for the pinball company Williams (following the success of Space Invaders, it wanted to get into the arcade market).

You could tell that Defender was made by pinball designers, primarily because it was very fast, and very difficult. Jarvis is a designer of genius but he was also used to designing products where a high level of player skill and a desire for mastery could be taken for granted. His games never lost this quality, even though they somewhat softened over time: Robotron 2084 was still insanely difficult, while NARC and Smash TV gobbled up your lives like nobody's business.

Anyway: the source code for Defender has now been posted to Github. This is the code for the 'Red Label' version of the game, one of four versions distributed to arcades, and comes with some amusing notes on assembly from Mr Jarvis himself (or 'Dr J').

TO ASSEMBLE THE DEFENDER MESS

RASM PHR2,DEFA2,DEFB2,AMODE0;-X (ELSE CREF SYMBOL OVERFLOW)

RASM PHR2,SAMEXPA7

RASM PHR2,DEFA2,DEFB2

TO GET THE DIAGS, CHAIN ALL.CF

LOAD IT ALL AND THEN PRAY IT WORKS

(NOTE: BEWARE OF ORDER OF LOADING

       LOOK OUT FOR THE SELECTED BLOCK SHIT

DR J. 1/21/81

The arcade game Defender.

(Image credit: Williams)

Retired coder James Cuff has been digging through the code, and found some interesting remnants of Williams' pinball heritage, with entries for a ball timer and the number of balls played (there are of course no balls in Defender).

Cuff also found some amusing notes-to-self in what looks like the code for the game's 'attract' mode (the demo that arcade machines play to entice players). First it's 'Time to blow up the enemy' then a line later 'Blow up the bastard', before 'Move to the man'. Some element of it was 'For Eugene', before the machine has to 'Make it faster' then 'Put it back'.

I popped a line to Eugene Jarvis' current company to see what he thought about all this, and will update with any response. His name may not be familiar to younger readers, but this guy is one of the greats of the arcade even if, as he admitted in this old interview with Gamasutra, "I'm always trying to duplicate the success of Defender. It's like I'm kind of doomed to never have that level of success again, and I keep dreaming."

He's probably a fan, though. "I always think that MAME has been a wonderful thing, too, in preserving the heritage of games. Graphics have moved on and gameplay has moved on, but it's fun to see and play [old games] and see the history of the business. It's a history lesson that's great entertainment in its own right."

Rich Stanton
Senior Editor

Rich is a games journalist with 15 years' experience, beginning his career on Edge magazine before working for a wide range of outlets, including Ars Technica, Eurogamer, GamesRadar+, Gamespot, the Guardian, IGN, the New Statesman, Polygon, and Vice. He was the editor of Kotaku UK, the UK arm of Kotaku, for three years before joining PC Gamer. He is the author of a Brief History of Video Games, a full history of the medium, which the Midwest Book Review described as "[a] must-read for serious minded game historians and curious video game connoisseurs alike."

Read more
I, Robot remake screenshot
Jeff Minter is remaking another Atari classic, and yeah, it is definitely a Jeff Minter game
EA just released source code for a bunch of old Command and Conquer games, and added Steam Workshop support to bangers like C&C 3: Tiberium Wars
An image of a corpse with the text "You've been re-educated."
I played the lost videogame sequel to 1984, and came away more nostalgic than ever for gaming's awkward adolescence in 1999
Two robots fighting in a battle arena.
A renewed obsession for British TV show Robot Wars led me on a wild goose chase to find a good robot fighting game
A shocked man sees something NSFW on his phone.
We can now pinpoint the exact year videogames turned from God's light thanks to the discovery of a 'nude code' for Smurfette in 1984
Doom running in a PDF file
Galaxy-brained high schooler ports Doom to a PDF file, paving the way for a bloody revolution in invoicing
Latest in Platforms
A screenshot from game Mudborne of a little humanoid frog in a marsh
Five new Steam games you probably missed (March 24, 2025)
midnight murder club
Five new Steam games you probably missed (March 17, 2025)
Screenshot of Children of Clay showing a mysterious clay model
Five new Steam games you probably missed (March 10, 2025)
discord
Brace yourself for Discord to get worse: Reports swirl that the company is in talks with bankers about opening itself up to shareholders
The Spy from Team Fortress 2 holds up a folder with an accusatory expression.
Steam users react ecstatically to update that lets them access their heaving game notes via the web, also it fixes Monster Hunter Wilds video recording
HasanAbi
Twitch streamer Hasan Piker suspended after saying Republicans would 'kill Rick Scott' if they really cared about Medicare fraud
Latest in News
Assassin's Creed Shadows promo image
Ubisoft scores a legendary ratio against Elon Musk on his own platform—which hopefully marks a final end to all the Assassin's Creed Shadows' culture war nonsense
Tzarina Katarin Bokha, the Ice Queen of Kislev
Total War: Warhammer 3 rolls out a cool Kislev overhaul, changes befitting Tzeench’s magic, new projectile units and creakier skeletal horses
An image of a golden first place award from Geoguessr
'We're actually getting GeoGuessr on Steam before GTA 6': the Google Street View puzzler arrives on Valve's platform this April
Napster client circa 1999
Former music-pirating platform Napster to be reborn rather ironically as a metaverse for musicians to connect with their fans after $207 million deal
The snazzy red and black HyperX Cloud Alpha wireless headphones float in a teal void. The microphone is attached to the headset.
The best wireless gaming headset is now even better in the Amazon Big Spring Sale, boasting a more than $50 discount
A chip being held up in an Intel fab
Intel is reportedly 'working to finalize commitments from Nvidia' as a foundry partner, suggesting gaming potential for the 18A node