~nabijaczleweli/yaxpeax-superh

6ae35f2bf775252e254141be09d1d9c72893c811 — наб 16 days ago 57bd929
Some more displays
1 files changed, 3 insertions(+), 1 deletions(-)

M tests/bare/mod.rs
M tests/bare/mod.rs => tests/bare/mod.rs +3 -1
@@ 1,6 1,6 @@
extern crate yaxpeax_superh;

use yaxpeax_superh::{SuperHInstruction, SuperHRegister};
use yaxpeax_superh::{SuperHFloatRegister, SuperHInstruction, SuperHRegister, Displacement8};


#[test]


@@ 18,6 18,8 @@ fn round_trip() {
#[test]
fn display() {
    assert_eq!(format!("{}", SuperHInstruction::MovImm(0x69, SuperHRegister::R4)), "MOV #105,R4"); // Agrees with objdump
    assert_eq!(format!("{}", SuperHInstruction::Bf(Displacement8(0xFD))), "BF 253");
    assert_eq!(format!("{}", SuperHInstruction::FMovAtIndexedRegisterS(SuperHRegister::R2, SuperHFloatRegister::Fr3)), "FMOV.S @(R0,R2),FR3");
}