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

MVN

From SnesLab
Revision as of 03:30, 18 June 2023 by Jeffythedragonslayer (talk | contribs) (added parameter descriptions)
Jump to: navigation, search

MVN (Block Move Negative) is a 65c816 instruction that copies a contiguous block of memory. It is intended to copy a block from a higher address to a lower address (moving it in the negative direction).

In Eyes & Lichty, the "N" in the mnemonic stands for "Next" not "Negative."

mvn.png
Basic Info
Addressing Mode Opcode Length Speed
block move 54 3 bytes 7 cycles per byte moved
Flags Clobbered
N V M X D I Z C
. . . . . . . .

Parameters

  • the X index register specifies the starting (lowest) source address of the block
  • the Y index register specifies the starting (lowest) destination address of the block
  • the C double accumulator specifies the length of the block in bytes minus one
  • the first operand byte specifies the destination bank the block will be in
  • the second operand byte specifies the source bank the block starts out in

See Also

External Links