Skip to content

Conversation

@d1g1t4l
Copy link
Contributor

@d1g1t4l d1g1t4l commented Nov 29, 2013

CS_MODE_MICRO and CS_MODE_N64 were defined as follows:

CS_MODE_THUMB = (1 << 4) # ARM's Thumb mode, including Thumb-2
CS_MODE_MICRO = (1 << 4), # MicroMips mode (MIPS architecture)
CS_MODE_N64 = (1 << 5), # Nintendo-64 mode (MIPS architecture)
CS_MODE_SYNTAX_ATT = (1 << 30) # X86 ATT asm syntax (for CS_ARCH_X86 only)

Note the comma at the end. With the comma Python defines them as tuples instead of integers and you get an exception when you pass them to the cs constructor.

@aquynh aquynh closed this Nov 30, 2013
@d1g1t4l d1g1t4l deleted the bad_disasm_modes branch January 20, 2014 11:09
adamjseitz pushed a commit to adamjseitz/capstone that referenced this pull request Apr 25, 2023
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 this pull request may close these issues.

2 participants