| Electronic Components Datasheet Search |
|
UM0438 Datasheet(PDF) 24 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0438 Datasheet(HTML) 24 Page - STMicroelectronics |
|
24 / 50 page ![]() Simplified mnemonics for VLE instructions UM0438 24/50 A.3.1 Operations on words The simplified mnemonics in Table 12 do not support coding with a dot (.) suffix. In PowerPC instructions, a dot (.) suffix causes the Rc bit to be set in the underlying instruction. However, the following VLE instruction forms do not support this. Examples using word mnemonics follow: 1. Extract the sign bit (bit 0) of rS and place the result right-justified into rA. e_extrwi rA,rS,1,0 equivalent to e_rlwinm rA,rS,1,31,31 2. Insert the bit extracted in (1) into the sign bit (bit 0) of rB. e_insrwi rB,rA,1,0 equivalent to e_rlwimi rB,rA,31,0,0 3. Shift the contents of rA left 8 bits. e_slwi rA,rA,8 equivalent to e_rlwinm rA,rA,8,0,23 4. Clear the high-order 16 bits of rS and place the result into rA. e_clrlwi rA,rS,16 equivalent to e_rlwinm rA,rS,0,16,31 A.4 Branch instruction simplified mnemonics Branch conditional instructions can be coded with the operations and with a condition to be tested as part of the instruction mnemonic rather than as numeric operands (the BO32, BI32 and BO16, BI16 operands). Table 13 shows the four general types of branch instructions. Simplified mnemonics are defined only for branch conditional instructions that include either the BO32, BI32 or BO16, BI16 operands; there is no need to simplify the other branch mnemonics. Table 12. Word rotate and shift simplified mnemonics Operation Simplified mnemonic Equivalent to: Extract and left justify word immediate e_extlwi rA,rS,n,b (n > 0) e_rlwinm rA,rS,b,0,n – 1 Extract and right justify word immediate e_extrwi rA,rS,n,b (n > 0) e_rlwinm rA,rS,b + n,32 – n,31 Insert from left word immediate e_inslwi rA,rS,n,b (n > 0) e_rlwimi rA,rS,32 – b,b,(b + n) – 1 Insert from right word immediate e_insrwi rA,rS,n,b (n > 0) e_rlwimi rA,rS,32 – (b + n),b,(b + n) – 1 Rotate left word immediate e_rotlwi rA,rS,n e_rlwinm rA,rS,n,0,31 Rotate right word immediate e_rotrwi rA,rS,n e_rlwinm rA,rS,32 – n,0,31 Shift left word immediate e_slwi rA,rS,n (n < 32) e_rlwinm rA,rS,n,0,31 – n Shift right word immediate e_srwi rA,rS,n (n < 32) e_rlwinm rA,rS,32 – n,n,31 Clear left word immediate e_clrlwi rA,rS,n (n < 32) e_rlwinm rA,rS,0,n,31 Clear right word immediate e_clrrwi rA,rS,n (n < 32) e_rlwinm rA,rS,0,0,31 – n Clear left and shift left word immediate e_clrlslwi rA,rS,b,n (n ≤ b ≤ 31) e_rlwinm rA,rS,n,b – n,31 – n |
|
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 |
| 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 |