33 constexpr Block() noexcept = default;
46 return code == other.code &&
reg == other.reg &&
operand == other.operand &&
state == other.state;
52 return !(*
this == other);
Instruction enum class — all opcodes for the bytecode interpreter.
Instruction
CPU instruction opcodes for the simulated architecture.
std::int32_t state
Auxiliary state / flags.
constexpr bool operator!=(const Block &other) const noexcept
Inequality comparison.
std::uint8_t reg
Target/source register index.
constexpr bool operator==(const Block &other) const noexcept
Equality comparison.
Instruction code
Instruction opcode.
constexpr Block() noexcept=default
Default-constructs a Nop block.
std::int32_t operand
Immediate value or address.