| поискавой системы для электроныых деталей |
|
PM0214 датащи(PDF) 133 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0214 датащи(HTML) 133 Page - STMicroelectronics |
|
133 / 245 page ![]() DocID022708 Rev 4 133/245 PM0214 The STM32 Cortex-M4 instruction set 244 3.8.1 PKHBT and PKHTB Pack Halfword Syntax op{cond} {Rd}, Rn, Rm {, LSL #imm} op{cond} {Rd}, Rn, Rm {, ASR #imm} where: • op’ is one of: PKHBT Pack Halfword, bottom and top with shift. PKHTB Pack Halfword, top and bottom with shift. • ‘cond’ is an optional condition code (see Conditional execution on page 64) • ‘Rd’ is the destination register. • ‘Rn’ is the first operand register. • ‘Rm’ is the second operand register holding the value to be optionally shifted. • ‘imm’ is the shift length. The type of shift length depends on the instruction: For PKHBT: LSL: a left shift with a shift length from 1 to 31, 0 means no shift. For PKHTB: ASR: an arithmetic shift right with a shift length from 1 to 32,a shift of 32- bits is encoded as 0b00000. Operation The PKHBT instruction: 1. Writes the value of the bottom halfword of the first operand to the bottom halfword of the destination register. 2. If shifted, the shifted value of the second operand is written to the top halfword of the destination register. The PKHTB instruction: 1. Writes the value of the top halfword of the first operand to the top halfword of the destination register. 2. If shifted, the shifted value of the second operand is written to the bottom halfword of the destination register. Restrictions Rd must not be SP and must not be PC. Condition flags This instruction does not change the flags. Examples PKHBT R3, R4, R5 LSL #0 ; Writes bottom halfword of R4 to bottom halfword ; of R3, writes top halfword of R5, unshifted, to top ; halfword of R3 PKHTB R4, R0, R2 ASR #1 ; Writes R2 shifted right by 1 bit to bottom half ; word of R4, and writes top halfword of R0 to top ; halfword of R4. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |