crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianInstructionLib/Arm/Instructions/Thumb/DataTransfer/Bases/Thumb_LoadOrStore_Immediate8.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 SymbianUtils.BasicTypes;
       
    21 using SymbianStructuresLib.Arm.Registers;
       
    22 using SymbianInstructionLib.Arm.Instructions.Common;
       
    23 
       
    24 namespace SymbianInstructionLib.Arm.Instructions.Thumb.DataTransfer
       
    25 {
       
    26     public abstract class Thumb_LoadOrStore_Immediate8 : Thumb_LoadOrStore
       
    27     {
       
    28         #region Constructors
       
    29         protected Thumb_LoadOrStore_Immediate8()
       
    30         {
       
    31         }
       
    32         #endregion
       
    33 
       
    34         #region Framework API
       
    35         public override TArmRegisterType Rd
       
    36         {
       
    37             get
       
    38             {
       
    39                 TArmRegisterType ret = (TArmRegisterType) KMaskRd.Apply( base.AIRawValue );
       
    40                 return ret;
       
    41             }
       
    42         }
       
    43         #endregion
       
    44 
       
    45         #region Properties
       
    46         public uint Immediate
       
    47         {
       
    48             get
       
    49             {
       
    50                 uint ret = base.AIRawValue & 0xFF;
       
    51                 ret *= 4;
       
    52                 return ret;
       
    53             }
       
    54         }
       
    55         #endregion
       
    56 
       
    57         #region Internal methods
       
    58         #endregion
       
    59 
       
    60         #region Data members
       
    61         private static readonly SymMask KMaskRd = new SymMask( 0x700, SymMask.TShiftDirection.ERight, 8 );
       
    62         #endregion
       
    63     }
       
    64 }
       
    65