
CY7C63310
CY7C638xx
Document 38-08035 Rev. *I
Page 9 of 74
7.2.4
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. Instruc-
tions using this addressing mode are two bytes in length.
Destination Direct
Examples
7.2.5
The result of an instruction using this addressing mode is
placed within either the RAM memory space or the register
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.
Destination Indexed
Example
7.2.6
The result of an instruction using this addressing mode is
placed within either the RAM memory space or the register
space. Operand 1 is 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
Destination Direct Source Immediate
is the location specified by Operand 1. Instructions using this
addressing mode are three bytes in length.
Examples
7.2.7
The result of an instruction using this addressing mode is
placed within either the RAM memory space or the register
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.
Destination Indexed Source Immediate
Examples
7.2.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 addressing mode is three bytes in length.
Destination Direct Source Direct
Table 7-10. 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.
;In this case, the Accumulator is
moved to the register space location
at address 8. The Accumulator is
unchanged.
MOV
REG[8],
A
Table 7-11. Destination Indexed
Opcode
Operand 1
Instruction
Destination Index
ADD
[X+7],
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.
Table 7-12. Destination Direct Source Immediate
Opcode
Instruction
Operand 1
Operand 2
Immediate Value
Destination Address
ADD
[7],
5
;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.
MOV REG[8],
6
Table 7-13. Destination Indexed Source Immediate
Opcode
Instruction
Operand 1
Destination Index
Operand 2
Immediate Value
ADD
[X+7],
5
;In this case, the value in; the mem-
ory 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.
MOV
REG[X+8],
6
Table 7-14. Destination Direct Source Direct
Opcode
Instruction
Operand 1
Operand 2
Source Address
Destination Address