/// <summary> /// Sets the stack parameter. /// </summary> /// <param name="index">The index.</param> /// <param name="type">The type.</param> /// <param name="displacement">The displacement.</param> /// <returns></returns> public Operand SetStackParameter(int index, MosaType type, int displacement, string name) { var param = Operand.CreateParameter(type, architecture.StackFrameRegister, displacement, index, name); Parameters[index] = param; return(param); }