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

        public static bool doesInstructionNeedExtendedImmediate(EnumInstructionType instructionType)
        {
            return
                (instructionType == EnumInstructionType.ADD_INTCONST ||
                 instructionType == EnumInstructionType.SUB_INTCONST);
        }
コード例 #4
0
 public X86Instruction(EnumInstructionType type = default(EnumInstructionType))
 {
     this.type = type;
 }
コード例 #5
0
 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;
 }