crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianInstructionLib/Arm/Instructions/Arm/DataTransfer/Arm_FSTMS.cs
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianInstructionLib/Arm/Instructions/Arm/DataTransfer/Arm_FSTMS.cs Thu Feb 11 15:50:58 2010 +0200
@@ -0,0 +1,107 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+using System;
+using System.Collections.Generic;
+using System.Text;
+using SymbianUtils.BasicTypes;
+using SymbianStructuresLib.Arm.Registers;
+using SymbianStructuresLib.Arm.Registers.VFP;
+using SymbianStructuresLib.Arm.Instructions;
+using SymbianInstructionLib.Arm.Instructions.Common;
+
+namespace SymbianInstructionLib.Arm.Instructions.Arm.DataTransfer
+{
+ [ArmRefAttribute( "C4.1.57 FSTMS", "FSTM<addressing_mode>S{<cond>} <Rn>{!}, <registers>" )]
+ public class Arm_FSTMS : Arm_LoadOrStoreMultiple_VFP
+ {
+ #region Constructors
+ public Arm_FSTMS()
+ {
+ // Same as FSTMDBS (non-stacking)
+ //
+ // 1110 => Condition = "Always"
+ // 110 => FSTMD (1) instruction signature
+ // 1 => P = addressing mode
+ // 0 => U = addressing mode
+ // 0 => ?
+ // 1 => W = write a modified value back to its base register Rn
+ // 0 => ?
+ // 1101 => Rn = Specifies the base register used by <addressing_mode>. => SP
+ //
+ // Cond PU D WL Rn Fd offset
+ base.SetMask( "####" + "110" + "##" + "#" + "#0" + "####" + "####" + "1010" + "########" );
+ }
+ #endregion
+
+ #region From Arm_LoadOrStore
+ public override TArmDataTransferType DataTransferType
+ {
+ get { return TArmDataTransferType.EStore; }
+ }
+ #endregion
+
+ #region API
+ #endregion
+
+ #region Properties
+ public override TArmRegisterTypeVFP FirstRegister
+ {
+ get
+ {
+ // Get bits 15-12 inclusive
+ uint firstReg = Arm_LoadOrStoreMultiple_VFP.KMaskFirstReg.Apply( base.AIRawValue );
+
+ // Shift one to the left to make room for 'D'
+ firstReg <<= 1;
+
+ // Now add D
+ firstReg |= (uint) base.AIRawValue[ 22 ];
+
+ // We must rebase these in alignment with the first single precision register
+ // value.
+ TArmRegisterTypeVFP ret = (TArmRegisterTypeVFP) ( firstReg + (uint) TArmRegisterTypeVFP.S00 );
+
+ return ret;
+ }
+ }
+
+ public override TArmRegisterTypeVFP[] Registers
+ {
+ get
+ {
+ uint regCount = base.Offset;
+ uint firstReg = (uint) this.FirstRegister;
+
+ List<TArmRegisterTypeVFP> regs = new List<TArmRegisterTypeVFP>();
+ for ( uint i = firstReg; i < regCount + firstReg; i++ )
+ {
+ regs.Add( (TArmRegisterTypeVFP) i );
+ }
+ //
+ return regs.ToArray();
+ }
+ }
+ #endregion
+
+ #region Internal methods
+ #endregion
+
+ #region Data members
+ #endregion
+ }
+}
+