ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
21
M8C Microprocessor
2.5.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:
2.5.7
Destination Indexed Source Immediate
For these instructions, the destination offset from the CPU_X register is stored in operand 1 of the
instruction. The source value is stored in operand 2 of the instruction. All instructions using the Des-
tination Indexed Source Immediate addressing mode are three bytes in length.
Destination Indexed Source Immediate Examples:
Table 2-12. 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 into register space
at address 8.
Table 2-13. Destination Indexed Source Immediate
Opcode
Operand 1
Operand 2
Instruction
Destination Index
Immediate Value
Source Code
Machine Code
Comments
ADD
[X+7], 5
07 07 05
The value in memory at address X+7 is added to the
immediate value 5. The result is placed in memory
at address X+7.
MOV
REG[X+8], 6
63 08 06
The immediate value 6 is moved into the register
space at address X+8.
Summary of Contents for PSoC DESIGNER ImageCraft M8C
Page 6: ...6 ImageCraft Assembly Language Guide Document 001 44475 Rev B Contents Feedback ...
Page 10: ...10 ImageCraft Assembly Language Guide Document 001 44475 Rev B Introduction Feedback ...
Page 24: ...24 ImageCraft Assembly Language Guide Document 001 44475 Rev B M8C Microprocessor Feedback ...
Page 95: ...ImageCraft Assembly Language Guide Document 001 44475 Rev B 95 Assembler Directives Feedback ...
Page 96: ...96 ImageCraft Assembly Language Guide Document 001 44475 Rev B Assembler Directives Feedback ...
Page 104: ...104 ImageCraft Assembly Language Guide Document 001 44475 Rev B Feedback ...
Page 108: ...108 ImageCraft Assembly Language Guide Document 001 44475 Rev B Index Feedback ...