ARM VERSION 1.2 manual Determining the armasm version at assembly time

Models: VERSION 1.2

1 360
Download 360 pages 38.37 Kb
Page 89
Image 89

Assembler Reference

ads$version must be all lower case. The other built-in variables can be upper-case, lower-case, or mixed.

3.4.1Determining 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

ELSE

;code for SDT ENDIF

ARM DUI 0068B

Copyright © 2000, 2001 ARM Limited. All rights reserved.

3-11

Page 89
Image 89
ARM VERSION 1.2 manual Determining the armasm version at assembly time