条件控制流伪指令
.break
.continue
.else
.elseif
.endif
.endw
.if
.repeat
.until
.untilcxz
.while
条件控制流语法如下:
.if condition1
statements
[.elseif condition2
statements]
[.else
statements]
.endif
.data
val1 dword 5
result dword ?
.code
mov eax, 6
.if eax > val1
mov result, 1
.endif
循环控制流语法如下:
(1).repeat
statements
.until condition
(2).while condition
statements
.endw
mov eax, 0
.while eax < 10
inc eax
call WriteDec
call Crlf
.endw
mov eax, 0
.repeat
inc eax
call WriteDec
call Crlf
.until eax == 10