5.9.3. Register-relative and program-relative expressions

A register-relative expression evaluates to a named register plus or minus a numeric constant. It is normally a label in a register-based area combined with a numeric expression. See ^ or MAP directive.

A program-relative expression evaluates to the program counter (pc) plus or minus a numeric constant. It is normally a label in a non register-based area combined with a numeric expression.

Example

		LDR		r4,=data+4		*n		; n is an assembly-time variable
		; code
		MOV		pc,lr
data		DCW		value0
		; n-1 DCW directives
		DCW		valuen				; data+4		*n points here
		; more DCW directives
Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0041C
Non-Confidential