microprobe.utils.bin
microprobe.utils.bin definition module
This module implements the required features to interpret instructions in binary codification and translate them into Microprobe internal represenation of instruction, operands, labels and addreses.
The main elements of this module are the following:
MicroprobeBinInstructionStreamobjects to represent a binary stream of codified instructionsinterpret_bin()function validates the binary codification and translates them into internal Microprobe represenation of instructions and operands.
Functions
|
Return the list of |
Classes
|
Classes diagram

Functions
- interpret_bin(code, target, fmt='hex', safe=None, single=False, little_endian=None, word_length=None)[source]
Return the list of
MicroprobeInstructionDefinitionobjects that results from interpreting the code (a binary stream). The target object is used to validate the existence of the instruction and operands in the target.- Parameters:
- Returns:
A list of instructions, operands, labels, etc. resulting from interpreting the assembly
- Return type:
- Raises:
microprobe.exceptions.MicroprobeBinaryError – if something is wrong during the interpretation