EasyManua.ls Logo

Mips Technologies R4000 - Page 489

Mips Technologies R4000
754 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MIPS R4000 Microprocessor User's Manual A-21
CPU Instruction Set Details
Format:
BCzT offset
Description:
A branch target address is computed from the sum of the address of the
instruction in the delay slot and the 16-bit offset, shifted left two bits and
sign-extended. If the coprocessor z’s condition signal (CpCond) is true,
then the program branches to the target address, with a delay of one
instruction.
Because the condition line is sampled during the previous instruction,
there must be at least one instruction between this instruction and a
coprocessor instruction that changes the condition line.
Operation:
*See the table “Opcode Bit Encoding” on next page, or “CPU Instruction
Opcode Bit Encoding” at the end of Appendix A.
BCzT
Branch On Coprocessor z True
5
16 15
BC
31 2526
COPz
6
0
16
offsetBCT
21 20
5
0 1 0 0 x x* 0 1 0 0 0 0 0 0 0 1
BCzT
T: target (offset
15
)
14
|| offset || 0
2
32 T–1: condition COC[z]
T+1: if condition then
PC PC + target
endif
T: target (offset
15
)
46
|| offset || 0
2
64 T–1: condition COC[z]
T+1: if condition then
PC PC + target
endif

Table of Contents