I saw this question and I would like to know how can we dereference the pointer to int?
This is the code:
int load(int *ptr)
{
return *ptr;
}
Now, I know that $a0 contains the pointer. So that's the address of an integer, which we need to return.