This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CoMUL instruction in MAC unit

Hi there

I use ST10F269 with Keil mVision 3 with C compiler 6.04.

I wrote includes in C-file:
#include <ST10MAC.H>
#include <regst10F269.h>

and

#pragma MAC

but I can not compile c-file with Sine generation, for example:
...
__inline void Generate_Sine (struct tone near *t)
{ __asm { MOV R4, [t+] // cos factor MOV R5, [t+] // y[-1] CoMUL R4, R5 }
}

...

Should I define some misc controls in project C options (ex. EXTMAC or MODV2 or MOD167) or do something else?

PS:Without CoMUL instruction it can be compiled (only two MOVs).

Thanks for help, anyway

0