This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Really noob question...

Hi everybody
I want to test the speed of my algorithm. I'm setting the values in asm, and doing the printf and defining my array in C to get a valid register value. I want the array to be in memory. But when I change a value in asm, the values of array in C does not change. Here is my code:

asm code:
mov a,#11
...

C code:
static char polyside[20] asm("a")={0};
printf_xy(10,10,"%d",polyside[0]);
...

and it dosen't show up in the print function. Can somebody show me how to do this?Thx

0