Cosmos/source2/IL2CPU/Cosmos.IL2CPU/OpCodeAttribute.cs
2010-09-04 19:07:11 +00:00

27 lines
600 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.IL2CPU
{
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
public class OpCodeAttribute : Attribute
{
public readonly ILOpCode.Code OpCode;
public OpCodeAttribute(ILOpCode.Code aOpCode)
{
OpCode = aOpCode;
}
//OLD:
public readonly string Mnemonic;
public OpCodeAttribute(string aMnemonic)
{
Mnemonic = aMnemonic;
}
}
}