variables from mikroC to assembly

Thread Starter

conanav

Joined Jun 14, 2008
14
Hi

I have a question, part of my code is in mikroC(LED and keypad) and the other part is in ASM (timer and interrupts). I have a variable that is being read in through the keypad, however I do not know how to transfer it to ASM. I keep getting a comment that says constant not found. This is part of my code.



Code:

unsigned COUNT = 10; // variable example

asm{
//COUNT NEEDS TO BE READ IN AS 10!
loop:
decfsz COUNT,1 // TIMING LOOP
goto loop:
}

// BACK TO MIKROC for output

Thanks for the help guys.
 
Top