|
|||||||||||
Technical Support Support Resources
Product Information |
A51: Getting Defined Value From the Command LineInformation in this article applies to:
QUESTIONUsing the A51 Assembler, I need to define a value via the command line. Is this possible? ANSWERNo. The symbols you define on the command are defined with the SET keyword and it is not possible to use these as values for a DB or DW. You may, however, use the #define directive and #include directive to define and include values from a C-style header file. For example, the following include file (ARGS.INC):
may be included in an assembly file.
The resulting listing file shows the assembler output:
Another solution is to use multiple $IF statements to create constants that may be used in your assembler programs. 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.