for 循环结构:

       mov    <循环变量>,<初始值>                 ;给循环变量赋初值

       jmp B                                                         ;跳到第一次循环处

       A:     (改动循环变量)                             ;修改循环变量

         ......

        B:  cmp <循环变量>,<限制变量>           ;检查循环条件

              jge 跳出循环

              (循环体)

             ...

           jmp A                                                 ;跳回去修改循环变量

-------------------------------------------------------------------------------------------------

do - while 循环:

               cmp  <循环变量>, <限制变量>

               jl       <循环开始处>

 

-----------------------------------------------------------------------------------------------

while - do 循环

              A:         cmp    <循环变量>,<限制变量>

                           jge      B

                           (循环体)

                           .......

                           jmp A

              B:         (循环结束了)