[−][src]Trait olympia_core::instructions::EmbeddableParam
A value that can be embedded in an opcode
Required methods
fn extract(value: u8) -> Result<Self, ParseError>
Extracts the value from a given opcode. The value should be aligned to a byte for this method
fn embed(&self) -> u8
Returns a value to be embedded in an opcode.
Provided methods
fn extract_from_opcode(
opcode: u8,
pos: OpcodePosition
) -> Result<Self, ParseError>
opcode: u8,
pos: OpcodePosition
) -> Result<Self, ParseError>
Extracts a value from the given opcode.
fn embed_to_opcode(&self, opcode: u8, pos: OpcodePosition) -> u8
Embeds a value in the given opcode