crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianInstructionLib/Arm/Instructions/Thumb/DataProcessing/Thumb_AddOrSubtract_Immediate.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 SymbianUtils.BasicTypes; |
|
21 using SymbianStructuresLib.Arm.Registers; |
|
22 using SymbianInstructionLib.Arm.Instructions.Common; |
|
23 |
|
24 namespace SymbianInstructionLib.Arm.Instructions.Thumb.DataProcessing |
|
25 { |
|
26 [ArmRef( "A7.1.3 ADD (1)", "ADD <Rd>, <Rn>, #<immed_3>" )] |
|
27 [ArmRef( "A7.1.65 SUB (1)", "SUB <Rd>, <Rn>, #<immed_3>" )] |
|
28 public class Thumb_AddOrSubtract_Immediate : Thumb_AddOrSubtract_2Regs |
|
29 { |
|
30 #region Constructors |
|
31 public Thumb_AddOrSubtract_Immediate() |
|
32 { |
|
33 // Type imed_3 Rn Rd |
|
34 base.SetMask( "000111" + "#" + "###" + "###" + "###" ); |
|
35 } |
|
36 #endregion |
|
37 |
|
38 #region Properties |
|
39 public override uint Immediate |
|
40 { |
|
41 get |
|
42 { |
|
43 uint ret = KMaskImm.Apply( base.AIRawValue ); |
|
44 return ret; |
|
45 } |
|
46 } |
|
47 |
|
48 public override bool SuppliesImmediate |
|
49 { |
|
50 get { return true; } |
|
51 } |
|
52 #endregion |
|
53 |
|
54 #region Internal methods |
|
55 #endregion |
|
56 |
|
57 #region Data members |
|
58 private static readonly SymMask KMaskImm = new SymMask( 0x1C0, SymMask.TShiftDirection.ERight, 6 ); |
|
59 #endregion |
|
60 } |
|
61 } |
|
62 |