Expand description

Representation of the operand bytes

Structs

A key into a function’s constant table

A key into a function table

TODO

Integer literal small enough to fit into a single signed byte

An index into the bytecode array

Register with a known register number

Enums

Wildcard destination operand (register or global)

Wildcard source operand (register, global, immediate, or constant)

Constants

Bit offset for the destination byte

Bit offset for the first source byte

Bit offset for an instruction pointer (2 bytes)

Bit offset for the second source byte

Traits

Ability for a type to be the destination byte in an instruction

Ability for a type to be either of the source bytes in an instruction

Ability for a type to be created from an instruction destination

Ability for a type to be created from an instruction source

Types that can be used as a register