Skip to content

[PPC] bne misses target address #1914

Closed
@Rot127

Description

@Rot127

The PPC instruction bne misses the target (relative) address in the asm text and and as operand.

The ISA manual (v3.1B) syntax is bne crX, target

Capstone gives:

./cstool -d ppc64 00009640 0x1a4
1a4  00 00 96 40  bne	cr5
	ID: 128 (bne)
	op_count: 1
		operands[0].type: REG = cr5
		# Immediate missing
	Branch code: 68
	Groups: jump 

Branch used: next

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions