Hello, i'm developing a simple assembly (AT&T) program as exercise in preparation of an exam and i have a problem:
I need to pass 4 return values of a function using the stack. I know that after the "call", %esp points to the return address that will be used from the "ret". I've tried to pop that value from the stack, push my return values and then push the return address again just before the "ret" but it doesn't work.
Can i have an help please? Where do i need to put those values in the stack? And how do i have to manipulate the %esp or %ebp?
Thanks