Memory-to-memory immediate-to-direct

This addressing mode is generally used to initialize variables and registers in page zero. The register A is not affected. See the following listing for an example for using the memory-to- memory immediate-to-direct addressing mode.

Listing: Memory-to-memory immediate-to-direct addressing mode

MyData:   EQU   $50
entry:

          MOV   #$20, MyData

The MOV #$20,MyData instruction stores the value $20 in memory location $50`MyData'.