汇编 控制流伪指令 .break .continue .else .elseif .endif .endw .if .repeat .until .untilcxz .while
生活随笔
收集整理的這篇文章主要介紹了
汇编 控制流伪指令 .break .continue .else .elseif .endif .endw .if .repeat .until .untilcxz .while
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
條件控制流偽指令
.break
.continue
.else
.elseif
.endif
.endw
.if
.repeat
.until
.untilcxz
.while
條件控制流語(yǔ)法如下:
.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循環(huán)控制流語(yǔ)法如下:
(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總結(jié)
以上是生活随笔為你收集整理的汇编 控制流伪指令 .break .continue .else .elseif .endif .endw .if .repeat .until .untilcxz .while的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 汇编 and or xor not t
- 下一篇: COSMIC功能规模度量方法