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

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.8
The result of an instruction using this addressing mode is
placed within the RAM memory. Operand 1 is the
address of the result. Operand 2 is an address that
points to a location in the RAM memory that is the source
for the instruction. This addressing mode is only valid on
the MOV instruction. The instruction using this address-
ing mode is three bytes in length.
Table 20:
Example :
2.3.9
The result of an instruction using this addressing mode is
placed in the Accumulator. Operand 1 is an address
pointing to a location within the memory space, which
contains an address (the indirect address) for the source
of the instruction. The indirect address is incremented as
part of the instruction execution. This addressing mode
is only valid on the MVI instruction. The instruction using
this addressing mode is two bytes in length. See Sec-
tion 7. Instruction Set in PSoC Designer: Assembly
24
ADD
MOV
MOV
Instruction
Opcode
[7], [8]
[X+7],
REG[X+8], 6
Destination Direct Direct
Source Indirect Post Increment
Destination Direct Direct
Destination Address Source Address
Operand 1
;In this case, the value
;in the memory location at
;address 8 is moved to the
;memory location at
;address 7.
5
;In this case, the
;value in the memory
;location at address
;X+7 is added with
;the immediate value
;of 5, and the result
;is placed in the
;memory location at
;address X+7.
;In this case, the
;immediate value of 6
;is moved into the
;location in the
;register space at
;address X+8.
Cypress MicroSystems CY8C25122/CY8C26233/CY8C26443/CY8C26643 Family Data Sheet
Document #: 38-12010 CY Rev. ** CMS Rev. 3.20
Operand 2
Language User Guide for further details on MVI instruc-
tion.
Table 21:
Example :
2.3.10 Destination Indirect Post Increment
The result of an instruction using this addressing mode is
placed within the memory space. Operand 1 is an
address pointing to a location within the memory space,
which contains an address (the indirect address) for the
destination of the instruction. The indirect address is
incremented as part of the instruction execution. The
source for the instruction is the Accumulator. This
addressing mode is only valid on the MVI instruction.
The instruction using this addressing mode is two bytes
in length.
Table 22:
Example :
MVI
MVI
Instruction
Instruction
Opcode
Opcode
A,
[8], A
Source Indirect Post Increment
Destination Indirect Post Increment
[8]
Source Address Address
Destination Address Address
;In this case, the value
;in the memory location at
;address 8 is an indirect
;address. The memory
;location pointed to by
;the indirect address is
;moved into the
;Accumulator. The
;indirect address is then
;incremented.
;In this case, the
;value in the memory
;location at address 8
;is an indirect
;address. The
;Accumulator is moved
;into the memory
;location pointed to by
;the indirect address.
;The indirect address
;is then incremented.
Operand 1
Operand 1
September 5, 2002

Related parts for cy8c26233-24sxit