From 7fee2c5dafb84ee93ddb6a8f582e99d445c82677 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Tue, 14 Sep 2021 15:57:17 +0200 Subject: Fix display of post-index writeback operands --- src/armv7.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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(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) } } -- cgit v1.1