Hello,
I have this C code
int value_a, value_b ; value_a = value_b ;
that translates to this assembly:
0x0002B128 E58D600C STR R6,[R13,#0x000C]
but the assignment fails - both variables are allocated on the stack. if I allocate the target variable in RAM (say, using "static") it works. alignment issue? something?
What do you expect the statement is doing? The variables aren't initialzed, thus the values are unpredictable.
Maybe the compiler just "cut-optimizes" the call.