|Home > Iris APIs > Disassembly API > Disassembling chunks of memory|
disassembler_getDisassembly() function to disassemble a chunk of memory.
This function returns lines of disassembled instructions. The number of lines that are returned is specified by the
count argument. The amount of memory that a chunk represents depends on the encoding of the instruction set being disassembled. The address of the next instruction following a disassembled chunk is given by the
address field of the last
DisassemblyLine element of the result value. This function returns
count lines, unless an error occurred.
This function can return the following errors:
addressis out of the range
maxAddrfor the memory space, it returns
maxAddr, which is the end of the memory space, no error is returned. In this case, fewer disassembly lines than requested are returned.
DisassemblyLinemust be empty and the disassembly string must have the format
describes the error that occurred. Disassembly must continue by increasing the address by one unit of the alignment constraint until
countelements are returned.