For the instrinsic usage in C code, see below from my colleague:
SR.L is not recognized in C code, so you cannot use ‘SR.L’ as a parameter.
Instead, the following sequence can be used:
unsigned int sr_l = readSR()&0xFFFF;
return bmtstc(sr_l, 7);
It should work.
For the instrinsic usage in C code, see below from my colleague:
SR.L is not recognized in C code, so you cannot use ‘SR.L’ as a parameter.
Instead, the following sequence can be used:
unsigned int sr_l = readSR()&0xFFFF;
return bmtstc(sr_l, 7);
It should work.
Thanks
You may use somthing like asm(" bmtstc #$7, SR.L") in C code as workaround.