Iteration Flashcards
(5 cards)
1
Q
allows for a loop to execute several iterations
A
loop instruction
2
Q
equivalent assembly code of loop <label></label>
A
dec rcx
cmp rcx, 0
jne label
3
Q
loop instruction is limited to the use of ____ register
A
rcx
4
Q
loop instructions can only count _____
A
down
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