ARM Instruction Reference
4-82
Copyright © 2000, 2001 ARM Limited. All rights reserved.
ARM DUI 0068B
4.9.3
LDR ARM pseudo-instruction
Load a register with either:
•
a 32-bit constant value
•
an address.
Note
This section describes the
LDR
pseudo
-instruction only. See
ARM memory access
instructions
on page 4-6 for information on the
LDR
instruction
.
Syntax
LDR{
cond
}
register
,=[
expr
|
label-expr
]
where:
cond
is an optional condition code.
register
is the register to be loaded.
expr
evaluates to a numeric constant:
•
the assembler generates a
MOV
or
MVN
instruction, if the value of
expr
is within range
•
if the value of
expr
is
not
within range of a
MOV
or
MVN
instruction,
the assembler places the constant in a literal pool and generates a
program-relative
LDR
instruction that reads the constant from the
literal pool.
label-expr
is a program-relative or external expression. The assembler places the
value of
label-expr
in a literal pool and generates a program-relative
LDR
instruction that loads the value from the literal pool.
If
label-expr
is an external expression, or is not contained in the current
section, the assembler places a linker relocation directive in the object
file. The linker generates the address at link time.
Содержание Developer Suite
Страница 10: ...Preface x Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 110: ...Assembler Reference 3 32 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 185: ...ARM Instruction Reference ARM DUI 0068B Copyright 2000 2001 ARM Limited All rights reserved 4 75 Example MSR CPSR_f r5 ...
Страница 238: ...Thumb Instruction Reference 5 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 282: ...Vector Floating point Programming 6 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 360: ...Index Index 6 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...