public PrimaryInstruction(EnumInstructionType instructionType, string datatype) { this.type = instructionType; this.datatype = datatype; this.variableSources = new string[2]; this.variableDestination = null; }
public static bool doesInstructionNeedImmediate2(EnumInstructionType instructionType) { return(instructionType == EnumInstructionType.SHUFFLE_FLOATVECTOR4); }
public int immediate2; // always a immediate public static bool doesInstructionNeedExtendedImmediate(EnumInstructionType instructionType) { return (instructionType == EnumInstructionType.ADD_INTCONST || instructionType == EnumInstructionType.SUB_INTCONST); }
public X86Instruction(EnumInstructionType type = default(EnumInstructionType)) { this.type = type; }
public bool Send(int deviceId, EnumInstructionType instructionType = EnumInstructionType.BreakOilOrPower) { try { if (_isConnect && !_cts.IsCancellationRequested) { _producer.Send(new ActiveMQObjectMessage() { Body = new EInstruction() { DeviceId = deviceId, InstructionType = instructionType } }, MsgDeliveryMode.NonPersistent, MsgPriority.Normal, TimeSpan.MinValue); return true; } } catch (Exception ex) { _logger.Error(ex); _isConnect = false; } return false; }