diff options
author | iximeow <me@iximeow.net> | 2020-02-03 01:21:54 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-02-03 01:21:54 -0800 |
commit | cf3496a61275af18ebb23558eba984a5ec257c57 (patch) | |
tree | 48f5fdbb7c65c5565c03300a55aa3eaeadf70f35 | |
parent | 6bd76cc79d8377596c56a425fa59e23b0457eac4 (diff) |
no more discarded operands0.0.1
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -411,13 +411,19 @@ impl fmt::Display for Operand { write!(f, "[$+{}]", *offset) } } + Operand::AbsoluteBit(addr) => { + write!(f, "[#{:x}h]", addr) + } + // `Absolute` can be a 20-bit address, so `addr` here is u32 rathere than u16 above. Operand::Absolute(addr) => { write!(f, "[#{:x}h]", addr) } Operand::JmpAbsolute(addr) => { write!(f, "#{:x}h", addr) } - _ => Ok(()) + Operand::RegisterBit(reg, bit) => { + write!(f, "{},{}", bit, reg) + } } } } |