cy8c26233-24sxit Cypress Semiconductor Corporation., cy8c26233-24sxit Datasheet - Page 22

no-image

cy8c26233-24sxit

Manufacturer Part Number
cy8c26233-24sxit
Description
8-bit Programmable System-on-chip Psoc? Microcontrollers
Manufacturer
Cypress Semiconductor Corporation.
Datasheet
Examples :
2.3.2
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 address-
ing mode are two bytes in length.
Table 14:
Examples :
2.3.3
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
22
ADD
MOV
AND
ADD
MOV
Instruction
Opcode
A,
X,
F,
A,
X,
Source Direct
Source Indexed
7
8
9
Source Direct
[7]
REG[8]
Source Address
;In this case, the immediate
;value of 7 is added with the
;Accumulator, and the result
;is placed in the
;Accumulator.
;In this case, the immediate
;value of 8 is moved to the X
;register.
;In this case, the immediate
;value of 9 is logically
;ANDed with the F register
;and the result is placed in
;the F register.
Operand 1
;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.
;In this case, the
;value in the register
;space at address 8 is
;moved to the X
;register.
Cypress MicroSystems CY8C25122/CY8C26233/CY8C26443/CY8C26643 Family Data Sheet
Document #: 38-12010 CY Rev. ** CMS Rev. 3.20
added to the X register forming an address that points to
a location in either the RAM memory space or the regis-
ter 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.
Table 15:
Examples :
2.3.4
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 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 address-
ing mode are two bytes in length.
Table 16:
ADD
MOV
Instruction
Instruction
Opcode
Opcode
A,
X,
Destination Direct
Source Indexed
Destination Direct
[X+7]
REG[X+8]
Source Index
Destination Address
Operand 1
Operand 1
;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.
;In this case, the
;value in the
;register space at
;address X + 8 is
;moved to the X
;register.
September 5, 2002

Related parts for cy8c26233-24sxit