You copied the Doc URL to your clipboard.

Labels for absolute addresses

label can represent the absolute address of code or data.

These labels are numeric constants. In A32 and T32 code they are integers in the range 0 to 232-1. In A64 code, they are integers in the range 0 to 264-1. They address the memory directly. You can use labels to represent absolute addresses using the EQU directive. To ensure that the labels are used correctly when referenced in code, you can specify the absolute address as:

  • A32 code with the ARM directive.
  • T32 code with the THUMB directive.
  • Data.

Example of 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, ARM       ; assigns the absolute address 0x1C to the symbol fiq
                        ; and marks it as A32 code