wargio / libvle

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

Floating-Point instructions support #12

Closed arkup closed 5 years ago

arkup commented 5 years ago

Hi, would be great if you could implement floating-point instructions support..seems only IDA, objdump can disasm the FPU instructions e.g.

10 60 02 D1     efscfsi   r3, r0
13 a3 02 c9     efsdiv  r29,r3,r0

even the NSA baby (Ghidra 9.0.1) failed on this :(

wargio commented 5 years ago

https://www.nxp.com/docs/en/reference-manual/e200z760RM.pdf from page 171

wargio commented 5 years ago

Added with commit https://github.com/wargio/libvle/commit/a44abdd73b2ed567d1ec169fb124e8edb815cf2b

efscfh
efscfsf
efscfsi
efscfuf
efscfui
efscmpgt
efscmpeq
efscmplt
efsctsi
efsctsf
efsctsi
efsctsiz
efsctuf
efsctui
efsctuiz
efsdiv
efsmadd
efsmax
efsmin
efsmsub
efsmul
efsnabs
efsneg
efsnmadd
efsnmsub
efssqrt
efssub
efststeq
efststgt
efststlt
wargio commented 5 years ago

all vector maths are still missing

arkup commented 5 years ago

nice thx! I will test it tomorrow EDIT: seems to be working fine