aboutsummaryrefslogtreecommitdiff
path: root/src/armv7.rs
diff options
context:
space:
mode:
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 })