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

MDK-ARM: Importing labels into inline assembler

Hi,

I'm attempting to jump to the address of a specific assembler label from within my C code, so I thought I'd try some embedded assembler;

For example;

void JumpToAsm(void)
{
    __asm
    {
        IMPORT __asmlabel
        B      __asmlabel
    }
}

When I try to compile this code, I get the following error, referring to the IMPORT __asmlabel line. error: #3061: unrecognized instruction opcode

How do I import an external label into the inline assembler? I can't find any documentation on this specific point.

TIA, Jon Mills.