44
CY8C28xxx PSoC Programmable System-on-Chip TRM, Document No. 001-52594 Rev. *G
CPU Core (M8C)
2.6.2
Source Direct
For these instructions, the source address is stored in operand 1 of the instruction. During instruction execution, the address
will be used to retrieve the source value from RAM or register address space. The result of these instructions is placed in
either the M8C A or X register as indicated by the instruction’s opcode. All instructions using the Source Direct addressing
mode are two bytes in length.
Source Direct Examples:
2.6.3
Source Indexed
For these instructions, the source offset from the X register is stored in operand 1 of the instruction. During instruction execu-
tion, the current X register value is added to the signed offset, to determine the address of the source value in RAM or register
address space. The result of these instructions is placed in either the M8C A or X register as indicated by the instruction’s
opcode. All instructions using the Source Indexed addressing mode are two bytes in length.
Source Indexed Examples:
Table 2-7. Source Direct
Opcode
Operand 1
Instruction
Source Address
Source Code
Machine Code
Comments
ADD
A, [7]
02 07
The value in memory at address 7 is added to the Accumulator and the
result is placed into the Accumulator.
MOV
A, REG[8]
5D 08
The value in the register space at address 8 is moved into the
Accumulator.
Table 2-8. Source Indexed
Opcode
Operand 1
Instruction
Source Index
Source Code
Machine Code
Comments
ADD
A, [X+7]
03 07
The value in memory at address X+7 is added to the Accumulator. The
result is placed in the Accumulator.
MOV
X, [X+8]
59 08
The value in RAM at address X+8 is moved into the X register.
Summary of Contents for CY8C28 series
Page 65: ...64 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G RAM Paging ...
Page 125: ...124 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 311: ...310 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G IDAC_CR0 1 FDh ...
Page 317: ...316 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 393: ...392 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 477: ...476 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Digital Clocks ...
Page 561: ...560 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...