22
ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
M8C Microprocessor
2.5.8
Destination Direct Source Direct
Only one instruction uses this addressing mode. The destination address is stored in operand 1 of
the instruction. The source address is stored in operand 2 of the instruction. The instruction using
the Destination Direct Source Direct addressing mode is three bytes in length.
Destination Direct Source Direct Example:
2.5.9
Source Indirect Post Increment
Only one instruction uses this addressing mode. The source address stored in operand 1 is actually
the address of a pointer. During instruction execution, the pointer’s current value is read to determine
the address in RAM where the source value is found. The pointer’s value is incremented after the
source value is read. For PSoC microcontrollers with more than 256 bytes of RAM, the Data Page
Read (MVR_PP) register is used to determine which RAM page to use with the source address.
Therefore, values from pages other than the current page can be retrieved without changing the Cur-
rent Page Pointer (CUR_PP). The pointer is always read from the current RAM page. For informa-
tion on the MVR_PP and CUR_PP registers, see the Register Reference chapter in the
PSoC
Technical Reference Manual
. The instruction using the Source Indirect Post Increment addressing
mode is two bytes in length.
Source Indirect Post Increment Example:
Table 2-14. Destination Direct Source Direct
Opcode
Operand 1
Operand 2
Instruction
Destination Address
Source Address
Source Code
Machine Code
Comments
MOV
[7], [8]
5F 07 08
The value in memory at address 8 is moved to
memory at address 7.
Table 2-15. Source Indirect Post Increment
Opcode
Operand 1
Instruction
Source Address Pointer
Source Code
Machine Code
Comments
MVI
A, [8]
3E 08
The value in memory at address 8 (the indirect
address) points to a memory location in RAM. The
value at the memory location, pointed to by the indi-
rect address, is moved into the Accumulator. The
indirect address, at address 8 in memory, is then
incremented.
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 ...