Expand description
See README.md for a description
Re-exports§
pub use instruction::Instruction::*;
Structs§
- Architecture
- Specifies the memory architecture of a virtual machine.
- Architecture
Builder - Bytecode
Display - Indented formatting for the fields of a raw u64 bytecode instruction.
- Code
Offset - Instruction
Fields - Memory
- The memory banks of an instance of a virtual machine.
- Operand
Fields - Virtual
Machine - A running instance of a virtual machine.
Enums§
- Instruction
- A single virtual machine instruction.
- Left
Double - Left
Integer - Mode
- Operand
- Right
Double - Right
Integer
Constants§
- LENGTH_
FLAGS - LENGTH_
OP_ CODE - LENGTH_
VALUE - OFFSET_
FLAGS - OFFSET_
IS_ ADDRESS - OFFSET_
IS_ INDIRECT - OFFSET_
IS_ STATE - OFFSET_
OPERAND_ 1 - OFFSET_
OPERAND_ 2 - OFFSET_
OPERAND_ 3 - OFFSET_
OP_ CODE
Functions§
- deserialize
- Convert from a raw u64 bytecode instruction to a type-safe and programmer friendly type.
- extract_
fields - Extract raw bit fields from a 64 bit instruction.
- serialize
- Convert from a type-safe and programmer friendly type to a raw u64 bytecode instruction.