3.4.1. Determining the armasm version at assembly time

The built-in variable {ARMASM$VERSION} can be used to distinguish between versions of armasm from ADS1.0 onwards. However, previous versions of armasm did not have this built-in variable.

If you need to build both ADS and SDT versions of your code, you can test for the built-in variable |ads$version|. Use code similar to the following:

    IF :DEF: |ads$version|
      ; code for ADS
      ; code for SDT
Copyright © 2000, 2001 ARM Limited. All rights reserved.ARM DUI 0068B