From 94c87b0912d0efe11073296fc928342b0b2786d2 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Tue, 27 Sep 2022 17:50:59 -0400 Subject: [PATCH] Ignore bcctr, bclr in branch_offset --- disasm/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disasm/src/lib.rs b/disasm/src/lib.rs index 856978b..1fd538b 100644 --- a/disasm/src/lib.rs +++ b/disasm/src/lib.rs @@ -278,7 +278,7 @@ impl Ins { pub fn branch_offset(&self) -> Option { match self.op { Opcode::B => Some(self.field_LI() as i32), - Opcode::Bc | Opcode::Bcctr | Opcode::Bclr => Some(self.field_BD() as i32), + Opcode::Bc => Some(self.field_BD() as i32), _ => None, } }