| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
PM0223 Datasheet(PDF) 57 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0223 Datasheet(HTML) 57 Page - STMicroelectronics |
|
57 / 110 page ![]() DocID025763 Rev 1 57/110 PM0223 The STM32L0 Cortex-M0+ Instruction Set 80 3.5.3 ASR, LSL, LSR, and ROR Arithmetic Shift Right, Logical Shift Left, Logical Shift Right, and Rotate Right. Syntax ASRS {Rd,} Rm, Rs ASRS {Rd,} Rm, #imm LSLS {Rd,} Rm, Rs LSLS {Rd,} Rm, #imm LSRS {Rd,} Rm, Rs LSRS {Rd,} Rm, #imm RORS {Rd,} Rm, Rs where: Note: MOVS Rd , Rm is a pseudonym for LSLS Rd, Rm, #0. Operation ASR, LSL, LSR, and ROR perform an arithmetic-shift-left, logical-shift-left, logical-shift- right or a right-rotation of the bits in the register Rm by the number of places specified by the immediate imm or the value in the least-significant byte of the register specified by Rs. For details on what result is generated by the different instructions, see 3.3.3: Shift Operations on page 40. Restrictions In these instructions, Rd, Rm, and Rs must only specify R0-R7. For non-immediate instructions, Rd and Rm must specify the same register. Condition flags These instructions update the N and Z flags according to the result. The C flag is updated to the last bit shifted out, except when the shift length is 0, see 3.3.3: Shift Operations on page 40. The V flag is left unmodified. Rd Is the destination register. If Rd is omitted, it is assumed to take the same value as Rm. Rm Is the register holding the value to be shifted. Rs Is the register holding the shift length to apply to the value in Rm Imm Is the shift length. The range of shift length depends on the instruction: ASR shift length from 1 to 32 LSL shift length from 0 to 31 LSR shift length from 1 to 32. |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |