@@ 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");
}