Lecture 9 Flashcards
1
Q
What is branching?
A
Many times, your program will need to execute code at a different memory address (like an if/else statement, looping functions, etc)
2
Q
What are the two kinds of jumps?
A
Conditional and Unconditional Like goto.
3
Q
How do Conditional jumps work?
A
The control is transferred to a memory address based on some condition. To use a conditional jump, you need instructions that can alter the flags (set or clear) eg cmp dst, src