passing values from Assembly to C
===

I want to simply pass a variable from assembly over to C and C over to assembly.

The problem is i don't want to use fixed memory addressing (IE. putting the value in a specific location and then using a pointer to access that specific location).

I was initially thinking that i could use registers, but there are only 16 in total! I may have more than 16 values which i want to pass over.

So the next thing i can think of is pushing the values onto the stack. But does this mean i have to use inline assembly to access it in C? something like this: 

       asm ( assembler template 
           : output operands                  /* optional */
           : input operands                   /* optional */
           : list of clobbered registers      /* optional */
           );

Is there any other way to go about this? Can anyone give me a REALLY simple example of putting something on the stack, and then accessing it in C code?


Assembly Noob!
