nesdev.com
http://forums.nesdev.com/

cc65 - 32KiB PRG banks and segments
http://forums.nesdev.com/viewtopic.php?f=10&t=17928
Page 2 of 2

Author:  rainwarrior [ Tue Oct 16, 2018 6:22 pm ]
Post subject:  Re: cc65 - 32KiB PRG banks and segments

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.

Author:  NOOPr [ Wed Oct 17, 2018 4:11 am ]
Post subject:  Re: cc65 - 32KiB PRG banks and segments

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

Author:  rainwarrior [ Wed Oct 17, 2018 9:48 am ]
Post subject:  Re: cc65 - 32KiB PRG banks and segments

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.

Page 2 of 2 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/