CW10.2  movec, illegal use of inline function

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

CW10.2  movec, illegal use of inline function

跳至解决方案
1,273 次查看
austintexas
Contributor I

Hi,

 

This code works when I use my CW6.3 tools.  My XP machine has died and now I must get the project working under CW10.2.  I'm getting "illegal use of asm inline function errors whenever I try to write to the VBR register.  My target is a Coldfire V2 MCF5213.

 

void init_exceptions(void)

{

     __asm {

          move.l     #0x20000000,d0

     .long     0x4e7b0801               // movec d0, VBR

     }

}

I've tried changing the last assembly instruction, but the result is the same.

movec     d0, 0x0801,

movec     d0, VBR

movec     A0, VBR    

 

Any ideas would be appreciated.

Thank you.

标签 (1)
0 项奖励
回复
1 解答
1,089 次查看
JimDon
Senior Contributor III

Try:

  dc.l   0x4e7b0801

Build twice to get rid of the error

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,090 次查看
JimDon
Senior Contributor III

Try:

  dc.l   0x4e7b0801

Build twice to get rid of the error

0 项奖励
回复
1,089 次查看
austintexas
Contributor I

That worked.

Thank you very much!

0 项奖励
回复