Function decode_instruction

Source
pub fn decode_instruction(
    encoded_instr: u128,
) -> Result<Instruction, VirtualMachineError>
Expand description

Decodes an instruction. The encoding is little endian, so flags go from bit 127 to 48. The bits 63 and beyond are reserved for the opcode extension. opcode_extension_num=0 means the instruction is a Stone instruction. opcode_extension_num>0 is for new Stwo opcodes.