Document # 001-20559 Rev. *D
41
CPU Core (M8C)
2.6.4
Destination Direct
For these instructions, the destination address is stored in the machine code of the instruction. The source for the operation is
either the M8C A or X register as indicated by the instruction’s opcode. All instructions using the Destination Direct address-
ing mode are two bytes in length.
Destination Direct Examples:
2.6.5
Destination Indexed
For these instructions, the destination offset from the X register is stored in the machine code for the instruction. The source
for the operation is either the M8C A register or an immediate value as indicated by the instruction’s opcode. All instructions
using the Destination Indexed addressing mode are two bytes in length.
Destination Indexed Example:
2.6.6
Destination Direct Source Immediate
For these instructions, the destination address is stored in operand 1 of the instruction. The source value is stored in operand
2 of the instruction. All instructions using the Destination Direct Source Immediate addressing mode are three bytes in length.
Destination Direct Source Immediate Examples:
Table 2-9. Destination Direct
Opcode
Operand 1
Instruction
Destination Address
Source Code
Machine Code
Comments
ADD
[7], A
04 07
The value in the Accumulator is added to memory at address 7. The
result is placed in memory at address 7. The Accumulator is unchanged.
MOV
REG[8], A
60 08
The Accumulator value is moved to register space at address 8. The
Accumulator is unchanged.
Table 2-10. Destination Indexed
Opcode
Operand 1
Instruction
Destination Index
Source Code
Machine Code
Comments
ADD
[X+7], A
05 07
The value in memory at address X+7 is added to the Accumulator. The
result is placed in memory at address X+7. The Accumulator is
unchanged.
Table 2-11. Destination Direct Source Immediate
Opcode
Operand 1
Operand 2
Instruction
Destination Address
Immediate Value
Source Code
Machine Code
Comments
ADD
[7], 5
06 07 05
The value in memory at address 7 is added to the immediate value 5. The
result is placed in memory at address 7.
MOV
REG[8], 6
62 08 06
The immediate value 6 is moved to register space at address 8.
Summary of Contents for PSoC CY8C23533
Page 4: ...Contents Overview 4 Document 001 20559 Rev D Section G Glossary 385 Index 401 ...
Page 16: ...Contents Overview 16 Document 001 20559 Rev D ...
Page 24: ...24 Document 001 20559 Rev D Section A Overview ...
Page 30: ...30 Document 001 20559 Rev D Pin Information ...
Page 54: ...54 Document 001 20559 Rev D Supervisory ROM SROM ...
Page 60: ...60 Document 001 20559 Rev D RAM Paging ...
Page 68: ...68 Document 001 20559 Rev D Interrupt Controller ...
Page 76: ...12 Document 001 20559 Rev D General Purpose IO GPIO ...
Page 82: ...18 Document 001 20559 Rev D Internal Main Oscillator IMO ...
Page 84: ...20 Document 001 20559 Rev D Internal Low Speed Oscillator ILO ...
Page 90: ...26 Document 001 20559 Rev D External Crystal Oscillator ECO ...
Page 94: ...30 Document 001 20559 Rev D Phase Locked Loop PLL ...
Page 106: ...42 Document 001 20559 Rev D Sleep and Watchdog ...
Page 228: ...164 Document 001 20559 Rev D Section D Digital System ...
Page 234: ...170 Document 001 20559 Rev D Array Digital Interconnect ADI ...
Page 278: ...214 Document 001 20559 Rev D Digital Blocks ...
Page 296: ...232 Document 001 20559 Rev D Analog Interface ...
Page 304: ...240 Document 001 20559 Rev D Analog Array ...
Page 308: ...244 Document 001 20559 Rev D Analog Input Configuration ...
Page 312: ...248 Document 001 20559 Rev D Analog Reference ...
Page 338: ...274 Document 001 20559 Rev D Section F System Resources ...
Page 354: ...290 Document 001 20559 Rev D Multiply Accumulate MAC ...
Page 374: ...310 Document 001 20559 Rev D I2C ...
Page 400: ...336 Document 001 20559 Rev D Section G Glossary ...