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

MVP: Difference between revisions

From SnesLab
Jump to: navigation, search
(added execution sequence)
(moved tables up)
Line 1: Line 1:
'''MVP''' (Block Move Positive) is a [[65c816]] instruction that copies a contiguous block of memory.  It is intended to copy a block from a lower address to a higher address (moving it in the positive direction).
In [[Eyes & Lichty]], the "P" in the mnemonic stands for "Previous" not "Positive."
[[File:mvp.png|thumb]]
[[File:mvp.png|thumb]]


Line 40: Line 36:
|.
|.
|}
|}
'''MVP''' (Block Move Positive) is a [[65c816]] instruction that copies a contiguous block of memory.  It is intended to copy a block from a lower address to a higher address (moving it in the positive direction).
In [[Eyes & Lichty]], the "P" in the mnemonic stands for "Previous" not "Positive."


=== Parameters ===
=== Parameters ===

Revision as of 17:17, 13 July 2023

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

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

In Eyes & Lichty, the "P" in the mnemonic stands for "Previous" not "Positive."

Parameters

  • the X index register specifies the ending (highest) source address of the block
  • the Y index register specifies the ending (highest) 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

Execution Sequence

The following loop is repeated until the value in the C double accumulator is $FFFF:

  • one byte is copied from the address in X to the address in Y
  • both X and Y are decremented
  • C is decremented

See Also

External Links