ARM VERSION 1.2 User Manual

Page 105

Advertising
background image

Assembler Reference

ARM DUI 0068B

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

3-27

Example of use of :SB_OFFSET_19_12: and :SB_OFFSET_11_ 0

MyIndex EQU 0
AREA area1, CODE
LDR IP, [SB, #0]
LDR IP, [IP, #MyIndex]
ADD IP, IP, # :SB_OFFSET_19_12: label
LDR PC, [IP, # :SB_OFFSET_11_0: label]

AREA area2, DATA
label
IMPORT FunctionAddress
DCD FunctionAddress
END

These operators can only be used in

ADD

and

LDR

instructions. They can only be used in

the way shown.

Advertising