[cc65] ca65 for stand-alone asm projects

From: Agent Friday <64subnet1gmail.com>
Date: 2010-11-02 03:26:35
Hi.

I'm wondering if there are any ca65 tutorials available, or a good
example to start from.  I haven't been able to locate any from
searching the docs and the mailing list archive.

What I need most are details about linking assembler-only projects,
and the format of the final binary.  I've created a config file
(shown below) that so far SEEMS to be pretty close to what I want,
which is all code in a single file ready to load at $8000.  What I'm
getting seems to only be missing the load address as the first 2
bytes of the file.

The ld65 docs say very little about how to get the output format you
want, just that you can't specify any options for the default output
(binary) and the only other format seems to be .o65.

 [Just curious...  are the name ca65 and dl65 abbreviations or
  acronyms for a longer name?]

Thanks for your help,
// Agent Friday



MEMORY
{
    ZP:         start = $0002, size = $001A, type = rw, define = yes;
    LORAM:      start = $07FF, size = $C801, file = %O, define = yes;
    RAM8000:    start = $8000, size = $2000, type = rw;

}

SEGMENTS
{
    CODE:     load = RAM8000, type = ro;
    BSS:      load = RAM8000, type = bss, define = yes;
}

FEATURES
{
}

SYMBOLS
{
    __STACKSIZE__: value = $0000, weak = yes;
}


// 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 Tue Nov 2 03:26:43 2010

This archive was generated by hypermail 2.1.8 : 2010-11-02 03:26:45 CET