aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Decoders/OpCode32Mrs.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-08-05 14:03:50 -0300
committerGitHub <noreply@github.com>2022-08-05 19:03:50 +0200
commit2bb9b33da1f872dc7e52b92c9f282e3d971d2cdf (patch)
tree26d3c24e83d9ad466d5ad343a0305ae7be63d5a4 /ARMeilleure/Decoders/OpCode32Mrs.cs
parent1080f64df9abd7af7ed762668e4fc9a300ae30f2 (diff)
Implement Arm32 Sha256 and MRS Rd, CPSR instructions (#3544)1.1.208
* Implement Arm32 Sha256 and MRS Rd, CPSR instructions * Add tests using Arm64 outputs
Diffstat (limited to 'ARMeilleure/Decoders/OpCode32Mrs.cs')
-rw-r--r--ARMeilleure/Decoders/OpCode32Mrs.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/ARMeilleure/Decoders/OpCode32Mrs.cs b/ARMeilleure/Decoders/OpCode32Mrs.cs
new file mode 100644
index 00000000..c34a8b99
--- /dev/null
+++ b/ARMeilleure/Decoders/OpCode32Mrs.cs
@@ -0,0 +1,16 @@
+namespace ARMeilleure.Decoders
+{
+ class OpCode32Mrs : OpCode32
+ {
+ public bool R { get; }
+ public int Rd { get; }
+
+ public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCode32Mrs(inst, address, opCode);
+
+ public OpCode32Mrs(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
+ {
+ R = ((opCode >> 22) & 1) != 0;
+ Rd = (opCode >> 12) & 0xf;
+ }
+ }
+}