For the local variables, you were right Rich, disabling Register Coloring allows me to see local variables, thanks!
For the "for loop" problem, I found the solution too: I previously added a delay loop like this in my code:
asm
{
move #4, d7
Loop1uSec:
subi #1, d7
bne Loop1uSec
}
That code worked well, but it gives me the "for loop" bug later. I replaced that assembler function with one in C and now it works fine.
Frelon