| 전자부품 데이터시트 검색엔진 |
|
PM0056 데이터시트(PDF) 66 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0056 데이터시트(HTML) 66 Page - STMicroelectronics |
|
66 / 156 page ![]() The Cortex-M3 instruction set PM0056 66/156 DocID15491 Rev 5 Operation LDR loads a register with a value from a PC-relative memory address. The memory address is specified by a label or by an offset from the PC. The value to load or store can be a byte, halfword, or word. For load instructions, bytes and halfwords can either be signed or unsigned (see Address alignment on page 56). ‘label’ must be within a limited range of the current instruction. Table 26 shows the possible offsets between label and the PC. You might have to use the .W suffix to get the maximum offset range (see Instruction width selection on page 59). Restrictions In these instructions: • Rt can be SP or PC only for word loads • Rt2 must be neither SP nor PC • Rt must be different from Rt2 When Rt is PC in a word load instruction: • bit[0] of the loaded value must be 1 for correct execution, and a branch occurs to this halfword-aligned address • If the instruction is conditional, it must be the last instruction in the IT block. Condition flags These instructions do not change the flags. Examples LDRR0, LookUpTable; load R0 with a word of data from an address ; labelled as LookUpTable LDRSBR7, localdata; load a byte value from an address labelled ; as localdata, sign extend it to a word ; value, and put it in R7 Table 26. label-PC offset ranges Instruction type Offset range Word, halfword, signed halfword, byte, signed byte −4095 to 4095 Two words −1020 to 1020 |
|
링크 URL |
| 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 |