[cc65] Running out of memory on segment code

From: S M <san.mes1gmail.com>
Date: 2010-06-01 13:14:39
Hi,


An excerpt of my cfg file

MEMORY {
>     ZP:  start = $0002, size = $00fe, type = rw, define = yes;
>     RAM: start = $07ff, size =    $3801, fill = yes, file = %O, define =
> yes;
>     RAM1: start = $4000, size = $2000, fill = yes, file = %O, define = yes;
>     RAM1a: start = $6000, size = $0400, fill = yes, file = %O, define =
> yes;
>     RAM2: start = $6400, size = $0480, fill = yes, file = %O, define = yes;
>     RAM2a: start = $6880, size = $27c0, fill = yes, file = %O, define =
> yes;
>     RAM3: start = $9000, size = $1004, fill = yes, file = %O, define =
> yes;
>
> }
>
> SEGMENTS {
>
>     STARTUP:  load = RAM, type = ro;
>     INIT:     load = RAM, type = ro, define = yes, optional = yes;
>     CODE:     load = RAM, type = ro, define = yes;
>

I am running out of memory on segment CODE, and I would like to use also
another section of Memory, say RAM3. I also can use ram from $e000 onwards.

How can I do this?

How do I select a segment say CODE2 in a c file? is there a #pragma for
this?

Thank you

----------------------------------------------------------------------
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 Jun 1 13:14:51 2010

This archive was generated by hypermail 2.1.8 : 2010-06-01 13:14:53 CEST