2018-10-31 02:43:02 +01:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace ChocolArm64.Instructions
|
|
|
|
{
|
|
|
|
struct Inst
|
|
|
|
{
|
2019-01-25 02:59:53 +01:00
|
|
|
public InstEmitter Emitter { get; }
|
|
|
|
public Type Type { get; }
|
2018-10-31 02:43:02 +01:00
|
|
|
|
2019-01-25 02:59:53 +01:00
|
|
|
public static Inst Undefined => new Inst(InstEmit.Und, null);
|
2018-10-31 02:43:02 +01:00
|
|
|
|
2019-01-25 02:59:53 +01:00
|
|
|
public Inst(InstEmitter emitter, Type type)
|
2018-10-31 02:43:02 +01:00
|
|
|
{
|
2019-01-25 02:59:53 +01:00
|
|
|
Emitter = emitter;
|
|
|
|
Type = type;
|
2018-10-31 02:43:02 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|