Nintendo Ultra64 Programmer's Manual page 162

Rsp
Table of Contents

Advertisement

BEQ
31
BEQ
0 0 0 1 0 0
6
Format:
beq
Description:
A branch target address is computed from the sum of the address of the instruction in the delay slot
and the 16-bit
the contents of general register
branches to the target address, with a delay of one instruction.
Since the RSP program counter is only 12 bits, only 12 bits of the calculated address are used.
Operation:
target  (offset
T:
condition  (GPR[rs] = GPR[rt])
T+1: if condition then
endif
Exceptions:
None
162
Branch On Equal
26
25
21
20
rs
5
rs, rt, offset
offset
, shifted left two bits and sign-extended. The contents of general register
14
)
|| offset || 0
15
 PC
PC
11...0
16
15
rt
5
rt
are compared. If the two registers are equal, then the program
2
+ target
11...0
11...0
BEQ
offset
16
0
rs
and

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents