Skip to main content

hexicon_bytecode/
lib.rs

1//! T3 VM byte code: the instruction set, a decoder, and a disassembler.
2//!
3//! - [`Opcode`] defines every instruction and its operand layout.
4//! - [`decode`] reads one instruction.
5//! - [`disassemble`] reads a whole function from an image.
6//! - [`discover`] finds the functions in an image.
7//! - [`listing`] renders functions as text.
8
9mod decode;
10mod discover;
11mod function;
12pub mod listing;
13mod opcode;
14
15pub use decode::{DecodeError, Instruction, Operand, Payload, decode};
16pub use discover::{Functions, discover, discover_without_debug_info};
17pub use function::{
18    DisassembleError, ExceptionHandler, Extent, Function, MethodHeader, StrayBranch, disassemble,
19};
20pub use opcode::{Layout, Opcode, OperandKind};
21
22#[cfg(test)]
23mod tests;