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

M0+ Thumb - C flag

Hi,
    Am I correct in thinking that the only the ADCS & SBCS can use C flag? Shifts/Rotate does not use C, as I understand it. Earlier tonight I was gutted because I thought I had found a 15-cycle 32-bit x 32-bit --> 64-bit multiply macro that took 15 cycles (not the 18 my codes used & the 17 cycles of Jens Bauer's method).

I ask because I have noted that the documentation of some instructions are given different explanation depending on source. I have to place C into bit 16 of a register and I thought I could use a RORS, but evidently RORS doen't use the value in C as an input, only an output. Very annoying because I thought I had worked out a 15 cycle multiply.

Anyone wanting an MP3 or WB-ACELP decoder to run on an M0+ will have fun.

Parents Reply Children
No data