| 数据搜索系统,热门电子元器件搜索 |
|
ST9 数据表(PDF) 29 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST9 数据表(HTML) 29 Page - STMicroelectronics |
|
29 / 146 page ![]() 29/146 ST9 USER GUIDE Figure 13 . Addressing via DPR0-3 3.1.7.4.1 Accessing the Page and the Offset in Assembler or C Language The assembly tools implement a set of operands which allows you to extract the components of a data address. The PAG operator (stands for PAGe) extracts the page number of an address; similarly, the POF operator (stands for Page OFfset) extracts the offset of the address within the page. Syntax: PAG label POF label Be careful that directly using the data label and using the POF operator on a data label are not equivalent: the data label gives the 16 bits of the logical label address; the POF operand gives the 14 lowest bits of the label’s physical or logical address. Example: Assuming data is mapped at address 0x129876: ldw rr2,#POF data ; rr2 = 0x1876 ldw rr4,#data ; rr4 = 0xD876 (with DPR3=0x4A) Remember that you must take care of which data pointer has to be set before accessing a variable. DPR0 DPR1 DPR2 DPR3 00 01 10 11 14 LSB 8 bits 22-bit Physical Address 16-bit Virtual Address MMU Registers |
|
链接网址 |
| 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 |