Skip to content

For the problem of JIALC instruction parsing on MIPS 32 #1957

@winmin

Description

@winmin

Release 6 instructions JIALC and BNEZC differ only in the rs field, instruction bits 21-25. JIALC and BNEZC
occupy the same encoding as pre-Release 6 instruction encoding SDC2, which is recoded in Release 6

image

Link: MD00086-2B-MIPS32BIS-AFP-6.06.pdf

>>> from capstone import *
>>> md = Cs(CS_ARCH_MIPS, CS_MODE_32)
>>> CODE  = b'\x00\x00\x19\xf8'
>>> for i in md.disasm(CODE, 0x1000):
...     print("0x%x:\t%s\t%s" %(i.address, i.mnemonic, i.op_str))
0x1000:	sdc2	$25, ($zero)
>>>

The way capstone is handled is to use the definition before pre-release, should it be revised to the definition after release 6?

Metadata

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