Skip to content
A running-jumping-swordfighting game I made on the Apple II from 1985-89
Assembly Shell Brainfuck C GDScript E Other
Branch: master
Clone or download

Latest commit

Latest commit a9e276c Apr 13, 2017


Type Name Latest commit message Commit time
Failed to load latest commit information.
01 POP Source Added more files May 4, 2012
02 POP Disk Routines Attempted line ending fix Apr 17, 2012
03 Disk Protection Attempted line ending fix Apr 17, 2012
04 Support Added more files May 4, 2012
.gitattributes Some tweaks May 4, 2012
LICENSE Making things easier, linking license to README. Apr 17, 2012 refactored readme links Apr 6, 2017

Prince of Persia Apple II

Some background: This archive contains the source code for the original Prince of Persia game that I wrote on the Apple II, in 6502 assembly language, between 1985-89. The game was first released by Broderbund Software in 1989, and is part of the ongoing Ubisoft game franchise.

For a capsule summary of Prince of Persia's 25-year history, and my involvement with its various incarnations, see and

For those interested in a fuller understanding of the context -- creative, business, personal, and technical -- in which this source code was created, I've published my dev journals from that period as a print book, ebook, and in blog form. Take your pick at

For those who'd like to dig into the source code itself, I've posted an explanatory technical document at which should help. This is a package I put together in October 1989 for the benefit of the teams that were undertaking the ports of POP to various platforms such as PC, Amiga, Sega, Genesis, etc.

Beyond that, please don't ask me to explain anything about the source code, because I don't remember! I hung up my 6502 programming guns in October 1989, and after two decades working primarily as a writer, game designer, and creative director, to say my coding skills are rusty would be an understatement.

Thanks to Jason Scott and Tony Diaz for successfully extracting the source code from a 22-year-old 3.5" floppy disk archive, a task that took most of a long day and night, and would have taken much longer if not for Tony's incredible expertise, perseverence, and well-maintained collection of vintage Apple hardware.

We extracted and posted the 6502 code because it was a piece of computer history that could be of interest to others, and because if we hadn't, it might have been lost for all time. We did this for fun, not profit. As the author and copyright holder of this source code, I personally have no problem with anyone studying it, modifying it, attempting to run it, etc. Please understand that this does NOT constitute a grant of rights of any kind in Prince of Persia, which is an ongoing Ubisoft game franchise. Ubisoft alone has the right to make and distribute Prince of Persia games.

That's about all I know. If additional information becomes available, I'll post and/or tweet about it (@jmechner). In the meantime, if you have questions -- technical, legal, or otherwise -- I recommend that you direct them to the community at large, whose collective knowledge and expertise far exceeds mine, and will only increase as more people get their eyes on this code.

As for me, it's time to get back to my day job of making new games and making up stories.

Have fun!

-- Jordan Mechner

You can’t perform that action at this time.