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

Re: Questions on EDASM reloc ($FE) files



Hi,

>> Relocatable files are able to be run from BASIC programs using the
>> RBOOT and RLOAD routines so are not an intermediate file and will be
>> found on non-programmer's machines.

>[...]

>RBOOT and RLOAD are very seldom-used under DOS 3.3 and virtually
>unused under ProDOS (along with EDASM).  Further, since ProDOS
>supports a hierachical file system, and Contiki programs are very
>likely to be concentrated in a directory apart from any EDASM REL
>files, the potential for confusion is so small as to be negligible.

Your assumption is perfectly correct. As a matter of fact Contiki CAN
load programs only from it's own directory.

>In any case, it would be prudent to include a validity check into
>any routines accessing REL files, to provide some assurance that
>they are what is expected prior to processing.  (I realize that this
>is an unlikely addition for any EDASM REL file-processing programs,
>but should be quite easy for Contiki-related programs.)

Contiki programs are in fact cc65 loadable modules which are in turn a
subset of the o65 format described here:

http://www.6502.org/users/andre/o65/fileformat.html

This format includes a magic number which is actually checked.

So the only question left is, if GS/OS comes with an icon file for $FE
files which would interfere with the icon file I intend to ship with
Contiki.

It would be just great if a GS/OS user could check for that...

Thanks, Oliver