Function msp430_asm::decode

source ·
pub fn decode(data: &[u8]) -> Result<Instruction>
Expand description

Decodes the next instruction represented in the slice passed to it. This will only decode a single instruction. To use this correctly to decode a series of instructions, you keep track of the number of the size of the last decoded instruction to remove those bytes from the input to correctly decode the next due to the fact that instructions are not fixed width and maybe 2, 4 or 6 bytes