| 数据搜索系统,热门电子元器件搜索 |
|
PM0215 数据表(PDF) 57 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0215 数据表(HTML) 57 Page - STMicroelectronics |
|
57 / 91 page ![]() PM0215 The STM32 Cortex-M0 instruction set Doc ID 022979 Rev 1 57/91 3.5.8 SXTB, SXTH, UXTB and UXTH Sign extend and Zero extend. Syntax SXTB Rd, Rm SXTH Rd, Rm UXTB Rd, Rm UXTH Rd, Rm where: ● ‘Rd’ is the destination register ● ‘Rn’ ,‘Rm’ are the registers holding the first and second operands Operation These instructions extract bits from the resulting value: 1. SXTB extracts bits[7:0] and sign extends to 32 bits 2. UXTB extracts bits[7:0] and zero extends to 32 bits 3. SXTH extracts bits[15:0] and sign extends to 32 bits 4. 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 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |