//----------------------------------------------------// // Generic template for function execution // //----------------------------------------------------// // this code builds the current frame using the // code *inside* the function that has been called // label of first command is function name: functionname: // allocate local variables: ADDSP n // code in body _stuff_ _ensure_that_return_value_created_ // return code: STOREOFF -1 // store rv in "top" of previous frame ADDSP -n // pop off local variables: JUMPIND // return to caller