I have a large number of files originally coded for another processor not using banked RAM. When I now compile the files for the S12X, some of the data is placed in banked RAM.
In several places, where I want to access the banked data, the compiler does not produce the correct instructions. Pointers to the data points to the CPU local map instead of the global map.
Is there a way to instruct the compiler to always use global addressing?
Or do I have to walk through my code and insert @gpage @far at every variable declaration?
I am using the Cosmic S12 compiler 4.7.12