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