aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Translation/ILOpCode.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ChocolArm64/Translation/ILOpCode.cs')
-rw-r--r--ChocolArm64/Translation/ILOpCode.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/ChocolArm64/Translation/ILOpCode.cs b/ChocolArm64/Translation/ILOpCode.cs
new file mode 100644
index 00000000..eb91639e
--- /dev/null
+++ b/ChocolArm64/Translation/ILOpCode.cs
@@ -0,0 +1,19 @@
+using System.Reflection.Emit;
+
+namespace ChocolArm64.Translation
+{
+ struct ILOpCode : IILEmit
+ {
+ private OpCode _ilOp;
+
+ public ILOpCode(OpCode ilOp)
+ {
+ _ilOp = ilOp;
+ }
+
+ public void Emit(ILEmitter context)
+ {
+ context.Generator.Emit(_ilOp);
+ }
+ }
+} \ No newline at end of file