Re: [cc65] Atari executables w/ AtariMax flashcart

From: Christian Groessler <>
Date: 2005-03-30 00:33:43

On Tue, 29 Mar 2005, Shawn Jefferson wrote:

> --- "Carsten Strotmann (Carsten Strotmann private
> Mail)" <> wrote:
> I would vote against a change of the Atari runtime
> lib. The runtime lob
> can assume the channel E: is open (or even better,
> channel (IOCB) 0
> being open, so a DOS can redirect screen output to
> any other device).

The routine I provided only opens E: if iocb #0 isn't already open.
Therefore it shouldn't destroy any existing redirection.

> > IMHO this is a problem (or bug) of the AtariMax
> > Cart. As I see the
> > problem the channel 0 to E: is still open, but the
> > AtariMax Menu will
> > switch the DisplayList to a custom one and will not
> > switch back. This
> > can easily solved in the AtariMax sources, which are
> > OpenSource. It we
> > send a patch back to Steve Tucker (AtariMax Author)
> > I'm sure he will
> > release a new, fixed version of the AtariMax
> > Software (we should also
> > send a patch to use ca65 Assembler instead of TASM).
> Is that the issue?  E: isn't initialized until after
> the cartridge is run (according to De Re Atari), so as

Do you have the relevant section of De Re Atari at hand?

> far as I can tell, E: never gets initialized at all
> with ANY cartridge.  Which doesn't seem like a bug to
> me, but just the way the Atari OS works.

If this is the case I think the function should be added to the runtime

But it must not be called automatically from crt0.s, since for non-text
programs E: shouldn't be initialized. The user has to request it
explicitly in his program.


To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Mar 30 00:33:47 2005

This archive was generated by hypermail 2.1.8 : 2005-03-30 00:33:53 CEST