jerryd
Member level 1
edaboard,
I have a project that contains a main.c and an asm.s.
In the main.c I declare an array as:
volatile unsigned int numbers[10];
In the asm.s is:
GLOBAL _numbers
In the asm.s I can index that array with
movf _numbers + 1,0,0
movf _numbers + 2,0,0
etc.
works fine.
But if I try to index it with a variable
ex: movf _numbers + variable,0,0
it compiles but the indexing doesn't happen?
jerryd
I have a project that contains a main.c and an asm.s.
In the main.c I declare an array as:
volatile unsigned int numbers[10];
In the asm.s is:
GLOBAL _numbers
In the asm.s I can index that array with
movf _numbers + 1,0,0
movf _numbers + 2,0,0
etc.
works fine.
But if I try to index it with a variable
ex: movf _numbers + variable,0,0
it compiles but the indexing doesn't happen?
jerryd