[][src]Trait olympia_core::instructions::InstructionOpcode

pub trait InstructionOpcode {
    type FullInstruction: Instruction;
    fn definition() -> &'static InstructionDefinition
    where
        Self: Sized
;
fn from_opcode(opcode: u8) -> Self
    where
        Self: Sized
;
fn build_instruction(
        &self,
        data: &mut dyn Iterator<Item = u8>
    ) -> Self::FullInstruction; }

An instruction with embedded opcode parameters included, but not those parameters that are in subsequent instructions

Associated Types

Loading content...

Required methods

fn definition() -> &'static InstructionDefinition where
    Self: Sized

fn from_opcode(opcode: u8) -> Self where
    Self: Sized

fn build_instruction(
    &self,
    data: &mut dyn Iterator<Item = u8>
) -> Self::FullInstruction

Loading content...

Implementors

Loading content...