Page 2 of 2

Re: cc65 - 32KiB PRG banks and segments

Posted: Tue Oct 16, 2018 6:22 pm
by rainwarrior
NOOPr wrote:But it have a drawback: each bank will going to have data from segment "CODE" from every other bank
Use #pragma code-name, data-name, bss-name, and you can decide what segment each goes in.

Re: cc65 - 32KiB PRG banks and segments

Posted: Wed Oct 17, 2018 4:11 am
by NOOPr
rainwarrior wrote:
NOOPr wrote:But it have a drawback: each bank will going to have data from segment "CODE" from every other bank
Use #pragma code-name, data-name, bss-name, and you can decide what segment each goes in.
You cannot do this for data imported from runtime.lib

Re: cc65 - 32KiB PRG banks and segments

Posted: Wed Oct 17, 2018 9:48 am
by rainwarrior
That's true but it is the only thing that has to use those segments, so you can place the runtime where it is needed in your .cfg and for all other code send it to other segments.