CW10.2  movec, illegal use of inline function

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

CW10.2  movec, illegal use of inline function

Jump to solution
784 Views
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.

Labels (1)
0 Kudos
Reply
1 Solution
600 Views
JimDon
Senior Contributor III

Try:

  dc.l   0x4e7b0801

Build twice to get rid of the error

View solution in original post

0 Kudos
Reply
2 Replies
601 Views
JimDon
Senior Contributor III

Try:

  dc.l   0x4e7b0801

Build twice to get rid of the error

0 Kudos
Reply
600 Views
austintexas
Contributor I

That worked.

Thank you very much!

0 Kudos
Reply