I've asked is same question in stack overflow, but didn't get the response. Here goes,
Why is Stack-pointer register not reading correct value from another register? When I move a value from register (r0) to stack pointer (r13), the SP reads…