pub enum DecodingState {
RootOpcode,
RootOperand,
RootDisplacement,
ExtendedOpcode,
ExtendedOperand,
IndexedOpcode,
IndexedDisplacement,
IndexedOperand,
BitwiseOpcode,
IndexedBitwiseDisplacement,
IndexedBitwiseOpcode,
}
Expand description
Represents a state in the decoding process, defined as a combination of the current opcode table, and the role of the next byte to decode. This corresponds to a decoding state that the decoder has yet to perform.
Variants§
RootOpcode
The initial decoding state. A root opcode must be decoded.
RootOperand
An operand must be decoded for a root instruction.
RootDisplacement
A displacement operand must be decoded for a root instruction.
ExtendedOpcode
An opcode must be decoded for an extended instruction.
ExtendedOperand
An operand must be decoded for an extended instruction.
IndexedOpcode
An opcode must be decoded for an indexed instruction.
IndexedDisplacement
A displacement operand must be decoded for an indexed instruction.
IndexedOperand
An operand must be decoded for an indexed instruction.
BitwiseOpcode
An opcode must be decoded for a bitwise instruction.
IndexedBitwiseDisplacement
A displacement operand must be decoded for an indexed bitwise instruction.
IndexedBitwiseOpcode
An opcode must be decoded for an indexed bitwise instruction.
Trait Implementations§
Source§impl Clone for DecodingState
impl Clone for DecodingState
Source§fn clone(&self) -> DecodingState
fn clone(&self) -> DecodingState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more