NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
50.43k stars 5.77k forks source link

RH850/E1M-S2 file will not disassemble properly #6750

Open mmcflash opened 1 month ago

mmcflash commented 1 month ago

I am using the v850 language. Most of the file disassembles correctly. There are some instructions that do not disassemble. See the attached code below

        00002526 63 47 11 00   st.w         r8,0x10[sp]
        0000252a 80 07 21 00   prepare      { lp },0x0
        0000252e e2            ??           E2h
        0000252f 6f            ??           6Fh    o
        00002530 20 10         not          r0,r2
        00002532 00 12         mov          0x0,r2
        00002534 e2            ??           E2h
        00002535 57            ??           57h    W
        00002536 20 10         not          r0,r2
        00002538 e2            ??           E2h
        00002539 6f            ??           6Fh    o
        0000253a 20 10         not          r0,r2
        0000253c 20 16 bf ff   movea        -0x41,r0,r2
mmcflash commented 1 month ago

and more

        00002772 e0 07 60 01   di
        00002776 25 06 00 02   mov          0x100200,tp
                 10 00
        0000277c e5            ??           E5h
        0000277d 1f            ??           1Fh
        0000277e 20 08         not          r0,r1
        00002780 25 06 00 04   mov          0x100400,tp
                 10 00
        00002786 e5            ??           E5h
        00002787 27            ??           27h    

                             LAB_000027c6                                              000027c0(j)  
        000027c6 41 06 20 00   dispose      0x0,{ ep,lp }
        000027ca bf 07 48 e4   jr           FUN_00000c12                                                              undefined FUN_00000c12()
                           -- Flow Override: CALL_RETURN (CALL_TERMINATOR)
        000027ce e5            ??           E5h
        000027cf 17            ??           17h
        000027d0 40 00         rie
        000027d2 e0 07 60 01   di
        000027d6 25 06 00 02   mov          0x100200,tp
                 10 00