Coldfire V2 Assembly language reference

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Coldfire V2 Assembly language reference

跳至解决方案
2,108 次查看
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

标签 (1)
0 项奖励
回复
1 解答
943 次查看
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 项奖励
回复
1 回复
944 次查看
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 项奖励
回复