mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 12:58:39 +00:00
27 lines
No EOL
604 B
C#
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;
|
|
}
|
|
}
|
|
} |