capstone icon indicating copy to clipboard operation
capstone copied to clipboard

[PPC] `bne` misses target address

Open Rot127 opened this issue 3 years ago • 0 comments

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

Rot127 avatar Aug 22 '22 17:08 Rot127