variables from mikroC to assembly

Discussion in 'Embedded Systems and Microcontrollers' started by conanav, Jul 9, 2008.

  1. conanav

    Thread Starter Member

    Jun 14, 2008
    14
    0
    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.
     
Loading...