Orlando Llanes wrote:
Frank: Sorry 'bout my rambling :} What I want to do is to reference all the variables declared in an object via the stack.
Peter: I did dump a -S, but the problem is that the prolog code sets a couple of registers to the address of the Self parameter, then later on in my routine, when I try to access the variable, it points to an invalid location in memory, because the register that was set with the address is now pointing into space (my routine modifies all of the registers).
I think all you have to do is declare those registers as clobbered. You can also specify input and output registers to you r assembler code, so you don't have to worry about whether it's stored on the stack or in some registers by the compiler. The compiler will put it into those registers where you want it. The exact syntax is described in the GPC assembler tutorial (I think the file name is gpcasm.txt, in some directory on Agnes).
Frank