aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Decoders/InstDescriptor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ARMeilleure/Decoders/InstDescriptor.cs')
-rw-r--r--ARMeilleure/Decoders/InstDescriptor.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/ARMeilleure/Decoders/InstDescriptor.cs b/ARMeilleure/Decoders/InstDescriptor.cs
new file mode 100644
index 00000000..ee2b1c2e
--- /dev/null
+++ b/ARMeilleure/Decoders/InstDescriptor.cs
@@ -0,0 +1,18 @@
+using ARMeilleure.Instructions;
+
+namespace ARMeilleure.Decoders
+{
+ struct InstDescriptor
+ {
+ public static InstDescriptor Undefined => new InstDescriptor(InstName.Und, null);
+
+ public InstName Name { get; }
+ public InstEmitter Emitter { get; }
+
+ public InstDescriptor(InstName name, InstEmitter emitter)
+ {
+ Name = name;
+ Emitter = emitter;
+ }
+ }
+} \ No newline at end of file