mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
30 lines
No EOL
696 B
C#
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;
|
|
}
|
|
}
|
|
} |