Iteration Flashcards

(5 cards)

1
Q

allows for a loop to execute several iterations

A

loop instruction

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

equivalent assembly code of loop <label></label>

A

dec rcx
cmp rcx, 0
jne label

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

loop instruction is limited to the use of ____ register

A

rcx

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

loop instructions can only count _____

A

down

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

how to deal with nested loops

A

manage the use of rcx and ensure that the outer and inner loops do not use the same rcx

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