created: 07/21/01; corrections: 08/22/01; audio: 01/12/04; revised: 03/30/09, 03/22/11, 07/07/15
This chapter describes two more conditional branch instructions and two conditional set instructions. Set instructions set a register to 1 or 0 depending on whether a condition is true or false.
bltzinstruction (branch on less than zero)
bgezinstruction (branch on greater or equal to zero)
sltinstruction (set on less than)
sltuinstruction (set on less than, unsigned)
sltiinstruction (set on less than, immediate)
sltiuinstruction (set on less than, immediate unsigned)
These new instructions help you implement loops and branches. But this is still a difficult task. Study this chapter to gain insight into what compilers do for you.
What two conditional branch instructions did the previous chapter discuss?