MIPS instruction decoder
Maintained. Last release 6 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install rabbitizerrabbitizer
MIPS instruction decoder API.
Features
- Should produce matching assembly.
- Fully written in C for fast decoding.
- The library is completely allocation-less, in other words
rabbitizerdoesn't allocate in anything in the heap by itself.
- The library is completely allocation-less, in other words
- Other language bindings supported in this repo:
- Python bindings
- The minimal Python version is 3.9, older versions are not guaranteed to work.
- C++ bindings
- Rust bindings
- Python bindings
- Simple per-word instruction decoding.
- The library doesn't try to be too smart by processing multiple instructions at a time.
- Can perform validation checks for instructions.
- Provides many examination/grouping functions for instructions, allowing to simplify checking characteristics of an instruction and minimizing the need to check for specific instructions in a hardcoded way.
- Includes some minor tools to build your own pointer/symbol detection.
- Configurable, many features can be turned on and off.
- MIPS instructions features:
- Configurable behavior for the
jalrinstruction, allowing to disassemble that instruction using an implicit or explicitrdregister depending if that register is$raor not. - Named registers for MIPS VR4300's coprocessors.
- Support for many pseudo-instructions.
- Properly handle move to/from coprocessor instructions.
- Support for numeric, o32, n32 and n64 ABI register names.
- Configurable behavior for the
- Some workarounds for some specific compilers/assemblers:
SN64:div/divufix: tweaks a bit the produced , and instructions.