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
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
Retro 1990s style beige desktop PC computer and monitor screen and keyboard. 3D illustration.
I played at least one retro game every week in 2024: Here are 10 I'd still recommend to everyone
Latest in Platforms
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
Screenshot from Faceminer showing a PC desktop with several windows open
Five new Steam games you probably missed (March 3, 2025)
PORTSMOUTH, UNITED KINGDOM - OCTOBER 20: A man smokes a cigarette while he looks at a smart phone screen on October 20, 2024 in Portsmouth, England. (Photo by Matt Cardy/Getty Images)
Meta says sorry for turning Instagram into a horror show of violence, gore, dead bodies, and other graphic content that 'should not have been recommended'
A screenshot from Cabernet showing a vampiric woman sucking blood from a victim
Five new Steam games you probably missed (February 24, 2025)
Latest in News
Fortnite jacked Peter Griffin
Parents are suing Epic over Fortnite item shop 'FOMO' timers they say are inaccurate and manipulative
zoomed in concept art of the Agadon Hunter, a new enemy appearing in Doom: The Dark Ages.
Doom: The Dark Ages already sneakily revealed its 'new Marauder,' and the devs hope he'll be just as challenging, but a little less frustrating
Doom: The Dark Ages art
The sickest gun from Doom: The Dark Ages' trailer is called the 'Skullcrusher' and does such horrible things to demons, the game's lead dev boasts id has 'the best gore in the industry'
Monster Hunter Wilds palico
The next Monster Hunter Wilds update is set to launch on March 10 and will ensure that when you chop off monster parts, the right monster parts get chopped off
A pack of real life Balatro cards.
The official Balatro Timeline documents the history of 2024's biggest game as its developer went from 'obsessed' with making it to 'shocked' at the reception
the next battlefield
Battlefield playtest gameplay is leaking all over the internet, and fans seem cautiously but genuinely excited: 'Okay, we might be back'