Encoding (format 3):
0 | 1 | 0 | 0 | 1 | 0 | 1 | s2 | s1 | s0 | a2 | a1 | a0 | b2 | b1 | b0 |
Syntax:
BGTS
S,
Ra,
Rb
Constraints:
Outcome:
Notes:
The comparison between Ra and Rb is a signed comparison, where the contents of each register is treated as a 2's-complement signed number.
Remember that the program counter is a word address, so the offset is the number of words by which to adjust the PC.
Branching to a non-existent location will trigger a bus error exception.