Re: [cc65] ca65 for stand-alone asm projects

From: Agent Friday <64subnet1gmail.com>
Date: 2010-11-05 22:34:33
On Fri, Nov 5, 2010 at 2:23 PM, Ullrich von Bassewitz wrote:
> On Fri, Nov 05, 2010 at 01:59:27PM -0700, Agent Friday wrote:
>> As I see it, providing the load address really is about making
>> sense as well.  The proper file format for a PRG type file on the
>> Commodores machines--a loadable, executable file-- *always* includes
>> a load address.  Without it, you can't really do anything with a
>> machine language program file.
>
> You can make an EPROM out of it, load it into the floppy, use it as an overlay
> (Elite128 uses this technique a lot) or a driver and probably many more
> things.

Yes, but it relies on the user providing the missing information.  It is
inherently incomplete because, with rare exception, the code is only
valid when loaded at the intended address.  Unless you enforce the
(non-existent) rule that every object-form code segment be assembled
to an origin of 0000, you don't even have enough info. to relocate or
link it.  Technically, you could omit the first opcode byte and ask the
user to supply it later (similar to undeleting a FAT file on a PC, I
guess) and still be able to make use of it... but to me it makes no
sense.

I don't know anything about Elite 128, but I'm thinking that it can
probably also deal with files containing the address.

// Agent Friday
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Nov 5 22:34:42 2010

This archive was generated by hypermail 2.1.8 : 2010-11-05 22:34:45 CET