汇编语言伪指令 “ if ” 和 “ .if ” 有什么区别
来源:百度知道 编辑:UC知道 时间:2024/06/16 18:43:40
Syntax: .IF condition
ifstatements
[.ELSEIF] condition
elseifstatements
.
.
.
[.ELSE]
elsestatements
.ENDIF
For "condition" see Comparison run-time operators
Description:
Used for clear coding of common control-flow blocks. Generates
comparison and conditional jump instructions so that if
<condition> is true, the processor executes the instructions
following .IF until the next .ELSEIF, .ELSE, or .ENDIF. .IF
statements can be nested.
The .ELSEIF statement is used to create a code block that is
executed if the preceding .IF and .ELSEIF conditions are false,
and the current .ELSEIF condition is true. There can be several
.ELSEIF blocks within a .IF block. The .ELSEIF statement performs
the same function as a .IF inside a .ELSE but does not create
another nesting level of .IFs.
.ELSE specifies