汇编 控制流伪指令 .break .continue .else .elseif .endif .endw .if .repeat .until .untilcxz .while
生活随笔
收集整理的這篇文章主要介紹了
汇编 控制流伪指令 .break .continue .else .elseif .endif .endw .if .repeat .until .untilcxz .while
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
條件控制流偽指令
.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 > val1mov result, 1 .endif循環控制流語法如下:
(1).repeat
? statements
.until condition
(2).while condition
? statements
.endw
mov eax, 0 .while eax < 10inc eaxcall WriteDeccall Crlf .endwmov eax, 0 .repeatinc eaxcall WriteDeccall Crlf .until eax == 10總結
以上是生活随笔為你收集整理的汇编 控制流伪指令 .break .continue .else .elseif .endif .endw .if .repeat .until .untilcxz .while的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 汇编 and or xor not t
- 下一篇: COSMIC功能规模度量方法