Hello
Rewriting DisabelInt routine as follows seems to be accepted by CodeWarrior for Coldfire V6.2:
void DisableInt(WORD wIntMask)
{
asm
{
move.w sr, d0;
move.w d0, -(a7);
move.w wIntMask, d2
OR d2, d0;
move.w d0, sr;
}
}
However this looks like an issue in the compiler. Can you please submit a service request around that through our support web page.
Go to following URL:
https://www.freescale.com/webapp/sps/site/homepage.jsp?nodeId=054670&tid=FSH
and click on Submit a service request.
CrasyCat