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

error using in-line function

void test()
{
#pragma asm
MOV R0,#55H
#pragma endasm
}
this code generates A45 error:undefined symbol

Parents
  • void test()
    {
    #pragma asm
    MOV R0,#55H
    #pragma endasm
    }
    Why are you trying to do this?

    The Compiler uses these registers for its own purposes - you should not be messing with them.

    If you really need parts of your application in assembler, then write them in a separate assembler module, in Assembly language, and call them from 'C'

    The Compiler is probably doing you a favour by refusing to compile this!

Reply
  • void test()
    {
    #pragma asm
    MOV R0,#55H
    #pragma endasm
    }
    Why are you trying to do this?

    The Compiler uses these registers for its own purposes - you should not be messing with them.

    If you really need parts of your application in assembler, then write them in a separate assembler module, in Assembly language, and call them from 'C'

    The Compiler is probably doing you a favour by refusing to compile this!

Children
No data