Question: regarding mac instructions in CodeWarrior

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Question: regarding mac instructions in CodeWarrior

1,578 Views
zedraic
Contributor I
Greetings all,

I am working on writing an FIR filter for the MCF5275 and I am attempting to utilize the emac. I have obtained the DSP library from Freescale (DSPLIPUMSW); however, when I compile the the FIR filter code or when I write my own "mac" instructions like "asm("mac.w %d0.l, %d1.l, <<, %ACC0") I get the following error:

Error   : C:\DOCUME~1\rr\LOCALS~1\Temp\ccQ9aaaa.s : Assembler messages:

Error   : syntax error -- statement `mac.w %d0.l,%d1.l,<<,%ACC0' ignored
ccQ9aaaa.s line 130  

all the other assembly I have written it compiles but it gets stuck on each mac instruction. 

I am using the CodeWarrior IDE 5.0.9 to do the compilation.

If anyone has suggestions/ideas of how to make this work I would greatly appreciate them.

Thanks
Labels (1)
0 Kudos
Reply
1 Reply

533 Views
AdamS
Contributor I
Hello,
 
I don't know this code well but try below solution:
 
`mac.w %d0.l,%d1.l,<<,%ACC0'  sould be changed to   asm (mac.w d0.l,d1.l,<<,ACC0);
Now you will compile.
 
Best regards - Adam
0 Kudos
Reply