X86-assembly/High-level-logic/loop

From aldeid
Jump to navigation Jump to search
You are here:
loop

Description

INCOMPLETE SECTION OR ARTICLE
This section/article is being written and is therefore not complete.
Thank you for your comprehension.

Example

.text:004015F5                 mov     [ebp+var_4], 0    ; loop initialization (control var: ebp+var_4)
-----------------------------------------------------------------------------
.text:004015FC loc_4015FC:                               ; loop body
.text:004015FC                 mov     edi, [ebp+var_4]
.text:004015FF                 push    ds:s[edi*4]
.text:00401606                 call    closesocket
-----------------------------------------------------------------------------
.text:0040160B                 inc     [ebp+var_4]       ; update the control variable
-----------------------------------------------------------------------------
.text:0040160E                 cmp     [ebp+var_4], 40h  ; stopping condition
.text:00401612                 jl      short loc_4015FC