mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-05 07:42:45 +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 RegisterEAX : Register32 {
|
|
public const string Name = "EAX";
|
|
public static readonly RegisterEAX Instance = new RegisterEAX();
|
|
|
|
public override string ToString() {
|
|
return Name;
|
|
}
|
|
|
|
public static implicit operator RegisterEAX(MemoryAction aAction) {
|
|
Instance.Move(aAction.ToString());
|
|
return Instance;
|
|
}
|
|
|
|
public static implicit operator RegisterEAX(UInt32 aValue) {
|
|
Instance.Move(aValue.ToString());
|
|
return Instance;
|
|
}
|
|
|
|
public static implicit operator RegisterEAX(RegisterECX aValue) {
|
|
Instance.Move(aValue.ToString());
|
|
return Instance;
|
|
}
|
|
}
|
|
}
|