Compiling C and Assembly for Symon

Programming the 6502 microprocessor and its relatives in assembly and other languages.
Quaker762
Posts: 7
Joined: 29 Sep 2014

Re: Compiling C and Assembly for Symon

Post by Quaker762 »

8BIT wrote:
ok - found some time today.

This worked for me. edit your .cfg file to this:

Code: Select all

MEMORY {
ZP: start = $0, size =  $100, type  = rw, define = yes;
RAM: start = $0200, size = $7F00, define = yes;
ROM: start = $C000, size = $4000, fill = yes;
}
SEGMENTS {
ZEROPAGE:  load = ZP,  type = zp,  define   = yes;
STARTUP: load = ROM, type = ro,  define   = yes;
INIT: load = ROM, type = ro,  define   = yes;
CODE: load = ROM, type = ro,  define   = yes;
DATA: load = ROM, type = rw,  define   = yes;
BSS: load = RAM, type = bss, define = yes;
}
FEATURES {
    CONDES:    segment = STARTUP,
               type    = constructor,
               label   = __CONSTRUCTOR_TABLE__,
               count   = __CONSTRUCTOR_COUNT__;
    CONDES:    segment = STARTUP,
               type    = destructor,
               label   = __DESTRUCTOR_TABLE__,
               count   = __DESTRUCTOR_COUNT__;
}
I added the

Code: Select all

, define = yes
to the lines that were unresolved.

Give that a try.

Daryl
That seems to have fixed my compilation issues! Thank you very much for the help you've given me, it's been awesome!
-Quaker762
Post Reply