Branches and Jumps
Up to now: sequential instructions (strictly in order)
What other kinds of instructions do we need (think of kinds of C statements)?
selection (if/else, switch)
looping (for, while)
function calls
There is no such thing as selection or loop statement in machine language
only the evil G-word (goto)
In assembly language, change the order of execution with a branch or jump
branch: conditional (not always)
jump: unconditional (always)
What does it mean to branch?