Skip to content

capstone4: powerpc sign bug (works fine in cs5 but could be better) #1746

Closed
@trufae

Description

@trufae

I'm finally switching to capstone5 in r2, and i'm finding some differences in the analysis and disassemblies of some architectures.

-|       .-> 0x100012c8      3928febc       addi r9, r8, 0xfebc
+|       .-> 0x100012c8      3928febc       addi r9, r8, -0x144

I think that integer values should be disassembled as decimal and not hexadecimal. Also, this exposes a bug in the capstone4 disassembler for powerpc.

the 3rd argument is a signed 2 byte integer as specified in the cpu documentation: Specifies 16-bit signed integer for operation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PowerPCArchbugSomething is not working as it should

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions