diff options
author | iximeow <me@iximeow.net> | 2021-12-29 01:58:05 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-12-29 01:58:05 -0800 |
commit | 9967fba9f8f8449626692e336ff4d44823f036fc (patch) | |
tree | d8f1694590fa288f5a577b19b4a8b1fe448b9e65 | |
parent | 8b77b3cf4ee5be247663353bd75fd3abd495acf7 (diff) |
write immediates in arm-style
-rw-r--r-- | src/armv8/a64.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs index 27bc173..9d94c1a 100644 --- a/src/armv8/a64.rs +++ b/src/armv8/a64.rs @@ -2305,24 +2305,24 @@ impl Display for Operand { } } Operand::Immediate(i) => { - write!(fmt, "{:#x}", i) + write!(fmt, "#{:x}", i) }, Operand::ImmediateDouble(d) => { write!(fmt, "{:}", d) }, Operand::Imm16(i) => { - write!(fmt, "{:#x}", *i) + write!(fmt, "#{:x}", *i) }, Operand::Imm64(i) => { - write!(fmt, "{:#x}", *i) + write!(fmt, "#{:x}", *i) }, Operand::ImmShift(i, shift) => { match shift { 0 => { - write!(fmt, "{:#x}", i) + write!(fmt, "#{:x}", i) }, _ => { - write!(fmt, "{:#x}, lsl {}", i, shift) + write!(fmt, "#{:x}, lsl {}", i, shift) } } }, |