Hard to believe that it has already been a year since Jordan Mechner et al made these sources available on github. Like others here, I too have been investigating the possibility of building the Apple II Prince of Persia sources. There are definitely multiple ways to tackle this problem and this thread mentions a few great alternatives. In the end, I decided that the most interesting way (i.e. most fun) for me to solve the problem would be to write a Merlin 8 compatible cross assembler that would run on modern PCs to build the original sources.
At this point I have a fork of Jordan Mechner's github repository which contains a makefile and tool binaries for 32-bit x86 host platforms running OS X, Windows, or Ubuntu. The makefile is able to assemble all of the required Prince of Persia sources and generate a 3.5" disk image. My current build documentation can be found here:
https://github.com/adamgreen/Prince-of-Persia-Apple-II/blob/build/Notes/pop-build.creole The source code for the assembler and disk imaging tool used can be found here:
https://github.com/adamgreen/snapNcrackleThere are some important things to note about the current state of this build system:
The output disk image won't work on the Apple IIGS. The Prince of Persia sources use 65802 instructions in some Apple IIGS specific code paths. I don't support this instruction set yet. I will correct this in the near future and this should increase the numbers of emulators and machines on which the disk image will work.
I have been using
JACE for my current testing and it sort of works but has issues with keyboard input on my MacBook Air. Maybe others more familiar with Apple emulators have other suggestions for emulators that can emulate a 128K Apple II using an emulated SmartPort 3.5" or mass storage mounting of this image.
Only a 3.5" disk image is created at this point. The github repository doesn't contain the RW18 code required for 5.25" disks but it does contain the 3.5" version. If someone has an original copy of the 5.25" Prince of Persia disk and is able to make a nibble copy of both sides, then I would love to have it. It would really help me pull together 5.25" disk support in this build system.
Thanks,
Adam