This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

long variables in Extended Inline Assembly

Hallo,
i'm searching for an option to use "C" long variables in an "extended inline assembly block". I don't want use the Registernames (R8, R9, ...) becase i'm not sure that they are stable in newer Compilerversions. Please look at my example:

UINT16 readValFromAdr(long adr)
{
  UINT16 uiData;

  __asm
  {
    EXTS     R9,#1        ; <- my Problem
    MOV      uiData,[adr]
  }

  return (uiData);
}


Have anybody an idee?

Thanks,

Thorsten

0