diff options
author | iximeow <me@iximeow.net> | 2020-05-03 14:04:43 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-05-03 14:04:43 -0700 |
commit | 15fd1cc36a78f0b770668dc10700987254a5e500 (patch) | |
tree | 6adaa9e6c28b80a851623ddb6fe61ebf3c6cb25b /src/lib.rs | |
parent | 255016c6b36eae40b92e5abd717f87e6a97ff46b (diff) |
version bump, bumping yaxpeax-arch to 0.0.40.0.5
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -8,7 +8,7 @@ extern crate serde; extern crate yaxpeax_arch; extern crate termion; -use yaxpeax_arch::{Arch, Decoder, LengthedInstruction}; +use yaxpeax_arch::{Arch, AddressDiff, Decoder, LengthedInstruction}; mod display; pub use display::NoContext; @@ -52,9 +52,9 @@ impl Default for Instruction { } impl LengthedInstruction for Instruction { - type Unit = <MSP430 as Arch>::Address; + type Unit = AddressDiff<<MSP430 as Arch>::Address>; fn min_size() -> Self::Unit { - 2 + AddressDiff::from_const(2) } fn len(&self) -> Self::Unit { let mut size = 2; @@ -72,7 +72,7 @@ impl LengthedInstruction for Instruction { Operand::Absolute(_) => { size += 2; }, _ => {} }; - size + AddressDiff::from_const(size) } } |