Cosmos/source/Indy.IL2CPU.Assembler/Invoke.cs
mterwoord_cp 08ee17a829
2007-08-30 16:56:01 +00:00

31 lines
689 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler {
public class Invoke: Instruction {
public readonly string ProcedureName;
public readonly object[] Params;
public Invoke(string aProcedureName)
: this(aProcedureName, new object[0]) {
}
public Invoke(string aProcedureName, object[] aParams) {
ProcedureName = aProcedureName;
Params = aParams;
}
public override string ToString() {
string xResult = "invoke " + ProcedureName;
foreach(object o in Params) {
xResult += ",";
if(o !=null) {
xResult += o;
}
}
return xResult;
}
}
}