capstone-engine / capstone

Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, LoongArch, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.
http://www.capstone-engine.org
7.27k stars 1.53k forks source link

Capstone 4.0.1 package on PyPI does not include MOS65xx architecture #1387

Closed JarrettBillingsley closed 5 years ago

JarrettBillingsley commented 5 years ago

Sorry if this is the wrong place to report this; I'm not sure who's responsible for the package up on PyPI.

I did pip install capstone, and did this:

>>> import capstone
>>> [a for a in dir(capstone) if a.startswith('CS_ARCH')]
['CS_ARCH', 'CS_ARCH_ALL', 'CS_ARCH_ARM', 'CS_ARCH_ARM64', 'CS_ARCH_EVM', 'CS_ARCH_M680X', 'CS_ARCH_M68K', 'CS_ARCH_MAX', 'CS_ARCH_MIPS', 'CS_ARCH_PPC', 'CS_ARCH_SPARC', 'CS_ARCH_SYSZ', 'CS_ARCH_TMS320C64X', 'CS_ARCH_X86', 'CS_ARCH_XCORE']

It has all the architectures except CS_ARCH_MOS65XX.

I cloned this repo and built it from scratch, using python setup.py install instead, and it properly lists all the architectures.

aquynh commented 5 years ago

That is right: this arch is only available in v5. If you want it, get latest code from Github.

JarrettBillingsley commented 5 years ago

Oh! My bad. I didn't realize this was a feature for the next version.