ARM Instruction Reference
ARM DUI 0068B
Copyright © 2000, 2001 ARM Limited. All rights reserved.
4-67
4.7.5
LDC, STC
Transfer data between memory and coprocessor.
Syntax
These instructions have three possible forms:
•
zero offset
•
pre-indexed offset
•
post-indexed offset.
The syntax of the three forms, in the same order, are:
op
{
cond
}{L}
coproc
,
CRd
, [
Rn
]
op
{
cond
}{L}
coproc
,
CRd
, [
Rn
, #{-}
offset
]{!}
op
{
cond
}{L}
coproc, CRd
, [
Rn
],
#{-}offset
where:
op
is either
LDC
or
STC
.
cond
is an optional condition code (see
Conditional execution
on page 4-4).
L
is an optional suffix specifying a long transfer.
coproc
is the name of the coprocessor the instruction is for. The standard name
is
p
n
, where
n
is an integer in the range 0-15.
CRd
is the coprocessor register to load or save.
Rn
is the register on which the memory address is based. If r15 is specified,
the value used is the address of the current instruction plus eight.
-
is an optional minus sign. If
-
is present, the offset is subtracted from
Rn
.
Otherwise, the offset is added to
Rn
.
offset
is an expression evaluating to a multiple of 4, in the range 0-1020.
!
is an optional suffix. If ! is present, the address including the offset is
written back into
Rn
.
Usage
The use of this instruction depends on the coprocessor. See the coprocessor
documentation for details.
Содержание 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 ...