Coldfire V2 Assembly language reference

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

Coldfire V2 Assembly language reference

Jump to solution
1,964 Views
ARQuattr
Contributor IV

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

Labels (1)
0 Kudos
Reply
1 Solution
799 Views
Nouchi
Senior Contributor II

Hello,

 

According to ColdFire Family Programmer’s Reference Manual (CFPRM.PDF), the STOP instruction has a word immediate data, like this: STOP #DATA_2_SR

The WORD operand is loaded into Status register (see cfprm chapter 8-17)

 

Emmanuel

View solution in original post

0 Kudos
Reply
1 Reply
800 Views
Nouchi
Senior Contributor II

Hello,

 

According to ColdFire Family Programmer’s Reference Manual (CFPRM.PDF), the STOP instruction has a word immediate data, like this: STOP #DATA_2_SR

The WORD operand is loaded into Status register (see cfprm chapter 8-17)

 

Emmanuel

0 Kudos
Reply