diff options
author | iximeow <me@iximeow.net> | 2019-08-04 19:12:25 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-01-12 17:28:07 -0800 |
commit | 8b9d5f9c6003864870dccfe2c0f71729d4b99564 (patch) | |
tree | f1f12477081ec1da085ca0a931f7e4422e22f542 /src | |
parent | dc9366f430874c25e4e44e2a365efea5fcc43382 (diff) |
fix issue with incorrectly decoding register shifts
Diffstat (limited to 'src')
-rw-r--r-- | src/armv7.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/armv7.rs b/src/armv7.rs index 52061c7..a5467e5 100644 --- a/src/armv7.rs +++ b/src/armv7.rs @@ -487,7 +487,7 @@ fn format_shift<T: std::fmt::Write>(f: &mut T, Rm: u8, shift: ShiftSpec, colors: }, ShiftSpec::Register(v) => { let tpe = v & 0x3; - let Rs = v >> 2; + let Rs = v >> 3; write!(f, "{}, {} {}", reg_name_colorize(Rm, colors), shift_tpe_to_str(tpe), reg_name_colorize(Rs, colors)) }, } |