We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
LINK: Difference between revisions
From SnesLab
(more info about n) |
(return address) |
||
Line 38: | Line 38: | ||
'''LINK''' is a [[Super FX]] instruction that stores the sum of R<sub>15</sub> (program counter) and an immediate value (n) into R<sub>11</sub>. The operand n is the low nybble of the opcode and may be any integer from 1~4. | '''LINK''' is a [[Super FX]] instruction that stores the sum of R<sub>15</sub> (program counter) and an immediate value (n) into R<sub>11</sub>. The operand n is the low nybble of the opcode and may be any integer from 1~4. | ||
LINK can be used to store a [[return address]] into R<sub>11</sub> when jumping to a subroutine. | |||
=== See Also === | === See Also === |
Revision as of 21:25, 29 June 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
Immediate | 9n | 1 byte | 3 cycles | 3 cycles | 1 cycle |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
0 | 0 | 0 | . | . | . | . |
LINK is a Super FX instruction that stores the sum of R15 (program counter) and an immediate value (n) into R11. The operand n is the low nybble of the opcode and may be any integer from 1~4.
LINK can be used to store a return address into R11 when jumping to a subroutine.
See Also
External Links
- Official Nintendo documentation on LINK: Page 2-9-68 of Book II