crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianInstructionLib/Arm/Instructions/Arm/ArmInstruction.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 * 
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 using System;
       
    18 using System.Collections.Generic;
       
    19 using System.Text;
       
    20 using System.IO;
       
    21 using SymbianUtils.BasicTypes;
       
    22 using SymbianStructuresLib.Arm;
       
    23 using SymbianStructuresLib.Arm.Instructions;
       
    24 using SymbianInstructionLib.Arm.Instructions.Common;
       
    25 
       
    26 namespace SymbianInstructionLib.Arm.Instructions.Arm
       
    27 {
       
    28     public abstract class ArmInstruction : ArmBaseInstruction
       
    29     {
       
    30         #region Constructors
       
    31         protected ArmInstruction()
       
    32             : base( TArmInstructionSet.EARM )
       
    33         {
       
    34         }
       
    35         #endregion
       
    36 
       
    37         #region API
       
    38         public SymBit IBit
       
    39         {
       
    40             get { return this[ ArmInstruction.KBitIndexI ]; }
       
    41         }
       
    42 
       
    43         public SymBit PBit
       
    44         {
       
    45             get { return this[ ArmInstruction.KBitIndexP ]; }
       
    46         }
       
    47 
       
    48         public SymBit UBit
       
    49         {
       
    50             get { return this[ ArmInstruction.KBitIndexU ]; }
       
    51         }
       
    52 
       
    53         public SymBit SBit
       
    54         {
       
    55             get { return this[ ArmInstruction.KBitIndexS ]; }
       
    56         }
       
    57 
       
    58         public SymBit WBit
       
    59         {
       
    60             get { return this[ ArmInstruction.KBitIndexW ]; }
       
    61         }
       
    62 
       
    63         public SymBit LBit
       
    64         {
       
    65             get { return this[ ArmInstruction.KBitIndexL ]; }
       
    66         }
       
    67         #endregion
       
    68 
       
    69         #region From ArmBaseInstruction
       
    70         protected override void OnRawValueAssigned()
       
    71         {
       
    72             base.OnRawValueAssigned();
       
    73             base.AIConditionCode = (TArmInstructionCondition) KMask_Condition.Apply( base.AIRawValue );
       
    74         }
       
    75         #endregion
       
    76 
       
    77         #region Constants
       
    78         // Type-specific
       
    79         public const int KBitIndexI = 25;
       
    80 
       
    81         // Common
       
    82         public const int KBitIndexP = 24;
       
    83         public const int KBitIndexU = 23;
       
    84         public const int KBitIndexS = 22;
       
    85         public const int KBitIndexW = 21;
       
    86         public const int KBitIndexL = 20;
       
    87 
       
    88         // VFP specific
       
    89         public const int KVFPBitIndexD = 22;
       
    90         #endregion
       
    91 
       
    92         #region Internal constants
       
    93         private static readonly SymMask KMask_Condition = new SymMask( 15u << 28, SymMask.TShiftDirection.ERight, 28 );
       
    94         #endregion
       
    95 
       
    96         #region From System.Object
       
    97         #endregion
       
    98 
       
    99         #region Data members
       
   100         #endregion
       
   101     }
       
   102 }
       
   103