| 数据搜索系统,热门电子元器件搜索 |
|
ST9 数据表(PDF) 33 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST9 数据表(HTML) 33 Page - STMicroelectronics |
|
33 / 146 page ![]() 33/146 ST9 USER GUIDE 3.3.1 Overview For a complete description of the instruction set, you should refer to the ST9 Programming Manual. The aim here is to give you an introduction to the ST9 instruction set and highlight some of its best features in terms of power and ease of programming. Most instructions of the ST9 exist in both byte and word forms. That is, they can operate on ei- ther 8 (byte) or 16-bits (word). The mnemonics of the word-instructions all end with a “w”, as in the following examples: The new powerful instructions added to the ST9 are the CALLS, RETS, JPS instructions for far branching to change the program segment and the instructions used for C language appli- cations, LINK, LINKU, UNLINK and UNLINKU. Moreover, all instructions have been optimized compared to Previous ST9. 3.3.1.1 Load Instructions Beside the classical load instructions found on most microprocessors, there are four special load instructions for moving data between two locations in memory. One instruction to move data from data segment to data segment; lddd. This instruction al- lows you to post-increment the destination and the source index register at the same time. The ld instruction needs two instructions to do this. An example for moving a block of data would be: ld rr0,#Source ld rr2,#Destination ; initialisation of the pointers ld r5,#Num_loop ; number of elements to move loop: ld r4,(rr0)+ ; transfer of one byte ld (rr2)+,r4 djnz r5,loop The two ld instructions are coded using 6 bytes and executed in 24 cycles. The same program with the lddd instruction: ld rr0,#Source ld rr2,#Destination ; initialisation of the pointers Load Add Subtract Logical and Logical or Compare Push Pop ld add sub and or cp push pop ldw addw subw andw orw cpw pushw popw |
|
链接网址 |
| 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 |