Skip to main content

Crate hexicon_vm

Crate hexicon_vm 

Source
Expand description

The Hexicon virtual machine.

This crate runs the games Hexicon builds (.hxg files). Their layout and instruction set are the T3 VM’s, and it follows the T3 VM specification, and where that is silent, the behavior of the reference interpreter.

The VM does no input or output of its own. Everything it needs from the outside world comes through a hexicon_host::Host.

Modules§

code
Error numbers and their messages.
identity
How the VM identifies itself to the programs it runs.

Structs§

ObjId
An object ID: an index into the VM’s object table.
RebuiltImage
An image, as the rewriter writes it.
RuntimeError
An error raised by the VM itself, as opposed to an exception object a program throws.
Vm
The virtual machine with a program loaded.

Enums§

ErrParam
A value substituted into an error message.
RunState
Where a program stands after it has run for a while.
Value
A value, as the virtual machine holds one.
VmError
Why execution stopped.

Functions§

decode_text
Text in a named character set, as a string; None if the name is not one of a character set that is known. A byte that the set has no character for becomes U+FFFD.

Type Aliases§

PropId
A property ID.
VmResult
The result of an operation that can raise a VM error.