X86-assembly/Instructions/loop
Jump to navigation
Jump to search
You are here: | loop
|
Description
The loop instruction decrements ECX and jumps to the address specified by arg unless decrementing ECX caused its value to become zero. For example:
mov ecx, 5
start_loop:
; the code here would be executed 5 times
loop start_loop
Syntax
loop arg
Affected flags
None