If I'm using a mapper that uses multiples banks and I write the code in assembler, I know how to define the segments and put them at the right place in the cfg file. My issue is if I write the code in C or define some data in C structure, how can I say that this code or this data should be in a specific bank?
For now I didn't find much yet. There seems to be something new (2017) about trampoline or something but I cannot visualize how to organize my code around that. Then I saw an old post (2016) by dougeff that seems to compile the code separately and put the vector in each file but that seems to be for a very specific mapper.
I guess I should the mapper that I would like to target, and that would be the mmc3. So what approach can be used with that mapper? Since I'm getting to like to write some part in C that would be a shame to have to go back to asm and rewrite the code.
For now I didn't find much yet. There seems to be something new (2017) about trampoline or something but I cannot visualize how to organize my code around that. Then I saw an old post (2016) by dougeff that seems to compile the code separately and put the vector in each file but that seems to be for a very specific mapper.
I guess I should the mapper that I would like to target, and that would be the mmc3. So what approach can be used with that mapper? Since I'm getting to like to write some part in C that would be a shame to have to go back to asm and rewrite the code.