Skip to content

m68k: Add support for MMU instructions #1917

Open
@huth

Description

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

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