Hello all! I'm writting a little OS for LCP2129. For the moment their are only two task and one sheduler. But i have a problem:
I would like to Import a C variable in ASM. My compiler is GCC GNU compiler.
Do someone know how to do this?
The finalitty is to write the content of a variable in the R15(PC) register Here is my code but it doesn't work:
typedef struct { unsigned long PC; }contexte_tache; contexte_tache tache1_contexte; PC_TEMPORAIRE=tache1_contexte.PC; asm("IMPORT PC_TEMPORAIRE"); asm("STR PC_TEMPORAIRE PC");
Does someone can help me????????????? If it works i will post my code furthermore...