Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

UM0438 Datasheet(PDF) 39 Page - STMicroelectronics

Part # UM0438
Description  This user manual defines a programming model for use with the variable-length encoding
PDF  50 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0438 Datasheet(HTML) 39 Page - STMicroelectronics

Back Button UM0438 Datasheet HTML 35Page - STMicroelectronics UM0438 Datasheet HTML 36Page - STMicroelectronics UM0438 Datasheet HTML 37Page - STMicroelectronics UM0438 Datasheet HTML 38Page - STMicroelectronics UM0438 Datasheet HTML 39Page - STMicroelectronics UM0438 Datasheet HTML 40Page - STMicroelectronics UM0438 Datasheet HTML 41Page - STMicroelectronics UM0438 Datasheet HTML 42Page - STMicroelectronics UM0438 Datasheet HTML 43Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 39 / 50 page
background image
UM0438
Simplified mnemonics for VLE instructions
39/50
A.8
Simplified mnemonics for accessing SPRs
The mtspr and mfspr instructions specify a special-purpose register (SPR) as a numeric
operand. Simplified mnemonics are provided that represent the SPR in the mnemonic rather
than requiring it to be coded as a numeric operand. The pattern for mtspr and mfspr
simplified mnemonics is straightforward: replace the -spr portion of the mnemonic with the
abbreviation for the spr (for example XER, SRR0, or LR), eliminate the SPRN operand,
leaving the source or destination GPR operand, rS or rD.
Following are examples using the SPR simplified mnemonics:
1.
Copy the contents of rS to the XER.
mtxer rS
equivalent to
mtspr 1,rS
2.
Copy the contents of the LR to rS.
mflr rD
equivalent to
mfspr rD,8
3.
Copy the contents of rS to the CTR.
mtctr rS
equivalent to
mtspr 9,rS
The examples above show simplified mnemonics for accessing SPRs defined by the AIM
version of the PowerPC architecture; however, the same formula is used for Book E, EIS,
and implementation-specific SPRs, as shown in the following examples:
1.
Copy the contents of rS to CSRR0.
mtcsrr0 rS
equivalent to
mtspr 58,rS
2.
Copy the contents of IVOR0 to rS.
mfivor0 rD
equivalent to
mfspr rD,400
3.
Copy the contents of rS to the MAS1.
mtmas1 rS
equivalent to
mtspr 625,rS
There are additional simplified mnemonics for accessing SPRGs, which are not all
supported by all assemblers. These mnemonics are shown in Table 31 along with the
equivalent simplified mnemonic using the formula described in this section.
Table 31.
Additional simplified mnemonics for Accessing SPRGs
SPR
Move to SPR
Move from SPR
Simplified mnemonic
Equivalent to
Simplified mnemonic
Equivalent to
SPRGs
mtsprg n,rS
mtspr 272 + n,rS
mfsprg rD,n
mfspr rD,272 + n
mtsprgn,rS
mfsprgn rD



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com