Solved! Go to Solution.
Hello
My guess is that you are placing code in non-contiguous memory area in your .prm file.
Something like:
DEFAULT_ROM INTO ROM_C000, ROM_4000
If this is the case, you have to tell the compiler not to optimize JSR with BSR while building code.
when building in Small memory model, compiler will try to replace all JSR with BSR instruction. This obviously can generate some trouble when a code section is allocated on two non-consecutive memory block.
Just add option -OnB=b to your compiler option to disable that optimization.
CrasyCat