capstone
capstone copied to clipboard
m68k: Add support for MMU instructions
Seems like Capstone is not able to disassemble the MMU instructions like the PMOVE of the 68030 yet. With another disassembler, I get the correct result:
$00e0006a : f039 4000 00e4 9430 pmove $e49430,tc
$00e00072 : f039 0800 00e4 9430 pmove $e49430,tt0
$00e0007a : f039 0c00 00e4 9430 pmove $e49430,tt1
But Capstone misinterprets them as FPU instructions:
$00e0006a : f039 4000 00e4 9430 fmove.l $e49430.l,fp0
$00e00072 : f039 0800 fmove fp2,fp0
$00e00076 : 00e4 dc.w $00e4 ; unknown opcode
$00e00078 : 9430 f039 sub.b $39(a0,a7.w),d2
Additionally, the MMU instructions of the 68040 (which are completely different from the 68030) also do not seem to work yet, e.g. a PFLUSHA does not get disassembled right:
$ cstool m68k40 0xf518
0 f5 18 dc.w $f518