diff options
author | Jonas Schievink <jonasschievink@gmail.com> | 2021-09-14 15:57:17 +0200 |
---|---|---|
committer | iximeow <git@iximeow.net> | 2021-09-14 20:01:22 -0700 |
commit | 7fee2c5dafb84ee93ddb6a8f582e99d445c82677 (patch) | |
tree | cfcf6e14afafb64ea3816be717370e217d4ae1bf /src/armv7.rs | |
parent | 3552a2d8df03f9214a351ad7901281c76ef503bf (diff) |
Fix display of post-index writeback operands
Diffstat (limited to 'src/armv7.rs')
-rw-r--r-- | src/armv7.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/armv7.rs b/src/armv7.rs index 60c09d0..64c9a4d 100644 --- a/src/armv7.rs +++ b/src/armv7.rs @@ -1728,10 +1728,7 @@ fn format_reg_imm_mem<T: fmt::Write, Y: YaxColors>(f: &mut T, Rn: Reg, imm: u16, (true, false) => { write!(f, "[{}, {}{:#x}]", reg_name_colorize(Rn, colors), op, imm) }, - (false, true) => { - unreachable!("I don't know how to render an operand with postindex and wback==true, this seems like it should be LDRT"); - }, - (false, false) => { + (false, _) => { write!(f, "[{}], {}{:#x}", reg_name_colorize(Rn, colors), op, imm) } } |