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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two kinds of jumps?

A

Conditional and Unconditional Like goto.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly