Hi,
Does anyone have any insight into how to access a function parameter from in-line assembler?
I am doing the following -
void type24Var::add(const unsigned long src)
{
asm
{
movf _src, W
}
}
But this will not compile and I get the message -
failure
type24Var.cpp(68:2): error: error in built-in assembly
make[2]: [build/default/production/type24Var.o] Error 1 (ignored)
It's driving me crazy, nothing I do seems to clear the error!