[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: DOS3.3 program in cc65?
"Harry Potter" <rose.joseph12@yahoo.com> wrote:
> So cc65 already supports disk I/O under ProDOS. And the support is in the
> fcntl.h header. Condsidering this, how do I use the fcntl.h functions? Or
> are they already documented in cc65?
They are part of the C standard.
> The reasons I wanted to support ProDOS functions are that I didn't see
> special support for ProDOS in cc65 like there is for CBM I/O and I reallly
> wanted to usee ProDOS's special functionality. I don't want to generic
> ANSI file routines if I'm programming specificly for the Apple 2.
You are now talking about two different things. C is not for you and neither
is the Apple II.
> BTW, where can I find an empty ProDOS startup disk image?
What version of ProDOS? And what do you mean "startup disk image" ? ProDOS 8
runs SYS programs. In cc65 I assume you still need Oliver's launcher which
is a SYS program to launch a binary or perhaps you can launch it in
AppleSoft using the BRUN command.
Regardless of what you do with your programs, where I got my latest version
of ProDOS is that I bought it from Sheppy at the syndicomm store...
http://store.syndicomm.com/ and then I converted it to a disk image and
ported it to my PC using the CF card from my Microdrive.
> And if I wanted to write code for certain ProDOS configuraions, I prepend
> start address then program length to the executable, right?
Wrong! ProDOS tracks this. DOS 3.3 on the other hand. requires bloadable
address and length.
How in the world do you expect to write something in C for the Apple II when
you don't know anything about any of this?
None of us can help you because you don't have the abilities you need to
learn any of this otherwise you would know it by now.
If you want to program for ProDOS on the Apple II start with the ProDOS
manuals... If you want to program in C start with a copy of the C
Programming Language.
Read them yourself like the rest of us did.
And if you want to write programmers' utilities for the C language in ProDOS
(i.e. "fields") you will need to become an expert in both. And then define a
real need for your utility. Otherwise nobody will use it.
A veteran C programmer like me who programmed on the Apple II in C 25 years
ago still asks lots of stupid questions and exhibits a great amount of
wrong-headedness and is probably in many blocked-sender's lists. What about
you Joseph? Surely you must realize that none of these people want you
here...
Why beat yourself-up? Go back to programming in QuickBASIC on the PC and
enjoy yourself.
Bill