| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
CYWUSB6953 bảng dữ liệu(PDF) 15 Page - Cypress Semiconductor |
|
|
|||||||||||||||||||||||||||||
CYWUSB6953 bảng dữ liệu(HTML) 15 Page - Cypress Semiconductor |
|
15 / 68 page ![]() CYRF69103 Document #: 001-07611 Rev *F Page 15 of 68 12. Addressing Modes Examples of the different addressing modes are discussed in this section and example code is given. 12.1 Source Immediate The result of an instruction using this addressing mode is placed in the A register, the F register, the SP register, or the X register, which is specified as part of the instruction opcode. Operand 1 is an immediate value that serves as a source for the instruction. Arithmetic instructions require two sources. Instructions using this addressing mode are two bytes in length. Examples 12.2 Source Direct The result of an instruction using this addressing mode is placed in either the A register or the X register, which is specified as part of the instruction opcode. Operand 1 is an address that points to a location in either the RAM memory space or the register space that is the source for the instruction. Arithmetic instructions require two sources; the second source is the A register or X register specified in the opcode. Instructions using this addressing mode are two bytes in length. Examples 12.3 Source Indexed The result of an instruction using this addressing mode is placed in either the A register or the X register, which is specified as part of the instruction opcode. Operand 1 is added to the X register forming an address that points to a location in either the RAM memory space or the register space that is the source for the instruction. Arithmetic instructions require two sources; the second source is the A register or X register specified in the opcode. Instructions using this addressing mode are two bytes in length. Examples 12.4 Destination Direct The result of an instruction using this addressing mode is placed within either the RAM memory space or the register space. Operand 1 is an address that points to the location of the result. The source for the instruction is either the A register or the X register, which is specified as part of the instruction opcode. Arithmetic instructions require two sources; the second source is the location specified by Operand 1. Instructions using this addressing mode are two bytes in length. Examples Table 12-1. Source Immediate Opcode Operand 1 Instruction Immediate Value ADD A, 7 In this case, the immediate value of 7 is added with the Accumulator, and the result is placed in the Accumulator. MOV X, 8 In this case, the immediate value of 8 is moved to the X register. AND F, 9 In this case, the immediate value of 9 is logically ANDed with the F register and the result is placed in the F register. Table 12-2. Source Direct Opcode Operand 1 Instruction Source Address ADD A, [7] In this case, the value in the RAM memory location at address 7 is added with the Accumulator, and the result is placed in the Accumulator. MOV X, REG[8] In this case, the value in the register space at address 8 is moved to the X register. Table 12-3. Source Indexed Opcode Operand 1 Instruction Source Index ADD A, [X+7] In this case, the value in the memory location at address X + 7 is added with the Accumulator, and the result is placed in the Accumulator. MOV X, REG[X+8] In this case, the value in the register space at address X + 8 is moved to the X register. Table 12-4. Destination Direct Opcode Operand 1 Instruction Destination Address ADD [7], A In this case, the value in the memory location at address 7 is added with the Accumulator, and the result is placed in the memory location at address 7. The Accumulator is unchanged. MOV REG[8], A In this case, the Accumulator is moved to the register space location at address 8. The Accumulator is unchanged. [+] Feedback |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |