aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Decoders/OpCodeT32MemLdEx.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-08-25 06:59:34 -0300
committerGitHub <noreply@github.com>2022-08-25 09:59:34 +0000
commiteba682b767a60db51ff624ae48a3ca0124634705 (patch)
tree7b78dff774d67a41bb51bd42f661b7556a5d6b40 /ARMeilleure/Decoders/OpCodeT32MemLdEx.cs
parentb994dafe7aa8c49fe8de69b7b81401aaeeed8c59 (diff)
Implement some 32-bit Thumb instructions (#3614)1.1.229
* Implement some 32-bit Thumb instructions * Optimize OpCode32MemMult using PopCount
Diffstat (limited to 'ARMeilleure/Decoders/OpCodeT32MemLdEx.cs')
-rw-r--r--ARMeilleure/Decoders/OpCodeT32MemLdEx.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/ARMeilleure/Decoders/OpCodeT32MemLdEx.cs b/ARMeilleure/Decoders/OpCodeT32MemLdEx.cs
new file mode 100644
index 00000000..da565f61
--- /dev/null
+++ b/ARMeilleure/Decoders/OpCodeT32MemLdEx.cs
@@ -0,0 +1,24 @@
+namespace ARMeilleure.Decoders
+{
+ class OpCodeT32MemLdEx : OpCodeT32, IOpCode32MemEx
+ {
+ public int Rd => 0;
+ public int Rt { get; }
+ public int Rn { get; }
+
+ public bool WBack => false;
+ public bool IsLoad => true;
+ public bool Index => false;
+ public bool Add => false;
+
+ public int Immediate => 0;
+
+ public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeT32MemLdEx(inst, address, opCode);
+
+ public OpCodeT32MemLdEx(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
+ {
+ Rt = (opCode >> 12) & 0xf;
+ Rn = (opCode >> 16) & 0xf;
+ }
+ }
+}