aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Decoders/OpCodeSimdShImm64.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ChocolArm64/Decoders/OpCodeSimdShImm64.cs')
-rw-r--r--ChocolArm64/Decoders/OpCodeSimdShImm64.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/ChocolArm64/Decoders/OpCodeSimdShImm64.cs b/ChocolArm64/Decoders/OpCodeSimdShImm64.cs
new file mode 100644
index 00000000..d4cd88d1
--- /dev/null
+++ b/ChocolArm64/Decoders/OpCodeSimdShImm64.cs
@@ -0,0 +1,16 @@
+using ChocolArm64.Instructions;
+
+namespace ChocolArm64.Decoders
+{
+ class OpCodeSimdShImm64 : OpCodeSimd64
+ {
+ public int Imm { get; private set; }
+
+ public OpCodeSimdShImm64(Inst inst, long position, int opCode) : base(inst, position, opCode)
+ {
+ Imm = (opCode >> 16) & 0x7f;
+
+ Size = BitUtils.HighestBitSetNibble(Imm >> 3);
+ }
+ }
+}