Skip to content

fixed bad disasm modes#18

Closed
d1g1t4l wants to merge 11 commits intocapstone-engine:masterfrom
d1g1t4l:bad_disasm_modes
Closed

fixed bad disasm modes#18
d1g1t4l wants to merge 11 commits intocapstone-engine:masterfrom
d1g1t4l:bad_disasm_modes

Conversation

@d1g1t4l
Copy link
Copy Markdown
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
Syntactix31 added a commit to Syntactix31/capstone that referenced this pull request Mar 4, 2026
…g-Branch

Major changes to landing, contact, projects, and about pages -more in…
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