mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-31 21:30:19 +00:00
31 lines
689 B
C#
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;
|
|
}
|
|
}
|
|
}
|