Example #1
0
 public PrimaryInstruction(EnumInstructionType instructionType, string datatype)
 {
     this.type                = instructionType;
     this.datatype            = datatype;
     this.variableSources     = new string[2];
     this.variableDestination = null;
 }
Example #2
0
 public static bool doesInstructionNeedImmediate2(EnumInstructionType instructionType)
 {
     return(instructionType == EnumInstructionType.SHUFFLE_FLOATVECTOR4);
 }
Example #3
0
        public int immediate2; // always a immediate

        public static bool doesInstructionNeedExtendedImmediate(EnumInstructionType instructionType)
        {
            return
                (instructionType == EnumInstructionType.ADD_INTCONST ||
                 instructionType == EnumInstructionType.SUB_INTCONST);
        }
Example #4
0
 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;
 }