This addressing mode is generally used to transfer variables and registers in page zero. The A register is not affected. See the following listing for an example of using the memory-to- memory direct-to-direct addressing mode.
MyData1: EQU $50 MyData2: EQU $51 entry: MOV #$10, MyData1 MOV MyData1, MyData2
The MOV #$10,MyData1 instruction stores the value $10 in memory location $50`MyData1' using the memory-to-memory Immediate-to-Direct addressing mode. The MOV MyData1,MyData2 instruction moves the content of MyData1 into MyData2 using memory to memory Direct-to-Direct addressing mode. The content of MyData2 (memory location $51) is then $10.