|
|||||||||||
Technical Support Support Resources
Product Information |
A51: Variable Alignments and EVEN DirectiveInformation in this article applies to:
QUESTIONI have purchased the A51 Macro Assembler, and I need to control variable alignments. I know that the AX51 and A251 support the EVEN directive (and this would be exactly what I need), but I do not want to migrate to AX51. I have tried to use the ORG statement, however I keep getting error message like:
Is there a chance to control alignments in A51 using the ORG directive? ANSWERThe simple form of the ORG statement can be used to control alignment in absolute segments. For example, the following code will translate fine:
However, this code fails in relocatable segments due to the relative nature of the $ symbol which represents the address counter. But when you subtract the segment start address you can make it work in A51. So the following example works on relocatable segments too:
It should be noted that the alignments are based on the segment start and are therefore relative to the segment start address. You may use the PAGE segment alignment type here that is supported by A51. Again, AX51 and A251 have a lot more possibilities. MORE INFORMATION
Last 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.