Application Note
CPU05/CPU08 Programmer's Model Comparison
AN1218 Rev. 2
7
Memory to memory instructions utilize four different modes available
only to the CPU08.
1.
The move, immediate to direct, is a three-byte mode generally
used to initialize RAM and register values in page 0 of the memory
map. The operand in the second byte is immediately stored to the
direct page location found in the third byte.
2.
Themove,directtodirect,isathree-byteinstruction. Theoperand
following the opcode is the direct page location that is stored to the
second operand direct page location.
3.
The move, indexed to direct, post increment, is a two-byte
instruction. The operand addressed by the 16-bit index register
(H:X) is stored to direct page location address by the byte
following the opcode. The index register is then incremented.
4.
The move, direct to indexed, post increment, is a two-byte
instruction. The operand in the direct page location addressed by
the byte following the opcode is stored in the location addressed
by the 16-bit index register (H:X). The index register is then
incremented.
In the CPU08, four instructions address operands with the index register
and then increment the index register afterwards. This is called indexed
with post increment mode. These instructions include CBEQ indexed,
CBEQ indexed with offset, MOV IX+Dir, and MOV DirIx+.
Table 2
gives examples to illustrate these different addressing modes.
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.