Cosmos/source/Indy.IL2CPU.Assembler.X86/Push.cs
2007-11-18 16:51:28 +00:00

30 lines
No EOL
696 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86 {
[OpCode(0xFFFFFFFF, "push")]
public class Push: Instruction {
public readonly string[] Arguments;
public readonly string Size;
public Push(string aSize, string aArgument): this(new string[] {aArgument}) {
Size = aSize;
}
public Push(params string[] aArguments) {
Arguments = aArguments;
}
public override string ToString() {
string xResult = "push";
if(!String.IsNullOrEmpty(Size)){
xResult += " " + Size;
}
foreach (string A in Arguments) {
xResult += " " + A;
}
return xResult;
}
}
}