Hi,
I use the mapper mmc3 but I think its work the same with another.
I would like to store integer tables to draw my room in RODATA. So I use const unsigned char array but they are added to the PRG. I thought that constants are placed in ROM.
I will have 100 arrays for my rooms, so it will not fit in 16ko of PRG.
I add the pragma value for Rodata before my constant array : #pragma rodata-name (push, "RODATA"). But I certainly confuse PRG-ROM and PRG-RAM.
I use cc65 and in my nes.cfg, i have :
Do I need to add another PRG-ROM ? So I'll have the code in PRG1 and multiple switchable PRG2 with my rodata?
I use the mapper mmc3 but I think its work the same with another.
I would like to store integer tables to draw my room in RODATA. So I use const unsigned char array but they are added to the PRG. I thought that constants are placed in ROM.
I will have 100 arrays for my rooms, so it will not fit in 16ko of PRG.
I add the pragma value for Rodata before my constant array : #pragma rodata-name (push, "RODATA"). But I certainly confuse PRG-ROM and PRG-RAM.
I use cc65 and in my nes.cfg, i have :
Code:
#ROM Addresses:
PRG: start = $c000, size = $3ffa, file = %O ,fill = yes, define = yes;
SEGMENTS {
...
CODE: load = PRG, type = ro, define = yes;
RODATA: load = PRG, type = ro, define = yes;
...
};
PRG: start = $c000, size = $3ffa, file = %O ,fill = yes, define = yes;
SEGMENTS {
...
CODE: load = PRG, type = ro, define = yes;
RODATA: load = PRG, type = ro, define = yes;
...
};
Do I need to add another PRG-ROM ? So I'll have the code in PRG1 and multiple switchable PRG2 with my rodata?