From 0ae0d68af91ab16e911c7b877a3ffd54154bedb9 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 4 Aug 2019 19:16:11 -0700 Subject: immediates are not shifted, what was this about? --- src/armv7.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ShowContextual], 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))?; -- cgit v1.1