diff options
author | iximeow <me@iximeow.net> | 2019-08-04 19:16:11 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-01-12 17:28:07 -0800 |
commit | c20df7acc8cb12db124ab1a819719fadc40227c3 (patch) | |
tree | 7e5aba88c0b4e1b43efcda26c243a2d2398c7bfd | |
parent | 120adb21db26779729c026b576739b1de82bc198 (diff) |
immediates are not shifted, what was this about?
-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 4a806f2..03d4b77 100644 --- a/src/armv7.rs +++ b/src/armv7.rs @@ -126,7 +126,7 @@ impl <T: std::fmt::Write> ShowContextual<u32, [Option<String>], T> for Instructi write!(out, " {}, {}", reg_name_colorize(a, colors), reg_name_colorize(b, colors))?; }, Operands::RegImm(a, imm) => { - write!(out, " {}, {:#x}", reg_name_colorize(a, colors), imm * 4)?; + write!(out, " {}, {:#x}", reg_name_colorize(a, colors), imm)?; }, Operands::RegRegList(r, list) => { write!(out, " {}, ", reg_name_colorize(r, colors))?; |