Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknow opcodes for MIPS32 BE #1054

Closed
GH0st3rs opened this issue Nov 22, 2017 · 1 comment · Fixed by #2410
Closed

Unknow opcodes for MIPS32 BE #1054

GH0st3rs opened this issue Nov 22, 2017 · 1 comment · Fixed by #2410

Comments

@GH0st3rs
Copy link

What am I doing wrong?

>>> from capstone import *

>>> md = Cs(CS_ARCH_MIPS, CS_MODE_MIPS32|CS_MODE_BIG_ENDIAN)
>>> next(md.disasm(b'\x01\x20\x10\x2d', 0x100))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
StopIteration

But if I use rasm2:

$ rasm2 -a mips -e -d '0120102d'
move v0, t1

Unknow opcodes:
0120102d -> move v0, t1
0080e82d -> move sp, a0
40ab5000 -> dmtc0 t3, $10
00a0402d -> move t0, a1
0080502d -> move t2, a0
01a0702d -> move t6, t5
40ac1000 -> dmtc0 t4, $2
...
and etc.

@andrewcalvano
Copy link
Contributor

I ran into this as well. Additionally, it looks like llvm-mc in the latest llvm release fails to disassemble these instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants