|
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.ComponentModel; |
|
21 using SymbianStructuresLib.Arm.Registers; |
|
22 using SymbianInstructionLib.Arm.Instructions.Common; |
|
23 |
|
24 namespace SymbianInstructionLib.Arm.Instructions.Arm.DataProcessing |
|
25 { |
|
26 public class Arm_DataProcessing_Shift_Register : Arm_DataProcessing_Shift |
|
27 { |
|
28 #region Constructors |
|
29 public Arm_DataProcessing_Shift_Register() |
|
30 : base( TEncoding.EEncodingShiftsRegister ) |
|
31 { |
|
32 // Cond Op. S Rn Rd Rs shift Rm |
|
33 base.SetMask( "####" + "000" + "####" + "#" + "####" + "####" + "####" + "0" + "##" + "1" + "####" ); |
|
34 } |
|
35 #endregion |
|
36 |
|
37 #region From ArmBaseInstruction |
|
38 protected override bool DoQueryInvolvementAsSource( TArmRegisterType aRegister ) |
|
39 { |
|
40 bool ret = base.DoQueryInvolvementAsSource( aRegister ); |
|
41 // |
|
42 if ( ret == false ) |
|
43 { |
|
44 TArmRegisterType reg3 = this.Rs; |
|
45 ret = ( reg3 == aRegister ); |
|
46 } |
|
47 // |
|
48 return ret; |
|
49 } |
|
50 #endregion |
|
51 |
|
52 #region API |
|
53 #endregion |
|
54 |
|
55 #region Properties |
|
56 public TArmRegisterType Rs |
|
57 { |
|
58 get |
|
59 { |
|
60 TArmRegisterType ret = (TArmRegisterType) base.AIRawValue[ 11, 8 ].ToUInt(); |
|
61 return ret; |
|
62 } |
|
63 } |
|
64 #endregion |
|
65 |
|
66 #region Internal methods |
|
67 #endregion |
|
68 |
|
69 #region Data members |
|
70 #endregion |
|
71 } |
|
72 } |
|
73 |