Cosmos/source/Indy.IL2CPU/Assembler/x86/_Infra/InstructionWithDestinationAndSize.cs
mterwoord_cp ab7807cdb0
2008-11-08 14:48:06 +00:00

26 lines
752 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86 {
public class InstructionWithDestinationAndSize : InstructionWithDestination, IInstructionWithSize {
private byte mSize;
public byte Size {
get {
this.DetermineSize(this, mSize);
return mSize;
}
set {
if (value > 0) {
SizeToString(value);
}
mSize = value;
}
}
public override string ToString() {
return base.mMnemonic + " " + SizeToString(Size) + " " + this.GetDestinationAsString();
}
}
}