CY8C25122 Cypress Semiconductor, CY8C25122 Datasheet - Page 23

no-image

CY8C25122

Manufacturer Part Number
CY8C25122
Description
8-Bit Programmable System-on-Chip (PSoC) Microcontrollers
Manufacturer
Cypress Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
CY8C25122-24PI
Quantity:
2 301
Part Number:
CY8C25122-24PI
Manufacturer:
CYPRESS/赛普拉斯
Quantity:
20 000
Part Number:
CY8C25122-24PXI
Manufacturer:
CY
Quantity:
3 276
Part Number:
CY8C25122-24PXI
Manufacturer:
CYPRESS/赛普拉斯
Quantity:
20 000
Examples :
2.3.5
The result of an instruction using this addressing mode is
placed within either the RAM memory space or the regis-
ter space. Operand 1 is added to the X register forming
the address that points to the location of the result. The
source for the instruction is the A register. Arithmetic
instructions require two sources, the second source is
the location specified by Operand 1 added with the X
register. Instructions using this addressing mode are two
bytes in length.
Table 17:
Example :
2.3.6
The result of an instruction using this addressing mode is
placed within either the RAM memory space or the regis-
ter space. Operand 1 is the address of the result. The
September 5, 2002
ADD
MOV
ADD [X+7],
Instruction
Opcode
[7],
REG[8], A
Destination Indexed
Destination Direct Immediate
Destination Indexed
Destination Index
A
A
;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 memory location
;at address x+7. The
;Accumulator is
;unchanged.
Operand 1
;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.
;In this case, the
;Accumulator is moved
;to the register
;space location at
;address 8. The
;Accumulator is
;unchanged.
Document #: 38-12010 CY Rev. ** CMS Rev. 3.20
source for the instruction is Operand 2, which is an
immediate value. Arithmetic instructions require two
sources, the second source is the location specified by
Operand 1. Instructions using this addressing mode are
three bytes in length.
Table 18:
Examples :
2.3.7
The result of an instruction using this addressing mode is
placed within either the RAM memory space or the regis-
ter space. Operand 1 is added to the X register to form
the address of the result. The source for the instruction is
Operand 2, which is an immediate value. Arithmetic
instructions require two sources, the second source is
the location specified by Operand 1 added with the X
register. Instructions using this addressing mode are
three bytes in length.
Table 19:
ADD [7],
MOV REG[8], 6
Instruction
Instruction
Opcode
Opcode
Destination Indexed Immediate
Destination Direct Immediate
Destination Indexed Immediate
Destination Address Immediate Value
Destination Index
5
Operand 1
Operand 1
;In this case, value in
;the memory location at
;address 7 is added to
;the immediate value of
;5, and the result is
;placed in the memory
;location at address 7.
;In this case, the
;immediate value of 6 is
;moved into the register
;space location at
;address 8.
Immediate Value
Operand 2
CPU Architecture
Operand 2
23

Related parts for CY8C25122