|
|||||||||||
Technical Support Support Resources
Product Information |
A51: Difference Between IF and $IFInformation in this article applies to:
QUESTIONWhat's the difference between the $IF and IF conditional statements? ANSWERThe primary difference between $IF and IF is the defined names or symbols that may be tested. In assembler, there are several ways to define symbols.
The $IF statement may only be used to test symbols defined with $SET or $RESET within the program or on the command line. The IF statement may only be used to test symbols defined with EQU, LIT, or SET, or labels with an absolute address. IF may not be used to test symbols defined with $SET or $RESET. For example:
SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.