Labels for absolute addresses

These are numeric constants. They are integers in the range 0 to 232-1. They address the memory directly. You can use labels to represent absolute addresses using the EQU directive. You can specify the absolute address as ARM, Thumb, or data to ensure that the labels are used correctly when referenced in code.

Example 25. Defining labels for absolute address

abc EQU 2               ; assigns the value 2 to the symbol abc.
xyz EQU label+8         ; assigns the address (label+8) to the
                        ; symbol xyz.
fiq EQU 0x1C, CODE32    ; assigns the absolute address 0x1C to
                        ; the symbol fiq, and marks it as code

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0473H