Trait alure::InstructionSet[][src]

pub trait InstructionSet: Bytecode + Display + Debug {
    fn exec(self, regs: &mut Registers, site: LibSite) -> ExecStep;
}
Expand description

Trait for instructions

Required methods

Executes given instruction taking all registers as input and output. The method is provided with the current code position which may be used by the instruction for constructing call stack.

Returns whether further execution should be stopped.

Implementors