pub fn decode_and_get_instruction_index(&self, word: u32) -> Result<usize, ()> {
		for i in 0..INSTRUCTION_NUM {
			let inst = &INSTRUCTIONS[i];
			if (word & inst.mask) == inst.data {
				return Ok(i);
			}
		}
		return Err(());
	}
/// Decodes a word instruction data and returns an index of
/// [`INSTRUCTIONS`](constant.INSTRUCTIONS.html)
///
/// # Arguments
/// * `word` word instruction data decoded
Decodes a word instruction data and returns an index of
[`INSTRUCTIONS`](constant.INSTRUCTIONS.html)
Decodes a word instruction data and returns an index of [ ` INSTRUCTIONS ` ] ( constant . INSTRUCTIONS . html )
pub fn decode_and_get_instruction_index(&self, word: u32) -> Result<usize, ()> {
		for i in 0..INSTRUCTION_NUM {
			let inst = &INSTRUCTIONS[i];
			if (word & inst.mask) == inst.data {
				return Ok(i);
			}
		}
		return Err(());
	}
pub fn decode_and_get_instruction_index ( & self , word : u32 ) -> Result < usize , ( ) > { for i in 0 .. INSTRUCTION_NUM { let inst = & INSTRUCTIONS [ i ] ; if ( word & inst . mask ) == inst . data { return Ok ( i ) ; } } return Err ( ( ) ) ; }
Decodes a word instruction data and returns an index of
[`INSTRUCTIONS`](constant.INSTRUCTIONS.html)
Decodes a word instruction data and returns an index of [ ` INSTRUCTIONS ` ] ( constant . INSTRUCTIONS . html )
&self
word
u32