Cosmos/source/Indy.IL2CPU.Assembler.X86/X/RegisterESI.cs
2008-09-17 03:56:52 +00:00

35 lines
1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86.X {
public class RegisterESI : Register32 {
public const string Name = "ESI";
public static readonly RegisterESI Instance = new RegisterESI();
public override string ToString() {
return Name;
}
public static implicit operator RegisterESI(MemoryAction aAction) {
Instance.Move(aAction.ToString());
return Instance;
}
public static implicit operator RegisterESI(UInt32 aValue) {
Instance.Move(aValue.ToString());
return Instance;
}
public static implicit operator RegisterESI(RegisterESP aValue) {
Instance.Move(aValue.ToString());
return Instance;
}
public static implicit operator RegisterESI(RegisterEBP aValue) {
Instance.Move(aValue.ToString());
return Instance;
}
}
}