5.9.1. Absolute maps

Example 5.15 shows a data structure described using MAP and #. It is located at an absolute (fixed) address, 4096 (0x1000) in this case.

Example 5.15. 

		MAP		4096
consta		#		4		; consta uses four bytes, and is located at 4096
constb		#		4		; constb uses four bytes, and is located at 5000
x		#		8		; x uses eight bytes, and is located at 5004
y		#		8		; y uses eight bytes, and is located at 5012
string		#		256		; string can be up to 256 bytes long, starting at 5020

You can access data at these locations with LDR or STR instructions, such as:

	LDR		r4,constb

You can only do this if each instruction is within 4KB (in either direction) of the data item it accesses. See the ARM Architectural Reference Manual for details of the LDR and STR instructions.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0040D
Non-Confidential