mirror of
https://github.com/encounter/ppc750cl.git
synced 2025-08-10 14:19:09 +00:00
Merge pull request #41 from encounter/branch_offset
Ignore bcctr, bclr in branch_offset
This commit is contained in:
commit
2be94b3ced
@ -278,7 +278,7 @@ impl Ins {
|
|||||||
pub fn branch_offset(&self) -> Option<i32> {
|
pub fn branch_offset(&self) -> Option<i32> {
|
||||||
match self.op {
|
match self.op {
|
||||||
Opcode::B => Some(self.field_LI() as i32),
|
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,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user