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