We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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