We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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