A conditional branch
tests a condition then changes the PC if the condition is true
(for example, the instruction beq label
).
The extended assembler implements several conditional branch instructions beyond the basic ones. For example:
beqz rs,label # branch to label if register rs == 0 # (pseudoinstruction)
The hardware does not have a machine instruction for this
operation.
It does, however, have a zero register and the
beq
instruction (branch equal).