Barthélémy Ledoux

[Starting User] Problem with the inline assembly

Discussion created by Barthélémy Ledoux on Aug 17, 2006
Latest reply on Aug 23, 2006 by CompilerGuru
Hi Everybody,

My probleme is very simple to explain. I hope it will not be harder to solve.
I'm develloping a very little function that needs to go very fast. Knowing that, I decide to write it directly in assembly code. My problem is that whenever I try to use global variables in this function (inside the asm brackets), the compiler sends the following error:

"Error: C18700 Unknown Opcode Operand Combination."

Here is part of my code :

unsigned char ucSampleIdx;

void IsrDecode (void){

dbnz ucSampleIdx, FRAMING_ERROR

Thanks in advance for your help