| |||||
Technical Support Support Resources
Product Information | A51: CONDITIONAL ASSEMBLY CODEInformation in this article applies to:
QUESTIONIs it possible to do conditional assembly with the A51 assembler? If so, why won't statements like the following work? IF USE_SIMULATION == ENABLED ANSWERTo create conditional assembly programs, you must use the $IF and $ENDIF directives in your assembly program with symbols you define with $SET or $RESET or symbols you define on the command line. IF does not work with those types of defined symbols. The following code:
$IF (USE_SIMULATION = ENABLED)
nop
nop
nop
$ENDIF
should work as expected. SEE ALSOLast Reviewed: Monday, June 07, 2004 | ||||
| |||||