crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianInstructionLib/Arm/Instructions/Arm/Branching/Bases/Arm_Branch_Register.cs
equal
deleted
inserted
replaced
|
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 SymbianStructuresLib.Arm.Registers; |
|
21 using SymbianInstructionLib.Arm.Instructions.Common; |
|
22 |
|
23 namespace SymbianInstructionLib.Arm.Instructions.Arm.Branching |
|
24 { |
|
25 public abstract class Arm_Branch_Register : Arm_Branch |
|
26 { |
|
27 #region Constructors |
|
28 protected Arm_Branch_Register() |
|
29 { |
|
30 } |
|
31 #endregion |
|
32 |
|
33 #region From Arm_Branch |
|
34 public override int BranchOffset |
|
35 { |
|
36 get |
|
37 { |
|
38 int offset = ArmInstructionUtils.SignExtend24BitTo32Bit( base.AIRawValue & 0x00FFFFFF ); |
|
39 return offset; |
|
40 } |
|
41 } |
|
42 #endregion |
|
43 |
|
44 #region From ArmBaseInstruction |
|
45 protected override bool DoQueryInvolvementAsSource( TArmRegisterType aRegister ) |
|
46 { |
|
47 TArmRegisterType branchReg = this.RegisterContainingBranchAddress; |
|
48 return ( aRegister == branchReg ); |
|
49 } |
|
50 #endregion |
|
51 |
|
52 #region Properties |
|
53 public TArmRegisterType RegisterContainingBranchAddress |
|
54 { |
|
55 get |
|
56 { |
|
57 TArmRegisterType ret = (TArmRegisterType) base.AIRawValue[ 3, 0 ].ToUInt(); |
|
58 return ret; |
|
59 } |
|
60 } |
|
61 #endregion |
|
62 |
|
63 #region Internal methods |
|
64 #endregion |
|
65 |
|
66 #region Data members |
|
67 #endregion |
|
68 } |
|
69 } |
|
70 |