We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
JMP (Super FX): Difference between revisions
From SnesLab
(created page) Tag: New redirect |
(→See Also: BRA) |
||
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="float:right;clear:right;width:50%" | |||
!colspan="8"|Basic Info | |||
|+ | |||
|'''Addressing Mode''' | |||
|'''Opcode''' | |||
|'''Length''' | |||
|'''ROM Speed''' | |||
|'''RAM Speed''' | |||
|'''Cache Speed''' | |||
|+ | |||
|[[Absolute Implied]] (type 1) | |||
|9n | |||
|1 byte | |||
|3 cycles | |||
|3 cycles | |||
|1 cycle | |||
|} | |||
{| class="wikitable" style="float:right;clear:right;width:30%" | |||
!colspan="9"|Flags Affected | |||
|+ | |||
|[[B Flag|B]] | |||
|[[ALT1]] | |||
|[[ALT2]] | |||
|[[O/V]] | |||
|[[Sign Flag|S]] | |||
|[[CY]] | |||
|[[Zero Flag|Z]] | |||
|+ | |||
|0 | |||
|0 | |||
|0 | |||
|. | |||
|. | |||
|. | |||
|. | |||
|} | |||
'''JMP''' is a [[Super FX]] instruction that performs a jump. The target address can come from any register from R<sub>8</sub> to R<sub>13</sub>. | |||
The instruction following JMP is already in the pipeline and will be run before the instruction at the destination address. | |||
The [[ALT0]] state is restored. | |||
==== Syntax ==== | |||
<pre> | |||
JMP Rn | |||
</pre> | |||
==== Example ==== | |||
Let: | |||
R<sub>10</sub> = 0555h | |||
After executing the following program: | |||
PC Opcode | |||
0444h JMP R<sub>10</sub> | |||
0445h INC R<sub>10</sub> | |||
The jump destination is 0555h. | |||
=== See Also === | |||
* [[LJMP]] | |||
* [[JMP]] | |||
* [[BRA (Super FX)]] | |||
* [[BRA]] | |||
=== External Links === | |||
# Official Nintendo documentation on JMP: 9.44 on [https://archive.org/details/SNESDevManual/book2/page/n219 page 2-9-63 of Book II] | |||
[[Category:ASM]] | |||
[[Category:Super FX]] | |||
[[Category:One-byte Instructions]] | |||
[[Category:Instructions with Delay Slots]] |
Latest revision as of 00:33, 17 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
Absolute Implied (type 1) | 9n | 1 byte | 3 cycles | 3 cycles | 1 cycle |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
0 | 0 | 0 | . | . | . | . |
JMP is a Super FX instruction that performs a jump. The target address can come from any register from R8 to R13.
The instruction following JMP is already in the pipeline and will be run before the instruction at the destination address.
The ALT0 state is restored.
Syntax
JMP Rn
Example
Let:
R10 = 0555h
After executing the following program:
PC Opcode 0444h JMP R10 0445h INC R10
The jump destination is 0555h.
See Also
External Links
- Official Nintendo documentation on JMP: 9.44 on page 2-9-63 of Book II