go to previous page   go to home page   go to next page hear noise

Answer:

Use "less than" with the operations reversed.


Branch Instructions

The floating point branch instructions inspect the condition bit in the coprocessor. The bc1t instruction takes the branch if the bit is true (==1). The bc1f instruction takes the branch if the bit is false (==0). These are the only two floating point branch instructions.

InstructionOperation
bc1t labelbranch to   label  if the coprocessor 1 condition bit is true
bc1f labelbranch to   label  if the coprocessor 1 condition bit is false

The branch instructions have a one instruction branch delay. Hardware requires a nop instruction after each branch instruction. For this chapter, let us not bother with this. When running the programs with SPIM, disable branch delays in the settings menu.


QUESTION 4:

Where does execution of the bc1t instruction take place? In the FPU or the CPU?