[cc65-devel] apple2 target help
cc65 - a freeware C compiler for 6502 based systems
Brought to you by:
gpz
|
From: <un...@ch...> - 2021-05-28 00:16:54
|
A game I wrote using cc65, it runs fine on the PET and C64.
Now I'm trying to target "apple2".
I understand address will change. But I can't even get
printf("HelloWorld"); working.
I never actually had an Apple2, so I'm struggling with the emulator to
use -- and trying to understand the different Apple][ models.
My goal is to support the "original" 1977 Apple ][. I see things like
they didn't have an auto-boot ROM, so you booted into the monitor and
had to hit CTRL-B?
Well, that's fine -- CTRL+B takes you to the BASIC ] prompt? And like
the early PET 2.0, maybe it didn't support disk drives yet? So that'll
be a problem getting files (a C compiled executable) into the system.
With VICE I just drag and drop the PRG in, and it runs. No such luck
so far on the Apple ][
So maybe I should compromise and support Apple ][+ ?
I'm trying that with Applewin, and I used CiderPress to prepare a disk
file that contains the A.OUT program I compiled from cc65 (with
-target apple2). It shows up in the CATALOG, so I was very excited.
But when I run it, I get "FILE TYPE MISMATCH"
Is it actually pick that it has a .OUT extension, is that throwing it
off? I just thought of that, and will give it a try. But I assume it's
a bit more insightful then that, and is consider the file as not an
executable based on the front end content?
What vintage of Apple][ does the cc65 -target really target?
Thanks,
SteveL
|