aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Decoders/OpCode32AluUx.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ARMeilleure/Decoders/OpCode32AluUx.cs')
-rw-r--r--ARMeilleure/Decoders/OpCode32AluUx.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/ARMeilleure/Decoders/OpCode32AluUx.cs b/ARMeilleure/Decoders/OpCode32AluUx.cs
new file mode 100644
index 00000000..55c10209
--- /dev/null
+++ b/ARMeilleure/Decoders/OpCode32AluUx.cs
@@ -0,0 +1,16 @@
+using ARMeilleure.State;
+
+namespace ARMeilleure.Decoders
+{
+ class OpCode32AluUx : OpCode32AluReg, IOpCode32AluUx
+ {
+ public int Rotate { get; private set; }
+ public int RotateBits => Rotate * 8;
+ public bool Add => Rn != RegisterAlias.Aarch32Pc;
+
+ public OpCode32AluUx(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
+ {
+ Rotate = (opCode >> 10) & 0x3;
+ }
+ }
+}