Hello,
Have you tried placing the expression between parenthesis?
Regards,
Mac
Hello
Did you try
__asm addd #bar:OFFSET_FOO;
Extract from the Compiler_HC12.pdf:
The inline assembler enables you to specify an offset from the address of a variable in order to access the low word of a long or a float variable: Offset = ":" ConstExpr. Variable = Ident {"." Ident}. Below are some examples (assuming all variables are long): LDY @g:2 ; Load Y with ((address of g) + 2) LDX g:2 ; Load X with the value stored there LDD r.f:2 ; Load D with low word of field f.
CrasyCat