汇编中的.REPEAT指令

指令名称

.REPEAT 伪指令执行循环体,然后测试 .UNTIL 伪指令后面的运行时条件。
.REPEAT 伪指令执行循环体,.untilcxz 重复执行cx减1,直到cx=0
.REPEAT 伪指令执行循环体,.untilcxz [条件表达式]重复执行cx减1,直到cx=0或条件表达式为真。

格式
.REPEAT
    statements
.UNTIL condition
举例

下述语句使用 .REPEAT 伪指令显示数值 1 到 10:

mov eax,0
.REPEAT
    inc eax
    call WriteDec
    call Crlf
.UNTIL eax == 10
原文地址:https://www.cnblogs.com/laohaozi/p/12537596.html