AnsweredAssumed Answered

Coldfire V2 Assembly language reference

Question asked by Angelo Quattrociocchi on Oct 19, 2011
Latest reply on Oct 19, 2011 by Nouchi

Is "STOP" a valid assembler command for the Coldfire V2?

 

I'm having trouble finding a assembly language reference for these controllers.  I'm coding primarily in C (MQX 3.6, Codewarrior 10), but I need to issue a stop command to put the device in low power mode.  From the reference manual it refers to the STOP command, but when I try to do that inline it gives an "illegal addressing mode" error.

 

This is the line that causes the error:

 

    asm(stop);

 

 

It compiles fine if I use another assembler command like this:

 

    asm(nop);

Does anyone know where I can find an assembler reference, or what's wrong with what I'm trying?

 

Thanks

Outcomes