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

BRL: Difference between revisions

From SnesLab
Jump to: navigation, search
(snes9x implementation)
(signed displacement)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''BRL''' is a [[65c816]] instruction that performs an unconditional jump.
{| class="wikitable" style="float:right;clear:right;width:40%"
 
 
{| class="wikitable" style="float:right;clear:right;width:30%"
!colspan="8"|Basic Info
!colspan="8"|Basic Info
|+
|+
Line 10: Line 7:
|'''Speed'''
|'''Speed'''
|+
|+
|relative long
|[[Program Counter Relative Long]]
|82
|82
|3 bytes
|3 bytes
Line 17: Line 14:


{| class="wikitable" style="float:right;clear:right;width:30%"
{| class="wikitable" style="float:right;clear:right;width:30%"
!colspan="9"|Flags Clobbered
!colspan="9"|Flags Affected
|+
|+
|N
|[[Negative Flag|N]]
|V
|[[Overflow Flag|V]]
|M
|[[M Flag|M]]
|X
|[[X Flag|X]]
|D
|[[Decimal Flag|D]]
|I
|[[I Flag|I]]
|Z
|[[Zero Flag|Z]]
|C
|[[Carry Flag|C]]
|+
|+
|.
|.
Line 37: Line 34:
|.
|.
|}
|}
'''BRL''' is a [[65c816]] instruction that performs an unconditional jump.  The target can be anywhere within the current [[bank]].
The 16 bit operand is not an absolute address, but a signed displacement.
BRL is relocatable.
=== See Also ===
* [[BRA]]


=== External Links ===
=== External Links ===
* [[Eyes & Lichty]] page on BRL: https://archive.org/details/0893037893ProgrammingThe65816/page/n464
* [[Eyes & Lichty]] page 438, on BRL: https://archive.org/details/0893037893ProgrammingThe65816/page/n464
* [[Labiak]] page on BRL: https://archive.org/details/Programming_the_65816/page/n137
* [[Labiak]] page 127 on BRL: https://archive.org/details/Programming_the_65816/page/n137
* snes9x implementation of BRL: https://github.com/snes9xgit/snes9x/blob/master/cpuops.cpp#L1405
* snes9x implementation of BRL: https://github.com/snes9xgit/snes9x/blob/master/cpuops.cpp#L1405


[[Category:ASM]]
[[Category:ASM]]
[[Category:65c816 additions]]
[[Category:65c816 additions]]
[[Category:Three-byte Instructions]]
[[Category:Four-cycle Instructions]]
[[Category:Relocatable Instructions]]
[[Category:Single Admode Mnemonics]]

Latest revision as of 09:50, 18 December 2023

Basic Info
Addressing Mode Opcode Length Speed
Program Counter Relative Long 82 3 bytes 4 cycles
Flags Affected
N V M X D I Z C
. . . . . . . .

BRL is a 65c816 instruction that performs an unconditional jump. The target can be anywhere within the current bank.

The 16 bit operand is not an absolute address, but a signed displacement.

BRL is relocatable.

See Also

External Links