CW10.2  movec, illegal use of inline function

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CW10.2  movec, illegal use of inline function

ソリューションへジャンプ
1,271件の閲覧回数
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,087件の閲覧回数
JimDon
Senior Contributor III

Try:

  dc.l   0x4e7b0801

Build twice to get rid of the error

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,088件の閲覧回数
JimDon
Senior Contributor III

Try:

  dc.l   0x4e7b0801

Build twice to get rid of the error

0 件の賞賛
返信
1,087件の閲覧回数
austintexas
Contributor I

That worked.

Thank you very much!

0 件の賞賛
返信