Now when I managed to start working properly with the registers on Hydra (RLPLite), I have yet another question -
int func2Result = 0;
func2Result = func2();
func2Result <<= 2;
Now here I would expect func2 return 5 to func1, which will shift left twice the result and then return 20 as the result of RLP action.
What I actually get is 5 as the return of RLP action. Looks like the return from func2 returns the whole RLP.
It looks like there’s no stack and return will not jump back to calling function and continue from where is was called, but it would just act as exit();
No I am not Edited the original post. You are compilers or something?
Anyways, it was just an example I wrote here, no compiler to check spelling. Didn’t want to post actual code as it’s already too big and I wanted the code as simple as possible here.
Yeah, it was my fault. I extracted some of the code from my main function to other function and didn’t noticed that main function was mapped to another address from now on. I’m surprised the code worked at all.
Anyways, I guess the case is solved…