Cosmos/source/Tests/MathTest/Lost/JIT/AMD64/ImmediateOperand.cs
2008-03-31 10:03:31 +00:00

36 lines
668 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace Lost.JIT.AMD64
{
[Serializable]
public sealed class ImmediateOperand: InstructionOperand
{
public ImmediateOperand(long value)
{
this.Value = value;
this.Size = 8;
}
public ImmediateOperand(int value)
{
this.Value = value;
Size = 4;
}
public ImmediateOperand(short value)
{
this.Value = value;
Size = 2;
}
public ImmediateOperand(byte value)
{
this.Value = value;
Size = 1;
}
public long Value { get; private set; }
public int Size { get; private set; }
}
}