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