We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
BGE (Super FX): Difference between revisions
From SnesLab
(added admode) |
(Z) |
||
Line 26: | Line 26: | ||
|[[Sign Flag|S]] | |[[Sign Flag|S]] | ||
|[[CY]] | |[[CY]] | ||
|Z | |[[Zero Flag|Z]] | ||
|+ | |+ | ||
|. | |. |
Revision as of 20:55, 12 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
Program Counter Relative | 07 | 2 bytes | 6 cycles | 6 cycles | 2 cycles |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
. | . | . | . | . | . | . |
BGE (Branch if Greater or Equal) is a Super FX opcode that performs a jump if the negative flag is equal to the O/V flag, effectively checking for a signed greater-equal comparison (compare BCS which is an unsigned greater-equal comparison).
According to fullsnes, the official documentation has BGE exchanged with BLT. [2]
No flags are affected.
Syntax
BGE e
Example
Let the sign flag and O/V flag be set. This instruction jumps the program backward 3 bytes:
BGE $-3h
See also
References
- Official Nintendo dev manual on BGE: 9.17 on page 2-9-20 of Book II
- https://problemkaputt.de/fullsnes.htm#snescartgsuncpumisc
- example: page 2-9-21, lbid.