Expand description
T3 VM byte code: the instruction set, a decoder, and a disassembler.
Opcodedefines every instruction and its operand layout.decodereads one instruction.disassemblereads a whole function from an image.discoverfinds the functions in an image.listingrenders functions as text.
Modules§
- listing
- Text listings of disassembled functions.
Structs§
- Exception
Handler - One entry of a function’s exception table.
- Function
- A disassembled function.
- Functions
- The functions found in an image.
- Instruction
- A decoded instruction.
- Method
Header - The fixed-size record at the start of every function.
- Stray
Branch - A branch that does not land on the start of an instruction.
Enums§
- Decode
Error - Why an instruction could not be decoded.
- Disassemble
Error - Why a function could not be disassembled.
- Extent
- How the end of a function’s code was established.
- Layout
- How an instruction’s operands are laid out.
- Opcode
- A T3 VM instruction.
- Operand
- A decoded operand.
- Operand
Kind - The kind and size of one fixed operand.
- Payload
- The variable-length part of the instructions that have one.
Functions§
- decode
- Decode the instruction at
offsetincode. - disassemble
- Disassemble the function at a code pool address.
- discover
- Find and disassemble every function reachable from an image’s roots.
- discover_
without_ debug_ info - Like
discover, but ignoring the function lists that debug builds carry, so the result is what would be found in a release build of the same program. Comparing the two measures how complete discovery is.