crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianInstructionLib/Arm/Instructions/Thumb/DataProcessing/Thumb_Add_2Regs_High.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 SymbianStructuresLib.Arm.Instructions;
       
    23 using SymbianInstructionLib.Arm.Instructions.Common;
       
    24 
       
    25 namespace SymbianInstructionLib.Arm.Instructions.Thumb.DataProcessing
       
    26 {
       
    27     [ArmRef( "A7.1.6 ADD (4)", "ADD <Rd>, <Rm>" )]
       
    28     public class Thumb_Add_2Regs_High : Thumb_AddOrSubtract_2Regs
       
    29     {
       
    30         #region Constructors
       
    31         public Thumb_Add_2Regs_High()
       
    32         {
       
    33             //                          H1    H2    Rm      Rd
       
    34             base.SetMask( "01000100" + "#" + "#" + "###" + "###" );
       
    35         }
       
    36         #endregion
       
    37 
       
    38         #region From Thumb_AddOrSubtract
       
    39         public override TArmRegisterType Rd
       
    40         {
       
    41             get
       
    42             {
       
    43                 byte reg = base.RdByte;
       
    44                 byte h1 = (byte) base.AIRawValue[ 7 ];
       
    45                 h1 <<= 3;
       
    46                 reg |= h1;
       
    47                 return (TArmRegisterType) reg;
       
    48             }
       
    49         }
       
    50 
       
    51         public override TArmDataProcessingType OperationType
       
    52         {
       
    53             get { return TArmDataProcessingType.ADD; }
       
    54         }
       
    55         #endregion
       
    56 
       
    57         #region Properties
       
    58         public TArmRegisterType Rm
       
    59         {
       
    60             get
       
    61             {
       
    62                 byte reg = base.RdByte;
       
    63                 byte h2 = (byte) base.AIRawValue[ 6 ];
       
    64                 h2 <<= 3;
       
    65                 reg |= h2;
       
    66                 return (TArmRegisterType) reg;
       
    67             }
       
    68         }
       
    69         #endregion
       
    70 
       
    71         #region Internal methods
       
    72         #endregion
       
    73 
       
    74         #region Data members
       
    75         #endregion
       
    76     }
       
    77 }
       
    78