Referring to constant definitions in an inline assembly instruction in .c files

Version 1
    Question: Can constant definitions in m8c.inc files be referred to in an inline assembly instruction in .c files?

     

    Answer:

    No, the constant definitions in m8c.inc file can't be included in a .c file to be referred in an inline assembly instruction. However, the constant can be accessed using it's address instead of using the name, for example:

    Using "asm("mov A, reg[0x087]");" instead of "asm("mov A, reg[ASD11CR3]");" in an inline assembly instruction in .c files.

    Please refer to KB article: Using inline assembly in a C program for details on using inline assembly in a C program