From 64085b1c4ca048b78f43a3eafdc1f3fdf6bd696b Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 15 Mar 2020 13:19:41 -0700 Subject: clean up operands some --- src/armv7.rs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/armv7.rs b/src/armv7.rs index 4b8c608..3fe4df6 100644 --- a/src/armv7.rs +++ b/src/armv7.rs @@ -953,7 +953,6 @@ pub enum Operand { RegWBack(Reg, bool), RegList(u16), RegDeref(Reg), - RegDisp(Reg, i16), RegShift(RegShift), RegDerefPostindexRegShift(Reg, RegShift, bool, bool), // add/sub, wback RegDerefPreindexRegShift(Reg, RegShift, bool, bool), // add/sub, wback @@ -968,12 +967,12 @@ pub enum Operand { Coprocessor(u8), CoprocOption(u8), CReg(CReg), - APSR, - CPSR, - SPSR, BankedReg(Bank, Reg), BankedSPSR(Bank), StatusRegMask(StatusRegMask), + APSR, + SPSR, + CPSR, Nothing, } @@ -1022,9 +1021,6 @@ impl > Colorize { write!(f, "[{}]", reg_name_colorize(*reg, colors)) } - Operand::RegDisp(reg, imm) => { - write!(f, "[{} + {:#x}]", reg_name_colorize(*reg, colors), imm) - } Operand::RegShift(shift) => { format_shift(f, *shift, colors) } @@ -1085,9 +1081,9 @@ impl > Colorize { write!(f, "{}", mask) } - Operand::APSR => { write!(f, "apsr") }, - Operand::CPSR => { write!(f, "cpsr") }, - Operand::SPSR => { write!(f, "spsr") }, + Operand::APSR => write!(f, "apsr"), + Operand::SPSR => write!(f, "spsr"), + Operand::CPSR => write!(f, "cpsr"), Operand::Nothing => { panic!("tried to print Nothing operand") }, } } -- cgit v1.1