In Codewarrior 7.2 the asm functions mcf5xxx_wr_sr and others from mcf5xxx_IO.s crashed with the message "Illegal stack type ..." exception
This is caused by the parameter passing convention Register (REG_ABI) and there is no means of changing because in the Compiler Processor Settings, the Parameter Passing combo is stacked in Register (in grayed).
I Have tried the same function mcf5xxx_wr_sr() in the CodeWarrior 7.1 compiling with Parameter Passing = Compact and the code runs well, without any exception. The same code compiled in 7.1 with Parameter Passing = Register, crashes as in the CodeWarrior 7.2
There is a note in TN268 http://cache.freescale.com/files/soft_dev_tools/doc/app_note/TN268.pdf about deleting
move.14(SP),D0 in mcf5xxx_IO.s Code Warrior V7.2.
My question is : has anybody changed the functions in mcf5xxx_IO.s for working with Parameter Passing=Register or know where to found the New mcf5xxx_IO.s ?