We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
MOVW (SPC700): Difference between revisions
From SnesLab
(both are direct page) |
(→See Also: ADDW, SUBW, CMPW) |
||
Line 70: | Line 70: | ||
* [[MOV]] | * [[MOV]] | ||
* [[MOV1]] | * [[MOV1]] | ||
* [[ADDW]] | |||
* [[SUBW]] | |||
* [[CMPW]] | |||
=== External Links === | === External Links === |
Revision as of 06:26, 23 July 2023
Basic Info | ||||
---|---|---|---|---|
Direction | Addressing Mode | Opcode | Length | Speed |
to YA | direct page | BA | 2 bytes | 5 cycles |
from YA | direct page | DA | 2 bytes | 4 cycles |
Flags Clobbered | ||||||||
---|---|---|---|---|---|---|---|---|
Direction | N | V | P | B | H | I | Z | C |
to YA | . | . | . | . | . | |||
from YA | . | . | . | . | . | . | . | . |
MOVW (Move Word) is an SPC700 instruction that moves a 16-bit ARAM value to or from the YA register. There are no variations of MOVW that do not operate on YA.
Example
From the IPL ROM,
MOVW YA, $F6 ; load the byte at ARAM location $F6 into A and the byte at $F7 into Y MOVW $00, YA ; store the value in Y to ARAM location $01 and the value in A to $00
See Also
External Links
- Official Super Nintendo development manual on MOVW: Appendix C-8 of Book I