code snippet for getMachineInstruction method