Cosmos/source2/IL2PCU/Cosmos.IL2CPU/OpCodeAttribute.cs
2009-08-23 20:30:02 +00:00

27 lines
No EOL
604 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;
}
}
}