question about parameter and variable order in methods
jstjohnz
Posts: 91
If I have a method such as
If I pass @param1 in PAR to my asm code, then I am passing the address of param1, and I know that I can add 4 to that to access the subsequent parameters. My question is, after the end of the parameters, if I add 4 again will I get a pointer to localtemp1, then localtemp2?
And can I directly access RESULT by the same scheme, either between params and temps or after temps?
PUB mymethod (param1,param2,param3) | localtemp1,localtemp2
If I pass @param1 in PAR to my asm code, then I am passing the address of param1, and I know that I can add 4 to that to access the subsequent parameters. My question is, after the end of the parameters, if I add 4 again will I get a pointer to localtemp1, then localtemp2?
And can I directly access RESULT by the same scheme, either between params and temps or after temps?
Comments
Thanks, that is exactly what I needed to know.