Crate watchmaker_vm

Source
Expand description

See README.md for a description

Re-exports§

pub use instruction::Instruction::*;

Structs§

Architecture
Specifies the memory architecture of a virtual machine.
ArchitectureBuilder
BytecodeDisplay
Indented formatting for the fields of a raw u64 bytecode instruction.
CodeOffset
InstructionFields
Memory
The memory banks of an instance of a virtual machine.
OperandFields
VirtualMachine
A running instance of a virtual machine.

Enums§

Instruction
A single virtual machine instruction.
LeftDouble
LeftInteger
Mode
Operand
RightDouble
RightInteger

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.