We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
BRA (Super FX): Difference between revisions
From SnesLab
(made basic info table wider) |
(added example) |
||
Line 44: | Line 44: | ||
<pre> | <pre> | ||
BRA e | BRA e | ||
</pre> | |||
==== Example ==== | |||
This instruction jumps the program backward in an infinite loop: | |||
<pre> | |||
BRA $0h | |||
</pre> | </pre> | ||
Revision as of 20:30, 10 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
05?? | 2 bytes | 6 cycles | 6 cycles | 2 cycles |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
. | . | . | . | . | . | . |
BRA (Branch) is a Super FX instruction that performs an unconditional jump. A relative offset of -128 to 127 bytes from the address following the BRA instruction is added into R15 (the program counter).
No flags are affected.
Syntax
BRA e
Example
This instruction jumps the program backward in an infinite loop:
BRA $0h
See Also
External Links
- Official Nintendo documentation on BRA: 9.24 on Page 2-9-32 of Book II
- example: page 2-9-33 of Book II, lbid.