aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Decoders/IOpCode32AluBf.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-09-10 22:51:00 -0300
committerGitHub <noreply@github.com>2022-09-10 22:51:00 -0300
commitf468db76028086a6645856383fecdf8180b04dd1 (patch)
treecb296f05888eae9fa04d386391525d37e9031192 /ARMeilleure/Decoders/IOpCode32AluBf.cs
parentc5f1d1749aeb4a1fff8f7552b949f652eaefe52a (diff)
Implement Thumb (32-bit) memory (ordered), multiply, extension and bitfield instructions (#3687)
* Implement Thumb (32-bit) memory (ordered), multiply and bitfield instructions * Remove public from interface * Fix T32 BL immediate and implement signed and unsigned extend instructions
Diffstat (limited to 'ARMeilleure/Decoders/IOpCode32AluBf.cs')
-rw-r--r--ARMeilleure/Decoders/IOpCode32AluBf.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/ARMeilleure/Decoders/IOpCode32AluBf.cs b/ARMeilleure/Decoders/IOpCode32AluBf.cs
index 18de3eb6..206c2965 100644
--- a/ARMeilleure/Decoders/IOpCode32AluBf.cs
+++ b/ARMeilleure/Decoders/IOpCode32AluBf.cs
@@ -7,5 +7,8 @@
int Msb { get; }
int Lsb { get; }
+
+ int SourceMask => (int)(0xFFFFFFFF >> (31 - Msb));
+ int DestMask => SourceMask & (int)(0xFFFFFFFF << Lsb);
}
}