In .S file the register S0 [ FP] is saved on stack at the function entry and restored at the exit.
In Freedom Studio with Qemu stepping the instruction “ld s0,0(a0)” give an error.
a0 pointer is valid pointer. Replacing s0 by s1 do not given this error.
Why ?