StephenHermer.com
Writing, Iguanas, and Electronics

MOV Mem[X], Reg Instruction

The Memory[X] to Register MOV copies a value from main memory to any register or counter. Any combination where the source and destination are different are acceptable. This allows the programmer to update the program counter, a general purpose register, even the stack pointer with no restrictions.

Memory to Register

As of June, 2020, the source should be 0011 for main memory, but it is possible to copy values from the firmware or a different bank of memory so it is left variable.

Usage Examples:
        Hex                Mnemonic                      Action

223A      ; MOV Mem[X], A      Value in memory copied to A
2211      ; MOV Mem[PC], PC    Value in memory copied to the PC.

Updates when Executed:

  • Destination register or counter