I am trying to run the source code found at https://taipangame.com/BASIC.txt on Epple 2 (with Apple II+ roms) to eventually run on my own Apple II+, but the program keeps crashing.
First, I used a python script to clean up the text and remove all spaces not between quotes. The reason for this is some of the lines are too long to type in with spaces and the batch paste ends up not working correctly.
text = """<the code starting from 10 without the final bracket>"""
lines = text.split("\n")
for i in range(len(lines)):
if lines[i].startswith(" "):
lines[i] = lines[i][1:]
for i in range(len(lines)-1,-1,-1):
if lines[i].startswith(" "):
lines[i-1] += lines[i][4:]
i=0
while i<len(lines):
if lines[i].startswith(" "):
del lines[i]
else:
i+=1
for i in range(len(lines)):
lines[i] = re.sub(r"\s+(?=([^\"]*\"[^\"]*\")*[^\"]*$)", "", lines[i]) # deletes all spaces not between quotes
lines[i] = re.sub(r"(^\d*)",r"\1 ",lines[i]) # adds back space after line number
However, after copying this script into Epple (and running LIST
to make sure it looked fine) I RUN
it and it gives the error 1842- A=31 X=9C Y=06 P=31 S=F9
.
At this point, the computer starts acting very weird. I tried running LIST
, RUN
, PRINT
and 1 REM
and all of them errored at address 012A.
Address 012A contained the byte 03.
I am not sure what steps to take next. The issue could be with the emulator, or the python script, or even the website I got the code from. Any help would be much appreciated.
(Note: My final goal is to save Taipan as a cassette .wav to play into the Apple II's cassette jack from my phone, since I do not have a floppy drive.)