aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-08-04 19:16:11 -0700
committeriximeow <me@iximeow.net>2020-01-12 17:28:07 -0800
commit0ae0d68af91ab16e911c7b877a3ffd54154bedb9 (patch)
tree58075222ba919ba330dc153a72220291e081787f /src
parentbe97f60c41ff46e8b7a894cf5faf67109c3d4288 (diff)
immediates are not shifted, what was this about?
Diffstat (limited to 'src')
-rw-r--r--src/armv7.rs2
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))?;