[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cc65 for Apple 2?
On Apr 12, 9:06 am, Harry Potter <maspethro...@aol.com> wrote:
> I have cc65 and some Win32-based Apple 2 emulators and am wondering
> how to create Apple 2 programs for the Apple 2. I am more of a
> Commodore person, but I find the graphics modes funny and am
> interested in exploring Apple 2 programming. What do I need to know?
> For example, how do I write, transfer to .dsk images and run the
> software; access the disk and hardware; etc?
You need to know Aztec C. Forget CC65.
Download both of my compilers and my ClipShop utility. You've seen the
links.
http://www.clipshop.ca/Aztec/index.htm#apple
http://www.clipshop.ca/Aztec/index.htm#commodore
http://www.clipshop.ca/index.htm
You need Apple II Oasis. Use the disk Manager. Didn't I put the links
to that on my website? Aztec-C Website that is! Not CC65 Website.
If you are using WinVICE on the C64 and you are capable of using
something as primitive as c1541 (which I use in my Aztec C C64 stuff)
you will have no problem with the Disk Manager in Apple II Oasis.
The Apple II had two main formats; DOS 3.3 and ProDOS 8. Totally
different like CP/M 80 on a C128 vs BASIC 7 on a C128. Did I mention
that some Apples (I had a Tiger II Plus with a Z80 as well as a 6502)
also ran CP/M? Dis I also mention that I have the CP/M stuff on the
Aztec C Website as well as the Amiga and MS-DOS and all that.
Anyways the Graphics are basically the same between the C64 and the
Apple II and the IBM-PC in MS-DOS Mode.
However, how the memory is used to achieve colors and so forth is a
little different for each which allows for the lack of undertanding by
some folks...
Where the graphics become confusing is when someone hasn't done much.
To help you and others of your tribe sort-out some of the consfusion I
wrote a Wikipedia Article about the BSaved image format and that link
is around here too somewhere. That article also pops-up all over the
WEB these days so nobody can say that they don't understand what the
differences are between them after they read the article.
http://en.wikipedia.org/wiki/BSAVE_%28graphics_image_format%29
I still suspect that the BSAVE really stands for BILLGATESAVE
The compiler docs talk quite a bit more about these graphics that you
mention... my docs for the Aztec-C compilers and my utilites for bothe
the C64 and the Apple II that allow you to embed graphics in programs
and so forth as well as doing vector and bitmapped graphics and fonts.
But let's face-it... I have been doing graphics programming for about
30 years so really there isn't much better graphics libraries around
for someone like you.
My favorite Apple II emulator is AppleWin
http://applewin.berlios.de/
Copyright © 1994-1996, Michael O'Brien
Copyright © 2001, Oliver Schmidt
Copyright © 2002-2005, Tom Charlesworth
Copyright © 2006-2007, Tom Charlesworth, Michael Pohoreski, Nick
Westgate, Linards Ticmanis
So what I do is build my disk images with Apple II Oasis and then run
them on both to test my programs.
For my equivalent C64 programs I use WinVICE x64.
My CP/M 80 I used Simeon Cran's MyZ80 and my CP/M 86 and MS-DOS I use
either native mode XP cmd shell or DosBOX for MS-DOS and other
emulators like AME86 for CPM/86.
All this is on my Aztec C and Clipshop sites and if you make the
necessary effort to download and actually try some of this you will be
a wiser person for it.
Bill
PS - If you used Aztec C rather than this CC65 stuff you wouldn't have
too many questions. The CC65 stuff whether on the C64 or the Apple IIe
isn't very well supported as far as I am concerned and although I am
sure that it probably works the pseudo-knowledge on what to do with it
is missing volumes.
It is too unix like and doesn't come with much.
Other recommended reading:
You need to get over to C128 Alive and look at some of the articles
that I put-up over there on the Aztec C Compiler for the C64 and then
have a look at the equivalent stuff for the Apple IIe.
It has been more than a day or two since the models@home people used
one of my screen savers as the windows core of their experiment for
the bioinformatics journal, so even if you are more interested in the
graphics rather than the structure of how these things are done be
sure to download the complimentary screensaver on the clipshop website
because it comes with source code.