#define assember program, compiler have an error

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

#define assember program, compiler have an error

284 Views
dongli
Contributor I

#define change(Int) do{ __asm( movb 0,SP , Int);}while(0);

when define upper  program, compiler have an error:

error message: C12020:....

i know command "movb" not support Relative Addressing Mode , but how to complete this assember statement

0 Kudos
1 Reply

190 Views
TICS_Fiona
NXP Employee
NXP Employee

What's the CodeWarrior version you are using? And what is the part number of your MCU or Processor?

Fiona Kuang

Technical Information & Commercial Support

0 Kudos