[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Contiki 4 Apple II Question



On Thu, 24 Apr 2008 20:39:00 -0400, "a2retro"
<a2retro@a2central.com.remove-1zz-this> wrote:

>I think the code is set to a specific prefix and it doesn't support 
>switching.

Indeed. Contiki 1.x for the Apple2 distinguished between two types of
file i/o:

User file i/o: Used in application, in example the FTP client or the
web downloader. There you can use relative or absolute ProDOS
pathnames. Setting the ProDOS prefix before bringing up Contiki has
the expected behaviour - including imitating the BASIC.SYSTEM
behaviour of just accessing the last used device when no ProDOS prefix
is set and a relative pathname is given.

System file i/o: Used by the Contiki resident core to access the
config file, .DSC files, .PRG files and driver files. There internally
the absolute pathname to CONTIKI is retrieved and it's directory is
used as prefix to all files. The idea is that these files are still
found if the user file i/o happens somewhere else.

I understand that this design isn't optimal for 5.25" floppy users :-(

Other posts in this thread have pointed out how to trick ProDOS into
thinking that there's only one disk instead of two. However one should
understand that this is kind of the opposite of what one should
normally do with ProDOS...

Best, Oliver