wargio / libvle

PowerPC VLE disassembler library
GNU Lesser General Public License v3.0
5 stars 5 forks source link

Incorrect disassembly #5

Closed arkup closed 5 years ago

arkup commented 5 years ago

thanks for this lib. I started playing with ppc32 arch and I noticed incorrect disassembly of instruction:

7A 20 FF F8                   e_bgectr cr0 0xfffffff8

seems it should be e_bdnz at least that's what IDA prints (other tools like Ghidra failed to disasm this instr)

7A 20 FF F8                 e_bdnz    loc_4028E
wargio commented 5 years ago

oh. i'll check via objdump

wargio commented 5 years ago

image Mask: 0x7A20FFFE

wargio commented 5 years ago

IDA is correct. i'll patch it asap

wargio commented 5 years ago

fixed in https://github.com/wargio/libvle/commit/4d888ffbe7d0a8add0fb0ff528fea92529b8a8b0