| 数据搜索系统,热门电子元器件搜索 |
|
ST9 数据表(PDF) 34 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST9 数据表(HTML) 34 Page - STMicroelectronics |
|
34 / 146 page ![]() 34/146 ST9 USER GUIDE ld r5,#Num_loop ; number of elements to move loop: lddd (rr2)+, (rr0)+ ; transfer of one byte djnz r5,loop The lddd instruction is coded using 2 bytes and executed in 14 cycles. Here are the four possible data transfers: These four instructions improve the performance of data block moves (frequently used in C programs). As you can see in the table above, the data move can be between data and program seg- ments. Here’s an example of a data move from a Data segment using the DPR register to a Program segment using the CSR register: ld rr0,#Source ld rr2,#Destination ; initialisation of the pointers ld r5,#Num_loop ; number of elements to move loop: ldpd (rr2)+, (rr0)+ ; transfer of one byte djnz r5,loop The data load with rr0 comes from the data segment selected by one of the four DPR register values depending on the rr0 value and then are stored in the program segment selected by the CSR register value. (Please refer to the MMU Section 3.1.7 for an explanation of data and program segments). 3.3.1.2 Test Under Mask These instructions, tm and tmw, perform a logical (bitwise) AND between the two operands, but do not store the result. They only set the Z and S bits of the flag register for a later condi- tional jump on zero or sign. The mask is a value in which the bits that are set to 1 select the corresponding bits of the value to be tested for non-zero. As an example, in the following in- struction: tm value, mask Instruction Moves data from... ...to lddd data segment (uses the DPR0-DPR3 registers) data segment ldpp program segment (uses the CSR register) program segment lddp program segment data segment ldpd data segment program segment |
|
链接网址 |
| 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 |