asm method

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

asm method

1,464 Views
DavidoBG
Contributor II
I would like doing a jump to 0xE000 adress in my main function but i have an compilator error
 
asm{
      JMP.W #E000H
    };
 
Error : Factor expected.
 
I am looking for solution with specific factor but i cannot find.
 
thanks
David
 
Labels (1)
0 Kudos
Reply
2 Replies

745 Views
DavidoBG
Contributor II
OK It is good thanks
0 Kudos
Reply

745 Views
Ake
Contributor III
Hi,
I am not sure of which C-compiler you are using, but to use the CW compiler, you should write
 
  asm{
      JMP  0xE000
    };
 
and that would be OK for HC08, 9S08, 9RS08 and F51 MCUs.
 
Regards,
Ake
0 Kudos
Reply