aboutsummaryrefslogtreecommitdiff
path: root/src/armv7.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-12-06 02:47:15 -0800
committeriximeow <me@iximeow.net>2020-12-06 11:58:57 -0800
commit0a9479ddaa4d83957e06f56d3990d2b7d666baaa (patch)
tree48b85a629da3c13f25cf6844628f5f0c85c52bb0 /src/armv7.rs
parentc2874f05ab0f92bbcc4c5129dbec14157af32c56 (diff)
fix regimm masks
Diffstat (limited to 'src/armv7.rs')
-rw-r--r--src/armv7.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/armv7.rs b/src/armv7.rs
index aa7aa03..c7fb6e4 100644
--- a/src/armv7.rs
+++ b/src/armv7.rs
@@ -860,8 +860,7 @@ pub struct RegShift {
impl RegShift {
fn into_shift(&self) -> RegShiftStyle {
- // TODO: is this mask really off by one. should it be 0b10000??
- if self.data & 0b1000 == 0 {
+ if self.data & 0b10000 == 0 {
RegShiftStyle::RegImm(RegImmShift { data: self.data })
} else {
RegShiftStyle::RegReg(RegRegShift { data: self.data })