mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +00:00
30 lines
885 B
C#
30 lines
885 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Indy.IL2CPU.Assembler.X86.X {
|
|
public class RegisterECX : Register32 {
|
|
public const string Name = "ECX";
|
|
public static readonly RegisterECX Instance = new RegisterECX();
|
|
|
|
public override string ToString() {
|
|
return Name;
|
|
}
|
|
|
|
public static implicit operator RegisterECX(MemoryAction aAction) {
|
|
Instance.Move(aAction.ToString());
|
|
return Instance;
|
|
}
|
|
|
|
public static implicit operator RegisterECX(UInt32 aValue) {
|
|
Instance.Move(aValue.ToString());
|
|
return Instance;
|
|
}
|
|
|
|
public static implicit operator RegisterECX(RegisterEAX aValue) {
|
|
Instance.Move(aValue.ToString());
|
|
return Instance;
|
|
}
|
|
}
|
|
}
|