| Moteur de recherche de fiches techniques de composants électroniques |
|
PM0223 Fiches technique(PDF) 63 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0223 Fiches technique(HTML) 63 Page - STMicroelectronics |
|
63 / 110 page ![]() DocID025763 Rev 1 63/110 PM0223 The STM32L0 Cortex-M0+ Instruction Set 80 3.5.8 SXT and UXT Sign extend and Zero extend. Syntax SXTB Rd, Rm SXTH Rd, Rm UXTB Rd, Rm UXTH Rd, Rm where: Operation • These instructions extract bits from the resulting value: • SXTB extracts bits[7:0] and sign extends to 32 bits. • UXTB extracts bits[7:0] and zero extends to 32 bits. • SXTH extracts bits[15:0] and sign extends to 32 bits. • UXTH extracts bits[15:0] and zero extends to 32 bits. Restrictions In these instructions, Rd and Rm must only specify R0-R7. Condition flags These instructions do not affect the flags. Examples SXTH R4, R6 ; Obtain the lower halfword of the ; value in R6 and then sign extend to ; 32 bits and write the result to R4. UXTB R3, R1 ; Extract lowest byte of the value in R10 and zero ; extend it, and write the result to R3 Rd Is the destination register. Rm Is the register holding the value to be extended. |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants 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 |