We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

Block Move Addressing: Difference between revisions

From SnesLab
Jump to: navigation, search
(what accum will contain when done)
(what happens to index regs when done)
Line 6: Line 6:
The total number of bytes copied is the value in the [[C accumulator]] plus one.  If a block move is interrupted, the current byte copy is completed, then the interrupt is serviced.
The total number of bytes copied is the value in the [[C accumulator]] plus one.  If a block move is interrupted, the current byte copy is completed, then the interrupt is serviced.


When the copying is complete, the accumulator will contain the value $FFFF.
When the copying is complete:
* the accumulator will contain the value $FFFF.
* both index registers will point to the byte one past the end of the blocks they were pointing to


==== Syntax ====
==== Syntax ====

Revision as of 02:19, 14 July 2024

Two instructions use Block Move Addressing on the 65c816:

  • MVP (opcode 44)
  • MVN (opcode 54)

The total number of bytes copied is the value in the C accumulator plus one. If a block move is interrupted, the current byte copy is completed, then the interrupt is serviced.

When the copying is complete:

  • the accumulator will contain the value $FFFF.
  • both index registers will point to the byte one past the end of the blocks they were pointing to

Syntax

Asar:

MVN srds

References