Cypress Semiconductor enCoRe CY7C601xx Guía de usuario Pagina 11

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 62
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 10
CY7C601xx
CY7C602xx
Document 38-16016 Rev. *C Page 11 of 62
Destination Direct Source Immediate
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
is the location specified by Operand 1. Instructions using this
addressing mode are three bytes in length.
Examples
Destination Indexed Source Immediate
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.
Examples
Destination Direct Source Direct
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.
Example
Source Indirect Post Increment
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. Refer to the PSoC Designer: Assembly
Language User Guide for further details on MVI instruction.
Example
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.
Example
Table 14.Destination Direct Source Immediate
Opcode Operand 1 Operand 2
Instruction Destination Address Immediate Value
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.
MOV REG[8], 6 ;In this case, the immediate value of 6 is
moved into the register space location at
address 8.
Table 15.Destination Indexed Source Immediate
Opcode Operand 1 Operand 2
Instruction Destination Index 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.
MOV REG[X+8], 6 ;In this case, the immediate value of
6 is moved into the location in the
register space at address X+8.
Table 16.Destination Direct Source Direct
Opcode Operand 1 Operand 2
Instruction Destination Address Source Address
MOV [7], [8] ;In this case, the value in the memory location
at address 8 is moved to the memory location
at address 7.
Table 17.Source Indirect Post Increment
Opcode Operand 1
Instruction Source Address Address
MVI A, [8] ;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.
Table 18.Destination Indirect Post Increment
Opcode Operand 1
Instruction Destination Address Address
MVI [8], A ;In this case, the value in the memory
location at address 8 is an indi-
rect;address. The Accumulator is moved
into the memory location pointed to by
the indirect address. The indirect
address is then incremented.
Vista de pagina 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 61 62

Comentarios a estos manuales

Sin comentarios